configure revision bdc460c5
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for smproxy 1.0.7. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/smproxy/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/smproxy/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='smproxy' 614PACKAGE_TARNAME='smproxy' 615PACKAGE_VERSION='1.0.7' 616PACKAGE_STRING='smproxy 1.0.7' 617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/smproxy/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 657SMPROXY_LIBS 658SMPROXY_CFLAGS 659MAN_SUBSTS 660XORG_MAN_PAGE 661ADMIN_MAN_DIR 662DRIVER_MAN_DIR 663MISC_MAN_DIR 664FILE_MAN_DIR 665LIB_MAN_DIR 666APP_MAN_DIR 667ADMIN_MAN_SUFFIX 668DRIVER_MAN_SUFFIX 669MISC_MAN_SUFFIX 670FILE_MAN_SUFFIX 671LIB_MAN_SUFFIX 672APP_MAN_SUFFIX 673SED 674host_os 675host_vendor 676host_cpu 677host 678build_os 679build_vendor 680build_cpu 681build 682INSTALL_CMD 683PKG_CONFIG_LIBDIR 684PKG_CONFIG_PATH 685PKG_CONFIG 686CHANGELOG_CMD 687STRICT_CFLAGS 688CWARNFLAGS 689BASE_CFLAGS 690am__fastdepCC_FALSE 691am__fastdepCC_TRUE 692CCDEPMODE 693am__nodep 694AMDEPBACKSLASH 695AMDEP_FALSE 696AMDEP_TRUE 697am__include 698DEPDIR 699OBJEXT 700EXEEXT 701ac_ct_CC 702CPPFLAGS 703LDFLAGS 704CFLAGS 705CC 706AM_BACKSLASH 707AM_DEFAULT_VERBOSITY 708AM_DEFAULT_V 709AM_V 710CSCOPE 711ETAGS 712CTAGS 713am__untar 714am__tar 715AMTAR 716am__leading_dot 717SET_MAKE 718AWK 719mkdir_p 720MKDIR_P 721INSTALL_STRIP_PROGRAM 722STRIP 723install_sh 724MAKEINFO 725AUTOHEADER 726AUTOMAKE 727AUTOCONF 728ACLOCAL 729VERSION 730PACKAGE 731CYGPATH_W 732am__isrc 733INSTALL_DATA 734INSTALL_SCRIPT 735INSTALL_PROGRAM 736target_alias 737host_alias 738build_alias 739LIBS 740ECHO_T 741ECHO_N 742ECHO_C 743DEFS 744mandir 745localedir 746libdir 747psdir 748pdfdir 749dvidir 750htmldir 751infodir 752docdir 753oldincludedir 754includedir 755runstatedir 756localstatedir 757sharedstatedir 758sysconfdir 759datadir 760datarootdir 761libexecdir 762sbindir 763bindir 764program_transform_name 765prefix 766exec_prefix 767PACKAGE_URL 768PACKAGE_BUGREPORT 769PACKAGE_STRING 770PACKAGE_VERSION 771PACKAGE_TARNAME 772PACKAGE_NAME 773PATH_SEPARATOR 774SHELL 775am__quote' 776ac_subst_files='' 777ac_user_opts=' 778enable_option_checking 779enable_silent_rules 780enable_dependency_tracking 781enable_selective_werror 782enable_strict_compilation 783' 784 ac_precious_vars='build_alias 785host_alias 786target_alias 787CC 788CFLAGS 789LDFLAGS 790LIBS 791CPPFLAGS 792PKG_CONFIG 793PKG_CONFIG_PATH 794PKG_CONFIG_LIBDIR 795SMPROXY_CFLAGS 796SMPROXY_LIBS' 797 798 799# Initialize some variables set by options. 800ac_init_help= 801ac_init_version=false 802ac_unrecognized_opts= 803ac_unrecognized_sep= 804# The variables have the same names as the options, with 805# dashes changed to underlines. 806cache_file=/dev/null 807exec_prefix=NONE 808no_create= 809no_recursion= 810prefix=NONE 811program_prefix=NONE 812program_suffix=NONE 813program_transform_name=s,x,x, 814silent= 815site= 816srcdir= 817verbose= 818x_includes=NONE 819x_libraries=NONE 820 821# Installation directory options. 822# These are left unexpanded so users can "make install exec_prefix=/foo" 823# and all the variables that are supposed to be based on exec_prefix 824# by default will actually change. 825# Use braces instead of parens because sh, perl, etc. also accept them. 826# (The list follows the same order as the GNU Coding Standards.) 827bindir='${exec_prefix}/bin' 828sbindir='${exec_prefix}/sbin' 829libexecdir='${exec_prefix}/libexec' 830datarootdir='${prefix}/share' 831datadir='${datarootdir}' 832sysconfdir='${prefix}/etc' 833sharedstatedir='${prefix}/com' 834localstatedir='${prefix}/var' 835runstatedir='${localstatedir}/run' 836includedir='${prefix}/include' 837oldincludedir='/usr/include' 838docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 839infodir='${datarootdir}/info' 840htmldir='${docdir}' 841dvidir='${docdir}' 842pdfdir='${docdir}' 843psdir='${docdir}' 844libdir='${exec_prefix}/lib' 845localedir='${datarootdir}/locale' 846mandir='${datarootdir}/man' 847 848ac_prev= 849ac_dashdash= 850for ac_option 851do 852 # If the previous option needs an argument, assign it. 853 if test -n "$ac_prev"; then 854 eval $ac_prev=\$ac_option 855 ac_prev= 856 continue 857 fi 858 859 case $ac_option in 860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 861 *=) ac_optarg= ;; 862 *) ac_optarg=yes ;; 863 esac 864 865 case $ac_dashdash$ac_option in 866 --) 867 ac_dashdash=yes ;; 868 869 -bindir | --bindir | --bindi | --bind | --bin | --bi) 870 ac_prev=bindir ;; 871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 872 bindir=$ac_optarg ;; 873 874 -build | --build | --buil | --bui | --bu) 875 ac_prev=build_alias ;; 876 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 877 build_alias=$ac_optarg ;; 878 879 -cache-file | --cache-file | --cache-fil | --cache-fi \ 880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 881 ac_prev=cache_file ;; 882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 884 cache_file=$ac_optarg ;; 885 886 --config-cache | -C) 887 cache_file=config.cache ;; 888 889 -datadir | --datadir | --datadi | --datad) 890 ac_prev=datadir ;; 891 -datadir=* | --datadir=* | --datadi=* | --datad=*) 892 datadir=$ac_optarg ;; 893 894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 895 | --dataroo | --dataro | --datar) 896 ac_prev=datarootdir ;; 897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 899 datarootdir=$ac_optarg ;; 900 901 -disable-* | --disable-*) 902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 903 # Reject names that are not valid shell variable names. 904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 905 as_fn_error $? "invalid feature name: \`$ac_useropt'" 906 ac_useropt_orig=$ac_useropt 907 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 908 case $ac_user_opts in 909 *" 910"enable_$ac_useropt" 911"*) ;; 912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 913 ac_unrecognized_sep=', ';; 914 esac 915 eval enable_$ac_useropt=no ;; 916 917 -docdir | --docdir | --docdi | --doc | --do) 918 ac_prev=docdir ;; 919 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 920 docdir=$ac_optarg ;; 921 922 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 923 ac_prev=dvidir ;; 924 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 925 dvidir=$ac_optarg ;; 926 927 -enable-* | --enable-*) 928 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 929 # Reject names that are not valid shell variable names. 930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 931 as_fn_error $? "invalid feature name: \`$ac_useropt'" 932 ac_useropt_orig=$ac_useropt 933 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 934 case $ac_user_opts in 935 *" 936"enable_$ac_useropt" 937"*) ;; 938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 939 ac_unrecognized_sep=', ';; 940 esac 941 eval enable_$ac_useropt=\$ac_optarg ;; 942 943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 945 | --exec | --exe | --ex) 946 ac_prev=exec_prefix ;; 947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 949 | --exec=* | --exe=* | --ex=*) 950 exec_prefix=$ac_optarg ;; 951 952 -gas | --gas | --ga | --g) 953 # Obsolete; use --with-gas. 954 with_gas=yes ;; 955 956 -help | --help | --hel | --he | -h) 957 ac_init_help=long ;; 958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 959 ac_init_help=recursive ;; 960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 961 ac_init_help=short ;; 962 963 -host | --host | --hos | --ho) 964 ac_prev=host_alias ;; 965 -host=* | --host=* | --hos=* | --ho=*) 966 host_alias=$ac_optarg ;; 967 968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 969 ac_prev=htmldir ;; 970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 971 | --ht=*) 972 htmldir=$ac_optarg ;; 973 974 -includedir | --includedir | --includedi | --included | --include \ 975 | --includ | --inclu | --incl | --inc) 976 ac_prev=includedir ;; 977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 978 | --includ=* | --inclu=* | --incl=* | --inc=*) 979 includedir=$ac_optarg ;; 980 981 -infodir | --infodir | --infodi | --infod | --info | --inf) 982 ac_prev=infodir ;; 983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 984 infodir=$ac_optarg ;; 985 986 -libdir | --libdir | --libdi | --libd) 987 ac_prev=libdir ;; 988 -libdir=* | --libdir=* | --libdi=* | --libd=*) 989 libdir=$ac_optarg ;; 990 991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 992 | --libexe | --libex | --libe) 993 ac_prev=libexecdir ;; 994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 995 | --libexe=* | --libex=* | --libe=*) 996 libexecdir=$ac_optarg ;; 997 998 -localedir | --localedir | --localedi | --localed | --locale) 999 ac_prev=localedir ;; 1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1001 localedir=$ac_optarg ;; 1002 1003 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1004 | --localstate | --localstat | --localsta | --localst | --locals) 1005 ac_prev=localstatedir ;; 1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1008 localstatedir=$ac_optarg ;; 1009 1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1011 ac_prev=mandir ;; 1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1013 mandir=$ac_optarg ;; 1014 1015 -nfp | --nfp | --nf) 1016 # Obsolete; use --without-fp. 1017 with_fp=no ;; 1018 1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1020 | --no-cr | --no-c | -n) 1021 no_create=yes ;; 1022 1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1025 no_recursion=yes ;; 1026 1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1029 | --oldin | --oldi | --old | --ol | --o) 1030 ac_prev=oldincludedir ;; 1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1034 oldincludedir=$ac_optarg ;; 1035 1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1037 ac_prev=prefix ;; 1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1039 prefix=$ac_optarg ;; 1040 1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1042 | --program-pre | --program-pr | --program-p) 1043 ac_prev=program_prefix ;; 1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1046 program_prefix=$ac_optarg ;; 1047 1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1049 | --program-suf | --program-su | --program-s) 1050 ac_prev=program_suffix ;; 1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1053 program_suffix=$ac_optarg ;; 1054 1055 -program-transform-name | --program-transform-name \ 1056 | --program-transform-nam | --program-transform-na \ 1057 | --program-transform-n | --program-transform- \ 1058 | --program-transform | --program-transfor \ 1059 | --program-transfo | --program-transf \ 1060 | --program-trans | --program-tran \ 1061 | --progr-tra | --program-tr | --program-t) 1062 ac_prev=program_transform_name ;; 1063 -program-transform-name=* | --program-transform-name=* \ 1064 | --program-transform-nam=* | --program-transform-na=* \ 1065 | --program-transform-n=* | --program-transform-=* \ 1066 | --program-transform=* | --program-transfor=* \ 1067 | --program-transfo=* | --program-transf=* \ 1068 | --program-trans=* | --program-tran=* \ 1069 | --progr-tra=* | --program-tr=* | --program-t=*) 1070 program_transform_name=$ac_optarg ;; 1071 1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1073 ac_prev=pdfdir ;; 1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1075 pdfdir=$ac_optarg ;; 1076 1077 -psdir | --psdir | --psdi | --psd | --ps) 1078 ac_prev=psdir ;; 1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1080 psdir=$ac_optarg ;; 1081 1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1083 | -silent | --silent | --silen | --sile | --sil) 1084 silent=yes ;; 1085 1086 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1087 | --runstate | --runstat | --runsta | --runst | --runs \ 1088 | --run | --ru | --r) 1089 ac_prev=runstatedir ;; 1090 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1091 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1092 | --run=* | --ru=* | --r=*) 1093 runstatedir=$ac_optarg ;; 1094 1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1096 ac_prev=sbindir ;; 1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1098 | --sbi=* | --sb=*) 1099 sbindir=$ac_optarg ;; 1100 1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1103 | --sharedst | --shareds | --shared | --share | --shar \ 1104 | --sha | --sh) 1105 ac_prev=sharedstatedir ;; 1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1109 | --sha=* | --sh=*) 1110 sharedstatedir=$ac_optarg ;; 1111 1112 -site | --site | --sit) 1113 ac_prev=site ;; 1114 -site=* | --site=* | --sit=*) 1115 site=$ac_optarg ;; 1116 1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1118 ac_prev=srcdir ;; 1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1120 srcdir=$ac_optarg ;; 1121 1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1123 | --syscon | --sysco | --sysc | --sys | --sy) 1124 ac_prev=sysconfdir ;; 1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1127 sysconfdir=$ac_optarg ;; 1128 1129 -target | --target | --targe | --targ | --tar | --ta | --t) 1130 ac_prev=target_alias ;; 1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1132 target_alias=$ac_optarg ;; 1133 1134 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1135 verbose=yes ;; 1136 1137 -version | --version | --versio | --versi | --vers | -V) 1138 ac_init_version=: ;; 1139 1140 -with-* | --with-*) 1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1142 # Reject names that are not valid shell variable names. 1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1144 as_fn_error $? "invalid package name: \`$ac_useropt'" 1145 ac_useropt_orig=$ac_useropt 1146 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1147 case $ac_user_opts in 1148 *" 1149"with_$ac_useropt" 1150"*) ;; 1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1152 ac_unrecognized_sep=', ';; 1153 esac 1154 eval with_$ac_useropt=\$ac_optarg ;; 1155 1156 -without-* | --without-*) 1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1158 # Reject names that are not valid shell variable names. 1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1160 as_fn_error $? "invalid package name: \`$ac_useropt'" 1161 ac_useropt_orig=$ac_useropt 1162 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1163 case $ac_user_opts in 1164 *" 1165"with_$ac_useropt" 1166"*) ;; 1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1168 ac_unrecognized_sep=', ';; 1169 esac 1170 eval with_$ac_useropt=no ;; 1171 1172 --x) 1173 # Obsolete; use --with-x. 1174 with_x=yes ;; 1175 1176 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1177 | --x-incl | --x-inc | --x-in | --x-i) 1178 ac_prev=x_includes ;; 1179 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1180 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1181 x_includes=$ac_optarg ;; 1182 1183 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1184 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1185 ac_prev=x_libraries ;; 1186 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1188 x_libraries=$ac_optarg ;; 1189 1190 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1191Try \`$0 --help' for more information" 1192 ;; 1193 1194 *=*) 1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1196 # Reject names that are not valid shell variable names. 1197 case $ac_envvar in #( 1198 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1199 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1200 esac 1201 eval $ac_envvar=\$ac_optarg 1202 export $ac_envvar ;; 1203 1204 *) 1205 # FIXME: should be removed in autoconf 3.0. 1206 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1208 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1209 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1210 ;; 1211 1212 esac 1213done 1214 1215if test -n "$ac_prev"; then 1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1217 as_fn_error $? "missing argument to $ac_option" 1218fi 1219 1220if test -n "$ac_unrecognized_opts"; then 1221 case $enable_option_checking in 1222 no) ;; 1223 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1224 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1225 esac 1226fi 1227 1228# Check all directory arguments for consistency. 1229for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1230 datadir sysconfdir sharedstatedir localstatedir includedir \ 1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1232 libdir localedir mandir runstatedir 1233do 1234 eval ac_val=\$$ac_var 1235 # Remove trailing slashes. 1236 case $ac_val in 1237 */ ) 1238 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1239 eval $ac_var=\$ac_val;; 1240 esac 1241 # Be sure to have absolute directory names. 1242 case $ac_val in 1243 [\\/$]* | ?:[\\/]* ) continue;; 1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1245 esac 1246 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1247done 1248 1249# There might be people who depend on the old broken behavior: `$host' 1250# used to hold the argument of --host etc. 1251# FIXME: To remove some day. 1252build=$build_alias 1253host=$host_alias 1254target=$target_alias 1255 1256# FIXME: To remove some day. 1257if test "x$host_alias" != x; then 1258 if test "x$build_alias" = x; then 1259 cross_compiling=maybe 1260 elif test "x$build_alias" != "x$host_alias"; then 1261 cross_compiling=yes 1262 fi 1263fi 1264 1265ac_tool_prefix= 1266test -n "$host_alias" && ac_tool_prefix=$host_alias- 1267 1268test "$silent" = yes && exec 6>/dev/null 1269 1270 1271ac_pwd=`pwd` && test -n "$ac_pwd" && 1272ac_ls_di=`ls -di .` && 1273ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1274 as_fn_error $? "working directory cannot be determined" 1275test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1276 as_fn_error $? "pwd does not report name of working directory" 1277 1278 1279# Find the source files, if location was not specified. 1280if test -z "$srcdir"; then 1281 ac_srcdir_defaulted=yes 1282 # Try the directory containing this script, then the parent directory. 1283 ac_confdir=`$as_dirname -- "$as_myself" || 1284$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1285 X"$as_myself" : 'X\(//\)[^/]' \| \ 1286 X"$as_myself" : 'X\(//\)$' \| \ 1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1288printf "%s\n" X"$as_myself" | 1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1290 s//\1/ 1291 q 1292 } 1293 /^X\(\/\/\)[^/].*/{ 1294 s//\1/ 1295 q 1296 } 1297 /^X\(\/\/\)$/{ 1298 s//\1/ 1299 q 1300 } 1301 /^X\(\/\).*/{ 1302 s//\1/ 1303 q 1304 } 1305 s/.*/./; q'` 1306 srcdir=$ac_confdir 1307 if test ! -r "$srcdir/$ac_unique_file"; then 1308 srcdir=.. 1309 fi 1310else 1311 ac_srcdir_defaulted=no 1312fi 1313if test ! -r "$srcdir/$ac_unique_file"; then 1314 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1315 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1316fi 1317ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1318ac_abs_confdir=`( 1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1320 pwd)` 1321# When building in place, set srcdir=. 1322if test "$ac_abs_confdir" = "$ac_pwd"; then 1323 srcdir=. 1324fi 1325# Remove unnecessary trailing slashes from srcdir. 1326# Double slashes in file names in object file debugging info 1327# mess up M-x gdb in Emacs. 1328case $srcdir in 1329*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1330esac 1331for ac_var in $ac_precious_vars; do 1332 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1333 eval ac_env_${ac_var}_value=\$${ac_var} 1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1335 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1336done 1337 1338# 1339# Report the --help message. 1340# 1341if test "$ac_init_help" = "long"; then 1342 # Omit some internal or obsolete options to make the list less imposing. 1343 # This message is too long to be a string in the A/UX 3.1 sh. 1344 cat <<_ACEOF 1345\`configure' configures smproxy 1.0.7 to adapt to many kinds of systems. 1346 1347Usage: $0 [OPTION]... [VAR=VALUE]... 1348 1349To assign environment variables (e.g., CC, CFLAGS...), specify them as 1350VAR=VALUE. See below for descriptions of some of the useful variables. 1351 1352Defaults for the options are specified in brackets. 1353 1354Configuration: 1355 -h, --help display this help and exit 1356 --help=short display options specific to this package 1357 --help=recursive display the short help of all the included packages 1358 -V, --version display version information and exit 1359 -q, --quiet, --silent do not print \`checking ...' messages 1360 --cache-file=FILE cache test results in FILE [disabled] 1361 -C, --config-cache alias for \`--cache-file=config.cache' 1362 -n, --no-create do not create output files 1363 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1364 1365Installation directories: 1366 --prefix=PREFIX install architecture-independent files in PREFIX 1367 [$ac_default_prefix] 1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1369 [PREFIX] 1370 1371By default, \`make install' will install all the files in 1372\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1373an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1374for instance \`--prefix=\$HOME'. 1375 1376For better control, use the options below. 1377 1378Fine tuning of the installation directories: 1379 --bindir=DIR user executables [EPREFIX/bin] 1380 --sbindir=DIR system admin executables [EPREFIX/sbin] 1381 --libexecdir=DIR program executables [EPREFIX/libexec] 1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1385 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1386 --libdir=DIR object code libraries [EPREFIX/lib] 1387 --includedir=DIR C header files [PREFIX/include] 1388 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1391 --infodir=DIR info documentation [DATAROOTDIR/info] 1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1393 --mandir=DIR man documentation [DATAROOTDIR/man] 1394 --docdir=DIR documentation root [DATAROOTDIR/doc/smproxy] 1395 --htmldir=DIR html documentation [DOCDIR] 1396 --dvidir=DIR dvi documentation [DOCDIR] 1397 --pdfdir=DIR pdf documentation [DOCDIR] 1398 --psdir=DIR ps documentation [DOCDIR] 1399_ACEOF 1400 1401 cat <<\_ACEOF 1402 1403Program names: 1404 --program-prefix=PREFIX prepend PREFIX to installed program names 1405 --program-suffix=SUFFIX append SUFFIX to installed program names 1406 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1407 1408System types: 1409 --build=BUILD configure for building on BUILD [guessed] 1410 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1411_ACEOF 1412fi 1413 1414if test -n "$ac_init_help"; then 1415 case $ac_init_help in 1416 short | recursive ) echo "Configuration of smproxy 1.0.7:";; 1417 esac 1418 cat <<\_ACEOF 1419 1420Optional Features: 1421 --disable-option-checking ignore unrecognized --enable/--with options 1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1424 --enable-silent-rules less verbose build output (undo: "make V=1") 1425 --disable-silent-rules verbose build output (undo: "make V=0") 1426 --enable-dependency-tracking 1427 do not reject slow dependency extractors 1428 --disable-dependency-tracking 1429 speeds up one-time build 1430 --disable-selective-werror 1431 Turn off selective compiler errors. (default: 1432 enabled) 1433 --enable-strict-compilation 1434 Enable all warnings from compiler and make them 1435 errors (default: disabled) 1436 1437Some influential environment variables: 1438 CC C compiler command 1439 CFLAGS C compiler flags 1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1441 nonstandard directory <lib dir> 1442 LIBS libraries to pass to the linker, e.g. -l<library> 1443 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1444 you have headers in a nonstandard directory <include dir> 1445 PKG_CONFIG path to pkg-config utility 1446 PKG_CONFIG_PATH 1447 directories to add to pkg-config's search path 1448 PKG_CONFIG_LIBDIR 1449 path overriding pkg-config's built-in search path 1450 SMPROXY_CFLAGS 1451 C compiler flags for SMPROXY, overriding pkg-config 1452 SMPROXY_LIBS 1453 linker flags for SMPROXY, overriding pkg-config 1454 1455Use these variables to override the choices made by `configure' or to help 1456it to find libraries and programs with nonstandard names/locations. 1457 1458Report bugs to <https://gitlab.freedesktop.org/xorg/app/smproxy/issues>. 1459_ACEOF 1460ac_status=$? 1461fi 1462 1463if test "$ac_init_help" = "recursive"; then 1464 # If there are subdirs, report their specific --help. 1465 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1466 test -d "$ac_dir" || 1467 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1468 continue 1469 ac_builddir=. 1470 1471case "$ac_dir" in 1472.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1473*) 1474 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1475 # A ".." for each directory in $ac_dir_suffix. 1476 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1477 case $ac_top_builddir_sub in 1478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1480 esac ;; 1481esac 1482ac_abs_top_builddir=$ac_pwd 1483ac_abs_builddir=$ac_pwd$ac_dir_suffix 1484# for backward compatibility: 1485ac_top_builddir=$ac_top_build_prefix 1486 1487case $srcdir in 1488 .) # We are building in place. 1489 ac_srcdir=. 1490 ac_top_srcdir=$ac_top_builddir_sub 1491 ac_abs_top_srcdir=$ac_pwd ;; 1492 [\\/]* | ?:[\\/]* ) # Absolute name. 1493 ac_srcdir=$srcdir$ac_dir_suffix; 1494 ac_top_srcdir=$srcdir 1495 ac_abs_top_srcdir=$srcdir ;; 1496 *) # Relative name. 1497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1498 ac_top_srcdir=$ac_top_build_prefix$srcdir 1499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1500esac 1501ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1502 1503 cd "$ac_dir" || { ac_status=$?; continue; } 1504 # Check for configure.gnu first; this name is used for a wrapper for 1505 # Metaconfig's "Configure" on case-insensitive file systems. 1506 if test -f "$ac_srcdir/configure.gnu"; then 1507 echo && 1508 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1509 elif test -f "$ac_srcdir/configure"; then 1510 echo && 1511 $SHELL "$ac_srcdir/configure" --help=recursive 1512 else 1513 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1514 fi || ac_status=$? 1515 cd "$ac_pwd" || { ac_status=$?; break; } 1516 done 1517fi 1518 1519test -n "$ac_init_help" && exit $ac_status 1520if $ac_init_version; then 1521 cat <<\_ACEOF 1522smproxy configure 1.0.7 1523generated by GNU Autoconf 2.71 1524 1525Copyright (C) 2021 Free Software Foundation, Inc. 1526This configure script is free software; the Free Software Foundation 1527gives unlimited permission to copy, distribute and modify it. 1528_ACEOF 1529 exit 1530fi 1531 1532## ------------------------ ## 1533## Autoconf initialization. ## 1534## ------------------------ ## 1535 1536# ac_fn_c_try_compile LINENO 1537# -------------------------- 1538# Try to compile conftest.$ac_ext, and return whether this succeeded. 1539ac_fn_c_try_compile () 1540{ 1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1542 rm -f conftest.$ac_objext conftest.beam 1543 if { { ac_try="$ac_compile" 1544case "(($ac_try" in 1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1546 *) ac_try_echo=$ac_try;; 1547esac 1548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1549printf "%s\n" "$ac_try_echo"; } >&5 1550 (eval "$ac_compile") 2>conftest.err 1551 ac_status=$? 1552 if test -s conftest.err; then 1553 grep -v '^ *+' conftest.err >conftest.er1 1554 cat conftest.er1 >&5 1555 mv -f conftest.er1 conftest.err 1556 fi 1557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1558 test $ac_status = 0; } && { 1559 test -z "$ac_c_werror_flag" || 1560 test ! -s conftest.err 1561 } && test -s conftest.$ac_objext 1562then : 1563 ac_retval=0 1564else $as_nop 1565 printf "%s\n" "$as_me: failed program was:" >&5 1566sed 's/^/| /' conftest.$ac_ext >&5 1567 1568 ac_retval=1 1569fi 1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1571 as_fn_set_status $ac_retval 1572 1573} # ac_fn_c_try_compile 1574 1575# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1576# ------------------------------------------------------- 1577# Tests whether HEADER exists and can be compiled using the include files in 1578# INCLUDES, setting the cache variable VAR accordingly. 1579ac_fn_c_check_header_compile () 1580{ 1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1583printf %s "checking for $2... " >&6; } 1584if eval test \${$3+y} 1585then : 1586 printf %s "(cached) " >&6 1587else $as_nop 1588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1589/* end confdefs.h. */ 1590$4 1591#include <$2> 1592_ACEOF 1593if ac_fn_c_try_compile "$LINENO" 1594then : 1595 eval "$3=yes" 1596else $as_nop 1597 eval "$3=no" 1598fi 1599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1600fi 1601eval ac_res=\$$3 1602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1603printf "%s\n" "$ac_res" >&6; } 1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1605 1606} # ac_fn_c_check_header_compile 1607 1608# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1609# ------------------------------------------------------------------ 1610# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1611# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1612ac_fn_check_decl () 1613{ 1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1615 as_decl_name=`echo $2|sed 's/ *(.*//'` 1616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1617printf %s "checking whether $as_decl_name is declared... " >&6; } 1618if eval test \${$3+y} 1619then : 1620 printf %s "(cached) " >&6 1621else $as_nop 1622 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1623 eval ac_save_FLAGS=\$$6 1624 as_fn_append $6 " $5" 1625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1626/* end confdefs.h. */ 1627$4 1628int 1629main (void) 1630{ 1631#ifndef $as_decl_name 1632#ifdef __cplusplus 1633 (void) $as_decl_use; 1634#else 1635 (void) $as_decl_name; 1636#endif 1637#endif 1638 1639 ; 1640 return 0; 1641} 1642_ACEOF 1643if ac_fn_c_try_compile "$LINENO" 1644then : 1645 eval "$3=yes" 1646else $as_nop 1647 eval "$3=no" 1648fi 1649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1650 eval $6=\$ac_save_FLAGS 1651 1652fi 1653eval ac_res=\$$3 1654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1655printf "%s\n" "$ac_res" >&6; } 1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1657 1658} # ac_fn_check_decl 1659 1660# ac_fn_c_try_link LINENO 1661# ----------------------- 1662# Try to link conftest.$ac_ext, and return whether this succeeded. 1663ac_fn_c_try_link () 1664{ 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1667 if { { ac_try="$ac_link" 1668case "(($ac_try" in 1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1670 *) ac_try_echo=$ac_try;; 1671esac 1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1673printf "%s\n" "$ac_try_echo"; } >&5 1674 (eval "$ac_link") 2>conftest.err 1675 ac_status=$? 1676 if test -s conftest.err; then 1677 grep -v '^ *+' conftest.err >conftest.er1 1678 cat conftest.er1 >&5 1679 mv -f conftest.er1 conftest.err 1680 fi 1681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682 test $ac_status = 0; } && { 1683 test -z "$ac_c_werror_flag" || 1684 test ! -s conftest.err 1685 } && test -s conftest$ac_exeext && { 1686 test "$cross_compiling" = yes || 1687 test -x conftest$ac_exeext 1688 } 1689then : 1690 ac_retval=0 1691else $as_nop 1692 printf "%s\n" "$as_me: failed program was:" >&5 1693sed 's/^/| /' conftest.$ac_ext >&5 1694 1695 ac_retval=1 1696fi 1697 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1698 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1699 # interfere with the next link command; also delete a directory that is 1700 # left behind by Apple's compiler. We do this before executing the actions. 1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1703 as_fn_set_status $ac_retval 1704 1705} # ac_fn_c_try_link 1706 1707# ac_fn_c_check_func LINENO FUNC VAR 1708# ---------------------------------- 1709# Tests whether FUNC exists, setting the cache variable VAR accordingly 1710ac_fn_c_check_func () 1711{ 1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1714printf %s "checking for $2... " >&6; } 1715if eval test \${$3+y} 1716then : 1717 printf %s "(cached) " >&6 1718else $as_nop 1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1720/* end confdefs.h. */ 1721/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1722 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1723#define $2 innocuous_$2 1724 1725/* System header to define __stub macros and hopefully few prototypes, 1726 which can conflict with char $2 (); below. */ 1727 1728#include <limits.h> 1729#undef $2 1730 1731/* Override any GCC internal prototype to avoid an error. 1732 Use char because int might match the return type of a GCC 1733 builtin and then its argument prototype would still apply. */ 1734#ifdef __cplusplus 1735extern "C" 1736#endif 1737char $2 (); 1738/* The GNU C library defines this for functions which it implements 1739 to always fail with ENOSYS. Some functions are actually named 1740 something starting with __ and the normal name is an alias. */ 1741#if defined __stub_$2 || defined __stub___$2 1742choke me 1743#endif 1744 1745int 1746main (void) 1747{ 1748return $2 (); 1749 ; 1750 return 0; 1751} 1752_ACEOF 1753if ac_fn_c_try_link "$LINENO" 1754then : 1755 eval "$3=yes" 1756else $as_nop 1757 eval "$3=no" 1758fi 1759rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1760 conftest$ac_exeext conftest.$ac_ext 1761fi 1762eval ac_res=\$$3 1763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1764printf "%s\n" "$ac_res" >&6; } 1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1766 1767} # ac_fn_c_check_func 1768ac_configure_args_raw= 1769for ac_arg 1770do 1771 case $ac_arg in 1772 *\'*) 1773 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1774 esac 1775 as_fn_append ac_configure_args_raw " '$ac_arg'" 1776done 1777 1778case $ac_configure_args_raw in 1779 *$as_nl*) 1780 ac_safe_unquote= ;; 1781 *) 1782 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1783 ac_unsafe_a="$ac_unsafe_z#~" 1784 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1785 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1786esac 1787 1788cat >config.log <<_ACEOF 1789This file contains any messages produced by compilers while 1790running configure, to aid debugging if configure makes a mistake. 1791 1792It was created by smproxy $as_me 1.0.7, which was 1793generated by GNU Autoconf 2.71. Invocation command line was 1794 1795 $ $0$ac_configure_args_raw 1796 1797_ACEOF 1798exec 5>>config.log 1799{ 1800cat <<_ASUNAME 1801## --------- ## 1802## Platform. ## 1803## --------- ## 1804 1805hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1806uname -m = `(uname -m) 2>/dev/null || echo unknown` 1807uname -r = `(uname -r) 2>/dev/null || echo unknown` 1808uname -s = `(uname -s) 2>/dev/null || echo unknown` 1809uname -v = `(uname -v) 2>/dev/null || echo unknown` 1810 1811/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1812/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1813 1814/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1815/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1816/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1817/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1818/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1819/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1820/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1821 1822_ASUNAME 1823 1824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1825for as_dir in $PATH 1826do 1827 IFS=$as_save_IFS 1828 case $as_dir in #((( 1829 '') as_dir=./ ;; 1830 */) ;; 1831 *) as_dir=$as_dir/ ;; 1832 esac 1833 printf "%s\n" "PATH: $as_dir" 1834 done 1835IFS=$as_save_IFS 1836 1837} >&5 1838 1839cat >&5 <<_ACEOF 1840 1841 1842## ----------- ## 1843## Core tests. ## 1844## ----------- ## 1845 1846_ACEOF 1847 1848 1849# Keep a trace of the command line. 1850# Strip out --no-create and --no-recursion so they do not pile up. 1851# Strip out --silent because we don't want to record it for future runs. 1852# Also quote any args containing shell meta-characters. 1853# Make two passes to allow for proper duplicate-argument suppression. 1854ac_configure_args= 1855ac_configure_args0= 1856ac_configure_args1= 1857ac_must_keep_next=false 1858for ac_pass in 1 2 1859do 1860 for ac_arg 1861 do 1862 case $ac_arg in 1863 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1864 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1865 | -silent | --silent | --silen | --sile | --sil) 1866 continue ;; 1867 *\'*) 1868 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1869 esac 1870 case $ac_pass in 1871 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1872 2) 1873 as_fn_append ac_configure_args1 " '$ac_arg'" 1874 if test $ac_must_keep_next = true; then 1875 ac_must_keep_next=false # Got value, back to normal. 1876 else 1877 case $ac_arg in 1878 *=* | --config-cache | -C | -disable-* | --disable-* \ 1879 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1880 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1881 | -with-* | --with-* | -without-* | --without-* | --x) 1882 case "$ac_configure_args0 " in 1883 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1884 esac 1885 ;; 1886 -* ) ac_must_keep_next=true ;; 1887 esac 1888 fi 1889 as_fn_append ac_configure_args " '$ac_arg'" 1890 ;; 1891 esac 1892 done 1893done 1894{ ac_configure_args0=; unset ac_configure_args0;} 1895{ ac_configure_args1=; unset ac_configure_args1;} 1896 1897# When interrupted or exit'd, cleanup temporary files, and complete 1898# config.log. We remove comments because anyway the quotes in there 1899# would cause problems or look ugly. 1900# WARNING: Use '\'' to represent an apostrophe within the trap. 1901# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1902trap 'exit_status=$? 1903 # Sanitize IFS. 1904 IFS=" "" $as_nl" 1905 # Save into config.log some information that might help in debugging. 1906 { 1907 echo 1908 1909 printf "%s\n" "## ---------------- ## 1910## Cache variables. ## 1911## ---------------- ##" 1912 echo 1913 # The following way of writing the cache mishandles newlines in values, 1914( 1915 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1916 eval ac_val=\$$ac_var 1917 case $ac_val in #( 1918 *${as_nl}*) 1919 case $ac_var in #( 1920 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1921printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1922 esac 1923 case $ac_var in #( 1924 _ | IFS | as_nl) ;; #( 1925 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1926 *) { eval $ac_var=; unset $ac_var;} ;; 1927 esac ;; 1928 esac 1929 done 1930 (set) 2>&1 | 1931 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1932 *${as_nl}ac_space=\ *) 1933 sed -n \ 1934 "s/'\''/'\''\\\\'\'''\''/g; 1935 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1936 ;; #( 1937 *) 1938 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1939 ;; 1940 esac | 1941 sort 1942) 1943 echo 1944 1945 printf "%s\n" "## ----------------- ## 1946## Output variables. ## 1947## ----------------- ##" 1948 echo 1949 for ac_var in $ac_subst_vars 1950 do 1951 eval ac_val=\$$ac_var 1952 case $ac_val in 1953 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1954 esac 1955 printf "%s\n" "$ac_var='\''$ac_val'\''" 1956 done | sort 1957 echo 1958 1959 if test -n "$ac_subst_files"; then 1960 printf "%s\n" "## ------------------- ## 1961## File substitutions. ## 1962## ------------------- ##" 1963 echo 1964 for ac_var in $ac_subst_files 1965 do 1966 eval ac_val=\$$ac_var 1967 case $ac_val in 1968 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1969 esac 1970 printf "%s\n" "$ac_var='\''$ac_val'\''" 1971 done | sort 1972 echo 1973 fi 1974 1975 if test -s confdefs.h; then 1976 printf "%s\n" "## ----------- ## 1977## confdefs.h. ## 1978## ----------- ##" 1979 echo 1980 cat confdefs.h 1981 echo 1982 fi 1983 test "$ac_signal" != 0 && 1984 printf "%s\n" "$as_me: caught signal $ac_signal" 1985 printf "%s\n" "$as_me: exit $exit_status" 1986 } >&5 1987 rm -f core *.core core.conftest.* && 1988 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1989 exit $exit_status 1990' 0 1991for ac_signal in 1 2 13 15; do 1992 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1993done 1994ac_signal=0 1995 1996# confdefs.h avoids OS command line length limits that DEFS can exceed. 1997rm -f -r conftest* confdefs.h 1998 1999printf "%s\n" "/* confdefs.h */" > confdefs.h 2000 2001# Predefined preprocessor variables. 2002 2003printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2004 2005printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2006 2007printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2008 2009printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2010 2011printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2012 2013printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2014 2015 2016# Let the site file select an alternate cache file if it wants to. 2017# Prefer an explicitly selected file to automatically selected ones. 2018if test -n "$CONFIG_SITE"; then 2019 ac_site_files="$CONFIG_SITE" 2020elif test "x$prefix" != xNONE; then 2021 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2022else 2023 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2024fi 2025 2026for ac_site_file in $ac_site_files 2027do 2028 case $ac_site_file in #( 2029 */*) : 2030 ;; #( 2031 *) : 2032 ac_site_file=./$ac_site_file ;; 2033esac 2034 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2036printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2037 sed 's/^/| /' "$ac_site_file" >&5 2038 . "$ac_site_file" \ 2039 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2040printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2041as_fn_error $? "failed to load site script $ac_site_file 2042See \`config.log' for more details" "$LINENO" 5; } 2043 fi 2044done 2045 2046if test -r "$cache_file"; then 2047 # Some versions of bash will fail to source /dev/null (special files 2048 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2049 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2051printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2052 case $cache_file in 2053 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2054 *) . "./$cache_file";; 2055 esac 2056 fi 2057else 2058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2059printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2060 >$cache_file 2061fi 2062 2063as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2064# Test code for whether the C compiler supports C89 (global declarations) 2065ac_c_conftest_c89_globals=' 2066/* Does the compiler advertise C89 conformance? 2067 Do not test the value of __STDC__, because some compilers set it to 0 2068 while being otherwise adequately conformant. */ 2069#if !defined __STDC__ 2070# error "Compiler does not advertise C89 conformance" 2071#endif 2072 2073#include <stddef.h> 2074#include <stdarg.h> 2075struct stat; 2076/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2077struct buf { int x; }; 2078struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2079static char *e (p, i) 2080 char **p; 2081 int i; 2082{ 2083 return p[i]; 2084} 2085static char *f (char * (*g) (char **, int), char **p, ...) 2086{ 2087 char *s; 2088 va_list v; 2089 va_start (v,p); 2090 s = g (p, va_arg (v,int)); 2091 va_end (v); 2092 return s; 2093} 2094 2095/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2096 function prototypes and stuff, but not \xHH hex character constants. 2097 These do not provoke an error unfortunately, instead are silently treated 2098 as an "x". The following induces an error, until -std is added to get 2099 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2100 array size at least. It is necessary to write \x00 == 0 to get something 2101 that is true only with -std. */ 2102int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2103 2104/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2105 inside strings and character constants. */ 2106#define FOO(x) '\''x'\'' 2107int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2108 2109int test (int i, double x); 2110struct s1 {int (*f) (int a);}; 2111struct s2 {int (*f) (double a);}; 2112int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2113 int, int);' 2114 2115# Test code for whether the C compiler supports C89 (body of main). 2116ac_c_conftest_c89_main=' 2117ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2118' 2119 2120# Test code for whether the C compiler supports C99 (global declarations) 2121ac_c_conftest_c99_globals=' 2122// Does the compiler advertise C99 conformance? 2123#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2124# error "Compiler does not advertise C99 conformance" 2125#endif 2126 2127#include <stdbool.h> 2128extern int puts (const char *); 2129extern int printf (const char *, ...); 2130extern int dprintf (int, const char *, ...); 2131extern void *malloc (size_t); 2132 2133// Check varargs macros. These examples are taken from C99 6.10.3.5. 2134// dprintf is used instead of fprintf to avoid needing to declare 2135// FILE and stderr. 2136#define debug(...) dprintf (2, __VA_ARGS__) 2137#define showlist(...) puts (#__VA_ARGS__) 2138#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2139static void 2140test_varargs_macros (void) 2141{ 2142 int x = 1234; 2143 int y = 5678; 2144 debug ("Flag"); 2145 debug ("X = %d\n", x); 2146 showlist (The first, second, and third items.); 2147 report (x>y, "x is %d but y is %d", x, y); 2148} 2149 2150// Check long long types. 2151#define BIG64 18446744073709551615ull 2152#define BIG32 4294967295ul 2153#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2154#if !BIG_OK 2155 #error "your preprocessor is broken" 2156#endif 2157#if BIG_OK 2158#else 2159 #error "your preprocessor is broken" 2160#endif 2161static long long int bignum = -9223372036854775807LL; 2162static unsigned long long int ubignum = BIG64; 2163 2164struct incomplete_array 2165{ 2166 int datasize; 2167 double data[]; 2168}; 2169 2170struct named_init { 2171 int number; 2172 const wchar_t *name; 2173 double average; 2174}; 2175 2176typedef const char *ccp; 2177 2178static inline int 2179test_restrict (ccp restrict text) 2180{ 2181 // See if C++-style comments work. 2182 // Iterate through items via the restricted pointer. 2183 // Also check for declarations in for loops. 2184 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2185 continue; 2186 return 0; 2187} 2188 2189// Check varargs and va_copy. 2190static bool 2191test_varargs (const char *format, ...) 2192{ 2193 va_list args; 2194 va_start (args, format); 2195 va_list args_copy; 2196 va_copy (args_copy, args); 2197 2198 const char *str = ""; 2199 int number = 0; 2200 float fnumber = 0; 2201 2202 while (*format) 2203 { 2204 switch (*format++) 2205 { 2206 case '\''s'\'': // string 2207 str = va_arg (args_copy, const char *); 2208 break; 2209 case '\''d'\'': // int 2210 number = va_arg (args_copy, int); 2211 break; 2212 case '\''f'\'': // float 2213 fnumber = va_arg (args_copy, double); 2214 break; 2215 default: 2216 break; 2217 } 2218 } 2219 va_end (args_copy); 2220 va_end (args); 2221 2222 return *str && number && fnumber; 2223} 2224' 2225 2226# Test code for whether the C compiler supports C99 (body of main). 2227ac_c_conftest_c99_main=' 2228 // Check bool. 2229 _Bool success = false; 2230 success |= (argc != 0); 2231 2232 // Check restrict. 2233 if (test_restrict ("String literal") == 0) 2234 success = true; 2235 char *restrict newvar = "Another string"; 2236 2237 // Check varargs. 2238 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2239 test_varargs_macros (); 2240 2241 // Check flexible array members. 2242 struct incomplete_array *ia = 2243 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2244 ia->datasize = 10; 2245 for (int i = 0; i < ia->datasize; ++i) 2246 ia->data[i] = i * 1.234; 2247 2248 // Check named initializers. 2249 struct named_init ni = { 2250 .number = 34, 2251 .name = L"Test wide string", 2252 .average = 543.34343, 2253 }; 2254 2255 ni.number = 58; 2256 2257 int dynamic_array[ni.number]; 2258 dynamic_array[0] = argv[0][0]; 2259 dynamic_array[ni.number - 1] = 543; 2260 2261 // work around unused variable warnings 2262 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2263 || dynamic_array[ni.number - 1] != 543); 2264' 2265 2266# Test code for whether the C compiler supports C11 (global declarations) 2267ac_c_conftest_c11_globals=' 2268// Does the compiler advertise C11 conformance? 2269#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2270# error "Compiler does not advertise C11 conformance" 2271#endif 2272 2273// Check _Alignas. 2274char _Alignas (double) aligned_as_double; 2275char _Alignas (0) no_special_alignment; 2276extern char aligned_as_int; 2277char _Alignas (0) _Alignas (int) aligned_as_int; 2278 2279// Check _Alignof. 2280enum 2281{ 2282 int_alignment = _Alignof (int), 2283 int_array_alignment = _Alignof (int[100]), 2284 char_alignment = _Alignof (char) 2285}; 2286_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2287 2288// Check _Noreturn. 2289int _Noreturn does_not_return (void) { for (;;) continue; } 2290 2291// Check _Static_assert. 2292struct test_static_assert 2293{ 2294 int x; 2295 _Static_assert (sizeof (int) <= sizeof (long int), 2296 "_Static_assert does not work in struct"); 2297 long int y; 2298}; 2299 2300// Check UTF-8 literals. 2301#define u8 syntax error! 2302char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2303 2304// Check duplicate typedefs. 2305typedef long *long_ptr; 2306typedef long int *long_ptr; 2307typedef long_ptr long_ptr; 2308 2309// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2310struct anonymous 2311{ 2312 union { 2313 struct { int i; int j; }; 2314 struct { int k; long int l; } w; 2315 }; 2316 int m; 2317} v1; 2318' 2319 2320# Test code for whether the C compiler supports C11 (body of main). 2321ac_c_conftest_c11_main=' 2322 _Static_assert ((offsetof (struct anonymous, i) 2323 == offsetof (struct anonymous, w.k)), 2324 "Anonymous union alignment botch"); 2325 v1.i = 2; 2326 v1.w.k = 5; 2327 ok |= v1.i != 5; 2328' 2329 2330# Test code for whether the C compiler supports C11 (complete). 2331ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2332${ac_c_conftest_c99_globals} 2333${ac_c_conftest_c11_globals} 2334 2335int 2336main (int argc, char **argv) 2337{ 2338 int ok = 0; 2339 ${ac_c_conftest_c89_main} 2340 ${ac_c_conftest_c99_main} 2341 ${ac_c_conftest_c11_main} 2342 return ok; 2343} 2344" 2345 2346# Test code for whether the C compiler supports C99 (complete). 2347ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2348${ac_c_conftest_c99_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 return ok; 2357} 2358" 2359 2360# Test code for whether the C compiler supports C89 (complete). 2361ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2362 2363int 2364main (int argc, char **argv) 2365{ 2366 int ok = 0; 2367 ${ac_c_conftest_c89_main} 2368 return ok; 2369} 2370" 2371 2372as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2373as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2374as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2375as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2376as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2377as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2378as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2379as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2380as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2381as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2382 2383# Auxiliary files required by this configure script. 2384ac_aux_files="config.guess config.sub compile missing install-sh" 2385 2386# Locations in which to look for auxiliary files. 2387ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2388 2389# Search for a directory containing all of the required auxiliary files, 2390# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2391# If we don't find one directory that contains all the files we need, 2392# we report the set of missing files from the *first* directory in 2393# $ac_aux_dir_candidates and give up. 2394ac_missing_aux_files="" 2395ac_first_candidate=: 2396printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2398as_found=false 2399for as_dir in $ac_aux_dir_candidates 2400do 2401 IFS=$as_save_IFS 2402 case $as_dir in #((( 2403 '') as_dir=./ ;; 2404 */) ;; 2405 *) as_dir=$as_dir/ ;; 2406 esac 2407 as_found=: 2408 2409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2410 ac_aux_dir_found=yes 2411 ac_install_sh= 2412 for ac_aux in $ac_aux_files 2413 do 2414 # As a special case, if "install-sh" is required, that requirement 2415 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2416 # and $ac_install_sh is set appropriately for whichever one is found. 2417 if test x"$ac_aux" = x"install-sh" 2418 then 2419 if test -f "${as_dir}install-sh"; then 2420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2421 ac_install_sh="${as_dir}install-sh -c" 2422 elif test -f "${as_dir}install.sh"; then 2423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2424 ac_install_sh="${as_dir}install.sh -c" 2425 elif test -f "${as_dir}shtool"; then 2426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2427 ac_install_sh="${as_dir}shtool install -c" 2428 else 2429 ac_aux_dir_found=no 2430 if $ac_first_candidate; then 2431 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2432 else 2433 break 2434 fi 2435 fi 2436 else 2437 if test -f "${as_dir}${ac_aux}"; then 2438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2439 else 2440 ac_aux_dir_found=no 2441 if $ac_first_candidate; then 2442 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2443 else 2444 break 2445 fi 2446 fi 2447 fi 2448 done 2449 if test "$ac_aux_dir_found" = yes; then 2450 ac_aux_dir="$as_dir" 2451 break 2452 fi 2453 ac_first_candidate=false 2454 2455 as_found=false 2456done 2457IFS=$as_save_IFS 2458if $as_found 2459then : 2460 2461else $as_nop 2462 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2463fi 2464 2465 2466# These three variables are undocumented and unsupported, 2467# and are intended to be withdrawn in a future Autoconf release. 2468# They can cause serious problems if a builder's source tree is in a directory 2469# whose full name contains unusual characters. 2470if test -f "${ac_aux_dir}config.guess"; then 2471 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2472fi 2473if test -f "${ac_aux_dir}config.sub"; then 2474 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2475fi 2476if test -f "$ac_aux_dir/configure"; then 2477 ac_configure="$SHELL ${ac_aux_dir}configure" 2478fi 2479 2480# Check that the precious variables saved in the cache have kept the same 2481# value. 2482ac_cache_corrupted=false 2483for ac_var in $ac_precious_vars; do 2484 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2485 eval ac_new_set=\$ac_env_${ac_var}_set 2486 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2487 eval ac_new_val=\$ac_env_${ac_var}_value 2488 case $ac_old_set,$ac_new_set in 2489 set,) 2490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2491printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2492 ac_cache_corrupted=: ;; 2493 ,set) 2494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2495printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2496 ac_cache_corrupted=: ;; 2497 ,);; 2498 *) 2499 if test "x$ac_old_val" != "x$ac_new_val"; then 2500 # differences in whitespace do not lead to failure. 2501 ac_old_val_w=`echo x $ac_old_val` 2502 ac_new_val_w=`echo x $ac_new_val` 2503 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2505printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2506 ac_cache_corrupted=: 2507 else 2508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2509printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2510 eval $ac_var=\$ac_old_val 2511 fi 2512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2513printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2515printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2516 fi;; 2517 esac 2518 # Pass precious variables to config.status. 2519 if test "$ac_new_set" = set; then 2520 case $ac_new_val in 2521 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2522 *) ac_arg=$ac_var=$ac_new_val ;; 2523 esac 2524 case " $ac_configure_args " in 2525 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2526 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2527 esac 2528 fi 2529done 2530if $ac_cache_corrupted; then 2531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2532printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2534printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2535 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2536 and start over" "$LINENO" 5 2537fi 2538## -------------------- ## 2539## Main body of script. ## 2540## -------------------- ## 2541 2542ac_ext=c 2543ac_cpp='$CPP $CPPFLAGS' 2544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2546ac_compiler_gnu=$ac_cv_c_compiler_gnu 2547 2548 2549 2550ac_config_headers="$ac_config_headers config.h" 2551 2552 2553# Initialize Automake 2554am__api_version='1.16' 2555 2556 2557 2558 # Find a good install program. We prefer a C program (faster), 2559# so one script is as good as another. But avoid the broken or 2560# incompatible versions: 2561# SysV /etc/install, /usr/sbin/install 2562# SunOS /usr/etc/install 2563# IRIX /sbin/install 2564# AIX /bin/install 2565# AmigaOS /C/install, which installs bootblocks on floppy discs 2566# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2567# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2568# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2569# OS/2's system install, which has a completely different semantic 2570# ./install, which can be erroneously created by make from ./install.sh. 2571# Reject install programs that cannot install multiple files. 2572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2573printf %s "checking for a BSD-compatible install... " >&6; } 2574if test -z "$INSTALL"; then 2575if test ${ac_cv_path_install+y} 2576then : 2577 printf %s "(cached) " >&6 2578else $as_nop 2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2580for as_dir in $PATH 2581do 2582 IFS=$as_save_IFS 2583 case $as_dir in #((( 2584 '') as_dir=./ ;; 2585 */) ;; 2586 *) as_dir=$as_dir/ ;; 2587 esac 2588 # Account for fact that we put trailing slashes in our PATH walk. 2589case $as_dir in #(( 2590 ./ | /[cC]/* | \ 2591 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2592 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2593 /usr/ucb/* ) ;; 2594 *) 2595 # OSF1 and SCO ODT 3.0 have their own names for install. 2596 # Don't use installbsd from OSF since it installs stuff as root 2597 # by default. 2598 for ac_prog in ginstall scoinst install; do 2599 for ac_exec_ext in '' $ac_executable_extensions; do 2600 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2601 if test $ac_prog = install && 2602 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2603 # AIX install. It has an incompatible calling convention. 2604 : 2605 elif test $ac_prog = install && 2606 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2607 # program-specific install script used by HP pwplus--don't use. 2608 : 2609 else 2610 rm -rf conftest.one conftest.two conftest.dir 2611 echo one > conftest.one 2612 echo two > conftest.two 2613 mkdir conftest.dir 2614 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2615 test -s conftest.one && test -s conftest.two && 2616 test -s conftest.dir/conftest.one && 2617 test -s conftest.dir/conftest.two 2618 then 2619 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2620 break 3 2621 fi 2622 fi 2623 fi 2624 done 2625 done 2626 ;; 2627esac 2628 2629 done 2630IFS=$as_save_IFS 2631 2632rm -rf conftest.one conftest.two conftest.dir 2633 2634fi 2635 if test ${ac_cv_path_install+y}; then 2636 INSTALL=$ac_cv_path_install 2637 else 2638 # As a last resort, use the slow shell script. Don't cache a 2639 # value for INSTALL within a source directory, because that will 2640 # break other packages using the cache if that directory is 2641 # removed, or if the value is a relative name. 2642 INSTALL=$ac_install_sh 2643 fi 2644fi 2645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2646printf "%s\n" "$INSTALL" >&6; } 2647 2648# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2649# It thinks the first close brace ends the variable substitution. 2650test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2651 2652test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2653 2654test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2655 2656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2657printf %s "checking whether build environment is sane... " >&6; } 2658# Reject unsafe characters in $srcdir or the absolute working directory 2659# name. Accept space and tab only in the latter. 2660am_lf=' 2661' 2662case `pwd` in 2663 *[\\\"\#\$\&\'\`$am_lf]*) 2664 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2665esac 2666case $srcdir in 2667 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2668 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2669esac 2670 2671# Do 'set' in a subshell so we don't clobber the current shell's 2672# arguments. Must try -L first in case configure is actually a 2673# symlink; some systems play weird games with the mod time of symlinks 2674# (eg FreeBSD returns the mod time of the symlink's containing 2675# directory). 2676if ( 2677 am_has_slept=no 2678 for am_try in 1 2; do 2679 echo "timestamp, slept: $am_has_slept" > conftest.file 2680 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2681 if test "$*" = "X"; then 2682 # -L didn't work. 2683 set X `ls -t "$srcdir/configure" conftest.file` 2684 fi 2685 if test "$*" != "X $srcdir/configure conftest.file" \ 2686 && test "$*" != "X conftest.file $srcdir/configure"; then 2687 2688 # If neither matched, then we have a broken ls. This can happen 2689 # if, for instance, CONFIG_SHELL is bash and it inherits a 2690 # broken ls alias from the environment. This has actually 2691 # happened. Such a system could not be considered "sane". 2692 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2693 alias in your environment" "$LINENO" 5 2694 fi 2695 if test "$2" = conftest.file || test $am_try -eq 2; then 2696 break 2697 fi 2698 # Just in case. 2699 sleep 1 2700 am_has_slept=yes 2701 done 2702 test "$2" = conftest.file 2703 ) 2704then 2705 # Ok. 2706 : 2707else 2708 as_fn_error $? "newly created file is older than distributed files! 2709Check your system clock" "$LINENO" 5 2710fi 2711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2712printf "%s\n" "yes" >&6; } 2713# If we didn't sleep, we still need to ensure time stamps of config.status and 2714# generated files are strictly newer. 2715am_sleep_pid= 2716if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2717 ( sleep 1 ) & 2718 am_sleep_pid=$! 2719fi 2720 2721rm -f conftest.file 2722 2723test "$program_prefix" != NONE && 2724 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2725# Use a double $ so make ignores it. 2726test "$program_suffix" != NONE && 2727 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2728# Double any \ or $. 2729# By default was `s,x,x', remove it if useless. 2730ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2731program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2732 2733 2734# Expand $ac_aux_dir to an absolute path. 2735am_aux_dir=`cd "$ac_aux_dir" && pwd` 2736 2737 2738 if test x"${MISSING+set}" != xset; then 2739 MISSING="\${SHELL} '$am_aux_dir/missing'" 2740fi 2741# Use eval to expand $SHELL 2742if eval "$MISSING --is-lightweight"; then 2743 am_missing_run="$MISSING " 2744else 2745 am_missing_run= 2746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2747printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2748fi 2749 2750if test x"${install_sh+set}" != xset; then 2751 case $am_aux_dir in 2752 *\ * | *\ *) 2753 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2754 *) 2755 install_sh="\${SHELL} $am_aux_dir/install-sh" 2756 esac 2757fi 2758 2759# Installed binaries are usually stripped using 'strip' when the user 2760# run "make install-strip". However 'strip' might not be the right 2761# tool to use in cross-compilation environments, therefore Automake 2762# will honor the 'STRIP' environment variable to overrule this program. 2763if test "$cross_compiling" != no; then 2764 if test -n "$ac_tool_prefix"; then 2765 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2766set dummy ${ac_tool_prefix}strip; ac_word=$2 2767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2768printf %s "checking for $ac_word... " >&6; } 2769if test ${ac_cv_prog_STRIP+y} 2770then : 2771 printf %s "(cached) " >&6 2772else $as_nop 2773 if test -n "$STRIP"; then 2774 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2775else 2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2777for as_dir in $PATH 2778do 2779 IFS=$as_save_IFS 2780 case $as_dir in #((( 2781 '') as_dir=./ ;; 2782 */) ;; 2783 *) as_dir=$as_dir/ ;; 2784 esac 2785 for ac_exec_ext in '' $ac_executable_extensions; do 2786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2787 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2789 break 2 2790 fi 2791done 2792 done 2793IFS=$as_save_IFS 2794 2795fi 2796fi 2797STRIP=$ac_cv_prog_STRIP 2798if test -n "$STRIP"; then 2799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2800printf "%s\n" "$STRIP" >&6; } 2801else 2802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2803printf "%s\n" "no" >&6; } 2804fi 2805 2806 2807fi 2808if test -z "$ac_cv_prog_STRIP"; then 2809 ac_ct_STRIP=$STRIP 2810 # Extract the first word of "strip", so it can be a program name with args. 2811set dummy strip; ac_word=$2 2812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2813printf %s "checking for $ac_word... " >&6; } 2814if test ${ac_cv_prog_ac_ct_STRIP+y} 2815then : 2816 printf %s "(cached) " >&6 2817else $as_nop 2818 if test -n "$ac_ct_STRIP"; then 2819 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2820else 2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2822for as_dir in $PATH 2823do 2824 IFS=$as_save_IFS 2825 case $as_dir in #((( 2826 '') as_dir=./ ;; 2827 */) ;; 2828 *) as_dir=$as_dir/ ;; 2829 esac 2830 for ac_exec_ext in '' $ac_executable_extensions; do 2831 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2832 ac_cv_prog_ac_ct_STRIP="strip" 2833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2834 break 2 2835 fi 2836done 2837 done 2838IFS=$as_save_IFS 2839 2840fi 2841fi 2842ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2843if test -n "$ac_ct_STRIP"; then 2844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2845printf "%s\n" "$ac_ct_STRIP" >&6; } 2846else 2847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2848printf "%s\n" "no" >&6; } 2849fi 2850 2851 if test "x$ac_ct_STRIP" = x; then 2852 STRIP=":" 2853 else 2854 case $cross_compiling:$ac_tool_warned in 2855yes:) 2856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2857printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2858ac_tool_warned=yes ;; 2859esac 2860 STRIP=$ac_ct_STRIP 2861 fi 2862else 2863 STRIP="$ac_cv_prog_STRIP" 2864fi 2865 2866fi 2867INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2868 2869 2870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2871printf %s "checking for a race-free mkdir -p... " >&6; } 2872if test -z "$MKDIR_P"; then 2873 if test ${ac_cv_path_mkdir+y} 2874then : 2875 printf %s "(cached) " >&6 2876else $as_nop 2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2878for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2879do 2880 IFS=$as_save_IFS 2881 case $as_dir in #((( 2882 '') as_dir=./ ;; 2883 */) ;; 2884 *) as_dir=$as_dir/ ;; 2885 esac 2886 for ac_prog in mkdir gmkdir; do 2887 for ac_exec_ext in '' $ac_executable_extensions; do 2888 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2889 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2890 'mkdir ('*'coreutils) '* | \ 2891 'BusyBox '* | \ 2892 'mkdir (fileutils) '4.1*) 2893 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2894 break 3;; 2895 esac 2896 done 2897 done 2898 done 2899IFS=$as_save_IFS 2900 2901fi 2902 2903 test -d ./--version && rmdir ./--version 2904 if test ${ac_cv_path_mkdir+y}; then 2905 MKDIR_P="$ac_cv_path_mkdir -p" 2906 else 2907 # As a last resort, use the slow shell script. Don't cache a 2908 # value for MKDIR_P within a source directory, because that will 2909 # break other packages using the cache if that directory is 2910 # removed, or if the value is a relative name. 2911 MKDIR_P="$ac_install_sh -d" 2912 fi 2913fi 2914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2915printf "%s\n" "$MKDIR_P" >&6; } 2916 2917for ac_prog in gawk mawk nawk awk 2918do 2919 # Extract the first word of "$ac_prog", so it can be a program name with args. 2920set dummy $ac_prog; ac_word=$2 2921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2922printf %s "checking for $ac_word... " >&6; } 2923if test ${ac_cv_prog_AWK+y} 2924then : 2925 printf %s "(cached) " >&6 2926else $as_nop 2927 if test -n "$AWK"; then 2928 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2929else 2930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2931for as_dir in $PATH 2932do 2933 IFS=$as_save_IFS 2934 case $as_dir in #((( 2935 '') as_dir=./ ;; 2936 */) ;; 2937 *) as_dir=$as_dir/ ;; 2938 esac 2939 for ac_exec_ext in '' $ac_executable_extensions; do 2940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2941 ac_cv_prog_AWK="$ac_prog" 2942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2943 break 2 2944 fi 2945done 2946 done 2947IFS=$as_save_IFS 2948 2949fi 2950fi 2951AWK=$ac_cv_prog_AWK 2952if test -n "$AWK"; then 2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2954printf "%s\n" "$AWK" >&6; } 2955else 2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2957printf "%s\n" "no" >&6; } 2958fi 2959 2960 2961 test -n "$AWK" && break 2962done 2963 2964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2965printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2966set x ${MAKE-make} 2967ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2968if eval test \${ac_cv_prog_make_${ac_make}_set+y} 2969then : 2970 printf %s "(cached) " >&6 2971else $as_nop 2972 cat >conftest.make <<\_ACEOF 2973SHELL = /bin/sh 2974all: 2975 @echo '@@@%%%=$(MAKE)=@@@%%%' 2976_ACEOF 2977# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2978case `${MAKE-make} -f conftest.make 2>/dev/null` in 2979 *@@@%%%=?*=@@@%%%*) 2980 eval ac_cv_prog_make_${ac_make}_set=yes;; 2981 *) 2982 eval ac_cv_prog_make_${ac_make}_set=no;; 2983esac 2984rm -f conftest.make 2985fi 2986if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2988printf "%s\n" "yes" >&6; } 2989 SET_MAKE= 2990else 2991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2992printf "%s\n" "no" >&6; } 2993 SET_MAKE="MAKE=${MAKE-make}" 2994fi 2995 2996rm -rf .tst 2>/dev/null 2997mkdir .tst 2>/dev/null 2998if test -d .tst; then 2999 am__leading_dot=. 3000else 3001 am__leading_dot=_ 3002fi 3003rmdir .tst 2>/dev/null 3004 3005# Check whether --enable-silent-rules was given. 3006if test ${enable_silent_rules+y} 3007then : 3008 enableval=$enable_silent_rules; 3009fi 3010 3011case $enable_silent_rules in # ((( 3012 yes) AM_DEFAULT_VERBOSITY=0;; 3013 no) AM_DEFAULT_VERBOSITY=1;; 3014 *) AM_DEFAULT_VERBOSITY=1;; 3015esac 3016am_make=${MAKE-make} 3017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3018printf %s "checking whether $am_make supports nested variables... " >&6; } 3019if test ${am_cv_make_support_nested_variables+y} 3020then : 3021 printf %s "(cached) " >&6 3022else $as_nop 3023 if printf "%s\n" 'TRUE=$(BAR$(V)) 3024BAR0=false 3025BAR1=true 3026V=1 3027am__doit: 3028 @$(TRUE) 3029.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3030 am_cv_make_support_nested_variables=yes 3031else 3032 am_cv_make_support_nested_variables=no 3033fi 3034fi 3035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3036printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3037if test $am_cv_make_support_nested_variables = yes; then 3038 AM_V='$(V)' 3039 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3040else 3041 AM_V=$AM_DEFAULT_VERBOSITY 3042 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3043fi 3044AM_BACKSLASH='\' 3045 3046if test "`cd $srcdir && pwd`" != "`pwd`"; then 3047 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3048 # is not polluted with repeated "-I." 3049 am__isrc=' -I$(srcdir)' 3050 # test to see if srcdir already configured 3051 if test -f $srcdir/config.status; then 3052 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3053 fi 3054fi 3055 3056# test whether we have cygpath 3057if test -z "$CYGPATH_W"; then 3058 if (cygpath --version) >/dev/null 2>/dev/null; then 3059 CYGPATH_W='cygpath -w' 3060 else 3061 CYGPATH_W=echo 3062 fi 3063fi 3064 3065 3066# Define the identity of the package. 3067 PACKAGE='smproxy' 3068 VERSION='1.0.7' 3069 3070 3071printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3072 3073 3074printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3075 3076# Some tools Automake needs. 3077 3078ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3079 3080 3081AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3082 3083 3084AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3085 3086 3087AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3088 3089 3090MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3091 3092# For better backward compatibility. To be removed once Automake 1.9.x 3093# dies out for good. For more background, see: 3094# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3095# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3096mkdir_p='$(MKDIR_P)' 3097 3098# We need awk for the "check" target (and possibly the TAP driver). The 3099# system "awk" is bad on some platforms. 3100# Always define AMTAR for backward compatibility. Yes, it's still used 3101# in the wild :-( We should find a proper way to deprecate it ... 3102AMTAR='$${TAR-tar}' 3103 3104 3105# We'll loop over all known methods to create a tar archive until one works. 3106_am_tools='gnutar pax cpio none' 3107 3108am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3109 3110 3111 3112 3113 3114# Variables for tags utilities; see am/tags.am 3115if test -z "$CTAGS"; then 3116 CTAGS=ctags 3117fi 3118 3119if test -z "$ETAGS"; then 3120 ETAGS=etags 3121fi 3122 3123if test -z "$CSCOPE"; then 3124 CSCOPE=cscope 3125fi 3126 3127 3128 3129# POSIX will say in a future version that running "rm -f" with no argument 3130# is OK; and we want to be able to make that assumption in our Makefile 3131# recipes. So use an aggressive probe to check that the usage we want is 3132# actually supported "in the wild" to an acceptable degree. 3133# See automake bug#10828. 3134# To make any issue more visible, cause the running configure to be aborted 3135# by default if the 'rm' program in use doesn't match our expectations; the 3136# user can still override this though. 3137if rm -f && rm -fr && rm -rf; then : OK; else 3138 cat >&2 <<'END' 3139Oops! 3140 3141Your 'rm' program seems unable to run without file operands specified 3142on the command line, even when the '-f' option is present. This is contrary 3143to the behaviour of most rm programs out there, and not conforming with 3144the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3145 3146Please tell bug-automake@gnu.org about your system, including the value 3147of your $PATH and any error possibly output before this message. This 3148can help us improve future automake versions. 3149 3150END 3151 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3152 echo 'Configuration will proceed anyway, since you have set the' >&2 3153 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3154 echo >&2 3155 else 3156 cat >&2 <<'END' 3157Aborting the configuration process, to ensure you take notice of the issue. 3158 3159You can download and install GNU coreutils to get an 'rm' implementation 3160that behaves properly: <https://www.gnu.org/software/coreutils/>. 3161 3162If you want to complete the configuration process using your problematic 3163'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3164to "yes", and re-run configure. 3165 3166END 3167 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3168 fi 3169fi 3170 3171 3172# Set common system defines for POSIX extensions, such as _GNU_SOURCE 3173# Must be called before any macros that run the compiler (like 3174# AC_PROG_LIBTOOL or XORG_DEFAULT_OPTIONS) to avoid autoconf errors. 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184DEPDIR="${am__leading_dot}deps" 3185 3186ac_config_commands="$ac_config_commands depfiles" 3187 3188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3189printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3190cat > confinc.mk << 'END' 3191am__doit: 3192 @echo this is the am__doit target >confinc.out 3193.PHONY: am__doit 3194END 3195am__include="#" 3196am__quote= 3197# BSD make does it like this. 3198echo '.include "confinc.mk" # ignored' > confmf.BSD 3199# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3200echo 'include confinc.mk # ignored' > confmf.GNU 3201_am_result=no 3202for s in GNU BSD; do 3203 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3204 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3205 ac_status=$? 3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3207 (exit $ac_status); } 3208 case $?:`cat confinc.out 2>/dev/null` in #( 3209 '0:this is the am__doit target') : 3210 case $s in #( 3211 BSD) : 3212 am__include='.include' am__quote='"' ;; #( 3213 *) : 3214 am__include='include' am__quote='' ;; 3215esac ;; #( 3216 *) : 3217 ;; 3218esac 3219 if test "$am__include" != "#"; then 3220 _am_result="yes ($s style)" 3221 break 3222 fi 3223done 3224rm -f confinc.* confmf.* 3225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3226printf "%s\n" "${_am_result}" >&6; } 3227 3228# Check whether --enable-dependency-tracking was given. 3229if test ${enable_dependency_tracking+y} 3230then : 3231 enableval=$enable_dependency_tracking; 3232fi 3233 3234if test "x$enable_dependency_tracking" != xno; then 3235 am_depcomp="$ac_aux_dir/depcomp" 3236 AMDEPBACKSLASH='\' 3237 am__nodep='_no' 3238fi 3239 if test "x$enable_dependency_tracking" != xno; then 3240 AMDEP_TRUE= 3241 AMDEP_FALSE='#' 3242else 3243 AMDEP_TRUE='#' 3244 AMDEP_FALSE= 3245fi 3246 3247 3248ac_ext=c 3249ac_cpp='$CPP $CPPFLAGS' 3250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3252ac_compiler_gnu=$ac_cv_c_compiler_gnu 3253if test -n "$ac_tool_prefix"; then 3254 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3255set dummy ${ac_tool_prefix}gcc; ac_word=$2 3256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3257printf %s "checking for $ac_word... " >&6; } 3258if test ${ac_cv_prog_CC+y} 3259then : 3260 printf %s "(cached) " >&6 3261else $as_nop 3262 if test -n "$CC"; then 3263 ac_cv_prog_CC="$CC" # Let the user override the test. 3264else 3265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3266for as_dir in $PATH 3267do 3268 IFS=$as_save_IFS 3269 case $as_dir in #((( 3270 '') as_dir=./ ;; 3271 */) ;; 3272 *) as_dir=$as_dir/ ;; 3273 esac 3274 for ac_exec_ext in '' $ac_executable_extensions; do 3275 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3276 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3278 break 2 3279 fi 3280done 3281 done 3282IFS=$as_save_IFS 3283 3284fi 3285fi 3286CC=$ac_cv_prog_CC 3287if test -n "$CC"; then 3288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3289printf "%s\n" "$CC" >&6; } 3290else 3291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3292printf "%s\n" "no" >&6; } 3293fi 3294 3295 3296fi 3297if test -z "$ac_cv_prog_CC"; then 3298 ac_ct_CC=$CC 3299 # Extract the first word of "gcc", so it can be a program name with args. 3300set dummy gcc; ac_word=$2 3301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3302printf %s "checking for $ac_word... " >&6; } 3303if test ${ac_cv_prog_ac_ct_CC+y} 3304then : 3305 printf %s "(cached) " >&6 3306else $as_nop 3307 if test -n "$ac_ct_CC"; then 3308 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3309else 3310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3311for as_dir in $PATH 3312do 3313 IFS=$as_save_IFS 3314 case $as_dir in #((( 3315 '') as_dir=./ ;; 3316 */) ;; 3317 *) as_dir=$as_dir/ ;; 3318 esac 3319 for ac_exec_ext in '' $ac_executable_extensions; do 3320 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3321 ac_cv_prog_ac_ct_CC="gcc" 3322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3323 break 2 3324 fi 3325done 3326 done 3327IFS=$as_save_IFS 3328 3329fi 3330fi 3331ac_ct_CC=$ac_cv_prog_ac_ct_CC 3332if test -n "$ac_ct_CC"; then 3333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3334printf "%s\n" "$ac_ct_CC" >&6; } 3335else 3336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3337printf "%s\n" "no" >&6; } 3338fi 3339 3340 if test "x$ac_ct_CC" = x; then 3341 CC="" 3342 else 3343 case $cross_compiling:$ac_tool_warned in 3344yes:) 3345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3346printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3347ac_tool_warned=yes ;; 3348esac 3349 CC=$ac_ct_CC 3350 fi 3351else 3352 CC="$ac_cv_prog_CC" 3353fi 3354 3355if test -z "$CC"; then 3356 if test -n "$ac_tool_prefix"; then 3357 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3358set dummy ${ac_tool_prefix}cc; ac_word=$2 3359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3360printf %s "checking for $ac_word... " >&6; } 3361if test ${ac_cv_prog_CC+y} 3362then : 3363 printf %s "(cached) " >&6 3364else $as_nop 3365 if test -n "$CC"; then 3366 ac_cv_prog_CC="$CC" # Let the user override the test. 3367else 3368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3369for as_dir in $PATH 3370do 3371 IFS=$as_save_IFS 3372 case $as_dir in #((( 3373 '') as_dir=./ ;; 3374 */) ;; 3375 *) as_dir=$as_dir/ ;; 3376 esac 3377 for ac_exec_ext in '' $ac_executable_extensions; do 3378 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3379 ac_cv_prog_CC="${ac_tool_prefix}cc" 3380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3381 break 2 3382 fi 3383done 3384 done 3385IFS=$as_save_IFS 3386 3387fi 3388fi 3389CC=$ac_cv_prog_CC 3390if test -n "$CC"; then 3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3392printf "%s\n" "$CC" >&6; } 3393else 3394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3395printf "%s\n" "no" >&6; } 3396fi 3397 3398 3399 fi 3400fi 3401if test -z "$CC"; then 3402 # Extract the first word of "cc", so it can be a program name with args. 3403set dummy cc; ac_word=$2 3404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3405printf %s "checking for $ac_word... " >&6; } 3406if test ${ac_cv_prog_CC+y} 3407then : 3408 printf %s "(cached) " >&6 3409else $as_nop 3410 if test -n "$CC"; then 3411 ac_cv_prog_CC="$CC" # Let the user override the test. 3412else 3413 ac_prog_rejected=no 3414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3415for as_dir in $PATH 3416do 3417 IFS=$as_save_IFS 3418 case $as_dir in #((( 3419 '') as_dir=./ ;; 3420 */) ;; 3421 *) as_dir=$as_dir/ ;; 3422 esac 3423 for ac_exec_ext in '' $ac_executable_extensions; do 3424 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3425 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3426 ac_prog_rejected=yes 3427 continue 3428 fi 3429 ac_cv_prog_CC="cc" 3430 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3431 break 2 3432 fi 3433done 3434 done 3435IFS=$as_save_IFS 3436 3437if test $ac_prog_rejected = yes; then 3438 # We found a bogon in the path, so make sure we never use it. 3439 set dummy $ac_cv_prog_CC 3440 shift 3441 if test $# != 0; then 3442 # We chose a different compiler from the bogus one. 3443 # However, it has the same basename, so the bogon will be chosen 3444 # first if we set CC to just the basename; use the full file name. 3445 shift 3446 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3447 fi 3448fi 3449fi 3450fi 3451CC=$ac_cv_prog_CC 3452if test -n "$CC"; then 3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3454printf "%s\n" "$CC" >&6; } 3455else 3456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3457printf "%s\n" "no" >&6; } 3458fi 3459 3460 3461fi 3462if test -z "$CC"; then 3463 if test -n "$ac_tool_prefix"; then 3464 for ac_prog in cl.exe 3465 do 3466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3467set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3469printf %s "checking for $ac_word... " >&6; } 3470if test ${ac_cv_prog_CC+y} 3471then : 3472 printf %s "(cached) " >&6 3473else $as_nop 3474 if test -n "$CC"; then 3475 ac_cv_prog_CC="$CC" # Let the user override the test. 3476else 3477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3478for as_dir in $PATH 3479do 3480 IFS=$as_save_IFS 3481 case $as_dir in #((( 3482 '') as_dir=./ ;; 3483 */) ;; 3484 *) as_dir=$as_dir/ ;; 3485 esac 3486 for ac_exec_ext in '' $ac_executable_extensions; do 3487 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3488 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3490 break 2 3491 fi 3492done 3493 done 3494IFS=$as_save_IFS 3495 3496fi 3497fi 3498CC=$ac_cv_prog_CC 3499if test -n "$CC"; then 3500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3501printf "%s\n" "$CC" >&6; } 3502else 3503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3504printf "%s\n" "no" >&6; } 3505fi 3506 3507 3508 test -n "$CC" && break 3509 done 3510fi 3511if test -z "$CC"; then 3512 ac_ct_CC=$CC 3513 for ac_prog in cl.exe 3514do 3515 # Extract the first word of "$ac_prog", so it can be a program name with args. 3516set dummy $ac_prog; ac_word=$2 3517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3518printf %s "checking for $ac_word... " >&6; } 3519if test ${ac_cv_prog_ac_ct_CC+y} 3520then : 3521 printf %s "(cached) " >&6 3522else $as_nop 3523 if test -n "$ac_ct_CC"; then 3524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3525else 3526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3527for as_dir in $PATH 3528do 3529 IFS=$as_save_IFS 3530 case $as_dir in #((( 3531 '') as_dir=./ ;; 3532 */) ;; 3533 *) as_dir=$as_dir/ ;; 3534 esac 3535 for ac_exec_ext in '' $ac_executable_extensions; do 3536 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3537 ac_cv_prog_ac_ct_CC="$ac_prog" 3538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3539 break 2 3540 fi 3541done 3542 done 3543IFS=$as_save_IFS 3544 3545fi 3546fi 3547ac_ct_CC=$ac_cv_prog_ac_ct_CC 3548if test -n "$ac_ct_CC"; then 3549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3550printf "%s\n" "$ac_ct_CC" >&6; } 3551else 3552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3553printf "%s\n" "no" >&6; } 3554fi 3555 3556 3557 test -n "$ac_ct_CC" && break 3558done 3559 3560 if test "x$ac_ct_CC" = x; then 3561 CC="" 3562 else 3563 case $cross_compiling:$ac_tool_warned in 3564yes:) 3565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3566printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3567ac_tool_warned=yes ;; 3568esac 3569 CC=$ac_ct_CC 3570 fi 3571fi 3572 3573fi 3574if test -z "$CC"; then 3575 if test -n "$ac_tool_prefix"; then 3576 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3577set dummy ${ac_tool_prefix}clang; ac_word=$2 3578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3579printf %s "checking for $ac_word... " >&6; } 3580if test ${ac_cv_prog_CC+y} 3581then : 3582 printf %s "(cached) " >&6 3583else $as_nop 3584 if test -n "$CC"; then 3585 ac_cv_prog_CC="$CC" # Let the user override the test. 3586else 3587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3588for as_dir in $PATH 3589do 3590 IFS=$as_save_IFS 3591 case $as_dir in #((( 3592 '') as_dir=./ ;; 3593 */) ;; 3594 *) as_dir=$as_dir/ ;; 3595 esac 3596 for ac_exec_ext in '' $ac_executable_extensions; do 3597 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3598 ac_cv_prog_CC="${ac_tool_prefix}clang" 3599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3600 break 2 3601 fi 3602done 3603 done 3604IFS=$as_save_IFS 3605 3606fi 3607fi 3608CC=$ac_cv_prog_CC 3609if test -n "$CC"; then 3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3611printf "%s\n" "$CC" >&6; } 3612else 3613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3614printf "%s\n" "no" >&6; } 3615fi 3616 3617 3618fi 3619if test -z "$ac_cv_prog_CC"; then 3620 ac_ct_CC=$CC 3621 # Extract the first word of "clang", so it can be a program name with args. 3622set dummy clang; ac_word=$2 3623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3624printf %s "checking for $ac_word... " >&6; } 3625if test ${ac_cv_prog_ac_ct_CC+y} 3626then : 3627 printf %s "(cached) " >&6 3628else $as_nop 3629 if test -n "$ac_ct_CC"; then 3630 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3631else 3632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3633for as_dir in $PATH 3634do 3635 IFS=$as_save_IFS 3636 case $as_dir in #((( 3637 '') as_dir=./ ;; 3638 */) ;; 3639 *) as_dir=$as_dir/ ;; 3640 esac 3641 for ac_exec_ext in '' $ac_executable_extensions; do 3642 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3643 ac_cv_prog_ac_ct_CC="clang" 3644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3645 break 2 3646 fi 3647done 3648 done 3649IFS=$as_save_IFS 3650 3651fi 3652fi 3653ac_ct_CC=$ac_cv_prog_ac_ct_CC 3654if test -n "$ac_ct_CC"; then 3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3656printf "%s\n" "$ac_ct_CC" >&6; } 3657else 3658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3659printf "%s\n" "no" >&6; } 3660fi 3661 3662 if test "x$ac_ct_CC" = x; then 3663 CC="" 3664 else 3665 case $cross_compiling:$ac_tool_warned in 3666yes:) 3667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3668printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3669ac_tool_warned=yes ;; 3670esac 3671 CC=$ac_ct_CC 3672 fi 3673else 3674 CC="$ac_cv_prog_CC" 3675fi 3676 3677fi 3678 3679 3680test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3681printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3682as_fn_error $? "no acceptable C compiler found in \$PATH 3683See \`config.log' for more details" "$LINENO" 5; } 3684 3685# Provide some information about the compiler. 3686printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3687set X $ac_compile 3688ac_compiler=$2 3689for ac_option in --version -v -V -qversion -version; do 3690 { { ac_try="$ac_compiler $ac_option >&5" 3691case "(($ac_try" in 3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3693 *) ac_try_echo=$ac_try;; 3694esac 3695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3696printf "%s\n" "$ac_try_echo"; } >&5 3697 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3698 ac_status=$? 3699 if test -s conftest.err; then 3700 sed '10a\ 3701... rest of stderr output deleted ... 3702 10q' conftest.err >conftest.er1 3703 cat conftest.er1 >&5 3704 fi 3705 rm -f conftest.er1 conftest.err 3706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3707 test $ac_status = 0; } 3708done 3709 3710cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3711/* end confdefs.h. */ 3712 3713int 3714main (void) 3715{ 3716 3717 ; 3718 return 0; 3719} 3720_ACEOF 3721ac_clean_files_save=$ac_clean_files 3722ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3723# Try to create an executable without -o first, disregard a.out. 3724# It will help us diagnose broken compilers, and finding out an intuition 3725# of exeext. 3726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3727printf %s "checking whether the C compiler works... " >&6; } 3728ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3729 3730# The possible output files: 3731ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3732 3733ac_rmfiles= 3734for ac_file in $ac_files 3735do 3736 case $ac_file in 3737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3738 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3739 esac 3740done 3741rm -f $ac_rmfiles 3742 3743if { { ac_try="$ac_link_default" 3744case "(($ac_try" in 3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3746 *) ac_try_echo=$ac_try;; 3747esac 3748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3749printf "%s\n" "$ac_try_echo"; } >&5 3750 (eval "$ac_link_default") 2>&5 3751 ac_status=$? 3752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3753 test $ac_status = 0; } 3754then : 3755 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3756# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3757# in a Makefile. We should not override ac_cv_exeext if it was cached, 3758# so that the user can short-circuit this test for compilers unknown to 3759# Autoconf. 3760for ac_file in $ac_files '' 3761do 3762 test -f "$ac_file" || continue 3763 case $ac_file in 3764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3765 ;; 3766 [ab].out ) 3767 # We found the default executable, but exeext='' is most 3768 # certainly right. 3769 break;; 3770 *.* ) 3771 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3772 then :; else 3773 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3774 fi 3775 # We set ac_cv_exeext here because the later test for it is not 3776 # safe: cross compilers may not add the suffix if given an `-o' 3777 # argument, so we may need to know it at that point already. 3778 # Even if this section looks crufty: it has the advantage of 3779 # actually working. 3780 break;; 3781 * ) 3782 break;; 3783 esac 3784done 3785test "$ac_cv_exeext" = no && ac_cv_exeext= 3786 3787else $as_nop 3788 ac_file='' 3789fi 3790if test -z "$ac_file" 3791then : 3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3793printf "%s\n" "no" >&6; } 3794printf "%s\n" "$as_me: failed program was:" >&5 3795sed 's/^/| /' conftest.$ac_ext >&5 3796 3797{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3798printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3799as_fn_error 77 "C compiler cannot create executables 3800See \`config.log' for more details" "$LINENO" 5; } 3801else $as_nop 3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3803printf "%s\n" "yes" >&6; } 3804fi 3805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3806printf %s "checking for C compiler default output file name... " >&6; } 3807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3808printf "%s\n" "$ac_file" >&6; } 3809ac_exeext=$ac_cv_exeext 3810 3811rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3812ac_clean_files=$ac_clean_files_save 3813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3814printf %s "checking for suffix of executables... " >&6; } 3815if { { ac_try="$ac_link" 3816case "(($ac_try" in 3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3818 *) ac_try_echo=$ac_try;; 3819esac 3820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3821printf "%s\n" "$ac_try_echo"; } >&5 3822 (eval "$ac_link") 2>&5 3823 ac_status=$? 3824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3825 test $ac_status = 0; } 3826then : 3827 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3828# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3829# work properly (i.e., refer to `conftest.exe'), while it won't with 3830# `rm'. 3831for ac_file in conftest.exe conftest conftest.*; do 3832 test -f "$ac_file" || continue 3833 case $ac_file in 3834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3835 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3836 break;; 3837 * ) break;; 3838 esac 3839done 3840else $as_nop 3841 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3842printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3843as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3844See \`config.log' for more details" "$LINENO" 5; } 3845fi 3846rm -f conftest conftest$ac_cv_exeext 3847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3848printf "%s\n" "$ac_cv_exeext" >&6; } 3849 3850rm -f conftest.$ac_ext 3851EXEEXT=$ac_cv_exeext 3852ac_exeext=$EXEEXT 3853cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3854/* end confdefs.h. */ 3855#include <stdio.h> 3856int 3857main (void) 3858{ 3859FILE *f = fopen ("conftest.out", "w"); 3860 return ferror (f) || fclose (f) != 0; 3861 3862 ; 3863 return 0; 3864} 3865_ACEOF 3866ac_clean_files="$ac_clean_files conftest.out" 3867# Check that the compiler produces executables we can run. If not, either 3868# the compiler is broken, or we cross compile. 3869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3870printf %s "checking whether we are cross compiling... " >&6; } 3871if test "$cross_compiling" != yes; then 3872 { { ac_try="$ac_link" 3873case "(($ac_try" in 3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3875 *) ac_try_echo=$ac_try;; 3876esac 3877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3878printf "%s\n" "$ac_try_echo"; } >&5 3879 (eval "$ac_link") 2>&5 3880 ac_status=$? 3881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3882 test $ac_status = 0; } 3883 if { ac_try='./conftest$ac_cv_exeext' 3884 { { case "(($ac_try" in 3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3886 *) ac_try_echo=$ac_try;; 3887esac 3888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3889printf "%s\n" "$ac_try_echo"; } >&5 3890 (eval "$ac_try") 2>&5 3891 ac_status=$? 3892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3893 test $ac_status = 0; }; }; then 3894 cross_compiling=no 3895 else 3896 if test "$cross_compiling" = maybe; then 3897 cross_compiling=yes 3898 else 3899 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3900printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3901as_fn_error 77 "cannot run C compiled programs. 3902If you meant to cross compile, use \`--host'. 3903See \`config.log' for more details" "$LINENO" 5; } 3904 fi 3905 fi 3906fi 3907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3908printf "%s\n" "$cross_compiling" >&6; } 3909 3910rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3911ac_clean_files=$ac_clean_files_save 3912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3913printf %s "checking for suffix of object files... " >&6; } 3914if test ${ac_cv_objext+y} 3915then : 3916 printf %s "(cached) " >&6 3917else $as_nop 3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3919/* end confdefs.h. */ 3920 3921int 3922main (void) 3923{ 3924 3925 ; 3926 return 0; 3927} 3928_ACEOF 3929rm -f conftest.o conftest.obj 3930if { { ac_try="$ac_compile" 3931case "(($ac_try" in 3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3933 *) ac_try_echo=$ac_try;; 3934esac 3935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3936printf "%s\n" "$ac_try_echo"; } >&5 3937 (eval "$ac_compile") 2>&5 3938 ac_status=$? 3939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3940 test $ac_status = 0; } 3941then : 3942 for ac_file in conftest.o conftest.obj conftest.*; do 3943 test -f "$ac_file" || continue; 3944 case $ac_file in 3945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3946 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3947 break;; 3948 esac 3949done 3950else $as_nop 3951 printf "%s\n" "$as_me: failed program was:" >&5 3952sed 's/^/| /' conftest.$ac_ext >&5 3953 3954{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3955printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3956as_fn_error $? "cannot compute suffix of object files: cannot compile 3957See \`config.log' for more details" "$LINENO" 5; } 3958fi 3959rm -f conftest.$ac_cv_objext conftest.$ac_ext 3960fi 3961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3962printf "%s\n" "$ac_cv_objext" >&6; } 3963OBJEXT=$ac_cv_objext 3964ac_objext=$OBJEXT 3965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3966printf %s "checking whether the compiler supports GNU C... " >&6; } 3967if test ${ac_cv_c_compiler_gnu+y} 3968then : 3969 printf %s "(cached) " >&6 3970else $as_nop 3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3972/* end confdefs.h. */ 3973 3974int 3975main (void) 3976{ 3977#ifndef __GNUC__ 3978 choke me 3979#endif 3980 3981 ; 3982 return 0; 3983} 3984_ACEOF 3985if ac_fn_c_try_compile "$LINENO" 3986then : 3987 ac_compiler_gnu=yes 3988else $as_nop 3989 ac_compiler_gnu=no 3990fi 3991rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3992ac_cv_c_compiler_gnu=$ac_compiler_gnu 3993 3994fi 3995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3996printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3997ac_compiler_gnu=$ac_cv_c_compiler_gnu 3998 3999if test $ac_compiler_gnu = yes; then 4000 GCC=yes 4001else 4002 GCC= 4003fi 4004ac_test_CFLAGS=${CFLAGS+y} 4005ac_save_CFLAGS=$CFLAGS 4006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4007printf %s "checking whether $CC accepts -g... " >&6; } 4008if test ${ac_cv_prog_cc_g+y} 4009then : 4010 printf %s "(cached) " >&6 4011else $as_nop 4012 ac_save_c_werror_flag=$ac_c_werror_flag 4013 ac_c_werror_flag=yes 4014 ac_cv_prog_cc_g=no 4015 CFLAGS="-g" 4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4017/* end confdefs.h. */ 4018 4019int 4020main (void) 4021{ 4022 4023 ; 4024 return 0; 4025} 4026_ACEOF 4027if ac_fn_c_try_compile "$LINENO" 4028then : 4029 ac_cv_prog_cc_g=yes 4030else $as_nop 4031 CFLAGS="" 4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4033/* end confdefs.h. */ 4034 4035int 4036main (void) 4037{ 4038 4039 ; 4040 return 0; 4041} 4042_ACEOF 4043if ac_fn_c_try_compile "$LINENO" 4044then : 4045 4046else $as_nop 4047 ac_c_werror_flag=$ac_save_c_werror_flag 4048 CFLAGS="-g" 4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4050/* end confdefs.h. */ 4051 4052int 4053main (void) 4054{ 4055 4056 ; 4057 return 0; 4058} 4059_ACEOF 4060if ac_fn_c_try_compile "$LINENO" 4061then : 4062 ac_cv_prog_cc_g=yes 4063fi 4064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4065fi 4066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4067fi 4068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4069 ac_c_werror_flag=$ac_save_c_werror_flag 4070fi 4071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4072printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4073if test $ac_test_CFLAGS; then 4074 CFLAGS=$ac_save_CFLAGS 4075elif test $ac_cv_prog_cc_g = yes; then 4076 if test "$GCC" = yes; then 4077 CFLAGS="-g -O2" 4078 else 4079 CFLAGS="-g" 4080 fi 4081else 4082 if test "$GCC" = yes; then 4083 CFLAGS="-O2" 4084 else 4085 CFLAGS= 4086 fi 4087fi 4088ac_prog_cc_stdc=no 4089if test x$ac_prog_cc_stdc = xno 4090then : 4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4092printf %s "checking for $CC option to enable C11 features... " >&6; } 4093if test ${ac_cv_prog_cc_c11+y} 4094then : 4095 printf %s "(cached) " >&6 4096else $as_nop 4097 ac_cv_prog_cc_c11=no 4098ac_save_CC=$CC 4099cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4100/* end confdefs.h. */ 4101$ac_c_conftest_c11_program 4102_ACEOF 4103for ac_arg in '' -std=gnu11 4104do 4105 CC="$ac_save_CC $ac_arg" 4106 if ac_fn_c_try_compile "$LINENO" 4107then : 4108 ac_cv_prog_cc_c11=$ac_arg 4109fi 4110rm -f core conftest.err conftest.$ac_objext conftest.beam 4111 test "x$ac_cv_prog_cc_c11" != "xno" && break 4112done 4113rm -f conftest.$ac_ext 4114CC=$ac_save_CC 4115fi 4116 4117if test "x$ac_cv_prog_cc_c11" = xno 4118then : 4119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4120printf "%s\n" "unsupported" >&6; } 4121else $as_nop 4122 if test "x$ac_cv_prog_cc_c11" = x 4123then : 4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4125printf "%s\n" "none needed" >&6; } 4126else $as_nop 4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4128printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4129 CC="$CC $ac_cv_prog_cc_c11" 4130fi 4131 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4132 ac_prog_cc_stdc=c11 4133fi 4134fi 4135if test x$ac_prog_cc_stdc = xno 4136then : 4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4138printf %s "checking for $CC option to enable C99 features... " >&6; } 4139if test ${ac_cv_prog_cc_c99+y} 4140then : 4141 printf %s "(cached) " >&6 4142else $as_nop 4143 ac_cv_prog_cc_c99=no 4144ac_save_CC=$CC 4145cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4146/* end confdefs.h. */ 4147$ac_c_conftest_c99_program 4148_ACEOF 4149for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4150do 4151 CC="$ac_save_CC $ac_arg" 4152 if ac_fn_c_try_compile "$LINENO" 4153then : 4154 ac_cv_prog_cc_c99=$ac_arg 4155fi 4156rm -f core conftest.err conftest.$ac_objext conftest.beam 4157 test "x$ac_cv_prog_cc_c99" != "xno" && break 4158done 4159rm -f conftest.$ac_ext 4160CC=$ac_save_CC 4161fi 4162 4163if test "x$ac_cv_prog_cc_c99" = xno 4164then : 4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4166printf "%s\n" "unsupported" >&6; } 4167else $as_nop 4168 if test "x$ac_cv_prog_cc_c99" = x 4169then : 4170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4171printf "%s\n" "none needed" >&6; } 4172else $as_nop 4173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4174printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4175 CC="$CC $ac_cv_prog_cc_c99" 4176fi 4177 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4178 ac_prog_cc_stdc=c99 4179fi 4180fi 4181if test x$ac_prog_cc_stdc = xno 4182then : 4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4184printf %s "checking for $CC option to enable C89 features... " >&6; } 4185if test ${ac_cv_prog_cc_c89+y} 4186then : 4187 printf %s "(cached) " >&6 4188else $as_nop 4189 ac_cv_prog_cc_c89=no 4190ac_save_CC=$CC 4191cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4192/* end confdefs.h. */ 4193$ac_c_conftest_c89_program 4194_ACEOF 4195for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4196do 4197 CC="$ac_save_CC $ac_arg" 4198 if ac_fn_c_try_compile "$LINENO" 4199then : 4200 ac_cv_prog_cc_c89=$ac_arg 4201fi 4202rm -f core conftest.err conftest.$ac_objext conftest.beam 4203 test "x$ac_cv_prog_cc_c89" != "xno" && break 4204done 4205rm -f conftest.$ac_ext 4206CC=$ac_save_CC 4207fi 4208 4209if test "x$ac_cv_prog_cc_c89" = xno 4210then : 4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4212printf "%s\n" "unsupported" >&6; } 4213else $as_nop 4214 if test "x$ac_cv_prog_cc_c89" = x 4215then : 4216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4217printf "%s\n" "none needed" >&6; } 4218else $as_nop 4219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4220printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4221 CC="$CC $ac_cv_prog_cc_c89" 4222fi 4223 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4224 ac_prog_cc_stdc=c89 4225fi 4226fi 4227 4228ac_ext=c 4229ac_cpp='$CPP $CPPFLAGS' 4230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4232ac_compiler_gnu=$ac_cv_c_compiler_gnu 4233 4234 4235 ac_ext=c 4236ac_cpp='$CPP $CPPFLAGS' 4237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4239ac_compiler_gnu=$ac_cv_c_compiler_gnu 4240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4241printf %s "checking whether $CC understands -c and -o together... " >&6; } 4242if test ${am_cv_prog_cc_c_o+y} 4243then : 4244 printf %s "(cached) " >&6 4245else $as_nop 4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4247/* end confdefs.h. */ 4248 4249int 4250main (void) 4251{ 4252 4253 ; 4254 return 0; 4255} 4256_ACEOF 4257 # Make sure it works both with $CC and with simple cc. 4258 # Following AC_PROG_CC_C_O, we do the test twice because some 4259 # compilers refuse to overwrite an existing .o file with -o, 4260 # though they will create one. 4261 am_cv_prog_cc_c_o=yes 4262 for am_i in 1 2; do 4263 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4264 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4265 ac_status=$? 4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4267 (exit $ac_status); } \ 4268 && test -f conftest2.$ac_objext; then 4269 : OK 4270 else 4271 am_cv_prog_cc_c_o=no 4272 break 4273 fi 4274 done 4275 rm -f core conftest* 4276 unset am_i 4277fi 4278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4279printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4280if test "$am_cv_prog_cc_c_o" != yes; then 4281 # Losing compiler, so override with the script. 4282 # FIXME: It is wrong to rewrite CC. 4283 # But if we don't then we get into trouble of one sort or another. 4284 # A longer-term fix would be to have automake use am__CC in this case, 4285 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4286 CC="$am_aux_dir/compile $CC" 4287fi 4288ac_ext=c 4289ac_cpp='$CPP $CPPFLAGS' 4290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4292ac_compiler_gnu=$ac_cv_c_compiler_gnu 4293 4294 4295depcc="$CC" am_compiler_list= 4296 4297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4298printf %s "checking dependency style of $depcc... " >&6; } 4299if test ${am_cv_CC_dependencies_compiler_type+y} 4300then : 4301 printf %s "(cached) " >&6 4302else $as_nop 4303 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4304 # We make a subdir and do the tests there. Otherwise we can end up 4305 # making bogus files that we don't know about and never remove. For 4306 # instance it was reported that on HP-UX the gcc test will end up 4307 # making a dummy file named 'D' -- because '-MD' means "put the output 4308 # in D". 4309 rm -rf conftest.dir 4310 mkdir conftest.dir 4311 # Copy depcomp to subdir because otherwise we won't find it if we're 4312 # using a relative directory. 4313 cp "$am_depcomp" conftest.dir 4314 cd conftest.dir 4315 # We will build objects and dependencies in a subdirectory because 4316 # it helps to detect inapplicable dependency modes. For instance 4317 # both Tru64's cc and ICC support -MD to output dependencies as a 4318 # side effect of compilation, but ICC will put the dependencies in 4319 # the current directory while Tru64 will put them in the object 4320 # directory. 4321 mkdir sub 4322 4323 am_cv_CC_dependencies_compiler_type=none 4324 if test "$am_compiler_list" = ""; then 4325 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4326 fi 4327 am__universal=false 4328 case " $depcc " in #( 4329 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4330 esac 4331 4332 for depmode in $am_compiler_list; do 4333 # Setup a source with many dependencies, because some compilers 4334 # like to wrap large dependency lists on column 80 (with \), and 4335 # we should not choose a depcomp mode which is confused by this. 4336 # 4337 # We need to recreate these files for each test, as the compiler may 4338 # overwrite some of them when testing with obscure command lines. 4339 # This happens at least with the AIX C compiler. 4340 : > sub/conftest.c 4341 for i in 1 2 3 4 5 6; do 4342 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4343 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4344 # Solaris 10 /bin/sh. 4345 echo '/* dummy */' > sub/conftst$i.h 4346 done 4347 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4348 4349 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4350 # mode. It turns out that the SunPro C++ compiler does not properly 4351 # handle '-M -o', and we need to detect this. Also, some Intel 4352 # versions had trouble with output in subdirs. 4353 am__obj=sub/conftest.${OBJEXT-o} 4354 am__minus_obj="-o $am__obj" 4355 case $depmode in 4356 gcc) 4357 # This depmode causes a compiler race in universal mode. 4358 test "$am__universal" = false || continue 4359 ;; 4360 nosideeffect) 4361 # After this tag, mechanisms are not by side-effect, so they'll 4362 # only be used when explicitly requested. 4363 if test "x$enable_dependency_tracking" = xyes; then 4364 continue 4365 else 4366 break 4367 fi 4368 ;; 4369 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4370 # This compiler won't grok '-c -o', but also, the minuso test has 4371 # not run yet. These depmodes are late enough in the game, and 4372 # so weak that their functioning should not be impacted. 4373 am__obj=conftest.${OBJEXT-o} 4374 am__minus_obj= 4375 ;; 4376 none) break ;; 4377 esac 4378 if depmode=$depmode \ 4379 source=sub/conftest.c object=$am__obj \ 4380 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4381 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4382 >/dev/null 2>conftest.err && 4383 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4384 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4385 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4386 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4387 # icc doesn't choke on unknown options, it will just issue warnings 4388 # or remarks (even with -Werror). So we grep stderr for any message 4389 # that says an option was ignored or not supported. 4390 # When given -MP, icc 7.0 and 7.1 complain thusly: 4391 # icc: Command line warning: ignoring option '-M'; no argument required 4392 # The diagnosis changed in icc 8.0: 4393 # icc: Command line remark: option '-MP' not supported 4394 if (grep 'ignoring option' conftest.err || 4395 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4396 am_cv_CC_dependencies_compiler_type=$depmode 4397 break 4398 fi 4399 fi 4400 done 4401 4402 cd .. 4403 rm -rf conftest.dir 4404else 4405 am_cv_CC_dependencies_compiler_type=none 4406fi 4407 4408fi 4409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4410printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4411CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4412 4413 if 4414 test "x$enable_dependency_tracking" != xno \ 4415 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4416 am__fastdepCC_TRUE= 4417 am__fastdepCC_FALSE='#' 4418else 4419 am__fastdepCC_TRUE='#' 4420 am__fastdepCC_FALSE= 4421fi 4422 4423 4424 4425ac_header= ac_cache= 4426for ac_item in $ac_header_c_list 4427do 4428 if test $ac_cache; then 4429 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4430 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4431 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4432 fi 4433 ac_header= ac_cache= 4434 elif test $ac_header; then 4435 ac_cache=$ac_item 4436 else 4437 ac_header=$ac_item 4438 fi 4439done 4440 4441 4442 4443 4444 4445 4446 4447 4448if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4449then : 4450 4451printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4452 4453fi 4454 4455 4456 4457 4458 4459 4460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4461printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4462if test ${ac_cv_safe_to_define___extensions__+y} 4463then : 4464 printf %s "(cached) " >&6 4465else $as_nop 4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4467/* end confdefs.h. */ 4468 4469# define __EXTENSIONS__ 1 4470 $ac_includes_default 4471int 4472main (void) 4473{ 4474 4475 ; 4476 return 0; 4477} 4478_ACEOF 4479if ac_fn_c_try_compile "$LINENO" 4480then : 4481 ac_cv_safe_to_define___extensions__=yes 4482else $as_nop 4483 ac_cv_safe_to_define___extensions__=no 4484fi 4485rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4486fi 4487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4488printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 4489 4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 4491printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 4492if test ${ac_cv_should_define__xopen_source+y} 4493then : 4494 printf %s "(cached) " >&6 4495else $as_nop 4496 ac_cv_should_define__xopen_source=no 4497 if test $ac_cv_header_wchar_h = yes 4498then : 4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4500/* end confdefs.h. */ 4501 4502 #include <wchar.h> 4503 mbstate_t x; 4504int 4505main (void) 4506{ 4507 4508 ; 4509 return 0; 4510} 4511_ACEOF 4512if ac_fn_c_try_compile "$LINENO" 4513then : 4514 4515else $as_nop 4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4517/* end confdefs.h. */ 4518 4519 #define _XOPEN_SOURCE 500 4520 #include <wchar.h> 4521 mbstate_t x; 4522int 4523main (void) 4524{ 4525 4526 ; 4527 return 0; 4528} 4529_ACEOF 4530if ac_fn_c_try_compile "$LINENO" 4531then : 4532 ac_cv_should_define__xopen_source=yes 4533fi 4534rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4535fi 4536rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4537fi 4538fi 4539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 4540printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 4541 4542 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 4543 4544 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 4545 4546 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 4547 4548 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 4549 4550 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4551 4552 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4553 4554 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4555 4556 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4557 4558 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4559 4560 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4561 4562 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4563 4564 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4565 4566 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4567 4568 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4569 4570 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4571 4572 if test $ac_cv_header_minix_config_h = yes 4573then : 4574 MINIX=yes 4575 printf "%s\n" "#define _MINIX 1" >>confdefs.h 4576 4577 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4578 4579 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4580 4581else $as_nop 4582 MINIX= 4583fi 4584 if test $ac_cv_safe_to_define___extensions__ = yes 4585then : 4586 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4587 4588fi 4589 if test $ac_cv_should_define__xopen_source = yes 4590then : 4591 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4592 4593fi 4594 4595 4596# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4610printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4611if test ${ac_cv_c_undeclared_builtin_options+y} 4612then : 4613 printf %s "(cached) " >&6 4614else $as_nop 4615 ac_save_CFLAGS=$CFLAGS 4616 ac_cv_c_undeclared_builtin_options='cannot detect' 4617 for ac_arg in '' -fno-builtin; do 4618 CFLAGS="$ac_save_CFLAGS $ac_arg" 4619 # This test program should *not* compile successfully. 4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4621/* end confdefs.h. */ 4622 4623int 4624main (void) 4625{ 4626(void) strchr; 4627 ; 4628 return 0; 4629} 4630_ACEOF 4631if ac_fn_c_try_compile "$LINENO" 4632then : 4633 4634else $as_nop 4635 # This test program should compile successfully. 4636 # No library function is consistently available on 4637 # freestanding implementations, so test against a dummy 4638 # declaration. Include always-available headers on the 4639 # off chance that they somehow elicit warnings. 4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4641/* end confdefs.h. */ 4642#include <float.h> 4643#include <limits.h> 4644#include <stdarg.h> 4645#include <stddef.h> 4646extern void ac_decl (int, char *); 4647 4648int 4649main (void) 4650{ 4651(void) ac_decl (0, (char *) 0); 4652 (void) ac_decl; 4653 4654 ; 4655 return 0; 4656} 4657_ACEOF 4658if ac_fn_c_try_compile "$LINENO" 4659then : 4660 if test x"$ac_arg" = x 4661then : 4662 ac_cv_c_undeclared_builtin_options='none needed' 4663else $as_nop 4664 ac_cv_c_undeclared_builtin_options=$ac_arg 4665fi 4666 break 4667fi 4668rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4669fi 4670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4671 done 4672 CFLAGS=$ac_save_CFLAGS 4673 4674fi 4675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4676printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4677 case $ac_cv_c_undeclared_builtin_options in #( 4678 'cannot detect') : 4679 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4680printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4681as_fn_error $? "cannot make $CC report undeclared builtins 4682See \`config.log' for more details" "$LINENO" 5; } ;; #( 4683 'none needed') : 4684 ac_c_undeclared_builtin_options='' ;; #( 4685 *) : 4686 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4687esac 4688 4689 4690 4691 4692 4693ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4694if test "x$ac_cv_have_decl___clang__" = xyes 4695then : 4696 CLANGCC="yes" 4697else $as_nop 4698 CLANGCC="no" 4699fi 4700ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4701if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4702then : 4703 INTELCC="yes" 4704else $as_nop 4705 INTELCC="no" 4706fi 4707ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4708if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4709then : 4710 SUNCC="yes" 4711else $as_nop 4712 SUNCC="no" 4713fi 4714 4715 4716 4717 4718 4719 4720 4721 4722if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4723 if test -n "$ac_tool_prefix"; then 4724 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4725set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4727printf %s "checking for $ac_word... " >&6; } 4728if test ${ac_cv_path_PKG_CONFIG+y} 4729then : 4730 printf %s "(cached) " >&6 4731else $as_nop 4732 case $PKG_CONFIG in 4733 [\\/]* | ?:[\\/]*) 4734 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4735 ;; 4736 *) 4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4738for as_dir in $PATH 4739do 4740 IFS=$as_save_IFS 4741 case $as_dir in #((( 4742 '') as_dir=./ ;; 4743 */) ;; 4744 *) as_dir=$as_dir/ ;; 4745 esac 4746 for ac_exec_ext in '' $ac_executable_extensions; do 4747 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4748 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4750 break 2 4751 fi 4752done 4753 done 4754IFS=$as_save_IFS 4755 4756 ;; 4757esac 4758fi 4759PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4760if test -n "$PKG_CONFIG"; then 4761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4762printf "%s\n" "$PKG_CONFIG" >&6; } 4763else 4764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4765printf "%s\n" "no" >&6; } 4766fi 4767 4768 4769fi 4770if test -z "$ac_cv_path_PKG_CONFIG"; then 4771 ac_pt_PKG_CONFIG=$PKG_CONFIG 4772 # Extract the first word of "pkg-config", so it can be a program name with args. 4773set dummy pkg-config; ac_word=$2 4774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4775printf %s "checking for $ac_word... " >&6; } 4776if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4777then : 4778 printf %s "(cached) " >&6 4779else $as_nop 4780 case $ac_pt_PKG_CONFIG in 4781 [\\/]* | ?:[\\/]*) 4782 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4783 ;; 4784 *) 4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4786for as_dir in $PATH 4787do 4788 IFS=$as_save_IFS 4789 case $as_dir in #((( 4790 '') as_dir=./ ;; 4791 */) ;; 4792 *) as_dir=$as_dir/ ;; 4793 esac 4794 for ac_exec_ext in '' $ac_executable_extensions; do 4795 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4796 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4798 break 2 4799 fi 4800done 4801 done 4802IFS=$as_save_IFS 4803 4804 ;; 4805esac 4806fi 4807ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4808if test -n "$ac_pt_PKG_CONFIG"; then 4809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4810printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4811else 4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4813printf "%s\n" "no" >&6; } 4814fi 4815 4816 if test "x$ac_pt_PKG_CONFIG" = x; then 4817 PKG_CONFIG="" 4818 else 4819 case $cross_compiling:$ac_tool_warned in 4820yes:) 4821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4822printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4823ac_tool_warned=yes ;; 4824esac 4825 PKG_CONFIG=$ac_pt_PKG_CONFIG 4826 fi 4827else 4828 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4829fi 4830 4831fi 4832if test -n "$PKG_CONFIG"; then 4833 _pkg_min_version=0.9.0 4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4835printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4836 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4838printf "%s\n" "yes" >&6; } 4839 else 4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4841printf "%s\n" "no" >&6; } 4842 PKG_CONFIG="" 4843 fi 4844fi 4845 4846 4847 # Make sure we can run config.sub. 4848$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4849 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4850 4851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4852printf %s "checking build system type... " >&6; } 4853if test ${ac_cv_build+y} 4854then : 4855 printf %s "(cached) " >&6 4856else $as_nop 4857 ac_build_alias=$build_alias 4858test "x$ac_build_alias" = x && 4859 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4860test "x$ac_build_alias" = x && 4861 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4862ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4863 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4864 4865fi 4866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4867printf "%s\n" "$ac_cv_build" >&6; } 4868case $ac_cv_build in 4869*-*-*) ;; 4870*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4871esac 4872build=$ac_cv_build 4873ac_save_IFS=$IFS; IFS='-' 4874set x $ac_cv_build 4875shift 4876build_cpu=$1 4877build_vendor=$2 4878shift; shift 4879# Remember, the first character of IFS is used to create $*, 4880# except with old shells: 4881build_os=$* 4882IFS=$ac_save_IFS 4883case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4884 4885 4886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4887printf %s "checking host system type... " >&6; } 4888if test ${ac_cv_host+y} 4889then : 4890 printf %s "(cached) " >&6 4891else $as_nop 4892 if test "x$host_alias" = x; then 4893 ac_cv_host=$ac_cv_build 4894else 4895 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4896 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4897fi 4898 4899fi 4900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4901printf "%s\n" "$ac_cv_host" >&6; } 4902case $ac_cv_host in 4903*-*-*) ;; 4904*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4905esac 4906host=$ac_cv_host 4907ac_save_IFS=$IFS; IFS='-' 4908set x $ac_cv_host 4909shift 4910host_cpu=$1 4911host_vendor=$2 4912shift; shift 4913# Remember, the first character of IFS is used to create $*, 4914# except with old shells: 4915host_os=$* 4916IFS=$ac_save_IFS 4917case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4918 4919 4920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4921printf %s "checking for a sed that does not truncate output... " >&6; } 4922if test ${ac_cv_path_SED+y} 4923then : 4924 printf %s "(cached) " >&6 4925else $as_nop 4926 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4927 for ac_i in 1 2 3 4 5 6 7; do 4928 ac_script="$ac_script$as_nl$ac_script" 4929 done 4930 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4931 { ac_script=; unset ac_script;} 4932 if test -z "$SED"; then 4933 ac_path_SED_found=false 4934 # Loop through the user's path and test for each of PROGNAME-LIST 4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4936for as_dir in $PATH 4937do 4938 IFS=$as_save_IFS 4939 case $as_dir in #((( 4940 '') as_dir=./ ;; 4941 */) ;; 4942 *) as_dir=$as_dir/ ;; 4943 esac 4944 for ac_prog in sed gsed 4945 do 4946 for ac_exec_ext in '' $ac_executable_extensions; do 4947 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4948 as_fn_executable_p "$ac_path_SED" || continue 4949# Check for GNU ac_path_SED and select it if it is found. 4950 # Check for GNU $ac_path_SED 4951case `"$ac_path_SED" --version 2>&1` in 4952*GNU*) 4953 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4954*) 4955 ac_count=0 4956 printf %s 0123456789 >"conftest.in" 4957 while : 4958 do 4959 cat "conftest.in" "conftest.in" >"conftest.tmp" 4960 mv "conftest.tmp" "conftest.in" 4961 cp "conftest.in" "conftest.nl" 4962 printf "%s\n" '' >> "conftest.nl" 4963 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4964 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4965 as_fn_arith $ac_count + 1 && ac_count=$as_val 4966 if test $ac_count -gt ${ac_path_SED_max-0}; then 4967 # Best one so far, save it but keep looking for a better one 4968 ac_cv_path_SED="$ac_path_SED" 4969 ac_path_SED_max=$ac_count 4970 fi 4971 # 10*(2^10) chars as input seems more than enough 4972 test $ac_count -gt 10 && break 4973 done 4974 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4975esac 4976 4977 $ac_path_SED_found && break 3 4978 done 4979 done 4980 done 4981IFS=$as_save_IFS 4982 if test -z "$ac_cv_path_SED"; then 4983 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4984 fi 4985else 4986 ac_cv_path_SED=$SED 4987fi 4988 4989fi 4990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4991printf "%s\n" "$ac_cv_path_SED" >&6; } 4992 SED="$ac_cv_path_SED" 4993 rm -f conftest.sed 4994 4995 4996 4997 4998 4999 5000# Check whether --enable-selective-werror was given. 5001if test ${enable_selective_werror+y} 5002then : 5003 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5004else $as_nop 5005 SELECTIVE_WERROR=yes 5006fi 5007 5008 5009 5010 5011 5012# -v is too short to test reliably with XORG_TESTSET_CFLAG 5013if test "x$SUNCC" = "xyes"; then 5014 BASE_CFLAGS="-v" 5015else 5016 BASE_CFLAGS="" 5017fi 5018 5019# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033xorg_testset_save_CFLAGS="$CFLAGS" 5034 5035if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5038printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5039if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5040then : 5041 printf %s "(cached) " >&6 5042else $as_nop 5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5044/* end confdefs.h. */ 5045int i; 5046_ACEOF 5047if ac_fn_c_try_compile "$LINENO" 5048then : 5049 xorg_cv_cc_flag_unknown_warning_option=yes 5050else $as_nop 5051 xorg_cv_cc_flag_unknown_warning_option=no 5052fi 5053rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5054fi 5055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5056printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5058 CFLAGS="$xorg_testset_save_CFLAGS" 5059fi 5060 5061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5064 fi 5065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5067printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5068if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5069then : 5070 printf %s "(cached) " >&6 5071else $as_nop 5072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5073/* end confdefs.h. */ 5074int i; 5075_ACEOF 5076if ac_fn_c_try_compile "$LINENO" 5077then : 5078 xorg_cv_cc_flag_unused_command_line_argument=yes 5079else $as_nop 5080 xorg_cv_cc_flag_unused_command_line_argument=no 5081fi 5082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5083fi 5084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5085printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5086 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5087 CFLAGS="$xorg_testset_save_CFLAGS" 5088fi 5089 5090found="no" 5091 5092 if test $found = "no" ; then 5093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5095 fi 5096 5097 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5099 fi 5100 5101 CFLAGS="$CFLAGS -Wall" 5102 5103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5104printf %s "checking if $CC supports -Wall... " >&6; } 5105 cacheid=xorg_cv_cc_flag__Wall 5106 if eval test \${$cacheid+y} 5107then : 5108 printf %s "(cached) " >&6 5109else $as_nop 5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5111/* end confdefs.h. */ 5112int i; 5113int 5114main (void) 5115{ 5116 5117 ; 5118 return 0; 5119} 5120_ACEOF 5121if ac_fn_c_try_link "$LINENO" 5122then : 5123 eval $cacheid=yes 5124else $as_nop 5125 eval $cacheid=no 5126fi 5127rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5128 conftest$ac_exeext conftest.$ac_ext 5129fi 5130 5131 5132 CFLAGS="$xorg_testset_save_CFLAGS" 5133 5134 eval supported=\$$cacheid 5135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5136printf "%s\n" "$supported" >&6; } 5137 if test "$supported" = "yes" ; then 5138 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5139 found="yes" 5140 fi 5141 fi 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157xorg_testset_save_CFLAGS="$CFLAGS" 5158 5159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5162printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5163if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5164then : 5165 printf %s "(cached) " >&6 5166else $as_nop 5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5168/* end confdefs.h. */ 5169int i; 5170_ACEOF 5171if ac_fn_c_try_compile "$LINENO" 5172then : 5173 xorg_cv_cc_flag_unknown_warning_option=yes 5174else $as_nop 5175 xorg_cv_cc_flag_unknown_warning_option=no 5176fi 5177rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5178fi 5179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5180printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5182 CFLAGS="$xorg_testset_save_CFLAGS" 5183fi 5184 5185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5188 fi 5189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5191printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5192if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5193then : 5194 printf %s "(cached) " >&6 5195else $as_nop 5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5197/* end confdefs.h. */ 5198int i; 5199_ACEOF 5200if ac_fn_c_try_compile "$LINENO" 5201then : 5202 xorg_cv_cc_flag_unused_command_line_argument=yes 5203else $as_nop 5204 xorg_cv_cc_flag_unused_command_line_argument=no 5205fi 5206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5207fi 5208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5209printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5211 CFLAGS="$xorg_testset_save_CFLAGS" 5212fi 5213 5214found="no" 5215 5216 if test $found = "no" ; then 5217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5219 fi 5220 5221 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5223 fi 5224 5225 CFLAGS="$CFLAGS -Wpointer-arith" 5226 5227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5228printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5229 cacheid=xorg_cv_cc_flag__Wpointer_arith 5230 if eval test \${$cacheid+y} 5231then : 5232 printf %s "(cached) " >&6 5233else $as_nop 5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5235/* end confdefs.h. */ 5236int i; 5237int 5238main (void) 5239{ 5240 5241 ; 5242 return 0; 5243} 5244_ACEOF 5245if ac_fn_c_try_link "$LINENO" 5246then : 5247 eval $cacheid=yes 5248else $as_nop 5249 eval $cacheid=no 5250fi 5251rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5252 conftest$ac_exeext conftest.$ac_ext 5253fi 5254 5255 5256 CFLAGS="$xorg_testset_save_CFLAGS" 5257 5258 eval supported=\$$cacheid 5259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5260printf "%s\n" "$supported" >&6; } 5261 if test "$supported" = "yes" ; then 5262 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5263 found="yes" 5264 fi 5265 fi 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281xorg_testset_save_CFLAGS="$CFLAGS" 5282 5283if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5286printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5287if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5288then : 5289 printf %s "(cached) " >&6 5290else $as_nop 5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5292/* end confdefs.h. */ 5293int i; 5294_ACEOF 5295if ac_fn_c_try_compile "$LINENO" 5296then : 5297 xorg_cv_cc_flag_unknown_warning_option=yes 5298else $as_nop 5299 xorg_cv_cc_flag_unknown_warning_option=no 5300fi 5301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5302fi 5303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5304printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5306 CFLAGS="$xorg_testset_save_CFLAGS" 5307fi 5308 5309if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5312 fi 5313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5315printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5316if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5317then : 5318 printf %s "(cached) " >&6 5319else $as_nop 5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5321/* end confdefs.h. */ 5322int i; 5323_ACEOF 5324if ac_fn_c_try_compile "$LINENO" 5325then : 5326 xorg_cv_cc_flag_unused_command_line_argument=yes 5327else $as_nop 5328 xorg_cv_cc_flag_unused_command_line_argument=no 5329fi 5330rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5331fi 5332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5333printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5334 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5335 CFLAGS="$xorg_testset_save_CFLAGS" 5336fi 5337 5338found="no" 5339 5340 if test $found = "no" ; then 5341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5343 fi 5344 5345 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5347 fi 5348 5349 CFLAGS="$CFLAGS -Wmissing-declarations" 5350 5351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5352printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5353 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5354 if eval test \${$cacheid+y} 5355then : 5356 printf %s "(cached) " >&6 5357else $as_nop 5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5359/* end confdefs.h. */ 5360int i; 5361int 5362main (void) 5363{ 5364 5365 ; 5366 return 0; 5367} 5368_ACEOF 5369if ac_fn_c_try_link "$LINENO" 5370then : 5371 eval $cacheid=yes 5372else $as_nop 5373 eval $cacheid=no 5374fi 5375rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5376 conftest$ac_exeext conftest.$ac_ext 5377fi 5378 5379 5380 CFLAGS="$xorg_testset_save_CFLAGS" 5381 5382 eval supported=\$$cacheid 5383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5384printf "%s\n" "$supported" >&6; } 5385 if test "$supported" = "yes" ; then 5386 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5387 found="yes" 5388 fi 5389 fi 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405xorg_testset_save_CFLAGS="$CFLAGS" 5406 5407if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5410printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5411if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5412then : 5413 printf %s "(cached) " >&6 5414else $as_nop 5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5416/* end confdefs.h. */ 5417int i; 5418_ACEOF 5419if ac_fn_c_try_compile "$LINENO" 5420then : 5421 xorg_cv_cc_flag_unknown_warning_option=yes 5422else $as_nop 5423 xorg_cv_cc_flag_unknown_warning_option=no 5424fi 5425rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5426fi 5427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5428printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5429 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5430 CFLAGS="$xorg_testset_save_CFLAGS" 5431fi 5432 5433if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5436 fi 5437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5439printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5440if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5441then : 5442 printf %s "(cached) " >&6 5443else $as_nop 5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5445/* end confdefs.h. */ 5446int i; 5447_ACEOF 5448if ac_fn_c_try_compile "$LINENO" 5449then : 5450 xorg_cv_cc_flag_unused_command_line_argument=yes 5451else $as_nop 5452 xorg_cv_cc_flag_unused_command_line_argument=no 5453fi 5454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5455fi 5456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5457printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5459 CFLAGS="$xorg_testset_save_CFLAGS" 5460fi 5461 5462found="no" 5463 5464 if test $found = "no" ; then 5465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5467 fi 5468 5469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5471 fi 5472 5473 CFLAGS="$CFLAGS -Wformat=2" 5474 5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5476printf %s "checking if $CC supports -Wformat=2... " >&6; } 5477 cacheid=xorg_cv_cc_flag__Wformat_2 5478 if eval test \${$cacheid+y} 5479then : 5480 printf %s "(cached) " >&6 5481else $as_nop 5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5483/* end confdefs.h. */ 5484int i; 5485int 5486main (void) 5487{ 5488 5489 ; 5490 return 0; 5491} 5492_ACEOF 5493if ac_fn_c_try_link "$LINENO" 5494then : 5495 eval $cacheid=yes 5496else $as_nop 5497 eval $cacheid=no 5498fi 5499rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5500 conftest$ac_exeext conftest.$ac_ext 5501fi 5502 5503 5504 CFLAGS="$xorg_testset_save_CFLAGS" 5505 5506 eval supported=\$$cacheid 5507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5508printf "%s\n" "$supported" >&6; } 5509 if test "$supported" = "yes" ; then 5510 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5511 found="yes" 5512 fi 5513 fi 5514 5515 if test $found = "no" ; then 5516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5518 fi 5519 5520 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5522 fi 5523 5524 CFLAGS="$CFLAGS -Wformat" 5525 5526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5527printf %s "checking if $CC supports -Wformat... " >&6; } 5528 cacheid=xorg_cv_cc_flag__Wformat 5529 if eval test \${$cacheid+y} 5530then : 5531 printf %s "(cached) " >&6 5532else $as_nop 5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5534/* end confdefs.h. */ 5535int i; 5536int 5537main (void) 5538{ 5539 5540 ; 5541 return 0; 5542} 5543_ACEOF 5544if ac_fn_c_try_link "$LINENO" 5545then : 5546 eval $cacheid=yes 5547else $as_nop 5548 eval $cacheid=no 5549fi 5550rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5551 conftest$ac_exeext conftest.$ac_ext 5552fi 5553 5554 5555 CFLAGS="$xorg_testset_save_CFLAGS" 5556 5557 eval supported=\$$cacheid 5558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5559printf "%s\n" "$supported" >&6; } 5560 if test "$supported" = "yes" ; then 5561 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5562 found="yes" 5563 fi 5564 fi 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582xorg_testset_save_CFLAGS="$CFLAGS" 5583 5584if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5587printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5588if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5589then : 5590 printf %s "(cached) " >&6 5591else $as_nop 5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5593/* end confdefs.h. */ 5594int i; 5595_ACEOF 5596if ac_fn_c_try_compile "$LINENO" 5597then : 5598 xorg_cv_cc_flag_unknown_warning_option=yes 5599else $as_nop 5600 xorg_cv_cc_flag_unknown_warning_option=no 5601fi 5602rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5603fi 5604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5605printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5606 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5607 CFLAGS="$xorg_testset_save_CFLAGS" 5608fi 5609 5610if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5613 fi 5614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5616printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5617if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5618then : 5619 printf %s "(cached) " >&6 5620else $as_nop 5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5622/* end confdefs.h. */ 5623int i; 5624_ACEOF 5625if ac_fn_c_try_compile "$LINENO" 5626then : 5627 xorg_cv_cc_flag_unused_command_line_argument=yes 5628else $as_nop 5629 xorg_cv_cc_flag_unused_command_line_argument=no 5630fi 5631rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5632fi 5633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5634printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5635 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5636 CFLAGS="$xorg_testset_save_CFLAGS" 5637fi 5638 5639found="no" 5640 5641 if test $found = "no" ; then 5642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5644 fi 5645 5646 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5648 fi 5649 5650 CFLAGS="$CFLAGS -Wstrict-prototypes" 5651 5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5653printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5654 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5655 if eval test \${$cacheid+y} 5656then : 5657 printf %s "(cached) " >&6 5658else $as_nop 5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5660/* end confdefs.h. */ 5661int i; 5662int 5663main (void) 5664{ 5665 5666 ; 5667 return 0; 5668} 5669_ACEOF 5670if ac_fn_c_try_link "$LINENO" 5671then : 5672 eval $cacheid=yes 5673else $as_nop 5674 eval $cacheid=no 5675fi 5676rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5677 conftest$ac_exeext conftest.$ac_ext 5678fi 5679 5680 5681 CFLAGS="$xorg_testset_save_CFLAGS" 5682 5683 eval supported=\$$cacheid 5684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5685printf "%s\n" "$supported" >&6; } 5686 if test "$supported" = "yes" ; then 5687 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5688 found="yes" 5689 fi 5690 fi 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706xorg_testset_save_CFLAGS="$CFLAGS" 5707 5708if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5711printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5712if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5713then : 5714 printf %s "(cached) " >&6 5715else $as_nop 5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5717/* end confdefs.h. */ 5718int i; 5719_ACEOF 5720if ac_fn_c_try_compile "$LINENO" 5721then : 5722 xorg_cv_cc_flag_unknown_warning_option=yes 5723else $as_nop 5724 xorg_cv_cc_flag_unknown_warning_option=no 5725fi 5726rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5727fi 5728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5729printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5730 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5731 CFLAGS="$xorg_testset_save_CFLAGS" 5732fi 5733 5734if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5737 fi 5738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5740printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5741if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5742then : 5743 printf %s "(cached) " >&6 5744else $as_nop 5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5746/* end confdefs.h. */ 5747int i; 5748_ACEOF 5749if ac_fn_c_try_compile "$LINENO" 5750then : 5751 xorg_cv_cc_flag_unused_command_line_argument=yes 5752else $as_nop 5753 xorg_cv_cc_flag_unused_command_line_argument=no 5754fi 5755rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5756fi 5757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5758printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5759 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5760 CFLAGS="$xorg_testset_save_CFLAGS" 5761fi 5762 5763found="no" 5764 5765 if test $found = "no" ; then 5766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5768 fi 5769 5770 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5772 fi 5773 5774 CFLAGS="$CFLAGS -Wmissing-prototypes" 5775 5776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5777printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5778 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5779 if eval test \${$cacheid+y} 5780then : 5781 printf %s "(cached) " >&6 5782else $as_nop 5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5784/* end confdefs.h. */ 5785int i; 5786int 5787main (void) 5788{ 5789 5790 ; 5791 return 0; 5792} 5793_ACEOF 5794if ac_fn_c_try_link "$LINENO" 5795then : 5796 eval $cacheid=yes 5797else $as_nop 5798 eval $cacheid=no 5799fi 5800rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5801 conftest$ac_exeext conftest.$ac_ext 5802fi 5803 5804 5805 CFLAGS="$xorg_testset_save_CFLAGS" 5806 5807 eval supported=\$$cacheid 5808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5809printf "%s\n" "$supported" >&6; } 5810 if test "$supported" = "yes" ; then 5811 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5812 found="yes" 5813 fi 5814 fi 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830xorg_testset_save_CFLAGS="$CFLAGS" 5831 5832if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5835printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5836if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5837then : 5838 printf %s "(cached) " >&6 5839else $as_nop 5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5841/* end confdefs.h. */ 5842int i; 5843_ACEOF 5844if ac_fn_c_try_compile "$LINENO" 5845then : 5846 xorg_cv_cc_flag_unknown_warning_option=yes 5847else $as_nop 5848 xorg_cv_cc_flag_unknown_warning_option=no 5849fi 5850rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5851fi 5852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5853printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5854 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5855 CFLAGS="$xorg_testset_save_CFLAGS" 5856fi 5857 5858if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5861 fi 5862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5864printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5865if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5866then : 5867 printf %s "(cached) " >&6 5868else $as_nop 5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5870/* end confdefs.h. */ 5871int i; 5872_ACEOF 5873if ac_fn_c_try_compile "$LINENO" 5874then : 5875 xorg_cv_cc_flag_unused_command_line_argument=yes 5876else $as_nop 5877 xorg_cv_cc_flag_unused_command_line_argument=no 5878fi 5879rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5880fi 5881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5882printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5884 CFLAGS="$xorg_testset_save_CFLAGS" 5885fi 5886 5887found="no" 5888 5889 if test $found = "no" ; then 5890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5892 fi 5893 5894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5896 fi 5897 5898 CFLAGS="$CFLAGS -Wnested-externs" 5899 5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5901printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5902 cacheid=xorg_cv_cc_flag__Wnested_externs 5903 if eval test \${$cacheid+y} 5904then : 5905 printf %s "(cached) " >&6 5906else $as_nop 5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5908/* end confdefs.h. */ 5909int i; 5910int 5911main (void) 5912{ 5913 5914 ; 5915 return 0; 5916} 5917_ACEOF 5918if ac_fn_c_try_link "$LINENO" 5919then : 5920 eval $cacheid=yes 5921else $as_nop 5922 eval $cacheid=no 5923fi 5924rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5925 conftest$ac_exeext conftest.$ac_ext 5926fi 5927 5928 5929 CFLAGS="$xorg_testset_save_CFLAGS" 5930 5931 eval supported=\$$cacheid 5932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5933printf "%s\n" "$supported" >&6; } 5934 if test "$supported" = "yes" ; then 5935 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5936 found="yes" 5937 fi 5938 fi 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954xorg_testset_save_CFLAGS="$CFLAGS" 5955 5956if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5959printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5960if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5961then : 5962 printf %s "(cached) " >&6 5963else $as_nop 5964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5965/* end confdefs.h. */ 5966int i; 5967_ACEOF 5968if ac_fn_c_try_compile "$LINENO" 5969then : 5970 xorg_cv_cc_flag_unknown_warning_option=yes 5971else $as_nop 5972 xorg_cv_cc_flag_unknown_warning_option=no 5973fi 5974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5975fi 5976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5977printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5979 CFLAGS="$xorg_testset_save_CFLAGS" 5980fi 5981 5982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5985 fi 5986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5988printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5989if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5990then : 5991 printf %s "(cached) " >&6 5992else $as_nop 5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5994/* end confdefs.h. */ 5995int i; 5996_ACEOF 5997if ac_fn_c_try_compile "$LINENO" 5998then : 5999 xorg_cv_cc_flag_unused_command_line_argument=yes 6000else $as_nop 6001 xorg_cv_cc_flag_unused_command_line_argument=no 6002fi 6003rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6004fi 6005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6006printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6008 CFLAGS="$xorg_testset_save_CFLAGS" 6009fi 6010 6011found="no" 6012 6013 if test $found = "no" ; then 6014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6016 fi 6017 6018 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6020 fi 6021 6022 CFLAGS="$CFLAGS -Wbad-function-cast" 6023 6024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6025printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6026 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6027 if eval test \${$cacheid+y} 6028then : 6029 printf %s "(cached) " >&6 6030else $as_nop 6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6032/* end confdefs.h. */ 6033int i; 6034int 6035main (void) 6036{ 6037 6038 ; 6039 return 0; 6040} 6041_ACEOF 6042if ac_fn_c_try_link "$LINENO" 6043then : 6044 eval $cacheid=yes 6045else $as_nop 6046 eval $cacheid=no 6047fi 6048rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6049 conftest$ac_exeext conftest.$ac_ext 6050fi 6051 6052 6053 CFLAGS="$xorg_testset_save_CFLAGS" 6054 6055 eval supported=\$$cacheid 6056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6057printf "%s\n" "$supported" >&6; } 6058 if test "$supported" = "yes" ; then 6059 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6060 found="yes" 6061 fi 6062 fi 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078xorg_testset_save_CFLAGS="$CFLAGS" 6079 6080if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6083printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6084if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6085then : 6086 printf %s "(cached) " >&6 6087else $as_nop 6088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6089/* end confdefs.h. */ 6090int i; 6091_ACEOF 6092if ac_fn_c_try_compile "$LINENO" 6093then : 6094 xorg_cv_cc_flag_unknown_warning_option=yes 6095else $as_nop 6096 xorg_cv_cc_flag_unknown_warning_option=no 6097fi 6098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6099fi 6100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6101printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6103 CFLAGS="$xorg_testset_save_CFLAGS" 6104fi 6105 6106if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6109 fi 6110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6112printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6113if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6114then : 6115 printf %s "(cached) " >&6 6116else $as_nop 6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6118/* end confdefs.h. */ 6119int i; 6120_ACEOF 6121if ac_fn_c_try_compile "$LINENO" 6122then : 6123 xorg_cv_cc_flag_unused_command_line_argument=yes 6124else $as_nop 6125 xorg_cv_cc_flag_unused_command_line_argument=no 6126fi 6127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6128fi 6129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6130printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6132 CFLAGS="$xorg_testset_save_CFLAGS" 6133fi 6134 6135found="no" 6136 6137 if test $found = "no" ; then 6138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6140 fi 6141 6142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6144 fi 6145 6146 CFLAGS="$CFLAGS -Wold-style-definition" 6147 6148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6149printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6150 cacheid=xorg_cv_cc_flag__Wold_style_definition 6151 if eval test \${$cacheid+y} 6152then : 6153 printf %s "(cached) " >&6 6154else $as_nop 6155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6156/* end confdefs.h. */ 6157int i; 6158int 6159main (void) 6160{ 6161 6162 ; 6163 return 0; 6164} 6165_ACEOF 6166if ac_fn_c_try_link "$LINENO" 6167then : 6168 eval $cacheid=yes 6169else $as_nop 6170 eval $cacheid=no 6171fi 6172rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6173 conftest$ac_exeext conftest.$ac_ext 6174fi 6175 6176 6177 CFLAGS="$xorg_testset_save_CFLAGS" 6178 6179 eval supported=\$$cacheid 6180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6181printf "%s\n" "$supported" >&6; } 6182 if test "$supported" = "yes" ; then 6183 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6184 found="yes" 6185 fi 6186 fi 6187 6188 if test $found = "no" ; then 6189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6191 fi 6192 6193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6195 fi 6196 6197 CFLAGS="$CFLAGS -fd" 6198 6199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6200printf %s "checking if $CC supports -fd... " >&6; } 6201 cacheid=xorg_cv_cc_flag__fd 6202 if eval test \${$cacheid+y} 6203then : 6204 printf %s "(cached) " >&6 6205else $as_nop 6206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6207/* end confdefs.h. */ 6208int i; 6209int 6210main (void) 6211{ 6212 6213 ; 6214 return 0; 6215} 6216_ACEOF 6217if ac_fn_c_try_link "$LINENO" 6218then : 6219 eval $cacheid=yes 6220else $as_nop 6221 eval $cacheid=no 6222fi 6223rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6224 conftest$ac_exeext conftest.$ac_ext 6225fi 6226 6227 6228 CFLAGS="$xorg_testset_save_CFLAGS" 6229 6230 eval supported=\$$cacheid 6231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6232printf "%s\n" "$supported" >&6; } 6233 if test "$supported" = "yes" ; then 6234 BASE_CFLAGS="$BASE_CFLAGS -fd" 6235 found="yes" 6236 fi 6237 fi 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253xorg_testset_save_CFLAGS="$CFLAGS" 6254 6255if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6258printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6259if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6260then : 6261 printf %s "(cached) " >&6 6262else $as_nop 6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6264/* end confdefs.h. */ 6265int i; 6266_ACEOF 6267if ac_fn_c_try_compile "$LINENO" 6268then : 6269 xorg_cv_cc_flag_unknown_warning_option=yes 6270else $as_nop 6271 xorg_cv_cc_flag_unknown_warning_option=no 6272fi 6273rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6274fi 6275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6276printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6277 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6278 CFLAGS="$xorg_testset_save_CFLAGS" 6279fi 6280 6281if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6284 fi 6285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6287printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6288if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6289then : 6290 printf %s "(cached) " >&6 6291else $as_nop 6292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6293/* end confdefs.h. */ 6294int i; 6295_ACEOF 6296if ac_fn_c_try_compile "$LINENO" 6297then : 6298 xorg_cv_cc_flag_unused_command_line_argument=yes 6299else $as_nop 6300 xorg_cv_cc_flag_unused_command_line_argument=no 6301fi 6302rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6303fi 6304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6305printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6307 CFLAGS="$xorg_testset_save_CFLAGS" 6308fi 6309 6310found="no" 6311 6312 if test $found = "no" ; then 6313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6315 fi 6316 6317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6319 fi 6320 6321 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6322 6323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6324printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6325 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6326 if eval test \${$cacheid+y} 6327then : 6328 printf %s "(cached) " >&6 6329else $as_nop 6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6331/* end confdefs.h. */ 6332int i; 6333int 6334main (void) 6335{ 6336 6337 ; 6338 return 0; 6339} 6340_ACEOF 6341if ac_fn_c_try_link "$LINENO" 6342then : 6343 eval $cacheid=yes 6344else $as_nop 6345 eval $cacheid=no 6346fi 6347rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6348 conftest$ac_exeext conftest.$ac_ext 6349fi 6350 6351 6352 CFLAGS="$xorg_testset_save_CFLAGS" 6353 6354 eval supported=\$$cacheid 6355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6356printf "%s\n" "$supported" >&6; } 6357 if test "$supported" = "yes" ; then 6358 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6359 found="yes" 6360 fi 6361 fi 6362 6363 6364 6365 6366 6367# This chunk adds additional warnings that could catch undesired effects. 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381xorg_testset_save_CFLAGS="$CFLAGS" 6382 6383if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6386printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6387if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6388then : 6389 printf %s "(cached) " >&6 6390else $as_nop 6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6392/* end confdefs.h. */ 6393int i; 6394_ACEOF 6395if ac_fn_c_try_compile "$LINENO" 6396then : 6397 xorg_cv_cc_flag_unknown_warning_option=yes 6398else $as_nop 6399 xorg_cv_cc_flag_unknown_warning_option=no 6400fi 6401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6402fi 6403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6404printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6406 CFLAGS="$xorg_testset_save_CFLAGS" 6407fi 6408 6409if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6412 fi 6413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6415printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6416if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6417then : 6418 printf %s "(cached) " >&6 6419else $as_nop 6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6421/* end confdefs.h. */ 6422int i; 6423_ACEOF 6424if ac_fn_c_try_compile "$LINENO" 6425then : 6426 xorg_cv_cc_flag_unused_command_line_argument=yes 6427else $as_nop 6428 xorg_cv_cc_flag_unused_command_line_argument=no 6429fi 6430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6431fi 6432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6433printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6434 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6435 CFLAGS="$xorg_testset_save_CFLAGS" 6436fi 6437 6438found="no" 6439 6440 if test $found = "no" ; then 6441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6443 fi 6444 6445 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6447 fi 6448 6449 CFLAGS="$CFLAGS -Wunused" 6450 6451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6452printf %s "checking if $CC supports -Wunused... " >&6; } 6453 cacheid=xorg_cv_cc_flag__Wunused 6454 if eval test \${$cacheid+y} 6455then : 6456 printf %s "(cached) " >&6 6457else $as_nop 6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6459/* end confdefs.h. */ 6460int i; 6461int 6462main (void) 6463{ 6464 6465 ; 6466 return 0; 6467} 6468_ACEOF 6469if ac_fn_c_try_link "$LINENO" 6470then : 6471 eval $cacheid=yes 6472else $as_nop 6473 eval $cacheid=no 6474fi 6475rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6476 conftest$ac_exeext conftest.$ac_ext 6477fi 6478 6479 6480 CFLAGS="$xorg_testset_save_CFLAGS" 6481 6482 eval supported=\$$cacheid 6483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6484printf "%s\n" "$supported" >&6; } 6485 if test "$supported" = "yes" ; then 6486 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6487 found="yes" 6488 fi 6489 fi 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505xorg_testset_save_CFLAGS="$CFLAGS" 6506 6507if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6510printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6511if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6512then : 6513 printf %s "(cached) " >&6 6514else $as_nop 6515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6516/* end confdefs.h. */ 6517int i; 6518_ACEOF 6519if ac_fn_c_try_compile "$LINENO" 6520then : 6521 xorg_cv_cc_flag_unknown_warning_option=yes 6522else $as_nop 6523 xorg_cv_cc_flag_unknown_warning_option=no 6524fi 6525rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6526fi 6527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6528printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6529 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6530 CFLAGS="$xorg_testset_save_CFLAGS" 6531fi 6532 6533if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6536 fi 6537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6539printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6540if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6541then : 6542 printf %s "(cached) " >&6 6543else $as_nop 6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6545/* end confdefs.h. */ 6546int i; 6547_ACEOF 6548if ac_fn_c_try_compile "$LINENO" 6549then : 6550 xorg_cv_cc_flag_unused_command_line_argument=yes 6551else $as_nop 6552 xorg_cv_cc_flag_unused_command_line_argument=no 6553fi 6554rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6555fi 6556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6557printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6558 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6559 CFLAGS="$xorg_testset_save_CFLAGS" 6560fi 6561 6562found="no" 6563 6564 if test $found = "no" ; then 6565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6567 fi 6568 6569 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6571 fi 6572 6573 CFLAGS="$CFLAGS -Wuninitialized" 6574 6575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6576printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6577 cacheid=xorg_cv_cc_flag__Wuninitialized 6578 if eval test \${$cacheid+y} 6579then : 6580 printf %s "(cached) " >&6 6581else $as_nop 6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6583/* end confdefs.h. */ 6584int i; 6585int 6586main (void) 6587{ 6588 6589 ; 6590 return 0; 6591} 6592_ACEOF 6593if ac_fn_c_try_link "$LINENO" 6594then : 6595 eval $cacheid=yes 6596else $as_nop 6597 eval $cacheid=no 6598fi 6599rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6600 conftest$ac_exeext conftest.$ac_ext 6601fi 6602 6603 6604 CFLAGS="$xorg_testset_save_CFLAGS" 6605 6606 eval supported=\$$cacheid 6607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6608printf "%s\n" "$supported" >&6; } 6609 if test "$supported" = "yes" ; then 6610 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6611 found="yes" 6612 fi 6613 fi 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629xorg_testset_save_CFLAGS="$CFLAGS" 6630 6631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6634printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6635if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6636then : 6637 printf %s "(cached) " >&6 6638else $as_nop 6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6640/* end confdefs.h. */ 6641int i; 6642_ACEOF 6643if ac_fn_c_try_compile "$LINENO" 6644then : 6645 xorg_cv_cc_flag_unknown_warning_option=yes 6646else $as_nop 6647 xorg_cv_cc_flag_unknown_warning_option=no 6648fi 6649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6650fi 6651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6652printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6653 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6654 CFLAGS="$xorg_testset_save_CFLAGS" 6655fi 6656 6657if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6660 fi 6661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6663printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6664if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6665then : 6666 printf %s "(cached) " >&6 6667else $as_nop 6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6669/* end confdefs.h. */ 6670int i; 6671_ACEOF 6672if ac_fn_c_try_compile "$LINENO" 6673then : 6674 xorg_cv_cc_flag_unused_command_line_argument=yes 6675else $as_nop 6676 xorg_cv_cc_flag_unused_command_line_argument=no 6677fi 6678rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6679fi 6680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6681printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6682 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6683 CFLAGS="$xorg_testset_save_CFLAGS" 6684fi 6685 6686found="no" 6687 6688 if test $found = "no" ; then 6689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6691 fi 6692 6693 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6695 fi 6696 6697 CFLAGS="$CFLAGS -Wshadow" 6698 6699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6700printf %s "checking if $CC supports -Wshadow... " >&6; } 6701 cacheid=xorg_cv_cc_flag__Wshadow 6702 if eval test \${$cacheid+y} 6703then : 6704 printf %s "(cached) " >&6 6705else $as_nop 6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6707/* end confdefs.h. */ 6708int i; 6709int 6710main (void) 6711{ 6712 6713 ; 6714 return 0; 6715} 6716_ACEOF 6717if ac_fn_c_try_link "$LINENO" 6718then : 6719 eval $cacheid=yes 6720else $as_nop 6721 eval $cacheid=no 6722fi 6723rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6724 conftest$ac_exeext conftest.$ac_ext 6725fi 6726 6727 6728 CFLAGS="$xorg_testset_save_CFLAGS" 6729 6730 eval supported=\$$cacheid 6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6732printf "%s\n" "$supported" >&6; } 6733 if test "$supported" = "yes" ; then 6734 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6735 found="yes" 6736 fi 6737 fi 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753xorg_testset_save_CFLAGS="$CFLAGS" 6754 6755if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6758printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6759if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6760then : 6761 printf %s "(cached) " >&6 6762else $as_nop 6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6764/* end confdefs.h. */ 6765int i; 6766_ACEOF 6767if ac_fn_c_try_compile "$LINENO" 6768then : 6769 xorg_cv_cc_flag_unknown_warning_option=yes 6770else $as_nop 6771 xorg_cv_cc_flag_unknown_warning_option=no 6772fi 6773rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6774fi 6775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6776printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6777 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6778 CFLAGS="$xorg_testset_save_CFLAGS" 6779fi 6780 6781if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6784 fi 6785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6787printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6788if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6789then : 6790 printf %s "(cached) " >&6 6791else $as_nop 6792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6793/* end confdefs.h. */ 6794int i; 6795_ACEOF 6796if ac_fn_c_try_compile "$LINENO" 6797then : 6798 xorg_cv_cc_flag_unused_command_line_argument=yes 6799else $as_nop 6800 xorg_cv_cc_flag_unused_command_line_argument=no 6801fi 6802rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6803fi 6804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6805printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6806 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6807 CFLAGS="$xorg_testset_save_CFLAGS" 6808fi 6809 6810found="no" 6811 6812 if test $found = "no" ; then 6813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6815 fi 6816 6817 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6819 fi 6820 6821 CFLAGS="$CFLAGS -Wmissing-noreturn" 6822 6823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6824printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6825 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6826 if eval test \${$cacheid+y} 6827then : 6828 printf %s "(cached) " >&6 6829else $as_nop 6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6831/* end confdefs.h. */ 6832int i; 6833int 6834main (void) 6835{ 6836 6837 ; 6838 return 0; 6839} 6840_ACEOF 6841if ac_fn_c_try_link "$LINENO" 6842then : 6843 eval $cacheid=yes 6844else $as_nop 6845 eval $cacheid=no 6846fi 6847rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6848 conftest$ac_exeext conftest.$ac_ext 6849fi 6850 6851 6852 CFLAGS="$xorg_testset_save_CFLAGS" 6853 6854 eval supported=\$$cacheid 6855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6856printf "%s\n" "$supported" >&6; } 6857 if test "$supported" = "yes" ; then 6858 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6859 found="yes" 6860 fi 6861 fi 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877xorg_testset_save_CFLAGS="$CFLAGS" 6878 6879if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6882printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6883if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6884then : 6885 printf %s "(cached) " >&6 6886else $as_nop 6887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6888/* end confdefs.h. */ 6889int i; 6890_ACEOF 6891if ac_fn_c_try_compile "$LINENO" 6892then : 6893 xorg_cv_cc_flag_unknown_warning_option=yes 6894else $as_nop 6895 xorg_cv_cc_flag_unknown_warning_option=no 6896fi 6897rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6898fi 6899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6900printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6901 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6902 CFLAGS="$xorg_testset_save_CFLAGS" 6903fi 6904 6905if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6908 fi 6909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6911printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6912if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6913then : 6914 printf %s "(cached) " >&6 6915else $as_nop 6916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6917/* end confdefs.h. */ 6918int i; 6919_ACEOF 6920if ac_fn_c_try_compile "$LINENO" 6921then : 6922 xorg_cv_cc_flag_unused_command_line_argument=yes 6923else $as_nop 6924 xorg_cv_cc_flag_unused_command_line_argument=no 6925fi 6926rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6927fi 6928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6929printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6930 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6931 CFLAGS="$xorg_testset_save_CFLAGS" 6932fi 6933 6934found="no" 6935 6936 if test $found = "no" ; then 6937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6939 fi 6940 6941 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6943 fi 6944 6945 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6946 6947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6948printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6949 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6950 if eval test \${$cacheid+y} 6951then : 6952 printf %s "(cached) " >&6 6953else $as_nop 6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6955/* end confdefs.h. */ 6956int i; 6957int 6958main (void) 6959{ 6960 6961 ; 6962 return 0; 6963} 6964_ACEOF 6965if ac_fn_c_try_link "$LINENO" 6966then : 6967 eval $cacheid=yes 6968else $as_nop 6969 eval $cacheid=no 6970fi 6971rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6972 conftest$ac_exeext conftest.$ac_ext 6973fi 6974 6975 6976 CFLAGS="$xorg_testset_save_CFLAGS" 6977 6978 eval supported=\$$cacheid 6979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6980printf "%s\n" "$supported" >&6; } 6981 if test "$supported" = "yes" ; then 6982 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6983 found="yes" 6984 fi 6985 fi 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001xorg_testset_save_CFLAGS="$CFLAGS" 7002 7003if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7006printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7007if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7008then : 7009 printf %s "(cached) " >&6 7010else $as_nop 7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7012/* end confdefs.h. */ 7013int i; 7014_ACEOF 7015if ac_fn_c_try_compile "$LINENO" 7016then : 7017 xorg_cv_cc_flag_unknown_warning_option=yes 7018else $as_nop 7019 xorg_cv_cc_flag_unknown_warning_option=no 7020fi 7021rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7022fi 7023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7024printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7025 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7026 CFLAGS="$xorg_testset_save_CFLAGS" 7027fi 7028 7029if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7032 fi 7033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7035printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7036if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7037then : 7038 printf %s "(cached) " >&6 7039else $as_nop 7040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7041/* end confdefs.h. */ 7042int i; 7043_ACEOF 7044if ac_fn_c_try_compile "$LINENO" 7045then : 7046 xorg_cv_cc_flag_unused_command_line_argument=yes 7047else $as_nop 7048 xorg_cv_cc_flag_unused_command_line_argument=no 7049fi 7050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7051fi 7052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7053printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7054 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7055 CFLAGS="$xorg_testset_save_CFLAGS" 7056fi 7057 7058found="no" 7059 7060 if test $found = "no" ; then 7061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7063 fi 7064 7065 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7067 fi 7068 7069 CFLAGS="$CFLAGS -Wredundant-decls" 7070 7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7072printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7073 cacheid=xorg_cv_cc_flag__Wredundant_decls 7074 if eval test \${$cacheid+y} 7075then : 7076 printf %s "(cached) " >&6 7077else $as_nop 7078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7079/* end confdefs.h. */ 7080int i; 7081int 7082main (void) 7083{ 7084 7085 ; 7086 return 0; 7087} 7088_ACEOF 7089if ac_fn_c_try_link "$LINENO" 7090then : 7091 eval $cacheid=yes 7092else $as_nop 7093 eval $cacheid=no 7094fi 7095rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7096 conftest$ac_exeext conftest.$ac_ext 7097fi 7098 7099 7100 CFLAGS="$xorg_testset_save_CFLAGS" 7101 7102 eval supported=\$$cacheid 7103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7104printf "%s\n" "$supported" >&6; } 7105 if test "$supported" = "yes" ; then 7106 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7107 found="yes" 7108 fi 7109 fi 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125xorg_testset_save_CFLAGS="$CFLAGS" 7126 7127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7130printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7131if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7132then : 7133 printf %s "(cached) " >&6 7134else $as_nop 7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7136/* end confdefs.h. */ 7137int i; 7138_ACEOF 7139if ac_fn_c_try_compile "$LINENO" 7140then : 7141 xorg_cv_cc_flag_unknown_warning_option=yes 7142else $as_nop 7143 xorg_cv_cc_flag_unknown_warning_option=no 7144fi 7145rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7146fi 7147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7148printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7149 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7150 CFLAGS="$xorg_testset_save_CFLAGS" 7151fi 7152 7153if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7156 fi 7157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7159printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7160if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7161then : 7162 printf %s "(cached) " >&6 7163else $as_nop 7164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7165/* end confdefs.h. */ 7166int i; 7167_ACEOF 7168if ac_fn_c_try_compile "$LINENO" 7169then : 7170 xorg_cv_cc_flag_unused_command_line_argument=yes 7171else $as_nop 7172 xorg_cv_cc_flag_unused_command_line_argument=no 7173fi 7174rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7175fi 7176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7177printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7178 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7179 CFLAGS="$xorg_testset_save_CFLAGS" 7180fi 7181 7182found="no" 7183 7184 if test $found = "no" ; then 7185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7187 fi 7188 7189 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7191 fi 7192 7193 CFLAGS="$CFLAGS -Wlogical-op" 7194 7195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7196printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7197 cacheid=xorg_cv_cc_flag__Wlogical_op 7198 if eval test \${$cacheid+y} 7199then : 7200 printf %s "(cached) " >&6 7201else $as_nop 7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7203/* end confdefs.h. */ 7204int i; 7205int 7206main (void) 7207{ 7208 7209 ; 7210 return 0; 7211} 7212_ACEOF 7213if ac_fn_c_try_link "$LINENO" 7214then : 7215 eval $cacheid=yes 7216else $as_nop 7217 eval $cacheid=no 7218fi 7219rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7220 conftest$ac_exeext conftest.$ac_ext 7221fi 7222 7223 7224 CFLAGS="$xorg_testset_save_CFLAGS" 7225 7226 eval supported=\$$cacheid 7227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7228printf "%s\n" "$supported" >&6; } 7229 if test "$supported" = "yes" ; then 7230 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7231 found="yes" 7232 fi 7233 fi 7234 7235 7236 7237# These are currently disabled because they are noisy. They will be enabled 7238# in the future once the codebase is sufficiently modernized to silence 7239# them. For now, I don't want them to drown out the other warnings. 7240# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7241# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7242# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7243 7244# Turn some warnings into errors, so we don't accidently get successful builds 7245# when there are problems that should be fixed. 7246 7247if test "x$SELECTIVE_WERROR" = "xyes" ; then 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261xorg_testset_save_CFLAGS="$CFLAGS" 7262 7263if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7266printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7267if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7268then : 7269 printf %s "(cached) " >&6 7270else $as_nop 7271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7272/* end confdefs.h. */ 7273int i; 7274_ACEOF 7275if ac_fn_c_try_compile "$LINENO" 7276then : 7277 xorg_cv_cc_flag_unknown_warning_option=yes 7278else $as_nop 7279 xorg_cv_cc_flag_unknown_warning_option=no 7280fi 7281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7282fi 7283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7284printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7285 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7286 CFLAGS="$xorg_testset_save_CFLAGS" 7287fi 7288 7289if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7292 fi 7293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7295printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7296if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7297then : 7298 printf %s "(cached) " >&6 7299else $as_nop 7300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7301/* end confdefs.h. */ 7302int i; 7303_ACEOF 7304if ac_fn_c_try_compile "$LINENO" 7305then : 7306 xorg_cv_cc_flag_unused_command_line_argument=yes 7307else $as_nop 7308 xorg_cv_cc_flag_unused_command_line_argument=no 7309fi 7310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7311fi 7312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7313printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7315 CFLAGS="$xorg_testset_save_CFLAGS" 7316fi 7317 7318found="no" 7319 7320 if test $found = "no" ; then 7321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7323 fi 7324 7325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7327 fi 7328 7329 CFLAGS="$CFLAGS -Werror=implicit" 7330 7331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7332printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7333 cacheid=xorg_cv_cc_flag__Werror_implicit 7334 if eval test \${$cacheid+y} 7335then : 7336 printf %s "(cached) " >&6 7337else $as_nop 7338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7339/* end confdefs.h. */ 7340int i; 7341int 7342main (void) 7343{ 7344 7345 ; 7346 return 0; 7347} 7348_ACEOF 7349if ac_fn_c_try_link "$LINENO" 7350then : 7351 eval $cacheid=yes 7352else $as_nop 7353 eval $cacheid=no 7354fi 7355rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7356 conftest$ac_exeext conftest.$ac_ext 7357fi 7358 7359 7360 CFLAGS="$xorg_testset_save_CFLAGS" 7361 7362 eval supported=\$$cacheid 7363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7364printf "%s\n" "$supported" >&6; } 7365 if test "$supported" = "yes" ; then 7366 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7367 found="yes" 7368 fi 7369 fi 7370 7371 if test $found = "no" ; then 7372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7374 fi 7375 7376 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7378 fi 7379 7380 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7381 7382 { 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 7383printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7384 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7385 if eval test \${$cacheid+y} 7386then : 7387 printf %s "(cached) " >&6 7388else $as_nop 7389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7390/* end confdefs.h. */ 7391int i; 7392int 7393main (void) 7394{ 7395 7396 ; 7397 return 0; 7398} 7399_ACEOF 7400if ac_fn_c_try_link "$LINENO" 7401then : 7402 eval $cacheid=yes 7403else $as_nop 7404 eval $cacheid=no 7405fi 7406rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7407 conftest$ac_exeext conftest.$ac_ext 7408fi 7409 7410 7411 CFLAGS="$xorg_testset_save_CFLAGS" 7412 7413 eval supported=\$$cacheid 7414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7415printf "%s\n" "$supported" >&6; } 7416 if test "$supported" = "yes" ; then 7417 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7418 found="yes" 7419 fi 7420 fi 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436xorg_testset_save_CFLAGS="$CFLAGS" 7437 7438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7441printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7442if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7443then : 7444 printf %s "(cached) " >&6 7445else $as_nop 7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7447/* end confdefs.h. */ 7448int i; 7449_ACEOF 7450if ac_fn_c_try_compile "$LINENO" 7451then : 7452 xorg_cv_cc_flag_unknown_warning_option=yes 7453else $as_nop 7454 xorg_cv_cc_flag_unknown_warning_option=no 7455fi 7456rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7457fi 7458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7459printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7460 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7461 CFLAGS="$xorg_testset_save_CFLAGS" 7462fi 7463 7464if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7467 fi 7468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7470printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7471if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7472then : 7473 printf %s "(cached) " >&6 7474else $as_nop 7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7476/* end confdefs.h. */ 7477int i; 7478_ACEOF 7479if ac_fn_c_try_compile "$LINENO" 7480then : 7481 xorg_cv_cc_flag_unused_command_line_argument=yes 7482else $as_nop 7483 xorg_cv_cc_flag_unused_command_line_argument=no 7484fi 7485rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7486fi 7487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7488printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7489 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7490 CFLAGS="$xorg_testset_save_CFLAGS" 7491fi 7492 7493found="no" 7494 7495 if test $found = "no" ; then 7496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7498 fi 7499 7500 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7502 fi 7503 7504 CFLAGS="$CFLAGS -Werror=nonnull" 7505 7506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7507printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7508 cacheid=xorg_cv_cc_flag__Werror_nonnull 7509 if eval test \${$cacheid+y} 7510then : 7511 printf %s "(cached) " >&6 7512else $as_nop 7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7514/* end confdefs.h. */ 7515int i; 7516int 7517main (void) 7518{ 7519 7520 ; 7521 return 0; 7522} 7523_ACEOF 7524if ac_fn_c_try_link "$LINENO" 7525then : 7526 eval $cacheid=yes 7527else $as_nop 7528 eval $cacheid=no 7529fi 7530rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7531 conftest$ac_exeext conftest.$ac_ext 7532fi 7533 7534 7535 CFLAGS="$xorg_testset_save_CFLAGS" 7536 7537 eval supported=\$$cacheid 7538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7539printf "%s\n" "$supported" >&6; } 7540 if test "$supported" = "yes" ; then 7541 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7542 found="yes" 7543 fi 7544 fi 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560xorg_testset_save_CFLAGS="$CFLAGS" 7561 7562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7565printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7566if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7567then : 7568 printf %s "(cached) " >&6 7569else $as_nop 7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7571/* end confdefs.h. */ 7572int i; 7573_ACEOF 7574if ac_fn_c_try_compile "$LINENO" 7575then : 7576 xorg_cv_cc_flag_unknown_warning_option=yes 7577else $as_nop 7578 xorg_cv_cc_flag_unknown_warning_option=no 7579fi 7580rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7581fi 7582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7583printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7585 CFLAGS="$xorg_testset_save_CFLAGS" 7586fi 7587 7588if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7591 fi 7592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7594printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7595if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7596then : 7597 printf %s "(cached) " >&6 7598else $as_nop 7599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7600/* end confdefs.h. */ 7601int i; 7602_ACEOF 7603if ac_fn_c_try_compile "$LINENO" 7604then : 7605 xorg_cv_cc_flag_unused_command_line_argument=yes 7606else $as_nop 7607 xorg_cv_cc_flag_unused_command_line_argument=no 7608fi 7609rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7610fi 7611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7612printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7613 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7614 CFLAGS="$xorg_testset_save_CFLAGS" 7615fi 7616 7617found="no" 7618 7619 if test $found = "no" ; then 7620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7622 fi 7623 7624 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7626 fi 7627 7628 CFLAGS="$CFLAGS -Werror=init-self" 7629 7630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7631printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7632 cacheid=xorg_cv_cc_flag__Werror_init_self 7633 if eval test \${$cacheid+y} 7634then : 7635 printf %s "(cached) " >&6 7636else $as_nop 7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7638/* end confdefs.h. */ 7639int i; 7640int 7641main (void) 7642{ 7643 7644 ; 7645 return 0; 7646} 7647_ACEOF 7648if ac_fn_c_try_link "$LINENO" 7649then : 7650 eval $cacheid=yes 7651else $as_nop 7652 eval $cacheid=no 7653fi 7654rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7655 conftest$ac_exeext conftest.$ac_ext 7656fi 7657 7658 7659 CFLAGS="$xorg_testset_save_CFLAGS" 7660 7661 eval supported=\$$cacheid 7662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7663printf "%s\n" "$supported" >&6; } 7664 if test "$supported" = "yes" ; then 7665 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7666 found="yes" 7667 fi 7668 fi 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684xorg_testset_save_CFLAGS="$CFLAGS" 7685 7686if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7689printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7690if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7691then : 7692 printf %s "(cached) " >&6 7693else $as_nop 7694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7695/* end confdefs.h. */ 7696int i; 7697_ACEOF 7698if ac_fn_c_try_compile "$LINENO" 7699then : 7700 xorg_cv_cc_flag_unknown_warning_option=yes 7701else $as_nop 7702 xorg_cv_cc_flag_unknown_warning_option=no 7703fi 7704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7705fi 7706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7707printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7709 CFLAGS="$xorg_testset_save_CFLAGS" 7710fi 7711 7712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7715 fi 7716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7718printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7719if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7720then : 7721 printf %s "(cached) " >&6 7722else $as_nop 7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7724/* end confdefs.h. */ 7725int i; 7726_ACEOF 7727if ac_fn_c_try_compile "$LINENO" 7728then : 7729 xorg_cv_cc_flag_unused_command_line_argument=yes 7730else $as_nop 7731 xorg_cv_cc_flag_unused_command_line_argument=no 7732fi 7733rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7734fi 7735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7736printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7738 CFLAGS="$xorg_testset_save_CFLAGS" 7739fi 7740 7741found="no" 7742 7743 if test $found = "no" ; then 7744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7746 fi 7747 7748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7750 fi 7751 7752 CFLAGS="$CFLAGS -Werror=main" 7753 7754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7755printf %s "checking if $CC supports -Werror=main... " >&6; } 7756 cacheid=xorg_cv_cc_flag__Werror_main 7757 if eval test \${$cacheid+y} 7758then : 7759 printf %s "(cached) " >&6 7760else $as_nop 7761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7762/* end confdefs.h. */ 7763int i; 7764int 7765main (void) 7766{ 7767 7768 ; 7769 return 0; 7770} 7771_ACEOF 7772if ac_fn_c_try_link "$LINENO" 7773then : 7774 eval $cacheid=yes 7775else $as_nop 7776 eval $cacheid=no 7777fi 7778rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7779 conftest$ac_exeext conftest.$ac_ext 7780fi 7781 7782 7783 CFLAGS="$xorg_testset_save_CFLAGS" 7784 7785 eval supported=\$$cacheid 7786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7787printf "%s\n" "$supported" >&6; } 7788 if test "$supported" = "yes" ; then 7789 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7790 found="yes" 7791 fi 7792 fi 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808xorg_testset_save_CFLAGS="$CFLAGS" 7809 7810if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7813printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7814if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7815then : 7816 printf %s "(cached) " >&6 7817else $as_nop 7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7819/* end confdefs.h. */ 7820int i; 7821_ACEOF 7822if ac_fn_c_try_compile "$LINENO" 7823then : 7824 xorg_cv_cc_flag_unknown_warning_option=yes 7825else $as_nop 7826 xorg_cv_cc_flag_unknown_warning_option=no 7827fi 7828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7829fi 7830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7831printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7832 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7833 CFLAGS="$xorg_testset_save_CFLAGS" 7834fi 7835 7836if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7839 fi 7840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7842printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7843if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7844then : 7845 printf %s "(cached) " >&6 7846else $as_nop 7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7848/* end confdefs.h. */ 7849int i; 7850_ACEOF 7851if ac_fn_c_try_compile "$LINENO" 7852then : 7853 xorg_cv_cc_flag_unused_command_line_argument=yes 7854else $as_nop 7855 xorg_cv_cc_flag_unused_command_line_argument=no 7856fi 7857rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7858fi 7859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7860printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7861 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7862 CFLAGS="$xorg_testset_save_CFLAGS" 7863fi 7864 7865found="no" 7866 7867 if test $found = "no" ; then 7868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7870 fi 7871 7872 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7874 fi 7875 7876 CFLAGS="$CFLAGS -Werror=missing-braces" 7877 7878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7879printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7880 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7881 if eval test \${$cacheid+y} 7882then : 7883 printf %s "(cached) " >&6 7884else $as_nop 7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7886/* end confdefs.h. */ 7887int i; 7888int 7889main (void) 7890{ 7891 7892 ; 7893 return 0; 7894} 7895_ACEOF 7896if ac_fn_c_try_link "$LINENO" 7897then : 7898 eval $cacheid=yes 7899else $as_nop 7900 eval $cacheid=no 7901fi 7902rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7903 conftest$ac_exeext conftest.$ac_ext 7904fi 7905 7906 7907 CFLAGS="$xorg_testset_save_CFLAGS" 7908 7909 eval supported=\$$cacheid 7910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7911printf "%s\n" "$supported" >&6; } 7912 if test "$supported" = "yes" ; then 7913 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7914 found="yes" 7915 fi 7916 fi 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932xorg_testset_save_CFLAGS="$CFLAGS" 7933 7934if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7937printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7938if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7939then : 7940 printf %s "(cached) " >&6 7941else $as_nop 7942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7943/* end confdefs.h. */ 7944int i; 7945_ACEOF 7946if ac_fn_c_try_compile "$LINENO" 7947then : 7948 xorg_cv_cc_flag_unknown_warning_option=yes 7949else $as_nop 7950 xorg_cv_cc_flag_unknown_warning_option=no 7951fi 7952rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7953fi 7954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7955printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7956 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7957 CFLAGS="$xorg_testset_save_CFLAGS" 7958fi 7959 7960if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7963 fi 7964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7966printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7967if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7968then : 7969 printf %s "(cached) " >&6 7970else $as_nop 7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7972/* end confdefs.h. */ 7973int i; 7974_ACEOF 7975if ac_fn_c_try_compile "$LINENO" 7976then : 7977 xorg_cv_cc_flag_unused_command_line_argument=yes 7978else $as_nop 7979 xorg_cv_cc_flag_unused_command_line_argument=no 7980fi 7981rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7982fi 7983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7984printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7985 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7986 CFLAGS="$xorg_testset_save_CFLAGS" 7987fi 7988 7989found="no" 7990 7991 if test $found = "no" ; then 7992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7994 fi 7995 7996 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7998 fi 7999 8000 CFLAGS="$CFLAGS -Werror=sequence-point" 8001 8002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8003printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8004 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8005 if eval test \${$cacheid+y} 8006then : 8007 printf %s "(cached) " >&6 8008else $as_nop 8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8010/* end confdefs.h. */ 8011int i; 8012int 8013main (void) 8014{ 8015 8016 ; 8017 return 0; 8018} 8019_ACEOF 8020if ac_fn_c_try_link "$LINENO" 8021then : 8022 eval $cacheid=yes 8023else $as_nop 8024 eval $cacheid=no 8025fi 8026rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8027 conftest$ac_exeext conftest.$ac_ext 8028fi 8029 8030 8031 CFLAGS="$xorg_testset_save_CFLAGS" 8032 8033 eval supported=\$$cacheid 8034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8035printf "%s\n" "$supported" >&6; } 8036 if test "$supported" = "yes" ; then 8037 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8038 found="yes" 8039 fi 8040 fi 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056xorg_testset_save_CFLAGS="$CFLAGS" 8057 8058if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8061printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8062if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8063then : 8064 printf %s "(cached) " >&6 8065else $as_nop 8066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8067/* end confdefs.h. */ 8068int i; 8069_ACEOF 8070if ac_fn_c_try_compile "$LINENO" 8071then : 8072 xorg_cv_cc_flag_unknown_warning_option=yes 8073else $as_nop 8074 xorg_cv_cc_flag_unknown_warning_option=no 8075fi 8076rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8077fi 8078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8079printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8081 CFLAGS="$xorg_testset_save_CFLAGS" 8082fi 8083 8084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8087 fi 8088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8090printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8091if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8092then : 8093 printf %s "(cached) " >&6 8094else $as_nop 8095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8096/* end confdefs.h. */ 8097int i; 8098_ACEOF 8099if ac_fn_c_try_compile "$LINENO" 8100then : 8101 xorg_cv_cc_flag_unused_command_line_argument=yes 8102else $as_nop 8103 xorg_cv_cc_flag_unused_command_line_argument=no 8104fi 8105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8106fi 8107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8108printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8109 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8110 CFLAGS="$xorg_testset_save_CFLAGS" 8111fi 8112 8113found="no" 8114 8115 if test $found = "no" ; then 8116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8118 fi 8119 8120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8122 fi 8123 8124 CFLAGS="$CFLAGS -Werror=return-type" 8125 8126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8127printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8128 cacheid=xorg_cv_cc_flag__Werror_return_type 8129 if eval test \${$cacheid+y} 8130then : 8131 printf %s "(cached) " >&6 8132else $as_nop 8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8134/* end confdefs.h. */ 8135int i; 8136int 8137main (void) 8138{ 8139 8140 ; 8141 return 0; 8142} 8143_ACEOF 8144if ac_fn_c_try_link "$LINENO" 8145then : 8146 eval $cacheid=yes 8147else $as_nop 8148 eval $cacheid=no 8149fi 8150rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8151 conftest$ac_exeext conftest.$ac_ext 8152fi 8153 8154 8155 CFLAGS="$xorg_testset_save_CFLAGS" 8156 8157 eval supported=\$$cacheid 8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8159printf "%s\n" "$supported" >&6; } 8160 if test "$supported" = "yes" ; then 8161 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8162 found="yes" 8163 fi 8164 fi 8165 8166 if test $found = "no" ; then 8167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8169 fi 8170 8171 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8173 fi 8174 8175 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8176 8177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8178printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8179 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8180 if eval test \${$cacheid+y} 8181then : 8182 printf %s "(cached) " >&6 8183else $as_nop 8184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8185/* end confdefs.h. */ 8186int i; 8187int 8188main (void) 8189{ 8190 8191 ; 8192 return 0; 8193} 8194_ACEOF 8195if ac_fn_c_try_link "$LINENO" 8196then : 8197 eval $cacheid=yes 8198else $as_nop 8199 eval $cacheid=no 8200fi 8201rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8202 conftest$ac_exeext conftest.$ac_ext 8203fi 8204 8205 8206 CFLAGS="$xorg_testset_save_CFLAGS" 8207 8208 eval supported=\$$cacheid 8209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8210printf "%s\n" "$supported" >&6; } 8211 if test "$supported" = "yes" ; then 8212 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8213 found="yes" 8214 fi 8215 fi 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231xorg_testset_save_CFLAGS="$CFLAGS" 8232 8233if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8236printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8237if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8238then : 8239 printf %s "(cached) " >&6 8240else $as_nop 8241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8242/* end confdefs.h. */ 8243int i; 8244_ACEOF 8245if ac_fn_c_try_compile "$LINENO" 8246then : 8247 xorg_cv_cc_flag_unknown_warning_option=yes 8248else $as_nop 8249 xorg_cv_cc_flag_unknown_warning_option=no 8250fi 8251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8252fi 8253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8254printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8255 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8256 CFLAGS="$xorg_testset_save_CFLAGS" 8257fi 8258 8259if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8262 fi 8263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8265printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8266if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8267then : 8268 printf %s "(cached) " >&6 8269else $as_nop 8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8271/* end confdefs.h. */ 8272int i; 8273_ACEOF 8274if ac_fn_c_try_compile "$LINENO" 8275then : 8276 xorg_cv_cc_flag_unused_command_line_argument=yes 8277else $as_nop 8278 xorg_cv_cc_flag_unused_command_line_argument=no 8279fi 8280rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8281fi 8282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8283printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8284 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8285 CFLAGS="$xorg_testset_save_CFLAGS" 8286fi 8287 8288found="no" 8289 8290 if test $found = "no" ; then 8291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8293 fi 8294 8295 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8297 fi 8298 8299 CFLAGS="$CFLAGS -Werror=trigraphs" 8300 8301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8302printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8303 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8304 if eval test \${$cacheid+y} 8305then : 8306 printf %s "(cached) " >&6 8307else $as_nop 8308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8309/* end confdefs.h. */ 8310int i; 8311int 8312main (void) 8313{ 8314 8315 ; 8316 return 0; 8317} 8318_ACEOF 8319if ac_fn_c_try_link "$LINENO" 8320then : 8321 eval $cacheid=yes 8322else $as_nop 8323 eval $cacheid=no 8324fi 8325rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8326 conftest$ac_exeext conftest.$ac_ext 8327fi 8328 8329 8330 CFLAGS="$xorg_testset_save_CFLAGS" 8331 8332 eval supported=\$$cacheid 8333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8334printf "%s\n" "$supported" >&6; } 8335 if test "$supported" = "yes" ; then 8336 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8337 found="yes" 8338 fi 8339 fi 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355xorg_testset_save_CFLAGS="$CFLAGS" 8356 8357if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8360printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8361if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8362then : 8363 printf %s "(cached) " >&6 8364else $as_nop 8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8366/* end confdefs.h. */ 8367int i; 8368_ACEOF 8369if ac_fn_c_try_compile "$LINENO" 8370then : 8371 xorg_cv_cc_flag_unknown_warning_option=yes 8372else $as_nop 8373 xorg_cv_cc_flag_unknown_warning_option=no 8374fi 8375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8376fi 8377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8378printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8380 CFLAGS="$xorg_testset_save_CFLAGS" 8381fi 8382 8383if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8386 fi 8387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8389printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8390if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8391then : 8392 printf %s "(cached) " >&6 8393else $as_nop 8394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8395/* end confdefs.h. */ 8396int i; 8397_ACEOF 8398if ac_fn_c_try_compile "$LINENO" 8399then : 8400 xorg_cv_cc_flag_unused_command_line_argument=yes 8401else $as_nop 8402 xorg_cv_cc_flag_unused_command_line_argument=no 8403fi 8404rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8405fi 8406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8407printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8409 CFLAGS="$xorg_testset_save_CFLAGS" 8410fi 8411 8412found="no" 8413 8414 if test $found = "no" ; then 8415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8417 fi 8418 8419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8421 fi 8422 8423 CFLAGS="$CFLAGS -Werror=array-bounds" 8424 8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8426printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8427 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8428 if eval test \${$cacheid+y} 8429then : 8430 printf %s "(cached) " >&6 8431else $as_nop 8432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8433/* end confdefs.h. */ 8434int i; 8435int 8436main (void) 8437{ 8438 8439 ; 8440 return 0; 8441} 8442_ACEOF 8443if ac_fn_c_try_link "$LINENO" 8444then : 8445 eval $cacheid=yes 8446else $as_nop 8447 eval $cacheid=no 8448fi 8449rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8450 conftest$ac_exeext conftest.$ac_ext 8451fi 8452 8453 8454 CFLAGS="$xorg_testset_save_CFLAGS" 8455 8456 eval supported=\$$cacheid 8457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8458printf "%s\n" "$supported" >&6; } 8459 if test "$supported" = "yes" ; then 8460 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8461 found="yes" 8462 fi 8463 fi 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479xorg_testset_save_CFLAGS="$CFLAGS" 8480 8481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8484printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8485if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8486then : 8487 printf %s "(cached) " >&6 8488else $as_nop 8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8490/* end confdefs.h. */ 8491int i; 8492_ACEOF 8493if ac_fn_c_try_compile "$LINENO" 8494then : 8495 xorg_cv_cc_flag_unknown_warning_option=yes 8496else $as_nop 8497 xorg_cv_cc_flag_unknown_warning_option=no 8498fi 8499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8500fi 8501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8502printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8503 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8504 CFLAGS="$xorg_testset_save_CFLAGS" 8505fi 8506 8507if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8510 fi 8511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8513printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8514if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8515then : 8516 printf %s "(cached) " >&6 8517else $as_nop 8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8519/* end confdefs.h. */ 8520int i; 8521_ACEOF 8522if ac_fn_c_try_compile "$LINENO" 8523then : 8524 xorg_cv_cc_flag_unused_command_line_argument=yes 8525else $as_nop 8526 xorg_cv_cc_flag_unused_command_line_argument=no 8527fi 8528rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8529fi 8530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8531printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8533 CFLAGS="$xorg_testset_save_CFLAGS" 8534fi 8535 8536found="no" 8537 8538 if test $found = "no" ; then 8539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8541 fi 8542 8543 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8545 fi 8546 8547 CFLAGS="$CFLAGS -Werror=write-strings" 8548 8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8550printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8551 cacheid=xorg_cv_cc_flag__Werror_write_strings 8552 if eval test \${$cacheid+y} 8553then : 8554 printf %s "(cached) " >&6 8555else $as_nop 8556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8557/* end confdefs.h. */ 8558int i; 8559int 8560main (void) 8561{ 8562 8563 ; 8564 return 0; 8565} 8566_ACEOF 8567if ac_fn_c_try_link "$LINENO" 8568then : 8569 eval $cacheid=yes 8570else $as_nop 8571 eval $cacheid=no 8572fi 8573rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8574 conftest$ac_exeext conftest.$ac_ext 8575fi 8576 8577 8578 CFLAGS="$xorg_testset_save_CFLAGS" 8579 8580 eval supported=\$$cacheid 8581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8582printf "%s\n" "$supported" >&6; } 8583 if test "$supported" = "yes" ; then 8584 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8585 found="yes" 8586 fi 8587 fi 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603xorg_testset_save_CFLAGS="$CFLAGS" 8604 8605if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8608printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8609if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8610then : 8611 printf %s "(cached) " >&6 8612else $as_nop 8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8614/* end confdefs.h. */ 8615int i; 8616_ACEOF 8617if ac_fn_c_try_compile "$LINENO" 8618then : 8619 xorg_cv_cc_flag_unknown_warning_option=yes 8620else $as_nop 8621 xorg_cv_cc_flag_unknown_warning_option=no 8622fi 8623rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8624fi 8625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8626printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8628 CFLAGS="$xorg_testset_save_CFLAGS" 8629fi 8630 8631if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8634 fi 8635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8637printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8638if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8639then : 8640 printf %s "(cached) " >&6 8641else $as_nop 8642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8643/* end confdefs.h. */ 8644int i; 8645_ACEOF 8646if ac_fn_c_try_compile "$LINENO" 8647then : 8648 xorg_cv_cc_flag_unused_command_line_argument=yes 8649else $as_nop 8650 xorg_cv_cc_flag_unused_command_line_argument=no 8651fi 8652rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8653fi 8654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8655printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8656 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8657 CFLAGS="$xorg_testset_save_CFLAGS" 8658fi 8659 8660found="no" 8661 8662 if test $found = "no" ; then 8663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8665 fi 8666 8667 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8669 fi 8670 8671 CFLAGS="$CFLAGS -Werror=address" 8672 8673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8674printf %s "checking if $CC supports -Werror=address... " >&6; } 8675 cacheid=xorg_cv_cc_flag__Werror_address 8676 if eval test \${$cacheid+y} 8677then : 8678 printf %s "(cached) " >&6 8679else $as_nop 8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8681/* end confdefs.h. */ 8682int i; 8683int 8684main (void) 8685{ 8686 8687 ; 8688 return 0; 8689} 8690_ACEOF 8691if ac_fn_c_try_link "$LINENO" 8692then : 8693 eval $cacheid=yes 8694else $as_nop 8695 eval $cacheid=no 8696fi 8697rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8698 conftest$ac_exeext conftest.$ac_ext 8699fi 8700 8701 8702 CFLAGS="$xorg_testset_save_CFLAGS" 8703 8704 eval supported=\$$cacheid 8705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8706printf "%s\n" "$supported" >&6; } 8707 if test "$supported" = "yes" ; then 8708 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8709 found="yes" 8710 fi 8711 fi 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727xorg_testset_save_CFLAGS="$CFLAGS" 8728 8729if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8732printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8733if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8734then : 8735 printf %s "(cached) " >&6 8736else $as_nop 8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8738/* end confdefs.h. */ 8739int i; 8740_ACEOF 8741if ac_fn_c_try_compile "$LINENO" 8742then : 8743 xorg_cv_cc_flag_unknown_warning_option=yes 8744else $as_nop 8745 xorg_cv_cc_flag_unknown_warning_option=no 8746fi 8747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8748fi 8749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8750printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8752 CFLAGS="$xorg_testset_save_CFLAGS" 8753fi 8754 8755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8758 fi 8759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8761printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8762if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8763then : 8764 printf %s "(cached) " >&6 8765else $as_nop 8766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8767/* end confdefs.h. */ 8768int i; 8769_ACEOF 8770if ac_fn_c_try_compile "$LINENO" 8771then : 8772 xorg_cv_cc_flag_unused_command_line_argument=yes 8773else $as_nop 8774 xorg_cv_cc_flag_unused_command_line_argument=no 8775fi 8776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8777fi 8778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8779printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8780 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8781 CFLAGS="$xorg_testset_save_CFLAGS" 8782fi 8783 8784found="no" 8785 8786 if test $found = "no" ; then 8787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8789 fi 8790 8791 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8793 fi 8794 8795 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8796 8797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8798printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8799 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8800 if eval test \${$cacheid+y} 8801then : 8802 printf %s "(cached) " >&6 8803else $as_nop 8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8805/* end confdefs.h. */ 8806int i; 8807int 8808main (void) 8809{ 8810 8811 ; 8812 return 0; 8813} 8814_ACEOF 8815if ac_fn_c_try_link "$LINENO" 8816then : 8817 eval $cacheid=yes 8818else $as_nop 8819 eval $cacheid=no 8820fi 8821rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8822 conftest$ac_exeext conftest.$ac_ext 8823fi 8824 8825 8826 CFLAGS="$xorg_testset_save_CFLAGS" 8827 8828 eval supported=\$$cacheid 8829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8830printf "%s\n" "$supported" >&6; } 8831 if test "$supported" = "yes" ; then 8832 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8833 found="yes" 8834 fi 8835 fi 8836 8837 if test $found = "no" ; then 8838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8840 fi 8841 8842 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8844 fi 8845 8846 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8847 8848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8849printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8850 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8851 if eval test \${$cacheid+y} 8852then : 8853 printf %s "(cached) " >&6 8854else $as_nop 8855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8856/* end confdefs.h. */ 8857int i; 8858int 8859main (void) 8860{ 8861 8862 ; 8863 return 0; 8864} 8865_ACEOF 8866if ac_fn_c_try_link "$LINENO" 8867then : 8868 eval $cacheid=yes 8869else $as_nop 8870 eval $cacheid=no 8871fi 8872rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8873 conftest$ac_exeext conftest.$ac_ext 8874fi 8875 8876 8877 CFLAGS="$xorg_testset_save_CFLAGS" 8878 8879 eval supported=\$$cacheid 8880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8881printf "%s\n" "$supported" >&6; } 8882 if test "$supported" = "yes" ; then 8883 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8884 found="yes" 8885 fi 8886 fi 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902xorg_testset_save_CFLAGS="$CFLAGS" 8903 8904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8907printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8908if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8909then : 8910 printf %s "(cached) " >&6 8911else $as_nop 8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8913/* end confdefs.h. */ 8914int i; 8915_ACEOF 8916if ac_fn_c_try_compile "$LINENO" 8917then : 8918 xorg_cv_cc_flag_unknown_warning_option=yes 8919else $as_nop 8920 xorg_cv_cc_flag_unknown_warning_option=no 8921fi 8922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8923fi 8924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8925printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8926 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8927 CFLAGS="$xorg_testset_save_CFLAGS" 8928fi 8929 8930if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8933 fi 8934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8936printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8937if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8938then : 8939 printf %s "(cached) " >&6 8940else $as_nop 8941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8942/* end confdefs.h. */ 8943int i; 8944_ACEOF 8945if ac_fn_c_try_compile "$LINENO" 8946then : 8947 xorg_cv_cc_flag_unused_command_line_argument=yes 8948else $as_nop 8949 xorg_cv_cc_flag_unused_command_line_argument=no 8950fi 8951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8952fi 8953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8954printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8955 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8956 CFLAGS="$xorg_testset_save_CFLAGS" 8957fi 8958 8959found="no" 8960 8961 if test $found = "no" ; then 8962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8964 fi 8965 8966 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8968 fi 8969 8970 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8971 8972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8973printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8974 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8975 if eval test \${$cacheid+y} 8976then : 8977 printf %s "(cached) " >&6 8978else $as_nop 8979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8980/* end confdefs.h. */ 8981int i; 8982int 8983main (void) 8984{ 8985 8986 ; 8987 return 0; 8988} 8989_ACEOF 8990if ac_fn_c_try_link "$LINENO" 8991then : 8992 eval $cacheid=yes 8993else $as_nop 8994 eval $cacheid=no 8995fi 8996rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8997 conftest$ac_exeext conftest.$ac_ext 8998fi 8999 9000 9001 CFLAGS="$xorg_testset_save_CFLAGS" 9002 9003 eval supported=\$$cacheid 9004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9005printf "%s\n" "$supported" >&6; } 9006 if test "$supported" = "yes" ; then 9007 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9008 found="yes" 9009 fi 9010 fi 9011 9012 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9013else 9014{ 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 9015printf "%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;} 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029xorg_testset_save_CFLAGS="$CFLAGS" 9030 9031if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9034printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9035if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9036then : 9037 printf %s "(cached) " >&6 9038else $as_nop 9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9040/* end confdefs.h. */ 9041int i; 9042_ACEOF 9043if ac_fn_c_try_compile "$LINENO" 9044then : 9045 xorg_cv_cc_flag_unknown_warning_option=yes 9046else $as_nop 9047 xorg_cv_cc_flag_unknown_warning_option=no 9048fi 9049rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9050fi 9051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9052printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9053 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9054 CFLAGS="$xorg_testset_save_CFLAGS" 9055fi 9056 9057if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9060 fi 9061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9063printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9064if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9065then : 9066 printf %s "(cached) " >&6 9067else $as_nop 9068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9069/* end confdefs.h. */ 9070int i; 9071_ACEOF 9072if ac_fn_c_try_compile "$LINENO" 9073then : 9074 xorg_cv_cc_flag_unused_command_line_argument=yes 9075else $as_nop 9076 xorg_cv_cc_flag_unused_command_line_argument=no 9077fi 9078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9079fi 9080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9081printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9083 CFLAGS="$xorg_testset_save_CFLAGS" 9084fi 9085 9086found="no" 9087 9088 if test $found = "no" ; then 9089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9091 fi 9092 9093 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9095 fi 9096 9097 CFLAGS="$CFLAGS -Wimplicit" 9098 9099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9100printf %s "checking if $CC supports -Wimplicit... " >&6; } 9101 cacheid=xorg_cv_cc_flag__Wimplicit 9102 if eval test \${$cacheid+y} 9103then : 9104 printf %s "(cached) " >&6 9105else $as_nop 9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9107/* end confdefs.h. */ 9108int i; 9109int 9110main (void) 9111{ 9112 9113 ; 9114 return 0; 9115} 9116_ACEOF 9117if ac_fn_c_try_link "$LINENO" 9118then : 9119 eval $cacheid=yes 9120else $as_nop 9121 eval $cacheid=no 9122fi 9123rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9124 conftest$ac_exeext conftest.$ac_ext 9125fi 9126 9127 9128 CFLAGS="$xorg_testset_save_CFLAGS" 9129 9130 eval supported=\$$cacheid 9131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9132printf "%s\n" "$supported" >&6; } 9133 if test "$supported" = "yes" ; then 9134 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9135 found="yes" 9136 fi 9137 fi 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153xorg_testset_save_CFLAGS="$CFLAGS" 9154 9155if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9158printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9159if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9160then : 9161 printf %s "(cached) " >&6 9162else $as_nop 9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9164/* end confdefs.h. */ 9165int i; 9166_ACEOF 9167if ac_fn_c_try_compile "$LINENO" 9168then : 9169 xorg_cv_cc_flag_unknown_warning_option=yes 9170else $as_nop 9171 xorg_cv_cc_flag_unknown_warning_option=no 9172fi 9173rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9174fi 9175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9176printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9177 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9178 CFLAGS="$xorg_testset_save_CFLAGS" 9179fi 9180 9181if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9184 fi 9185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9187printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9188if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9189then : 9190 printf %s "(cached) " >&6 9191else $as_nop 9192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9193/* end confdefs.h. */ 9194int i; 9195_ACEOF 9196if ac_fn_c_try_compile "$LINENO" 9197then : 9198 xorg_cv_cc_flag_unused_command_line_argument=yes 9199else $as_nop 9200 xorg_cv_cc_flag_unused_command_line_argument=no 9201fi 9202rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9203fi 9204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9205printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9206 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9207 CFLAGS="$xorg_testset_save_CFLAGS" 9208fi 9209 9210found="no" 9211 9212 if test $found = "no" ; then 9213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9215 fi 9216 9217 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9219 fi 9220 9221 CFLAGS="$CFLAGS -Wnonnull" 9222 9223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9224printf %s "checking if $CC supports -Wnonnull... " >&6; } 9225 cacheid=xorg_cv_cc_flag__Wnonnull 9226 if eval test \${$cacheid+y} 9227then : 9228 printf %s "(cached) " >&6 9229else $as_nop 9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9231/* end confdefs.h. */ 9232int i; 9233int 9234main (void) 9235{ 9236 9237 ; 9238 return 0; 9239} 9240_ACEOF 9241if ac_fn_c_try_link "$LINENO" 9242then : 9243 eval $cacheid=yes 9244else $as_nop 9245 eval $cacheid=no 9246fi 9247rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9248 conftest$ac_exeext conftest.$ac_ext 9249fi 9250 9251 9252 CFLAGS="$xorg_testset_save_CFLAGS" 9253 9254 eval supported=\$$cacheid 9255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9256printf "%s\n" "$supported" >&6; } 9257 if test "$supported" = "yes" ; then 9258 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9259 found="yes" 9260 fi 9261 fi 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277xorg_testset_save_CFLAGS="$CFLAGS" 9278 9279if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9282printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9283if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9284then : 9285 printf %s "(cached) " >&6 9286else $as_nop 9287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9288/* end confdefs.h. */ 9289int i; 9290_ACEOF 9291if ac_fn_c_try_compile "$LINENO" 9292then : 9293 xorg_cv_cc_flag_unknown_warning_option=yes 9294else $as_nop 9295 xorg_cv_cc_flag_unknown_warning_option=no 9296fi 9297rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9298fi 9299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9300printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9301 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9302 CFLAGS="$xorg_testset_save_CFLAGS" 9303fi 9304 9305if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9308 fi 9309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9311printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9312if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9313then : 9314 printf %s "(cached) " >&6 9315else $as_nop 9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9317/* end confdefs.h. */ 9318int i; 9319_ACEOF 9320if ac_fn_c_try_compile "$LINENO" 9321then : 9322 xorg_cv_cc_flag_unused_command_line_argument=yes 9323else $as_nop 9324 xorg_cv_cc_flag_unused_command_line_argument=no 9325fi 9326rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9327fi 9328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9329printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9330 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9331 CFLAGS="$xorg_testset_save_CFLAGS" 9332fi 9333 9334found="no" 9335 9336 if test $found = "no" ; then 9337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9339 fi 9340 9341 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9343 fi 9344 9345 CFLAGS="$CFLAGS -Winit-self" 9346 9347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9348printf %s "checking if $CC supports -Winit-self... " >&6; } 9349 cacheid=xorg_cv_cc_flag__Winit_self 9350 if eval test \${$cacheid+y} 9351then : 9352 printf %s "(cached) " >&6 9353else $as_nop 9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9355/* end confdefs.h. */ 9356int i; 9357int 9358main (void) 9359{ 9360 9361 ; 9362 return 0; 9363} 9364_ACEOF 9365if ac_fn_c_try_link "$LINENO" 9366then : 9367 eval $cacheid=yes 9368else $as_nop 9369 eval $cacheid=no 9370fi 9371rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9372 conftest$ac_exeext conftest.$ac_ext 9373fi 9374 9375 9376 CFLAGS="$xorg_testset_save_CFLAGS" 9377 9378 eval supported=\$$cacheid 9379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9380printf "%s\n" "$supported" >&6; } 9381 if test "$supported" = "yes" ; then 9382 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9383 found="yes" 9384 fi 9385 fi 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401xorg_testset_save_CFLAGS="$CFLAGS" 9402 9403if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9406printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9407if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9408then : 9409 printf %s "(cached) " >&6 9410else $as_nop 9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9412/* end confdefs.h. */ 9413int i; 9414_ACEOF 9415if ac_fn_c_try_compile "$LINENO" 9416then : 9417 xorg_cv_cc_flag_unknown_warning_option=yes 9418else $as_nop 9419 xorg_cv_cc_flag_unknown_warning_option=no 9420fi 9421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9422fi 9423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9424printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9426 CFLAGS="$xorg_testset_save_CFLAGS" 9427fi 9428 9429if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9432 fi 9433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9435printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9436if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9437then : 9438 printf %s "(cached) " >&6 9439else $as_nop 9440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9441/* end confdefs.h. */ 9442int i; 9443_ACEOF 9444if ac_fn_c_try_compile "$LINENO" 9445then : 9446 xorg_cv_cc_flag_unused_command_line_argument=yes 9447else $as_nop 9448 xorg_cv_cc_flag_unused_command_line_argument=no 9449fi 9450rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9451fi 9452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9453printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9455 CFLAGS="$xorg_testset_save_CFLAGS" 9456fi 9457 9458found="no" 9459 9460 if test $found = "no" ; then 9461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9463 fi 9464 9465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9467 fi 9468 9469 CFLAGS="$CFLAGS -Wmain" 9470 9471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9472printf %s "checking if $CC supports -Wmain... " >&6; } 9473 cacheid=xorg_cv_cc_flag__Wmain 9474 if eval test \${$cacheid+y} 9475then : 9476 printf %s "(cached) " >&6 9477else $as_nop 9478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9479/* end confdefs.h. */ 9480int i; 9481int 9482main (void) 9483{ 9484 9485 ; 9486 return 0; 9487} 9488_ACEOF 9489if ac_fn_c_try_link "$LINENO" 9490then : 9491 eval $cacheid=yes 9492else $as_nop 9493 eval $cacheid=no 9494fi 9495rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9496 conftest$ac_exeext conftest.$ac_ext 9497fi 9498 9499 9500 CFLAGS="$xorg_testset_save_CFLAGS" 9501 9502 eval supported=\$$cacheid 9503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9504printf "%s\n" "$supported" >&6; } 9505 if test "$supported" = "yes" ; then 9506 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9507 found="yes" 9508 fi 9509 fi 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525xorg_testset_save_CFLAGS="$CFLAGS" 9526 9527if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9530printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9531if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9532then : 9533 printf %s "(cached) " >&6 9534else $as_nop 9535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9536/* end confdefs.h. */ 9537int i; 9538_ACEOF 9539if ac_fn_c_try_compile "$LINENO" 9540then : 9541 xorg_cv_cc_flag_unknown_warning_option=yes 9542else $as_nop 9543 xorg_cv_cc_flag_unknown_warning_option=no 9544fi 9545rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9546fi 9547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9548printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9549 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9550 CFLAGS="$xorg_testset_save_CFLAGS" 9551fi 9552 9553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9556 fi 9557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9559printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9560if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9561then : 9562 printf %s "(cached) " >&6 9563else $as_nop 9564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9565/* end confdefs.h. */ 9566int i; 9567_ACEOF 9568if ac_fn_c_try_compile "$LINENO" 9569then : 9570 xorg_cv_cc_flag_unused_command_line_argument=yes 9571else $as_nop 9572 xorg_cv_cc_flag_unused_command_line_argument=no 9573fi 9574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9575fi 9576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9577printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9579 CFLAGS="$xorg_testset_save_CFLAGS" 9580fi 9581 9582found="no" 9583 9584 if test $found = "no" ; then 9585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9587 fi 9588 9589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9591 fi 9592 9593 CFLAGS="$CFLAGS -Wmissing-braces" 9594 9595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9596printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9597 cacheid=xorg_cv_cc_flag__Wmissing_braces 9598 if eval test \${$cacheid+y} 9599then : 9600 printf %s "(cached) " >&6 9601else $as_nop 9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9603/* end confdefs.h. */ 9604int i; 9605int 9606main (void) 9607{ 9608 9609 ; 9610 return 0; 9611} 9612_ACEOF 9613if ac_fn_c_try_link "$LINENO" 9614then : 9615 eval $cacheid=yes 9616else $as_nop 9617 eval $cacheid=no 9618fi 9619rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9620 conftest$ac_exeext conftest.$ac_ext 9621fi 9622 9623 9624 CFLAGS="$xorg_testset_save_CFLAGS" 9625 9626 eval supported=\$$cacheid 9627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9628printf "%s\n" "$supported" >&6; } 9629 if test "$supported" = "yes" ; then 9630 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9631 found="yes" 9632 fi 9633 fi 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649xorg_testset_save_CFLAGS="$CFLAGS" 9650 9651if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9654printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9655if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9656then : 9657 printf %s "(cached) " >&6 9658else $as_nop 9659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9660/* end confdefs.h. */ 9661int i; 9662_ACEOF 9663if ac_fn_c_try_compile "$LINENO" 9664then : 9665 xorg_cv_cc_flag_unknown_warning_option=yes 9666else $as_nop 9667 xorg_cv_cc_flag_unknown_warning_option=no 9668fi 9669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9670fi 9671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9672printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9673 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9674 CFLAGS="$xorg_testset_save_CFLAGS" 9675fi 9676 9677if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9680 fi 9681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9683printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9684if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9685then : 9686 printf %s "(cached) " >&6 9687else $as_nop 9688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9689/* end confdefs.h. */ 9690int i; 9691_ACEOF 9692if ac_fn_c_try_compile "$LINENO" 9693then : 9694 xorg_cv_cc_flag_unused_command_line_argument=yes 9695else $as_nop 9696 xorg_cv_cc_flag_unused_command_line_argument=no 9697fi 9698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9699fi 9700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9701printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9703 CFLAGS="$xorg_testset_save_CFLAGS" 9704fi 9705 9706found="no" 9707 9708 if test $found = "no" ; then 9709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9711 fi 9712 9713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9715 fi 9716 9717 CFLAGS="$CFLAGS -Wsequence-point" 9718 9719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9720printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9721 cacheid=xorg_cv_cc_flag__Wsequence_point 9722 if eval test \${$cacheid+y} 9723then : 9724 printf %s "(cached) " >&6 9725else $as_nop 9726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9727/* end confdefs.h. */ 9728int i; 9729int 9730main (void) 9731{ 9732 9733 ; 9734 return 0; 9735} 9736_ACEOF 9737if ac_fn_c_try_link "$LINENO" 9738then : 9739 eval $cacheid=yes 9740else $as_nop 9741 eval $cacheid=no 9742fi 9743rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9744 conftest$ac_exeext conftest.$ac_ext 9745fi 9746 9747 9748 CFLAGS="$xorg_testset_save_CFLAGS" 9749 9750 eval supported=\$$cacheid 9751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9752printf "%s\n" "$supported" >&6; } 9753 if test "$supported" = "yes" ; then 9754 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9755 found="yes" 9756 fi 9757 fi 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773xorg_testset_save_CFLAGS="$CFLAGS" 9774 9775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9778printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9779if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9780then : 9781 printf %s "(cached) " >&6 9782else $as_nop 9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9784/* end confdefs.h. */ 9785int i; 9786_ACEOF 9787if ac_fn_c_try_compile "$LINENO" 9788then : 9789 xorg_cv_cc_flag_unknown_warning_option=yes 9790else $as_nop 9791 xorg_cv_cc_flag_unknown_warning_option=no 9792fi 9793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9794fi 9795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9796printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9798 CFLAGS="$xorg_testset_save_CFLAGS" 9799fi 9800 9801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9804 fi 9805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9807printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9808if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9809then : 9810 printf %s "(cached) " >&6 9811else $as_nop 9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9813/* end confdefs.h. */ 9814int i; 9815_ACEOF 9816if ac_fn_c_try_compile "$LINENO" 9817then : 9818 xorg_cv_cc_flag_unused_command_line_argument=yes 9819else $as_nop 9820 xorg_cv_cc_flag_unused_command_line_argument=no 9821fi 9822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9823fi 9824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9825printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9827 CFLAGS="$xorg_testset_save_CFLAGS" 9828fi 9829 9830found="no" 9831 9832 if test $found = "no" ; then 9833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9835 fi 9836 9837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9839 fi 9840 9841 CFLAGS="$CFLAGS -Wreturn-type" 9842 9843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9844printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9845 cacheid=xorg_cv_cc_flag__Wreturn_type 9846 if eval test \${$cacheid+y} 9847then : 9848 printf %s "(cached) " >&6 9849else $as_nop 9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9851/* end confdefs.h. */ 9852int i; 9853int 9854main (void) 9855{ 9856 9857 ; 9858 return 0; 9859} 9860_ACEOF 9861if ac_fn_c_try_link "$LINENO" 9862then : 9863 eval $cacheid=yes 9864else $as_nop 9865 eval $cacheid=no 9866fi 9867rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9868 conftest$ac_exeext conftest.$ac_ext 9869fi 9870 9871 9872 CFLAGS="$xorg_testset_save_CFLAGS" 9873 9874 eval supported=\$$cacheid 9875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9876printf "%s\n" "$supported" >&6; } 9877 if test "$supported" = "yes" ; then 9878 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9879 found="yes" 9880 fi 9881 fi 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897xorg_testset_save_CFLAGS="$CFLAGS" 9898 9899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9902printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9903if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9904then : 9905 printf %s "(cached) " >&6 9906else $as_nop 9907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9908/* end confdefs.h. */ 9909int i; 9910_ACEOF 9911if ac_fn_c_try_compile "$LINENO" 9912then : 9913 xorg_cv_cc_flag_unknown_warning_option=yes 9914else $as_nop 9915 xorg_cv_cc_flag_unknown_warning_option=no 9916fi 9917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9918fi 9919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9920printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9922 CFLAGS="$xorg_testset_save_CFLAGS" 9923fi 9924 9925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9928 fi 9929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9931printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9932if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9933then : 9934 printf %s "(cached) " >&6 9935else $as_nop 9936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9937/* end confdefs.h. */ 9938int i; 9939_ACEOF 9940if ac_fn_c_try_compile "$LINENO" 9941then : 9942 xorg_cv_cc_flag_unused_command_line_argument=yes 9943else $as_nop 9944 xorg_cv_cc_flag_unused_command_line_argument=no 9945fi 9946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9947fi 9948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9949printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9950 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9951 CFLAGS="$xorg_testset_save_CFLAGS" 9952fi 9953 9954found="no" 9955 9956 if test $found = "no" ; then 9957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9959 fi 9960 9961 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9963 fi 9964 9965 CFLAGS="$CFLAGS -Wtrigraphs" 9966 9967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9968printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9969 cacheid=xorg_cv_cc_flag__Wtrigraphs 9970 if eval test \${$cacheid+y} 9971then : 9972 printf %s "(cached) " >&6 9973else $as_nop 9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9975/* end confdefs.h. */ 9976int i; 9977int 9978main (void) 9979{ 9980 9981 ; 9982 return 0; 9983} 9984_ACEOF 9985if ac_fn_c_try_link "$LINENO" 9986then : 9987 eval $cacheid=yes 9988else $as_nop 9989 eval $cacheid=no 9990fi 9991rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9992 conftest$ac_exeext conftest.$ac_ext 9993fi 9994 9995 9996 CFLAGS="$xorg_testset_save_CFLAGS" 9997 9998 eval supported=\$$cacheid 9999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10000printf "%s\n" "$supported" >&6; } 10001 if test "$supported" = "yes" ; then 10002 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10003 found="yes" 10004 fi 10005 fi 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021xorg_testset_save_CFLAGS="$CFLAGS" 10022 10023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10026printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10027if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10028then : 10029 printf %s "(cached) " >&6 10030else $as_nop 10031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10032/* end confdefs.h. */ 10033int i; 10034_ACEOF 10035if ac_fn_c_try_compile "$LINENO" 10036then : 10037 xorg_cv_cc_flag_unknown_warning_option=yes 10038else $as_nop 10039 xorg_cv_cc_flag_unknown_warning_option=no 10040fi 10041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10042fi 10043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10044printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10046 CFLAGS="$xorg_testset_save_CFLAGS" 10047fi 10048 10049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10052 fi 10053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10055printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10056if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10057then : 10058 printf %s "(cached) " >&6 10059else $as_nop 10060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10061/* end confdefs.h. */ 10062int i; 10063_ACEOF 10064if ac_fn_c_try_compile "$LINENO" 10065then : 10066 xorg_cv_cc_flag_unused_command_line_argument=yes 10067else $as_nop 10068 xorg_cv_cc_flag_unused_command_line_argument=no 10069fi 10070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10071fi 10072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10073printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10075 CFLAGS="$xorg_testset_save_CFLAGS" 10076fi 10077 10078found="no" 10079 10080 if test $found = "no" ; then 10081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10083 fi 10084 10085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10087 fi 10088 10089 CFLAGS="$CFLAGS -Warray-bounds" 10090 10091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10092printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10093 cacheid=xorg_cv_cc_flag__Warray_bounds 10094 if eval test \${$cacheid+y} 10095then : 10096 printf %s "(cached) " >&6 10097else $as_nop 10098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10099/* end confdefs.h. */ 10100int i; 10101int 10102main (void) 10103{ 10104 10105 ; 10106 return 0; 10107} 10108_ACEOF 10109if ac_fn_c_try_link "$LINENO" 10110then : 10111 eval $cacheid=yes 10112else $as_nop 10113 eval $cacheid=no 10114fi 10115rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10116 conftest$ac_exeext conftest.$ac_ext 10117fi 10118 10119 10120 CFLAGS="$xorg_testset_save_CFLAGS" 10121 10122 eval supported=\$$cacheid 10123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10124printf "%s\n" "$supported" >&6; } 10125 if test "$supported" = "yes" ; then 10126 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10127 found="yes" 10128 fi 10129 fi 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145xorg_testset_save_CFLAGS="$CFLAGS" 10146 10147if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10150printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10151if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10152then : 10153 printf %s "(cached) " >&6 10154else $as_nop 10155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10156/* end confdefs.h. */ 10157int i; 10158_ACEOF 10159if ac_fn_c_try_compile "$LINENO" 10160then : 10161 xorg_cv_cc_flag_unknown_warning_option=yes 10162else $as_nop 10163 xorg_cv_cc_flag_unknown_warning_option=no 10164fi 10165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10166fi 10167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10168printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10170 CFLAGS="$xorg_testset_save_CFLAGS" 10171fi 10172 10173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10176 fi 10177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10179printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10180if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10181then : 10182 printf %s "(cached) " >&6 10183else $as_nop 10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10185/* end confdefs.h. */ 10186int i; 10187_ACEOF 10188if ac_fn_c_try_compile "$LINENO" 10189then : 10190 xorg_cv_cc_flag_unused_command_line_argument=yes 10191else $as_nop 10192 xorg_cv_cc_flag_unused_command_line_argument=no 10193fi 10194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10195fi 10196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10197printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10199 CFLAGS="$xorg_testset_save_CFLAGS" 10200fi 10201 10202found="no" 10203 10204 if test $found = "no" ; then 10205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10207 fi 10208 10209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10211 fi 10212 10213 CFLAGS="$CFLAGS -Wwrite-strings" 10214 10215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10216printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10217 cacheid=xorg_cv_cc_flag__Wwrite_strings 10218 if eval test \${$cacheid+y} 10219then : 10220 printf %s "(cached) " >&6 10221else $as_nop 10222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10223/* end confdefs.h. */ 10224int i; 10225int 10226main (void) 10227{ 10228 10229 ; 10230 return 0; 10231} 10232_ACEOF 10233if ac_fn_c_try_link "$LINENO" 10234then : 10235 eval $cacheid=yes 10236else $as_nop 10237 eval $cacheid=no 10238fi 10239rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10240 conftest$ac_exeext conftest.$ac_ext 10241fi 10242 10243 10244 CFLAGS="$xorg_testset_save_CFLAGS" 10245 10246 eval supported=\$$cacheid 10247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10248printf "%s\n" "$supported" >&6; } 10249 if test "$supported" = "yes" ; then 10250 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10251 found="yes" 10252 fi 10253 fi 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269xorg_testset_save_CFLAGS="$CFLAGS" 10270 10271if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10274printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10275if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10276then : 10277 printf %s "(cached) " >&6 10278else $as_nop 10279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10280/* end confdefs.h. */ 10281int i; 10282_ACEOF 10283if ac_fn_c_try_compile "$LINENO" 10284then : 10285 xorg_cv_cc_flag_unknown_warning_option=yes 10286else $as_nop 10287 xorg_cv_cc_flag_unknown_warning_option=no 10288fi 10289rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10290fi 10291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10292printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10294 CFLAGS="$xorg_testset_save_CFLAGS" 10295fi 10296 10297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10300 fi 10301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10303printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10304if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10305then : 10306 printf %s "(cached) " >&6 10307else $as_nop 10308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10309/* end confdefs.h. */ 10310int i; 10311_ACEOF 10312if ac_fn_c_try_compile "$LINENO" 10313then : 10314 xorg_cv_cc_flag_unused_command_line_argument=yes 10315else $as_nop 10316 xorg_cv_cc_flag_unused_command_line_argument=no 10317fi 10318rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10319fi 10320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10321printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10323 CFLAGS="$xorg_testset_save_CFLAGS" 10324fi 10325 10326found="no" 10327 10328 if test $found = "no" ; then 10329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10331 fi 10332 10333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10335 fi 10336 10337 CFLAGS="$CFLAGS -Waddress" 10338 10339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10340printf %s "checking if $CC supports -Waddress... " >&6; } 10341 cacheid=xorg_cv_cc_flag__Waddress 10342 if eval test \${$cacheid+y} 10343then : 10344 printf %s "(cached) " >&6 10345else $as_nop 10346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10347/* end confdefs.h. */ 10348int i; 10349int 10350main (void) 10351{ 10352 10353 ; 10354 return 0; 10355} 10356_ACEOF 10357if ac_fn_c_try_link "$LINENO" 10358then : 10359 eval $cacheid=yes 10360else $as_nop 10361 eval $cacheid=no 10362fi 10363rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10364 conftest$ac_exeext conftest.$ac_ext 10365fi 10366 10367 10368 CFLAGS="$xorg_testset_save_CFLAGS" 10369 10370 eval supported=\$$cacheid 10371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10372printf "%s\n" "$supported" >&6; } 10373 if test "$supported" = "yes" ; then 10374 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10375 found="yes" 10376 fi 10377 fi 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393xorg_testset_save_CFLAGS="$CFLAGS" 10394 10395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10398printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10399if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10400then : 10401 printf %s "(cached) " >&6 10402else $as_nop 10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10404/* end confdefs.h. */ 10405int i; 10406_ACEOF 10407if ac_fn_c_try_compile "$LINENO" 10408then : 10409 xorg_cv_cc_flag_unknown_warning_option=yes 10410else $as_nop 10411 xorg_cv_cc_flag_unknown_warning_option=no 10412fi 10413rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10414fi 10415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10416printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10417 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10418 CFLAGS="$xorg_testset_save_CFLAGS" 10419fi 10420 10421if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10424 fi 10425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10427printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10428if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10429then : 10430 printf %s "(cached) " >&6 10431else $as_nop 10432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10433/* end confdefs.h. */ 10434int i; 10435_ACEOF 10436if ac_fn_c_try_compile "$LINENO" 10437then : 10438 xorg_cv_cc_flag_unused_command_line_argument=yes 10439else $as_nop 10440 xorg_cv_cc_flag_unused_command_line_argument=no 10441fi 10442rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10443fi 10444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10445printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10446 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10447 CFLAGS="$xorg_testset_save_CFLAGS" 10448fi 10449 10450found="no" 10451 10452 if test $found = "no" ; then 10453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10455 fi 10456 10457 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10459 fi 10460 10461 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10462 10463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10464printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10465 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10466 if eval test \${$cacheid+y} 10467then : 10468 printf %s "(cached) " >&6 10469else $as_nop 10470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10471/* end confdefs.h. */ 10472int i; 10473int 10474main (void) 10475{ 10476 10477 ; 10478 return 0; 10479} 10480_ACEOF 10481if ac_fn_c_try_link "$LINENO" 10482then : 10483 eval $cacheid=yes 10484else $as_nop 10485 eval $cacheid=no 10486fi 10487rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10488 conftest$ac_exeext conftest.$ac_ext 10489fi 10490 10491 10492 CFLAGS="$xorg_testset_save_CFLAGS" 10493 10494 eval supported=\$$cacheid 10495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10496printf "%s\n" "$supported" >&6; } 10497 if test "$supported" = "yes" ; then 10498 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10499 found="yes" 10500 fi 10501 fi 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517xorg_testset_save_CFLAGS="$CFLAGS" 10518 10519if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10522printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10523if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10524then : 10525 printf %s "(cached) " >&6 10526else $as_nop 10527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10528/* end confdefs.h. */ 10529int i; 10530_ACEOF 10531if ac_fn_c_try_compile "$LINENO" 10532then : 10533 xorg_cv_cc_flag_unknown_warning_option=yes 10534else $as_nop 10535 xorg_cv_cc_flag_unknown_warning_option=no 10536fi 10537rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10538fi 10539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10540printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10541 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10542 CFLAGS="$xorg_testset_save_CFLAGS" 10543fi 10544 10545if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10548 fi 10549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10551printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10552if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10553then : 10554 printf %s "(cached) " >&6 10555else $as_nop 10556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10557/* end confdefs.h. */ 10558int i; 10559_ACEOF 10560if ac_fn_c_try_compile "$LINENO" 10561then : 10562 xorg_cv_cc_flag_unused_command_line_argument=yes 10563else $as_nop 10564 xorg_cv_cc_flag_unused_command_line_argument=no 10565fi 10566rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10567fi 10568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10569printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10570 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10571 CFLAGS="$xorg_testset_save_CFLAGS" 10572fi 10573 10574found="no" 10575 10576 if test $found = "no" ; then 10577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10579 fi 10580 10581 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10583 fi 10584 10585 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10586 10587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10588printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10589 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10590 if eval test \${$cacheid+y} 10591then : 10592 printf %s "(cached) " >&6 10593else $as_nop 10594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10595/* end confdefs.h. */ 10596int i; 10597int 10598main (void) 10599{ 10600 10601 ; 10602 return 0; 10603} 10604_ACEOF 10605if ac_fn_c_try_link "$LINENO" 10606then : 10607 eval $cacheid=yes 10608else $as_nop 10609 eval $cacheid=no 10610fi 10611rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10612 conftest$ac_exeext conftest.$ac_ext 10613fi 10614 10615 10616 CFLAGS="$xorg_testset_save_CFLAGS" 10617 10618 eval supported=\$$cacheid 10619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10620printf "%s\n" "$supported" >&6; } 10621 if test "$supported" = "yes" ; then 10622 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10623 found="yes" 10624 fi 10625 fi 10626 10627 10628fi 10629 10630 10631 10632 10633 10634 10635 10636 CWARNFLAGS="$BASE_CFLAGS" 10637 if test "x$GCC" = xyes ; then 10638 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10639 fi 10640 10641 10642 10643 10644 10645 10646 10647 10648# Check whether --enable-strict-compilation was given. 10649if test ${enable_strict_compilation+y} 10650then : 10651 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10652else $as_nop 10653 STRICT_COMPILE=no 10654fi 10655 10656 10657 10658 10659 10660 10661STRICT_CFLAGS="" 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675xorg_testset_save_CFLAGS="$CFLAGS" 10676 10677if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10680printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10681if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10682then : 10683 printf %s "(cached) " >&6 10684else $as_nop 10685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10686/* end confdefs.h. */ 10687int i; 10688_ACEOF 10689if ac_fn_c_try_compile "$LINENO" 10690then : 10691 xorg_cv_cc_flag_unknown_warning_option=yes 10692else $as_nop 10693 xorg_cv_cc_flag_unknown_warning_option=no 10694fi 10695rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10696fi 10697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10698printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10699 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10700 CFLAGS="$xorg_testset_save_CFLAGS" 10701fi 10702 10703if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10706 fi 10707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10709printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10710if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10711then : 10712 printf %s "(cached) " >&6 10713else $as_nop 10714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10715/* end confdefs.h. */ 10716int i; 10717_ACEOF 10718if ac_fn_c_try_compile "$LINENO" 10719then : 10720 xorg_cv_cc_flag_unused_command_line_argument=yes 10721else $as_nop 10722 xorg_cv_cc_flag_unused_command_line_argument=no 10723fi 10724rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10725fi 10726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10727printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10728 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10729 CFLAGS="$xorg_testset_save_CFLAGS" 10730fi 10731 10732found="no" 10733 10734 if test $found = "no" ; then 10735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10737 fi 10738 10739 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10741 fi 10742 10743 CFLAGS="$CFLAGS -pedantic" 10744 10745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10746printf %s "checking if $CC supports -pedantic... " >&6; } 10747 cacheid=xorg_cv_cc_flag__pedantic 10748 if eval test \${$cacheid+y} 10749then : 10750 printf %s "(cached) " >&6 10751else $as_nop 10752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10753/* end confdefs.h. */ 10754int i; 10755int 10756main (void) 10757{ 10758 10759 ; 10760 return 0; 10761} 10762_ACEOF 10763if ac_fn_c_try_link "$LINENO" 10764then : 10765 eval $cacheid=yes 10766else $as_nop 10767 eval $cacheid=no 10768fi 10769rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10770 conftest$ac_exeext conftest.$ac_ext 10771fi 10772 10773 10774 CFLAGS="$xorg_testset_save_CFLAGS" 10775 10776 eval supported=\$$cacheid 10777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10778printf "%s\n" "$supported" >&6; } 10779 if test "$supported" = "yes" ; then 10780 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10781 found="yes" 10782 fi 10783 fi 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799xorg_testset_save_CFLAGS="$CFLAGS" 10800 10801if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10804printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10805if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10806then : 10807 printf %s "(cached) " >&6 10808else $as_nop 10809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10810/* end confdefs.h. */ 10811int i; 10812_ACEOF 10813if ac_fn_c_try_compile "$LINENO" 10814then : 10815 xorg_cv_cc_flag_unknown_warning_option=yes 10816else $as_nop 10817 xorg_cv_cc_flag_unknown_warning_option=no 10818fi 10819rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10820fi 10821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10822printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10823 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10824 CFLAGS="$xorg_testset_save_CFLAGS" 10825fi 10826 10827if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10830 fi 10831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10833printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10834if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10835then : 10836 printf %s "(cached) " >&6 10837else $as_nop 10838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10839/* end confdefs.h. */ 10840int i; 10841_ACEOF 10842if ac_fn_c_try_compile "$LINENO" 10843then : 10844 xorg_cv_cc_flag_unused_command_line_argument=yes 10845else $as_nop 10846 xorg_cv_cc_flag_unused_command_line_argument=no 10847fi 10848rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10849fi 10850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10851printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10852 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10853 CFLAGS="$xorg_testset_save_CFLAGS" 10854fi 10855 10856found="no" 10857 10858 if test $found = "no" ; then 10859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10861 fi 10862 10863 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10865 fi 10866 10867 CFLAGS="$CFLAGS -Werror" 10868 10869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10870printf %s "checking if $CC supports -Werror... " >&6; } 10871 cacheid=xorg_cv_cc_flag__Werror 10872 if eval test \${$cacheid+y} 10873then : 10874 printf %s "(cached) " >&6 10875else $as_nop 10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10877/* end confdefs.h. */ 10878int i; 10879int 10880main (void) 10881{ 10882 10883 ; 10884 return 0; 10885} 10886_ACEOF 10887if ac_fn_c_try_link "$LINENO" 10888then : 10889 eval $cacheid=yes 10890else $as_nop 10891 eval $cacheid=no 10892fi 10893rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10894 conftest$ac_exeext conftest.$ac_ext 10895fi 10896 10897 10898 CFLAGS="$xorg_testset_save_CFLAGS" 10899 10900 eval supported=\$$cacheid 10901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10902printf "%s\n" "$supported" >&6; } 10903 if test "$supported" = "yes" ; then 10904 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10905 found="yes" 10906 fi 10907 fi 10908 10909 if test $found = "no" ; then 10910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10912 fi 10913 10914 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10916 fi 10917 10918 CFLAGS="$CFLAGS -errwarn" 10919 10920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10921printf %s "checking if $CC supports -errwarn... " >&6; } 10922 cacheid=xorg_cv_cc_flag__errwarn 10923 if eval test \${$cacheid+y} 10924then : 10925 printf %s "(cached) " >&6 10926else $as_nop 10927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10928/* end confdefs.h. */ 10929int i; 10930int 10931main (void) 10932{ 10933 10934 ; 10935 return 0; 10936} 10937_ACEOF 10938if ac_fn_c_try_link "$LINENO" 10939then : 10940 eval $cacheid=yes 10941else $as_nop 10942 eval $cacheid=no 10943fi 10944rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10945 conftest$ac_exeext conftest.$ac_ext 10946fi 10947 10948 10949 CFLAGS="$xorg_testset_save_CFLAGS" 10950 10951 eval supported=\$$cacheid 10952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10953printf "%s\n" "$supported" >&6; } 10954 if test "$supported" = "yes" ; then 10955 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10956 found="yes" 10957 fi 10958 fi 10959 10960 10961 10962# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10963# activate it with -Werror, so we add it here explicitly. 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977xorg_testset_save_CFLAGS="$CFLAGS" 10978 10979if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10982printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10983if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10984then : 10985 printf %s "(cached) " >&6 10986else $as_nop 10987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10988/* end confdefs.h. */ 10989int i; 10990_ACEOF 10991if ac_fn_c_try_compile "$LINENO" 10992then : 10993 xorg_cv_cc_flag_unknown_warning_option=yes 10994else $as_nop 10995 xorg_cv_cc_flag_unknown_warning_option=no 10996fi 10997rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10998fi 10999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11000printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11001 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11002 CFLAGS="$xorg_testset_save_CFLAGS" 11003fi 11004 11005if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11008 fi 11009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11011printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11012if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11013then : 11014 printf %s "(cached) " >&6 11015else $as_nop 11016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11017/* end confdefs.h. */ 11018int i; 11019_ACEOF 11020if ac_fn_c_try_compile "$LINENO" 11021then : 11022 xorg_cv_cc_flag_unused_command_line_argument=yes 11023else $as_nop 11024 xorg_cv_cc_flag_unused_command_line_argument=no 11025fi 11026rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11027fi 11028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11029printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11030 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11031 CFLAGS="$xorg_testset_save_CFLAGS" 11032fi 11033 11034found="no" 11035 11036 if test $found = "no" ; then 11037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11039 fi 11040 11041 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11043 fi 11044 11045 CFLAGS="$CFLAGS -Werror=attributes" 11046 11047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11048printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11049 cacheid=xorg_cv_cc_flag__Werror_attributes 11050 if eval test \${$cacheid+y} 11051then : 11052 printf %s "(cached) " >&6 11053else $as_nop 11054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11055/* end confdefs.h. */ 11056int i; 11057int 11058main (void) 11059{ 11060 11061 ; 11062 return 0; 11063} 11064_ACEOF 11065if ac_fn_c_try_link "$LINENO" 11066then : 11067 eval $cacheid=yes 11068else $as_nop 11069 eval $cacheid=no 11070fi 11071rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11072 conftest$ac_exeext conftest.$ac_ext 11073fi 11074 11075 11076 CFLAGS="$xorg_testset_save_CFLAGS" 11077 11078 eval supported=\$$cacheid 11079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11080printf "%s\n" "$supported" >&6; } 11081 if test "$supported" = "yes" ; then 11082 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11083 found="yes" 11084 fi 11085 fi 11086 11087 11088 11089if test "x$STRICT_COMPILE" = "xyes"; then 11090 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11091 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11092fi 11093 11094 11095 11096 11097 11098 11099cat >>confdefs.h <<_ACEOF 11100#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11101_ACEOF 11102 11103 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11104 if test "x$PVM" = "x"; then 11105 PVM="0" 11106 fi 11107 11108printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11109 11110 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11111 if test "x$PVP" = "x"; then 11112 PVP="0" 11113 fi 11114 11115printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11116 11117 11118 11119CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11120mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11121|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11122touch \$(top_srcdir)/ChangeLog; \ 11123echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11124 11125 11126 11127 11128macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11129INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11130mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11131|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11132touch \$(top_srcdir)/INSTALL; \ 11133echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11134 11135 11136 11137 11138 11139 11140case $host_os in 11141 solaris*) 11142 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11143 # check for a man page file found in later versions that use 11144 # traditional section numbers instead 11145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11146printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11147if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11148then : 11149 printf %s "(cached) " >&6 11150else $as_nop 11151 test "$cross_compiling" = yes && 11152 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11153if test -r "/usr/share/man/man7/attributes.7"; then 11154 ac_cv_file__usr_share_man_man7_attributes_7=yes 11155else 11156 ac_cv_file__usr_share_man_man7_attributes_7=no 11157fi 11158fi 11159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11160printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11161if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11162then : 11163 SYSV_MAN_SECTIONS=false 11164else $as_nop 11165 SYSV_MAN_SECTIONS=true 11166fi 11167 11168 ;; 11169 *) SYSV_MAN_SECTIONS=false ;; 11170esac 11171 11172if test x$APP_MAN_SUFFIX = x ; then 11173 APP_MAN_SUFFIX=1 11174fi 11175if test x$APP_MAN_DIR = x ; then 11176 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11177fi 11178 11179if test x$LIB_MAN_SUFFIX = x ; then 11180 LIB_MAN_SUFFIX=3 11181fi 11182if test x$LIB_MAN_DIR = x ; then 11183 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11184fi 11185 11186if test x$FILE_MAN_SUFFIX = x ; then 11187 case $SYSV_MAN_SECTIONS in 11188 true) FILE_MAN_SUFFIX=4 ;; 11189 *) FILE_MAN_SUFFIX=5 ;; 11190 esac 11191fi 11192if test x$FILE_MAN_DIR = x ; then 11193 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11194fi 11195 11196if test x$MISC_MAN_SUFFIX = x ; then 11197 case $SYSV_MAN_SECTIONS in 11198 true) MISC_MAN_SUFFIX=5 ;; 11199 *) MISC_MAN_SUFFIX=7 ;; 11200 esac 11201fi 11202if test x$MISC_MAN_DIR = x ; then 11203 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11204fi 11205 11206if test x$DRIVER_MAN_SUFFIX = x ; then 11207 case $SYSV_MAN_SECTIONS in 11208 true) DRIVER_MAN_SUFFIX=7 ;; 11209 *) DRIVER_MAN_SUFFIX=4 ;; 11210 esac 11211fi 11212if test x$DRIVER_MAN_DIR = x ; then 11213 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11214fi 11215 11216if test x$ADMIN_MAN_SUFFIX = x ; then 11217 case $SYSV_MAN_SECTIONS in 11218 true) ADMIN_MAN_SUFFIX=1m ;; 11219 *) ADMIN_MAN_SUFFIX=8 ;; 11220 esac 11221fi 11222if test x$ADMIN_MAN_DIR = x ; then 11223 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11224fi 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240XORG_MAN_PAGE="X Version 11" 11241 11242MAN_SUBSTS="\ 11243 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11244 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11245 -e 's|__xservername__|Xorg|g' \ 11246 -e 's|__xconfigfile__|xorg.conf|g' \ 11247 -e 's|__projectroot__|\$(prefix)|g' \ 11248 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11249 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11250 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11251 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11252 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11253 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11254 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11255 11256 11257 11258# Check whether --enable-silent-rules was given. 11259if test ${enable_silent_rules+y} 11260then : 11261 enableval=$enable_silent_rules; 11262fi 11263 11264case $enable_silent_rules in # ((( 11265 yes) AM_DEFAULT_VERBOSITY=0;; 11266 no) AM_DEFAULT_VERBOSITY=1;; 11267 *) AM_DEFAULT_VERBOSITY=0;; 11268esac 11269am_make=${MAKE-make} 11270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11271printf %s "checking whether $am_make supports nested variables... " >&6; } 11272if test ${am_cv_make_support_nested_variables+y} 11273then : 11274 printf %s "(cached) " >&6 11275else $as_nop 11276 if printf "%s\n" 'TRUE=$(BAR$(V)) 11277BAR0=false 11278BAR1=true 11279V=1 11280am__doit: 11281 @$(TRUE) 11282.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11283 am_cv_make_support_nested_variables=yes 11284else 11285 am_cv_make_support_nested_variables=no 11286fi 11287fi 11288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11289printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11290if test $am_cv_make_support_nested_variables = yes; then 11291 AM_V='$(V)' 11292 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11293else 11294 AM_V=$AM_DEFAULT_VERBOSITY 11295 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11296fi 11297AM_BACKSLASH='\' 11298 11299 11300 11301ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 11302if test "x$ac_cv_func_asprintf" = xyes 11303then : 11304 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h 11305 11306fi 11307ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 11308if test "x$ac_cv_func_mkstemp" = xyes 11309then : 11310 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h 11311 11312fi 11313ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp" 11314if test "x$ac_cv_func_mktemp" = xyes 11315then : 11316 printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h 11317 11318fi 11319 11320 11321# Checks for pkg-config packages 11322 11323pkg_failed=no 11324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SMPROXY" >&5 11325printf %s "checking for SMPROXY... " >&6; } 11326 11327if test -n "$SMPROXY_CFLAGS"; then 11328 pkg_cv_SMPROXY_CFLAGS="$SMPROXY_CFLAGS" 11329 elif test -n "$PKG_CONFIG"; then 11330 if test -n "$PKG_CONFIG" && \ 11331 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice xt xmuu\""; } >&5 11332 ($PKG_CONFIG --exists --print-errors "sm ice xt xmuu") 2>&5 11333 ac_status=$? 11334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11335 test $ac_status = 0; }; then 11336 pkg_cv_SMPROXY_CFLAGS=`$PKG_CONFIG --cflags "sm ice xt xmuu" 2>/dev/null` 11337 test "x$?" != "x0" && pkg_failed=yes 11338else 11339 pkg_failed=yes 11340fi 11341 else 11342 pkg_failed=untried 11343fi 11344if test -n "$SMPROXY_LIBS"; then 11345 pkg_cv_SMPROXY_LIBS="$SMPROXY_LIBS" 11346 elif test -n "$PKG_CONFIG"; then 11347 if test -n "$PKG_CONFIG" && \ 11348 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice xt xmuu\""; } >&5 11349 ($PKG_CONFIG --exists --print-errors "sm ice xt xmuu") 2>&5 11350 ac_status=$? 11351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11352 test $ac_status = 0; }; then 11353 pkg_cv_SMPROXY_LIBS=`$PKG_CONFIG --libs "sm ice xt xmuu" 2>/dev/null` 11354 test "x$?" != "x0" && pkg_failed=yes 11355else 11356 pkg_failed=yes 11357fi 11358 else 11359 pkg_failed=untried 11360fi 11361 11362 11363 11364if test $pkg_failed = yes; then 11365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11366printf "%s\n" "no" >&6; } 11367 11368if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11369 _pkg_short_errors_supported=yes 11370else 11371 _pkg_short_errors_supported=no 11372fi 11373 if test $_pkg_short_errors_supported = yes; then 11374 SMPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sm ice xt xmuu" 2>&1` 11375 else 11376 SMPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sm ice xt xmuu" 2>&1` 11377 fi 11378 # Put the nasty error message in config.log where it belongs 11379 echo "$SMPROXY_PKG_ERRORS" >&5 11380 11381 as_fn_error $? "Package requirements (sm ice xt xmuu) were not met: 11382 11383$SMPROXY_PKG_ERRORS 11384 11385Consider adjusting the PKG_CONFIG_PATH environment variable if you 11386installed software in a non-standard prefix. 11387 11388Alternatively, you may set the environment variables SMPROXY_CFLAGS 11389and SMPROXY_LIBS to avoid the need to call pkg-config. 11390See the pkg-config man page for more details." "$LINENO" 5 11391elif test $pkg_failed = untried; then 11392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11393printf "%s\n" "no" >&6; } 11394 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11395printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11396as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11397is in your PATH or set the PKG_CONFIG environment variable to the full 11398path to pkg-config. 11399 11400Alternatively, you may set the environment variables SMPROXY_CFLAGS 11401and SMPROXY_LIBS to avoid the need to call pkg-config. 11402See the pkg-config man page for more details. 11403 11404To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11405See \`config.log' for more details" "$LINENO" 5; } 11406else 11407 SMPROXY_CFLAGS=$pkg_cv_SMPROXY_CFLAGS 11408 SMPROXY_LIBS=$pkg_cv_SMPROXY_LIBS 11409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11410printf "%s\n" "yes" >&6; } 11411 11412fi 11413 11414ac_config_files="$ac_config_files Makefile man/Makefile" 11415 11416cat >confcache <<\_ACEOF 11417# This file is a shell script that caches the results of configure 11418# tests run on this system so they can be shared between configure 11419# scripts and configure runs, see configure's option --config-cache. 11420# It is not useful on other systems. If it contains results you don't 11421# want to keep, you may remove or edit it. 11422# 11423# config.status only pays attention to the cache file if you give it 11424# the --recheck option to rerun configure. 11425# 11426# `ac_cv_env_foo' variables (set or unset) will be overridden when 11427# loading this file, other *unset* `ac_cv_foo' will be assigned the 11428# following values. 11429 11430_ACEOF 11431 11432# The following way of writing the cache mishandles newlines in values, 11433# but we know of no workaround that is simple, portable, and efficient. 11434# So, we kill variables containing newlines. 11435# Ultrix sh set writes to stderr and can't be redirected directly, 11436# and sets the high bit in the cache file unless we assign to the vars. 11437( 11438 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11439 eval ac_val=\$$ac_var 11440 case $ac_val in #( 11441 *${as_nl}*) 11442 case $ac_var in #( 11443 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11444printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11445 esac 11446 case $ac_var in #( 11447 _ | IFS | as_nl) ;; #( 11448 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11449 *) { eval $ac_var=; unset $ac_var;} ;; 11450 esac ;; 11451 esac 11452 done 11453 11454 (set) 2>&1 | 11455 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11456 *${as_nl}ac_space=\ *) 11457 # `set' does not quote correctly, so add quotes: double-quote 11458 # substitution turns \\\\ into \\, and sed turns \\ into \. 11459 sed -n \ 11460 "s/'/'\\\\''/g; 11461 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11462 ;; #( 11463 *) 11464 # `set' quotes correctly as required by POSIX, so do not add quotes. 11465 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11466 ;; 11467 esac | 11468 sort 11469) | 11470 sed ' 11471 /^ac_cv_env_/b end 11472 t clear 11473 :clear 11474 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11475 t end 11476 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11477 :end' >>confcache 11478if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11479 if test -w "$cache_file"; then 11480 if test "x$cache_file" != "x/dev/null"; then 11481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11482printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11483 if test ! -f "$cache_file" || test -h "$cache_file"; then 11484 cat confcache >"$cache_file" 11485 else 11486 case $cache_file in #( 11487 */* | ?:*) 11488 mv -f confcache "$cache_file"$$ && 11489 mv -f "$cache_file"$$ "$cache_file" ;; #( 11490 *) 11491 mv -f confcache "$cache_file" ;; 11492 esac 11493 fi 11494 fi 11495 else 11496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11497printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11498 fi 11499fi 11500rm -f confcache 11501 11502test "x$prefix" = xNONE && prefix=$ac_default_prefix 11503# Let make expand exec_prefix. 11504test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11505 11506DEFS=-DHAVE_CONFIG_H 11507 11508ac_libobjs= 11509ac_ltlibobjs= 11510U= 11511for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11512 # 1. Remove the extension, and $U if already installed. 11513 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11514 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11515 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11516 # will be set to the directory where LIBOBJS objects are built. 11517 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11518 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11519done 11520LIBOBJS=$ac_libobjs 11521 11522LTLIBOBJS=$ac_ltlibobjs 11523 11524 11525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11526printf %s "checking that generated files are newer than configure... " >&6; } 11527 if test -n "$am_sleep_pid"; then 11528 # Hide warnings about reused PIDs. 11529 wait $am_sleep_pid 2>/dev/null 11530 fi 11531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11532printf "%s\n" "done" >&6; } 11533 if test -n "$EXEEXT"; then 11534 am__EXEEXT_TRUE= 11535 am__EXEEXT_FALSE='#' 11536else 11537 am__EXEEXT_TRUE='#' 11538 am__EXEEXT_FALSE= 11539fi 11540 11541if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11542 as_fn_error $? "conditional \"AMDEP\" was never defined. 11543Usually this means the macro was only invoked conditionally." "$LINENO" 5 11544fi 11545if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11546 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11547Usually this means the macro was only invoked conditionally." "$LINENO" 5 11548fi 11549 11550: "${CONFIG_STATUS=./config.status}" 11551ac_write_fail=0 11552ac_clean_files_save=$ac_clean_files 11553ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11555printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11556as_write_fail=0 11557cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11558#! $SHELL 11559# Generated by $as_me. 11560# Run this file to recreate the current configuration. 11561# Compiler output produced by configure, useful for debugging 11562# configure, is in config.log if it exists. 11563 11564debug=false 11565ac_cs_recheck=false 11566ac_cs_silent=false 11567 11568SHELL=\${CONFIG_SHELL-$SHELL} 11569export SHELL 11570_ASEOF 11571cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11572## -------------------- ## 11573## M4sh Initialization. ## 11574## -------------------- ## 11575 11576# Be more Bourne compatible 11577DUALCASE=1; export DUALCASE # for MKS sh 11578as_nop=: 11579if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11580then : 11581 emulate sh 11582 NULLCMD=: 11583 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11584 # is contrary to our usage. Disable this feature. 11585 alias -g '${1+"$@"}'='"$@"' 11586 setopt NO_GLOB_SUBST 11587else $as_nop 11588 case `(set -o) 2>/dev/null` in #( 11589 *posix*) : 11590 set -o posix ;; #( 11591 *) : 11592 ;; 11593esac 11594fi 11595 11596 11597 11598# Reset variables that may have inherited troublesome values from 11599# the environment. 11600 11601# IFS needs to be set, to space, tab, and newline, in precisely that order. 11602# (If _AS_PATH_WALK were called with IFS unset, it would have the 11603# side effect of setting IFS to empty, thus disabling word splitting.) 11604# Quoting is to prevent editors from complaining about space-tab. 11605as_nl=' 11606' 11607export as_nl 11608IFS=" "" $as_nl" 11609 11610PS1='$ ' 11611PS2='> ' 11612PS4='+ ' 11613 11614# Ensure predictable behavior from utilities with locale-dependent output. 11615LC_ALL=C 11616export LC_ALL 11617LANGUAGE=C 11618export LANGUAGE 11619 11620# We cannot yet rely on "unset" to work, but we need these variables 11621# to be unset--not just set to an empty or harmless value--now, to 11622# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11623# also avoids known problems related to "unset" and subshell syntax 11624# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11625for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11626do eval test \${$as_var+y} \ 11627 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11628done 11629 11630# Ensure that fds 0, 1, and 2 are open. 11631if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11632if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11633if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11634 11635# The user is always right. 11636if ${PATH_SEPARATOR+false} :; then 11637 PATH_SEPARATOR=: 11638 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11639 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11640 PATH_SEPARATOR=';' 11641 } 11642fi 11643 11644 11645# Find who we are. Look in the path if we contain no directory separator. 11646as_myself= 11647case $0 in #(( 11648 *[\\/]* ) as_myself=$0 ;; 11649 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11650for as_dir in $PATH 11651do 11652 IFS=$as_save_IFS 11653 case $as_dir in #((( 11654 '') as_dir=./ ;; 11655 */) ;; 11656 *) as_dir=$as_dir/ ;; 11657 esac 11658 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11659 done 11660IFS=$as_save_IFS 11661 11662 ;; 11663esac 11664# We did not find ourselves, most probably we were run as `sh COMMAND' 11665# in which case we are not to be found in the path. 11666if test "x$as_myself" = x; then 11667 as_myself=$0 11668fi 11669if test ! -f "$as_myself"; then 11670 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11671 exit 1 11672fi 11673 11674 11675 11676# as_fn_error STATUS ERROR [LINENO LOG_FD] 11677# ---------------------------------------- 11678# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11679# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11680# script with STATUS, using 1 if that was 0. 11681as_fn_error () 11682{ 11683 as_status=$1; test $as_status -eq 0 && as_status=1 11684 if test "$4"; then 11685 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11687 fi 11688 printf "%s\n" "$as_me: error: $2" >&2 11689 as_fn_exit $as_status 11690} # as_fn_error 11691 11692 11693 11694# as_fn_set_status STATUS 11695# ----------------------- 11696# Set $? to STATUS, without forking. 11697as_fn_set_status () 11698{ 11699 return $1 11700} # as_fn_set_status 11701 11702# as_fn_exit STATUS 11703# ----------------- 11704# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11705as_fn_exit () 11706{ 11707 set +e 11708 as_fn_set_status $1 11709 exit $1 11710} # as_fn_exit 11711 11712# as_fn_unset VAR 11713# --------------- 11714# Portably unset VAR. 11715as_fn_unset () 11716{ 11717 { eval $1=; unset $1;} 11718} 11719as_unset=as_fn_unset 11720 11721# as_fn_append VAR VALUE 11722# ---------------------- 11723# Append the text in VALUE to the end of the definition contained in VAR. Take 11724# advantage of any shell optimizations that allow amortized linear growth over 11725# repeated appends, instead of the typical quadratic growth present in naive 11726# implementations. 11727if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11728then : 11729 eval 'as_fn_append () 11730 { 11731 eval $1+=\$2 11732 }' 11733else $as_nop 11734 as_fn_append () 11735 { 11736 eval $1=\$$1\$2 11737 } 11738fi # as_fn_append 11739 11740# as_fn_arith ARG... 11741# ------------------ 11742# Perform arithmetic evaluation on the ARGs, and store the result in the 11743# global $as_val. Take advantage of shells that can avoid forks. The arguments 11744# must be portable across $(()) and expr. 11745if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11746then : 11747 eval 'as_fn_arith () 11748 { 11749 as_val=$(( $* )) 11750 }' 11751else $as_nop 11752 as_fn_arith () 11753 { 11754 as_val=`expr "$@" || test $? -eq 1` 11755 } 11756fi # as_fn_arith 11757 11758 11759if expr a : '\(a\)' >/dev/null 2>&1 && 11760 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11761 as_expr=expr 11762else 11763 as_expr=false 11764fi 11765 11766if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11767 as_basename=basename 11768else 11769 as_basename=false 11770fi 11771 11772if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11773 as_dirname=dirname 11774else 11775 as_dirname=false 11776fi 11777 11778as_me=`$as_basename -- "$0" || 11779$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11780 X"$0" : 'X\(//\)$' \| \ 11781 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11782printf "%s\n" X/"$0" | 11783 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11784 s//\1/ 11785 q 11786 } 11787 /^X\/\(\/\/\)$/{ 11788 s//\1/ 11789 q 11790 } 11791 /^X\/\(\/\).*/{ 11792 s//\1/ 11793 q 11794 } 11795 s/.*/./; q'` 11796 11797# Avoid depending upon Character Ranges. 11798as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11799as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11800as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11801as_cr_digits='0123456789' 11802as_cr_alnum=$as_cr_Letters$as_cr_digits 11803 11804 11805# Determine whether it's possible to make 'echo' print without a newline. 11806# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11807# for compatibility with existing Makefiles. 11808ECHO_C= ECHO_N= ECHO_T= 11809case `echo -n x` in #((((( 11810-n*) 11811 case `echo 'xy\c'` in 11812 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11813 xy) ECHO_C='\c';; 11814 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11815 ECHO_T=' ';; 11816 esac;; 11817*) 11818 ECHO_N='-n';; 11819esac 11820 11821# For backward compatibility with old third-party macros, we provide 11822# the shell variables $as_echo and $as_echo_n. New code should use 11823# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11824as_echo='printf %s\n' 11825as_echo_n='printf %s' 11826 11827rm -f conf$$ conf$$.exe conf$$.file 11828if test -d conf$$.dir; then 11829 rm -f conf$$.dir/conf$$.file 11830else 11831 rm -f conf$$.dir 11832 mkdir conf$$.dir 2>/dev/null 11833fi 11834if (echo >conf$$.file) 2>/dev/null; then 11835 if ln -s conf$$.file conf$$ 2>/dev/null; then 11836 as_ln_s='ln -s' 11837 # ... but there are two gotchas: 11838 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11839 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11840 # In both cases, we have to default to `cp -pR'. 11841 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11842 as_ln_s='cp -pR' 11843 elif ln conf$$.file conf$$ 2>/dev/null; then 11844 as_ln_s=ln 11845 else 11846 as_ln_s='cp -pR' 11847 fi 11848else 11849 as_ln_s='cp -pR' 11850fi 11851rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11852rmdir conf$$.dir 2>/dev/null 11853 11854 11855# as_fn_mkdir_p 11856# ------------- 11857# Create "$as_dir" as a directory, including parents if necessary. 11858as_fn_mkdir_p () 11859{ 11860 11861 case $as_dir in #( 11862 -*) as_dir=./$as_dir;; 11863 esac 11864 test -d "$as_dir" || eval $as_mkdir_p || { 11865 as_dirs= 11866 while :; do 11867 case $as_dir in #( 11868 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11869 *) as_qdir=$as_dir;; 11870 esac 11871 as_dirs="'$as_qdir' $as_dirs" 11872 as_dir=`$as_dirname -- "$as_dir" || 11873$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11874 X"$as_dir" : 'X\(//\)[^/]' \| \ 11875 X"$as_dir" : 'X\(//\)$' \| \ 11876 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11877printf "%s\n" X"$as_dir" | 11878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11879 s//\1/ 11880 q 11881 } 11882 /^X\(\/\/\)[^/].*/{ 11883 s//\1/ 11884 q 11885 } 11886 /^X\(\/\/\)$/{ 11887 s//\1/ 11888 q 11889 } 11890 /^X\(\/\).*/{ 11891 s//\1/ 11892 q 11893 } 11894 s/.*/./; q'` 11895 test -d "$as_dir" && break 11896 done 11897 test -z "$as_dirs" || eval "mkdir $as_dirs" 11898 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11899 11900 11901} # as_fn_mkdir_p 11902if mkdir -p . 2>/dev/null; then 11903 as_mkdir_p='mkdir -p "$as_dir"' 11904else 11905 test -d ./-p && rmdir ./-p 11906 as_mkdir_p=false 11907fi 11908 11909 11910# as_fn_executable_p FILE 11911# ----------------------- 11912# Test if FILE is an executable regular file. 11913as_fn_executable_p () 11914{ 11915 test -f "$1" && test -x "$1" 11916} # as_fn_executable_p 11917as_test_x='test -x' 11918as_executable_p=as_fn_executable_p 11919 11920# Sed expression to map a string onto a valid CPP name. 11921as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11922 11923# Sed expression to map a string onto a valid variable name. 11924as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11925 11926 11927exec 6>&1 11928## ----------------------------------- ## 11929## Main body of $CONFIG_STATUS script. ## 11930## ----------------------------------- ## 11931_ASEOF 11932test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11933 11934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11935# Save the log message, to keep $0 and so on meaningful, and to 11936# report actual input values of CONFIG_FILES etc. instead of their 11937# values after options handling. 11938ac_log=" 11939This file was extended by smproxy $as_me 1.0.7, which was 11940generated by GNU Autoconf 2.71. Invocation command line was 11941 11942 CONFIG_FILES = $CONFIG_FILES 11943 CONFIG_HEADERS = $CONFIG_HEADERS 11944 CONFIG_LINKS = $CONFIG_LINKS 11945 CONFIG_COMMANDS = $CONFIG_COMMANDS 11946 $ $0 $@ 11947 11948on `(hostname || uname -n) 2>/dev/null | sed 1q` 11949" 11950 11951_ACEOF 11952 11953case $ac_config_files in *" 11954"*) set x $ac_config_files; shift; ac_config_files=$*;; 11955esac 11956 11957case $ac_config_headers in *" 11958"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11959esac 11960 11961 11962cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11963# Files that config.status was made for. 11964config_files="$ac_config_files" 11965config_headers="$ac_config_headers" 11966config_commands="$ac_config_commands" 11967 11968_ACEOF 11969 11970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11971ac_cs_usage="\ 11972\`$as_me' instantiates files and other configuration actions 11973from templates according to the current configuration. Unless the files 11974and actions are specified as TAGs, all are instantiated by default. 11975 11976Usage: $0 [OPTION]... [TAG]... 11977 11978 -h, --help print this help, then exit 11979 -V, --version print version number and configuration settings, then exit 11980 --config print configuration, then exit 11981 -q, --quiet, --silent 11982 do not print progress messages 11983 -d, --debug don't remove temporary files 11984 --recheck update $as_me by reconfiguring in the same conditions 11985 --file=FILE[:TEMPLATE] 11986 instantiate the configuration file FILE 11987 --header=FILE[:TEMPLATE] 11988 instantiate the configuration header FILE 11989 11990Configuration files: 11991$config_files 11992 11993Configuration headers: 11994$config_headers 11995 11996Configuration commands: 11997$config_commands 11998 11999Report bugs to <https://gitlab.freedesktop.org/xorg/app/smproxy/issues>." 12000 12001_ACEOF 12002ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12003ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12004cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12005ac_cs_config='$ac_cs_config_escaped' 12006ac_cs_version="\\ 12007smproxy config.status 1.0.7 12008configured by $0, generated by GNU Autoconf 2.71, 12009 with options \\"\$ac_cs_config\\" 12010 12011Copyright (C) 2021 Free Software Foundation, Inc. 12012This config.status script is free software; the Free Software Foundation 12013gives unlimited permission to copy, distribute and modify it." 12014 12015ac_pwd='$ac_pwd' 12016srcdir='$srcdir' 12017INSTALL='$INSTALL' 12018MKDIR_P='$MKDIR_P' 12019AWK='$AWK' 12020test -n "\$AWK" || AWK=awk 12021_ACEOF 12022 12023cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12024# The default lists apply if the user does not specify any file. 12025ac_need_defaults=: 12026while test $# != 0 12027do 12028 case $1 in 12029 --*=?*) 12030 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12031 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12032 ac_shift=: 12033 ;; 12034 --*=) 12035 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12036 ac_optarg= 12037 ac_shift=: 12038 ;; 12039 *) 12040 ac_option=$1 12041 ac_optarg=$2 12042 ac_shift=shift 12043 ;; 12044 esac 12045 12046 case $ac_option in 12047 # Handling of the options. 12048 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12049 ac_cs_recheck=: ;; 12050 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12051 printf "%s\n" "$ac_cs_version"; exit ;; 12052 --config | --confi | --conf | --con | --co | --c ) 12053 printf "%s\n" "$ac_cs_config"; exit ;; 12054 --debug | --debu | --deb | --de | --d | -d ) 12055 debug=: ;; 12056 --file | --fil | --fi | --f ) 12057 $ac_shift 12058 case $ac_optarg in 12059 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12060 '') as_fn_error $? "missing file argument" ;; 12061 esac 12062 as_fn_append CONFIG_FILES " '$ac_optarg'" 12063 ac_need_defaults=false;; 12064 --header | --heade | --head | --hea ) 12065 $ac_shift 12066 case $ac_optarg in 12067 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12068 esac 12069 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12070 ac_need_defaults=false;; 12071 --he | --h) 12072 # Conflict between --help and --header 12073 as_fn_error $? "ambiguous option: \`$1' 12074Try \`$0 --help' for more information.";; 12075 --help | --hel | -h ) 12076 printf "%s\n" "$ac_cs_usage"; exit ;; 12077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12078 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12079 ac_cs_silent=: ;; 12080 12081 # This is an error. 12082 -*) as_fn_error $? "unrecognized option: \`$1' 12083Try \`$0 --help' for more information." ;; 12084 12085 *) as_fn_append ac_config_targets " $1" 12086 ac_need_defaults=false ;; 12087 12088 esac 12089 shift 12090done 12091 12092ac_configure_extra_args= 12093 12094if $ac_cs_silent; then 12095 exec 6>/dev/null 12096 ac_configure_extra_args="$ac_configure_extra_args --silent" 12097fi 12098 12099_ACEOF 12100cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12101if \$ac_cs_recheck; then 12102 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12103 shift 12104 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12105 CONFIG_SHELL='$SHELL' 12106 export CONFIG_SHELL 12107 exec "\$@" 12108fi 12109 12110_ACEOF 12111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12112exec 5>>config.log 12113{ 12114 echo 12115 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12116## Running $as_me. ## 12117_ASBOX 12118 printf "%s\n" "$ac_log" 12119} >&5 12120 12121_ACEOF 12122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12123# 12124# INIT-COMMANDS 12125# 12126AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12127 12128_ACEOF 12129 12130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12131 12132# Handling of arguments. 12133for ac_config_target in $ac_config_targets 12134do 12135 case $ac_config_target in 12136 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12137 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12138 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12139 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12140 12141 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12142 esac 12143done 12144 12145 12146# If the user did not use the arguments to specify the items to instantiate, 12147# then the envvar interface is used. Set only those that are not. 12148# We use the long form for the default assignment because of an extremely 12149# bizarre bug on SunOS 4.1.3. 12150if $ac_need_defaults; then 12151 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12152 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12153 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12154fi 12155 12156# Have a temporary directory for convenience. Make it in the build tree 12157# simply because there is no reason against having it here, and in addition, 12158# creating and moving files from /tmp can sometimes cause problems. 12159# Hook for its removal unless debugging. 12160# Note that there is a small window in which the directory will not be cleaned: 12161# after its creation but before its name has been assigned to `$tmp'. 12162$debug || 12163{ 12164 tmp= ac_tmp= 12165 trap 'exit_status=$? 12166 : "${ac_tmp:=$tmp}" 12167 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12168' 0 12169 trap 'as_fn_exit 1' 1 2 13 15 12170} 12171# Create a (secure) tmp directory for tmp files. 12172 12173{ 12174 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12175 test -d "$tmp" 12176} || 12177{ 12178 tmp=./conf$$-$RANDOM 12179 (umask 077 && mkdir "$tmp") 12180} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12181ac_tmp=$tmp 12182 12183# Set up the scripts for CONFIG_FILES section. 12184# No need to generate them if there are no CONFIG_FILES. 12185# This happens for instance with `./config.status config.h'. 12186if test -n "$CONFIG_FILES"; then 12187 12188 12189ac_cr=`echo X | tr X '\015'` 12190# On cygwin, bash can eat \r inside `` if the user requested igncr. 12191# But we know of no other shell where ac_cr would be empty at this 12192# point, so we can use a bashism as a fallback. 12193if test "x$ac_cr" = x; then 12194 eval ac_cr=\$\'\\r\' 12195fi 12196ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12197if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12198 ac_cs_awk_cr='\\r' 12199else 12200 ac_cs_awk_cr=$ac_cr 12201fi 12202 12203echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12204_ACEOF 12205 12206 12207{ 12208 echo "cat >conf$$subs.awk <<_ACEOF" && 12209 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12210 echo "_ACEOF" 12211} >conf$$subs.sh || 12212 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12213ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12214ac_delim='%!_!# ' 12215for ac_last_try in false false false false false :; do 12216 . ./conf$$subs.sh || 12217 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12218 12219 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12220 if test $ac_delim_n = $ac_delim_num; then 12221 break 12222 elif $ac_last_try; then 12223 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12224 else 12225 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12226 fi 12227done 12228rm -f conf$$subs.sh 12229 12230cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12231cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12232_ACEOF 12233sed -n ' 12234h 12235s/^/S["/; s/!.*/"]=/ 12236p 12237g 12238s/^[^!]*!// 12239:repl 12240t repl 12241s/'"$ac_delim"'$// 12242t delim 12243:nl 12244h 12245s/\(.\{148\}\)..*/\1/ 12246t more1 12247s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12248p 12249n 12250b repl 12251:more1 12252s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12253p 12254g 12255s/.\{148\}// 12256t nl 12257:delim 12258h 12259s/\(.\{148\}\)..*/\1/ 12260t more2 12261s/["\\]/\\&/g; s/^/"/; s/$/"/ 12262p 12263b 12264:more2 12265s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12266p 12267g 12268s/.\{148\}// 12269t delim 12270' <conf$$subs.awk | sed ' 12271/^[^""]/{ 12272 N 12273 s/\n// 12274} 12275' >>$CONFIG_STATUS || ac_write_fail=1 12276rm -f conf$$subs.awk 12277cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12278_ACAWK 12279cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12280 for (key in S) S_is_set[key] = 1 12281 FS = "" 12282 12283} 12284{ 12285 line = $ 0 12286 nfields = split(line, field, "@") 12287 substed = 0 12288 len = length(field[1]) 12289 for (i = 2; i < nfields; i++) { 12290 key = field[i] 12291 keylen = length(key) 12292 if (S_is_set[key]) { 12293 value = S[key] 12294 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12295 len += length(value) + length(field[++i]) 12296 substed = 1 12297 } else 12298 len += 1 + keylen 12299 } 12300 12301 print line 12302} 12303 12304_ACAWK 12305_ACEOF 12306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12307if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12308 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12309else 12310 cat 12311fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12312 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12313_ACEOF 12314 12315# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12316# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12317# trailing colons and then remove the whole line if VPATH becomes empty 12318# (actually we leave an empty line to preserve line numbers). 12319if test "x$srcdir" = x.; then 12320 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12321h 12322s/// 12323s/^/:/ 12324s/[ ]*$/:/ 12325s/:\$(srcdir):/:/g 12326s/:\${srcdir}:/:/g 12327s/:@srcdir@:/:/g 12328s/^:*// 12329s/:*$// 12330x 12331s/\(=[ ]*\).*/\1/ 12332G 12333s/\n// 12334s/^[^=]*=[ ]*$// 12335}' 12336fi 12337 12338cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12339fi # test -n "$CONFIG_FILES" 12340 12341# Set up the scripts for CONFIG_HEADERS section. 12342# No need to generate them if there are no CONFIG_HEADERS. 12343# This happens for instance with `./config.status Makefile'. 12344if test -n "$CONFIG_HEADERS"; then 12345cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12346BEGIN { 12347_ACEOF 12348 12349# Transform confdefs.h into an awk script `defines.awk', embedded as 12350# here-document in config.status, that substitutes the proper values into 12351# config.h.in to produce config.h. 12352 12353# Create a delimiter string that does not exist in confdefs.h, to ease 12354# handling of long lines. 12355ac_delim='%!_!# ' 12356for ac_last_try in false false :; do 12357 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12358 if test -z "$ac_tt"; then 12359 break 12360 elif $ac_last_try; then 12361 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12362 else 12363 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12364 fi 12365done 12366 12367# For the awk script, D is an array of macro values keyed by name, 12368# likewise P contains macro parameters if any. Preserve backslash 12369# newline sequences. 12370 12371ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12372sed -n ' 12373s/.\{148\}/&'"$ac_delim"'/g 12374t rset 12375:rset 12376s/^[ ]*#[ ]*define[ ][ ]*/ / 12377t def 12378d 12379:def 12380s/\\$// 12381t bsnl 12382s/["\\]/\\&/g 12383s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12384D["\1"]=" \3"/p 12385s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12386d 12387:bsnl 12388s/["\\]/\\&/g 12389s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12390D["\1"]=" \3\\\\\\n"\\/p 12391t cont 12392s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12393t cont 12394d 12395:cont 12396n 12397s/.\{148\}/&'"$ac_delim"'/g 12398t clear 12399:clear 12400s/\\$// 12401t bsnlc 12402s/["\\]/\\&/g; s/^/"/; s/$/"/p 12403d 12404:bsnlc 12405s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12406b cont 12407' <confdefs.h | sed ' 12408s/'"$ac_delim"'/"\\\ 12409"/g' >>$CONFIG_STATUS || ac_write_fail=1 12410 12411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12412 for (key in D) D_is_set[key] = 1 12413 FS = "" 12414} 12415/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12416 line = \$ 0 12417 split(line, arg, " ") 12418 if (arg[1] == "#") { 12419 defundef = arg[2] 12420 mac1 = arg[3] 12421 } else { 12422 defundef = substr(arg[1], 2) 12423 mac1 = arg[2] 12424 } 12425 split(mac1, mac2, "(") #) 12426 macro = mac2[1] 12427 prefix = substr(line, 1, index(line, defundef) - 1) 12428 if (D_is_set[macro]) { 12429 # Preserve the white space surrounding the "#". 12430 print prefix "define", macro P[macro] D[macro] 12431 next 12432 } else { 12433 # Replace #undef with comments. This is necessary, for example, 12434 # in the case of _POSIX_SOURCE, which is predefined and required 12435 # on some systems where configure will not decide to define it. 12436 if (defundef == "undef") { 12437 print "/*", prefix defundef, macro, "*/" 12438 next 12439 } 12440 } 12441} 12442{ print } 12443_ACAWK 12444_ACEOF 12445cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12446 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12447fi # test -n "$CONFIG_HEADERS" 12448 12449 12450eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12451shift 12452for ac_tag 12453do 12454 case $ac_tag in 12455 :[FHLC]) ac_mode=$ac_tag; continue;; 12456 esac 12457 case $ac_mode$ac_tag in 12458 :[FHL]*:*);; 12459 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12460 :[FH]-) ac_tag=-:-;; 12461 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12462 esac 12463 ac_save_IFS=$IFS 12464 IFS=: 12465 set x $ac_tag 12466 IFS=$ac_save_IFS 12467 shift 12468 ac_file=$1 12469 shift 12470 12471 case $ac_mode in 12472 :L) ac_source=$1;; 12473 :[FH]) 12474 ac_file_inputs= 12475 for ac_f 12476 do 12477 case $ac_f in 12478 -) ac_f="$ac_tmp/stdin";; 12479 *) # Look for the file first in the build tree, then in the source tree 12480 # (if the path is not absolute). The absolute path cannot be DOS-style, 12481 # because $ac_f cannot contain `:'. 12482 test -f "$ac_f" || 12483 case $ac_f in 12484 [\\/$]*) false;; 12485 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12486 esac || 12487 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12488 esac 12489 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12490 as_fn_append ac_file_inputs " '$ac_f'" 12491 done 12492 12493 # Let's still pretend it is `configure' which instantiates (i.e., don't 12494 # use $as_me), people would be surprised to read: 12495 # /* config.h. Generated by config.status. */ 12496 configure_input='Generated from '` 12497 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12498 `' by configure.' 12499 if test x"$ac_file" != x-; then 12500 configure_input="$ac_file. $configure_input" 12501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12502printf "%s\n" "$as_me: creating $ac_file" >&6;} 12503 fi 12504 # Neutralize special characters interpreted by sed in replacement strings. 12505 case $configure_input in #( 12506 *\&* | *\|* | *\\* ) 12507 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12508 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12509 *) ac_sed_conf_input=$configure_input;; 12510 esac 12511 12512 case $ac_tag in 12513 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12514 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12515 esac 12516 ;; 12517 esac 12518 12519 ac_dir=`$as_dirname -- "$ac_file" || 12520$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12521 X"$ac_file" : 'X\(//\)[^/]' \| \ 12522 X"$ac_file" : 'X\(//\)$' \| \ 12523 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12524printf "%s\n" X"$ac_file" | 12525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12526 s//\1/ 12527 q 12528 } 12529 /^X\(\/\/\)[^/].*/{ 12530 s//\1/ 12531 q 12532 } 12533 /^X\(\/\/\)$/{ 12534 s//\1/ 12535 q 12536 } 12537 /^X\(\/\).*/{ 12538 s//\1/ 12539 q 12540 } 12541 s/.*/./; q'` 12542 as_dir="$ac_dir"; as_fn_mkdir_p 12543 ac_builddir=. 12544 12545case "$ac_dir" in 12546.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12547*) 12548 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12549 # A ".." for each directory in $ac_dir_suffix. 12550 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12551 case $ac_top_builddir_sub in 12552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12554 esac ;; 12555esac 12556ac_abs_top_builddir=$ac_pwd 12557ac_abs_builddir=$ac_pwd$ac_dir_suffix 12558# for backward compatibility: 12559ac_top_builddir=$ac_top_build_prefix 12560 12561case $srcdir in 12562 .) # We are building in place. 12563 ac_srcdir=. 12564 ac_top_srcdir=$ac_top_builddir_sub 12565 ac_abs_top_srcdir=$ac_pwd ;; 12566 [\\/]* | ?:[\\/]* ) # Absolute name. 12567 ac_srcdir=$srcdir$ac_dir_suffix; 12568 ac_top_srcdir=$srcdir 12569 ac_abs_top_srcdir=$srcdir ;; 12570 *) # Relative name. 12571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12572 ac_top_srcdir=$ac_top_build_prefix$srcdir 12573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12574esac 12575ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12576 12577 12578 case $ac_mode in 12579 :F) 12580 # 12581 # CONFIG_FILE 12582 # 12583 12584 case $INSTALL in 12585 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12586 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12587 esac 12588 ac_MKDIR_P=$MKDIR_P 12589 case $MKDIR_P in 12590 [\\/$]* | ?:[\\/]* ) ;; 12591 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12592 esac 12593_ACEOF 12594 12595cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12596# If the template does not know about datarootdir, expand it. 12597# FIXME: This hack should be removed a few years after 2.60. 12598ac_datarootdir_hack=; ac_datarootdir_seen= 12599ac_sed_dataroot=' 12600/datarootdir/ { 12601 p 12602 q 12603} 12604/@datadir@/p 12605/@docdir@/p 12606/@infodir@/p 12607/@localedir@/p 12608/@mandir@/p' 12609case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12610*datarootdir*) ac_datarootdir_seen=yes;; 12611*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12613printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12614_ACEOF 12615cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12616 ac_datarootdir_hack=' 12617 s&@datadir@&$datadir&g 12618 s&@docdir@&$docdir&g 12619 s&@infodir@&$infodir&g 12620 s&@localedir@&$localedir&g 12621 s&@mandir@&$mandir&g 12622 s&\\\${datarootdir}&$datarootdir&g' ;; 12623esac 12624_ACEOF 12625 12626# Neutralize VPATH when `$srcdir' = `.'. 12627# Shell code in configure.ac might set extrasub. 12628# FIXME: do we really want to maintain this feature? 12629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12630ac_sed_extra="$ac_vpsub 12631$extrasub 12632_ACEOF 12633cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12634:t 12635/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12636s|@configure_input@|$ac_sed_conf_input|;t t 12637s&@top_builddir@&$ac_top_builddir_sub&;t t 12638s&@top_build_prefix@&$ac_top_build_prefix&;t t 12639s&@srcdir@&$ac_srcdir&;t t 12640s&@abs_srcdir@&$ac_abs_srcdir&;t t 12641s&@top_srcdir@&$ac_top_srcdir&;t t 12642s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12643s&@builddir@&$ac_builddir&;t t 12644s&@abs_builddir@&$ac_abs_builddir&;t t 12645s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12646s&@INSTALL@&$ac_INSTALL&;t t 12647s&@MKDIR_P@&$ac_MKDIR_P&;t t 12648$ac_datarootdir_hack 12649" 12650eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12651 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12652 12653test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12654 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12655 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12656 "$ac_tmp/out"`; test -z "$ac_out"; } && 12657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12658which seems to be undefined. Please make sure it is defined" >&5 12659printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12660which seems to be undefined. Please make sure it is defined" >&2;} 12661 12662 rm -f "$ac_tmp/stdin" 12663 case $ac_file in 12664 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12665 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12666 esac \ 12667 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12668 ;; 12669 :H) 12670 # 12671 # CONFIG_HEADER 12672 # 12673 if test x"$ac_file" != x-; then 12674 { 12675 printf "%s\n" "/* $configure_input */" >&1 \ 12676 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12677 } >"$ac_tmp/config.h" \ 12678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12679 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12681printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12682 else 12683 rm -f "$ac_file" 12684 mv "$ac_tmp/config.h" "$ac_file" \ 12685 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12686 fi 12687 else 12688 printf "%s\n" "/* $configure_input */" >&1 \ 12689 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12690 || as_fn_error $? "could not create -" "$LINENO" 5 12691 fi 12692# Compute "$ac_file"'s index in $config_headers. 12693_am_arg="$ac_file" 12694_am_stamp_count=1 12695for _am_header in $config_headers :; do 12696 case $_am_header in 12697 $_am_arg | $_am_arg:* ) 12698 break ;; 12699 * ) 12700 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12701 esac 12702done 12703echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12704$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12705 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12706 X"$_am_arg" : 'X\(//\)$' \| \ 12707 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12708printf "%s\n" X"$_am_arg" | 12709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12710 s//\1/ 12711 q 12712 } 12713 /^X\(\/\/\)[^/].*/{ 12714 s//\1/ 12715 q 12716 } 12717 /^X\(\/\/\)$/{ 12718 s//\1/ 12719 q 12720 } 12721 /^X\(\/\).*/{ 12722 s//\1/ 12723 q 12724 } 12725 s/.*/./; q'`/stamp-h$_am_stamp_count 12726 ;; 12727 12728 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12729printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12730 ;; 12731 esac 12732 12733 12734 case $ac_file$ac_mode in 12735 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12736 # Older Autoconf quotes --file arguments for eval, but not when files 12737 # are listed without --file. Let's play safe and only enable the eval 12738 # if we detect the quoting. 12739 # TODO: see whether this extra hack can be removed once we start 12740 # requiring Autoconf 2.70 or later. 12741 case $CONFIG_FILES in #( 12742 *\'*) : 12743 eval set x "$CONFIG_FILES" ;; #( 12744 *) : 12745 set x $CONFIG_FILES ;; #( 12746 *) : 12747 ;; 12748esac 12749 shift 12750 # Used to flag and report bootstrapping failures. 12751 am_rc=0 12752 for am_mf 12753 do 12754 # Strip MF so we end up with the name of the file. 12755 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12756 # Check whether this is an Automake generated Makefile which includes 12757 # dependency-tracking related rules and includes. 12758 # Grep'ing the whole file directly is not great: AIX grep has a line 12759 # limit of 2048, but all sed's we know have understand at least 4000. 12760 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12761 || continue 12762 am_dirpart=`$as_dirname -- "$am_mf" || 12763$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12764 X"$am_mf" : 'X\(//\)[^/]' \| \ 12765 X"$am_mf" : 'X\(//\)$' \| \ 12766 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12767printf "%s\n" X"$am_mf" | 12768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12769 s//\1/ 12770 q 12771 } 12772 /^X\(\/\/\)[^/].*/{ 12773 s//\1/ 12774 q 12775 } 12776 /^X\(\/\/\)$/{ 12777 s//\1/ 12778 q 12779 } 12780 /^X\(\/\).*/{ 12781 s//\1/ 12782 q 12783 } 12784 s/.*/./; q'` 12785 am_filepart=`$as_basename -- "$am_mf" || 12786$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12787 X"$am_mf" : 'X\(//\)$' \| \ 12788 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12789printf "%s\n" X/"$am_mf" | 12790 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12791 s//\1/ 12792 q 12793 } 12794 /^X\/\(\/\/\)$/{ 12795 s//\1/ 12796 q 12797 } 12798 /^X\/\(\/\).*/{ 12799 s//\1/ 12800 q 12801 } 12802 s/.*/./; q'` 12803 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12804 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12805 | $MAKE -f - am--depfiles" >&5 12806 (cd "$am_dirpart" \ 12807 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12808 | $MAKE -f - am--depfiles) >&5 2>&5 12809 ac_status=$? 12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12811 (exit $ac_status); } || am_rc=$? 12812 done 12813 if test $am_rc -ne 0; then 12814 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12815printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12816as_fn_error $? "Something went wrong bootstrapping makefile fragments 12817 for automatic dependency tracking. If GNU make was not used, consider 12818 re-running the configure script with MAKE=\"gmake\" (or whatever is 12819 necessary). You can also try re-running configure with the 12820 '--disable-dependency-tracking' option to at least be able to build 12821 the package (albeit without support for automatic dependency tracking). 12822See \`config.log' for more details" "$LINENO" 5; } 12823 fi 12824 { am_dirpart=; unset am_dirpart;} 12825 { am_filepart=; unset am_filepart;} 12826 { am_mf=; unset am_mf;} 12827 { am_rc=; unset am_rc;} 12828 rm -f conftest-deps.mk 12829} 12830 ;; 12831 12832 esac 12833done # for ac_tag 12834 12835 12836as_fn_exit 0 12837_ACEOF 12838ac_clean_files=$ac_clean_files_save 12839 12840test $ac_write_fail = 0 || 12841 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12842 12843 12844# configure is writing to config.log, and then calls config.status. 12845# config.status does its own redirection, appending to config.log. 12846# Unfortunately, on DOS this fails, as config.log is still kept open 12847# by configure, so config.status won't be able to write to it; its 12848# output is simply discarded. So we exec the FD to /dev/null, 12849# effectively closing config.log, so it can be properly (re)opened and 12850# appended to by config.status. When coming back to configure, we 12851# need to make the FD available again. 12852if test "$no_create" != yes; then 12853 ac_cs_success=: 12854 ac_config_status_args= 12855 test "$silent" = yes && 12856 ac_config_status_args="$ac_config_status_args --quiet" 12857 exec 5>/dev/null 12858 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12859 exec 5>>config.log 12860 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12861 # would make configure fail if this is the last instruction. 12862 $ac_cs_success || as_fn_exit 1 12863fi 12864if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12866printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12867fi 12868 12869 12870