1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xlsclients 1.1.5. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlsclients/-/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/xlsclients/-/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='xlsclients' 614PACKAGE_TARNAME='xlsclients' 615PACKAGE_VERSION='1.1.5' 616PACKAGE_STRING='xlsclients 1.1.5' 617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xlsclients/-/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 656XLSCLIENTS_LIBS 657XLSCLIENTS_CFLAGS 658LIBOBJS 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_BACKSLASH 691AM_DEFAULT_VERBOSITY 692AM_DEFAULT_V 693AM_V 694CSCOPE 695ETAGS 696CTAGS 697am__fastdepCC_FALSE 698am__fastdepCC_TRUE 699CCDEPMODE 700am__nodep 701AMDEPBACKSLASH 702AMDEP_FALSE 703AMDEP_TRUE 704am__include 705DEPDIR 706am__untar 707am__tar 708AMTAR 709am__leading_dot 710SET_MAKE 711AWK 712mkdir_p 713MKDIR_P 714INSTALL_STRIP_PROGRAM 715STRIP 716install_sh 717MAKEINFO 718AUTOHEADER 719AUTOMAKE 720AUTOCONF 721ACLOCAL 722VERSION 723PACKAGE 724CYGPATH_W 725am__isrc 726INSTALL_DATA 727INSTALL_SCRIPT 728INSTALL_PROGRAM 729OBJEXT 730EXEEXT 731ac_ct_CC 732CPPFLAGS 733LDFLAGS 734CFLAGS 735CC 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_dependency_tracking 780enable_silent_rules 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 795XLSCLIENTS_CFLAGS 796XLSCLIENTS_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 xlsclients 1.1.5 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/xlsclients] 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 xlsclients 1.1.5:";; 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-dependency-tracking 1425 do not reject slow dependency extractors 1426 --disable-dependency-tracking 1427 speeds up one-time build 1428 --enable-silent-rules less verbose build output (undo: "make V=1") 1429 --disable-silent-rules verbose build output (undo: "make V=0") 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 XLSCLIENTS_CFLAGS 1451 C compiler flags for XLSCLIENTS, overriding pkg-config 1452 XLSCLIENTS_LIBS 1453 linker flags for XLSCLIENTS, 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/xlsclients/-/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 1522xlsclients configure 1.1.5 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_try_run LINENO 1708# ---------------------- 1709# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1710# executables *can* be run. 1711ac_fn_c_try_run () 1712{ 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714 if { { ac_try="$ac_link" 1715case "(($ac_try" in 1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1717 *) ac_try_echo=$ac_try;; 1718esac 1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1720printf "%s\n" "$ac_try_echo"; } >&5 1721 (eval "$ac_link") 2>&5 1722 ac_status=$? 1723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1724 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1725 { { case "(($ac_try" in 1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1727 *) ac_try_echo=$ac_try;; 1728esac 1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1730printf "%s\n" "$ac_try_echo"; } >&5 1731 (eval "$ac_try") 2>&5 1732 ac_status=$? 1733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1734 test $ac_status = 0; }; } 1735then : 1736 ac_retval=0 1737else $as_nop 1738 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1739 printf "%s\n" "$as_me: failed program was:" >&5 1740sed 's/^/| /' conftest.$ac_ext >&5 1741 1742 ac_retval=$ac_status 1743fi 1744 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1746 as_fn_set_status $ac_retval 1747 1748} # ac_fn_c_try_run 1749ac_configure_args_raw= 1750for ac_arg 1751do 1752 case $ac_arg in 1753 *\'*) 1754 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1755 esac 1756 as_fn_append ac_configure_args_raw " '$ac_arg'" 1757done 1758 1759case $ac_configure_args_raw in 1760 *$as_nl*) 1761 ac_safe_unquote= ;; 1762 *) 1763 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1764 ac_unsafe_a="$ac_unsafe_z#~" 1765 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1766 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1767esac 1768 1769cat >config.log <<_ACEOF 1770This file contains any messages produced by compilers while 1771running configure, to aid debugging if configure makes a mistake. 1772 1773It was created by xlsclients $as_me 1.1.5, which was 1774generated by GNU Autoconf 2.71. Invocation command line was 1775 1776 $ $0$ac_configure_args_raw 1777 1778_ACEOF 1779exec 5>>config.log 1780{ 1781cat <<_ASUNAME 1782## --------- ## 1783## Platform. ## 1784## --------- ## 1785 1786hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1787uname -m = `(uname -m) 2>/dev/null || echo unknown` 1788uname -r = `(uname -r) 2>/dev/null || echo unknown` 1789uname -s = `(uname -s) 2>/dev/null || echo unknown` 1790uname -v = `(uname -v) 2>/dev/null || echo unknown` 1791 1792/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1793/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1794 1795/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1796/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1797/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1798/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1799/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1800/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1801/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1802 1803_ASUNAME 1804 1805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1806for as_dir in $PATH 1807do 1808 IFS=$as_save_IFS 1809 case $as_dir in #((( 1810 '') as_dir=./ ;; 1811 */) ;; 1812 *) as_dir=$as_dir/ ;; 1813 esac 1814 printf "%s\n" "PATH: $as_dir" 1815 done 1816IFS=$as_save_IFS 1817 1818} >&5 1819 1820cat >&5 <<_ACEOF 1821 1822 1823## ----------- ## 1824## Core tests. ## 1825## ----------- ## 1826 1827_ACEOF 1828 1829 1830# Keep a trace of the command line. 1831# Strip out --no-create and --no-recursion so they do not pile up. 1832# Strip out --silent because we don't want to record it for future runs. 1833# Also quote any args containing shell meta-characters. 1834# Make two passes to allow for proper duplicate-argument suppression. 1835ac_configure_args= 1836ac_configure_args0= 1837ac_configure_args1= 1838ac_must_keep_next=false 1839for ac_pass in 1 2 1840do 1841 for ac_arg 1842 do 1843 case $ac_arg in 1844 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1845 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1846 | -silent | --silent | --silen | --sile | --sil) 1847 continue ;; 1848 *\'*) 1849 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1850 esac 1851 case $ac_pass in 1852 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1853 2) 1854 as_fn_append ac_configure_args1 " '$ac_arg'" 1855 if test $ac_must_keep_next = true; then 1856 ac_must_keep_next=false # Got value, back to normal. 1857 else 1858 case $ac_arg in 1859 *=* | --config-cache | -C | -disable-* | --disable-* \ 1860 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1861 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1862 | -with-* | --with-* | -without-* | --without-* | --x) 1863 case "$ac_configure_args0 " in 1864 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1865 esac 1866 ;; 1867 -* ) ac_must_keep_next=true ;; 1868 esac 1869 fi 1870 as_fn_append ac_configure_args " '$ac_arg'" 1871 ;; 1872 esac 1873 done 1874done 1875{ ac_configure_args0=; unset ac_configure_args0;} 1876{ ac_configure_args1=; unset ac_configure_args1;} 1877 1878# When interrupted or exit'd, cleanup temporary files, and complete 1879# config.log. We remove comments because anyway the quotes in there 1880# would cause problems or look ugly. 1881# WARNING: Use '\'' to represent an apostrophe within the trap. 1882# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1883trap 'exit_status=$? 1884 # Sanitize IFS. 1885 IFS=" "" $as_nl" 1886 # Save into config.log some information that might help in debugging. 1887 { 1888 echo 1889 1890 printf "%s\n" "## ---------------- ## 1891## Cache variables. ## 1892## ---------------- ##" 1893 echo 1894 # The following way of writing the cache mishandles newlines in values, 1895( 1896 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1897 eval ac_val=\$$ac_var 1898 case $ac_val in #( 1899 *${as_nl}*) 1900 case $ac_var in #( 1901 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1902printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1903 esac 1904 case $ac_var in #( 1905 _ | IFS | as_nl) ;; #( 1906 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1907 *) { eval $ac_var=; unset $ac_var;} ;; 1908 esac ;; 1909 esac 1910 done 1911 (set) 2>&1 | 1912 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1913 *${as_nl}ac_space=\ *) 1914 sed -n \ 1915 "s/'\''/'\''\\\\'\'''\''/g; 1916 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1917 ;; #( 1918 *) 1919 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1920 ;; 1921 esac | 1922 sort 1923) 1924 echo 1925 1926 printf "%s\n" "## ----------------- ## 1927## Output variables. ## 1928## ----------------- ##" 1929 echo 1930 for ac_var in $ac_subst_vars 1931 do 1932 eval ac_val=\$$ac_var 1933 case $ac_val in 1934 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1935 esac 1936 printf "%s\n" "$ac_var='\''$ac_val'\''" 1937 done | sort 1938 echo 1939 1940 if test -n "$ac_subst_files"; then 1941 printf "%s\n" "## ------------------- ## 1942## File substitutions. ## 1943## ------------------- ##" 1944 echo 1945 for ac_var in $ac_subst_files 1946 do 1947 eval ac_val=\$$ac_var 1948 case $ac_val in 1949 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1950 esac 1951 printf "%s\n" "$ac_var='\''$ac_val'\''" 1952 done | sort 1953 echo 1954 fi 1955 1956 if test -s confdefs.h; then 1957 printf "%s\n" "## ----------- ## 1958## confdefs.h. ## 1959## ----------- ##" 1960 echo 1961 cat confdefs.h 1962 echo 1963 fi 1964 test "$ac_signal" != 0 && 1965 printf "%s\n" "$as_me: caught signal $ac_signal" 1966 printf "%s\n" "$as_me: exit $exit_status" 1967 } >&5 1968 rm -f core *.core core.conftest.* && 1969 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1970 exit $exit_status 1971' 0 1972for ac_signal in 1 2 13 15; do 1973 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1974done 1975ac_signal=0 1976 1977# confdefs.h avoids OS command line length limits that DEFS can exceed. 1978rm -f -r conftest* confdefs.h 1979 1980printf "%s\n" "/* confdefs.h */" > confdefs.h 1981 1982# Predefined preprocessor variables. 1983 1984printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1985 1986printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1987 1988printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1989 1990printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1991 1992printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1993 1994printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1995 1996 1997# Let the site file select an alternate cache file if it wants to. 1998# Prefer an explicitly selected file to automatically selected ones. 1999if test -n "$CONFIG_SITE"; then 2000 ac_site_files="$CONFIG_SITE" 2001elif test "x$prefix" != xNONE; then 2002 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2003else 2004 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2005fi 2006 2007for ac_site_file in $ac_site_files 2008do 2009 case $ac_site_file in #( 2010 */*) : 2011 ;; #( 2012 *) : 2013 ac_site_file=./$ac_site_file ;; 2014esac 2015 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2017printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2018 sed 's/^/| /' "$ac_site_file" >&5 2019 . "$ac_site_file" \ 2020 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2021printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2022as_fn_error $? "failed to load site script $ac_site_file 2023See \`config.log' for more details" "$LINENO" 5; } 2024 fi 2025done 2026 2027if test -r "$cache_file"; then 2028 # Some versions of bash will fail to source /dev/null (special files 2029 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2030 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2032printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2033 case $cache_file in 2034 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2035 *) . "./$cache_file";; 2036 esac 2037 fi 2038else 2039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2040printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2041 >$cache_file 2042fi 2043 2044as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2045# Test code for whether the C compiler supports C89 (global declarations) 2046ac_c_conftest_c89_globals=' 2047/* Does the compiler advertise C89 conformance? 2048 Do not test the value of __STDC__, because some compilers set it to 0 2049 while being otherwise adequately conformant. */ 2050#if !defined __STDC__ 2051# error "Compiler does not advertise C89 conformance" 2052#endif 2053 2054#include <stddef.h> 2055#include <stdarg.h> 2056struct stat; 2057/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2058struct buf { int x; }; 2059struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2060static char *e (p, i) 2061 char **p; 2062 int i; 2063{ 2064 return p[i]; 2065} 2066static char *f (char * (*g) (char **, int), char **p, ...) 2067{ 2068 char *s; 2069 va_list v; 2070 va_start (v,p); 2071 s = g (p, va_arg (v,int)); 2072 va_end (v); 2073 return s; 2074} 2075 2076/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2077 function prototypes and stuff, but not \xHH hex character constants. 2078 These do not provoke an error unfortunately, instead are silently treated 2079 as an "x". The following induces an error, until -std is added to get 2080 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2081 array size at least. It is necessary to write \x00 == 0 to get something 2082 that is true only with -std. */ 2083int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2084 2085/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2086 inside strings and character constants. */ 2087#define FOO(x) '\''x'\'' 2088int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2089 2090int test (int i, double x); 2091struct s1 {int (*f) (int a);}; 2092struct s2 {int (*f) (double a);}; 2093int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2094 int, int);' 2095 2096# Test code for whether the C compiler supports C89 (body of main). 2097ac_c_conftest_c89_main=' 2098ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2099' 2100 2101# Test code for whether the C compiler supports C99 (global declarations) 2102ac_c_conftest_c99_globals=' 2103// Does the compiler advertise C99 conformance? 2104#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2105# error "Compiler does not advertise C99 conformance" 2106#endif 2107 2108#include <stdbool.h> 2109extern int puts (const char *); 2110extern int printf (const char *, ...); 2111extern int dprintf (int, const char *, ...); 2112extern void *malloc (size_t); 2113 2114// Check varargs macros. These examples are taken from C99 6.10.3.5. 2115// dprintf is used instead of fprintf to avoid needing to declare 2116// FILE and stderr. 2117#define debug(...) dprintf (2, __VA_ARGS__) 2118#define showlist(...) puts (#__VA_ARGS__) 2119#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2120static void 2121test_varargs_macros (void) 2122{ 2123 int x = 1234; 2124 int y = 5678; 2125 debug ("Flag"); 2126 debug ("X = %d\n", x); 2127 showlist (The first, second, and third items.); 2128 report (x>y, "x is %d but y is %d", x, y); 2129} 2130 2131// Check long long types. 2132#define BIG64 18446744073709551615ull 2133#define BIG32 4294967295ul 2134#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2135#if !BIG_OK 2136 #error "your preprocessor is broken" 2137#endif 2138#if BIG_OK 2139#else 2140 #error "your preprocessor is broken" 2141#endif 2142static long long int bignum = -9223372036854775807LL; 2143static unsigned long long int ubignum = BIG64; 2144 2145struct incomplete_array 2146{ 2147 int datasize; 2148 double data[]; 2149}; 2150 2151struct named_init { 2152 int number; 2153 const wchar_t *name; 2154 double average; 2155}; 2156 2157typedef const char *ccp; 2158 2159static inline int 2160test_restrict (ccp restrict text) 2161{ 2162 // See if C++-style comments work. 2163 // Iterate through items via the restricted pointer. 2164 // Also check for declarations in for loops. 2165 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2166 continue; 2167 return 0; 2168} 2169 2170// Check varargs and va_copy. 2171static bool 2172test_varargs (const char *format, ...) 2173{ 2174 va_list args; 2175 va_start (args, format); 2176 va_list args_copy; 2177 va_copy (args_copy, args); 2178 2179 const char *str = ""; 2180 int number = 0; 2181 float fnumber = 0; 2182 2183 while (*format) 2184 { 2185 switch (*format++) 2186 { 2187 case '\''s'\'': // string 2188 str = va_arg (args_copy, const char *); 2189 break; 2190 case '\''d'\'': // int 2191 number = va_arg (args_copy, int); 2192 break; 2193 case '\''f'\'': // float 2194 fnumber = va_arg (args_copy, double); 2195 break; 2196 default: 2197 break; 2198 } 2199 } 2200 va_end (args_copy); 2201 va_end (args); 2202 2203 return *str && number && fnumber; 2204} 2205' 2206 2207# Test code for whether the C compiler supports C99 (body of main). 2208ac_c_conftest_c99_main=' 2209 // Check bool. 2210 _Bool success = false; 2211 success |= (argc != 0); 2212 2213 // Check restrict. 2214 if (test_restrict ("String literal") == 0) 2215 success = true; 2216 char *restrict newvar = "Another string"; 2217 2218 // Check varargs. 2219 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2220 test_varargs_macros (); 2221 2222 // Check flexible array members. 2223 struct incomplete_array *ia = 2224 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2225 ia->datasize = 10; 2226 for (int i = 0; i < ia->datasize; ++i) 2227 ia->data[i] = i * 1.234; 2228 2229 // Check named initializers. 2230 struct named_init ni = { 2231 .number = 34, 2232 .name = L"Test wide string", 2233 .average = 543.34343, 2234 }; 2235 2236 ni.number = 58; 2237 2238 int dynamic_array[ni.number]; 2239 dynamic_array[0] = argv[0][0]; 2240 dynamic_array[ni.number - 1] = 543; 2241 2242 // work around unused variable warnings 2243 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2244 || dynamic_array[ni.number - 1] != 543); 2245' 2246 2247# Test code for whether the C compiler supports C11 (global declarations) 2248ac_c_conftest_c11_globals=' 2249// Does the compiler advertise C11 conformance? 2250#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2251# error "Compiler does not advertise C11 conformance" 2252#endif 2253 2254// Check _Alignas. 2255char _Alignas (double) aligned_as_double; 2256char _Alignas (0) no_special_alignment; 2257extern char aligned_as_int; 2258char _Alignas (0) _Alignas (int) aligned_as_int; 2259 2260// Check _Alignof. 2261enum 2262{ 2263 int_alignment = _Alignof (int), 2264 int_array_alignment = _Alignof (int[100]), 2265 char_alignment = _Alignof (char) 2266}; 2267_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2268 2269// Check _Noreturn. 2270int _Noreturn does_not_return (void) { for (;;) continue; } 2271 2272// Check _Static_assert. 2273struct test_static_assert 2274{ 2275 int x; 2276 _Static_assert (sizeof (int) <= sizeof (long int), 2277 "_Static_assert does not work in struct"); 2278 long int y; 2279}; 2280 2281// Check UTF-8 literals. 2282#define u8 syntax error! 2283char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2284 2285// Check duplicate typedefs. 2286typedef long *long_ptr; 2287typedef long int *long_ptr; 2288typedef long_ptr long_ptr; 2289 2290// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2291struct anonymous 2292{ 2293 union { 2294 struct { int i; int j; }; 2295 struct { int k; long int l; } w; 2296 }; 2297 int m; 2298} v1; 2299' 2300 2301# Test code for whether the C compiler supports C11 (body of main). 2302ac_c_conftest_c11_main=' 2303 _Static_assert ((offsetof (struct anonymous, i) 2304 == offsetof (struct anonymous, w.k)), 2305 "Anonymous union alignment botch"); 2306 v1.i = 2; 2307 v1.w.k = 5; 2308 ok |= v1.i != 5; 2309' 2310 2311# Test code for whether the C compiler supports C11 (complete). 2312ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2313${ac_c_conftest_c99_globals} 2314${ac_c_conftest_c11_globals} 2315 2316int 2317main (int argc, char **argv) 2318{ 2319 int ok = 0; 2320 ${ac_c_conftest_c89_main} 2321 ${ac_c_conftest_c99_main} 2322 ${ac_c_conftest_c11_main} 2323 return ok; 2324} 2325" 2326 2327# Test code for whether the C compiler supports C99 (complete). 2328ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2329${ac_c_conftest_c99_globals} 2330 2331int 2332main (int argc, char **argv) 2333{ 2334 int ok = 0; 2335 ${ac_c_conftest_c89_main} 2336 ${ac_c_conftest_c99_main} 2337 return ok; 2338} 2339" 2340 2341# Test code for whether the C compiler supports C89 (complete). 2342ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2343 2344int 2345main (int argc, char **argv) 2346{ 2347 int ok = 0; 2348 ${ac_c_conftest_c89_main} 2349 return ok; 2350} 2351" 2352 2353as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2354as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2355as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2356as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2357as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2358as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2359as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2360as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2361as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2362as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2363 2364# Auxiliary files required by this configure script. 2365ac_aux_files="config.guess config.sub missing install-sh compile" 2366 2367# Locations in which to look for auxiliary files. 2368ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2369 2370# Search for a directory containing all of the required auxiliary files, 2371# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2372# If we don't find one directory that contains all the files we need, 2373# we report the set of missing files from the *first* directory in 2374# $ac_aux_dir_candidates and give up. 2375ac_missing_aux_files="" 2376ac_first_candidate=: 2377printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2379as_found=false 2380for as_dir in $ac_aux_dir_candidates 2381do 2382 IFS=$as_save_IFS 2383 case $as_dir in #((( 2384 '') as_dir=./ ;; 2385 */) ;; 2386 *) as_dir=$as_dir/ ;; 2387 esac 2388 as_found=: 2389 2390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2391 ac_aux_dir_found=yes 2392 ac_install_sh= 2393 for ac_aux in $ac_aux_files 2394 do 2395 # As a special case, if "install-sh" is required, that requirement 2396 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2397 # and $ac_install_sh is set appropriately for whichever one is found. 2398 if test x"$ac_aux" = x"install-sh" 2399 then 2400 if test -f "${as_dir}install-sh"; then 2401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2402 ac_install_sh="${as_dir}install-sh -c" 2403 elif test -f "${as_dir}install.sh"; then 2404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2405 ac_install_sh="${as_dir}install.sh -c" 2406 elif test -f "${as_dir}shtool"; then 2407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2408 ac_install_sh="${as_dir}shtool install -c" 2409 else 2410 ac_aux_dir_found=no 2411 if $ac_first_candidate; then 2412 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2413 else 2414 break 2415 fi 2416 fi 2417 else 2418 if test -f "${as_dir}${ac_aux}"; then 2419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2420 else 2421 ac_aux_dir_found=no 2422 if $ac_first_candidate; then 2423 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2424 else 2425 break 2426 fi 2427 fi 2428 fi 2429 done 2430 if test "$ac_aux_dir_found" = yes; then 2431 ac_aux_dir="$as_dir" 2432 break 2433 fi 2434 ac_first_candidate=false 2435 2436 as_found=false 2437done 2438IFS=$as_save_IFS 2439if $as_found 2440then : 2441 2442else $as_nop 2443 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2444fi 2445 2446 2447# These three variables are undocumented and unsupported, 2448# and are intended to be withdrawn in a future Autoconf release. 2449# They can cause serious problems if a builder's source tree is in a directory 2450# whose full name contains unusual characters. 2451if test -f "${ac_aux_dir}config.guess"; then 2452 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2453fi 2454if test -f "${ac_aux_dir}config.sub"; then 2455 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2456fi 2457if test -f "$ac_aux_dir/configure"; then 2458 ac_configure="$SHELL ${ac_aux_dir}configure" 2459fi 2460 2461# Check that the precious variables saved in the cache have kept the same 2462# value. 2463ac_cache_corrupted=false 2464for ac_var in $ac_precious_vars; do 2465 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2466 eval ac_new_set=\$ac_env_${ac_var}_set 2467 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2468 eval ac_new_val=\$ac_env_${ac_var}_value 2469 case $ac_old_set,$ac_new_set in 2470 set,) 2471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2472printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2473 ac_cache_corrupted=: ;; 2474 ,set) 2475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2476printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2477 ac_cache_corrupted=: ;; 2478 ,);; 2479 *) 2480 if test "x$ac_old_val" != "x$ac_new_val"; then 2481 # differences in whitespace do not lead to failure. 2482 ac_old_val_w=`echo x $ac_old_val` 2483 ac_new_val_w=`echo x $ac_new_val` 2484 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2486printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2487 ac_cache_corrupted=: 2488 else 2489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2490printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2491 eval $ac_var=\$ac_old_val 2492 fi 2493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2494printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2496printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2497 fi;; 2498 esac 2499 # Pass precious variables to config.status. 2500 if test "$ac_new_set" = set; then 2501 case $ac_new_val in 2502 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2503 *) ac_arg=$ac_var=$ac_new_val ;; 2504 esac 2505 case " $ac_configure_args " in 2506 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2507 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2508 esac 2509 fi 2510done 2511if $ac_cache_corrupted; then 2512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2513printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2515printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2516 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2517 and start over" "$LINENO" 5 2518fi 2519## -------------------- ## 2520## Main body of script. ## 2521## -------------------- ## 2522 2523ac_ext=c 2524ac_cpp='$CPP $CPPFLAGS' 2525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2527ac_compiler_gnu=$ac_cv_c_compiler_gnu 2528 2529 2530 2531ac_config_headers="$ac_config_headers config.h" 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544# Expand $ac_aux_dir to an absolute path. 2545am_aux_dir=`cd "$ac_aux_dir" && pwd` 2546 2547ac_ext=c 2548ac_cpp='$CPP $CPPFLAGS' 2549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2551ac_compiler_gnu=$ac_cv_c_compiler_gnu 2552if test -n "$ac_tool_prefix"; then 2553 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2554set dummy ${ac_tool_prefix}gcc; ac_word=$2 2555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2556printf %s "checking for $ac_word... " >&6; } 2557if test ${ac_cv_prog_CC+y} 2558then : 2559 printf %s "(cached) " >&6 2560else $as_nop 2561 if test -n "$CC"; then 2562 ac_cv_prog_CC="$CC" # Let the user override the test. 2563else 2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2565for as_dir in $PATH 2566do 2567 IFS=$as_save_IFS 2568 case $as_dir in #((( 2569 '') as_dir=./ ;; 2570 */) ;; 2571 *) as_dir=$as_dir/ ;; 2572 esac 2573 for ac_exec_ext in '' $ac_executable_extensions; do 2574 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2575 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2577 break 2 2578 fi 2579done 2580 done 2581IFS=$as_save_IFS 2582 2583fi 2584fi 2585CC=$ac_cv_prog_CC 2586if test -n "$CC"; then 2587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2588printf "%s\n" "$CC" >&6; } 2589else 2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2591printf "%s\n" "no" >&6; } 2592fi 2593 2594 2595fi 2596if test -z "$ac_cv_prog_CC"; then 2597 ac_ct_CC=$CC 2598 # Extract the first word of "gcc", so it can be a program name with args. 2599set dummy gcc; ac_word=$2 2600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2601printf %s "checking for $ac_word... " >&6; } 2602if test ${ac_cv_prog_ac_ct_CC+y} 2603then : 2604 printf %s "(cached) " >&6 2605else $as_nop 2606 if test -n "$ac_ct_CC"; then 2607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2608else 2609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2610for as_dir in $PATH 2611do 2612 IFS=$as_save_IFS 2613 case $as_dir in #((( 2614 '') as_dir=./ ;; 2615 */) ;; 2616 *) as_dir=$as_dir/ ;; 2617 esac 2618 for ac_exec_ext in '' $ac_executable_extensions; do 2619 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2620 ac_cv_prog_ac_ct_CC="gcc" 2621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2622 break 2 2623 fi 2624done 2625 done 2626IFS=$as_save_IFS 2627 2628fi 2629fi 2630ac_ct_CC=$ac_cv_prog_ac_ct_CC 2631if test -n "$ac_ct_CC"; then 2632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2633printf "%s\n" "$ac_ct_CC" >&6; } 2634else 2635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2636printf "%s\n" "no" >&6; } 2637fi 2638 2639 if test "x$ac_ct_CC" = x; then 2640 CC="" 2641 else 2642 case $cross_compiling:$ac_tool_warned in 2643yes:) 2644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2645printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2646ac_tool_warned=yes ;; 2647esac 2648 CC=$ac_ct_CC 2649 fi 2650else 2651 CC="$ac_cv_prog_CC" 2652fi 2653 2654if test -z "$CC"; then 2655 if test -n "$ac_tool_prefix"; then 2656 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2657set dummy ${ac_tool_prefix}cc; ac_word=$2 2658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2659printf %s "checking for $ac_word... " >&6; } 2660if test ${ac_cv_prog_CC+y} 2661then : 2662 printf %s "(cached) " >&6 2663else $as_nop 2664 if test -n "$CC"; then 2665 ac_cv_prog_CC="$CC" # Let the user override the test. 2666else 2667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2668for as_dir in $PATH 2669do 2670 IFS=$as_save_IFS 2671 case $as_dir in #((( 2672 '') as_dir=./ ;; 2673 */) ;; 2674 *) as_dir=$as_dir/ ;; 2675 esac 2676 for ac_exec_ext in '' $ac_executable_extensions; do 2677 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2678 ac_cv_prog_CC="${ac_tool_prefix}cc" 2679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2680 break 2 2681 fi 2682done 2683 done 2684IFS=$as_save_IFS 2685 2686fi 2687fi 2688CC=$ac_cv_prog_CC 2689if test -n "$CC"; then 2690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2691printf "%s\n" "$CC" >&6; } 2692else 2693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2694printf "%s\n" "no" >&6; } 2695fi 2696 2697 2698 fi 2699fi 2700if test -z "$CC"; then 2701 # Extract the first word of "cc", so it can be a program name with args. 2702set dummy cc; ac_word=$2 2703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2704printf %s "checking for $ac_word... " >&6; } 2705if test ${ac_cv_prog_CC+y} 2706then : 2707 printf %s "(cached) " >&6 2708else $as_nop 2709 if test -n "$CC"; then 2710 ac_cv_prog_CC="$CC" # Let the user override the test. 2711else 2712 ac_prog_rejected=no 2713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2714for as_dir in $PATH 2715do 2716 IFS=$as_save_IFS 2717 case $as_dir in #((( 2718 '') as_dir=./ ;; 2719 */) ;; 2720 *) as_dir=$as_dir/ ;; 2721 esac 2722 for ac_exec_ext in '' $ac_executable_extensions; do 2723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2724 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2725 ac_prog_rejected=yes 2726 continue 2727 fi 2728 ac_cv_prog_CC="cc" 2729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2730 break 2 2731 fi 2732done 2733 done 2734IFS=$as_save_IFS 2735 2736if test $ac_prog_rejected = yes; then 2737 # We found a bogon in the path, so make sure we never use it. 2738 set dummy $ac_cv_prog_CC 2739 shift 2740 if test $# != 0; then 2741 # We chose a different compiler from the bogus one. 2742 # However, it has the same basename, so the bogon will be chosen 2743 # first if we set CC to just the basename; use the full file name. 2744 shift 2745 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2746 fi 2747fi 2748fi 2749fi 2750CC=$ac_cv_prog_CC 2751if test -n "$CC"; then 2752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2753printf "%s\n" "$CC" >&6; } 2754else 2755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2756printf "%s\n" "no" >&6; } 2757fi 2758 2759 2760fi 2761if test -z "$CC"; then 2762 if test -n "$ac_tool_prefix"; then 2763 for ac_prog in cl.exe 2764 do 2765 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2766set dummy $ac_tool_prefix$ac_prog; 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_CC+y} 2770then : 2771 printf %s "(cached) " >&6 2772else $as_nop 2773 if test -n "$CC"; then 2774 ac_cv_prog_CC="$CC" # 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_CC="$ac_tool_prefix$ac_prog" 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 2797CC=$ac_cv_prog_CC 2798if test -n "$CC"; then 2799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2800printf "%s\n" "$CC" >&6; } 2801else 2802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2803printf "%s\n" "no" >&6; } 2804fi 2805 2806 2807 test -n "$CC" && break 2808 done 2809fi 2810if test -z "$CC"; then 2811 ac_ct_CC=$CC 2812 for ac_prog in cl.exe 2813do 2814 # Extract the first word of "$ac_prog", so it can be a program name with args. 2815set dummy $ac_prog; ac_word=$2 2816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2817printf %s "checking for $ac_word... " >&6; } 2818if test ${ac_cv_prog_ac_ct_CC+y} 2819then : 2820 printf %s "(cached) " >&6 2821else $as_nop 2822 if test -n "$ac_ct_CC"; then 2823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2824else 2825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2826for as_dir in $PATH 2827do 2828 IFS=$as_save_IFS 2829 case $as_dir in #((( 2830 '') as_dir=./ ;; 2831 */) ;; 2832 *) as_dir=$as_dir/ ;; 2833 esac 2834 for ac_exec_ext in '' $ac_executable_extensions; do 2835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2836 ac_cv_prog_ac_ct_CC="$ac_prog" 2837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2838 break 2 2839 fi 2840done 2841 done 2842IFS=$as_save_IFS 2843 2844fi 2845fi 2846ac_ct_CC=$ac_cv_prog_ac_ct_CC 2847if test -n "$ac_ct_CC"; then 2848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2849printf "%s\n" "$ac_ct_CC" >&6; } 2850else 2851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2852printf "%s\n" "no" >&6; } 2853fi 2854 2855 2856 test -n "$ac_ct_CC" && break 2857done 2858 2859 if test "x$ac_ct_CC" = x; then 2860 CC="" 2861 else 2862 case $cross_compiling:$ac_tool_warned in 2863yes:) 2864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2865printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2866ac_tool_warned=yes ;; 2867esac 2868 CC=$ac_ct_CC 2869 fi 2870fi 2871 2872fi 2873if test -z "$CC"; then 2874 if test -n "$ac_tool_prefix"; then 2875 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2876set dummy ${ac_tool_prefix}clang; ac_word=$2 2877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2878printf %s "checking for $ac_word... " >&6; } 2879if test ${ac_cv_prog_CC+y} 2880then : 2881 printf %s "(cached) " >&6 2882else $as_nop 2883 if test -n "$CC"; then 2884 ac_cv_prog_CC="$CC" # Let the user override the test. 2885else 2886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2887for as_dir in $PATH 2888do 2889 IFS=$as_save_IFS 2890 case $as_dir in #((( 2891 '') as_dir=./ ;; 2892 */) ;; 2893 *) as_dir=$as_dir/ ;; 2894 esac 2895 for ac_exec_ext in '' $ac_executable_extensions; do 2896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2897 ac_cv_prog_CC="${ac_tool_prefix}clang" 2898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2899 break 2 2900 fi 2901done 2902 done 2903IFS=$as_save_IFS 2904 2905fi 2906fi 2907CC=$ac_cv_prog_CC 2908if test -n "$CC"; then 2909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2910printf "%s\n" "$CC" >&6; } 2911else 2912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2913printf "%s\n" "no" >&6; } 2914fi 2915 2916 2917fi 2918if test -z "$ac_cv_prog_CC"; then 2919 ac_ct_CC=$CC 2920 # Extract the first word of "clang", so it can be a program name with args. 2921set dummy clang; ac_word=$2 2922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2923printf %s "checking for $ac_word... " >&6; } 2924if test ${ac_cv_prog_ac_ct_CC+y} 2925then : 2926 printf %s "(cached) " >&6 2927else $as_nop 2928 if test -n "$ac_ct_CC"; then 2929 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2930else 2931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2932for as_dir in $PATH 2933do 2934 IFS=$as_save_IFS 2935 case $as_dir in #((( 2936 '') as_dir=./ ;; 2937 */) ;; 2938 *) as_dir=$as_dir/ ;; 2939 esac 2940 for ac_exec_ext in '' $ac_executable_extensions; do 2941 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2942 ac_cv_prog_ac_ct_CC="clang" 2943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2944 break 2 2945 fi 2946done 2947 done 2948IFS=$as_save_IFS 2949 2950fi 2951fi 2952ac_ct_CC=$ac_cv_prog_ac_ct_CC 2953if test -n "$ac_ct_CC"; then 2954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2955printf "%s\n" "$ac_ct_CC" >&6; } 2956else 2957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2958printf "%s\n" "no" >&6; } 2959fi 2960 2961 if test "x$ac_ct_CC" = x; then 2962 CC="" 2963 else 2964 case $cross_compiling:$ac_tool_warned in 2965yes:) 2966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2967printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2968ac_tool_warned=yes ;; 2969esac 2970 CC=$ac_ct_CC 2971 fi 2972else 2973 CC="$ac_cv_prog_CC" 2974fi 2975 2976fi 2977 2978 2979test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2980printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2981as_fn_error $? "no acceptable C compiler found in \$PATH 2982See \`config.log' for more details" "$LINENO" 5; } 2983 2984# Provide some information about the compiler. 2985printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2986set X $ac_compile 2987ac_compiler=$2 2988for ac_option in --version -v -V -qversion -version; do 2989 { { ac_try="$ac_compiler $ac_option >&5" 2990case "(($ac_try" in 2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2992 *) ac_try_echo=$ac_try;; 2993esac 2994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2995printf "%s\n" "$ac_try_echo"; } >&5 2996 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2997 ac_status=$? 2998 if test -s conftest.err; then 2999 sed '10a\ 3000... rest of stderr output deleted ... 3001 10q' conftest.err >conftest.er1 3002 cat conftest.er1 >&5 3003 fi 3004 rm -f conftest.er1 conftest.err 3005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3006 test $ac_status = 0; } 3007done 3008 3009cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3010/* end confdefs.h. */ 3011 3012int 3013main (void) 3014{ 3015 3016 ; 3017 return 0; 3018} 3019_ACEOF 3020ac_clean_files_save=$ac_clean_files 3021ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3022# Try to create an executable without -o first, disregard a.out. 3023# It will help us diagnose broken compilers, and finding out an intuition 3024# of exeext. 3025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3026printf %s "checking whether the C compiler works... " >&6; } 3027ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3028 3029# The possible output files: 3030ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3031 3032ac_rmfiles= 3033for ac_file in $ac_files 3034do 3035 case $ac_file in 3036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3037 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3038 esac 3039done 3040rm -f $ac_rmfiles 3041 3042if { { ac_try="$ac_link_default" 3043case "(($ac_try" in 3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3045 *) ac_try_echo=$ac_try;; 3046esac 3047eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3048printf "%s\n" "$ac_try_echo"; } >&5 3049 (eval "$ac_link_default") 2>&5 3050 ac_status=$? 3051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3052 test $ac_status = 0; } 3053then : 3054 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3055# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3056# in a Makefile. We should not override ac_cv_exeext if it was cached, 3057# so that the user can short-circuit this test for compilers unknown to 3058# Autoconf. 3059for ac_file in $ac_files '' 3060do 3061 test -f "$ac_file" || continue 3062 case $ac_file in 3063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3064 ;; 3065 [ab].out ) 3066 # We found the default executable, but exeext='' is most 3067 # certainly right. 3068 break;; 3069 *.* ) 3070 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3071 then :; else 3072 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3073 fi 3074 # We set ac_cv_exeext here because the later test for it is not 3075 # safe: cross compilers may not add the suffix if given an `-o' 3076 # argument, so we may need to know it at that point already. 3077 # Even if this section looks crufty: it has the advantage of 3078 # actually working. 3079 break;; 3080 * ) 3081 break;; 3082 esac 3083done 3084test "$ac_cv_exeext" = no && ac_cv_exeext= 3085 3086else $as_nop 3087 ac_file='' 3088fi 3089if test -z "$ac_file" 3090then : 3091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3092printf "%s\n" "no" >&6; } 3093printf "%s\n" "$as_me: failed program was:" >&5 3094sed 's/^/| /' conftest.$ac_ext >&5 3095 3096{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3097printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3098as_fn_error 77 "C compiler cannot create executables 3099See \`config.log' for more details" "$LINENO" 5; } 3100else $as_nop 3101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3102printf "%s\n" "yes" >&6; } 3103fi 3104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3105printf %s "checking for C compiler default output file name... " >&6; } 3106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3107printf "%s\n" "$ac_file" >&6; } 3108ac_exeext=$ac_cv_exeext 3109 3110rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3111ac_clean_files=$ac_clean_files_save 3112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3113printf %s "checking for suffix of executables... " >&6; } 3114if { { ac_try="$ac_link" 3115case "(($ac_try" in 3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3117 *) ac_try_echo=$ac_try;; 3118esac 3119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3120printf "%s\n" "$ac_try_echo"; } >&5 3121 (eval "$ac_link") 2>&5 3122 ac_status=$? 3123 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3124 test $ac_status = 0; } 3125then : 3126 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3127# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3128# work properly (i.e., refer to `conftest.exe'), while it won't with 3129# `rm'. 3130for ac_file in conftest.exe conftest conftest.*; do 3131 test -f "$ac_file" || continue 3132 case $ac_file in 3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3134 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3135 break;; 3136 * ) break;; 3137 esac 3138done 3139else $as_nop 3140 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3141printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3142as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3143See \`config.log' for more details" "$LINENO" 5; } 3144fi 3145rm -f conftest conftest$ac_cv_exeext 3146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3147printf "%s\n" "$ac_cv_exeext" >&6; } 3148 3149rm -f conftest.$ac_ext 3150EXEEXT=$ac_cv_exeext 3151ac_exeext=$EXEEXT 3152cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3153/* end confdefs.h. */ 3154#include <stdio.h> 3155int 3156main (void) 3157{ 3158FILE *f = fopen ("conftest.out", "w"); 3159 return ferror (f) || fclose (f) != 0; 3160 3161 ; 3162 return 0; 3163} 3164_ACEOF 3165ac_clean_files="$ac_clean_files conftest.out" 3166# Check that the compiler produces executables we can run. If not, either 3167# the compiler is broken, or we cross compile. 3168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3169printf %s "checking whether we are cross compiling... " >&6; } 3170if test "$cross_compiling" != yes; then 3171 { { ac_try="$ac_link" 3172case "(($ac_try" in 3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3174 *) ac_try_echo=$ac_try;; 3175esac 3176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3177printf "%s\n" "$ac_try_echo"; } >&5 3178 (eval "$ac_link") 2>&5 3179 ac_status=$? 3180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3181 test $ac_status = 0; } 3182 if { ac_try='./conftest$ac_cv_exeext' 3183 { { case "(($ac_try" in 3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3185 *) ac_try_echo=$ac_try;; 3186esac 3187eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3188printf "%s\n" "$ac_try_echo"; } >&5 3189 (eval "$ac_try") 2>&5 3190 ac_status=$? 3191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3192 test $ac_status = 0; }; }; then 3193 cross_compiling=no 3194 else 3195 if test "$cross_compiling" = maybe; then 3196 cross_compiling=yes 3197 else 3198 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3199printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3200as_fn_error 77 "cannot run C compiled programs. 3201If you meant to cross compile, use \`--host'. 3202See \`config.log' for more details" "$LINENO" 5; } 3203 fi 3204 fi 3205fi 3206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3207printf "%s\n" "$cross_compiling" >&6; } 3208 3209rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3210ac_clean_files=$ac_clean_files_save 3211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3212printf %s "checking for suffix of object files... " >&6; } 3213if test ${ac_cv_objext+y} 3214then : 3215 printf %s "(cached) " >&6 3216else $as_nop 3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3218/* end confdefs.h. */ 3219 3220int 3221main (void) 3222{ 3223 3224 ; 3225 return 0; 3226} 3227_ACEOF 3228rm -f conftest.o conftest.obj 3229if { { ac_try="$ac_compile" 3230case "(($ac_try" in 3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3232 *) ac_try_echo=$ac_try;; 3233esac 3234eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3235printf "%s\n" "$ac_try_echo"; } >&5 3236 (eval "$ac_compile") 2>&5 3237 ac_status=$? 3238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3239 test $ac_status = 0; } 3240then : 3241 for ac_file in conftest.o conftest.obj conftest.*; do 3242 test -f "$ac_file" || continue; 3243 case $ac_file in 3244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3245 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3246 break;; 3247 esac 3248done 3249else $as_nop 3250 printf "%s\n" "$as_me: failed program was:" >&5 3251sed 's/^/| /' conftest.$ac_ext >&5 3252 3253{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3254printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3255as_fn_error $? "cannot compute suffix of object files: cannot compile 3256See \`config.log' for more details" "$LINENO" 5; } 3257fi 3258rm -f conftest.$ac_cv_objext conftest.$ac_ext 3259fi 3260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3261printf "%s\n" "$ac_cv_objext" >&6; } 3262OBJEXT=$ac_cv_objext 3263ac_objext=$OBJEXT 3264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3265printf %s "checking whether the compiler supports GNU C... " >&6; } 3266if test ${ac_cv_c_compiler_gnu+y} 3267then : 3268 printf %s "(cached) " >&6 3269else $as_nop 3270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3271/* end confdefs.h. */ 3272 3273int 3274main (void) 3275{ 3276#ifndef __GNUC__ 3277 choke me 3278#endif 3279 3280 ; 3281 return 0; 3282} 3283_ACEOF 3284if ac_fn_c_try_compile "$LINENO" 3285then : 3286 ac_compiler_gnu=yes 3287else $as_nop 3288 ac_compiler_gnu=no 3289fi 3290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3291ac_cv_c_compiler_gnu=$ac_compiler_gnu 3292 3293fi 3294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3295printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3296ac_compiler_gnu=$ac_cv_c_compiler_gnu 3297 3298if test $ac_compiler_gnu = yes; then 3299 GCC=yes 3300else 3301 GCC= 3302fi 3303ac_test_CFLAGS=${CFLAGS+y} 3304ac_save_CFLAGS=$CFLAGS 3305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3306printf %s "checking whether $CC accepts -g... " >&6; } 3307if test ${ac_cv_prog_cc_g+y} 3308then : 3309 printf %s "(cached) " >&6 3310else $as_nop 3311 ac_save_c_werror_flag=$ac_c_werror_flag 3312 ac_c_werror_flag=yes 3313 ac_cv_prog_cc_g=no 3314 CFLAGS="-g" 3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3316/* end confdefs.h. */ 3317 3318int 3319main (void) 3320{ 3321 3322 ; 3323 return 0; 3324} 3325_ACEOF 3326if ac_fn_c_try_compile "$LINENO" 3327then : 3328 ac_cv_prog_cc_g=yes 3329else $as_nop 3330 CFLAGS="" 3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3332/* end confdefs.h. */ 3333 3334int 3335main (void) 3336{ 3337 3338 ; 3339 return 0; 3340} 3341_ACEOF 3342if ac_fn_c_try_compile "$LINENO" 3343then : 3344 3345else $as_nop 3346 ac_c_werror_flag=$ac_save_c_werror_flag 3347 CFLAGS="-g" 3348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3349/* end confdefs.h. */ 3350 3351int 3352main (void) 3353{ 3354 3355 ; 3356 return 0; 3357} 3358_ACEOF 3359if ac_fn_c_try_compile "$LINENO" 3360then : 3361 ac_cv_prog_cc_g=yes 3362fi 3363rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3364fi 3365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3366fi 3367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3368 ac_c_werror_flag=$ac_save_c_werror_flag 3369fi 3370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3371printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3372if test $ac_test_CFLAGS; then 3373 CFLAGS=$ac_save_CFLAGS 3374elif test $ac_cv_prog_cc_g = yes; then 3375 if test "$GCC" = yes; then 3376 CFLAGS="-g -O2" 3377 else 3378 CFLAGS="-g" 3379 fi 3380else 3381 if test "$GCC" = yes; then 3382 CFLAGS="-O2" 3383 else 3384 CFLAGS= 3385 fi 3386fi 3387ac_prog_cc_stdc=no 3388if test x$ac_prog_cc_stdc = xno 3389then : 3390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3391printf %s "checking for $CC option to enable C11 features... " >&6; } 3392if test ${ac_cv_prog_cc_c11+y} 3393then : 3394 printf %s "(cached) " >&6 3395else $as_nop 3396 ac_cv_prog_cc_c11=no 3397ac_save_CC=$CC 3398cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3399/* end confdefs.h. */ 3400$ac_c_conftest_c11_program 3401_ACEOF 3402for ac_arg in '' -std=gnu11 3403do 3404 CC="$ac_save_CC $ac_arg" 3405 if ac_fn_c_try_compile "$LINENO" 3406then : 3407 ac_cv_prog_cc_c11=$ac_arg 3408fi 3409rm -f core conftest.err conftest.$ac_objext conftest.beam 3410 test "x$ac_cv_prog_cc_c11" != "xno" && break 3411done 3412rm -f conftest.$ac_ext 3413CC=$ac_save_CC 3414fi 3415 3416if test "x$ac_cv_prog_cc_c11" = xno 3417then : 3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3419printf "%s\n" "unsupported" >&6; } 3420else $as_nop 3421 if test "x$ac_cv_prog_cc_c11" = x 3422then : 3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3424printf "%s\n" "none needed" >&6; } 3425else $as_nop 3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3427printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3428 CC="$CC $ac_cv_prog_cc_c11" 3429fi 3430 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3431 ac_prog_cc_stdc=c11 3432fi 3433fi 3434if test x$ac_prog_cc_stdc = xno 3435then : 3436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3437printf %s "checking for $CC option to enable C99 features... " >&6; } 3438if test ${ac_cv_prog_cc_c99+y} 3439then : 3440 printf %s "(cached) " >&6 3441else $as_nop 3442 ac_cv_prog_cc_c99=no 3443ac_save_CC=$CC 3444cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3445/* end confdefs.h. */ 3446$ac_c_conftest_c99_program 3447_ACEOF 3448for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3449do 3450 CC="$ac_save_CC $ac_arg" 3451 if ac_fn_c_try_compile "$LINENO" 3452then : 3453 ac_cv_prog_cc_c99=$ac_arg 3454fi 3455rm -f core conftest.err conftest.$ac_objext conftest.beam 3456 test "x$ac_cv_prog_cc_c99" != "xno" && break 3457done 3458rm -f conftest.$ac_ext 3459CC=$ac_save_CC 3460fi 3461 3462if test "x$ac_cv_prog_cc_c99" = xno 3463then : 3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3465printf "%s\n" "unsupported" >&6; } 3466else $as_nop 3467 if test "x$ac_cv_prog_cc_c99" = x 3468then : 3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3470printf "%s\n" "none needed" >&6; } 3471else $as_nop 3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3473printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3474 CC="$CC $ac_cv_prog_cc_c99" 3475fi 3476 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3477 ac_prog_cc_stdc=c99 3478fi 3479fi 3480if test x$ac_prog_cc_stdc = xno 3481then : 3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3483printf %s "checking for $CC option to enable C89 features... " >&6; } 3484if test ${ac_cv_prog_cc_c89+y} 3485then : 3486 printf %s "(cached) " >&6 3487else $as_nop 3488 ac_cv_prog_cc_c89=no 3489ac_save_CC=$CC 3490cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3491/* end confdefs.h. */ 3492$ac_c_conftest_c89_program 3493_ACEOF 3494for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3495do 3496 CC="$ac_save_CC $ac_arg" 3497 if ac_fn_c_try_compile "$LINENO" 3498then : 3499 ac_cv_prog_cc_c89=$ac_arg 3500fi 3501rm -f core conftest.err conftest.$ac_objext conftest.beam 3502 test "x$ac_cv_prog_cc_c89" != "xno" && break 3503done 3504rm -f conftest.$ac_ext 3505CC=$ac_save_CC 3506fi 3507 3508if test "x$ac_cv_prog_cc_c89" = xno 3509then : 3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3511printf "%s\n" "unsupported" >&6; } 3512else $as_nop 3513 if test "x$ac_cv_prog_cc_c89" = x 3514then : 3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3516printf "%s\n" "none needed" >&6; } 3517else $as_nop 3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3519printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3520 CC="$CC $ac_cv_prog_cc_c89" 3521fi 3522 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3523 ac_prog_cc_stdc=c89 3524fi 3525fi 3526 3527ac_ext=c 3528ac_cpp='$CPP $CPPFLAGS' 3529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3531ac_compiler_gnu=$ac_cv_c_compiler_gnu 3532 3533 3534 ac_ext=c 3535ac_cpp='$CPP $CPPFLAGS' 3536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3538ac_compiler_gnu=$ac_cv_c_compiler_gnu 3539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3540printf %s "checking whether $CC understands -c and -o together... " >&6; } 3541if test ${am_cv_prog_cc_c_o+y} 3542then : 3543 printf %s "(cached) " >&6 3544else $as_nop 3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3546/* end confdefs.h. */ 3547 3548int 3549main (void) 3550{ 3551 3552 ; 3553 return 0; 3554} 3555_ACEOF 3556 # Make sure it works both with $CC and with simple cc. 3557 # Following AC_PROG_CC_C_O, we do the test twice because some 3558 # compilers refuse to overwrite an existing .o file with -o, 3559 # though they will create one. 3560 am_cv_prog_cc_c_o=yes 3561 for am_i in 1 2; do 3562 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3563 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3564 ac_status=$? 3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3566 (exit $ac_status); } \ 3567 && test -f conftest2.$ac_objext; then 3568 : OK 3569 else 3570 am_cv_prog_cc_c_o=no 3571 break 3572 fi 3573 done 3574 rm -f core conftest* 3575 unset am_i 3576fi 3577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3578printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3579if test "$am_cv_prog_cc_c_o" != yes; then 3580 # Losing compiler, so override with the script. 3581 # FIXME: It is wrong to rewrite CC. 3582 # But if we don't then we get into trouble of one sort or another. 3583 # A longer-term fix would be to have automake use am__CC in this case, 3584 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3585 CC="$am_aux_dir/compile $CC" 3586fi 3587ac_ext=c 3588ac_cpp='$CPP $CPPFLAGS' 3589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3591ac_compiler_gnu=$ac_cv_c_compiler_gnu 3592 3593 3594 3595ac_header= ac_cache= 3596for ac_item in $ac_header_c_list 3597do 3598 if test $ac_cache; then 3599 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3600 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3601 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3602 fi 3603 ac_header= ac_cache= 3604 elif test $ac_header; then 3605 ac_cache=$ac_item 3606 else 3607 ac_header=$ac_item 3608 fi 3609done 3610 3611 3612 3613 3614 3615 3616 3617 3618if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3619then : 3620 3621printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3622 3623fi 3624 3625 3626 3627 3628 3629 3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3631printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3632if test ${ac_cv_safe_to_define___extensions__+y} 3633then : 3634 printf %s "(cached) " >&6 3635else $as_nop 3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3637/* end confdefs.h. */ 3638 3639# define __EXTENSIONS__ 1 3640 $ac_includes_default 3641int 3642main (void) 3643{ 3644 3645 ; 3646 return 0; 3647} 3648_ACEOF 3649if ac_fn_c_try_compile "$LINENO" 3650then : 3651 ac_cv_safe_to_define___extensions__=yes 3652else $as_nop 3653 ac_cv_safe_to_define___extensions__=no 3654fi 3655rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3656fi 3657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3658printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3659 3660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3661printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3662if test ${ac_cv_should_define__xopen_source+y} 3663then : 3664 printf %s "(cached) " >&6 3665else $as_nop 3666 ac_cv_should_define__xopen_source=no 3667 if test $ac_cv_header_wchar_h = yes 3668then : 3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3670/* end confdefs.h. */ 3671 3672 #include <wchar.h> 3673 mbstate_t x; 3674int 3675main (void) 3676{ 3677 3678 ; 3679 return 0; 3680} 3681_ACEOF 3682if ac_fn_c_try_compile "$LINENO" 3683then : 3684 3685else $as_nop 3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3687/* end confdefs.h. */ 3688 3689 #define _XOPEN_SOURCE 500 3690 #include <wchar.h> 3691 mbstate_t x; 3692int 3693main (void) 3694{ 3695 3696 ; 3697 return 0; 3698} 3699_ACEOF 3700if ac_fn_c_try_compile "$LINENO" 3701then : 3702 ac_cv_should_define__xopen_source=yes 3703fi 3704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3705fi 3706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3707fi 3708fi 3709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3710printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3711 3712 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3713 3714 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3715 3716 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3717 3718 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3719 3720 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3721 3722 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3723 3724 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3725 3726 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3727 3728 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3729 3730 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3731 3732 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3733 3734 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3735 3736 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3737 3738 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3739 3740 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3741 3742 if test $ac_cv_header_minix_config_h = yes 3743then : 3744 MINIX=yes 3745 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3746 3747 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3748 3749 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3750 3751else $as_nop 3752 MINIX= 3753fi 3754 if test $ac_cv_safe_to_define___extensions__ = yes 3755then : 3756 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3757 3758fi 3759 if test $ac_cv_should_define__xopen_source = yes 3760then : 3761 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3762 3763fi 3764 3765 3766# Initialize Automake 3767am__api_version='1.16' 3768 3769 3770 # Find a good install program. We prefer a C program (faster), 3771# so one script is as good as another. But avoid the broken or 3772# incompatible versions: 3773# SysV /etc/install, /usr/sbin/install 3774# SunOS /usr/etc/install 3775# IRIX /sbin/install 3776# AIX /bin/install 3777# AmigaOS /C/install, which installs bootblocks on floppy discs 3778# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3779# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3780# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3781# OS/2's system install, which has a completely different semantic 3782# ./install, which can be erroneously created by make from ./install.sh. 3783# Reject install programs that cannot install multiple files. 3784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3785printf %s "checking for a BSD-compatible install... " >&6; } 3786if test -z "$INSTALL"; then 3787if test ${ac_cv_path_install+y} 3788then : 3789 printf %s "(cached) " >&6 3790else $as_nop 3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3792for as_dir in $PATH 3793do 3794 IFS=$as_save_IFS 3795 case $as_dir in #((( 3796 '') as_dir=./ ;; 3797 */) ;; 3798 *) as_dir=$as_dir/ ;; 3799 esac 3800 # Account for fact that we put trailing slashes in our PATH walk. 3801case $as_dir in #(( 3802 ./ | /[cC]/* | \ 3803 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3804 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3805 /usr/ucb/* ) ;; 3806 *) 3807 # OSF1 and SCO ODT 3.0 have their own names for install. 3808 # Don't use installbsd from OSF since it installs stuff as root 3809 # by default. 3810 for ac_prog in ginstall scoinst install; do 3811 for ac_exec_ext in '' $ac_executable_extensions; do 3812 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3813 if test $ac_prog = install && 3814 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3815 # AIX install. It has an incompatible calling convention. 3816 : 3817 elif test $ac_prog = install && 3818 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3819 # program-specific install script used by HP pwplus--don't use. 3820 : 3821 else 3822 rm -rf conftest.one conftest.two conftest.dir 3823 echo one > conftest.one 3824 echo two > conftest.two 3825 mkdir conftest.dir 3826 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3827 test -s conftest.one && test -s conftest.two && 3828 test -s conftest.dir/conftest.one && 3829 test -s conftest.dir/conftest.two 3830 then 3831 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3832 break 3 3833 fi 3834 fi 3835 fi 3836 done 3837 done 3838 ;; 3839esac 3840 3841 done 3842IFS=$as_save_IFS 3843 3844rm -rf conftest.one conftest.two conftest.dir 3845 3846fi 3847 if test ${ac_cv_path_install+y}; then 3848 INSTALL=$ac_cv_path_install 3849 else 3850 # As a last resort, use the slow shell script. Don't cache a 3851 # value for INSTALL within a source directory, because that will 3852 # break other packages using the cache if that directory is 3853 # removed, or if the value is a relative name. 3854 INSTALL=$ac_install_sh 3855 fi 3856fi 3857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3858printf "%s\n" "$INSTALL" >&6; } 3859 3860# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3861# It thinks the first close brace ends the variable substitution. 3862test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3863 3864test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3865 3866test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3867 3868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3869printf %s "checking whether build environment is sane... " >&6; } 3870# Reject unsafe characters in $srcdir or the absolute working directory 3871# name. Accept space and tab only in the latter. 3872am_lf=' 3873' 3874case `pwd` in 3875 *[\\\"\#\$\&\'\`$am_lf]*) 3876 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3877esac 3878case $srcdir in 3879 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3880 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3881esac 3882 3883# Do 'set' in a subshell so we don't clobber the current shell's 3884# arguments. Must try -L first in case configure is actually a 3885# symlink; some systems play weird games with the mod time of symlinks 3886# (eg FreeBSD returns the mod time of the symlink's containing 3887# directory). 3888if ( 3889 am_has_slept=no 3890 for am_try in 1 2; do 3891 echo "timestamp, slept: $am_has_slept" > conftest.file 3892 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3893 if test "$*" = "X"; then 3894 # -L didn't work. 3895 set X `ls -t "$srcdir/configure" conftest.file` 3896 fi 3897 if test "$*" != "X $srcdir/configure conftest.file" \ 3898 && test "$*" != "X conftest.file $srcdir/configure"; then 3899 3900 # If neither matched, then we have a broken ls. This can happen 3901 # if, for instance, CONFIG_SHELL is bash and it inherits a 3902 # broken ls alias from the environment. This has actually 3903 # happened. Such a system could not be considered "sane". 3904 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3905 alias in your environment" "$LINENO" 5 3906 fi 3907 if test "$2" = conftest.file || test $am_try -eq 2; then 3908 break 3909 fi 3910 # Just in case. 3911 sleep 1 3912 am_has_slept=yes 3913 done 3914 test "$2" = conftest.file 3915 ) 3916then 3917 # Ok. 3918 : 3919else 3920 as_fn_error $? "newly created file is older than distributed files! 3921Check your system clock" "$LINENO" 5 3922fi 3923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3924printf "%s\n" "yes" >&6; } 3925# If we didn't sleep, we still need to ensure time stamps of config.status and 3926# generated files are strictly newer. 3927am_sleep_pid= 3928if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3929 ( sleep 1 ) & 3930 am_sleep_pid=$! 3931fi 3932 3933rm -f conftest.file 3934 3935test "$program_prefix" != NONE && 3936 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3937# Use a double $ so make ignores it. 3938test "$program_suffix" != NONE && 3939 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3940# Double any \ or $. 3941# By default was `s,x,x', remove it if useless. 3942ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3943program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3944 3945 3946 if test x"${MISSING+set}" != xset; then 3947 MISSING="\${SHELL} '$am_aux_dir/missing'" 3948fi 3949# Use eval to expand $SHELL 3950if eval "$MISSING --is-lightweight"; then 3951 am_missing_run="$MISSING " 3952else 3953 am_missing_run= 3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3955printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3956fi 3957 3958if test x"${install_sh+set}" != xset; then 3959 case $am_aux_dir in 3960 *\ * | *\ *) 3961 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3962 *) 3963 install_sh="\${SHELL} $am_aux_dir/install-sh" 3964 esac 3965fi 3966 3967# Installed binaries are usually stripped using 'strip' when the user 3968# run "make install-strip". However 'strip' might not be the right 3969# tool to use in cross-compilation environments, therefore Automake 3970# will honor the 'STRIP' environment variable to overrule this program. 3971if test "$cross_compiling" != no; then 3972 if test -n "$ac_tool_prefix"; then 3973 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3974set dummy ${ac_tool_prefix}strip; ac_word=$2 3975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3976printf %s "checking for $ac_word... " >&6; } 3977if test ${ac_cv_prog_STRIP+y} 3978then : 3979 printf %s "(cached) " >&6 3980else $as_nop 3981 if test -n "$STRIP"; then 3982 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3983else 3984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3985for as_dir in $PATH 3986do 3987 IFS=$as_save_IFS 3988 case $as_dir in #((( 3989 '') as_dir=./ ;; 3990 */) ;; 3991 *) as_dir=$as_dir/ ;; 3992 esac 3993 for ac_exec_ext in '' $ac_executable_extensions; do 3994 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3995 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3997 break 2 3998 fi 3999done 4000 done 4001IFS=$as_save_IFS 4002 4003fi 4004fi 4005STRIP=$ac_cv_prog_STRIP 4006if test -n "$STRIP"; then 4007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4008printf "%s\n" "$STRIP" >&6; } 4009else 4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4011printf "%s\n" "no" >&6; } 4012fi 4013 4014 4015fi 4016if test -z "$ac_cv_prog_STRIP"; then 4017 ac_ct_STRIP=$STRIP 4018 # Extract the first word of "strip", so it can be a program name with args. 4019set dummy strip; ac_word=$2 4020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4021printf %s "checking for $ac_word... " >&6; } 4022if test ${ac_cv_prog_ac_ct_STRIP+y} 4023then : 4024 printf %s "(cached) " >&6 4025else $as_nop 4026 if test -n "$ac_ct_STRIP"; then 4027 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4028else 4029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4030for as_dir in $PATH 4031do 4032 IFS=$as_save_IFS 4033 case $as_dir in #((( 4034 '') as_dir=./ ;; 4035 */) ;; 4036 *) as_dir=$as_dir/ ;; 4037 esac 4038 for ac_exec_ext in '' $ac_executable_extensions; do 4039 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4040 ac_cv_prog_ac_ct_STRIP="strip" 4041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4042 break 2 4043 fi 4044done 4045 done 4046IFS=$as_save_IFS 4047 4048fi 4049fi 4050ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4051if test -n "$ac_ct_STRIP"; then 4052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4053printf "%s\n" "$ac_ct_STRIP" >&6; } 4054else 4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4056printf "%s\n" "no" >&6; } 4057fi 4058 4059 if test "x$ac_ct_STRIP" = x; then 4060 STRIP=":" 4061 else 4062 case $cross_compiling:$ac_tool_warned in 4063yes:) 4064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4065printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4066ac_tool_warned=yes ;; 4067esac 4068 STRIP=$ac_ct_STRIP 4069 fi 4070else 4071 STRIP="$ac_cv_prog_STRIP" 4072fi 4073 4074fi 4075INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4076 4077 4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4079printf %s "checking for a race-free mkdir -p... " >&6; } 4080if test -z "$MKDIR_P"; then 4081 if test ${ac_cv_path_mkdir+y} 4082then : 4083 printf %s "(cached) " >&6 4084else $as_nop 4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4086for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4087do 4088 IFS=$as_save_IFS 4089 case $as_dir in #((( 4090 '') as_dir=./ ;; 4091 */) ;; 4092 *) as_dir=$as_dir/ ;; 4093 esac 4094 for ac_prog in mkdir gmkdir; do 4095 for ac_exec_ext in '' $ac_executable_extensions; do 4096 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4097 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4098 'mkdir ('*'coreutils) '* | \ 4099 'BusyBox '* | \ 4100 'mkdir (fileutils) '4.1*) 4101 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4102 break 3;; 4103 esac 4104 done 4105 done 4106 done 4107IFS=$as_save_IFS 4108 4109fi 4110 4111 test -d ./--version && rmdir ./--version 4112 if test ${ac_cv_path_mkdir+y}; then 4113 MKDIR_P="$ac_cv_path_mkdir -p" 4114 else 4115 # As a last resort, use the slow shell script. Don't cache a 4116 # value for MKDIR_P within a source directory, because that will 4117 # break other packages using the cache if that directory is 4118 # removed, or if the value is a relative name. 4119 MKDIR_P="$ac_install_sh -d" 4120 fi 4121fi 4122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4123printf "%s\n" "$MKDIR_P" >&6; } 4124 4125for ac_prog in gawk mawk nawk awk 4126do 4127 # Extract the first word of "$ac_prog", so it can be a program name with args. 4128set dummy $ac_prog; ac_word=$2 4129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4130printf %s "checking for $ac_word... " >&6; } 4131if test ${ac_cv_prog_AWK+y} 4132then : 4133 printf %s "(cached) " >&6 4134else $as_nop 4135 if test -n "$AWK"; then 4136 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4137else 4138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4139for as_dir in $PATH 4140do 4141 IFS=$as_save_IFS 4142 case $as_dir in #((( 4143 '') as_dir=./ ;; 4144 */) ;; 4145 *) as_dir=$as_dir/ ;; 4146 esac 4147 for ac_exec_ext in '' $ac_executable_extensions; do 4148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4149 ac_cv_prog_AWK="$ac_prog" 4150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4151 break 2 4152 fi 4153done 4154 done 4155IFS=$as_save_IFS 4156 4157fi 4158fi 4159AWK=$ac_cv_prog_AWK 4160if test -n "$AWK"; then 4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4162printf "%s\n" "$AWK" >&6; } 4163else 4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4165printf "%s\n" "no" >&6; } 4166fi 4167 4168 4169 test -n "$AWK" && break 4170done 4171 4172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4173printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4174set x ${MAKE-make} 4175ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4176if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4177then : 4178 printf %s "(cached) " >&6 4179else $as_nop 4180 cat >conftest.make <<\_ACEOF 4181SHELL = /bin/sh 4182all: 4183 @echo '@@@%%%=$(MAKE)=@@@%%%' 4184_ACEOF 4185# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4186case `${MAKE-make} -f conftest.make 2>/dev/null` in 4187 *@@@%%%=?*=@@@%%%*) 4188 eval ac_cv_prog_make_${ac_make}_set=yes;; 4189 *) 4190 eval ac_cv_prog_make_${ac_make}_set=no;; 4191esac 4192rm -f conftest.make 4193fi 4194if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4196printf "%s\n" "yes" >&6; } 4197 SET_MAKE= 4198else 4199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4200printf "%s\n" "no" >&6; } 4201 SET_MAKE="MAKE=${MAKE-make}" 4202fi 4203 4204rm -rf .tst 2>/dev/null 4205mkdir .tst 2>/dev/null 4206if test -d .tst; then 4207 am__leading_dot=. 4208else 4209 am__leading_dot=_ 4210fi 4211rmdir .tst 2>/dev/null 4212 4213DEPDIR="${am__leading_dot}deps" 4214 4215ac_config_commands="$ac_config_commands depfiles" 4216 4217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4218printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4219cat > confinc.mk << 'END' 4220am__doit: 4221 @echo this is the am__doit target >confinc.out 4222.PHONY: am__doit 4223END 4224am__include="#" 4225am__quote= 4226# BSD make does it like this. 4227echo '.include "confinc.mk" # ignored' > confmf.BSD 4228# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4229echo 'include confinc.mk # ignored' > confmf.GNU 4230_am_result=no 4231for s in GNU BSD; do 4232 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4233 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4234 ac_status=$? 4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4236 (exit $ac_status); } 4237 case $?:`cat confinc.out 2>/dev/null` in #( 4238 '0:this is the am__doit target') : 4239 case $s in #( 4240 BSD) : 4241 am__include='.include' am__quote='"' ;; #( 4242 *) : 4243 am__include='include' am__quote='' ;; 4244esac ;; #( 4245 *) : 4246 ;; 4247esac 4248 if test "$am__include" != "#"; then 4249 _am_result="yes ($s style)" 4250 break 4251 fi 4252done 4253rm -f confinc.* confmf.* 4254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4255printf "%s\n" "${_am_result}" >&6; } 4256 4257# Check whether --enable-dependency-tracking was given. 4258if test ${enable_dependency_tracking+y} 4259then : 4260 enableval=$enable_dependency_tracking; 4261fi 4262 4263if test "x$enable_dependency_tracking" != xno; then 4264 am_depcomp="$ac_aux_dir/depcomp" 4265 AMDEPBACKSLASH='\' 4266 am__nodep='_no' 4267fi 4268 if test "x$enable_dependency_tracking" != xno; then 4269 AMDEP_TRUE= 4270 AMDEP_FALSE='#' 4271else 4272 AMDEP_TRUE='#' 4273 AMDEP_FALSE= 4274fi 4275 4276 4277# Check whether --enable-silent-rules was given. 4278if test ${enable_silent_rules+y} 4279then : 4280 enableval=$enable_silent_rules; 4281fi 4282 4283case $enable_silent_rules in # ((( 4284 yes) AM_DEFAULT_VERBOSITY=0;; 4285 no) AM_DEFAULT_VERBOSITY=1;; 4286 *) AM_DEFAULT_VERBOSITY=1;; 4287esac 4288am_make=${MAKE-make} 4289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4290printf %s "checking whether $am_make supports nested variables... " >&6; } 4291if test ${am_cv_make_support_nested_variables+y} 4292then : 4293 printf %s "(cached) " >&6 4294else $as_nop 4295 if printf "%s\n" 'TRUE=$(BAR$(V)) 4296BAR0=false 4297BAR1=true 4298V=1 4299am__doit: 4300 @$(TRUE) 4301.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4302 am_cv_make_support_nested_variables=yes 4303else 4304 am_cv_make_support_nested_variables=no 4305fi 4306fi 4307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4308printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4309if test $am_cv_make_support_nested_variables = yes; then 4310 AM_V='$(V)' 4311 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4312else 4313 AM_V=$AM_DEFAULT_VERBOSITY 4314 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4315fi 4316AM_BACKSLASH='\' 4317 4318if test "`cd $srcdir && pwd`" != "`pwd`"; then 4319 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4320 # is not polluted with repeated "-I." 4321 am__isrc=' -I$(srcdir)' 4322 # test to see if srcdir already configured 4323 if test -f $srcdir/config.status; then 4324 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4325 fi 4326fi 4327 4328# test whether we have cygpath 4329if test -z "$CYGPATH_W"; then 4330 if (cygpath --version) >/dev/null 2>/dev/null; then 4331 CYGPATH_W='cygpath -w' 4332 else 4333 CYGPATH_W=echo 4334 fi 4335fi 4336 4337 4338# Define the identity of the package. 4339 PACKAGE='xlsclients' 4340 VERSION='1.1.5' 4341 4342 4343printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4344 4345 4346printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4347 4348# Some tools Automake needs. 4349 4350ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4351 4352 4353AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4354 4355 4356AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4357 4358 4359AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4360 4361 4362MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4363 4364# For better backward compatibility. To be removed once Automake 1.9.x 4365# dies out for good. For more background, see: 4366# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4367# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4368mkdir_p='$(MKDIR_P)' 4369 4370# We need awk for the "check" target (and possibly the TAP driver). The 4371# system "awk" is bad on some platforms. 4372# Always define AMTAR for backward compatibility. Yes, it's still used 4373# in the wild :-( We should find a proper way to deprecate it ... 4374AMTAR='$${TAR-tar}' 4375 4376 4377# We'll loop over all known methods to create a tar archive until one works. 4378_am_tools='gnutar pax cpio none' 4379 4380am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4381 4382 4383 4384 4385 4386depcc="$CC" am_compiler_list= 4387 4388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4389printf %s "checking dependency style of $depcc... " >&6; } 4390if test ${am_cv_CC_dependencies_compiler_type+y} 4391then : 4392 printf %s "(cached) " >&6 4393else $as_nop 4394 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4395 # We make a subdir and do the tests there. Otherwise we can end up 4396 # making bogus files that we don't know about and never remove. For 4397 # instance it was reported that on HP-UX the gcc test will end up 4398 # making a dummy file named 'D' -- because '-MD' means "put the output 4399 # in D". 4400 rm -rf conftest.dir 4401 mkdir conftest.dir 4402 # Copy depcomp to subdir because otherwise we won't find it if we're 4403 # using a relative directory. 4404 cp "$am_depcomp" conftest.dir 4405 cd conftest.dir 4406 # We will build objects and dependencies in a subdirectory because 4407 # it helps to detect inapplicable dependency modes. For instance 4408 # both Tru64's cc and ICC support -MD to output dependencies as a 4409 # side effect of compilation, but ICC will put the dependencies in 4410 # the current directory while Tru64 will put them in the object 4411 # directory. 4412 mkdir sub 4413 4414 am_cv_CC_dependencies_compiler_type=none 4415 if test "$am_compiler_list" = ""; then 4416 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4417 fi 4418 am__universal=false 4419 case " $depcc " in #( 4420 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4421 esac 4422 4423 for depmode in $am_compiler_list; do 4424 # Setup a source with many dependencies, because some compilers 4425 # like to wrap large dependency lists on column 80 (with \), and 4426 # we should not choose a depcomp mode which is confused by this. 4427 # 4428 # We need to recreate these files for each test, as the compiler may 4429 # overwrite some of them when testing with obscure command lines. 4430 # This happens at least with the AIX C compiler. 4431 : > sub/conftest.c 4432 for i in 1 2 3 4 5 6; do 4433 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4434 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4435 # Solaris 10 /bin/sh. 4436 echo '/* dummy */' > sub/conftst$i.h 4437 done 4438 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4439 4440 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4441 # mode. It turns out that the SunPro C++ compiler does not properly 4442 # handle '-M -o', and we need to detect this. Also, some Intel 4443 # versions had trouble with output in subdirs. 4444 am__obj=sub/conftest.${OBJEXT-o} 4445 am__minus_obj="-o $am__obj" 4446 case $depmode in 4447 gcc) 4448 # This depmode causes a compiler race in universal mode. 4449 test "$am__universal" = false || continue 4450 ;; 4451 nosideeffect) 4452 # After this tag, mechanisms are not by side-effect, so they'll 4453 # only be used when explicitly requested. 4454 if test "x$enable_dependency_tracking" = xyes; then 4455 continue 4456 else 4457 break 4458 fi 4459 ;; 4460 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4461 # This compiler won't grok '-c -o', but also, the minuso test has 4462 # not run yet. These depmodes are late enough in the game, and 4463 # so weak that their functioning should not be impacted. 4464 am__obj=conftest.${OBJEXT-o} 4465 am__minus_obj= 4466 ;; 4467 none) break ;; 4468 esac 4469 if depmode=$depmode \ 4470 source=sub/conftest.c object=$am__obj \ 4471 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4472 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4473 >/dev/null 2>conftest.err && 4474 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4475 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4476 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4477 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4478 # icc doesn't choke on unknown options, it will just issue warnings 4479 # or remarks (even with -Werror). So we grep stderr for any message 4480 # that says an option was ignored or not supported. 4481 # When given -MP, icc 7.0 and 7.1 complain thusly: 4482 # icc: Command line warning: ignoring option '-M'; no argument required 4483 # The diagnosis changed in icc 8.0: 4484 # icc: Command line remark: option '-MP' not supported 4485 if (grep 'ignoring option' conftest.err || 4486 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4487 am_cv_CC_dependencies_compiler_type=$depmode 4488 break 4489 fi 4490 fi 4491 done 4492 4493 cd .. 4494 rm -rf conftest.dir 4495else 4496 am_cv_CC_dependencies_compiler_type=none 4497fi 4498 4499fi 4500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4501printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4502CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4503 4504 if 4505 test "x$enable_dependency_tracking" != xno \ 4506 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4507 am__fastdepCC_TRUE= 4508 am__fastdepCC_FALSE='#' 4509else 4510 am__fastdepCC_TRUE='#' 4511 am__fastdepCC_FALSE= 4512fi 4513 4514 4515# Variables for tags utilities; see am/tags.am 4516if test -z "$CTAGS"; then 4517 CTAGS=ctags 4518fi 4519 4520if test -z "$ETAGS"; then 4521 ETAGS=etags 4522fi 4523 4524if test -z "$CSCOPE"; then 4525 CSCOPE=cscope 4526fi 4527 4528 4529 4530# POSIX will say in a future version that running "rm -f" with no argument 4531# is OK; and we want to be able to make that assumption in our Makefile 4532# recipes. So use an aggressive probe to check that the usage we want is 4533# actually supported "in the wild" to an acceptable degree. 4534# See automake bug#10828. 4535# To make any issue more visible, cause the running configure to be aborted 4536# by default if the 'rm' program in use doesn't match our expectations; the 4537# user can still override this though. 4538if rm -f && rm -fr && rm -rf; then : OK; else 4539 cat >&2 <<'END' 4540Oops! 4541 4542Your 'rm' program seems unable to run without file operands specified 4543on the command line, even when the '-f' option is present. This is contrary 4544to the behaviour of most rm programs out there, and not conforming with 4545the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4546 4547Please tell bug-automake@gnu.org about your system, including the value 4548of your $PATH and any error possibly output before this message. This 4549can help us improve future automake versions. 4550 4551END 4552 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4553 echo 'Configuration will proceed anyway, since you have set the' >&2 4554 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4555 echo >&2 4556 else 4557 cat >&2 <<'END' 4558Aborting the configuration process, to ensure you take notice of the issue. 4559 4560You can download and install GNU coreutils to get an 'rm' implementation 4561that behaves properly: <https://www.gnu.org/software/coreutils/>. 4562 4563If you want to complete the configuration process using your problematic 4564'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4565to "yes", and re-run configure. 4566 4567END 4568 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4569 fi 4570fi 4571 4572 4573# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4587printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4588if test ${ac_cv_c_undeclared_builtin_options+y} 4589then : 4590 printf %s "(cached) " >&6 4591else $as_nop 4592 ac_save_CFLAGS=$CFLAGS 4593 ac_cv_c_undeclared_builtin_options='cannot detect' 4594 for ac_arg in '' -fno-builtin; do 4595 CFLAGS="$ac_save_CFLAGS $ac_arg" 4596 # This test program should *not* compile successfully. 4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4598/* end confdefs.h. */ 4599 4600int 4601main (void) 4602{ 4603(void) strchr; 4604 ; 4605 return 0; 4606} 4607_ACEOF 4608if ac_fn_c_try_compile "$LINENO" 4609then : 4610 4611else $as_nop 4612 # This test program should compile successfully. 4613 # No library function is consistently available on 4614 # freestanding implementations, so test against a dummy 4615 # declaration. Include always-available headers on the 4616 # off chance that they somehow elicit warnings. 4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4618/* end confdefs.h. */ 4619#include <float.h> 4620#include <limits.h> 4621#include <stdarg.h> 4622#include <stddef.h> 4623extern void ac_decl (int, char *); 4624 4625int 4626main (void) 4627{ 4628(void) ac_decl (0, (char *) 0); 4629 (void) ac_decl; 4630 4631 ; 4632 return 0; 4633} 4634_ACEOF 4635if ac_fn_c_try_compile "$LINENO" 4636then : 4637 if test x"$ac_arg" = x 4638then : 4639 ac_cv_c_undeclared_builtin_options='none needed' 4640else $as_nop 4641 ac_cv_c_undeclared_builtin_options=$ac_arg 4642fi 4643 break 4644fi 4645rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4646fi 4647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4648 done 4649 CFLAGS=$ac_save_CFLAGS 4650 4651fi 4652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4653printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4654 case $ac_cv_c_undeclared_builtin_options in #( 4655 'cannot detect') : 4656 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4657printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4658as_fn_error $? "cannot make $CC report undeclared builtins 4659See \`config.log' for more details" "$LINENO" 5; } ;; #( 4660 'none needed') : 4661 ac_c_undeclared_builtin_options='' ;; #( 4662 *) : 4663 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4664esac 4665 4666 4667 4668 4669 4670ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4671if test "x$ac_cv_have_decl___clang__" = xyes 4672then : 4673 CLANGCC="yes" 4674else $as_nop 4675 CLANGCC="no" 4676fi 4677ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4678if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4679then : 4680 INTELCC="yes" 4681else $as_nop 4682 INTELCC="no" 4683fi 4684ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4685if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4686then : 4687 SUNCC="yes" 4688else $as_nop 4689 SUNCC="no" 4690fi 4691 4692 4693 4694 4695 4696 4697 4698 4699if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4700 if test -n "$ac_tool_prefix"; then 4701 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4702set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4704printf %s "checking for $ac_word... " >&6; } 4705if test ${ac_cv_path_PKG_CONFIG+y} 4706then : 4707 printf %s "(cached) " >&6 4708else $as_nop 4709 case $PKG_CONFIG in 4710 [\\/]* | ?:[\\/]*) 4711 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4712 ;; 4713 *) 4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4715for as_dir in $PATH 4716do 4717 IFS=$as_save_IFS 4718 case $as_dir in #((( 4719 '') as_dir=./ ;; 4720 */) ;; 4721 *) as_dir=$as_dir/ ;; 4722 esac 4723 for ac_exec_ext in '' $ac_executable_extensions; do 4724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4725 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4727 break 2 4728 fi 4729done 4730 done 4731IFS=$as_save_IFS 4732 4733 ;; 4734esac 4735fi 4736PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4737if test -n "$PKG_CONFIG"; then 4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4739printf "%s\n" "$PKG_CONFIG" >&6; } 4740else 4741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4742printf "%s\n" "no" >&6; } 4743fi 4744 4745 4746fi 4747if test -z "$ac_cv_path_PKG_CONFIG"; then 4748 ac_pt_PKG_CONFIG=$PKG_CONFIG 4749 # Extract the first word of "pkg-config", so it can be a program name with args. 4750set dummy pkg-config; ac_word=$2 4751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4752printf %s "checking for $ac_word... " >&6; } 4753if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4754then : 4755 printf %s "(cached) " >&6 4756else $as_nop 4757 case $ac_pt_PKG_CONFIG in 4758 [\\/]* | ?:[\\/]*) 4759 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4760 ;; 4761 *) 4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4763for as_dir in $PATH 4764do 4765 IFS=$as_save_IFS 4766 case $as_dir in #((( 4767 '') as_dir=./ ;; 4768 */) ;; 4769 *) as_dir=$as_dir/ ;; 4770 esac 4771 for ac_exec_ext in '' $ac_executable_extensions; do 4772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4773 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4775 break 2 4776 fi 4777done 4778 done 4779IFS=$as_save_IFS 4780 4781 ;; 4782esac 4783fi 4784ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4785if test -n "$ac_pt_PKG_CONFIG"; then 4786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4787printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4788else 4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4790printf "%s\n" "no" >&6; } 4791fi 4792 4793 if test "x$ac_pt_PKG_CONFIG" = x; then 4794 PKG_CONFIG="" 4795 else 4796 case $cross_compiling:$ac_tool_warned in 4797yes:) 4798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4799printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4800ac_tool_warned=yes ;; 4801esac 4802 PKG_CONFIG=$ac_pt_PKG_CONFIG 4803 fi 4804else 4805 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4806fi 4807 4808fi 4809if test -n "$PKG_CONFIG"; then 4810 _pkg_min_version=0.9.0 4811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4812printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4813 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4815printf "%s\n" "yes" >&6; } 4816 else 4817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4818printf "%s\n" "no" >&6; } 4819 PKG_CONFIG="" 4820 fi 4821fi 4822 4823 4824 # Make sure we can run config.sub. 4825$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4826 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4827 4828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4829printf %s "checking build system type... " >&6; } 4830if test ${ac_cv_build+y} 4831then : 4832 printf %s "(cached) " >&6 4833else $as_nop 4834 ac_build_alias=$build_alias 4835test "x$ac_build_alias" = x && 4836 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4837test "x$ac_build_alias" = x && 4838 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4839ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4840 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4841 4842fi 4843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4844printf "%s\n" "$ac_cv_build" >&6; } 4845case $ac_cv_build in 4846*-*-*) ;; 4847*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4848esac 4849build=$ac_cv_build 4850ac_save_IFS=$IFS; IFS='-' 4851set x $ac_cv_build 4852shift 4853build_cpu=$1 4854build_vendor=$2 4855shift; shift 4856# Remember, the first character of IFS is used to create $*, 4857# except with old shells: 4858build_os=$* 4859IFS=$ac_save_IFS 4860case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4861 4862 4863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4864printf %s "checking host system type... " >&6; } 4865if test ${ac_cv_host+y} 4866then : 4867 printf %s "(cached) " >&6 4868else $as_nop 4869 if test "x$host_alias" = x; then 4870 ac_cv_host=$ac_cv_build 4871else 4872 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4873 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4874fi 4875 4876fi 4877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4878printf "%s\n" "$ac_cv_host" >&6; } 4879case $ac_cv_host in 4880*-*-*) ;; 4881*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4882esac 4883host=$ac_cv_host 4884ac_save_IFS=$IFS; IFS='-' 4885set x $ac_cv_host 4886shift 4887host_cpu=$1 4888host_vendor=$2 4889shift; shift 4890# Remember, the first character of IFS is used to create $*, 4891# except with old shells: 4892host_os=$* 4893IFS=$ac_save_IFS 4894case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4895 4896 4897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4898printf %s "checking for a sed that does not truncate output... " >&6; } 4899if test ${ac_cv_path_SED+y} 4900then : 4901 printf %s "(cached) " >&6 4902else $as_nop 4903 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4904 for ac_i in 1 2 3 4 5 6 7; do 4905 ac_script="$ac_script$as_nl$ac_script" 4906 done 4907 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4908 { ac_script=; unset ac_script;} 4909 if test -z "$SED"; then 4910 ac_path_SED_found=false 4911 # Loop through the user's path and test for each of PROGNAME-LIST 4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4913for as_dir in $PATH 4914do 4915 IFS=$as_save_IFS 4916 case $as_dir in #((( 4917 '') as_dir=./ ;; 4918 */) ;; 4919 *) as_dir=$as_dir/ ;; 4920 esac 4921 for ac_prog in sed gsed 4922 do 4923 for ac_exec_ext in '' $ac_executable_extensions; do 4924 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4925 as_fn_executable_p "$ac_path_SED" || continue 4926# Check for GNU ac_path_SED and select it if it is found. 4927 # Check for GNU $ac_path_SED 4928case `"$ac_path_SED" --version 2>&1` in 4929*GNU*) 4930 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4931*) 4932 ac_count=0 4933 printf %s 0123456789 >"conftest.in" 4934 while : 4935 do 4936 cat "conftest.in" "conftest.in" >"conftest.tmp" 4937 mv "conftest.tmp" "conftest.in" 4938 cp "conftest.in" "conftest.nl" 4939 printf "%s\n" '' >> "conftest.nl" 4940 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4941 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4942 as_fn_arith $ac_count + 1 && ac_count=$as_val 4943 if test $ac_count -gt ${ac_path_SED_max-0}; then 4944 # Best one so far, save it but keep looking for a better one 4945 ac_cv_path_SED="$ac_path_SED" 4946 ac_path_SED_max=$ac_count 4947 fi 4948 # 10*(2^10) chars as input seems more than enough 4949 test $ac_count -gt 10 && break 4950 done 4951 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4952esac 4953 4954 $ac_path_SED_found && break 3 4955 done 4956 done 4957 done 4958IFS=$as_save_IFS 4959 if test -z "$ac_cv_path_SED"; then 4960 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4961 fi 4962else 4963 ac_cv_path_SED=$SED 4964fi 4965 4966fi 4967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4968printf "%s\n" "$ac_cv_path_SED" >&6; } 4969 SED="$ac_cv_path_SED" 4970 rm -f conftest.sed 4971 4972 4973 4974 4975 4976 4977# Check whether --enable-selective-werror was given. 4978if test ${enable_selective_werror+y} 4979then : 4980 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4981else $as_nop 4982 SELECTIVE_WERROR=yes 4983fi 4984 4985 4986 4987 4988 4989# -v is too short to test reliably with XORG_TESTSET_CFLAG 4990if test "x$SUNCC" = "xyes"; then 4991 BASE_CFLAGS="-v" 4992else 4993 BASE_CFLAGS="" 4994fi 4995 4996# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010xorg_testset_save_CFLAGS="$CFLAGS" 5011 5012if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5015printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5016if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5017then : 5018 printf %s "(cached) " >&6 5019else $as_nop 5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5021/* end confdefs.h. */ 5022int i; 5023_ACEOF 5024if ac_fn_c_try_compile "$LINENO" 5025then : 5026 xorg_cv_cc_flag_unknown_warning_option=yes 5027else $as_nop 5028 xorg_cv_cc_flag_unknown_warning_option=no 5029fi 5030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5031fi 5032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5033printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5035 CFLAGS="$xorg_testset_save_CFLAGS" 5036fi 5037 5038if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5041 fi 5042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5044printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5045if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5046then : 5047 printf %s "(cached) " >&6 5048else $as_nop 5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5050/* end confdefs.h. */ 5051int i; 5052_ACEOF 5053if ac_fn_c_try_compile "$LINENO" 5054then : 5055 xorg_cv_cc_flag_unused_command_line_argument=yes 5056else $as_nop 5057 xorg_cv_cc_flag_unused_command_line_argument=no 5058fi 5059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5060fi 5061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5062printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5064 CFLAGS="$xorg_testset_save_CFLAGS" 5065fi 5066 5067found="no" 5068 5069 if test $found = "no" ; then 5070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5072 fi 5073 5074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5076 fi 5077 5078 CFLAGS="$CFLAGS -Wall" 5079 5080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5081printf %s "checking if $CC supports -Wall... " >&6; } 5082 cacheid=xorg_cv_cc_flag__Wall 5083 if eval test \${$cacheid+y} 5084then : 5085 printf %s "(cached) " >&6 5086else $as_nop 5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5088/* end confdefs.h. */ 5089int i; 5090int 5091main (void) 5092{ 5093 5094 ; 5095 return 0; 5096} 5097_ACEOF 5098if ac_fn_c_try_link "$LINENO" 5099then : 5100 eval $cacheid=yes 5101else $as_nop 5102 eval $cacheid=no 5103fi 5104rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5105 conftest$ac_exeext conftest.$ac_ext 5106fi 5107 5108 5109 CFLAGS="$xorg_testset_save_CFLAGS" 5110 5111 eval supported=\$$cacheid 5112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5113printf "%s\n" "$supported" >&6; } 5114 if test "$supported" = "yes" ; then 5115 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5116 found="yes" 5117 fi 5118 fi 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134xorg_testset_save_CFLAGS="$CFLAGS" 5135 5136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5139printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5140if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5141then : 5142 printf %s "(cached) " >&6 5143else $as_nop 5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5145/* end confdefs.h. */ 5146int i; 5147_ACEOF 5148if ac_fn_c_try_compile "$LINENO" 5149then : 5150 xorg_cv_cc_flag_unknown_warning_option=yes 5151else $as_nop 5152 xorg_cv_cc_flag_unknown_warning_option=no 5153fi 5154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5155fi 5156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5157printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5159 CFLAGS="$xorg_testset_save_CFLAGS" 5160fi 5161 5162if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5165 fi 5166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5168printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5169if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5170then : 5171 printf %s "(cached) " >&6 5172else $as_nop 5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5174/* end confdefs.h. */ 5175int i; 5176_ACEOF 5177if ac_fn_c_try_compile "$LINENO" 5178then : 5179 xorg_cv_cc_flag_unused_command_line_argument=yes 5180else $as_nop 5181 xorg_cv_cc_flag_unused_command_line_argument=no 5182fi 5183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5184fi 5185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5186printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5188 CFLAGS="$xorg_testset_save_CFLAGS" 5189fi 5190 5191found="no" 5192 5193 if test $found = "no" ; then 5194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5196 fi 5197 5198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5200 fi 5201 5202 CFLAGS="$CFLAGS -Wpointer-arith" 5203 5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5205printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5206 cacheid=xorg_cv_cc_flag__Wpointer_arith 5207 if eval test \${$cacheid+y} 5208then : 5209 printf %s "(cached) " >&6 5210else $as_nop 5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5212/* end confdefs.h. */ 5213int i; 5214int 5215main (void) 5216{ 5217 5218 ; 5219 return 0; 5220} 5221_ACEOF 5222if ac_fn_c_try_link "$LINENO" 5223then : 5224 eval $cacheid=yes 5225else $as_nop 5226 eval $cacheid=no 5227fi 5228rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5229 conftest$ac_exeext conftest.$ac_ext 5230fi 5231 5232 5233 CFLAGS="$xorg_testset_save_CFLAGS" 5234 5235 eval supported=\$$cacheid 5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5237printf "%s\n" "$supported" >&6; } 5238 if test "$supported" = "yes" ; then 5239 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5240 found="yes" 5241 fi 5242 fi 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258xorg_testset_save_CFLAGS="$CFLAGS" 5259 5260if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5263printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5264if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5265then : 5266 printf %s "(cached) " >&6 5267else $as_nop 5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5269/* end confdefs.h. */ 5270int i; 5271_ACEOF 5272if ac_fn_c_try_compile "$LINENO" 5273then : 5274 xorg_cv_cc_flag_unknown_warning_option=yes 5275else $as_nop 5276 xorg_cv_cc_flag_unknown_warning_option=no 5277fi 5278rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5279fi 5280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5281printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5282 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5283 CFLAGS="$xorg_testset_save_CFLAGS" 5284fi 5285 5286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5289 fi 5290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5292printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5293if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5294then : 5295 printf %s "(cached) " >&6 5296else $as_nop 5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5298/* end confdefs.h. */ 5299int i; 5300_ACEOF 5301if ac_fn_c_try_compile "$LINENO" 5302then : 5303 xorg_cv_cc_flag_unused_command_line_argument=yes 5304else $as_nop 5305 xorg_cv_cc_flag_unused_command_line_argument=no 5306fi 5307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5308fi 5309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5310printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5312 CFLAGS="$xorg_testset_save_CFLAGS" 5313fi 5314 5315found="no" 5316 5317 if test $found = "no" ; then 5318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5320 fi 5321 5322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5324 fi 5325 5326 CFLAGS="$CFLAGS -Wmissing-declarations" 5327 5328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5329printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5330 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5331 if eval test \${$cacheid+y} 5332then : 5333 printf %s "(cached) " >&6 5334else $as_nop 5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5336/* end confdefs.h. */ 5337int i; 5338int 5339main (void) 5340{ 5341 5342 ; 5343 return 0; 5344} 5345_ACEOF 5346if ac_fn_c_try_link "$LINENO" 5347then : 5348 eval $cacheid=yes 5349else $as_nop 5350 eval $cacheid=no 5351fi 5352rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5353 conftest$ac_exeext conftest.$ac_ext 5354fi 5355 5356 5357 CFLAGS="$xorg_testset_save_CFLAGS" 5358 5359 eval supported=\$$cacheid 5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5361printf "%s\n" "$supported" >&6; } 5362 if test "$supported" = "yes" ; then 5363 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5364 found="yes" 5365 fi 5366 fi 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382xorg_testset_save_CFLAGS="$CFLAGS" 5383 5384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5387printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5388if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5389then : 5390 printf %s "(cached) " >&6 5391else $as_nop 5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5393/* end confdefs.h. */ 5394int i; 5395_ACEOF 5396if ac_fn_c_try_compile "$LINENO" 5397then : 5398 xorg_cv_cc_flag_unknown_warning_option=yes 5399else $as_nop 5400 xorg_cv_cc_flag_unknown_warning_option=no 5401fi 5402rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5403fi 5404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5405printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5406 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5407 CFLAGS="$xorg_testset_save_CFLAGS" 5408fi 5409 5410if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5413 fi 5414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5416printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5417if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5418then : 5419 printf %s "(cached) " >&6 5420else $as_nop 5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5422/* end confdefs.h. */ 5423int i; 5424_ACEOF 5425if ac_fn_c_try_compile "$LINENO" 5426then : 5427 xorg_cv_cc_flag_unused_command_line_argument=yes 5428else $as_nop 5429 xorg_cv_cc_flag_unused_command_line_argument=no 5430fi 5431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5432fi 5433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5434printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5436 CFLAGS="$xorg_testset_save_CFLAGS" 5437fi 5438 5439found="no" 5440 5441 if test $found = "no" ; then 5442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5444 fi 5445 5446 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5448 fi 5449 5450 CFLAGS="$CFLAGS -Wformat=2" 5451 5452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5453printf %s "checking if $CC supports -Wformat=2... " >&6; } 5454 cacheid=xorg_cv_cc_flag__Wformat_2 5455 if eval test \${$cacheid+y} 5456then : 5457 printf %s "(cached) " >&6 5458else $as_nop 5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5460/* end confdefs.h. */ 5461int i; 5462int 5463main (void) 5464{ 5465 5466 ; 5467 return 0; 5468} 5469_ACEOF 5470if ac_fn_c_try_link "$LINENO" 5471then : 5472 eval $cacheid=yes 5473else $as_nop 5474 eval $cacheid=no 5475fi 5476rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5477 conftest$ac_exeext conftest.$ac_ext 5478fi 5479 5480 5481 CFLAGS="$xorg_testset_save_CFLAGS" 5482 5483 eval supported=\$$cacheid 5484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5485printf "%s\n" "$supported" >&6; } 5486 if test "$supported" = "yes" ; then 5487 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5488 found="yes" 5489 fi 5490 fi 5491 5492 if test $found = "no" ; then 5493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5495 fi 5496 5497 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5499 fi 5500 5501 CFLAGS="$CFLAGS -Wformat" 5502 5503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5504printf %s "checking if $CC supports -Wformat... " >&6; } 5505 cacheid=xorg_cv_cc_flag__Wformat 5506 if eval test \${$cacheid+y} 5507then : 5508 printf %s "(cached) " >&6 5509else $as_nop 5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5511/* end confdefs.h. */ 5512int i; 5513int 5514main (void) 5515{ 5516 5517 ; 5518 return 0; 5519} 5520_ACEOF 5521if ac_fn_c_try_link "$LINENO" 5522then : 5523 eval $cacheid=yes 5524else $as_nop 5525 eval $cacheid=no 5526fi 5527rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5528 conftest$ac_exeext conftest.$ac_ext 5529fi 5530 5531 5532 CFLAGS="$xorg_testset_save_CFLAGS" 5533 5534 eval supported=\$$cacheid 5535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5536printf "%s\n" "$supported" >&6; } 5537 if test "$supported" = "yes" ; then 5538 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5539 found="yes" 5540 fi 5541 fi 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559xorg_testset_save_CFLAGS="$CFLAGS" 5560 5561if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5564printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5565if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5566then : 5567 printf %s "(cached) " >&6 5568else $as_nop 5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5570/* end confdefs.h. */ 5571int i; 5572_ACEOF 5573if ac_fn_c_try_compile "$LINENO" 5574then : 5575 xorg_cv_cc_flag_unknown_warning_option=yes 5576else $as_nop 5577 xorg_cv_cc_flag_unknown_warning_option=no 5578fi 5579rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5580fi 5581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5582printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5584 CFLAGS="$xorg_testset_save_CFLAGS" 5585fi 5586 5587if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5590 fi 5591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5593printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5594if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5595then : 5596 printf %s "(cached) " >&6 5597else $as_nop 5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5599/* end confdefs.h. */ 5600int i; 5601_ACEOF 5602if ac_fn_c_try_compile "$LINENO" 5603then : 5604 xorg_cv_cc_flag_unused_command_line_argument=yes 5605else $as_nop 5606 xorg_cv_cc_flag_unused_command_line_argument=no 5607fi 5608rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5609fi 5610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5611printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5613 CFLAGS="$xorg_testset_save_CFLAGS" 5614fi 5615 5616found="no" 5617 5618 if test $found = "no" ; then 5619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5621 fi 5622 5623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5625 fi 5626 5627 CFLAGS="$CFLAGS -Wstrict-prototypes" 5628 5629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5630printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5631 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5632 if eval test \${$cacheid+y} 5633then : 5634 printf %s "(cached) " >&6 5635else $as_nop 5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5637/* end confdefs.h. */ 5638int i; 5639int 5640main (void) 5641{ 5642 5643 ; 5644 return 0; 5645} 5646_ACEOF 5647if ac_fn_c_try_link "$LINENO" 5648then : 5649 eval $cacheid=yes 5650else $as_nop 5651 eval $cacheid=no 5652fi 5653rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5654 conftest$ac_exeext conftest.$ac_ext 5655fi 5656 5657 5658 CFLAGS="$xorg_testset_save_CFLAGS" 5659 5660 eval supported=\$$cacheid 5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5662printf "%s\n" "$supported" >&6; } 5663 if test "$supported" = "yes" ; then 5664 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5665 found="yes" 5666 fi 5667 fi 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683xorg_testset_save_CFLAGS="$CFLAGS" 5684 5685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5688printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5689if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5690then : 5691 printf %s "(cached) " >&6 5692else $as_nop 5693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5694/* end confdefs.h. */ 5695int i; 5696_ACEOF 5697if ac_fn_c_try_compile "$LINENO" 5698then : 5699 xorg_cv_cc_flag_unknown_warning_option=yes 5700else $as_nop 5701 xorg_cv_cc_flag_unknown_warning_option=no 5702fi 5703rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5704fi 5705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5706printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5708 CFLAGS="$xorg_testset_save_CFLAGS" 5709fi 5710 5711if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5714 fi 5715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5717printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5718if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5719then : 5720 printf %s "(cached) " >&6 5721else $as_nop 5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5723/* end confdefs.h. */ 5724int i; 5725_ACEOF 5726if ac_fn_c_try_compile "$LINENO" 5727then : 5728 xorg_cv_cc_flag_unused_command_line_argument=yes 5729else $as_nop 5730 xorg_cv_cc_flag_unused_command_line_argument=no 5731fi 5732rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5733fi 5734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5735printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5737 CFLAGS="$xorg_testset_save_CFLAGS" 5738fi 5739 5740found="no" 5741 5742 if test $found = "no" ; then 5743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5745 fi 5746 5747 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5749 fi 5750 5751 CFLAGS="$CFLAGS -Wmissing-prototypes" 5752 5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5754printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5755 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5756 if eval test \${$cacheid+y} 5757then : 5758 printf %s "(cached) " >&6 5759else $as_nop 5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5761/* end confdefs.h. */ 5762int i; 5763int 5764main (void) 5765{ 5766 5767 ; 5768 return 0; 5769} 5770_ACEOF 5771if ac_fn_c_try_link "$LINENO" 5772then : 5773 eval $cacheid=yes 5774else $as_nop 5775 eval $cacheid=no 5776fi 5777rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5778 conftest$ac_exeext conftest.$ac_ext 5779fi 5780 5781 5782 CFLAGS="$xorg_testset_save_CFLAGS" 5783 5784 eval supported=\$$cacheid 5785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5786printf "%s\n" "$supported" >&6; } 5787 if test "$supported" = "yes" ; then 5788 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5789 found="yes" 5790 fi 5791 fi 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807xorg_testset_save_CFLAGS="$CFLAGS" 5808 5809if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5812printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5813if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5814then : 5815 printf %s "(cached) " >&6 5816else $as_nop 5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5818/* end confdefs.h. */ 5819int i; 5820_ACEOF 5821if ac_fn_c_try_compile "$LINENO" 5822then : 5823 xorg_cv_cc_flag_unknown_warning_option=yes 5824else $as_nop 5825 xorg_cv_cc_flag_unknown_warning_option=no 5826fi 5827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5828fi 5829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5830printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5831 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5832 CFLAGS="$xorg_testset_save_CFLAGS" 5833fi 5834 5835if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5838 fi 5839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5841printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5842if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5843then : 5844 printf %s "(cached) " >&6 5845else $as_nop 5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5847/* end confdefs.h. */ 5848int i; 5849_ACEOF 5850if ac_fn_c_try_compile "$LINENO" 5851then : 5852 xorg_cv_cc_flag_unused_command_line_argument=yes 5853else $as_nop 5854 xorg_cv_cc_flag_unused_command_line_argument=no 5855fi 5856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5857fi 5858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5859printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5860 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5861 CFLAGS="$xorg_testset_save_CFLAGS" 5862fi 5863 5864found="no" 5865 5866 if test $found = "no" ; then 5867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5869 fi 5870 5871 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5873 fi 5874 5875 CFLAGS="$CFLAGS -Wnested-externs" 5876 5877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5878printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5879 cacheid=xorg_cv_cc_flag__Wnested_externs 5880 if eval test \${$cacheid+y} 5881then : 5882 printf %s "(cached) " >&6 5883else $as_nop 5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5885/* end confdefs.h. */ 5886int i; 5887int 5888main (void) 5889{ 5890 5891 ; 5892 return 0; 5893} 5894_ACEOF 5895if ac_fn_c_try_link "$LINENO" 5896then : 5897 eval $cacheid=yes 5898else $as_nop 5899 eval $cacheid=no 5900fi 5901rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5902 conftest$ac_exeext conftest.$ac_ext 5903fi 5904 5905 5906 CFLAGS="$xorg_testset_save_CFLAGS" 5907 5908 eval supported=\$$cacheid 5909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5910printf "%s\n" "$supported" >&6; } 5911 if test "$supported" = "yes" ; then 5912 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5913 found="yes" 5914 fi 5915 fi 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931xorg_testset_save_CFLAGS="$CFLAGS" 5932 5933if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5936printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5937if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5938then : 5939 printf %s "(cached) " >&6 5940else $as_nop 5941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5942/* end confdefs.h. */ 5943int i; 5944_ACEOF 5945if ac_fn_c_try_compile "$LINENO" 5946then : 5947 xorg_cv_cc_flag_unknown_warning_option=yes 5948else $as_nop 5949 xorg_cv_cc_flag_unknown_warning_option=no 5950fi 5951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5952fi 5953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5954printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5956 CFLAGS="$xorg_testset_save_CFLAGS" 5957fi 5958 5959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5962 fi 5963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5965printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5966if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5967then : 5968 printf %s "(cached) " >&6 5969else $as_nop 5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5971/* end confdefs.h. */ 5972int i; 5973_ACEOF 5974if ac_fn_c_try_compile "$LINENO" 5975then : 5976 xorg_cv_cc_flag_unused_command_line_argument=yes 5977else $as_nop 5978 xorg_cv_cc_flag_unused_command_line_argument=no 5979fi 5980rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5981fi 5982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5983printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5985 CFLAGS="$xorg_testset_save_CFLAGS" 5986fi 5987 5988found="no" 5989 5990 if test $found = "no" ; then 5991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5993 fi 5994 5995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5997 fi 5998 5999 CFLAGS="$CFLAGS -Wbad-function-cast" 6000 6001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6002printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6003 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6004 if eval test \${$cacheid+y} 6005then : 6006 printf %s "(cached) " >&6 6007else $as_nop 6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6009/* end confdefs.h. */ 6010int i; 6011int 6012main (void) 6013{ 6014 6015 ; 6016 return 0; 6017} 6018_ACEOF 6019if ac_fn_c_try_link "$LINENO" 6020then : 6021 eval $cacheid=yes 6022else $as_nop 6023 eval $cacheid=no 6024fi 6025rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6026 conftest$ac_exeext conftest.$ac_ext 6027fi 6028 6029 6030 CFLAGS="$xorg_testset_save_CFLAGS" 6031 6032 eval supported=\$$cacheid 6033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6034printf "%s\n" "$supported" >&6; } 6035 if test "$supported" = "yes" ; then 6036 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6037 found="yes" 6038 fi 6039 fi 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055xorg_testset_save_CFLAGS="$CFLAGS" 6056 6057if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6060printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6061if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6062then : 6063 printf %s "(cached) " >&6 6064else $as_nop 6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6066/* end confdefs.h. */ 6067int i; 6068_ACEOF 6069if ac_fn_c_try_compile "$LINENO" 6070then : 6071 xorg_cv_cc_flag_unknown_warning_option=yes 6072else $as_nop 6073 xorg_cv_cc_flag_unknown_warning_option=no 6074fi 6075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6076fi 6077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6078printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6080 CFLAGS="$xorg_testset_save_CFLAGS" 6081fi 6082 6083if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6086 fi 6087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6089printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6090if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6091then : 6092 printf %s "(cached) " >&6 6093else $as_nop 6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6095/* end confdefs.h. */ 6096int i; 6097_ACEOF 6098if ac_fn_c_try_compile "$LINENO" 6099then : 6100 xorg_cv_cc_flag_unused_command_line_argument=yes 6101else $as_nop 6102 xorg_cv_cc_flag_unused_command_line_argument=no 6103fi 6104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6105fi 6106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6107printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6108 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6109 CFLAGS="$xorg_testset_save_CFLAGS" 6110fi 6111 6112found="no" 6113 6114 if test $found = "no" ; then 6115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6117 fi 6118 6119 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6121 fi 6122 6123 CFLAGS="$CFLAGS -Wold-style-definition" 6124 6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6126printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6127 cacheid=xorg_cv_cc_flag__Wold_style_definition 6128 if eval test \${$cacheid+y} 6129then : 6130 printf %s "(cached) " >&6 6131else $as_nop 6132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6133/* end confdefs.h. */ 6134int i; 6135int 6136main (void) 6137{ 6138 6139 ; 6140 return 0; 6141} 6142_ACEOF 6143if ac_fn_c_try_link "$LINENO" 6144then : 6145 eval $cacheid=yes 6146else $as_nop 6147 eval $cacheid=no 6148fi 6149rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6150 conftest$ac_exeext conftest.$ac_ext 6151fi 6152 6153 6154 CFLAGS="$xorg_testset_save_CFLAGS" 6155 6156 eval supported=\$$cacheid 6157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6158printf "%s\n" "$supported" >&6; } 6159 if test "$supported" = "yes" ; then 6160 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6161 found="yes" 6162 fi 6163 fi 6164 6165 if test $found = "no" ; then 6166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6168 fi 6169 6170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6172 fi 6173 6174 CFLAGS="$CFLAGS -fd" 6175 6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6177printf %s "checking if $CC supports -fd... " >&6; } 6178 cacheid=xorg_cv_cc_flag__fd 6179 if eval test \${$cacheid+y} 6180then : 6181 printf %s "(cached) " >&6 6182else $as_nop 6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6184/* end confdefs.h. */ 6185int i; 6186int 6187main (void) 6188{ 6189 6190 ; 6191 return 0; 6192} 6193_ACEOF 6194if ac_fn_c_try_link "$LINENO" 6195then : 6196 eval $cacheid=yes 6197else $as_nop 6198 eval $cacheid=no 6199fi 6200rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6201 conftest$ac_exeext conftest.$ac_ext 6202fi 6203 6204 6205 CFLAGS="$xorg_testset_save_CFLAGS" 6206 6207 eval supported=\$$cacheid 6208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6209printf "%s\n" "$supported" >&6; } 6210 if test "$supported" = "yes" ; then 6211 BASE_CFLAGS="$BASE_CFLAGS -fd" 6212 found="yes" 6213 fi 6214 fi 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230xorg_testset_save_CFLAGS="$CFLAGS" 6231 6232if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6235printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6236if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6237then : 6238 printf %s "(cached) " >&6 6239else $as_nop 6240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6241/* end confdefs.h. */ 6242int i; 6243_ACEOF 6244if ac_fn_c_try_compile "$LINENO" 6245then : 6246 xorg_cv_cc_flag_unknown_warning_option=yes 6247else $as_nop 6248 xorg_cv_cc_flag_unknown_warning_option=no 6249fi 6250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6251fi 6252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6253printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6255 CFLAGS="$xorg_testset_save_CFLAGS" 6256fi 6257 6258if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6261 fi 6262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6264printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6265if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6266then : 6267 printf %s "(cached) " >&6 6268else $as_nop 6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6270/* end confdefs.h. */ 6271int i; 6272_ACEOF 6273if ac_fn_c_try_compile "$LINENO" 6274then : 6275 xorg_cv_cc_flag_unused_command_line_argument=yes 6276else $as_nop 6277 xorg_cv_cc_flag_unused_command_line_argument=no 6278fi 6279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6280fi 6281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6282printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6284 CFLAGS="$xorg_testset_save_CFLAGS" 6285fi 6286 6287found="no" 6288 6289 if test $found = "no" ; then 6290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6292 fi 6293 6294 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6296 fi 6297 6298 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6299 6300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6301printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6302 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6303 if eval test \${$cacheid+y} 6304then : 6305 printf %s "(cached) " >&6 6306else $as_nop 6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6308/* end confdefs.h. */ 6309int i; 6310int 6311main (void) 6312{ 6313 6314 ; 6315 return 0; 6316} 6317_ACEOF 6318if ac_fn_c_try_link "$LINENO" 6319then : 6320 eval $cacheid=yes 6321else $as_nop 6322 eval $cacheid=no 6323fi 6324rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6325 conftest$ac_exeext conftest.$ac_ext 6326fi 6327 6328 6329 CFLAGS="$xorg_testset_save_CFLAGS" 6330 6331 eval supported=\$$cacheid 6332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6333printf "%s\n" "$supported" >&6; } 6334 if test "$supported" = "yes" ; then 6335 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6336 found="yes" 6337 fi 6338 fi 6339 6340 6341 6342 6343 6344# This chunk adds additional warnings that could catch undesired effects. 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358xorg_testset_save_CFLAGS="$CFLAGS" 6359 6360if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6363printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6364if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6365then : 6366 printf %s "(cached) " >&6 6367else $as_nop 6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6369/* end confdefs.h. */ 6370int i; 6371_ACEOF 6372if ac_fn_c_try_compile "$LINENO" 6373then : 6374 xorg_cv_cc_flag_unknown_warning_option=yes 6375else $as_nop 6376 xorg_cv_cc_flag_unknown_warning_option=no 6377fi 6378rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6379fi 6380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6381printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6382 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6383 CFLAGS="$xorg_testset_save_CFLAGS" 6384fi 6385 6386if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6389 fi 6390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6392printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6393if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6394then : 6395 printf %s "(cached) " >&6 6396else $as_nop 6397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6398/* end confdefs.h. */ 6399int i; 6400_ACEOF 6401if ac_fn_c_try_compile "$LINENO" 6402then : 6403 xorg_cv_cc_flag_unused_command_line_argument=yes 6404else $as_nop 6405 xorg_cv_cc_flag_unused_command_line_argument=no 6406fi 6407rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6408fi 6409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6410printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6411 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6412 CFLAGS="$xorg_testset_save_CFLAGS" 6413fi 6414 6415found="no" 6416 6417 if test $found = "no" ; then 6418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6420 fi 6421 6422 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6424 fi 6425 6426 CFLAGS="$CFLAGS -Wunused" 6427 6428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6429printf %s "checking if $CC supports -Wunused... " >&6; } 6430 cacheid=xorg_cv_cc_flag__Wunused 6431 if eval test \${$cacheid+y} 6432then : 6433 printf %s "(cached) " >&6 6434else $as_nop 6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6436/* end confdefs.h. */ 6437int i; 6438int 6439main (void) 6440{ 6441 6442 ; 6443 return 0; 6444} 6445_ACEOF 6446if ac_fn_c_try_link "$LINENO" 6447then : 6448 eval $cacheid=yes 6449else $as_nop 6450 eval $cacheid=no 6451fi 6452rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6453 conftest$ac_exeext conftest.$ac_ext 6454fi 6455 6456 6457 CFLAGS="$xorg_testset_save_CFLAGS" 6458 6459 eval supported=\$$cacheid 6460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6461printf "%s\n" "$supported" >&6; } 6462 if test "$supported" = "yes" ; then 6463 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6464 found="yes" 6465 fi 6466 fi 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482xorg_testset_save_CFLAGS="$CFLAGS" 6483 6484if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6487printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6488if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6489then : 6490 printf %s "(cached) " >&6 6491else $as_nop 6492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6493/* end confdefs.h. */ 6494int i; 6495_ACEOF 6496if ac_fn_c_try_compile "$LINENO" 6497then : 6498 xorg_cv_cc_flag_unknown_warning_option=yes 6499else $as_nop 6500 xorg_cv_cc_flag_unknown_warning_option=no 6501fi 6502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6503fi 6504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6505printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6507 CFLAGS="$xorg_testset_save_CFLAGS" 6508fi 6509 6510if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6513 fi 6514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6516printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6517if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6518then : 6519 printf %s "(cached) " >&6 6520else $as_nop 6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6522/* end confdefs.h. */ 6523int i; 6524_ACEOF 6525if ac_fn_c_try_compile "$LINENO" 6526then : 6527 xorg_cv_cc_flag_unused_command_line_argument=yes 6528else $as_nop 6529 xorg_cv_cc_flag_unused_command_line_argument=no 6530fi 6531rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6532fi 6533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6534printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6536 CFLAGS="$xorg_testset_save_CFLAGS" 6537fi 6538 6539found="no" 6540 6541 if test $found = "no" ; then 6542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6544 fi 6545 6546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6548 fi 6549 6550 CFLAGS="$CFLAGS -Wuninitialized" 6551 6552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6553printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6554 cacheid=xorg_cv_cc_flag__Wuninitialized 6555 if eval test \${$cacheid+y} 6556then : 6557 printf %s "(cached) " >&6 6558else $as_nop 6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6560/* end confdefs.h. */ 6561int i; 6562int 6563main (void) 6564{ 6565 6566 ; 6567 return 0; 6568} 6569_ACEOF 6570if ac_fn_c_try_link "$LINENO" 6571then : 6572 eval $cacheid=yes 6573else $as_nop 6574 eval $cacheid=no 6575fi 6576rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6577 conftest$ac_exeext conftest.$ac_ext 6578fi 6579 6580 6581 CFLAGS="$xorg_testset_save_CFLAGS" 6582 6583 eval supported=\$$cacheid 6584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6585printf "%s\n" "$supported" >&6; } 6586 if test "$supported" = "yes" ; then 6587 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6588 found="yes" 6589 fi 6590 fi 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606xorg_testset_save_CFLAGS="$CFLAGS" 6607 6608if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6611printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6612if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6613then : 6614 printf %s "(cached) " >&6 6615else $as_nop 6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6617/* end confdefs.h. */ 6618int i; 6619_ACEOF 6620if ac_fn_c_try_compile "$LINENO" 6621then : 6622 xorg_cv_cc_flag_unknown_warning_option=yes 6623else $as_nop 6624 xorg_cv_cc_flag_unknown_warning_option=no 6625fi 6626rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6627fi 6628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6629printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6630 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6631 CFLAGS="$xorg_testset_save_CFLAGS" 6632fi 6633 6634if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6637 fi 6638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6640printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6641if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6642then : 6643 printf %s "(cached) " >&6 6644else $as_nop 6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6646/* end confdefs.h. */ 6647int i; 6648_ACEOF 6649if ac_fn_c_try_compile "$LINENO" 6650then : 6651 xorg_cv_cc_flag_unused_command_line_argument=yes 6652else $as_nop 6653 xorg_cv_cc_flag_unused_command_line_argument=no 6654fi 6655rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6656fi 6657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6658printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6659 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6660 CFLAGS="$xorg_testset_save_CFLAGS" 6661fi 6662 6663found="no" 6664 6665 if test $found = "no" ; then 6666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6668 fi 6669 6670 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6672 fi 6673 6674 CFLAGS="$CFLAGS -Wshadow" 6675 6676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6677printf %s "checking if $CC supports -Wshadow... " >&6; } 6678 cacheid=xorg_cv_cc_flag__Wshadow 6679 if eval test \${$cacheid+y} 6680then : 6681 printf %s "(cached) " >&6 6682else $as_nop 6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6684/* end confdefs.h. */ 6685int i; 6686int 6687main (void) 6688{ 6689 6690 ; 6691 return 0; 6692} 6693_ACEOF 6694if ac_fn_c_try_link "$LINENO" 6695then : 6696 eval $cacheid=yes 6697else $as_nop 6698 eval $cacheid=no 6699fi 6700rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6701 conftest$ac_exeext conftest.$ac_ext 6702fi 6703 6704 6705 CFLAGS="$xorg_testset_save_CFLAGS" 6706 6707 eval supported=\$$cacheid 6708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6709printf "%s\n" "$supported" >&6; } 6710 if test "$supported" = "yes" ; then 6711 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6712 found="yes" 6713 fi 6714 fi 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730xorg_testset_save_CFLAGS="$CFLAGS" 6731 6732if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6735printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6736if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6737then : 6738 printf %s "(cached) " >&6 6739else $as_nop 6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6741/* end confdefs.h. */ 6742int i; 6743_ACEOF 6744if ac_fn_c_try_compile "$LINENO" 6745then : 6746 xorg_cv_cc_flag_unknown_warning_option=yes 6747else $as_nop 6748 xorg_cv_cc_flag_unknown_warning_option=no 6749fi 6750rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6751fi 6752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6753printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6754 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6755 CFLAGS="$xorg_testset_save_CFLAGS" 6756fi 6757 6758if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6761 fi 6762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6764printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6765if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6766then : 6767 printf %s "(cached) " >&6 6768else $as_nop 6769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6770/* end confdefs.h. */ 6771int i; 6772_ACEOF 6773if ac_fn_c_try_compile "$LINENO" 6774then : 6775 xorg_cv_cc_flag_unused_command_line_argument=yes 6776else $as_nop 6777 xorg_cv_cc_flag_unused_command_line_argument=no 6778fi 6779rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6780fi 6781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6782printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6783 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6784 CFLAGS="$xorg_testset_save_CFLAGS" 6785fi 6786 6787found="no" 6788 6789 if test $found = "no" ; then 6790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6792 fi 6793 6794 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6796 fi 6797 6798 CFLAGS="$CFLAGS -Wmissing-noreturn" 6799 6800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6801printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6802 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6803 if eval test \${$cacheid+y} 6804then : 6805 printf %s "(cached) " >&6 6806else $as_nop 6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6808/* end confdefs.h. */ 6809int i; 6810int 6811main (void) 6812{ 6813 6814 ; 6815 return 0; 6816} 6817_ACEOF 6818if ac_fn_c_try_link "$LINENO" 6819then : 6820 eval $cacheid=yes 6821else $as_nop 6822 eval $cacheid=no 6823fi 6824rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6825 conftest$ac_exeext conftest.$ac_ext 6826fi 6827 6828 6829 CFLAGS="$xorg_testset_save_CFLAGS" 6830 6831 eval supported=\$$cacheid 6832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6833printf "%s\n" "$supported" >&6; } 6834 if test "$supported" = "yes" ; then 6835 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6836 found="yes" 6837 fi 6838 fi 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854xorg_testset_save_CFLAGS="$CFLAGS" 6855 6856if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6859printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6860if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6861then : 6862 printf %s "(cached) " >&6 6863else $as_nop 6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6865/* end confdefs.h. */ 6866int i; 6867_ACEOF 6868if ac_fn_c_try_compile "$LINENO" 6869then : 6870 xorg_cv_cc_flag_unknown_warning_option=yes 6871else $as_nop 6872 xorg_cv_cc_flag_unknown_warning_option=no 6873fi 6874rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6875fi 6876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6877printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6878 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6879 CFLAGS="$xorg_testset_save_CFLAGS" 6880fi 6881 6882if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6885 fi 6886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6888printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6889if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6890then : 6891 printf %s "(cached) " >&6 6892else $as_nop 6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6894/* end confdefs.h. */ 6895int i; 6896_ACEOF 6897if ac_fn_c_try_compile "$LINENO" 6898then : 6899 xorg_cv_cc_flag_unused_command_line_argument=yes 6900else $as_nop 6901 xorg_cv_cc_flag_unused_command_line_argument=no 6902fi 6903rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6904fi 6905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6906printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6907 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6908 CFLAGS="$xorg_testset_save_CFLAGS" 6909fi 6910 6911found="no" 6912 6913 if test $found = "no" ; then 6914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6916 fi 6917 6918 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6920 fi 6921 6922 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6923 6924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6925printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6926 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6927 if eval test \${$cacheid+y} 6928then : 6929 printf %s "(cached) " >&6 6930else $as_nop 6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6932/* end confdefs.h. */ 6933int i; 6934int 6935main (void) 6936{ 6937 6938 ; 6939 return 0; 6940} 6941_ACEOF 6942if ac_fn_c_try_link "$LINENO" 6943then : 6944 eval $cacheid=yes 6945else $as_nop 6946 eval $cacheid=no 6947fi 6948rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6949 conftest$ac_exeext conftest.$ac_ext 6950fi 6951 6952 6953 CFLAGS="$xorg_testset_save_CFLAGS" 6954 6955 eval supported=\$$cacheid 6956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6957printf "%s\n" "$supported" >&6; } 6958 if test "$supported" = "yes" ; then 6959 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6960 found="yes" 6961 fi 6962 fi 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978xorg_testset_save_CFLAGS="$CFLAGS" 6979 6980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6983printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6984if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6985then : 6986 printf %s "(cached) " >&6 6987else $as_nop 6988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6989/* end confdefs.h. */ 6990int i; 6991_ACEOF 6992if ac_fn_c_try_compile "$LINENO" 6993then : 6994 xorg_cv_cc_flag_unknown_warning_option=yes 6995else $as_nop 6996 xorg_cv_cc_flag_unknown_warning_option=no 6997fi 6998rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6999fi 7000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7001printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7002 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7003 CFLAGS="$xorg_testset_save_CFLAGS" 7004fi 7005 7006if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7009 fi 7010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7012printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7013if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7014then : 7015 printf %s "(cached) " >&6 7016else $as_nop 7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7018/* end confdefs.h. */ 7019int i; 7020_ACEOF 7021if ac_fn_c_try_compile "$LINENO" 7022then : 7023 xorg_cv_cc_flag_unused_command_line_argument=yes 7024else $as_nop 7025 xorg_cv_cc_flag_unused_command_line_argument=no 7026fi 7027rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7028fi 7029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7030printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7031 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7032 CFLAGS="$xorg_testset_save_CFLAGS" 7033fi 7034 7035found="no" 7036 7037 if test $found = "no" ; then 7038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7040 fi 7041 7042 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7044 fi 7045 7046 CFLAGS="$CFLAGS -Wredundant-decls" 7047 7048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7049printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7050 cacheid=xorg_cv_cc_flag__Wredundant_decls 7051 if eval test \${$cacheid+y} 7052then : 7053 printf %s "(cached) " >&6 7054else $as_nop 7055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7056/* end confdefs.h. */ 7057int i; 7058int 7059main (void) 7060{ 7061 7062 ; 7063 return 0; 7064} 7065_ACEOF 7066if ac_fn_c_try_link "$LINENO" 7067then : 7068 eval $cacheid=yes 7069else $as_nop 7070 eval $cacheid=no 7071fi 7072rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7073 conftest$ac_exeext conftest.$ac_ext 7074fi 7075 7076 7077 CFLAGS="$xorg_testset_save_CFLAGS" 7078 7079 eval supported=\$$cacheid 7080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7081printf "%s\n" "$supported" >&6; } 7082 if test "$supported" = "yes" ; then 7083 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7084 found="yes" 7085 fi 7086 fi 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102xorg_testset_save_CFLAGS="$CFLAGS" 7103 7104if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7107printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7108if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7109then : 7110 printf %s "(cached) " >&6 7111else $as_nop 7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7113/* end confdefs.h. */ 7114int i; 7115_ACEOF 7116if ac_fn_c_try_compile "$LINENO" 7117then : 7118 xorg_cv_cc_flag_unknown_warning_option=yes 7119else $as_nop 7120 xorg_cv_cc_flag_unknown_warning_option=no 7121fi 7122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7123fi 7124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7125printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7126 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7127 CFLAGS="$xorg_testset_save_CFLAGS" 7128fi 7129 7130if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7133 fi 7134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7136printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7137if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7138then : 7139 printf %s "(cached) " >&6 7140else $as_nop 7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7142/* end confdefs.h. */ 7143int i; 7144_ACEOF 7145if ac_fn_c_try_compile "$LINENO" 7146then : 7147 xorg_cv_cc_flag_unused_command_line_argument=yes 7148else $as_nop 7149 xorg_cv_cc_flag_unused_command_line_argument=no 7150fi 7151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7152fi 7153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7154printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7156 CFLAGS="$xorg_testset_save_CFLAGS" 7157fi 7158 7159found="no" 7160 7161 if test $found = "no" ; then 7162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7164 fi 7165 7166 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7168 fi 7169 7170 CFLAGS="$CFLAGS -Wlogical-op" 7171 7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7173printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7174 cacheid=xorg_cv_cc_flag__Wlogical_op 7175 if eval test \${$cacheid+y} 7176then : 7177 printf %s "(cached) " >&6 7178else $as_nop 7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7180/* end confdefs.h. */ 7181int i; 7182int 7183main (void) 7184{ 7185 7186 ; 7187 return 0; 7188} 7189_ACEOF 7190if ac_fn_c_try_link "$LINENO" 7191then : 7192 eval $cacheid=yes 7193else $as_nop 7194 eval $cacheid=no 7195fi 7196rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7197 conftest$ac_exeext conftest.$ac_ext 7198fi 7199 7200 7201 CFLAGS="$xorg_testset_save_CFLAGS" 7202 7203 eval supported=\$$cacheid 7204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7205printf "%s\n" "$supported" >&6; } 7206 if test "$supported" = "yes" ; then 7207 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7208 found="yes" 7209 fi 7210 fi 7211 7212 7213 7214# These are currently disabled because they are noisy. They will be enabled 7215# in the future once the codebase is sufficiently modernized to silence 7216# them. For now, I don't want them to drown out the other warnings. 7217# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7218# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7219# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7220 7221# Turn some warnings into errors, so we don't accidently get successful builds 7222# when there are problems that should be fixed. 7223 7224if test "x$SELECTIVE_WERROR" = "xyes" ; then 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238xorg_testset_save_CFLAGS="$CFLAGS" 7239 7240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7243printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7244if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7245then : 7246 printf %s "(cached) " >&6 7247else $as_nop 7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7249/* end confdefs.h. */ 7250int i; 7251_ACEOF 7252if ac_fn_c_try_compile "$LINENO" 7253then : 7254 xorg_cv_cc_flag_unknown_warning_option=yes 7255else $as_nop 7256 xorg_cv_cc_flag_unknown_warning_option=no 7257fi 7258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7259fi 7260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7261printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7263 CFLAGS="$xorg_testset_save_CFLAGS" 7264fi 7265 7266if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7269 fi 7270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7272printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7273if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7274then : 7275 printf %s "(cached) " >&6 7276else $as_nop 7277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7278/* end confdefs.h. */ 7279int i; 7280_ACEOF 7281if ac_fn_c_try_compile "$LINENO" 7282then : 7283 xorg_cv_cc_flag_unused_command_line_argument=yes 7284else $as_nop 7285 xorg_cv_cc_flag_unused_command_line_argument=no 7286fi 7287rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7288fi 7289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7290printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7292 CFLAGS="$xorg_testset_save_CFLAGS" 7293fi 7294 7295found="no" 7296 7297 if test $found = "no" ; then 7298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7300 fi 7301 7302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7304 fi 7305 7306 CFLAGS="$CFLAGS -Werror=implicit" 7307 7308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7309printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7310 cacheid=xorg_cv_cc_flag__Werror_implicit 7311 if eval test \${$cacheid+y} 7312then : 7313 printf %s "(cached) " >&6 7314else $as_nop 7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7316/* end confdefs.h. */ 7317int i; 7318int 7319main (void) 7320{ 7321 7322 ; 7323 return 0; 7324} 7325_ACEOF 7326if ac_fn_c_try_link "$LINENO" 7327then : 7328 eval $cacheid=yes 7329else $as_nop 7330 eval $cacheid=no 7331fi 7332rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7333 conftest$ac_exeext conftest.$ac_ext 7334fi 7335 7336 7337 CFLAGS="$xorg_testset_save_CFLAGS" 7338 7339 eval supported=\$$cacheid 7340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7341printf "%s\n" "$supported" >&6; } 7342 if test "$supported" = "yes" ; then 7343 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7344 found="yes" 7345 fi 7346 fi 7347 7348 if test $found = "no" ; then 7349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7351 fi 7352 7353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7355 fi 7356 7357 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7358 7359 { 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 7360printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7361 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7362 if eval test \${$cacheid+y} 7363then : 7364 printf %s "(cached) " >&6 7365else $as_nop 7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7367/* end confdefs.h. */ 7368int i; 7369int 7370main (void) 7371{ 7372 7373 ; 7374 return 0; 7375} 7376_ACEOF 7377if ac_fn_c_try_link "$LINENO" 7378then : 7379 eval $cacheid=yes 7380else $as_nop 7381 eval $cacheid=no 7382fi 7383rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7384 conftest$ac_exeext conftest.$ac_ext 7385fi 7386 7387 7388 CFLAGS="$xorg_testset_save_CFLAGS" 7389 7390 eval supported=\$$cacheid 7391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7392printf "%s\n" "$supported" >&6; } 7393 if test "$supported" = "yes" ; then 7394 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7395 found="yes" 7396 fi 7397 fi 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413xorg_testset_save_CFLAGS="$CFLAGS" 7414 7415if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7418printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7419if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7420then : 7421 printf %s "(cached) " >&6 7422else $as_nop 7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7424/* end confdefs.h. */ 7425int i; 7426_ACEOF 7427if ac_fn_c_try_compile "$LINENO" 7428then : 7429 xorg_cv_cc_flag_unknown_warning_option=yes 7430else $as_nop 7431 xorg_cv_cc_flag_unknown_warning_option=no 7432fi 7433rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7434fi 7435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7436printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7437 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7438 CFLAGS="$xorg_testset_save_CFLAGS" 7439fi 7440 7441if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7444 fi 7445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7447printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7448if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7449then : 7450 printf %s "(cached) " >&6 7451else $as_nop 7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7453/* end confdefs.h. */ 7454int i; 7455_ACEOF 7456if ac_fn_c_try_compile "$LINENO" 7457then : 7458 xorg_cv_cc_flag_unused_command_line_argument=yes 7459else $as_nop 7460 xorg_cv_cc_flag_unused_command_line_argument=no 7461fi 7462rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7463fi 7464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7465printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7467 CFLAGS="$xorg_testset_save_CFLAGS" 7468fi 7469 7470found="no" 7471 7472 if test $found = "no" ; then 7473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7475 fi 7476 7477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7479 fi 7480 7481 CFLAGS="$CFLAGS -Werror=nonnull" 7482 7483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7484printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7485 cacheid=xorg_cv_cc_flag__Werror_nonnull 7486 if eval test \${$cacheid+y} 7487then : 7488 printf %s "(cached) " >&6 7489else $as_nop 7490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7491/* end confdefs.h. */ 7492int i; 7493int 7494main (void) 7495{ 7496 7497 ; 7498 return 0; 7499} 7500_ACEOF 7501if ac_fn_c_try_link "$LINENO" 7502then : 7503 eval $cacheid=yes 7504else $as_nop 7505 eval $cacheid=no 7506fi 7507rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7508 conftest$ac_exeext conftest.$ac_ext 7509fi 7510 7511 7512 CFLAGS="$xorg_testset_save_CFLAGS" 7513 7514 eval supported=\$$cacheid 7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7516printf "%s\n" "$supported" >&6; } 7517 if test "$supported" = "yes" ; then 7518 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7519 found="yes" 7520 fi 7521 fi 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537xorg_testset_save_CFLAGS="$CFLAGS" 7538 7539if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7542printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7543if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7544then : 7545 printf %s "(cached) " >&6 7546else $as_nop 7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7548/* end confdefs.h. */ 7549int i; 7550_ACEOF 7551if ac_fn_c_try_compile "$LINENO" 7552then : 7553 xorg_cv_cc_flag_unknown_warning_option=yes 7554else $as_nop 7555 xorg_cv_cc_flag_unknown_warning_option=no 7556fi 7557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7558fi 7559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7560printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7561 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7562 CFLAGS="$xorg_testset_save_CFLAGS" 7563fi 7564 7565if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7568 fi 7569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7571printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7572if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7573then : 7574 printf %s "(cached) " >&6 7575else $as_nop 7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7577/* end confdefs.h. */ 7578int i; 7579_ACEOF 7580if ac_fn_c_try_compile "$LINENO" 7581then : 7582 xorg_cv_cc_flag_unused_command_line_argument=yes 7583else $as_nop 7584 xorg_cv_cc_flag_unused_command_line_argument=no 7585fi 7586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7587fi 7588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7589printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7591 CFLAGS="$xorg_testset_save_CFLAGS" 7592fi 7593 7594found="no" 7595 7596 if test $found = "no" ; then 7597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7599 fi 7600 7601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7603 fi 7604 7605 CFLAGS="$CFLAGS -Werror=init-self" 7606 7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7608printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7609 cacheid=xorg_cv_cc_flag__Werror_init_self 7610 if eval test \${$cacheid+y} 7611then : 7612 printf %s "(cached) " >&6 7613else $as_nop 7614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7615/* end confdefs.h. */ 7616int i; 7617int 7618main (void) 7619{ 7620 7621 ; 7622 return 0; 7623} 7624_ACEOF 7625if ac_fn_c_try_link "$LINENO" 7626then : 7627 eval $cacheid=yes 7628else $as_nop 7629 eval $cacheid=no 7630fi 7631rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7632 conftest$ac_exeext conftest.$ac_ext 7633fi 7634 7635 7636 CFLAGS="$xorg_testset_save_CFLAGS" 7637 7638 eval supported=\$$cacheid 7639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7640printf "%s\n" "$supported" >&6; } 7641 if test "$supported" = "yes" ; then 7642 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7643 found="yes" 7644 fi 7645 fi 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661xorg_testset_save_CFLAGS="$CFLAGS" 7662 7663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7666printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7667if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7668then : 7669 printf %s "(cached) " >&6 7670else $as_nop 7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7672/* end confdefs.h. */ 7673int i; 7674_ACEOF 7675if ac_fn_c_try_compile "$LINENO" 7676then : 7677 xorg_cv_cc_flag_unknown_warning_option=yes 7678else $as_nop 7679 xorg_cv_cc_flag_unknown_warning_option=no 7680fi 7681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7682fi 7683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7684printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7685 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7686 CFLAGS="$xorg_testset_save_CFLAGS" 7687fi 7688 7689if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7692 fi 7693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7695printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7696if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7697then : 7698 printf %s "(cached) " >&6 7699else $as_nop 7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7701/* end confdefs.h. */ 7702int i; 7703_ACEOF 7704if ac_fn_c_try_compile "$LINENO" 7705then : 7706 xorg_cv_cc_flag_unused_command_line_argument=yes 7707else $as_nop 7708 xorg_cv_cc_flag_unused_command_line_argument=no 7709fi 7710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7711fi 7712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7713printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7714 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7715 CFLAGS="$xorg_testset_save_CFLAGS" 7716fi 7717 7718found="no" 7719 7720 if test $found = "no" ; then 7721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7723 fi 7724 7725 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7727 fi 7728 7729 CFLAGS="$CFLAGS -Werror=main" 7730 7731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7732printf %s "checking if $CC supports -Werror=main... " >&6; } 7733 cacheid=xorg_cv_cc_flag__Werror_main 7734 if eval test \${$cacheid+y} 7735then : 7736 printf %s "(cached) " >&6 7737else $as_nop 7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7739/* end confdefs.h. */ 7740int i; 7741int 7742main (void) 7743{ 7744 7745 ; 7746 return 0; 7747} 7748_ACEOF 7749if ac_fn_c_try_link "$LINENO" 7750then : 7751 eval $cacheid=yes 7752else $as_nop 7753 eval $cacheid=no 7754fi 7755rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7756 conftest$ac_exeext conftest.$ac_ext 7757fi 7758 7759 7760 CFLAGS="$xorg_testset_save_CFLAGS" 7761 7762 eval supported=\$$cacheid 7763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7764printf "%s\n" "$supported" >&6; } 7765 if test "$supported" = "yes" ; then 7766 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7767 found="yes" 7768 fi 7769 fi 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785xorg_testset_save_CFLAGS="$CFLAGS" 7786 7787if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7790printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7791if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7792then : 7793 printf %s "(cached) " >&6 7794else $as_nop 7795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7796/* end confdefs.h. */ 7797int i; 7798_ACEOF 7799if ac_fn_c_try_compile "$LINENO" 7800then : 7801 xorg_cv_cc_flag_unknown_warning_option=yes 7802else $as_nop 7803 xorg_cv_cc_flag_unknown_warning_option=no 7804fi 7805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7806fi 7807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7808printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7810 CFLAGS="$xorg_testset_save_CFLAGS" 7811fi 7812 7813if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7816 fi 7817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7819printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7820if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7821then : 7822 printf %s "(cached) " >&6 7823else $as_nop 7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7825/* end confdefs.h. */ 7826int i; 7827_ACEOF 7828if ac_fn_c_try_compile "$LINENO" 7829then : 7830 xorg_cv_cc_flag_unused_command_line_argument=yes 7831else $as_nop 7832 xorg_cv_cc_flag_unused_command_line_argument=no 7833fi 7834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7835fi 7836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7837printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7838 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7839 CFLAGS="$xorg_testset_save_CFLAGS" 7840fi 7841 7842found="no" 7843 7844 if test $found = "no" ; then 7845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7847 fi 7848 7849 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7851 fi 7852 7853 CFLAGS="$CFLAGS -Werror=missing-braces" 7854 7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7856printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7857 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7858 if eval test \${$cacheid+y} 7859then : 7860 printf %s "(cached) " >&6 7861else $as_nop 7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7863/* end confdefs.h. */ 7864int i; 7865int 7866main (void) 7867{ 7868 7869 ; 7870 return 0; 7871} 7872_ACEOF 7873if ac_fn_c_try_link "$LINENO" 7874then : 7875 eval $cacheid=yes 7876else $as_nop 7877 eval $cacheid=no 7878fi 7879rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7880 conftest$ac_exeext conftest.$ac_ext 7881fi 7882 7883 7884 CFLAGS="$xorg_testset_save_CFLAGS" 7885 7886 eval supported=\$$cacheid 7887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7888printf "%s\n" "$supported" >&6; } 7889 if test "$supported" = "yes" ; then 7890 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7891 found="yes" 7892 fi 7893 fi 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909xorg_testset_save_CFLAGS="$CFLAGS" 7910 7911if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7914printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7915if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7916then : 7917 printf %s "(cached) " >&6 7918else $as_nop 7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7920/* end confdefs.h. */ 7921int i; 7922_ACEOF 7923if ac_fn_c_try_compile "$LINENO" 7924then : 7925 xorg_cv_cc_flag_unknown_warning_option=yes 7926else $as_nop 7927 xorg_cv_cc_flag_unknown_warning_option=no 7928fi 7929rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7930fi 7931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7932printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7933 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7934 CFLAGS="$xorg_testset_save_CFLAGS" 7935fi 7936 7937if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7940 fi 7941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7943printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7944if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7945then : 7946 printf %s "(cached) " >&6 7947else $as_nop 7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7949/* end confdefs.h. */ 7950int i; 7951_ACEOF 7952if ac_fn_c_try_compile "$LINENO" 7953then : 7954 xorg_cv_cc_flag_unused_command_line_argument=yes 7955else $as_nop 7956 xorg_cv_cc_flag_unused_command_line_argument=no 7957fi 7958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7959fi 7960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7961printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7962 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7963 CFLAGS="$xorg_testset_save_CFLAGS" 7964fi 7965 7966found="no" 7967 7968 if test $found = "no" ; then 7969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7971 fi 7972 7973 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7975 fi 7976 7977 CFLAGS="$CFLAGS -Werror=sequence-point" 7978 7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7980printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7981 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7982 if eval test \${$cacheid+y} 7983then : 7984 printf %s "(cached) " >&6 7985else $as_nop 7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7987/* end confdefs.h. */ 7988int i; 7989int 7990main (void) 7991{ 7992 7993 ; 7994 return 0; 7995} 7996_ACEOF 7997if ac_fn_c_try_link "$LINENO" 7998then : 7999 eval $cacheid=yes 8000else $as_nop 8001 eval $cacheid=no 8002fi 8003rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8004 conftest$ac_exeext conftest.$ac_ext 8005fi 8006 8007 8008 CFLAGS="$xorg_testset_save_CFLAGS" 8009 8010 eval supported=\$$cacheid 8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8012printf "%s\n" "$supported" >&6; } 8013 if test "$supported" = "yes" ; then 8014 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8015 found="yes" 8016 fi 8017 fi 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033xorg_testset_save_CFLAGS="$CFLAGS" 8034 8035if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8038printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8039if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8040then : 8041 printf %s "(cached) " >&6 8042else $as_nop 8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8044/* end confdefs.h. */ 8045int i; 8046_ACEOF 8047if ac_fn_c_try_compile "$LINENO" 8048then : 8049 xorg_cv_cc_flag_unknown_warning_option=yes 8050else $as_nop 8051 xorg_cv_cc_flag_unknown_warning_option=no 8052fi 8053rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8054fi 8055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8056printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8058 CFLAGS="$xorg_testset_save_CFLAGS" 8059fi 8060 8061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8064 fi 8065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8067printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8068if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8069then : 8070 printf %s "(cached) " >&6 8071else $as_nop 8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8073/* end confdefs.h. */ 8074int i; 8075_ACEOF 8076if ac_fn_c_try_compile "$LINENO" 8077then : 8078 xorg_cv_cc_flag_unused_command_line_argument=yes 8079else $as_nop 8080 xorg_cv_cc_flag_unused_command_line_argument=no 8081fi 8082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8083fi 8084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8085printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8086 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8087 CFLAGS="$xorg_testset_save_CFLAGS" 8088fi 8089 8090found="no" 8091 8092 if test $found = "no" ; then 8093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8095 fi 8096 8097 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8099 fi 8100 8101 CFLAGS="$CFLAGS -Werror=return-type" 8102 8103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8104printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8105 cacheid=xorg_cv_cc_flag__Werror_return_type 8106 if eval test \${$cacheid+y} 8107then : 8108 printf %s "(cached) " >&6 8109else $as_nop 8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8111/* end confdefs.h. */ 8112int i; 8113int 8114main (void) 8115{ 8116 8117 ; 8118 return 0; 8119} 8120_ACEOF 8121if ac_fn_c_try_link "$LINENO" 8122then : 8123 eval $cacheid=yes 8124else $as_nop 8125 eval $cacheid=no 8126fi 8127rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8128 conftest$ac_exeext conftest.$ac_ext 8129fi 8130 8131 8132 CFLAGS="$xorg_testset_save_CFLAGS" 8133 8134 eval supported=\$$cacheid 8135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8136printf "%s\n" "$supported" >&6; } 8137 if test "$supported" = "yes" ; then 8138 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8139 found="yes" 8140 fi 8141 fi 8142 8143 if test $found = "no" ; then 8144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8146 fi 8147 8148 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8150 fi 8151 8152 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8153 8154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8155printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8156 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8157 if eval test \${$cacheid+y} 8158then : 8159 printf %s "(cached) " >&6 8160else $as_nop 8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8162/* end confdefs.h. */ 8163int i; 8164int 8165main (void) 8166{ 8167 8168 ; 8169 return 0; 8170} 8171_ACEOF 8172if ac_fn_c_try_link "$LINENO" 8173then : 8174 eval $cacheid=yes 8175else $as_nop 8176 eval $cacheid=no 8177fi 8178rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8179 conftest$ac_exeext conftest.$ac_ext 8180fi 8181 8182 8183 CFLAGS="$xorg_testset_save_CFLAGS" 8184 8185 eval supported=\$$cacheid 8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8187printf "%s\n" "$supported" >&6; } 8188 if test "$supported" = "yes" ; then 8189 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8190 found="yes" 8191 fi 8192 fi 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208xorg_testset_save_CFLAGS="$CFLAGS" 8209 8210if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8213printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8214if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8215then : 8216 printf %s "(cached) " >&6 8217else $as_nop 8218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8219/* end confdefs.h. */ 8220int i; 8221_ACEOF 8222if ac_fn_c_try_compile "$LINENO" 8223then : 8224 xorg_cv_cc_flag_unknown_warning_option=yes 8225else $as_nop 8226 xorg_cv_cc_flag_unknown_warning_option=no 8227fi 8228rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8229fi 8230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8231printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8232 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8233 CFLAGS="$xorg_testset_save_CFLAGS" 8234fi 8235 8236if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8239 fi 8240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8242printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8243if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8244then : 8245 printf %s "(cached) " >&6 8246else $as_nop 8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8248/* end confdefs.h. */ 8249int i; 8250_ACEOF 8251if ac_fn_c_try_compile "$LINENO" 8252then : 8253 xorg_cv_cc_flag_unused_command_line_argument=yes 8254else $as_nop 8255 xorg_cv_cc_flag_unused_command_line_argument=no 8256fi 8257rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8258fi 8259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8260printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8261 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8262 CFLAGS="$xorg_testset_save_CFLAGS" 8263fi 8264 8265found="no" 8266 8267 if test $found = "no" ; then 8268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8270 fi 8271 8272 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8274 fi 8275 8276 CFLAGS="$CFLAGS -Werror=trigraphs" 8277 8278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8279printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8280 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8281 if eval test \${$cacheid+y} 8282then : 8283 printf %s "(cached) " >&6 8284else $as_nop 8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8286/* end confdefs.h. */ 8287int i; 8288int 8289main (void) 8290{ 8291 8292 ; 8293 return 0; 8294} 8295_ACEOF 8296if ac_fn_c_try_link "$LINENO" 8297then : 8298 eval $cacheid=yes 8299else $as_nop 8300 eval $cacheid=no 8301fi 8302rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8303 conftest$ac_exeext conftest.$ac_ext 8304fi 8305 8306 8307 CFLAGS="$xorg_testset_save_CFLAGS" 8308 8309 eval supported=\$$cacheid 8310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8311printf "%s\n" "$supported" >&6; } 8312 if test "$supported" = "yes" ; then 8313 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8314 found="yes" 8315 fi 8316 fi 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332xorg_testset_save_CFLAGS="$CFLAGS" 8333 8334if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8337printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8338if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8339then : 8340 printf %s "(cached) " >&6 8341else $as_nop 8342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8343/* end confdefs.h. */ 8344int i; 8345_ACEOF 8346if ac_fn_c_try_compile "$LINENO" 8347then : 8348 xorg_cv_cc_flag_unknown_warning_option=yes 8349else $as_nop 8350 xorg_cv_cc_flag_unknown_warning_option=no 8351fi 8352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8353fi 8354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8355printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8356 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8357 CFLAGS="$xorg_testset_save_CFLAGS" 8358fi 8359 8360if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8363 fi 8364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8366printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8367if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8368then : 8369 printf %s "(cached) " >&6 8370else $as_nop 8371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8372/* end confdefs.h. */ 8373int i; 8374_ACEOF 8375if ac_fn_c_try_compile "$LINENO" 8376then : 8377 xorg_cv_cc_flag_unused_command_line_argument=yes 8378else $as_nop 8379 xorg_cv_cc_flag_unused_command_line_argument=no 8380fi 8381rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8382fi 8383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8384printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8386 CFLAGS="$xorg_testset_save_CFLAGS" 8387fi 8388 8389found="no" 8390 8391 if test $found = "no" ; then 8392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8394 fi 8395 8396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8398 fi 8399 8400 CFLAGS="$CFLAGS -Werror=array-bounds" 8401 8402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8403printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8404 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8405 if eval test \${$cacheid+y} 8406then : 8407 printf %s "(cached) " >&6 8408else $as_nop 8409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8410/* end confdefs.h. */ 8411int i; 8412int 8413main (void) 8414{ 8415 8416 ; 8417 return 0; 8418} 8419_ACEOF 8420if ac_fn_c_try_link "$LINENO" 8421then : 8422 eval $cacheid=yes 8423else $as_nop 8424 eval $cacheid=no 8425fi 8426rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8427 conftest$ac_exeext conftest.$ac_ext 8428fi 8429 8430 8431 CFLAGS="$xorg_testset_save_CFLAGS" 8432 8433 eval supported=\$$cacheid 8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8435printf "%s\n" "$supported" >&6; } 8436 if test "$supported" = "yes" ; then 8437 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8438 found="yes" 8439 fi 8440 fi 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456xorg_testset_save_CFLAGS="$CFLAGS" 8457 8458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8461printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8462if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8463then : 8464 printf %s "(cached) " >&6 8465else $as_nop 8466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8467/* end confdefs.h. */ 8468int i; 8469_ACEOF 8470if ac_fn_c_try_compile "$LINENO" 8471then : 8472 xorg_cv_cc_flag_unknown_warning_option=yes 8473else $as_nop 8474 xorg_cv_cc_flag_unknown_warning_option=no 8475fi 8476rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8477fi 8478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8479printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8481 CFLAGS="$xorg_testset_save_CFLAGS" 8482fi 8483 8484if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8487 fi 8488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8490printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8491if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8492then : 8493 printf %s "(cached) " >&6 8494else $as_nop 8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8496/* end confdefs.h. */ 8497int i; 8498_ACEOF 8499if ac_fn_c_try_compile "$LINENO" 8500then : 8501 xorg_cv_cc_flag_unused_command_line_argument=yes 8502else $as_nop 8503 xorg_cv_cc_flag_unused_command_line_argument=no 8504fi 8505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8506fi 8507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8508printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8510 CFLAGS="$xorg_testset_save_CFLAGS" 8511fi 8512 8513found="no" 8514 8515 if test $found = "no" ; then 8516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8518 fi 8519 8520 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8522 fi 8523 8524 CFLAGS="$CFLAGS -Werror=write-strings" 8525 8526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8527printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8528 cacheid=xorg_cv_cc_flag__Werror_write_strings 8529 if eval test \${$cacheid+y} 8530then : 8531 printf %s "(cached) " >&6 8532else $as_nop 8533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8534/* end confdefs.h. */ 8535int i; 8536int 8537main (void) 8538{ 8539 8540 ; 8541 return 0; 8542} 8543_ACEOF 8544if ac_fn_c_try_link "$LINENO" 8545then : 8546 eval $cacheid=yes 8547else $as_nop 8548 eval $cacheid=no 8549fi 8550rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8551 conftest$ac_exeext conftest.$ac_ext 8552fi 8553 8554 8555 CFLAGS="$xorg_testset_save_CFLAGS" 8556 8557 eval supported=\$$cacheid 8558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8559printf "%s\n" "$supported" >&6; } 8560 if test "$supported" = "yes" ; then 8561 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8562 found="yes" 8563 fi 8564 fi 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580xorg_testset_save_CFLAGS="$CFLAGS" 8581 8582if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8585printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8586if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8587then : 8588 printf %s "(cached) " >&6 8589else $as_nop 8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8591/* end confdefs.h. */ 8592int i; 8593_ACEOF 8594if ac_fn_c_try_compile "$LINENO" 8595then : 8596 xorg_cv_cc_flag_unknown_warning_option=yes 8597else $as_nop 8598 xorg_cv_cc_flag_unknown_warning_option=no 8599fi 8600rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8601fi 8602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8603printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8604 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8605 CFLAGS="$xorg_testset_save_CFLAGS" 8606fi 8607 8608if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8611 fi 8612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8614printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8615if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8616then : 8617 printf %s "(cached) " >&6 8618else $as_nop 8619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8620/* end confdefs.h. */ 8621int i; 8622_ACEOF 8623if ac_fn_c_try_compile "$LINENO" 8624then : 8625 xorg_cv_cc_flag_unused_command_line_argument=yes 8626else $as_nop 8627 xorg_cv_cc_flag_unused_command_line_argument=no 8628fi 8629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8630fi 8631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8632printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8633 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8634 CFLAGS="$xorg_testset_save_CFLAGS" 8635fi 8636 8637found="no" 8638 8639 if test $found = "no" ; then 8640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8642 fi 8643 8644 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8646 fi 8647 8648 CFLAGS="$CFLAGS -Werror=address" 8649 8650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8651printf %s "checking if $CC supports -Werror=address... " >&6; } 8652 cacheid=xorg_cv_cc_flag__Werror_address 8653 if eval test \${$cacheid+y} 8654then : 8655 printf %s "(cached) " >&6 8656else $as_nop 8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8658/* end confdefs.h. */ 8659int i; 8660int 8661main (void) 8662{ 8663 8664 ; 8665 return 0; 8666} 8667_ACEOF 8668if ac_fn_c_try_link "$LINENO" 8669then : 8670 eval $cacheid=yes 8671else $as_nop 8672 eval $cacheid=no 8673fi 8674rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8675 conftest$ac_exeext conftest.$ac_ext 8676fi 8677 8678 8679 CFLAGS="$xorg_testset_save_CFLAGS" 8680 8681 eval supported=\$$cacheid 8682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8683printf "%s\n" "$supported" >&6; } 8684 if test "$supported" = "yes" ; then 8685 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8686 found="yes" 8687 fi 8688 fi 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704xorg_testset_save_CFLAGS="$CFLAGS" 8705 8706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8709printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8710if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8711then : 8712 printf %s "(cached) " >&6 8713else $as_nop 8714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8715/* end confdefs.h. */ 8716int i; 8717_ACEOF 8718if ac_fn_c_try_compile "$LINENO" 8719then : 8720 xorg_cv_cc_flag_unknown_warning_option=yes 8721else $as_nop 8722 xorg_cv_cc_flag_unknown_warning_option=no 8723fi 8724rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8725fi 8726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8727printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8728 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8729 CFLAGS="$xorg_testset_save_CFLAGS" 8730fi 8731 8732if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8735 fi 8736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8738printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8739if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8740then : 8741 printf %s "(cached) " >&6 8742else $as_nop 8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8744/* end confdefs.h. */ 8745int i; 8746_ACEOF 8747if ac_fn_c_try_compile "$LINENO" 8748then : 8749 xorg_cv_cc_flag_unused_command_line_argument=yes 8750else $as_nop 8751 xorg_cv_cc_flag_unused_command_line_argument=no 8752fi 8753rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8754fi 8755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8756printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8757 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8758 CFLAGS="$xorg_testset_save_CFLAGS" 8759fi 8760 8761found="no" 8762 8763 if test $found = "no" ; then 8764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8766 fi 8767 8768 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8770 fi 8771 8772 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8773 8774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8775printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8776 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8777 if eval test \${$cacheid+y} 8778then : 8779 printf %s "(cached) " >&6 8780else $as_nop 8781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8782/* end confdefs.h. */ 8783int i; 8784int 8785main (void) 8786{ 8787 8788 ; 8789 return 0; 8790} 8791_ACEOF 8792if ac_fn_c_try_link "$LINENO" 8793then : 8794 eval $cacheid=yes 8795else $as_nop 8796 eval $cacheid=no 8797fi 8798rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8799 conftest$ac_exeext conftest.$ac_ext 8800fi 8801 8802 8803 CFLAGS="$xorg_testset_save_CFLAGS" 8804 8805 eval supported=\$$cacheid 8806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8807printf "%s\n" "$supported" >&6; } 8808 if test "$supported" = "yes" ; then 8809 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8810 found="yes" 8811 fi 8812 fi 8813 8814 if test $found = "no" ; then 8815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8817 fi 8818 8819 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8821 fi 8822 8823 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8824 8825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8826printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8827 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8828 if eval test \${$cacheid+y} 8829then : 8830 printf %s "(cached) " >&6 8831else $as_nop 8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8833/* end confdefs.h. */ 8834int i; 8835int 8836main (void) 8837{ 8838 8839 ; 8840 return 0; 8841} 8842_ACEOF 8843if ac_fn_c_try_link "$LINENO" 8844then : 8845 eval $cacheid=yes 8846else $as_nop 8847 eval $cacheid=no 8848fi 8849rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8850 conftest$ac_exeext conftest.$ac_ext 8851fi 8852 8853 8854 CFLAGS="$xorg_testset_save_CFLAGS" 8855 8856 eval supported=\$$cacheid 8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8858printf "%s\n" "$supported" >&6; } 8859 if test "$supported" = "yes" ; then 8860 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8861 found="yes" 8862 fi 8863 fi 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879xorg_testset_save_CFLAGS="$CFLAGS" 8880 8881if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8884printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8885if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8886then : 8887 printf %s "(cached) " >&6 8888else $as_nop 8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8890/* end confdefs.h. */ 8891int i; 8892_ACEOF 8893if ac_fn_c_try_compile "$LINENO" 8894then : 8895 xorg_cv_cc_flag_unknown_warning_option=yes 8896else $as_nop 8897 xorg_cv_cc_flag_unknown_warning_option=no 8898fi 8899rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8900fi 8901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8902printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8903 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8904 CFLAGS="$xorg_testset_save_CFLAGS" 8905fi 8906 8907if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8910 fi 8911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8913printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8914if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8915then : 8916 printf %s "(cached) " >&6 8917else $as_nop 8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8919/* end confdefs.h. */ 8920int i; 8921_ACEOF 8922if ac_fn_c_try_compile "$LINENO" 8923then : 8924 xorg_cv_cc_flag_unused_command_line_argument=yes 8925else $as_nop 8926 xorg_cv_cc_flag_unused_command_line_argument=no 8927fi 8928rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8929fi 8930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8931printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8932 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8933 CFLAGS="$xorg_testset_save_CFLAGS" 8934fi 8935 8936found="no" 8937 8938 if test $found = "no" ; then 8939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8941 fi 8942 8943 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8945 fi 8946 8947 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8948 8949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8950printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8951 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8952 if eval test \${$cacheid+y} 8953then : 8954 printf %s "(cached) " >&6 8955else $as_nop 8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8957/* end confdefs.h. */ 8958int i; 8959int 8960main (void) 8961{ 8962 8963 ; 8964 return 0; 8965} 8966_ACEOF 8967if ac_fn_c_try_link "$LINENO" 8968then : 8969 eval $cacheid=yes 8970else $as_nop 8971 eval $cacheid=no 8972fi 8973rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8974 conftest$ac_exeext conftest.$ac_ext 8975fi 8976 8977 8978 CFLAGS="$xorg_testset_save_CFLAGS" 8979 8980 eval supported=\$$cacheid 8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8982printf "%s\n" "$supported" >&6; } 8983 if test "$supported" = "yes" ; then 8984 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8985 found="yes" 8986 fi 8987 fi 8988 8989 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8990else 8991{ 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 8992printf "%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;} 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006xorg_testset_save_CFLAGS="$CFLAGS" 9007 9008if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9011printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9012if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9013then : 9014 printf %s "(cached) " >&6 9015else $as_nop 9016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9017/* end confdefs.h. */ 9018int i; 9019_ACEOF 9020if ac_fn_c_try_compile "$LINENO" 9021then : 9022 xorg_cv_cc_flag_unknown_warning_option=yes 9023else $as_nop 9024 xorg_cv_cc_flag_unknown_warning_option=no 9025fi 9026rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9027fi 9028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9029printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9030 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9031 CFLAGS="$xorg_testset_save_CFLAGS" 9032fi 9033 9034if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9037 fi 9038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9040printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9041if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9042then : 9043 printf %s "(cached) " >&6 9044else $as_nop 9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9046/* end confdefs.h. */ 9047int i; 9048_ACEOF 9049if ac_fn_c_try_compile "$LINENO" 9050then : 9051 xorg_cv_cc_flag_unused_command_line_argument=yes 9052else $as_nop 9053 xorg_cv_cc_flag_unused_command_line_argument=no 9054fi 9055rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9056fi 9057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9058printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9059 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9060 CFLAGS="$xorg_testset_save_CFLAGS" 9061fi 9062 9063found="no" 9064 9065 if test $found = "no" ; then 9066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9068 fi 9069 9070 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9072 fi 9073 9074 CFLAGS="$CFLAGS -Wimplicit" 9075 9076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9077printf %s "checking if $CC supports -Wimplicit... " >&6; } 9078 cacheid=xorg_cv_cc_flag__Wimplicit 9079 if eval test \${$cacheid+y} 9080then : 9081 printf %s "(cached) " >&6 9082else $as_nop 9083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9084/* end confdefs.h. */ 9085int i; 9086int 9087main (void) 9088{ 9089 9090 ; 9091 return 0; 9092} 9093_ACEOF 9094if ac_fn_c_try_link "$LINENO" 9095then : 9096 eval $cacheid=yes 9097else $as_nop 9098 eval $cacheid=no 9099fi 9100rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9101 conftest$ac_exeext conftest.$ac_ext 9102fi 9103 9104 9105 CFLAGS="$xorg_testset_save_CFLAGS" 9106 9107 eval supported=\$$cacheid 9108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9109printf "%s\n" "$supported" >&6; } 9110 if test "$supported" = "yes" ; then 9111 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9112 found="yes" 9113 fi 9114 fi 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130xorg_testset_save_CFLAGS="$CFLAGS" 9131 9132if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9135printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9136if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9137then : 9138 printf %s "(cached) " >&6 9139else $as_nop 9140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9141/* end confdefs.h. */ 9142int i; 9143_ACEOF 9144if ac_fn_c_try_compile "$LINENO" 9145then : 9146 xorg_cv_cc_flag_unknown_warning_option=yes 9147else $as_nop 9148 xorg_cv_cc_flag_unknown_warning_option=no 9149fi 9150rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9151fi 9152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9153printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9155 CFLAGS="$xorg_testset_save_CFLAGS" 9156fi 9157 9158if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9161 fi 9162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9164printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9165if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9166then : 9167 printf %s "(cached) " >&6 9168else $as_nop 9169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9170/* end confdefs.h. */ 9171int i; 9172_ACEOF 9173if ac_fn_c_try_compile "$LINENO" 9174then : 9175 xorg_cv_cc_flag_unused_command_line_argument=yes 9176else $as_nop 9177 xorg_cv_cc_flag_unused_command_line_argument=no 9178fi 9179rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9180fi 9181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9182printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9183 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9184 CFLAGS="$xorg_testset_save_CFLAGS" 9185fi 9186 9187found="no" 9188 9189 if test $found = "no" ; then 9190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9192 fi 9193 9194 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9196 fi 9197 9198 CFLAGS="$CFLAGS -Wnonnull" 9199 9200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9201printf %s "checking if $CC supports -Wnonnull... " >&6; } 9202 cacheid=xorg_cv_cc_flag__Wnonnull 9203 if eval test \${$cacheid+y} 9204then : 9205 printf %s "(cached) " >&6 9206else $as_nop 9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9208/* end confdefs.h. */ 9209int i; 9210int 9211main (void) 9212{ 9213 9214 ; 9215 return 0; 9216} 9217_ACEOF 9218if ac_fn_c_try_link "$LINENO" 9219then : 9220 eval $cacheid=yes 9221else $as_nop 9222 eval $cacheid=no 9223fi 9224rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9225 conftest$ac_exeext conftest.$ac_ext 9226fi 9227 9228 9229 CFLAGS="$xorg_testset_save_CFLAGS" 9230 9231 eval supported=\$$cacheid 9232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9233printf "%s\n" "$supported" >&6; } 9234 if test "$supported" = "yes" ; then 9235 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9236 found="yes" 9237 fi 9238 fi 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254xorg_testset_save_CFLAGS="$CFLAGS" 9255 9256if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9259printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9260if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9261then : 9262 printf %s "(cached) " >&6 9263else $as_nop 9264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9265/* end confdefs.h. */ 9266int i; 9267_ACEOF 9268if ac_fn_c_try_compile "$LINENO" 9269then : 9270 xorg_cv_cc_flag_unknown_warning_option=yes 9271else $as_nop 9272 xorg_cv_cc_flag_unknown_warning_option=no 9273fi 9274rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9275fi 9276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9277printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9278 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9279 CFLAGS="$xorg_testset_save_CFLAGS" 9280fi 9281 9282if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9285 fi 9286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9288printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9289if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9290then : 9291 printf %s "(cached) " >&6 9292else $as_nop 9293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9294/* end confdefs.h. */ 9295int i; 9296_ACEOF 9297if ac_fn_c_try_compile "$LINENO" 9298then : 9299 xorg_cv_cc_flag_unused_command_line_argument=yes 9300else $as_nop 9301 xorg_cv_cc_flag_unused_command_line_argument=no 9302fi 9303rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9304fi 9305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9306printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9307 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9308 CFLAGS="$xorg_testset_save_CFLAGS" 9309fi 9310 9311found="no" 9312 9313 if test $found = "no" ; then 9314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9316 fi 9317 9318 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9320 fi 9321 9322 CFLAGS="$CFLAGS -Winit-self" 9323 9324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9325printf %s "checking if $CC supports -Winit-self... " >&6; } 9326 cacheid=xorg_cv_cc_flag__Winit_self 9327 if eval test \${$cacheid+y} 9328then : 9329 printf %s "(cached) " >&6 9330else $as_nop 9331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9332/* end confdefs.h. */ 9333int i; 9334int 9335main (void) 9336{ 9337 9338 ; 9339 return 0; 9340} 9341_ACEOF 9342if ac_fn_c_try_link "$LINENO" 9343then : 9344 eval $cacheid=yes 9345else $as_nop 9346 eval $cacheid=no 9347fi 9348rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9349 conftest$ac_exeext conftest.$ac_ext 9350fi 9351 9352 9353 CFLAGS="$xorg_testset_save_CFLAGS" 9354 9355 eval supported=\$$cacheid 9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9357printf "%s\n" "$supported" >&6; } 9358 if test "$supported" = "yes" ; then 9359 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9360 found="yes" 9361 fi 9362 fi 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378xorg_testset_save_CFLAGS="$CFLAGS" 9379 9380if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9383printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9384if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9385then : 9386 printf %s "(cached) " >&6 9387else $as_nop 9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9389/* end confdefs.h. */ 9390int i; 9391_ACEOF 9392if ac_fn_c_try_compile "$LINENO" 9393then : 9394 xorg_cv_cc_flag_unknown_warning_option=yes 9395else $as_nop 9396 xorg_cv_cc_flag_unknown_warning_option=no 9397fi 9398rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9399fi 9400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9401printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9402 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9403 CFLAGS="$xorg_testset_save_CFLAGS" 9404fi 9405 9406if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9409 fi 9410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9412printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9413if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9414then : 9415 printf %s "(cached) " >&6 9416else $as_nop 9417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9418/* end confdefs.h. */ 9419int i; 9420_ACEOF 9421if ac_fn_c_try_compile "$LINENO" 9422then : 9423 xorg_cv_cc_flag_unused_command_line_argument=yes 9424else $as_nop 9425 xorg_cv_cc_flag_unused_command_line_argument=no 9426fi 9427rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9428fi 9429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9430printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9432 CFLAGS="$xorg_testset_save_CFLAGS" 9433fi 9434 9435found="no" 9436 9437 if test $found = "no" ; then 9438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9440 fi 9441 9442 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9444 fi 9445 9446 CFLAGS="$CFLAGS -Wmain" 9447 9448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9449printf %s "checking if $CC supports -Wmain... " >&6; } 9450 cacheid=xorg_cv_cc_flag__Wmain 9451 if eval test \${$cacheid+y} 9452then : 9453 printf %s "(cached) " >&6 9454else $as_nop 9455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9456/* end confdefs.h. */ 9457int i; 9458int 9459main (void) 9460{ 9461 9462 ; 9463 return 0; 9464} 9465_ACEOF 9466if ac_fn_c_try_link "$LINENO" 9467then : 9468 eval $cacheid=yes 9469else $as_nop 9470 eval $cacheid=no 9471fi 9472rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9473 conftest$ac_exeext conftest.$ac_ext 9474fi 9475 9476 9477 CFLAGS="$xorg_testset_save_CFLAGS" 9478 9479 eval supported=\$$cacheid 9480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9481printf "%s\n" "$supported" >&6; } 9482 if test "$supported" = "yes" ; then 9483 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9484 found="yes" 9485 fi 9486 fi 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502xorg_testset_save_CFLAGS="$CFLAGS" 9503 9504if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9507printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9508if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9509then : 9510 printf %s "(cached) " >&6 9511else $as_nop 9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9513/* end confdefs.h. */ 9514int i; 9515_ACEOF 9516if ac_fn_c_try_compile "$LINENO" 9517then : 9518 xorg_cv_cc_flag_unknown_warning_option=yes 9519else $as_nop 9520 xorg_cv_cc_flag_unknown_warning_option=no 9521fi 9522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9523fi 9524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9525printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9526 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9527 CFLAGS="$xorg_testset_save_CFLAGS" 9528fi 9529 9530if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9533 fi 9534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9536printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9537if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9538then : 9539 printf %s "(cached) " >&6 9540else $as_nop 9541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9542/* end confdefs.h. */ 9543int i; 9544_ACEOF 9545if ac_fn_c_try_compile "$LINENO" 9546then : 9547 xorg_cv_cc_flag_unused_command_line_argument=yes 9548else $as_nop 9549 xorg_cv_cc_flag_unused_command_line_argument=no 9550fi 9551rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9552fi 9553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9554printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9555 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9556 CFLAGS="$xorg_testset_save_CFLAGS" 9557fi 9558 9559found="no" 9560 9561 if test $found = "no" ; then 9562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9564 fi 9565 9566 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9568 fi 9569 9570 CFLAGS="$CFLAGS -Wmissing-braces" 9571 9572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9573printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9574 cacheid=xorg_cv_cc_flag__Wmissing_braces 9575 if eval test \${$cacheid+y} 9576then : 9577 printf %s "(cached) " >&6 9578else $as_nop 9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9580/* end confdefs.h. */ 9581int i; 9582int 9583main (void) 9584{ 9585 9586 ; 9587 return 0; 9588} 9589_ACEOF 9590if ac_fn_c_try_link "$LINENO" 9591then : 9592 eval $cacheid=yes 9593else $as_nop 9594 eval $cacheid=no 9595fi 9596rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9597 conftest$ac_exeext conftest.$ac_ext 9598fi 9599 9600 9601 CFLAGS="$xorg_testset_save_CFLAGS" 9602 9603 eval supported=\$$cacheid 9604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9605printf "%s\n" "$supported" >&6; } 9606 if test "$supported" = "yes" ; then 9607 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9608 found="yes" 9609 fi 9610 fi 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626xorg_testset_save_CFLAGS="$CFLAGS" 9627 9628if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9631printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9632if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9633then : 9634 printf %s "(cached) " >&6 9635else $as_nop 9636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9637/* end confdefs.h. */ 9638int i; 9639_ACEOF 9640if ac_fn_c_try_compile "$LINENO" 9641then : 9642 xorg_cv_cc_flag_unknown_warning_option=yes 9643else $as_nop 9644 xorg_cv_cc_flag_unknown_warning_option=no 9645fi 9646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9647fi 9648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9649printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9650 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9651 CFLAGS="$xorg_testset_save_CFLAGS" 9652fi 9653 9654if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9657 fi 9658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9660printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9661if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9662then : 9663 printf %s "(cached) " >&6 9664else $as_nop 9665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9666/* end confdefs.h. */ 9667int i; 9668_ACEOF 9669if ac_fn_c_try_compile "$LINENO" 9670then : 9671 xorg_cv_cc_flag_unused_command_line_argument=yes 9672else $as_nop 9673 xorg_cv_cc_flag_unused_command_line_argument=no 9674fi 9675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9676fi 9677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9678printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9679 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9680 CFLAGS="$xorg_testset_save_CFLAGS" 9681fi 9682 9683found="no" 9684 9685 if test $found = "no" ; then 9686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9688 fi 9689 9690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9692 fi 9693 9694 CFLAGS="$CFLAGS -Wsequence-point" 9695 9696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9697printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9698 cacheid=xorg_cv_cc_flag__Wsequence_point 9699 if eval test \${$cacheid+y} 9700then : 9701 printf %s "(cached) " >&6 9702else $as_nop 9703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9704/* end confdefs.h. */ 9705int i; 9706int 9707main (void) 9708{ 9709 9710 ; 9711 return 0; 9712} 9713_ACEOF 9714if ac_fn_c_try_link "$LINENO" 9715then : 9716 eval $cacheid=yes 9717else $as_nop 9718 eval $cacheid=no 9719fi 9720rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9721 conftest$ac_exeext conftest.$ac_ext 9722fi 9723 9724 9725 CFLAGS="$xorg_testset_save_CFLAGS" 9726 9727 eval supported=\$$cacheid 9728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9729printf "%s\n" "$supported" >&6; } 9730 if test "$supported" = "yes" ; then 9731 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9732 found="yes" 9733 fi 9734 fi 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750xorg_testset_save_CFLAGS="$CFLAGS" 9751 9752if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9755printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9756if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9757then : 9758 printf %s "(cached) " >&6 9759else $as_nop 9760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9761/* end confdefs.h. */ 9762int i; 9763_ACEOF 9764if ac_fn_c_try_compile "$LINENO" 9765then : 9766 xorg_cv_cc_flag_unknown_warning_option=yes 9767else $as_nop 9768 xorg_cv_cc_flag_unknown_warning_option=no 9769fi 9770rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9771fi 9772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9773printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9775 CFLAGS="$xorg_testset_save_CFLAGS" 9776fi 9777 9778if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9781 fi 9782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9784printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9785if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9786then : 9787 printf %s "(cached) " >&6 9788else $as_nop 9789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9790/* end confdefs.h. */ 9791int i; 9792_ACEOF 9793if ac_fn_c_try_compile "$LINENO" 9794then : 9795 xorg_cv_cc_flag_unused_command_line_argument=yes 9796else $as_nop 9797 xorg_cv_cc_flag_unused_command_line_argument=no 9798fi 9799rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9800fi 9801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9802printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9803 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9804 CFLAGS="$xorg_testset_save_CFLAGS" 9805fi 9806 9807found="no" 9808 9809 if test $found = "no" ; then 9810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9812 fi 9813 9814 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9816 fi 9817 9818 CFLAGS="$CFLAGS -Wreturn-type" 9819 9820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9821printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9822 cacheid=xorg_cv_cc_flag__Wreturn_type 9823 if eval test \${$cacheid+y} 9824then : 9825 printf %s "(cached) " >&6 9826else $as_nop 9827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9828/* end confdefs.h. */ 9829int i; 9830int 9831main (void) 9832{ 9833 9834 ; 9835 return 0; 9836} 9837_ACEOF 9838if ac_fn_c_try_link "$LINENO" 9839then : 9840 eval $cacheid=yes 9841else $as_nop 9842 eval $cacheid=no 9843fi 9844rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9845 conftest$ac_exeext conftest.$ac_ext 9846fi 9847 9848 9849 CFLAGS="$xorg_testset_save_CFLAGS" 9850 9851 eval supported=\$$cacheid 9852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9853printf "%s\n" "$supported" >&6; } 9854 if test "$supported" = "yes" ; then 9855 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9856 found="yes" 9857 fi 9858 fi 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874xorg_testset_save_CFLAGS="$CFLAGS" 9875 9876if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9879printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9880if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9881then : 9882 printf %s "(cached) " >&6 9883else $as_nop 9884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9885/* end confdefs.h. */ 9886int i; 9887_ACEOF 9888if ac_fn_c_try_compile "$LINENO" 9889then : 9890 xorg_cv_cc_flag_unknown_warning_option=yes 9891else $as_nop 9892 xorg_cv_cc_flag_unknown_warning_option=no 9893fi 9894rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9895fi 9896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9897printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9899 CFLAGS="$xorg_testset_save_CFLAGS" 9900fi 9901 9902if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9905 fi 9906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9908printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9909if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9910then : 9911 printf %s "(cached) " >&6 9912else $as_nop 9913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9914/* end confdefs.h. */ 9915int i; 9916_ACEOF 9917if ac_fn_c_try_compile "$LINENO" 9918then : 9919 xorg_cv_cc_flag_unused_command_line_argument=yes 9920else $as_nop 9921 xorg_cv_cc_flag_unused_command_line_argument=no 9922fi 9923rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9924fi 9925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9926printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9928 CFLAGS="$xorg_testset_save_CFLAGS" 9929fi 9930 9931found="no" 9932 9933 if test $found = "no" ; then 9934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9936 fi 9937 9938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9940 fi 9941 9942 CFLAGS="$CFLAGS -Wtrigraphs" 9943 9944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9945printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9946 cacheid=xorg_cv_cc_flag__Wtrigraphs 9947 if eval test \${$cacheid+y} 9948then : 9949 printf %s "(cached) " >&6 9950else $as_nop 9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9952/* end confdefs.h. */ 9953int i; 9954int 9955main (void) 9956{ 9957 9958 ; 9959 return 0; 9960} 9961_ACEOF 9962if ac_fn_c_try_link "$LINENO" 9963then : 9964 eval $cacheid=yes 9965else $as_nop 9966 eval $cacheid=no 9967fi 9968rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9969 conftest$ac_exeext conftest.$ac_ext 9970fi 9971 9972 9973 CFLAGS="$xorg_testset_save_CFLAGS" 9974 9975 eval supported=\$$cacheid 9976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9977printf "%s\n" "$supported" >&6; } 9978 if test "$supported" = "yes" ; then 9979 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9980 found="yes" 9981 fi 9982 fi 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998xorg_testset_save_CFLAGS="$CFLAGS" 9999 10000if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10003printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10004if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10005then : 10006 printf %s "(cached) " >&6 10007else $as_nop 10008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10009/* end confdefs.h. */ 10010int i; 10011_ACEOF 10012if ac_fn_c_try_compile "$LINENO" 10013then : 10014 xorg_cv_cc_flag_unknown_warning_option=yes 10015else $as_nop 10016 xorg_cv_cc_flag_unknown_warning_option=no 10017fi 10018rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10019fi 10020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10021printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10023 CFLAGS="$xorg_testset_save_CFLAGS" 10024fi 10025 10026if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10029 fi 10030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10032printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10033if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10034then : 10035 printf %s "(cached) " >&6 10036else $as_nop 10037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10038/* end confdefs.h. */ 10039int i; 10040_ACEOF 10041if ac_fn_c_try_compile "$LINENO" 10042then : 10043 xorg_cv_cc_flag_unused_command_line_argument=yes 10044else $as_nop 10045 xorg_cv_cc_flag_unused_command_line_argument=no 10046fi 10047rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10048fi 10049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10050printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10051 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10052 CFLAGS="$xorg_testset_save_CFLAGS" 10053fi 10054 10055found="no" 10056 10057 if test $found = "no" ; then 10058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10060 fi 10061 10062 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10064 fi 10065 10066 CFLAGS="$CFLAGS -Warray-bounds" 10067 10068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10069printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10070 cacheid=xorg_cv_cc_flag__Warray_bounds 10071 if eval test \${$cacheid+y} 10072then : 10073 printf %s "(cached) " >&6 10074else $as_nop 10075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10076/* end confdefs.h. */ 10077int i; 10078int 10079main (void) 10080{ 10081 10082 ; 10083 return 0; 10084} 10085_ACEOF 10086if ac_fn_c_try_link "$LINENO" 10087then : 10088 eval $cacheid=yes 10089else $as_nop 10090 eval $cacheid=no 10091fi 10092rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10093 conftest$ac_exeext conftest.$ac_ext 10094fi 10095 10096 10097 CFLAGS="$xorg_testset_save_CFLAGS" 10098 10099 eval supported=\$$cacheid 10100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10101printf "%s\n" "$supported" >&6; } 10102 if test "$supported" = "yes" ; then 10103 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10104 found="yes" 10105 fi 10106 fi 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122xorg_testset_save_CFLAGS="$CFLAGS" 10123 10124if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10127printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10128if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10129then : 10130 printf %s "(cached) " >&6 10131else $as_nop 10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10133/* end confdefs.h. */ 10134int i; 10135_ACEOF 10136if ac_fn_c_try_compile "$LINENO" 10137then : 10138 xorg_cv_cc_flag_unknown_warning_option=yes 10139else $as_nop 10140 xorg_cv_cc_flag_unknown_warning_option=no 10141fi 10142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10143fi 10144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10145printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10146 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10147 CFLAGS="$xorg_testset_save_CFLAGS" 10148fi 10149 10150if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10153 fi 10154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10156printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10157if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10158then : 10159 printf %s "(cached) " >&6 10160else $as_nop 10161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10162/* end confdefs.h. */ 10163int i; 10164_ACEOF 10165if ac_fn_c_try_compile "$LINENO" 10166then : 10167 xorg_cv_cc_flag_unused_command_line_argument=yes 10168else $as_nop 10169 xorg_cv_cc_flag_unused_command_line_argument=no 10170fi 10171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10172fi 10173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10174printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10175 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10176 CFLAGS="$xorg_testset_save_CFLAGS" 10177fi 10178 10179found="no" 10180 10181 if test $found = "no" ; then 10182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10184 fi 10185 10186 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10188 fi 10189 10190 CFLAGS="$CFLAGS -Wwrite-strings" 10191 10192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10193printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10194 cacheid=xorg_cv_cc_flag__Wwrite_strings 10195 if eval test \${$cacheid+y} 10196then : 10197 printf %s "(cached) " >&6 10198else $as_nop 10199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10200/* end confdefs.h. */ 10201int i; 10202int 10203main (void) 10204{ 10205 10206 ; 10207 return 0; 10208} 10209_ACEOF 10210if ac_fn_c_try_link "$LINENO" 10211then : 10212 eval $cacheid=yes 10213else $as_nop 10214 eval $cacheid=no 10215fi 10216rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10217 conftest$ac_exeext conftest.$ac_ext 10218fi 10219 10220 10221 CFLAGS="$xorg_testset_save_CFLAGS" 10222 10223 eval supported=\$$cacheid 10224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10225printf "%s\n" "$supported" >&6; } 10226 if test "$supported" = "yes" ; then 10227 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10228 found="yes" 10229 fi 10230 fi 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246xorg_testset_save_CFLAGS="$CFLAGS" 10247 10248if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10251printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10252if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10253then : 10254 printf %s "(cached) " >&6 10255else $as_nop 10256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10257/* end confdefs.h. */ 10258int i; 10259_ACEOF 10260if ac_fn_c_try_compile "$LINENO" 10261then : 10262 xorg_cv_cc_flag_unknown_warning_option=yes 10263else $as_nop 10264 xorg_cv_cc_flag_unknown_warning_option=no 10265fi 10266rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10267fi 10268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10269printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10270 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10271 CFLAGS="$xorg_testset_save_CFLAGS" 10272fi 10273 10274if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10277 fi 10278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10280printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10281if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10282then : 10283 printf %s "(cached) " >&6 10284else $as_nop 10285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10286/* end confdefs.h. */ 10287int i; 10288_ACEOF 10289if ac_fn_c_try_compile "$LINENO" 10290then : 10291 xorg_cv_cc_flag_unused_command_line_argument=yes 10292else $as_nop 10293 xorg_cv_cc_flag_unused_command_line_argument=no 10294fi 10295rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10296fi 10297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10298printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10299 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10300 CFLAGS="$xorg_testset_save_CFLAGS" 10301fi 10302 10303found="no" 10304 10305 if test $found = "no" ; then 10306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10308 fi 10309 10310 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10312 fi 10313 10314 CFLAGS="$CFLAGS -Waddress" 10315 10316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10317printf %s "checking if $CC supports -Waddress... " >&6; } 10318 cacheid=xorg_cv_cc_flag__Waddress 10319 if eval test \${$cacheid+y} 10320then : 10321 printf %s "(cached) " >&6 10322else $as_nop 10323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10324/* end confdefs.h. */ 10325int i; 10326int 10327main (void) 10328{ 10329 10330 ; 10331 return 0; 10332} 10333_ACEOF 10334if ac_fn_c_try_link "$LINENO" 10335then : 10336 eval $cacheid=yes 10337else $as_nop 10338 eval $cacheid=no 10339fi 10340rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10341 conftest$ac_exeext conftest.$ac_ext 10342fi 10343 10344 10345 CFLAGS="$xorg_testset_save_CFLAGS" 10346 10347 eval supported=\$$cacheid 10348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10349printf "%s\n" "$supported" >&6; } 10350 if test "$supported" = "yes" ; then 10351 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10352 found="yes" 10353 fi 10354 fi 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370xorg_testset_save_CFLAGS="$CFLAGS" 10371 10372if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10375printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10376if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10377then : 10378 printf %s "(cached) " >&6 10379else $as_nop 10380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10381/* end confdefs.h. */ 10382int i; 10383_ACEOF 10384if ac_fn_c_try_compile "$LINENO" 10385then : 10386 xorg_cv_cc_flag_unknown_warning_option=yes 10387else $as_nop 10388 xorg_cv_cc_flag_unknown_warning_option=no 10389fi 10390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10391fi 10392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10393printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10395 CFLAGS="$xorg_testset_save_CFLAGS" 10396fi 10397 10398if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10401 fi 10402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10404printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10405if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10406then : 10407 printf %s "(cached) " >&6 10408else $as_nop 10409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10410/* end confdefs.h. */ 10411int i; 10412_ACEOF 10413if ac_fn_c_try_compile "$LINENO" 10414then : 10415 xorg_cv_cc_flag_unused_command_line_argument=yes 10416else $as_nop 10417 xorg_cv_cc_flag_unused_command_line_argument=no 10418fi 10419rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10420fi 10421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10422printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10424 CFLAGS="$xorg_testset_save_CFLAGS" 10425fi 10426 10427found="no" 10428 10429 if test $found = "no" ; then 10430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10432 fi 10433 10434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10436 fi 10437 10438 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10439 10440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10441printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10442 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10443 if eval test \${$cacheid+y} 10444then : 10445 printf %s "(cached) " >&6 10446else $as_nop 10447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10448/* end confdefs.h. */ 10449int i; 10450int 10451main (void) 10452{ 10453 10454 ; 10455 return 0; 10456} 10457_ACEOF 10458if ac_fn_c_try_link "$LINENO" 10459then : 10460 eval $cacheid=yes 10461else $as_nop 10462 eval $cacheid=no 10463fi 10464rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10465 conftest$ac_exeext conftest.$ac_ext 10466fi 10467 10468 10469 CFLAGS="$xorg_testset_save_CFLAGS" 10470 10471 eval supported=\$$cacheid 10472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10473printf "%s\n" "$supported" >&6; } 10474 if test "$supported" = "yes" ; then 10475 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10476 found="yes" 10477 fi 10478 fi 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494xorg_testset_save_CFLAGS="$CFLAGS" 10495 10496if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10499printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10500if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10501then : 10502 printf %s "(cached) " >&6 10503else $as_nop 10504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10505/* end confdefs.h. */ 10506int i; 10507_ACEOF 10508if ac_fn_c_try_compile "$LINENO" 10509then : 10510 xorg_cv_cc_flag_unknown_warning_option=yes 10511else $as_nop 10512 xorg_cv_cc_flag_unknown_warning_option=no 10513fi 10514rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10515fi 10516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10517printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10518 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10519 CFLAGS="$xorg_testset_save_CFLAGS" 10520fi 10521 10522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10525 fi 10526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10528printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10529if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10530then : 10531 printf %s "(cached) " >&6 10532else $as_nop 10533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10534/* end confdefs.h. */ 10535int i; 10536_ACEOF 10537if ac_fn_c_try_compile "$LINENO" 10538then : 10539 xorg_cv_cc_flag_unused_command_line_argument=yes 10540else $as_nop 10541 xorg_cv_cc_flag_unused_command_line_argument=no 10542fi 10543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10544fi 10545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10546printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10547 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10548 CFLAGS="$xorg_testset_save_CFLAGS" 10549fi 10550 10551found="no" 10552 10553 if test $found = "no" ; then 10554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10556 fi 10557 10558 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10560 fi 10561 10562 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10563 10564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10565printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10566 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10567 if eval test \${$cacheid+y} 10568then : 10569 printf %s "(cached) " >&6 10570else $as_nop 10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10572/* end confdefs.h. */ 10573int i; 10574int 10575main (void) 10576{ 10577 10578 ; 10579 return 0; 10580} 10581_ACEOF 10582if ac_fn_c_try_link "$LINENO" 10583then : 10584 eval $cacheid=yes 10585else $as_nop 10586 eval $cacheid=no 10587fi 10588rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10589 conftest$ac_exeext conftest.$ac_ext 10590fi 10591 10592 10593 CFLAGS="$xorg_testset_save_CFLAGS" 10594 10595 eval supported=\$$cacheid 10596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10597printf "%s\n" "$supported" >&6; } 10598 if test "$supported" = "yes" ; then 10599 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10600 found="yes" 10601 fi 10602 fi 10603 10604 10605fi 10606 10607 10608 10609 10610 10611 10612 10613 CWARNFLAGS="$BASE_CFLAGS" 10614 if test "x$GCC" = xyes ; then 10615 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10616 fi 10617 10618 10619 10620 10621 10622 10623 10624 10625# Check whether --enable-strict-compilation was given. 10626if test ${enable_strict_compilation+y} 10627then : 10628 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10629else $as_nop 10630 STRICT_COMPILE=no 10631fi 10632 10633 10634 10635 10636 10637 10638STRICT_CFLAGS="" 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652xorg_testset_save_CFLAGS="$CFLAGS" 10653 10654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10657printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10658if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10659then : 10660 printf %s "(cached) " >&6 10661else $as_nop 10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10663/* end confdefs.h. */ 10664int i; 10665_ACEOF 10666if ac_fn_c_try_compile "$LINENO" 10667then : 10668 xorg_cv_cc_flag_unknown_warning_option=yes 10669else $as_nop 10670 xorg_cv_cc_flag_unknown_warning_option=no 10671fi 10672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10673fi 10674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10675printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10676 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10677 CFLAGS="$xorg_testset_save_CFLAGS" 10678fi 10679 10680if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10683 fi 10684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10686printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10687if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10688then : 10689 printf %s "(cached) " >&6 10690else $as_nop 10691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10692/* end confdefs.h. */ 10693int i; 10694_ACEOF 10695if ac_fn_c_try_compile "$LINENO" 10696then : 10697 xorg_cv_cc_flag_unused_command_line_argument=yes 10698else $as_nop 10699 xorg_cv_cc_flag_unused_command_line_argument=no 10700fi 10701rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10702fi 10703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10704printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10705 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10706 CFLAGS="$xorg_testset_save_CFLAGS" 10707fi 10708 10709found="no" 10710 10711 if test $found = "no" ; then 10712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10714 fi 10715 10716 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10718 fi 10719 10720 CFLAGS="$CFLAGS -pedantic" 10721 10722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10723printf %s "checking if $CC supports -pedantic... " >&6; } 10724 cacheid=xorg_cv_cc_flag__pedantic 10725 if eval test \${$cacheid+y} 10726then : 10727 printf %s "(cached) " >&6 10728else $as_nop 10729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10730/* end confdefs.h. */ 10731int i; 10732int 10733main (void) 10734{ 10735 10736 ; 10737 return 0; 10738} 10739_ACEOF 10740if ac_fn_c_try_link "$LINENO" 10741then : 10742 eval $cacheid=yes 10743else $as_nop 10744 eval $cacheid=no 10745fi 10746rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10747 conftest$ac_exeext conftest.$ac_ext 10748fi 10749 10750 10751 CFLAGS="$xorg_testset_save_CFLAGS" 10752 10753 eval supported=\$$cacheid 10754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10755printf "%s\n" "$supported" >&6; } 10756 if test "$supported" = "yes" ; then 10757 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10758 found="yes" 10759 fi 10760 fi 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776xorg_testset_save_CFLAGS="$CFLAGS" 10777 10778if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10781printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10782if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10783then : 10784 printf %s "(cached) " >&6 10785else $as_nop 10786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10787/* end confdefs.h. */ 10788int i; 10789_ACEOF 10790if ac_fn_c_try_compile "$LINENO" 10791then : 10792 xorg_cv_cc_flag_unknown_warning_option=yes 10793else $as_nop 10794 xorg_cv_cc_flag_unknown_warning_option=no 10795fi 10796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10797fi 10798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10799printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10800 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10801 CFLAGS="$xorg_testset_save_CFLAGS" 10802fi 10803 10804if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10807 fi 10808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10810printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10811if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10812then : 10813 printf %s "(cached) " >&6 10814else $as_nop 10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10816/* end confdefs.h. */ 10817int i; 10818_ACEOF 10819if ac_fn_c_try_compile "$LINENO" 10820then : 10821 xorg_cv_cc_flag_unused_command_line_argument=yes 10822else $as_nop 10823 xorg_cv_cc_flag_unused_command_line_argument=no 10824fi 10825rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10826fi 10827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10828printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10829 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10830 CFLAGS="$xorg_testset_save_CFLAGS" 10831fi 10832 10833found="no" 10834 10835 if test $found = "no" ; then 10836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10838 fi 10839 10840 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10842 fi 10843 10844 CFLAGS="$CFLAGS -Werror" 10845 10846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10847printf %s "checking if $CC supports -Werror... " >&6; } 10848 cacheid=xorg_cv_cc_flag__Werror 10849 if eval test \${$cacheid+y} 10850then : 10851 printf %s "(cached) " >&6 10852else $as_nop 10853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10854/* end confdefs.h. */ 10855int i; 10856int 10857main (void) 10858{ 10859 10860 ; 10861 return 0; 10862} 10863_ACEOF 10864if ac_fn_c_try_link "$LINENO" 10865then : 10866 eval $cacheid=yes 10867else $as_nop 10868 eval $cacheid=no 10869fi 10870rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10871 conftest$ac_exeext conftest.$ac_ext 10872fi 10873 10874 10875 CFLAGS="$xorg_testset_save_CFLAGS" 10876 10877 eval supported=\$$cacheid 10878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10879printf "%s\n" "$supported" >&6; } 10880 if test "$supported" = "yes" ; then 10881 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10882 found="yes" 10883 fi 10884 fi 10885 10886 if test $found = "no" ; then 10887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10889 fi 10890 10891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10893 fi 10894 10895 CFLAGS="$CFLAGS -errwarn" 10896 10897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10898printf %s "checking if $CC supports -errwarn... " >&6; } 10899 cacheid=xorg_cv_cc_flag__errwarn 10900 if eval test \${$cacheid+y} 10901then : 10902 printf %s "(cached) " >&6 10903else $as_nop 10904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10905/* end confdefs.h. */ 10906int i; 10907int 10908main (void) 10909{ 10910 10911 ; 10912 return 0; 10913} 10914_ACEOF 10915if ac_fn_c_try_link "$LINENO" 10916then : 10917 eval $cacheid=yes 10918else $as_nop 10919 eval $cacheid=no 10920fi 10921rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10922 conftest$ac_exeext conftest.$ac_ext 10923fi 10924 10925 10926 CFLAGS="$xorg_testset_save_CFLAGS" 10927 10928 eval supported=\$$cacheid 10929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10930printf "%s\n" "$supported" >&6; } 10931 if test "$supported" = "yes" ; then 10932 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10933 found="yes" 10934 fi 10935 fi 10936 10937 10938 10939# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10940# activate it with -Werror, so we add it here explicitly. 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954xorg_testset_save_CFLAGS="$CFLAGS" 10955 10956if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10959printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10960if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10961then : 10962 printf %s "(cached) " >&6 10963else $as_nop 10964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10965/* end confdefs.h. */ 10966int i; 10967_ACEOF 10968if ac_fn_c_try_compile "$LINENO" 10969then : 10970 xorg_cv_cc_flag_unknown_warning_option=yes 10971else $as_nop 10972 xorg_cv_cc_flag_unknown_warning_option=no 10973fi 10974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10975fi 10976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10977printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10979 CFLAGS="$xorg_testset_save_CFLAGS" 10980fi 10981 10982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10985 fi 10986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10988printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10989if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10990then : 10991 printf %s "(cached) " >&6 10992else $as_nop 10993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10994/* end confdefs.h. */ 10995int i; 10996_ACEOF 10997if ac_fn_c_try_compile "$LINENO" 10998then : 10999 xorg_cv_cc_flag_unused_command_line_argument=yes 11000else $as_nop 11001 xorg_cv_cc_flag_unused_command_line_argument=no 11002fi 11003rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11004fi 11005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11006printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11008 CFLAGS="$xorg_testset_save_CFLAGS" 11009fi 11010 11011found="no" 11012 11013 if test $found = "no" ; then 11014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11016 fi 11017 11018 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11020 fi 11021 11022 CFLAGS="$CFLAGS -Werror=attributes" 11023 11024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11025printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11026 cacheid=xorg_cv_cc_flag__Werror_attributes 11027 if eval test \${$cacheid+y} 11028then : 11029 printf %s "(cached) " >&6 11030else $as_nop 11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11032/* end confdefs.h. */ 11033int i; 11034int 11035main (void) 11036{ 11037 11038 ; 11039 return 0; 11040} 11041_ACEOF 11042if ac_fn_c_try_link "$LINENO" 11043then : 11044 eval $cacheid=yes 11045else $as_nop 11046 eval $cacheid=no 11047fi 11048rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11049 conftest$ac_exeext conftest.$ac_ext 11050fi 11051 11052 11053 CFLAGS="$xorg_testset_save_CFLAGS" 11054 11055 eval supported=\$$cacheid 11056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11057printf "%s\n" "$supported" >&6; } 11058 if test "$supported" = "yes" ; then 11059 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11060 found="yes" 11061 fi 11062 fi 11063 11064 11065 11066if test "x$STRICT_COMPILE" = "xyes"; then 11067 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11068 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11069fi 11070 11071 11072 11073 11074 11075 11076cat >>confdefs.h <<_ACEOF 11077#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11078_ACEOF 11079 11080 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11081 if test "x$PVM" = "x"; then 11082 PVM="0" 11083 fi 11084 11085printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11086 11087 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11088 if test "x$PVP" = "x"; then 11089 PVP="0" 11090 fi 11091 11092printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11093 11094 11095 11096CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11097mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11098|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11099touch \$(top_srcdir)/ChangeLog; \ 11100echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11101 11102 11103 11104 11105macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11106INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11107mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11108|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11109touch \$(top_srcdir)/INSTALL; \ 11110echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11111 11112 11113 11114 11115 11116 11117case $host_os in 11118 solaris*) 11119 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11120 # check for a man page file found in later versions that use 11121 # traditional section numbers instead 11122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11123printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11124if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11125then : 11126 printf %s "(cached) " >&6 11127else $as_nop 11128 test "$cross_compiling" = yes && 11129 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11130if test -r "/usr/share/man/man7/attributes.7"; then 11131 ac_cv_file__usr_share_man_man7_attributes_7=yes 11132else 11133 ac_cv_file__usr_share_man_man7_attributes_7=no 11134fi 11135fi 11136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11137printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11138if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11139then : 11140 SYSV_MAN_SECTIONS=false 11141else $as_nop 11142 SYSV_MAN_SECTIONS=true 11143fi 11144 11145 ;; 11146 *) SYSV_MAN_SECTIONS=false ;; 11147esac 11148 11149if test x$APP_MAN_SUFFIX = x ; then 11150 APP_MAN_SUFFIX=1 11151fi 11152if test x$APP_MAN_DIR = x ; then 11153 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11154fi 11155 11156if test x$LIB_MAN_SUFFIX = x ; then 11157 LIB_MAN_SUFFIX=3 11158fi 11159if test x$LIB_MAN_DIR = x ; then 11160 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11161fi 11162 11163if test x$FILE_MAN_SUFFIX = x ; then 11164 case $SYSV_MAN_SECTIONS in 11165 true) FILE_MAN_SUFFIX=4 ;; 11166 *) FILE_MAN_SUFFIX=5 ;; 11167 esac 11168fi 11169if test x$FILE_MAN_DIR = x ; then 11170 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11171fi 11172 11173if test x$MISC_MAN_SUFFIX = x ; then 11174 case $SYSV_MAN_SECTIONS in 11175 true) MISC_MAN_SUFFIX=5 ;; 11176 *) MISC_MAN_SUFFIX=7 ;; 11177 esac 11178fi 11179if test x$MISC_MAN_DIR = x ; then 11180 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11181fi 11182 11183if test x$DRIVER_MAN_SUFFIX = x ; then 11184 case $SYSV_MAN_SECTIONS in 11185 true) DRIVER_MAN_SUFFIX=7 ;; 11186 *) DRIVER_MAN_SUFFIX=4 ;; 11187 esac 11188fi 11189if test x$DRIVER_MAN_DIR = x ; then 11190 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11191fi 11192 11193if test x$ADMIN_MAN_SUFFIX = x ; then 11194 case $SYSV_MAN_SECTIONS in 11195 true) ADMIN_MAN_SUFFIX=1m ;; 11196 *) ADMIN_MAN_SUFFIX=8 ;; 11197 esac 11198fi 11199if test x$ADMIN_MAN_DIR = x ; then 11200 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11201fi 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217XORG_MAN_PAGE="X Version 11" 11218 11219MAN_SUBSTS="\ 11220 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11221 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11222 -e 's|__xservername__|Xorg|g' \ 11223 -e 's|__xconfigfile__|xorg.conf|g' \ 11224 -e 's|__projectroot__|\$(prefix)|g' \ 11225 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11226 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11227 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11228 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11229 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11230 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11231 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11232 11233 11234 11235# Check whether --enable-silent-rules was given. 11236if test ${enable_silent_rules+y} 11237then : 11238 enableval=$enable_silent_rules; 11239fi 11240 11241case $enable_silent_rules in # ((( 11242 yes) AM_DEFAULT_VERBOSITY=0;; 11243 no) AM_DEFAULT_VERBOSITY=1;; 11244 *) AM_DEFAULT_VERBOSITY=0;; 11245esac 11246am_make=${MAKE-make} 11247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11248printf %s "checking whether $am_make supports nested variables... " >&6; } 11249if test ${am_cv_make_support_nested_variables+y} 11250then : 11251 printf %s "(cached) " >&6 11252else $as_nop 11253 if printf "%s\n" 'TRUE=$(BAR$(V)) 11254BAR0=false 11255BAR1=true 11256V=1 11257am__doit: 11258 @$(TRUE) 11259.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11260 am_cv_make_support_nested_variables=yes 11261else 11262 am_cv_make_support_nested_variables=no 11263fi 11264fi 11265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11266printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11267if test $am_cv_make_support_nested_variables = yes; then 11268 AM_V='$(V)' 11269 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11270else 11271 AM_V=$AM_DEFAULT_VERBOSITY 11272 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11273fi 11274AM_BACKSLASH='\' 11275 11276 11277 11278# Use POSIX strnlen or the implementation supplied in this module 11279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5 11280printf %s "checking for working strnlen... " >&6; } 11281if test ${ac_cv_func_strnlen_working+y} 11282then : 11283 printf %s "(cached) " >&6 11284else $as_nop 11285 if test "$cross_compiling" = yes 11286then : 11287 # Guess no on AIX systems, yes otherwise. 11288 case "$host_os" in 11289 aix*) ac_cv_func_strnlen_working=no;; 11290 *) ac_cv_func_strnlen_working=yes;; 11291 esac 11292else $as_nop 11293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11294/* end confdefs.h. */ 11295$ac_includes_default 11296int 11297main (void) 11298{ 11299 11300#define S "foobar" 11301#define S_LEN (sizeof S - 1) 11302 11303 /* At least one implementation is buggy: that of AIX 4.3 would 11304 give strnlen (S, 1) == 3. */ 11305 11306 int i; 11307 for (i = 0; i < S_LEN + 1; ++i) 11308 { 11309 int expected = i <= S_LEN ? i : S_LEN; 11310 if (strnlen (S, i) != expected) 11311 return 1; 11312 } 11313 return 0; 11314 11315 ; 11316 return 0; 11317} 11318_ACEOF 11319if ac_fn_c_try_run "$LINENO" 11320then : 11321 ac_cv_func_strnlen_working=yes 11322else $as_nop 11323 ac_cv_func_strnlen_working=no 11324fi 11325rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11326 conftest.$ac_objext conftest.beam conftest.$ac_ext 11327fi 11328 11329fi 11330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5 11331printf "%s\n" "$ac_cv_func_strnlen_working" >&6; } 11332test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in 11333 *" strnlen.$ac_objext "* ) ;; 11334 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" 11335 ;; 11336esac 11337 11338 11339if test "x$ac_cv_func_strnlen_working" = xyes; then 11340 11341printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h 11342 11343fi 11344 11345# Obtain compiler/linker options for xlsclients dependencies 11346 11347pkg_failed=no 11348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XLSCLIENTS" >&5 11349printf %s "checking for XLSCLIENTS... " >&6; } 11350 11351if test -n "$XLSCLIENTS_CFLAGS"; then 11352 pkg_cv_XLSCLIENTS_CFLAGS="$XLSCLIENTS_CFLAGS" 11353 elif test -n "$PKG_CONFIG"; then 11354 if test -n "$PKG_CONFIG" && \ 11355 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6\""; } >&5 11356 ($PKG_CONFIG --exists --print-errors "xcb >= 1.6") 2>&5 11357 ac_status=$? 11358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11359 test $ac_status = 0; }; then 11360 pkg_cv_XLSCLIENTS_CFLAGS=`$PKG_CONFIG --cflags "xcb >= 1.6" 2>/dev/null` 11361 test "x$?" != "x0" && pkg_failed=yes 11362else 11363 pkg_failed=yes 11364fi 11365 else 11366 pkg_failed=untried 11367fi 11368if test -n "$XLSCLIENTS_LIBS"; then 11369 pkg_cv_XLSCLIENTS_LIBS="$XLSCLIENTS_LIBS" 11370 elif test -n "$PKG_CONFIG"; then 11371 if test -n "$PKG_CONFIG" && \ 11372 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6\""; } >&5 11373 ($PKG_CONFIG --exists --print-errors "xcb >= 1.6") 2>&5 11374 ac_status=$? 11375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11376 test $ac_status = 0; }; then 11377 pkg_cv_XLSCLIENTS_LIBS=`$PKG_CONFIG --libs "xcb >= 1.6" 2>/dev/null` 11378 test "x$?" != "x0" && pkg_failed=yes 11379else 11380 pkg_failed=yes 11381fi 11382 else 11383 pkg_failed=untried 11384fi 11385 11386 11387 11388if test $pkg_failed = yes; then 11389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11390printf "%s\n" "no" >&6; } 11391 11392if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11393 _pkg_short_errors_supported=yes 11394else 11395 _pkg_short_errors_supported=no 11396fi 11397 if test $_pkg_short_errors_supported = yes; then 11398 XLSCLIENTS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb >= 1.6" 2>&1` 11399 else 11400 XLSCLIENTS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb >= 1.6" 2>&1` 11401 fi 11402 # Put the nasty error message in config.log where it belongs 11403 echo "$XLSCLIENTS_PKG_ERRORS" >&5 11404 11405 as_fn_error $? "Package requirements (xcb >= 1.6) were not met: 11406 11407$XLSCLIENTS_PKG_ERRORS 11408 11409Consider adjusting the PKG_CONFIG_PATH environment variable if you 11410installed software in a non-standard prefix. 11411 11412Alternatively, you may set the environment variables XLSCLIENTS_CFLAGS 11413and XLSCLIENTS_LIBS to avoid the need to call pkg-config. 11414See the pkg-config man page for more details." "$LINENO" 5 11415elif test $pkg_failed = untried; then 11416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11417printf "%s\n" "no" >&6; } 11418 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11419printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11420as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11421is in your PATH or set the PKG_CONFIG environment variable to the full 11422path to pkg-config. 11423 11424Alternatively, you may set the environment variables XLSCLIENTS_CFLAGS 11425and XLSCLIENTS_LIBS to avoid the need to call pkg-config. 11426See the pkg-config man page for more details. 11427 11428To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11429See \`config.log' for more details" "$LINENO" 5; } 11430else 11431 XLSCLIENTS_CFLAGS=$pkg_cv_XLSCLIENTS_CFLAGS 11432 XLSCLIENTS_LIBS=$pkg_cv_XLSCLIENTS_LIBS 11433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11434printf "%s\n" "yes" >&6; } 11435 11436fi 11437 11438ac_config_files="$ac_config_files Makefile man/Makefile" 11439 11440cat >confcache <<\_ACEOF 11441# This file is a shell script that caches the results of configure 11442# tests run on this system so they can be shared between configure 11443# scripts and configure runs, see configure's option --config-cache. 11444# It is not useful on other systems. If it contains results you don't 11445# want to keep, you may remove or edit it. 11446# 11447# config.status only pays attention to the cache file if you give it 11448# the --recheck option to rerun configure. 11449# 11450# `ac_cv_env_foo' variables (set or unset) will be overridden when 11451# loading this file, other *unset* `ac_cv_foo' will be assigned the 11452# following values. 11453 11454_ACEOF 11455 11456# The following way of writing the cache mishandles newlines in values, 11457# but we know of no workaround that is simple, portable, and efficient. 11458# So, we kill variables containing newlines. 11459# Ultrix sh set writes to stderr and can't be redirected directly, 11460# and sets the high bit in the cache file unless we assign to the vars. 11461( 11462 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11463 eval ac_val=\$$ac_var 11464 case $ac_val in #( 11465 *${as_nl}*) 11466 case $ac_var in #( 11467 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11468printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11469 esac 11470 case $ac_var in #( 11471 _ | IFS | as_nl) ;; #( 11472 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11473 *) { eval $ac_var=; unset $ac_var;} ;; 11474 esac ;; 11475 esac 11476 done 11477 11478 (set) 2>&1 | 11479 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11480 *${as_nl}ac_space=\ *) 11481 # `set' does not quote correctly, so add quotes: double-quote 11482 # substitution turns \\\\ into \\, and sed turns \\ into \. 11483 sed -n \ 11484 "s/'/'\\\\''/g; 11485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11486 ;; #( 11487 *) 11488 # `set' quotes correctly as required by POSIX, so do not add quotes. 11489 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11490 ;; 11491 esac | 11492 sort 11493) | 11494 sed ' 11495 /^ac_cv_env_/b end 11496 t clear 11497 :clear 11498 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11499 t end 11500 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11501 :end' >>confcache 11502if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11503 if test -w "$cache_file"; then 11504 if test "x$cache_file" != "x/dev/null"; then 11505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11506printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11507 if test ! -f "$cache_file" || test -h "$cache_file"; then 11508 cat confcache >"$cache_file" 11509 else 11510 case $cache_file in #( 11511 */* | ?:*) 11512 mv -f confcache "$cache_file"$$ && 11513 mv -f "$cache_file"$$ "$cache_file" ;; #( 11514 *) 11515 mv -f confcache "$cache_file" ;; 11516 esac 11517 fi 11518 fi 11519 else 11520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11521printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11522 fi 11523fi 11524rm -f confcache 11525 11526test "x$prefix" = xNONE && prefix=$ac_default_prefix 11527# Let make expand exec_prefix. 11528test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11529 11530DEFS=-DHAVE_CONFIG_H 11531 11532ac_libobjs= 11533ac_ltlibobjs= 11534U= 11535for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11536 # 1. Remove the extension, and $U if already installed. 11537 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11538 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11539 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11540 # will be set to the directory where LIBOBJS objects are built. 11541 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11542 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11543done 11544LIBOBJS=$ac_libobjs 11545 11546LTLIBOBJS=$ac_ltlibobjs 11547 11548 11549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11550printf %s "checking that generated files are newer than configure... " >&6; } 11551 if test -n "$am_sleep_pid"; then 11552 # Hide warnings about reused PIDs. 11553 wait $am_sleep_pid 2>/dev/null 11554 fi 11555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11556printf "%s\n" "done" >&6; } 11557if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11558 as_fn_error $? "conditional \"AMDEP\" was never defined. 11559Usually this means the macro was only invoked conditionally." "$LINENO" 5 11560fi 11561if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11562 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11563Usually this means the macro was only invoked conditionally." "$LINENO" 5 11564fi 11565 if test -n "$EXEEXT"; then 11566 am__EXEEXT_TRUE= 11567 am__EXEEXT_FALSE='#' 11568else 11569 am__EXEEXT_TRUE='#' 11570 am__EXEEXT_FALSE= 11571fi 11572 11573 11574: "${CONFIG_STATUS=./config.status}" 11575ac_write_fail=0 11576ac_clean_files_save=$ac_clean_files 11577ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11579printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11580as_write_fail=0 11581cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11582#! $SHELL 11583# Generated by $as_me. 11584# Run this file to recreate the current configuration. 11585# Compiler output produced by configure, useful for debugging 11586# configure, is in config.log if it exists. 11587 11588debug=false 11589ac_cs_recheck=false 11590ac_cs_silent=false 11591 11592SHELL=\${CONFIG_SHELL-$SHELL} 11593export SHELL 11594_ASEOF 11595cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11596## -------------------- ## 11597## M4sh Initialization. ## 11598## -------------------- ## 11599 11600# Be more Bourne compatible 11601DUALCASE=1; export DUALCASE # for MKS sh 11602as_nop=: 11603if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11604then : 11605 emulate sh 11606 NULLCMD=: 11607 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11608 # is contrary to our usage. Disable this feature. 11609 alias -g '${1+"$@"}'='"$@"' 11610 setopt NO_GLOB_SUBST 11611else $as_nop 11612 case `(set -o) 2>/dev/null` in #( 11613 *posix*) : 11614 set -o posix ;; #( 11615 *) : 11616 ;; 11617esac 11618fi 11619 11620 11621 11622# Reset variables that may have inherited troublesome values from 11623# the environment. 11624 11625# IFS needs to be set, to space, tab, and newline, in precisely that order. 11626# (If _AS_PATH_WALK were called with IFS unset, it would have the 11627# side effect of setting IFS to empty, thus disabling word splitting.) 11628# Quoting is to prevent editors from complaining about space-tab. 11629as_nl=' 11630' 11631export as_nl 11632IFS=" "" $as_nl" 11633 11634PS1='$ ' 11635PS2='> ' 11636PS4='+ ' 11637 11638# Ensure predictable behavior from utilities with locale-dependent output. 11639LC_ALL=C 11640export LC_ALL 11641LANGUAGE=C 11642export LANGUAGE 11643 11644# We cannot yet rely on "unset" to work, but we need these variables 11645# to be unset--not just set to an empty or harmless value--now, to 11646# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11647# also avoids known problems related to "unset" and subshell syntax 11648# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11649for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11650do eval test \${$as_var+y} \ 11651 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11652done 11653 11654# Ensure that fds 0, 1, and 2 are open. 11655if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11656if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11657if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11658 11659# The user is always right. 11660if ${PATH_SEPARATOR+false} :; then 11661 PATH_SEPARATOR=: 11662 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11663 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11664 PATH_SEPARATOR=';' 11665 } 11666fi 11667 11668 11669# Find who we are. Look in the path if we contain no directory separator. 11670as_myself= 11671case $0 in #(( 11672 *[\\/]* ) as_myself=$0 ;; 11673 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11674for as_dir in $PATH 11675do 11676 IFS=$as_save_IFS 11677 case $as_dir in #((( 11678 '') as_dir=./ ;; 11679 */) ;; 11680 *) as_dir=$as_dir/ ;; 11681 esac 11682 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11683 done 11684IFS=$as_save_IFS 11685 11686 ;; 11687esac 11688# We did not find ourselves, most probably we were run as `sh COMMAND' 11689# in which case we are not to be found in the path. 11690if test "x$as_myself" = x; then 11691 as_myself=$0 11692fi 11693if test ! -f "$as_myself"; then 11694 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11695 exit 1 11696fi 11697 11698 11699 11700# as_fn_error STATUS ERROR [LINENO LOG_FD] 11701# ---------------------------------------- 11702# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11703# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11704# script with STATUS, using 1 if that was 0. 11705as_fn_error () 11706{ 11707 as_status=$1; test $as_status -eq 0 && as_status=1 11708 if test "$4"; then 11709 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11711 fi 11712 printf "%s\n" "$as_me: error: $2" >&2 11713 as_fn_exit $as_status 11714} # as_fn_error 11715 11716 11717 11718# as_fn_set_status STATUS 11719# ----------------------- 11720# Set $? to STATUS, without forking. 11721as_fn_set_status () 11722{ 11723 return $1 11724} # as_fn_set_status 11725 11726# as_fn_exit STATUS 11727# ----------------- 11728# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11729as_fn_exit () 11730{ 11731 set +e 11732 as_fn_set_status $1 11733 exit $1 11734} # as_fn_exit 11735 11736# as_fn_unset VAR 11737# --------------- 11738# Portably unset VAR. 11739as_fn_unset () 11740{ 11741 { eval $1=; unset $1;} 11742} 11743as_unset=as_fn_unset 11744 11745# as_fn_append VAR VALUE 11746# ---------------------- 11747# Append the text in VALUE to the end of the definition contained in VAR. Take 11748# advantage of any shell optimizations that allow amortized linear growth over 11749# repeated appends, instead of the typical quadratic growth present in naive 11750# implementations. 11751if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11752then : 11753 eval 'as_fn_append () 11754 { 11755 eval $1+=\$2 11756 }' 11757else $as_nop 11758 as_fn_append () 11759 { 11760 eval $1=\$$1\$2 11761 } 11762fi # as_fn_append 11763 11764# as_fn_arith ARG... 11765# ------------------ 11766# Perform arithmetic evaluation on the ARGs, and store the result in the 11767# global $as_val. Take advantage of shells that can avoid forks. The arguments 11768# must be portable across $(()) and expr. 11769if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11770then : 11771 eval 'as_fn_arith () 11772 { 11773 as_val=$(( $* )) 11774 }' 11775else $as_nop 11776 as_fn_arith () 11777 { 11778 as_val=`expr "$@" || test $? -eq 1` 11779 } 11780fi # as_fn_arith 11781 11782 11783if expr a : '\(a\)' >/dev/null 2>&1 && 11784 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11785 as_expr=expr 11786else 11787 as_expr=false 11788fi 11789 11790if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11791 as_basename=basename 11792else 11793 as_basename=false 11794fi 11795 11796if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11797 as_dirname=dirname 11798else 11799 as_dirname=false 11800fi 11801 11802as_me=`$as_basename -- "$0" || 11803$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11804 X"$0" : 'X\(//\)$' \| \ 11805 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11806printf "%s\n" X/"$0" | 11807 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11808 s//\1/ 11809 q 11810 } 11811 /^X\/\(\/\/\)$/{ 11812 s//\1/ 11813 q 11814 } 11815 /^X\/\(\/\).*/{ 11816 s//\1/ 11817 q 11818 } 11819 s/.*/./; q'` 11820 11821# Avoid depending upon Character Ranges. 11822as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11823as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11824as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11825as_cr_digits='0123456789' 11826as_cr_alnum=$as_cr_Letters$as_cr_digits 11827 11828 11829# Determine whether it's possible to make 'echo' print without a newline. 11830# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11831# for compatibility with existing Makefiles. 11832ECHO_C= ECHO_N= ECHO_T= 11833case `echo -n x` in #((((( 11834-n*) 11835 case `echo 'xy\c'` in 11836 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11837 xy) ECHO_C='\c';; 11838 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11839 ECHO_T=' ';; 11840 esac;; 11841*) 11842 ECHO_N='-n';; 11843esac 11844 11845# For backward compatibility with old third-party macros, we provide 11846# the shell variables $as_echo and $as_echo_n. New code should use 11847# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11848as_echo='printf %s\n' 11849as_echo_n='printf %s' 11850 11851rm -f conf$$ conf$$.exe conf$$.file 11852if test -d conf$$.dir; then 11853 rm -f conf$$.dir/conf$$.file 11854else 11855 rm -f conf$$.dir 11856 mkdir conf$$.dir 2>/dev/null 11857fi 11858if (echo >conf$$.file) 2>/dev/null; then 11859 if ln -s conf$$.file conf$$ 2>/dev/null; then 11860 as_ln_s='ln -s' 11861 # ... but there are two gotchas: 11862 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11863 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11864 # In both cases, we have to default to `cp -pR'. 11865 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11866 as_ln_s='cp -pR' 11867 elif ln conf$$.file conf$$ 2>/dev/null; then 11868 as_ln_s=ln 11869 else 11870 as_ln_s='cp -pR' 11871 fi 11872else 11873 as_ln_s='cp -pR' 11874fi 11875rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11876rmdir conf$$.dir 2>/dev/null 11877 11878 11879# as_fn_mkdir_p 11880# ------------- 11881# Create "$as_dir" as a directory, including parents if necessary. 11882as_fn_mkdir_p () 11883{ 11884 11885 case $as_dir in #( 11886 -*) as_dir=./$as_dir;; 11887 esac 11888 test -d "$as_dir" || eval $as_mkdir_p || { 11889 as_dirs= 11890 while :; do 11891 case $as_dir in #( 11892 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11893 *) as_qdir=$as_dir;; 11894 esac 11895 as_dirs="'$as_qdir' $as_dirs" 11896 as_dir=`$as_dirname -- "$as_dir" || 11897$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11898 X"$as_dir" : 'X\(//\)[^/]' \| \ 11899 X"$as_dir" : 'X\(//\)$' \| \ 11900 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11901printf "%s\n" X"$as_dir" | 11902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11903 s//\1/ 11904 q 11905 } 11906 /^X\(\/\/\)[^/].*/{ 11907 s//\1/ 11908 q 11909 } 11910 /^X\(\/\/\)$/{ 11911 s//\1/ 11912 q 11913 } 11914 /^X\(\/\).*/{ 11915 s//\1/ 11916 q 11917 } 11918 s/.*/./; q'` 11919 test -d "$as_dir" && break 11920 done 11921 test -z "$as_dirs" || eval "mkdir $as_dirs" 11922 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11923 11924 11925} # as_fn_mkdir_p 11926if mkdir -p . 2>/dev/null; then 11927 as_mkdir_p='mkdir -p "$as_dir"' 11928else 11929 test -d ./-p && rmdir ./-p 11930 as_mkdir_p=false 11931fi 11932 11933 11934# as_fn_executable_p FILE 11935# ----------------------- 11936# Test if FILE is an executable regular file. 11937as_fn_executable_p () 11938{ 11939 test -f "$1" && test -x "$1" 11940} # as_fn_executable_p 11941as_test_x='test -x' 11942as_executable_p=as_fn_executable_p 11943 11944# Sed expression to map a string onto a valid CPP name. 11945as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11946 11947# Sed expression to map a string onto a valid variable name. 11948as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11949 11950 11951exec 6>&1 11952## ----------------------------------- ## 11953## Main body of $CONFIG_STATUS script. ## 11954## ----------------------------------- ## 11955_ASEOF 11956test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11957 11958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11959# Save the log message, to keep $0 and so on meaningful, and to 11960# report actual input values of CONFIG_FILES etc. instead of their 11961# values after options handling. 11962ac_log=" 11963This file was extended by xlsclients $as_me 1.1.5, which was 11964generated by GNU Autoconf 2.71. Invocation command line was 11965 11966 CONFIG_FILES = $CONFIG_FILES 11967 CONFIG_HEADERS = $CONFIG_HEADERS 11968 CONFIG_LINKS = $CONFIG_LINKS 11969 CONFIG_COMMANDS = $CONFIG_COMMANDS 11970 $ $0 $@ 11971 11972on `(hostname || uname -n) 2>/dev/null | sed 1q` 11973" 11974 11975_ACEOF 11976 11977case $ac_config_files in *" 11978"*) set x $ac_config_files; shift; ac_config_files=$*;; 11979esac 11980 11981case $ac_config_headers in *" 11982"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11983esac 11984 11985 11986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11987# Files that config.status was made for. 11988config_files="$ac_config_files" 11989config_headers="$ac_config_headers" 11990config_commands="$ac_config_commands" 11991 11992_ACEOF 11993 11994cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11995ac_cs_usage="\ 11996\`$as_me' instantiates files and other configuration actions 11997from templates according to the current configuration. Unless the files 11998and actions are specified as TAGs, all are instantiated by default. 11999 12000Usage: $0 [OPTION]... [TAG]... 12001 12002 -h, --help print this help, then exit 12003 -V, --version print version number and configuration settings, then exit 12004 --config print configuration, then exit 12005 -q, --quiet, --silent 12006 do not print progress messages 12007 -d, --debug don't remove temporary files 12008 --recheck update $as_me by reconfiguring in the same conditions 12009 --file=FILE[:TEMPLATE] 12010 instantiate the configuration file FILE 12011 --header=FILE[:TEMPLATE] 12012 instantiate the configuration header FILE 12013 12014Configuration files: 12015$config_files 12016 12017Configuration headers: 12018$config_headers 12019 12020Configuration commands: 12021$config_commands 12022 12023Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlsclients/-/issues>." 12024 12025_ACEOF 12026ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12027ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12029ac_cs_config='$ac_cs_config_escaped' 12030ac_cs_version="\\ 12031xlsclients config.status 1.1.5 12032configured by $0, generated by GNU Autoconf 2.71, 12033 with options \\"\$ac_cs_config\\" 12034 12035Copyright (C) 2021 Free Software Foundation, Inc. 12036This config.status script is free software; the Free Software Foundation 12037gives unlimited permission to copy, distribute and modify it." 12038 12039ac_pwd='$ac_pwd' 12040srcdir='$srcdir' 12041INSTALL='$INSTALL' 12042MKDIR_P='$MKDIR_P' 12043AWK='$AWK' 12044test -n "\$AWK" || AWK=awk 12045_ACEOF 12046 12047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12048# The default lists apply if the user does not specify any file. 12049ac_need_defaults=: 12050while test $# != 0 12051do 12052 case $1 in 12053 --*=?*) 12054 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12055 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12056 ac_shift=: 12057 ;; 12058 --*=) 12059 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12060 ac_optarg= 12061 ac_shift=: 12062 ;; 12063 *) 12064 ac_option=$1 12065 ac_optarg=$2 12066 ac_shift=shift 12067 ;; 12068 esac 12069 12070 case $ac_option in 12071 # Handling of the options. 12072 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12073 ac_cs_recheck=: ;; 12074 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12075 printf "%s\n" "$ac_cs_version"; exit ;; 12076 --config | --confi | --conf | --con | --co | --c ) 12077 printf "%s\n" "$ac_cs_config"; exit ;; 12078 --debug | --debu | --deb | --de | --d | -d ) 12079 debug=: ;; 12080 --file | --fil | --fi | --f ) 12081 $ac_shift 12082 case $ac_optarg in 12083 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12084 '') as_fn_error $? "missing file argument" ;; 12085 esac 12086 as_fn_append CONFIG_FILES " '$ac_optarg'" 12087 ac_need_defaults=false;; 12088 --header | --heade | --head | --hea ) 12089 $ac_shift 12090 case $ac_optarg in 12091 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12092 esac 12093 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12094 ac_need_defaults=false;; 12095 --he | --h) 12096 # Conflict between --help and --header 12097 as_fn_error $? "ambiguous option: \`$1' 12098Try \`$0 --help' for more information.";; 12099 --help | --hel | -h ) 12100 printf "%s\n" "$ac_cs_usage"; exit ;; 12101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12102 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12103 ac_cs_silent=: ;; 12104 12105 # This is an error. 12106 -*) as_fn_error $? "unrecognized option: \`$1' 12107Try \`$0 --help' for more information." ;; 12108 12109 *) as_fn_append ac_config_targets " $1" 12110 ac_need_defaults=false ;; 12111 12112 esac 12113 shift 12114done 12115 12116ac_configure_extra_args= 12117 12118if $ac_cs_silent; then 12119 exec 6>/dev/null 12120 ac_configure_extra_args="$ac_configure_extra_args --silent" 12121fi 12122 12123_ACEOF 12124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12125if \$ac_cs_recheck; then 12126 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12127 shift 12128 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12129 CONFIG_SHELL='$SHELL' 12130 export CONFIG_SHELL 12131 exec "\$@" 12132fi 12133 12134_ACEOF 12135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12136exec 5>>config.log 12137{ 12138 echo 12139 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12140## Running $as_me. ## 12141_ASBOX 12142 printf "%s\n" "$ac_log" 12143} >&5 12144 12145_ACEOF 12146cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12147# 12148# INIT-COMMANDS 12149# 12150AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12151 12152_ACEOF 12153 12154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12155 12156# Handling of arguments. 12157for ac_config_target in $ac_config_targets 12158do 12159 case $ac_config_target in 12160 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12161 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12162 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12163 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12164 12165 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12166 esac 12167done 12168 12169 12170# If the user did not use the arguments to specify the items to instantiate, 12171# then the envvar interface is used. Set only those that are not. 12172# We use the long form for the default assignment because of an extremely 12173# bizarre bug on SunOS 4.1.3. 12174if $ac_need_defaults; then 12175 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12176 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12177 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12178fi 12179 12180# Have a temporary directory for convenience. Make it in the build tree 12181# simply because there is no reason against having it here, and in addition, 12182# creating and moving files from /tmp can sometimes cause problems. 12183# Hook for its removal unless debugging. 12184# Note that there is a small window in which the directory will not be cleaned: 12185# after its creation but before its name has been assigned to `$tmp'. 12186$debug || 12187{ 12188 tmp= ac_tmp= 12189 trap 'exit_status=$? 12190 : "${ac_tmp:=$tmp}" 12191 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12192' 0 12193 trap 'as_fn_exit 1' 1 2 13 15 12194} 12195# Create a (secure) tmp directory for tmp files. 12196 12197{ 12198 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12199 test -d "$tmp" 12200} || 12201{ 12202 tmp=./conf$$-$RANDOM 12203 (umask 077 && mkdir "$tmp") 12204} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12205ac_tmp=$tmp 12206 12207# Set up the scripts for CONFIG_FILES section. 12208# No need to generate them if there are no CONFIG_FILES. 12209# This happens for instance with `./config.status config.h'. 12210if test -n "$CONFIG_FILES"; then 12211 12212 12213ac_cr=`echo X | tr X '\015'` 12214# On cygwin, bash can eat \r inside `` if the user requested igncr. 12215# But we know of no other shell where ac_cr would be empty at this 12216# point, so we can use a bashism as a fallback. 12217if test "x$ac_cr" = x; then 12218 eval ac_cr=\$\'\\r\' 12219fi 12220ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12221if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12222 ac_cs_awk_cr='\\r' 12223else 12224 ac_cs_awk_cr=$ac_cr 12225fi 12226 12227echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12228_ACEOF 12229 12230 12231{ 12232 echo "cat >conf$$subs.awk <<_ACEOF" && 12233 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12234 echo "_ACEOF" 12235} >conf$$subs.sh || 12236 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12237ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12238ac_delim='%!_!# ' 12239for ac_last_try in false false false false false :; do 12240 . ./conf$$subs.sh || 12241 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12242 12243 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12244 if test $ac_delim_n = $ac_delim_num; then 12245 break 12246 elif $ac_last_try; then 12247 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12248 else 12249 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12250 fi 12251done 12252rm -f conf$$subs.sh 12253 12254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12255cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12256_ACEOF 12257sed -n ' 12258h 12259s/^/S["/; s/!.*/"]=/ 12260p 12261g 12262s/^[^!]*!// 12263:repl 12264t repl 12265s/'"$ac_delim"'$// 12266t delim 12267:nl 12268h 12269s/\(.\{148\}\)..*/\1/ 12270t more1 12271s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12272p 12273n 12274b repl 12275:more1 12276s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12277p 12278g 12279s/.\{148\}// 12280t nl 12281:delim 12282h 12283s/\(.\{148\}\)..*/\1/ 12284t more2 12285s/["\\]/\\&/g; s/^/"/; s/$/"/ 12286p 12287b 12288:more2 12289s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12290p 12291g 12292s/.\{148\}// 12293t delim 12294' <conf$$subs.awk | sed ' 12295/^[^""]/{ 12296 N 12297 s/\n// 12298} 12299' >>$CONFIG_STATUS || ac_write_fail=1 12300rm -f conf$$subs.awk 12301cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12302_ACAWK 12303cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12304 for (key in S) S_is_set[key] = 1 12305 FS = "" 12306 12307} 12308{ 12309 line = $ 0 12310 nfields = split(line, field, "@") 12311 substed = 0 12312 len = length(field[1]) 12313 for (i = 2; i < nfields; i++) { 12314 key = field[i] 12315 keylen = length(key) 12316 if (S_is_set[key]) { 12317 value = S[key] 12318 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12319 len += length(value) + length(field[++i]) 12320 substed = 1 12321 } else 12322 len += 1 + keylen 12323 } 12324 12325 print line 12326} 12327 12328_ACAWK 12329_ACEOF 12330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12331if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12332 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12333else 12334 cat 12335fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12336 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12337_ACEOF 12338 12339# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12340# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12341# trailing colons and then remove the whole line if VPATH becomes empty 12342# (actually we leave an empty line to preserve line numbers). 12343if test "x$srcdir" = x.; then 12344 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12345h 12346s/// 12347s/^/:/ 12348s/[ ]*$/:/ 12349s/:\$(srcdir):/:/g 12350s/:\${srcdir}:/:/g 12351s/:@srcdir@:/:/g 12352s/^:*// 12353s/:*$// 12354x 12355s/\(=[ ]*\).*/\1/ 12356G 12357s/\n// 12358s/^[^=]*=[ ]*$// 12359}' 12360fi 12361 12362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12363fi # test -n "$CONFIG_FILES" 12364 12365# Set up the scripts for CONFIG_HEADERS section. 12366# No need to generate them if there are no CONFIG_HEADERS. 12367# This happens for instance with `./config.status Makefile'. 12368if test -n "$CONFIG_HEADERS"; then 12369cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12370BEGIN { 12371_ACEOF 12372 12373# Transform confdefs.h into an awk script `defines.awk', embedded as 12374# here-document in config.status, that substitutes the proper values into 12375# config.h.in to produce config.h. 12376 12377# Create a delimiter string that does not exist in confdefs.h, to ease 12378# handling of long lines. 12379ac_delim='%!_!# ' 12380for ac_last_try in false false :; do 12381 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12382 if test -z "$ac_tt"; then 12383 break 12384 elif $ac_last_try; then 12385 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12386 else 12387 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12388 fi 12389done 12390 12391# For the awk script, D is an array of macro values keyed by name, 12392# likewise P contains macro parameters if any. Preserve backslash 12393# newline sequences. 12394 12395ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12396sed -n ' 12397s/.\{148\}/&'"$ac_delim"'/g 12398t rset 12399:rset 12400s/^[ ]*#[ ]*define[ ][ ]*/ / 12401t def 12402d 12403:def 12404s/\\$// 12405t bsnl 12406s/["\\]/\\&/g 12407s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12408D["\1"]=" \3"/p 12409s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12410d 12411:bsnl 12412s/["\\]/\\&/g 12413s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12414D["\1"]=" \3\\\\\\n"\\/p 12415t cont 12416s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12417t cont 12418d 12419:cont 12420n 12421s/.\{148\}/&'"$ac_delim"'/g 12422t clear 12423:clear 12424s/\\$// 12425t bsnlc 12426s/["\\]/\\&/g; s/^/"/; s/$/"/p 12427d 12428:bsnlc 12429s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12430b cont 12431' <confdefs.h | sed ' 12432s/'"$ac_delim"'/"\\\ 12433"/g' >>$CONFIG_STATUS || ac_write_fail=1 12434 12435cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12436 for (key in D) D_is_set[key] = 1 12437 FS = "" 12438} 12439/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12440 line = \$ 0 12441 split(line, arg, " ") 12442 if (arg[1] == "#") { 12443 defundef = arg[2] 12444 mac1 = arg[3] 12445 } else { 12446 defundef = substr(arg[1], 2) 12447 mac1 = arg[2] 12448 } 12449 split(mac1, mac2, "(") #) 12450 macro = mac2[1] 12451 prefix = substr(line, 1, index(line, defundef) - 1) 12452 if (D_is_set[macro]) { 12453 # Preserve the white space surrounding the "#". 12454 print prefix "define", macro P[macro] D[macro] 12455 next 12456 } else { 12457 # Replace #undef with comments. This is necessary, for example, 12458 # in the case of _POSIX_SOURCE, which is predefined and required 12459 # on some systems where configure will not decide to define it. 12460 if (defundef == "undef") { 12461 print "/*", prefix defundef, macro, "*/" 12462 next 12463 } 12464 } 12465} 12466{ print } 12467_ACAWK 12468_ACEOF 12469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12470 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12471fi # test -n "$CONFIG_HEADERS" 12472 12473 12474eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12475shift 12476for ac_tag 12477do 12478 case $ac_tag in 12479 :[FHLC]) ac_mode=$ac_tag; continue;; 12480 esac 12481 case $ac_mode$ac_tag in 12482 :[FHL]*:*);; 12483 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12484 :[FH]-) ac_tag=-:-;; 12485 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12486 esac 12487 ac_save_IFS=$IFS 12488 IFS=: 12489 set x $ac_tag 12490 IFS=$ac_save_IFS 12491 shift 12492 ac_file=$1 12493 shift 12494 12495 case $ac_mode in 12496 :L) ac_source=$1;; 12497 :[FH]) 12498 ac_file_inputs= 12499 for ac_f 12500 do 12501 case $ac_f in 12502 -) ac_f="$ac_tmp/stdin";; 12503 *) # Look for the file first in the build tree, then in the source tree 12504 # (if the path is not absolute). The absolute path cannot be DOS-style, 12505 # because $ac_f cannot contain `:'. 12506 test -f "$ac_f" || 12507 case $ac_f in 12508 [\\/$]*) false;; 12509 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12510 esac || 12511 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12512 esac 12513 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12514 as_fn_append ac_file_inputs " '$ac_f'" 12515 done 12516 12517 # Let's still pretend it is `configure' which instantiates (i.e., don't 12518 # use $as_me), people would be surprised to read: 12519 # /* config.h. Generated by config.status. */ 12520 configure_input='Generated from '` 12521 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12522 `' by configure.' 12523 if test x"$ac_file" != x-; then 12524 configure_input="$ac_file. $configure_input" 12525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12526printf "%s\n" "$as_me: creating $ac_file" >&6;} 12527 fi 12528 # Neutralize special characters interpreted by sed in replacement strings. 12529 case $configure_input in #( 12530 *\&* | *\|* | *\\* ) 12531 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12532 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12533 *) ac_sed_conf_input=$configure_input;; 12534 esac 12535 12536 case $ac_tag in 12537 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12538 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12539 esac 12540 ;; 12541 esac 12542 12543 ac_dir=`$as_dirname -- "$ac_file" || 12544$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12545 X"$ac_file" : 'X\(//\)[^/]' \| \ 12546 X"$ac_file" : 'X\(//\)$' \| \ 12547 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12548printf "%s\n" X"$ac_file" | 12549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12550 s//\1/ 12551 q 12552 } 12553 /^X\(\/\/\)[^/].*/{ 12554 s//\1/ 12555 q 12556 } 12557 /^X\(\/\/\)$/{ 12558 s//\1/ 12559 q 12560 } 12561 /^X\(\/\).*/{ 12562 s//\1/ 12563 q 12564 } 12565 s/.*/./; q'` 12566 as_dir="$ac_dir"; as_fn_mkdir_p 12567 ac_builddir=. 12568 12569case "$ac_dir" in 12570.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12571*) 12572 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12573 # A ".." for each directory in $ac_dir_suffix. 12574 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12575 case $ac_top_builddir_sub in 12576 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12577 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12578 esac ;; 12579esac 12580ac_abs_top_builddir=$ac_pwd 12581ac_abs_builddir=$ac_pwd$ac_dir_suffix 12582# for backward compatibility: 12583ac_top_builddir=$ac_top_build_prefix 12584 12585case $srcdir in 12586 .) # We are building in place. 12587 ac_srcdir=. 12588 ac_top_srcdir=$ac_top_builddir_sub 12589 ac_abs_top_srcdir=$ac_pwd ;; 12590 [\\/]* | ?:[\\/]* ) # Absolute name. 12591 ac_srcdir=$srcdir$ac_dir_suffix; 12592 ac_top_srcdir=$srcdir 12593 ac_abs_top_srcdir=$srcdir ;; 12594 *) # Relative name. 12595 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12596 ac_top_srcdir=$ac_top_build_prefix$srcdir 12597 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12598esac 12599ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12600 12601 12602 case $ac_mode in 12603 :F) 12604 # 12605 # CONFIG_FILE 12606 # 12607 12608 case $INSTALL in 12609 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12610 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12611 esac 12612 ac_MKDIR_P=$MKDIR_P 12613 case $MKDIR_P in 12614 [\\/$]* | ?:[\\/]* ) ;; 12615 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12616 esac 12617_ACEOF 12618 12619cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12620# If the template does not know about datarootdir, expand it. 12621# FIXME: This hack should be removed a few years after 2.60. 12622ac_datarootdir_hack=; ac_datarootdir_seen= 12623ac_sed_dataroot=' 12624/datarootdir/ { 12625 p 12626 q 12627} 12628/@datadir@/p 12629/@docdir@/p 12630/@infodir@/p 12631/@localedir@/p 12632/@mandir@/p' 12633case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12634*datarootdir*) ac_datarootdir_seen=yes;; 12635*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12637printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12638_ACEOF 12639cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12640 ac_datarootdir_hack=' 12641 s&@datadir@&$datadir&g 12642 s&@docdir@&$docdir&g 12643 s&@infodir@&$infodir&g 12644 s&@localedir@&$localedir&g 12645 s&@mandir@&$mandir&g 12646 s&\\\${datarootdir}&$datarootdir&g' ;; 12647esac 12648_ACEOF 12649 12650# Neutralize VPATH when `$srcdir' = `.'. 12651# Shell code in configure.ac might set extrasub. 12652# FIXME: do we really want to maintain this feature? 12653cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12654ac_sed_extra="$ac_vpsub 12655$extrasub 12656_ACEOF 12657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12658:t 12659/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12660s|@configure_input@|$ac_sed_conf_input|;t t 12661s&@top_builddir@&$ac_top_builddir_sub&;t t 12662s&@top_build_prefix@&$ac_top_build_prefix&;t t 12663s&@srcdir@&$ac_srcdir&;t t 12664s&@abs_srcdir@&$ac_abs_srcdir&;t t 12665s&@top_srcdir@&$ac_top_srcdir&;t t 12666s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12667s&@builddir@&$ac_builddir&;t t 12668s&@abs_builddir@&$ac_abs_builddir&;t t 12669s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12670s&@INSTALL@&$ac_INSTALL&;t t 12671s&@MKDIR_P@&$ac_MKDIR_P&;t t 12672$ac_datarootdir_hack 12673" 12674eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12675 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12676 12677test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12678 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12679 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12680 "$ac_tmp/out"`; test -z "$ac_out"; } && 12681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12682which seems to be undefined. Please make sure it is defined" >&5 12683printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12684which seems to be undefined. Please make sure it is defined" >&2;} 12685 12686 rm -f "$ac_tmp/stdin" 12687 case $ac_file in 12688 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12689 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12690 esac \ 12691 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12692 ;; 12693 :H) 12694 # 12695 # CONFIG_HEADER 12696 # 12697 if test x"$ac_file" != x-; then 12698 { 12699 printf "%s\n" "/* $configure_input */" >&1 \ 12700 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12701 } >"$ac_tmp/config.h" \ 12702 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12703 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12705printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12706 else 12707 rm -f "$ac_file" 12708 mv "$ac_tmp/config.h" "$ac_file" \ 12709 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12710 fi 12711 else 12712 printf "%s\n" "/* $configure_input */" >&1 \ 12713 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12714 || as_fn_error $? "could not create -" "$LINENO" 5 12715 fi 12716# Compute "$ac_file"'s index in $config_headers. 12717_am_arg="$ac_file" 12718_am_stamp_count=1 12719for _am_header in $config_headers :; do 12720 case $_am_header in 12721 $_am_arg | $_am_arg:* ) 12722 break ;; 12723 * ) 12724 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12725 esac 12726done 12727echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12728$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12729 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12730 X"$_am_arg" : 'X\(//\)$' \| \ 12731 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12732printf "%s\n" X"$_am_arg" | 12733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12734 s//\1/ 12735 q 12736 } 12737 /^X\(\/\/\)[^/].*/{ 12738 s//\1/ 12739 q 12740 } 12741 /^X\(\/\/\)$/{ 12742 s//\1/ 12743 q 12744 } 12745 /^X\(\/\).*/{ 12746 s//\1/ 12747 q 12748 } 12749 s/.*/./; q'`/stamp-h$_am_stamp_count 12750 ;; 12751 12752 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12753printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12754 ;; 12755 esac 12756 12757 12758 case $ac_file$ac_mode in 12759 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12760 # Older Autoconf quotes --file arguments for eval, but not when files 12761 # are listed without --file. Let's play safe and only enable the eval 12762 # if we detect the quoting. 12763 # TODO: see whether this extra hack can be removed once we start 12764 # requiring Autoconf 2.70 or later. 12765 case $CONFIG_FILES in #( 12766 *\'*) : 12767 eval set x "$CONFIG_FILES" ;; #( 12768 *) : 12769 set x $CONFIG_FILES ;; #( 12770 *) : 12771 ;; 12772esac 12773 shift 12774 # Used to flag and report bootstrapping failures. 12775 am_rc=0 12776 for am_mf 12777 do 12778 # Strip MF so we end up with the name of the file. 12779 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12780 # Check whether this is an Automake generated Makefile which includes 12781 # dependency-tracking related rules and includes. 12782 # Grep'ing the whole file directly is not great: AIX grep has a line 12783 # limit of 2048, but all sed's we know have understand at least 4000. 12784 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12785 || continue 12786 am_dirpart=`$as_dirname -- "$am_mf" || 12787$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12788 X"$am_mf" : 'X\(//\)[^/]' \| \ 12789 X"$am_mf" : 'X\(//\)$' \| \ 12790 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12791printf "%s\n" X"$am_mf" | 12792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12793 s//\1/ 12794 q 12795 } 12796 /^X\(\/\/\)[^/].*/{ 12797 s//\1/ 12798 q 12799 } 12800 /^X\(\/\/\)$/{ 12801 s//\1/ 12802 q 12803 } 12804 /^X\(\/\).*/{ 12805 s//\1/ 12806 q 12807 } 12808 s/.*/./; q'` 12809 am_filepart=`$as_basename -- "$am_mf" || 12810$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12811 X"$am_mf" : 'X\(//\)$' \| \ 12812 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12813printf "%s\n" X/"$am_mf" | 12814 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12815 s//\1/ 12816 q 12817 } 12818 /^X\/\(\/\/\)$/{ 12819 s//\1/ 12820 q 12821 } 12822 /^X\/\(\/\).*/{ 12823 s//\1/ 12824 q 12825 } 12826 s/.*/./; q'` 12827 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12828 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12829 | $MAKE -f - am--depfiles" >&5 12830 (cd "$am_dirpart" \ 12831 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12832 | $MAKE -f - am--depfiles) >&5 2>&5 12833 ac_status=$? 12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12835 (exit $ac_status); } || am_rc=$? 12836 done 12837 if test $am_rc -ne 0; then 12838 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12839printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12840as_fn_error $? "Something went wrong bootstrapping makefile fragments 12841 for automatic dependency tracking. If GNU make was not used, consider 12842 re-running the configure script with MAKE=\"gmake\" (or whatever is 12843 necessary). You can also try re-running configure with the 12844 '--disable-dependency-tracking' option to at least be able to build 12845 the package (albeit without support for automatic dependency tracking). 12846See \`config.log' for more details" "$LINENO" 5; } 12847 fi 12848 { am_dirpart=; unset am_dirpart;} 12849 { am_filepart=; unset am_filepart;} 12850 { am_mf=; unset am_mf;} 12851 { am_rc=; unset am_rc;} 12852 rm -f conftest-deps.mk 12853} 12854 ;; 12855 12856 esac 12857done # for ac_tag 12858 12859 12860as_fn_exit 0 12861_ACEOF 12862ac_clean_files=$ac_clean_files_save 12863 12864test $ac_write_fail = 0 || 12865 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12866 12867 12868# configure is writing to config.log, and then calls config.status. 12869# config.status does its own redirection, appending to config.log. 12870# Unfortunately, on DOS this fails, as config.log is still kept open 12871# by configure, so config.status won't be able to write to it; its 12872# output is simply discarded. So we exec the FD to /dev/null, 12873# effectively closing config.log, so it can be properly (re)opened and 12874# appended to by config.status. When coming back to configure, we 12875# need to make the FD available again. 12876if test "$no_create" != yes; then 12877 ac_cs_success=: 12878 ac_config_status_args= 12879 test "$silent" = yes && 12880 ac_config_status_args="$ac_config_status_args --quiet" 12881 exec 5>/dev/null 12882 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12883 exec 5>>config.log 12884 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12885 # would make configure fail if this is the last instruction. 12886 $ac_cs_success || as_fn_exit 1 12887fi 12888if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12890printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12891fi 12892 12893 12894