configure revision f6d57fde
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for xauth 1.1.4. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as 'sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed 'exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157esac ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177esac 178fi 179test x\$exitcode = x0 || exit 1 180blah=\$(echo \$(echo blah)) 181test x\"\$blah\" = xblah || exit 1 182test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187test \$(( 1 + 1 )) = 2 || exit 1" 188 if (eval "$as_required") 2>/dev/null 189then : 190 as_have_required=yes 191else case e in #( 192 e) as_have_required=no ;; 193esac 194fi 195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 196then : 197 198else case e in #( 199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 200as_found=false 201for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 202do 203 IFS=$as_save_IFS 204 case $as_dir in #((( 205 '') as_dir=./ ;; 206 */) ;; 207 *) as_dir=$as_dir/ ;; 208 esac 209 as_found=: 210 case $as_dir in #( 211 /*) 212 for as_base in sh bash ksh sh5; do 213 # Try only shells that exist, to save several forks. 214 as_shell=$as_dir$as_base 215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 217then : 218 CONFIG_SHELL=$as_shell as_have_required=yes 219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 220then : 221 break 2 222fi 223fi 224 done;; 225 esac 226 as_found=false 227done 228IFS=$as_save_IFS 229if $as_found 230then : 231 232else case e in #( 233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 235then : 236 CONFIG_SHELL=$SHELL as_have_required=yes 237fi ;; 238esac 239fi 240 241 242 if test "x$CONFIG_SHELL" != x 243then : 244 export CONFIG_SHELL 245 # We cannot yet assume a decent shell, so we have to provide a 246# neutralization value for shells without unset; and this also 247# works around shells that cannot unset nonexistent variables. 248# Preserve -v and -x to the replacement shell. 249BASH_ENV=/dev/null 250ENV=/dev/null 251(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 252case $- in # (((( 253 *v*x* | *x*v* ) as_opts=-vx ;; 254 *v* ) as_opts=-v ;; 255 *x* ) as_opts=-x ;; 256 * ) as_opts= ;; 257esac 258exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 259# Admittedly, this is quite paranoid, since all the known shells bail 260# out after a failed 'exec'. 261printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 262exit 255 263fi 264 265 if test x$as_have_required = xno 266then : 267 printf "%s\n" "$0: This script requires a shell more modern than all" 268 printf "%s\n" "$0: the shells that I found on your system." 269 if test ${ZSH_VERSION+y} ; then 270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 272 else 273 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 274$0: https://gitlab.freedesktop.org/xorg/app/xauth/-/issues 275$0: about your system, including any error possibly output 276$0: before this message. Then install a modern shell, or 277$0: manually run the script under such a shell if you do 278$0: have one." 279 fi 280 exit 1 281fi ;; 282esac 283fi 284fi 285SHELL=${CONFIG_SHELL-/bin/sh} 286export SHELL 287# Unset more variables known to interfere with behavior of common tools. 288CLICOLOR_FORCE= GREP_OPTIONS= 289unset CLICOLOR_FORCE GREP_OPTIONS 290 291## --------------------- ## 292## M4sh Shell Functions. ## 293## --------------------- ## 294# as_fn_unset VAR 295# --------------- 296# Portably unset VAR. 297as_fn_unset () 298{ 299 { eval $1=; unset $1;} 300} 301as_unset=as_fn_unset 302 303 304# as_fn_set_status STATUS 305# ----------------------- 306# Set $? to STATUS, without forking. 307as_fn_set_status () 308{ 309 return $1 310} # as_fn_set_status 311 312# as_fn_exit STATUS 313# ----------------- 314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 315as_fn_exit () 316{ 317 set +e 318 as_fn_set_status $1 319 exit $1 320} # as_fn_exit 321 322# as_fn_mkdir_p 323# ------------- 324# Create "$as_dir" as a directory, including parents if necessary. 325as_fn_mkdir_p () 326{ 327 328 case $as_dir in #( 329 -*) as_dir=./$as_dir;; 330 esac 331 test -d "$as_dir" || eval $as_mkdir_p || { 332 as_dirs= 333 while :; do 334 case $as_dir in #( 335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 336 *) as_qdir=$as_dir;; 337 esac 338 as_dirs="'$as_qdir' $as_dirs" 339 as_dir=`$as_dirname -- "$as_dir" || 340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 341 X"$as_dir" : 'X\(//\)[^/]' \| \ 342 X"$as_dir" : 'X\(//\)$' \| \ 343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 344printf "%s\n" X"$as_dir" | 345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 346 s//\1/ 347 q 348 } 349 /^X\(\/\/\)[^/].*/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\).*/{ 358 s//\1/ 359 q 360 } 361 s/.*/./; q'` 362 test -d "$as_dir" && break 363 done 364 test -z "$as_dirs" || eval "mkdir $as_dirs" 365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 366 367 368} # as_fn_mkdir_p 369 370# as_fn_executable_p FILE 371# ----------------------- 372# Test if FILE is an executable regular file. 373as_fn_executable_p () 374{ 375 test -f "$1" && test -x "$1" 376} # as_fn_executable_p 377# as_fn_append VAR VALUE 378# ---------------------- 379# Append the text in VALUE to the end of the definition contained in VAR. Take 380# advantage of any shell optimizations that allow amortized linear growth over 381# repeated appends, instead of the typical quadratic growth present in naive 382# implementations. 383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 384then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else case e in #( 390 e) as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } ;; 394esac 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 403then : 404 eval 'as_fn_arith () 405 { 406 as_val=$(( $* )) 407 }' 408else case e in #( 409 e) as_fn_arith () 410 { 411 as_val=`expr "$@" || test $? -eq 1` 412 } ;; 413esac 414fi # as_fn_arith 415 416 417# as_fn_error STATUS ERROR [LINENO LOG_FD] 418# ---------------------------------------- 419# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 420# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 421# script with STATUS, using 1 if that was 0. 422as_fn_error () 423{ 424 as_status=$1; test $as_status -eq 0 && as_status=1 425 if test "$4"; then 426 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 428 fi 429 printf "%s\n" "$as_me: error: $2" >&2 430 as_fn_exit $as_status 431} # as_fn_error 432 433if expr a : '\(a\)' >/dev/null 2>&1 && 434 test "X`expr 00001 : '.*\(...\)'`" = X001; then 435 as_expr=expr 436else 437 as_expr=false 438fi 439 440if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 441 as_basename=basename 442else 443 as_basename=false 444fi 445 446if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 447 as_dirname=dirname 448else 449 as_dirname=false 450fi 451 452as_me=`$as_basename -- "$0" || 453$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 454 X"$0" : 'X\(//\)$' \| \ 455 X"$0" : 'X\(/\)' \| . 2>/dev/null || 456printf "%s\n" X/"$0" | 457 sed '/^.*\/\([^/][^/]*\)\/*$/{ 458 s//\1/ 459 q 460 } 461 /^X\/\(\/\/\)$/{ 462 s//\1/ 463 q 464 } 465 /^X\/\(\/\).*/{ 466 s//\1/ 467 q 468 } 469 s/.*/./; q'` 470 471# Avoid depending upon Character Ranges. 472as_cr_letters='abcdefghijklmnopqrstuvwxyz' 473as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 474as_cr_Letters=$as_cr_letters$as_cr_LETTERS 475as_cr_digits='0123456789' 476as_cr_alnum=$as_cr_Letters$as_cr_digits 477 478 479 as_lineno_1=$LINENO as_lineno_1a=$LINENO 480 as_lineno_2=$LINENO as_lineno_2a=$LINENO 481 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 482 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 483 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 484 sed -n ' 485 p 486 /[$]LINENO/= 487 ' <$as_myself | 488 sed ' 489 t clear 490 :clear 491 s/[$]LINENO.*/&-/ 492 t lineno 493 b 494 :lineno 495 N 496 :loop 497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 498 t loop 499 s/-\n.*// 500 ' >$as_me.lineno && 501 chmod +x "$as_me.lineno" || 502 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 503 504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 505 # already done that, so ensure we don't try to do so again and fall 506 # in an infinite loop. This has already happened in practice. 507 _as_can_reexec=no; export _as_can_reexec 508 # Don't try to exec as it changes $[0], causing all sort of problems 509 # (the dirname of $[0] is not the place where we might find the 510 # original and so on. Autoconf is especially sensitive to this). 511 . "./$as_me.lineno" 512 # Exit status is that of the last command. 513 exit 514} 515 516 517# Determine whether it's possible to make 'echo' print without a newline. 518# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 519# for compatibility with existing Makefiles. 520ECHO_C= ECHO_N= ECHO_T= 521case `echo -n x` in #((((( 522-n*) 523 case `echo 'xy\c'` in 524 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 525 xy) ECHO_C='\c';; 526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 527 ECHO_T=' ';; 528 esac;; 529*) 530 ECHO_N='-n';; 531esac 532 533# For backward compatibility with old third-party macros, we provide 534# the shell variables $as_echo and $as_echo_n. New code should use 535# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 536as_echo='printf %s\n' 537as_echo_n='printf %s' 538 539rm -f conf$$ conf$$.exe conf$$.file 540if test -d conf$$.dir; then 541 rm -f conf$$.dir/conf$$.file 542else 543 rm -f conf$$.dir 544 mkdir conf$$.dir 2>/dev/null 545fi 546if (echo >conf$$.file) 2>/dev/null; then 547 if ln -s conf$$.file conf$$ 2>/dev/null; then 548 as_ln_s='ln -s' 549 # ... but there are two gotchas: 550 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 551 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 552 # In both cases, we have to default to 'cp -pR'. 553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 554 as_ln_s='cp -pR' 555 elif ln conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s=ln 557 else 558 as_ln_s='cp -pR' 559 fi 560else 561 as_ln_s='cp -pR' 562fi 563rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 564rmdir conf$$.dir 2>/dev/null 565 566if mkdir -p . 2>/dev/null; then 567 as_mkdir_p='mkdir -p "$as_dir"' 568else 569 test -d ./-p && rmdir ./-p 570 as_mkdir_p=false 571fi 572 573as_test_x='test -x' 574as_executable_p=as_fn_executable_p 575 576# Sed expression to map a string onto a valid CPP name. 577as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 578as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 579 580# Sed expression to map a string onto a valid variable name. 581as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 582as_tr_sh="eval sed '$as_sed_sh'" # deprecated 583 584 585test -n "$DJDIR" || exec 7<&0 </dev/null 586exec 6>&1 587 588# Name of the host. 589# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 590# so uname gets run too. 591ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 592 593# 594# Initializations. 595# 596ac_default_prefix=/usr/local 597ac_clean_files= 598ac_config_libobj_dir=. 599LIBOBJS= 600cross_compiling=no 601subdirs= 602MFLAGS= 603MAKEFLAGS= 604 605# Identity of this package. 606PACKAGE_NAME='xauth' 607PACKAGE_TARNAME='xauth' 608PACKAGE_VERSION='1.1.4' 609PACKAGE_STRING='xauth 1.1.4' 610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xauth/-/issues' 611PACKAGE_URL='' 612 613ac_unique_file="xauth.c" 614# Factoring default headers for most tests. 615ac_includes_default="\ 616#include <stddef.h> 617#ifdef HAVE_STDIO_H 618# include <stdio.h> 619#endif 620#ifdef HAVE_STDLIB_H 621# include <stdlib.h> 622#endif 623#ifdef HAVE_STRING_H 624# include <string.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_STRINGS_H 633# include <strings.h> 634#endif 635#ifdef HAVE_SYS_TYPES_H 636# include <sys/types.h> 637#endif 638#ifdef HAVE_SYS_STAT_H 639# include <sys/stat.h> 640#endif 641#ifdef HAVE_UNISTD_H 642# include <unistd.h> 643#endif" 644 645ac_header_c_list= 646enable_year2038=no 647ac_subst_vars='am__EXEEXT_FALSE 648am__EXEEXT_TRUE 649LTLIBOBJS 650LIBOBJS 651LINT_FALSE 652LINT_TRUE 653LINT_FLAGS 654LINT 655XAUTH_LIBS 656XAUTH_CFLAGS 657MAN_SUBSTS 658XORG_MAN_PAGE 659ADMIN_MAN_DIR 660DRIVER_MAN_DIR 661MISC_MAN_DIR 662FILE_MAN_DIR 663LIB_MAN_DIR 664APP_MAN_DIR 665ADMIN_MAN_SUFFIX 666DRIVER_MAN_SUFFIX 667MISC_MAN_SUFFIX 668FILE_MAN_SUFFIX 669LIB_MAN_SUFFIX 670APP_MAN_SUFFIX 671SED 672host_os 673host_vendor 674host_cpu 675host 676build_os 677build_vendor 678build_cpu 679build 680INSTALL_CMD 681PKG_CONFIG_LIBDIR 682PKG_CONFIG_PATH 683PKG_CONFIG 684CHANGELOG_CMD 685STRICT_CFLAGS 686CWARNFLAGS 687BASE_CFLAGS 688am__xargs_n 689am__rm_f_notfound 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 783enable_largefile 784enable_unix_transport 785enable_tcp_transport 786enable_ipv6 787enable_local_transport 788with_lint 789enable_year2038 790' 791 ac_precious_vars='build_alias 792host_alias 793target_alias 794CC 795CFLAGS 796LDFLAGS 797LIBS 798CPPFLAGS 799PKG_CONFIG 800PKG_CONFIG_PATH 801PKG_CONFIG_LIBDIR 802XAUTH_CFLAGS 803XAUTH_LIBS 804LINT 805LINT_FLAGS' 806 807 808# Initialize some variables set by options. 809ac_init_help= 810ac_init_version=false 811ac_unrecognized_opts= 812ac_unrecognized_sep= 813# The variables have the same names as the options, with 814# dashes changed to underlines. 815cache_file=/dev/null 816exec_prefix=NONE 817no_create= 818no_recursion= 819prefix=NONE 820program_prefix=NONE 821program_suffix=NONE 822program_transform_name=s,x,x, 823silent= 824site= 825srcdir= 826verbose= 827x_includes=NONE 828x_libraries=NONE 829 830# Installation directory options. 831# These are left unexpanded so users can "make install exec_prefix=/foo" 832# and all the variables that are supposed to be based on exec_prefix 833# by default will actually change. 834# Use braces instead of parens because sh, perl, etc. also accept them. 835# (The list follows the same order as the GNU Coding Standards.) 836bindir='${exec_prefix}/bin' 837sbindir='${exec_prefix}/sbin' 838libexecdir='${exec_prefix}/libexec' 839datarootdir='${prefix}/share' 840datadir='${datarootdir}' 841sysconfdir='${prefix}/etc' 842sharedstatedir='${prefix}/com' 843localstatedir='${prefix}/var' 844runstatedir='${localstatedir}/run' 845includedir='${prefix}/include' 846oldincludedir='/usr/include' 847docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 848infodir='${datarootdir}/info' 849htmldir='${docdir}' 850dvidir='${docdir}' 851pdfdir='${docdir}' 852psdir='${docdir}' 853libdir='${exec_prefix}/lib' 854localedir='${datarootdir}/locale' 855mandir='${datarootdir}/man' 856 857ac_prev= 858ac_dashdash= 859for ac_option 860do 861 # If the previous option needs an argument, assign it. 862 if test -n "$ac_prev"; then 863 eval $ac_prev=\$ac_option 864 ac_prev= 865 continue 866 fi 867 868 case $ac_option in 869 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 870 *=) ac_optarg= ;; 871 *) ac_optarg=yes ;; 872 esac 873 874 case $ac_dashdash$ac_option in 875 --) 876 ac_dashdash=yes ;; 877 878 -bindir | --bindir | --bindi | --bind | --bin | --bi) 879 ac_prev=bindir ;; 880 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 881 bindir=$ac_optarg ;; 882 883 -build | --build | --buil | --bui | --bu) 884 ac_prev=build_alias ;; 885 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 886 build_alias=$ac_optarg ;; 887 888 -cache-file | --cache-file | --cache-fil | --cache-fi \ 889 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 890 ac_prev=cache_file ;; 891 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 892 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 893 cache_file=$ac_optarg ;; 894 895 --config-cache | -C) 896 cache_file=config.cache ;; 897 898 -datadir | --datadir | --datadi | --datad) 899 ac_prev=datadir ;; 900 -datadir=* | --datadir=* | --datadi=* | --datad=*) 901 datadir=$ac_optarg ;; 902 903 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 904 | --dataroo | --dataro | --datar) 905 ac_prev=datarootdir ;; 906 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 907 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 908 datarootdir=$ac_optarg ;; 909 910 -disable-* | --disable-*) 911 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 912 # Reject names that are not valid shell variable names. 913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 914 as_fn_error $? "invalid feature name: '$ac_useropt'" 915 ac_useropt_orig=$ac_useropt 916 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 917 case $ac_user_opts in 918 *" 919"enable_$ac_useropt" 920"*) ;; 921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 922 ac_unrecognized_sep=', ';; 923 esac 924 eval enable_$ac_useropt=no ;; 925 926 -docdir | --docdir | --docdi | --doc | --do) 927 ac_prev=docdir ;; 928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 929 docdir=$ac_optarg ;; 930 931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 932 ac_prev=dvidir ;; 933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 934 dvidir=$ac_optarg ;; 935 936 -enable-* | --enable-*) 937 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 938 # Reject names that are not valid shell variable names. 939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 940 as_fn_error $? "invalid feature name: '$ac_useropt'" 941 ac_useropt_orig=$ac_useropt 942 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 943 case $ac_user_opts in 944 *" 945"enable_$ac_useropt" 946"*) ;; 947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 948 ac_unrecognized_sep=', ';; 949 esac 950 eval enable_$ac_useropt=\$ac_optarg ;; 951 952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 954 | --exec | --exe | --ex) 955 ac_prev=exec_prefix ;; 956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 958 | --exec=* | --exe=* | --ex=*) 959 exec_prefix=$ac_optarg ;; 960 961 -gas | --gas | --ga | --g) 962 # Obsolete; use --with-gas. 963 with_gas=yes ;; 964 965 -help | --help | --hel | --he | -h) 966 ac_init_help=long ;; 967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 968 ac_init_help=recursive ;; 969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 970 ac_init_help=short ;; 971 972 -host | --host | --hos | --ho) 973 ac_prev=host_alias ;; 974 -host=* | --host=* | --hos=* | --ho=*) 975 host_alias=$ac_optarg ;; 976 977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 978 ac_prev=htmldir ;; 979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 980 | --ht=*) 981 htmldir=$ac_optarg ;; 982 983 -includedir | --includedir | --includedi | --included | --include \ 984 | --includ | --inclu | --incl | --inc) 985 ac_prev=includedir ;; 986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 987 | --includ=* | --inclu=* | --incl=* | --inc=*) 988 includedir=$ac_optarg ;; 989 990 -infodir | --infodir | --infodi | --infod | --info | --inf) 991 ac_prev=infodir ;; 992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 993 infodir=$ac_optarg ;; 994 995 -libdir | --libdir | --libdi | --libd) 996 ac_prev=libdir ;; 997 -libdir=* | --libdir=* | --libdi=* | --libd=*) 998 libdir=$ac_optarg ;; 999 1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1001 | --libexe | --libex | --libe) 1002 ac_prev=libexecdir ;; 1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1004 | --libexe=* | --libex=* | --libe=*) 1005 libexecdir=$ac_optarg ;; 1006 1007 -localedir | --localedir | --localedi | --localed | --locale) 1008 ac_prev=localedir ;; 1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1010 localedir=$ac_optarg ;; 1011 1012 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1013 | --localstate | --localstat | --localsta | --localst | --locals) 1014 ac_prev=localstatedir ;; 1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1017 localstatedir=$ac_optarg ;; 1018 1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1020 ac_prev=mandir ;; 1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1022 mandir=$ac_optarg ;; 1023 1024 -nfp | --nfp | --nf) 1025 # Obsolete; use --without-fp. 1026 with_fp=no ;; 1027 1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1029 | --no-cr | --no-c | -n) 1030 no_create=yes ;; 1031 1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1034 no_recursion=yes ;; 1035 1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1038 | --oldin | --oldi | --old | --ol | --o) 1039 ac_prev=oldincludedir ;; 1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1043 oldincludedir=$ac_optarg ;; 1044 1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1046 ac_prev=prefix ;; 1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1048 prefix=$ac_optarg ;; 1049 1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1051 | --program-pre | --program-pr | --program-p) 1052 ac_prev=program_prefix ;; 1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1055 program_prefix=$ac_optarg ;; 1056 1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1058 | --program-suf | --program-su | --program-s) 1059 ac_prev=program_suffix ;; 1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1062 program_suffix=$ac_optarg ;; 1063 1064 -program-transform-name | --program-transform-name \ 1065 | --program-transform-nam | --program-transform-na \ 1066 | --program-transform-n | --program-transform- \ 1067 | --program-transform | --program-transfor \ 1068 | --program-transfo | --program-transf \ 1069 | --program-trans | --program-tran \ 1070 | --progr-tra | --program-tr | --program-t) 1071 ac_prev=program_transform_name ;; 1072 -program-transform-name=* | --program-transform-name=* \ 1073 | --program-transform-nam=* | --program-transform-na=* \ 1074 | --program-transform-n=* | --program-transform-=* \ 1075 | --program-transform=* | --program-transfor=* \ 1076 | --program-transfo=* | --program-transf=* \ 1077 | --program-trans=* | --program-tran=* \ 1078 | --progr-tra=* | --program-tr=* | --program-t=*) 1079 program_transform_name=$ac_optarg ;; 1080 1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1082 ac_prev=pdfdir ;; 1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1084 pdfdir=$ac_optarg ;; 1085 1086 -psdir | --psdir | --psdi | --psd | --ps) 1087 ac_prev=psdir ;; 1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1089 psdir=$ac_optarg ;; 1090 1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1092 | -silent | --silent | --silen | --sile | --sil) 1093 silent=yes ;; 1094 1095 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1096 | --runstate | --runstat | --runsta | --runst | --runs \ 1097 | --run | --ru | --r) 1098 ac_prev=runstatedir ;; 1099 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1100 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1101 | --run=* | --ru=* | --r=*) 1102 runstatedir=$ac_optarg ;; 1103 1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1105 ac_prev=sbindir ;; 1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1107 | --sbi=* | --sb=*) 1108 sbindir=$ac_optarg ;; 1109 1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1112 | --sharedst | --shareds | --shared | --share | --shar \ 1113 | --sha | --sh) 1114 ac_prev=sharedstatedir ;; 1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1118 | --sha=* | --sh=*) 1119 sharedstatedir=$ac_optarg ;; 1120 1121 -site | --site | --sit) 1122 ac_prev=site ;; 1123 -site=* | --site=* | --sit=*) 1124 site=$ac_optarg ;; 1125 1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1127 ac_prev=srcdir ;; 1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1129 srcdir=$ac_optarg ;; 1130 1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1132 | --syscon | --sysco | --sysc | --sys | --sy) 1133 ac_prev=sysconfdir ;; 1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1136 sysconfdir=$ac_optarg ;; 1137 1138 -target | --target | --targe | --targ | --tar | --ta | --t) 1139 ac_prev=target_alias ;; 1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1141 target_alias=$ac_optarg ;; 1142 1143 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1144 verbose=yes ;; 1145 1146 -version | --version | --versio | --versi | --vers | -V) 1147 ac_init_version=: ;; 1148 1149 -with-* | --with-*) 1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1151 # Reject names that are not valid shell variable names. 1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1153 as_fn_error $? "invalid package name: '$ac_useropt'" 1154 ac_useropt_orig=$ac_useropt 1155 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1156 case $ac_user_opts in 1157 *" 1158"with_$ac_useropt" 1159"*) ;; 1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1161 ac_unrecognized_sep=', ';; 1162 esac 1163 eval with_$ac_useropt=\$ac_optarg ;; 1164 1165 -without-* | --without-*) 1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1167 # Reject names that are not valid shell variable names. 1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1169 as_fn_error $? "invalid package name: '$ac_useropt'" 1170 ac_useropt_orig=$ac_useropt 1171 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1172 case $ac_user_opts in 1173 *" 1174"with_$ac_useropt" 1175"*) ;; 1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1177 ac_unrecognized_sep=', ';; 1178 esac 1179 eval with_$ac_useropt=no ;; 1180 1181 --x) 1182 # Obsolete; use --with-x. 1183 with_x=yes ;; 1184 1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1186 | --x-incl | --x-inc | --x-in | --x-i) 1187 ac_prev=x_includes ;; 1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1190 x_includes=$ac_optarg ;; 1191 1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1194 ac_prev=x_libraries ;; 1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1197 x_libraries=$ac_optarg ;; 1198 1199 -*) as_fn_error $? "unrecognized option: '$ac_option' 1200Try '$0 --help' for more information" 1201 ;; 1202 1203 *=*) 1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1205 # Reject names that are not valid shell variable names. 1206 case $ac_envvar in #( 1207 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1208 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1209 esac 1210 eval $ac_envvar=\$ac_optarg 1211 export $ac_envvar ;; 1212 1213 *) 1214 # FIXME: should be removed in autoconf 3.0. 1215 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1217 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1218 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1219 ;; 1220 1221 esac 1222done 1223 1224if test -n "$ac_prev"; then 1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1226 as_fn_error $? "missing argument to $ac_option" 1227fi 1228 1229if test -n "$ac_unrecognized_opts"; then 1230 case $enable_option_checking in 1231 no) ;; 1232 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1233 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1234 esac 1235fi 1236 1237# Check all directory arguments for consistency. 1238for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1239 datadir sysconfdir sharedstatedir localstatedir includedir \ 1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1241 libdir localedir mandir runstatedir 1242do 1243 eval ac_val=\$$ac_var 1244 # Remove trailing slashes. 1245 case $ac_val in 1246 */ ) 1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1248 eval $ac_var=\$ac_val;; 1249 esac 1250 # Be sure to have absolute directory names. 1251 case $ac_val in 1252 [\\/$]* | ?:[\\/]* ) continue;; 1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1254 esac 1255 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1256done 1257 1258# There might be people who depend on the old broken behavior: '$host' 1259# used to hold the argument of --host etc. 1260# FIXME: To remove some day. 1261build=$build_alias 1262host=$host_alias 1263target=$target_alias 1264 1265# FIXME: To remove some day. 1266if test "x$host_alias" != x; then 1267 if test "x$build_alias" = x; then 1268 cross_compiling=maybe 1269 elif test "x$build_alias" != "x$host_alias"; then 1270 cross_compiling=yes 1271 fi 1272fi 1273 1274ac_tool_prefix= 1275test -n "$host_alias" && ac_tool_prefix=$host_alias- 1276 1277test "$silent" = yes && exec 6>/dev/null 1278 1279 1280ac_pwd=`pwd` && test -n "$ac_pwd" && 1281ac_ls_di=`ls -di .` && 1282ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1283 as_fn_error $? "working directory cannot be determined" 1284test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1285 as_fn_error $? "pwd does not report name of working directory" 1286 1287 1288# Find the source files, if location was not specified. 1289if test -z "$srcdir"; then 1290 ac_srcdir_defaulted=yes 1291 # Try the directory containing this script, then the parent directory. 1292 ac_confdir=`$as_dirname -- "$as_myself" || 1293$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1294 X"$as_myself" : 'X\(//\)[^/]' \| \ 1295 X"$as_myself" : 'X\(//\)$' \| \ 1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1297printf "%s\n" X"$as_myself" | 1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1299 s//\1/ 1300 q 1301 } 1302 /^X\(\/\/\)[^/].*/{ 1303 s//\1/ 1304 q 1305 } 1306 /^X\(\/\/\)$/{ 1307 s//\1/ 1308 q 1309 } 1310 /^X\(\/\).*/{ 1311 s//\1/ 1312 q 1313 } 1314 s/.*/./; q'` 1315 srcdir=$ac_confdir 1316 if test ! -r "$srcdir/$ac_unique_file"; then 1317 srcdir=.. 1318 fi 1319else 1320 ac_srcdir_defaulted=no 1321fi 1322if test ! -r "$srcdir/$ac_unique_file"; then 1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1324 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1325fi 1326ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1327ac_abs_confdir=`( 1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1329 pwd)` 1330# When building in place, set srcdir=. 1331if test "$ac_abs_confdir" = "$ac_pwd"; then 1332 srcdir=. 1333fi 1334# Remove unnecessary trailing slashes from srcdir. 1335# Double slashes in file names in object file debugging info 1336# mess up M-x gdb in Emacs. 1337case $srcdir in 1338*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1339esac 1340for ac_var in $ac_precious_vars; do 1341 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1342 eval ac_env_${ac_var}_value=\$${ac_var} 1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1344 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1345done 1346 1347# 1348# Report the --help message. 1349# 1350if test "$ac_init_help" = "long"; then 1351 # Omit some internal or obsolete options to make the list less imposing. 1352 # This message is too long to be a string in the A/UX 3.1 sh. 1353 cat <<_ACEOF 1354'configure' configures xauth 1.1.4 to adapt to many kinds of systems. 1355 1356Usage: $0 [OPTION]... [VAR=VALUE]... 1357 1358To assign environment variables (e.g., CC, CFLAGS...), specify them as 1359VAR=VALUE. See below for descriptions of some of the useful variables. 1360 1361Defaults for the options are specified in brackets. 1362 1363Configuration: 1364 -h, --help display this help and exit 1365 --help=short display options specific to this package 1366 --help=recursive display the short help of all the included packages 1367 -V, --version display version information and exit 1368 -q, --quiet, --silent do not print 'checking ...' messages 1369 --cache-file=FILE cache test results in FILE [disabled] 1370 -C, --config-cache alias for '--cache-file=config.cache' 1371 -n, --no-create do not create output files 1372 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1373 1374Installation directories: 1375 --prefix=PREFIX install architecture-independent files in PREFIX 1376 [$ac_default_prefix] 1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1378 [PREFIX] 1379 1380By default, 'make install' will install all the files in 1381'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1382an installation prefix other than '$ac_default_prefix' using '--prefix', 1383for instance '--prefix=\$HOME'. 1384 1385For better control, use the options below. 1386 1387Fine tuning of the installation directories: 1388 --bindir=DIR user executables [EPREFIX/bin] 1389 --sbindir=DIR system admin executables [EPREFIX/sbin] 1390 --libexecdir=DIR program executables [EPREFIX/libexec] 1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1394 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1395 --libdir=DIR object code libraries [EPREFIX/lib] 1396 --includedir=DIR C header files [PREFIX/include] 1397 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1400 --infodir=DIR info documentation [DATAROOTDIR/info] 1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1402 --mandir=DIR man documentation [DATAROOTDIR/man] 1403 --docdir=DIR documentation root [DATAROOTDIR/doc/xauth] 1404 --htmldir=DIR html documentation [DOCDIR] 1405 --dvidir=DIR dvi documentation [DOCDIR] 1406 --pdfdir=DIR pdf documentation [DOCDIR] 1407 --psdir=DIR ps documentation [DOCDIR] 1408_ACEOF 1409 1410 cat <<\_ACEOF 1411 1412Program names: 1413 --program-prefix=PREFIX prepend PREFIX to installed program names 1414 --program-suffix=SUFFIX append SUFFIX to installed program names 1415 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1416 1417System types: 1418 --build=BUILD configure for building on BUILD [guessed] 1419 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1420_ACEOF 1421fi 1422 1423if test -n "$ac_init_help"; then 1424 case $ac_init_help in 1425 short | recursive ) echo "Configuration of xauth 1.1.4:";; 1426 esac 1427 cat <<\_ACEOF 1428 1429Optional Features: 1430 --disable-option-checking ignore unrecognized --enable/--with options 1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1433 --enable-dependency-tracking 1434 do not reject slow dependency extractors 1435 --disable-dependency-tracking 1436 speeds up one-time build 1437 --enable-silent-rules less verbose build output (undo: "make V=1") 1438 --disable-silent-rules verbose build output (undo: "make V=0") 1439 --disable-selective-werror 1440 Turn off selective compiler errors. (default: 1441 enabled) 1442 --enable-strict-compilation 1443 Enable all warnings from compiler and make them 1444 errors (default: disabled) 1445 --disable-largefile omit support for large files 1446 --enable-unix-transport Enable UNIX domain socket transport 1447 --enable-tcp-transport Enable TCP socket transport 1448 --enable-ipv6 Enable IPv6 support 1449 --enable-local-transport 1450 Enable os-specific local transport 1451 --enable-year2038 support timestamps after 2038 1452 1453Optional Packages: 1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1456 --with-lint Use a lint-style source code checker (default: 1457 disabled) 1458 1459Some influential environment variables: 1460 CC C compiler command 1461 CFLAGS C compiler flags 1462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1463 nonstandard directory <lib dir> 1464 LIBS libraries to pass to the linker, e.g. -l<library> 1465 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1466 you have headers in a nonstandard directory <include dir> 1467 PKG_CONFIG path to pkg-config utility 1468 PKG_CONFIG_PATH 1469 directories to add to pkg-config's search path 1470 PKG_CONFIG_LIBDIR 1471 path overriding pkg-config's built-in search path 1472 XAUTH_CFLAGS 1473 C compiler flags for XAUTH, overriding pkg-config 1474 XAUTH_LIBS linker flags for XAUTH, overriding pkg-config 1475 LINT Path to a lint-style command 1476 LINT_FLAGS Flags for the lint-style command 1477 1478Use these variables to override the choices made by 'configure' or to help 1479it to find libraries and programs with nonstandard names/locations. 1480 1481Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/-/issues>. 1482_ACEOF 1483ac_status=$? 1484fi 1485 1486if test "$ac_init_help" = "recursive"; then 1487 # If there are subdirs, report their specific --help. 1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1489 test -d "$ac_dir" || 1490 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1491 continue 1492 ac_builddir=. 1493 1494case "$ac_dir" in 1495.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1496*) 1497 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1498 # A ".." for each directory in $ac_dir_suffix. 1499 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1500 case $ac_top_builddir_sub in 1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1503 esac ;; 1504esac 1505ac_abs_top_builddir=$ac_pwd 1506ac_abs_builddir=$ac_pwd$ac_dir_suffix 1507# for backward compatibility: 1508ac_top_builddir=$ac_top_build_prefix 1509 1510case $srcdir in 1511 .) # We are building in place. 1512 ac_srcdir=. 1513 ac_top_srcdir=$ac_top_builddir_sub 1514 ac_abs_top_srcdir=$ac_pwd ;; 1515 [\\/]* | ?:[\\/]* ) # Absolute name. 1516 ac_srcdir=$srcdir$ac_dir_suffix; 1517 ac_top_srcdir=$srcdir 1518 ac_abs_top_srcdir=$srcdir ;; 1519 *) # Relative name. 1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1521 ac_top_srcdir=$ac_top_build_prefix$srcdir 1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1523esac 1524ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1525 1526 cd "$ac_dir" || { ac_status=$?; continue; } 1527 # Check for configure.gnu first; this name is used for a wrapper for 1528 # Metaconfig's "Configure" on case-insensitive file systems. 1529 if test -f "$ac_srcdir/configure.gnu"; then 1530 echo && 1531 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1532 elif test -f "$ac_srcdir/configure"; then 1533 echo && 1534 $SHELL "$ac_srcdir/configure" --help=recursive 1535 else 1536 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1537 fi || ac_status=$? 1538 cd "$ac_pwd" || { ac_status=$?; break; } 1539 done 1540fi 1541 1542test -n "$ac_init_help" && exit $ac_status 1543if $ac_init_version; then 1544 cat <<\_ACEOF 1545xauth configure 1.1.4 1546generated by GNU Autoconf 2.72 1547 1548Copyright (C) 2023 Free Software Foundation, Inc. 1549This configure script is free software; the Free Software Foundation 1550gives unlimited permission to copy, distribute and modify it. 1551_ACEOF 1552 exit 1553fi 1554 1555## ------------------------ ## 1556## Autoconf initialization. ## 1557## ------------------------ ## 1558 1559# ac_fn_c_try_compile LINENO 1560# -------------------------- 1561# Try to compile conftest.$ac_ext, and return whether this succeeded. 1562ac_fn_c_try_compile () 1563{ 1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1565 rm -f conftest.$ac_objext conftest.beam 1566 if { { ac_try="$ac_compile" 1567case "(($ac_try" in 1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1569 *) ac_try_echo=$ac_try;; 1570esac 1571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1572printf "%s\n" "$ac_try_echo"; } >&5 1573 (eval "$ac_compile") 2>conftest.err 1574 ac_status=$? 1575 if test -s conftest.err; then 1576 grep -v '^ *+' conftest.err >conftest.er1 1577 cat conftest.er1 >&5 1578 mv -f conftest.er1 conftest.err 1579 fi 1580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1581 test $ac_status = 0; } && { 1582 test -z "$ac_c_werror_flag" || 1583 test ! -s conftest.err 1584 } && test -s conftest.$ac_objext 1585then : 1586 ac_retval=0 1587else case e in #( 1588 e) printf "%s\n" "$as_me: failed program was:" >&5 1589sed 's/^/| /' conftest.$ac_ext >&5 1590 1591 ac_retval=1 ;; 1592esac 1593fi 1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1595 as_fn_set_status $ac_retval 1596 1597} # ac_fn_c_try_compile 1598 1599# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1600# ------------------------------------------------------- 1601# Tests whether HEADER exists and can be compiled using the include files in 1602# INCLUDES, setting the cache variable VAR accordingly. 1603ac_fn_c_check_header_compile () 1604{ 1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1607printf %s "checking for $2... " >&6; } 1608if eval test \${$3+y} 1609then : 1610 printf %s "(cached) " >&6 1611else case e in #( 1612 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1613/* end confdefs.h. */ 1614$4 1615#include <$2> 1616_ACEOF 1617if ac_fn_c_try_compile "$LINENO" 1618then : 1619 eval "$3=yes" 1620else case e in #( 1621 e) eval "$3=no" ;; 1622esac 1623fi 1624rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1625esac 1626fi 1627eval ac_res=\$$3 1628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1629printf "%s\n" "$ac_res" >&6; } 1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1631 1632} # ac_fn_c_check_header_compile 1633 1634# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1635# ------------------------------------------------------------------ 1636# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1637# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1638ac_fn_check_decl () 1639{ 1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1641 as_decl_name=`echo $2|sed 's/ *(.*//'` 1642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1643printf %s "checking whether $as_decl_name is declared... " >&6; } 1644if eval test \${$3+y} 1645then : 1646 printf %s "(cached) " >&6 1647else case e in #( 1648 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1649 eval ac_save_FLAGS=\$$6 1650 as_fn_append $6 " $5" 1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1652/* end confdefs.h. */ 1653$4 1654int 1655main (void) 1656{ 1657#ifndef $as_decl_name 1658#ifdef __cplusplus 1659 (void) $as_decl_use; 1660#else 1661 (void) $as_decl_name; 1662#endif 1663#endif 1664 1665 ; 1666 return 0; 1667} 1668_ACEOF 1669if ac_fn_c_try_compile "$LINENO" 1670then : 1671 eval "$3=yes" 1672else case e in #( 1673 e) eval "$3=no" ;; 1674esac 1675fi 1676rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1677 eval $6=\$ac_save_FLAGS 1678 ;; 1679esac 1680fi 1681eval ac_res=\$$3 1682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1683printf "%s\n" "$ac_res" >&6; } 1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1685 1686} # ac_fn_check_decl 1687 1688# ac_fn_c_try_link LINENO 1689# ----------------------- 1690# Try to link conftest.$ac_ext, and return whether this succeeded. 1691ac_fn_c_try_link () 1692{ 1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1694 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1695 if { { ac_try="$ac_link" 1696case "(($ac_try" in 1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1698 *) ac_try_echo=$ac_try;; 1699esac 1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1701printf "%s\n" "$ac_try_echo"; } >&5 1702 (eval "$ac_link") 2>conftest.err 1703 ac_status=$? 1704 if test -s conftest.err; then 1705 grep -v '^ *+' conftest.err >conftest.er1 1706 cat conftest.er1 >&5 1707 mv -f conftest.er1 conftest.err 1708 fi 1709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1710 test $ac_status = 0; } && { 1711 test -z "$ac_c_werror_flag" || 1712 test ! -s conftest.err 1713 } && test -s conftest$ac_exeext && { 1714 test "$cross_compiling" = yes || 1715 test -x conftest$ac_exeext 1716 } 1717then : 1718 ac_retval=0 1719else case e in #( 1720 e) printf "%s\n" "$as_me: failed program was:" >&5 1721sed 's/^/| /' conftest.$ac_ext >&5 1722 1723 ac_retval=1 ;; 1724esac 1725fi 1726 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1727 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1728 # interfere with the next link command; also delete a directory that is 1729 # left behind by Apple's compiler. We do this before executing the actions. 1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1732 as_fn_set_status $ac_retval 1733 1734} # ac_fn_c_try_link 1735 1736# ac_fn_c_check_func LINENO FUNC VAR 1737# ---------------------------------- 1738# Tests whether FUNC exists, setting the cache variable VAR accordingly 1739ac_fn_c_check_func () 1740{ 1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1743printf %s "checking for $2... " >&6; } 1744if eval test \${$3+y} 1745then : 1746 printf %s "(cached) " >&6 1747else case e in #( 1748 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1749/* end confdefs.h. */ 1750/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1751 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1752#define $2 innocuous_$2 1753 1754/* System header to define __stub macros and hopefully few prototypes, 1755 which can conflict with char $2 (void); below. */ 1756 1757#include <limits.h> 1758#undef $2 1759 1760/* Override any GCC internal prototype to avoid an error. 1761 Use char because int might match the return type of a GCC 1762 builtin and then its argument prototype would still apply. */ 1763#ifdef __cplusplus 1764extern "C" 1765#endif 1766char $2 (void); 1767/* The GNU C library defines this for functions which it implements 1768 to always fail with ENOSYS. Some functions are actually named 1769 something starting with __ and the normal name is an alias. */ 1770#if defined __stub_$2 || defined __stub___$2 1771choke me 1772#endif 1773 1774int 1775main (void) 1776{ 1777return $2 (); 1778 ; 1779 return 0; 1780} 1781_ACEOF 1782if ac_fn_c_try_link "$LINENO" 1783then : 1784 eval "$3=yes" 1785else case e in #( 1786 e) eval "$3=no" ;; 1787esac 1788fi 1789rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1790 conftest$ac_exeext conftest.$ac_ext ;; 1791esac 1792fi 1793eval ac_res=\$$3 1794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1795printf "%s\n" "$ac_res" >&6; } 1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1797 1798} # ac_fn_c_check_func 1799 1800# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1801# ---------------------------------------------------- 1802# Tries to find if the field MEMBER exists in type AGGR, after including 1803# INCLUDES, setting cache variable VAR accordingly. 1804ac_fn_c_check_member () 1805{ 1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1808printf %s "checking for $2.$3... " >&6; } 1809if eval test \${$4+y} 1810then : 1811 printf %s "(cached) " >&6 1812else case e in #( 1813 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1814/* end confdefs.h. */ 1815$5 1816int 1817main (void) 1818{ 1819static $2 ac_aggr; 1820if (ac_aggr.$3) 1821return 0; 1822 ; 1823 return 0; 1824} 1825_ACEOF 1826if ac_fn_c_try_compile "$LINENO" 1827then : 1828 eval "$4=yes" 1829else case e in #( 1830 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1831/* end confdefs.h. */ 1832$5 1833int 1834main (void) 1835{ 1836static $2 ac_aggr; 1837if (sizeof ac_aggr.$3) 1838return 0; 1839 ; 1840 return 0; 1841} 1842_ACEOF 1843if ac_fn_c_try_compile "$LINENO" 1844then : 1845 eval "$4=yes" 1846else case e in #( 1847 e) eval "$4=no" ;; 1848esac 1849fi 1850rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1851esac 1852fi 1853rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1854esac 1855fi 1856eval ac_res=\$$4 1857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1858printf "%s\n" "$ac_res" >&6; } 1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1860 1861} # ac_fn_c_check_member 1862 1863# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1864# ------------------------------------------- 1865# Tests whether TYPE exists after having included INCLUDES, setting cache 1866# variable VAR accordingly. 1867ac_fn_c_check_type () 1868{ 1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1871printf %s "checking for $2... " >&6; } 1872if eval test \${$3+y} 1873then : 1874 printf %s "(cached) " >&6 1875else case e in #( 1876 e) eval "$3=no" 1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1878/* end confdefs.h. */ 1879$4 1880int 1881main (void) 1882{ 1883if (sizeof ($2)) 1884 return 0; 1885 ; 1886 return 0; 1887} 1888_ACEOF 1889if ac_fn_c_try_compile "$LINENO" 1890then : 1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1892/* end confdefs.h. */ 1893$4 1894int 1895main (void) 1896{ 1897if (sizeof (($2))) 1898 return 0; 1899 ; 1900 return 0; 1901} 1902_ACEOF 1903if ac_fn_c_try_compile "$LINENO" 1904then : 1905 1906else case e in #( 1907 e) eval "$3=yes" ;; 1908esac 1909fi 1910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1911fi 1912rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1913esac 1914fi 1915eval ac_res=\$$3 1916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1917printf "%s\n" "$ac_res" >&6; } 1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1919 1920} # ac_fn_c_check_type 1921ac_configure_args_raw= 1922for ac_arg 1923do 1924 case $ac_arg in 1925 *\'*) 1926 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1927 esac 1928 as_fn_append ac_configure_args_raw " '$ac_arg'" 1929done 1930 1931case $ac_configure_args_raw in 1932 *$as_nl*) 1933 ac_safe_unquote= ;; 1934 *) 1935 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1936 ac_unsafe_a="$ac_unsafe_z#~" 1937 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1938 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1939esac 1940 1941cat >config.log <<_ACEOF 1942This file contains any messages produced by compilers while 1943running configure, to aid debugging if configure makes a mistake. 1944 1945It was created by xauth $as_me 1.1.4, which was 1946generated by GNU Autoconf 2.72. Invocation command line was 1947 1948 $ $0$ac_configure_args_raw 1949 1950_ACEOF 1951exec 5>>config.log 1952{ 1953cat <<_ASUNAME 1954## --------- ## 1955## Platform. ## 1956## --------- ## 1957 1958hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1959uname -m = `(uname -m) 2>/dev/null || echo unknown` 1960uname -r = `(uname -r) 2>/dev/null || echo unknown` 1961uname -s = `(uname -s) 2>/dev/null || echo unknown` 1962uname -v = `(uname -v) 2>/dev/null || echo unknown` 1963 1964/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1965/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1966 1967/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1968/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1969/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1970/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1971/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1972/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1973/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1974 1975_ASUNAME 1976 1977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1978for as_dir in $PATH 1979do 1980 IFS=$as_save_IFS 1981 case $as_dir in #((( 1982 '') as_dir=./ ;; 1983 */) ;; 1984 *) as_dir=$as_dir/ ;; 1985 esac 1986 printf "%s\n" "PATH: $as_dir" 1987 done 1988IFS=$as_save_IFS 1989 1990} >&5 1991 1992cat >&5 <<_ACEOF 1993 1994 1995## ----------- ## 1996## Core tests. ## 1997## ----------- ## 1998 1999_ACEOF 2000 2001 2002# Keep a trace of the command line. 2003# Strip out --no-create and --no-recursion so they do not pile up. 2004# Strip out --silent because we don't want to record it for future runs. 2005# Also quote any args containing shell meta-characters. 2006# Make two passes to allow for proper duplicate-argument suppression. 2007ac_configure_args= 2008ac_configure_args0= 2009ac_configure_args1= 2010ac_must_keep_next=false 2011for ac_pass in 1 2 2012do 2013 for ac_arg 2014 do 2015 case $ac_arg in 2016 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2018 | -silent | --silent | --silen | --sile | --sil) 2019 continue ;; 2020 *\'*) 2021 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2022 esac 2023 case $ac_pass in 2024 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2025 2) 2026 as_fn_append ac_configure_args1 " '$ac_arg'" 2027 if test $ac_must_keep_next = true; then 2028 ac_must_keep_next=false # Got value, back to normal. 2029 else 2030 case $ac_arg in 2031 *=* | --config-cache | -C | -disable-* | --disable-* \ 2032 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2033 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2034 | -with-* | --with-* | -without-* | --without-* | --x) 2035 case "$ac_configure_args0 " in 2036 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2037 esac 2038 ;; 2039 -* ) ac_must_keep_next=true ;; 2040 esac 2041 fi 2042 as_fn_append ac_configure_args " '$ac_arg'" 2043 ;; 2044 esac 2045 done 2046done 2047{ ac_configure_args0=; unset ac_configure_args0;} 2048{ ac_configure_args1=; unset ac_configure_args1;} 2049 2050# When interrupted or exit'd, cleanup temporary files, and complete 2051# config.log. We remove comments because anyway the quotes in there 2052# would cause problems or look ugly. 2053# WARNING: Use '\'' to represent an apostrophe within the trap. 2054# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2055trap 'exit_status=$? 2056 # Sanitize IFS. 2057 IFS=" "" $as_nl" 2058 # Save into config.log some information that might help in debugging. 2059 { 2060 echo 2061 2062 printf "%s\n" "## ---------------- ## 2063## Cache variables. ## 2064## ---------------- ##" 2065 echo 2066 # The following way of writing the cache mishandles newlines in values, 2067( 2068 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2069 eval ac_val=\$$ac_var 2070 case $ac_val in #( 2071 *${as_nl}*) 2072 case $ac_var in #( 2073 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2074printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2075 esac 2076 case $ac_var in #( 2077 _ | IFS | as_nl) ;; #( 2078 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2079 *) { eval $ac_var=; unset $ac_var;} ;; 2080 esac ;; 2081 esac 2082 done 2083 (set) 2>&1 | 2084 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2085 *${as_nl}ac_space=\ *) 2086 sed -n \ 2087 "s/'\''/'\''\\\\'\'''\''/g; 2088 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2089 ;; #( 2090 *) 2091 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2092 ;; 2093 esac | 2094 sort 2095) 2096 echo 2097 2098 printf "%s\n" "## ----------------- ## 2099## Output variables. ## 2100## ----------------- ##" 2101 echo 2102 for ac_var in $ac_subst_vars 2103 do 2104 eval ac_val=\$$ac_var 2105 case $ac_val in 2106 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2107 esac 2108 printf "%s\n" "$ac_var='\''$ac_val'\''" 2109 done | sort 2110 echo 2111 2112 if test -n "$ac_subst_files"; then 2113 printf "%s\n" "## ------------------- ## 2114## File substitutions. ## 2115## ------------------- ##" 2116 echo 2117 for ac_var in $ac_subst_files 2118 do 2119 eval ac_val=\$$ac_var 2120 case $ac_val in 2121 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2122 esac 2123 printf "%s\n" "$ac_var='\''$ac_val'\''" 2124 done | sort 2125 echo 2126 fi 2127 2128 if test -s confdefs.h; then 2129 printf "%s\n" "## ----------- ## 2130## confdefs.h. ## 2131## ----------- ##" 2132 echo 2133 cat confdefs.h 2134 echo 2135 fi 2136 test "$ac_signal" != 0 && 2137 printf "%s\n" "$as_me: caught signal $ac_signal" 2138 printf "%s\n" "$as_me: exit $exit_status" 2139 } >&5 2140 rm -f core *.core core.conftest.* && 2141 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2142 exit $exit_status 2143' 0 2144for ac_signal in 1 2 13 15; do 2145 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2146done 2147ac_signal=0 2148 2149# confdefs.h avoids OS command line length limits that DEFS can exceed. 2150rm -f -r conftest* confdefs.h 2151 2152printf "%s\n" "/* confdefs.h */" > confdefs.h 2153 2154# Predefined preprocessor variables. 2155 2156printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2157 2158printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2159 2160printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2161 2162printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2163 2164printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2165 2166printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2167 2168 2169# Let the site file select an alternate cache file if it wants to. 2170# Prefer an explicitly selected file to automatically selected ones. 2171if test -n "$CONFIG_SITE"; then 2172 ac_site_files="$CONFIG_SITE" 2173elif test "x$prefix" != xNONE; then 2174 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2175else 2176 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2177fi 2178 2179for ac_site_file in $ac_site_files 2180do 2181 case $ac_site_file in #( 2182 */*) : 2183 ;; #( 2184 *) : 2185 ac_site_file=./$ac_site_file ;; 2186esac 2187 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2189printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2190 sed 's/^/| /' "$ac_site_file" >&5 2191 . "$ac_site_file" \ 2192 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2193printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2194as_fn_error $? "failed to load site script $ac_site_file 2195See 'config.log' for more details" "$LINENO" 5; } 2196 fi 2197done 2198 2199if test -r "$cache_file"; then 2200 # Some versions of bash will fail to source /dev/null (special files 2201 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2202 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2204printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2205 case $cache_file in 2206 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2207 *) . "./$cache_file";; 2208 esac 2209 fi 2210else 2211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2212printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2213 >$cache_file 2214fi 2215 2216as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2217# Test code for whether the C compiler supports C89 (global declarations) 2218ac_c_conftest_c89_globals=' 2219/* Does the compiler advertise C89 conformance? 2220 Do not test the value of __STDC__, because some compilers set it to 0 2221 while being otherwise adequately conformant. */ 2222#if !defined __STDC__ 2223# error "Compiler does not advertise C89 conformance" 2224#endif 2225 2226#include <stddef.h> 2227#include <stdarg.h> 2228struct stat; 2229/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2230struct buf { int x; }; 2231struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2232static char *e (char **p, int i) 2233{ 2234 return p[i]; 2235} 2236static char *f (char * (*g) (char **, int), char **p, ...) 2237{ 2238 char *s; 2239 va_list v; 2240 va_start (v,p); 2241 s = g (p, va_arg (v,int)); 2242 va_end (v); 2243 return s; 2244} 2245 2246/* C89 style stringification. */ 2247#define noexpand_stringify(a) #a 2248const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2249 2250/* C89 style token pasting. Exercises some of the corner cases that 2251 e.g. old MSVC gets wrong, but not very hard. */ 2252#define noexpand_concat(a,b) a##b 2253#define expand_concat(a,b) noexpand_concat(a,b) 2254extern int vA; 2255extern int vbee; 2256#define aye A 2257#define bee B 2258int *pvA = &expand_concat(v,aye); 2259int *pvbee = &noexpand_concat(v,bee); 2260 2261/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2262 function prototypes and stuff, but not \xHH hex character constants. 2263 These do not provoke an error unfortunately, instead are silently treated 2264 as an "x". The following induces an error, until -std is added to get 2265 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2266 array size at least. It is necessary to write \x00 == 0 to get something 2267 that is true only with -std. */ 2268int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2269 2270/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2271 inside strings and character constants. */ 2272#define FOO(x) '\''x'\'' 2273int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2274 2275int test (int i, double x); 2276struct s1 {int (*f) (int a);}; 2277struct s2 {int (*f) (double a);}; 2278int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2279 int, int);' 2280 2281# Test code for whether the C compiler supports C89 (body of main). 2282ac_c_conftest_c89_main=' 2283ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2284' 2285 2286# Test code for whether the C compiler supports C99 (global declarations) 2287ac_c_conftest_c99_globals=' 2288/* Does the compiler advertise C99 conformance? */ 2289#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2290# error "Compiler does not advertise C99 conformance" 2291#endif 2292 2293// See if C++-style comments work. 2294 2295#include <stdbool.h> 2296extern int puts (const char *); 2297extern int printf (const char *, ...); 2298extern int dprintf (int, const char *, ...); 2299extern void *malloc (size_t); 2300extern void free (void *); 2301 2302// Check varargs macros. These examples are taken from C99 6.10.3.5. 2303// dprintf is used instead of fprintf to avoid needing to declare 2304// FILE and stderr. 2305#define debug(...) dprintf (2, __VA_ARGS__) 2306#define showlist(...) puts (#__VA_ARGS__) 2307#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2308static void 2309test_varargs_macros (void) 2310{ 2311 int x = 1234; 2312 int y = 5678; 2313 debug ("Flag"); 2314 debug ("X = %d\n", x); 2315 showlist (The first, second, and third items.); 2316 report (x>y, "x is %d but y is %d", x, y); 2317} 2318 2319// Check long long types. 2320#define BIG64 18446744073709551615ull 2321#define BIG32 4294967295ul 2322#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2323#if !BIG_OK 2324 #error "your preprocessor is broken" 2325#endif 2326#if BIG_OK 2327#else 2328 #error "your preprocessor is broken" 2329#endif 2330static long long int bignum = -9223372036854775807LL; 2331static unsigned long long int ubignum = BIG64; 2332 2333struct incomplete_array 2334{ 2335 int datasize; 2336 double data[]; 2337}; 2338 2339struct named_init { 2340 int number; 2341 const wchar_t *name; 2342 double average; 2343}; 2344 2345typedef const char *ccp; 2346 2347static inline int 2348test_restrict (ccp restrict text) 2349{ 2350 // Iterate through items via the restricted pointer. 2351 // Also check for declarations in for loops. 2352 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2353 continue; 2354 return 0; 2355} 2356 2357// Check varargs and va_copy. 2358static bool 2359test_varargs (const char *format, ...) 2360{ 2361 va_list args; 2362 va_start (args, format); 2363 va_list args_copy; 2364 va_copy (args_copy, args); 2365 2366 const char *str = ""; 2367 int number = 0; 2368 float fnumber = 0; 2369 2370 while (*format) 2371 { 2372 switch (*format++) 2373 { 2374 case '\''s'\'': // string 2375 str = va_arg (args_copy, const char *); 2376 break; 2377 case '\''d'\'': // int 2378 number = va_arg (args_copy, int); 2379 break; 2380 case '\''f'\'': // float 2381 fnumber = va_arg (args_copy, double); 2382 break; 2383 default: 2384 break; 2385 } 2386 } 2387 va_end (args_copy); 2388 va_end (args); 2389 2390 return *str && number && fnumber; 2391} 2392' 2393 2394# Test code for whether the C compiler supports C99 (body of main). 2395ac_c_conftest_c99_main=' 2396 // Check bool. 2397 _Bool success = false; 2398 success |= (argc != 0); 2399 2400 // Check restrict. 2401 if (test_restrict ("String literal") == 0) 2402 success = true; 2403 char *restrict newvar = "Another string"; 2404 2405 // Check varargs. 2406 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2407 test_varargs_macros (); 2408 2409 // Check flexible array members. 2410 struct incomplete_array *ia = 2411 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2412 ia->datasize = 10; 2413 for (int i = 0; i < ia->datasize; ++i) 2414 ia->data[i] = i * 1.234; 2415 // Work around memory leak warnings. 2416 free (ia); 2417 2418 // Check named initializers. 2419 struct named_init ni = { 2420 .number = 34, 2421 .name = L"Test wide string", 2422 .average = 543.34343, 2423 }; 2424 2425 ni.number = 58; 2426 2427 int dynamic_array[ni.number]; 2428 dynamic_array[0] = argv[0][0]; 2429 dynamic_array[ni.number - 1] = 543; 2430 2431 // work around unused variable warnings 2432 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2433 || dynamic_array[ni.number - 1] != 543); 2434' 2435 2436# Test code for whether the C compiler supports C11 (global declarations) 2437ac_c_conftest_c11_globals=' 2438/* Does the compiler advertise C11 conformance? */ 2439#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2440# error "Compiler does not advertise C11 conformance" 2441#endif 2442 2443// Check _Alignas. 2444char _Alignas (double) aligned_as_double; 2445char _Alignas (0) no_special_alignment; 2446extern char aligned_as_int; 2447char _Alignas (0) _Alignas (int) aligned_as_int; 2448 2449// Check _Alignof. 2450enum 2451{ 2452 int_alignment = _Alignof (int), 2453 int_array_alignment = _Alignof (int[100]), 2454 char_alignment = _Alignof (char) 2455}; 2456_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2457 2458// Check _Noreturn. 2459int _Noreturn does_not_return (void) { for (;;) continue; } 2460 2461// Check _Static_assert. 2462struct test_static_assert 2463{ 2464 int x; 2465 _Static_assert (sizeof (int) <= sizeof (long int), 2466 "_Static_assert does not work in struct"); 2467 long int y; 2468}; 2469 2470// Check UTF-8 literals. 2471#define u8 syntax error! 2472char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2473 2474// Check duplicate typedefs. 2475typedef long *long_ptr; 2476typedef long int *long_ptr; 2477typedef long_ptr long_ptr; 2478 2479// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2480struct anonymous 2481{ 2482 union { 2483 struct { int i; int j; }; 2484 struct { int k; long int l; } w; 2485 }; 2486 int m; 2487} v1; 2488' 2489 2490# Test code for whether the C compiler supports C11 (body of main). 2491ac_c_conftest_c11_main=' 2492 _Static_assert ((offsetof (struct anonymous, i) 2493 == offsetof (struct anonymous, w.k)), 2494 "Anonymous union alignment botch"); 2495 v1.i = 2; 2496 v1.w.k = 5; 2497 ok |= v1.i != 5; 2498' 2499 2500# Test code for whether the C compiler supports C11 (complete). 2501ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2502${ac_c_conftest_c99_globals} 2503${ac_c_conftest_c11_globals} 2504 2505int 2506main (int argc, char **argv) 2507{ 2508 int ok = 0; 2509 ${ac_c_conftest_c89_main} 2510 ${ac_c_conftest_c99_main} 2511 ${ac_c_conftest_c11_main} 2512 return ok; 2513} 2514" 2515 2516# Test code for whether the C compiler supports C99 (complete). 2517ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2518${ac_c_conftest_c99_globals} 2519 2520int 2521main (int argc, char **argv) 2522{ 2523 int ok = 0; 2524 ${ac_c_conftest_c89_main} 2525 ${ac_c_conftest_c99_main} 2526 return ok; 2527} 2528" 2529 2530# Test code for whether the C compiler supports C89 (complete). 2531ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2532 2533int 2534main (int argc, char **argv) 2535{ 2536 int ok = 0; 2537 ${ac_c_conftest_c89_main} 2538 return ok; 2539} 2540" 2541 2542as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2543as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2544as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2545as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2546as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2547as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2548as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2549as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2550as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2551as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2552 2553# Auxiliary files required by this configure script. 2554ac_aux_files="config.guess config.sub missing install-sh compile" 2555 2556# Locations in which to look for auxiliary files. 2557ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2558 2559# Search for a directory containing all of the required auxiliary files, 2560# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2561# If we don't find one directory that contains all the files we need, 2562# we report the set of missing files from the *first* directory in 2563# $ac_aux_dir_candidates and give up. 2564ac_missing_aux_files="" 2565ac_first_candidate=: 2566printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2568as_found=false 2569for as_dir in $ac_aux_dir_candidates 2570do 2571 IFS=$as_save_IFS 2572 case $as_dir in #((( 2573 '') as_dir=./ ;; 2574 */) ;; 2575 *) as_dir=$as_dir/ ;; 2576 esac 2577 as_found=: 2578 2579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2580 ac_aux_dir_found=yes 2581 ac_install_sh= 2582 for ac_aux in $ac_aux_files 2583 do 2584 # As a special case, if "install-sh" is required, that requirement 2585 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2586 # and $ac_install_sh is set appropriately for whichever one is found. 2587 if test x"$ac_aux" = x"install-sh" 2588 then 2589 if test -f "${as_dir}install-sh"; then 2590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2591 ac_install_sh="${as_dir}install-sh -c" 2592 elif test -f "${as_dir}install.sh"; then 2593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2594 ac_install_sh="${as_dir}install.sh -c" 2595 elif test -f "${as_dir}shtool"; then 2596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2597 ac_install_sh="${as_dir}shtool install -c" 2598 else 2599 ac_aux_dir_found=no 2600 if $ac_first_candidate; then 2601 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2602 else 2603 break 2604 fi 2605 fi 2606 else 2607 if test -f "${as_dir}${ac_aux}"; then 2608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2609 else 2610 ac_aux_dir_found=no 2611 if $ac_first_candidate; then 2612 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2613 else 2614 break 2615 fi 2616 fi 2617 fi 2618 done 2619 if test "$ac_aux_dir_found" = yes; then 2620 ac_aux_dir="$as_dir" 2621 break 2622 fi 2623 ac_first_candidate=false 2624 2625 as_found=false 2626done 2627IFS=$as_save_IFS 2628if $as_found 2629then : 2630 2631else case e in #( 2632 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2633esac 2634fi 2635 2636 2637# These three variables are undocumented and unsupported, 2638# and are intended to be withdrawn in a future Autoconf release. 2639# They can cause serious problems if a builder's source tree is in a directory 2640# whose full name contains unusual characters. 2641if test -f "${ac_aux_dir}config.guess"; then 2642 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2643fi 2644if test -f "${ac_aux_dir}config.sub"; then 2645 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2646fi 2647if test -f "$ac_aux_dir/configure"; then 2648 ac_configure="$SHELL ${ac_aux_dir}configure" 2649fi 2650 2651# Check that the precious variables saved in the cache have kept the same 2652# value. 2653ac_cache_corrupted=false 2654for ac_var in $ac_precious_vars; do 2655 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2656 eval ac_new_set=\$ac_env_${ac_var}_set 2657 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2658 eval ac_new_val=\$ac_env_${ac_var}_value 2659 case $ac_old_set,$ac_new_set in 2660 set,) 2661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2662printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2663 ac_cache_corrupted=: ;; 2664 ,set) 2665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2666printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2667 ac_cache_corrupted=: ;; 2668 ,);; 2669 *) 2670 if test "x$ac_old_val" != "x$ac_new_val"; then 2671 # differences in whitespace do not lead to failure. 2672 ac_old_val_w=`echo x $ac_old_val` 2673 ac_new_val_w=`echo x $ac_new_val` 2674 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2676printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2677 ac_cache_corrupted=: 2678 else 2679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2680printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2681 eval $ac_var=\$ac_old_val 2682 fi 2683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2684printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2686printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2687 fi;; 2688 esac 2689 # Pass precious variables to config.status. 2690 if test "$ac_new_set" = set; then 2691 case $ac_new_val in 2692 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2693 *) ac_arg=$ac_var=$ac_new_val ;; 2694 esac 2695 case " $ac_configure_args " in 2696 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2697 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2698 esac 2699 fi 2700done 2701if $ac_cache_corrupted; then 2702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2703printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2705printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2706 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2707 and start over" "$LINENO" 5 2708fi 2709## -------------------- ## 2710## Main body of script. ## 2711## -------------------- ## 2712 2713ac_ext=c 2714ac_cpp='$CPP $CPPFLAGS' 2715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2717ac_compiler_gnu=$ac_cv_c_compiler_gnu 2718 2719 2720 2721ac_config_headers="$ac_config_headers config.h" 2722 2723 2724# Set common system defines for POSIX extensions, such as _GNU_SOURCE 2725# Must be called before any macros that run the compiler (like 2726# AC_PROG_LIBTOOL) to avoid autoconf errors. 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738# Expand $ac_aux_dir to an absolute path. 2739am_aux_dir=`cd "$ac_aux_dir" && pwd` 2740 2741ac_ext=c 2742ac_cpp='$CPP $CPPFLAGS' 2743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2745ac_compiler_gnu=$ac_cv_c_compiler_gnu 2746if test -n "$ac_tool_prefix"; then 2747 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2748set dummy ${ac_tool_prefix}gcc; ac_word=$2 2749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2750printf %s "checking for $ac_word... " >&6; } 2751if test ${ac_cv_prog_CC+y} 2752then : 2753 printf %s "(cached) " >&6 2754else case e in #( 2755 e) if test -n "$CC"; then 2756 ac_cv_prog_CC="$CC" # Let the user override the test. 2757else 2758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2759for as_dir in $PATH 2760do 2761 IFS=$as_save_IFS 2762 case $as_dir in #((( 2763 '') as_dir=./ ;; 2764 */) ;; 2765 *) as_dir=$as_dir/ ;; 2766 esac 2767 for ac_exec_ext in '' $ac_executable_extensions; do 2768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2769 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2771 break 2 2772 fi 2773done 2774 done 2775IFS=$as_save_IFS 2776 2777fi ;; 2778esac 2779fi 2780CC=$ac_cv_prog_CC 2781if test -n "$CC"; then 2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2783printf "%s\n" "$CC" >&6; } 2784else 2785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2786printf "%s\n" "no" >&6; } 2787fi 2788 2789 2790fi 2791if test -z "$ac_cv_prog_CC"; then 2792 ac_ct_CC=$CC 2793 # Extract the first word of "gcc", so it can be a program name with args. 2794set dummy gcc; ac_word=$2 2795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2796printf %s "checking for $ac_word... " >&6; } 2797if test ${ac_cv_prog_ac_ct_CC+y} 2798then : 2799 printf %s "(cached) " >&6 2800else case e in #( 2801 e) if test -n "$ac_ct_CC"; then 2802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2803else 2804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2805for as_dir in $PATH 2806do 2807 IFS=$as_save_IFS 2808 case $as_dir in #((( 2809 '') as_dir=./ ;; 2810 */) ;; 2811 *) as_dir=$as_dir/ ;; 2812 esac 2813 for ac_exec_ext in '' $ac_executable_extensions; do 2814 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2815 ac_cv_prog_ac_ct_CC="gcc" 2816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2817 break 2 2818 fi 2819done 2820 done 2821IFS=$as_save_IFS 2822 2823fi ;; 2824esac 2825fi 2826ac_ct_CC=$ac_cv_prog_ac_ct_CC 2827if test -n "$ac_ct_CC"; then 2828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2829printf "%s\n" "$ac_ct_CC" >&6; } 2830else 2831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2832printf "%s\n" "no" >&6; } 2833fi 2834 2835 if test "x$ac_ct_CC" = x; then 2836 CC="" 2837 else 2838 case $cross_compiling:$ac_tool_warned in 2839yes:) 2840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2841printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2842ac_tool_warned=yes ;; 2843esac 2844 CC=$ac_ct_CC 2845 fi 2846else 2847 CC="$ac_cv_prog_CC" 2848fi 2849 2850if test -z "$CC"; then 2851 if test -n "$ac_tool_prefix"; then 2852 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2853set dummy ${ac_tool_prefix}cc; ac_word=$2 2854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2855printf %s "checking for $ac_word... " >&6; } 2856if test ${ac_cv_prog_CC+y} 2857then : 2858 printf %s "(cached) " >&6 2859else case e in #( 2860 e) if test -n "$CC"; then 2861 ac_cv_prog_CC="$CC" # Let the user override the test. 2862else 2863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2864for as_dir in $PATH 2865do 2866 IFS=$as_save_IFS 2867 case $as_dir in #((( 2868 '') as_dir=./ ;; 2869 */) ;; 2870 *) as_dir=$as_dir/ ;; 2871 esac 2872 for ac_exec_ext in '' $ac_executable_extensions; do 2873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2874 ac_cv_prog_CC="${ac_tool_prefix}cc" 2875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2876 break 2 2877 fi 2878done 2879 done 2880IFS=$as_save_IFS 2881 2882fi ;; 2883esac 2884fi 2885CC=$ac_cv_prog_CC 2886if test -n "$CC"; then 2887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2888printf "%s\n" "$CC" >&6; } 2889else 2890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2891printf "%s\n" "no" >&6; } 2892fi 2893 2894 2895 fi 2896fi 2897if test -z "$CC"; then 2898 # Extract the first word of "cc", so it can be a program name with args. 2899set dummy cc; ac_word=$2 2900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2901printf %s "checking for $ac_word... " >&6; } 2902if test ${ac_cv_prog_CC+y} 2903then : 2904 printf %s "(cached) " >&6 2905else case e in #( 2906 e) if test -n "$CC"; then 2907 ac_cv_prog_CC="$CC" # Let the user override the test. 2908else 2909 ac_prog_rejected=no 2910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2911for as_dir in $PATH 2912do 2913 IFS=$as_save_IFS 2914 case $as_dir in #((( 2915 '') as_dir=./ ;; 2916 */) ;; 2917 *) as_dir=$as_dir/ ;; 2918 esac 2919 for ac_exec_ext in '' $ac_executable_extensions; do 2920 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2921 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2922 ac_prog_rejected=yes 2923 continue 2924 fi 2925 ac_cv_prog_CC="cc" 2926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2927 break 2 2928 fi 2929done 2930 done 2931IFS=$as_save_IFS 2932 2933if test $ac_prog_rejected = yes; then 2934 # We found a bogon in the path, so make sure we never use it. 2935 set dummy $ac_cv_prog_CC 2936 shift 2937 if test $# != 0; then 2938 # We chose a different compiler from the bogus one. 2939 # However, it has the same basename, so the bogon will be chosen 2940 # first if we set CC to just the basename; use the full file name. 2941 shift 2942 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2943 fi 2944fi 2945fi ;; 2946esac 2947fi 2948CC=$ac_cv_prog_CC 2949if test -n "$CC"; then 2950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2951printf "%s\n" "$CC" >&6; } 2952else 2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2954printf "%s\n" "no" >&6; } 2955fi 2956 2957 2958fi 2959if test -z "$CC"; then 2960 if test -n "$ac_tool_prefix"; then 2961 for ac_prog in cl.exe 2962 do 2963 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2964set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2966printf %s "checking for $ac_word... " >&6; } 2967if test ${ac_cv_prog_CC+y} 2968then : 2969 printf %s "(cached) " >&6 2970else case e in #( 2971 e) if test -n "$CC"; then 2972 ac_cv_prog_CC="$CC" # Let the user override the test. 2973else 2974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2975for as_dir in $PATH 2976do 2977 IFS=$as_save_IFS 2978 case $as_dir in #((( 2979 '') as_dir=./ ;; 2980 */) ;; 2981 *) as_dir=$as_dir/ ;; 2982 esac 2983 for ac_exec_ext in '' $ac_executable_extensions; do 2984 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2985 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2987 break 2 2988 fi 2989done 2990 done 2991IFS=$as_save_IFS 2992 2993fi ;; 2994esac 2995fi 2996CC=$ac_cv_prog_CC 2997if test -n "$CC"; then 2998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2999printf "%s\n" "$CC" >&6; } 3000else 3001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3002printf "%s\n" "no" >&6; } 3003fi 3004 3005 3006 test -n "$CC" && break 3007 done 3008fi 3009if test -z "$CC"; then 3010 ac_ct_CC=$CC 3011 for ac_prog in cl.exe 3012do 3013 # Extract the first word of "$ac_prog", so it can be a program name with args. 3014set dummy $ac_prog; ac_word=$2 3015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3016printf %s "checking for $ac_word... " >&6; } 3017if test ${ac_cv_prog_ac_ct_CC+y} 3018then : 3019 printf %s "(cached) " >&6 3020else case e in #( 3021 e) if test -n "$ac_ct_CC"; then 3022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3023else 3024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3025for as_dir in $PATH 3026do 3027 IFS=$as_save_IFS 3028 case $as_dir in #((( 3029 '') as_dir=./ ;; 3030 */) ;; 3031 *) as_dir=$as_dir/ ;; 3032 esac 3033 for ac_exec_ext in '' $ac_executable_extensions; do 3034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3035 ac_cv_prog_ac_ct_CC="$ac_prog" 3036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3037 break 2 3038 fi 3039done 3040 done 3041IFS=$as_save_IFS 3042 3043fi ;; 3044esac 3045fi 3046ac_ct_CC=$ac_cv_prog_ac_ct_CC 3047if test -n "$ac_ct_CC"; then 3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3049printf "%s\n" "$ac_ct_CC" >&6; } 3050else 3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3052printf "%s\n" "no" >&6; } 3053fi 3054 3055 3056 test -n "$ac_ct_CC" && break 3057done 3058 3059 if test "x$ac_ct_CC" = x; then 3060 CC="" 3061 else 3062 case $cross_compiling:$ac_tool_warned in 3063yes:) 3064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3065printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3066ac_tool_warned=yes ;; 3067esac 3068 CC=$ac_ct_CC 3069 fi 3070fi 3071 3072fi 3073if test -z "$CC"; then 3074 if test -n "$ac_tool_prefix"; then 3075 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3076set dummy ${ac_tool_prefix}clang; ac_word=$2 3077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3078printf %s "checking for $ac_word... " >&6; } 3079if test ${ac_cv_prog_CC+y} 3080then : 3081 printf %s "(cached) " >&6 3082else case e in #( 3083 e) if test -n "$CC"; then 3084 ac_cv_prog_CC="$CC" # Let the user override the test. 3085else 3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3087for as_dir in $PATH 3088do 3089 IFS=$as_save_IFS 3090 case $as_dir in #((( 3091 '') as_dir=./ ;; 3092 */) ;; 3093 *) as_dir=$as_dir/ ;; 3094 esac 3095 for ac_exec_ext in '' $ac_executable_extensions; do 3096 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3097 ac_cv_prog_CC="${ac_tool_prefix}clang" 3098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3099 break 2 3100 fi 3101done 3102 done 3103IFS=$as_save_IFS 3104 3105fi ;; 3106esac 3107fi 3108CC=$ac_cv_prog_CC 3109if test -n "$CC"; then 3110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3111printf "%s\n" "$CC" >&6; } 3112else 3113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3114printf "%s\n" "no" >&6; } 3115fi 3116 3117 3118fi 3119if test -z "$ac_cv_prog_CC"; then 3120 ac_ct_CC=$CC 3121 # Extract the first word of "clang", so it can be a program name with args. 3122set dummy clang; ac_word=$2 3123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3124printf %s "checking for $ac_word... " >&6; } 3125if test ${ac_cv_prog_ac_ct_CC+y} 3126then : 3127 printf %s "(cached) " >&6 3128else case e in #( 3129 e) if test -n "$ac_ct_CC"; then 3130 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3131else 3132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3133for as_dir in $PATH 3134do 3135 IFS=$as_save_IFS 3136 case $as_dir in #((( 3137 '') as_dir=./ ;; 3138 */) ;; 3139 *) as_dir=$as_dir/ ;; 3140 esac 3141 for ac_exec_ext in '' $ac_executable_extensions; do 3142 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3143 ac_cv_prog_ac_ct_CC="clang" 3144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3145 break 2 3146 fi 3147done 3148 done 3149IFS=$as_save_IFS 3150 3151fi ;; 3152esac 3153fi 3154ac_ct_CC=$ac_cv_prog_ac_ct_CC 3155if test -n "$ac_ct_CC"; then 3156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3157printf "%s\n" "$ac_ct_CC" >&6; } 3158else 3159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3160printf "%s\n" "no" >&6; } 3161fi 3162 3163 if test "x$ac_ct_CC" = x; then 3164 CC="" 3165 else 3166 case $cross_compiling:$ac_tool_warned in 3167yes:) 3168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3169printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3170ac_tool_warned=yes ;; 3171esac 3172 CC=$ac_ct_CC 3173 fi 3174else 3175 CC="$ac_cv_prog_CC" 3176fi 3177 3178fi 3179 3180 3181test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3182printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3183as_fn_error $? "no acceptable C compiler found in \$PATH 3184See 'config.log' for more details" "$LINENO" 5; } 3185 3186# Provide some information about the compiler. 3187printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3188set X $ac_compile 3189ac_compiler=$2 3190for ac_option in --version -v -V -qversion -version; do 3191 { { ac_try="$ac_compiler $ac_option >&5" 3192case "(($ac_try" in 3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3194 *) ac_try_echo=$ac_try;; 3195esac 3196eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3197printf "%s\n" "$ac_try_echo"; } >&5 3198 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3199 ac_status=$? 3200 if test -s conftest.err; then 3201 sed '10a\ 3202... rest of stderr output deleted ... 3203 10q' conftest.err >conftest.er1 3204 cat conftest.er1 >&5 3205 fi 3206 rm -f conftest.er1 conftest.err 3207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3208 test $ac_status = 0; } 3209done 3210 3211cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3212/* end confdefs.h. */ 3213 3214int 3215main (void) 3216{ 3217 3218 ; 3219 return 0; 3220} 3221_ACEOF 3222ac_clean_files_save=$ac_clean_files 3223ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3224# Try to create an executable without -o first, disregard a.out. 3225# It will help us diagnose broken compilers, and finding out an intuition 3226# of exeext. 3227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3228printf %s "checking whether the C compiler works... " >&6; } 3229ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3230 3231# The possible output files: 3232ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3233 3234ac_rmfiles= 3235for ac_file in $ac_files 3236do 3237 case $ac_file in 3238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3239 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3240 esac 3241done 3242rm -f $ac_rmfiles 3243 3244if { { ac_try="$ac_link_default" 3245case "(($ac_try" in 3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3247 *) ac_try_echo=$ac_try;; 3248esac 3249eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3250printf "%s\n" "$ac_try_echo"; } >&5 3251 (eval "$ac_link_default") 2>&5 3252 ac_status=$? 3253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3254 test $ac_status = 0; } 3255then : 3256 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3257# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3258# in a Makefile. We should not override ac_cv_exeext if it was cached, 3259# so that the user can short-circuit this test for compilers unknown to 3260# Autoconf. 3261for ac_file in $ac_files '' 3262do 3263 test -f "$ac_file" || continue 3264 case $ac_file in 3265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3266 ;; 3267 [ab].out ) 3268 # We found the default executable, but exeext='' is most 3269 # certainly right. 3270 break;; 3271 *.* ) 3272 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3273 then :; else 3274 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3275 fi 3276 # We set ac_cv_exeext here because the later test for it is not 3277 # safe: cross compilers may not add the suffix if given an '-o' 3278 # argument, so we may need to know it at that point already. 3279 # Even if this section looks crufty: it has the advantage of 3280 # actually working. 3281 break;; 3282 * ) 3283 break;; 3284 esac 3285done 3286test "$ac_cv_exeext" = no && ac_cv_exeext= 3287 3288else case e in #( 3289 e) ac_file='' ;; 3290esac 3291fi 3292if test -z "$ac_file" 3293then : 3294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3295printf "%s\n" "no" >&6; } 3296printf "%s\n" "$as_me: failed program was:" >&5 3297sed 's/^/| /' conftest.$ac_ext >&5 3298 3299{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3300printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3301as_fn_error 77 "C compiler cannot create executables 3302See 'config.log' for more details" "$LINENO" 5; } 3303else case e in #( 3304 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3305printf "%s\n" "yes" >&6; } ;; 3306esac 3307fi 3308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3309printf %s "checking for C compiler default output file name... " >&6; } 3310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3311printf "%s\n" "$ac_file" >&6; } 3312ac_exeext=$ac_cv_exeext 3313 3314rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3315ac_clean_files=$ac_clean_files_save 3316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3317printf %s "checking for suffix of executables... " >&6; } 3318if { { ac_try="$ac_link" 3319case "(($ac_try" in 3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3321 *) ac_try_echo=$ac_try;; 3322esac 3323eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3324printf "%s\n" "$ac_try_echo"; } >&5 3325 (eval "$ac_link") 2>&5 3326 ac_status=$? 3327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3328 test $ac_status = 0; } 3329then : 3330 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3331# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3332# work properly (i.e., refer to 'conftest.exe'), while it won't with 3333# 'rm'. 3334for ac_file in conftest.exe conftest conftest.*; do 3335 test -f "$ac_file" || continue 3336 case $ac_file in 3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3338 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3339 break;; 3340 * ) break;; 3341 esac 3342done 3343else case e in #( 3344 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3345printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3346as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3347See 'config.log' for more details" "$LINENO" 5; } ;; 3348esac 3349fi 3350rm -f conftest conftest$ac_cv_exeext 3351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3352printf "%s\n" "$ac_cv_exeext" >&6; } 3353 3354rm -f conftest.$ac_ext 3355EXEEXT=$ac_cv_exeext 3356ac_exeext=$EXEEXT 3357cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3358/* end confdefs.h. */ 3359#include <stdio.h> 3360int 3361main (void) 3362{ 3363FILE *f = fopen ("conftest.out", "w"); 3364 if (!f) 3365 return 1; 3366 return ferror (f) || fclose (f) != 0; 3367 3368 ; 3369 return 0; 3370} 3371_ACEOF 3372ac_clean_files="$ac_clean_files conftest.out" 3373# Check that the compiler produces executables we can run. If not, either 3374# the compiler is broken, or we cross compile. 3375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3376printf %s "checking whether we are cross compiling... " >&6; } 3377if test "$cross_compiling" != yes; then 3378 { { ac_try="$ac_link" 3379case "(($ac_try" in 3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3381 *) ac_try_echo=$ac_try;; 3382esac 3383eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3384printf "%s\n" "$ac_try_echo"; } >&5 3385 (eval "$ac_link") 2>&5 3386 ac_status=$? 3387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3388 test $ac_status = 0; } 3389 if { ac_try='./conftest$ac_cv_exeext' 3390 { { case "(($ac_try" in 3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3392 *) ac_try_echo=$ac_try;; 3393esac 3394eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3395printf "%s\n" "$ac_try_echo"; } >&5 3396 (eval "$ac_try") 2>&5 3397 ac_status=$? 3398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3399 test $ac_status = 0; }; }; then 3400 cross_compiling=no 3401 else 3402 if test "$cross_compiling" = maybe; then 3403 cross_compiling=yes 3404 else 3405 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3406printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3407as_fn_error 77 "cannot run C compiled programs. 3408If you meant to cross compile, use '--host'. 3409See 'config.log' for more details" "$LINENO" 5; } 3410 fi 3411 fi 3412fi 3413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3414printf "%s\n" "$cross_compiling" >&6; } 3415 3416rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3417 conftest.o conftest.obj conftest.out 3418ac_clean_files=$ac_clean_files_save 3419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3420printf %s "checking for suffix of object files... " >&6; } 3421if test ${ac_cv_objext+y} 3422then : 3423 printf %s "(cached) " >&6 3424else case e in #( 3425 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3426/* end confdefs.h. */ 3427 3428int 3429main (void) 3430{ 3431 3432 ; 3433 return 0; 3434} 3435_ACEOF 3436rm -f conftest.o conftest.obj 3437if { { ac_try="$ac_compile" 3438case "(($ac_try" in 3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3440 *) ac_try_echo=$ac_try;; 3441esac 3442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3443printf "%s\n" "$ac_try_echo"; } >&5 3444 (eval "$ac_compile") 2>&5 3445 ac_status=$? 3446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3447 test $ac_status = 0; } 3448then : 3449 for ac_file in conftest.o conftest.obj conftest.*; do 3450 test -f "$ac_file" || continue; 3451 case $ac_file in 3452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3453 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3454 break;; 3455 esac 3456done 3457else case e in #( 3458 e) printf "%s\n" "$as_me: failed program was:" >&5 3459sed 's/^/| /' conftest.$ac_ext >&5 3460 3461{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3462printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3463as_fn_error $? "cannot compute suffix of object files: cannot compile 3464See 'config.log' for more details" "$LINENO" 5; } ;; 3465esac 3466fi 3467rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3468esac 3469fi 3470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3471printf "%s\n" "$ac_cv_objext" >&6; } 3472OBJEXT=$ac_cv_objext 3473ac_objext=$OBJEXT 3474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3475printf %s "checking whether the compiler supports GNU C... " >&6; } 3476if test ${ac_cv_c_compiler_gnu+y} 3477then : 3478 printf %s "(cached) " >&6 3479else case e in #( 3480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3481/* end confdefs.h. */ 3482 3483int 3484main (void) 3485{ 3486#ifndef __GNUC__ 3487 choke me 3488#endif 3489 3490 ; 3491 return 0; 3492} 3493_ACEOF 3494if ac_fn_c_try_compile "$LINENO" 3495then : 3496 ac_compiler_gnu=yes 3497else case e in #( 3498 e) ac_compiler_gnu=no ;; 3499esac 3500fi 3501rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3502ac_cv_c_compiler_gnu=$ac_compiler_gnu 3503 ;; 3504esac 3505fi 3506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3507printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3508ac_compiler_gnu=$ac_cv_c_compiler_gnu 3509 3510if test $ac_compiler_gnu = yes; then 3511 GCC=yes 3512else 3513 GCC= 3514fi 3515ac_test_CFLAGS=${CFLAGS+y} 3516ac_save_CFLAGS=$CFLAGS 3517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3518printf %s "checking whether $CC accepts -g... " >&6; } 3519if test ${ac_cv_prog_cc_g+y} 3520then : 3521 printf %s "(cached) " >&6 3522else case e in #( 3523 e) ac_save_c_werror_flag=$ac_c_werror_flag 3524 ac_c_werror_flag=yes 3525 ac_cv_prog_cc_g=no 3526 CFLAGS="-g" 3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3528/* end confdefs.h. */ 3529 3530int 3531main (void) 3532{ 3533 3534 ; 3535 return 0; 3536} 3537_ACEOF 3538if ac_fn_c_try_compile "$LINENO" 3539then : 3540 ac_cv_prog_cc_g=yes 3541else case e in #( 3542 e) CFLAGS="" 3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3544/* end confdefs.h. */ 3545 3546int 3547main (void) 3548{ 3549 3550 ; 3551 return 0; 3552} 3553_ACEOF 3554if ac_fn_c_try_compile "$LINENO" 3555then : 3556 3557else case e in #( 3558 e) ac_c_werror_flag=$ac_save_c_werror_flag 3559 CFLAGS="-g" 3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3561/* end confdefs.h. */ 3562 3563int 3564main (void) 3565{ 3566 3567 ; 3568 return 0; 3569} 3570_ACEOF 3571if ac_fn_c_try_compile "$LINENO" 3572then : 3573 ac_cv_prog_cc_g=yes 3574fi 3575rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3576esac 3577fi 3578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3579esac 3580fi 3581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3582 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3583esac 3584fi 3585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3586printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3587if test $ac_test_CFLAGS; then 3588 CFLAGS=$ac_save_CFLAGS 3589elif test $ac_cv_prog_cc_g = yes; then 3590 if test "$GCC" = yes; then 3591 CFLAGS="-g -O2" 3592 else 3593 CFLAGS="-g" 3594 fi 3595else 3596 if test "$GCC" = yes; then 3597 CFLAGS="-O2" 3598 else 3599 CFLAGS= 3600 fi 3601fi 3602ac_prog_cc_stdc=no 3603if test x$ac_prog_cc_stdc = xno 3604then : 3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3606printf %s "checking for $CC option to enable C11 features... " >&6; } 3607if test ${ac_cv_prog_cc_c11+y} 3608then : 3609 printf %s "(cached) " >&6 3610else case e in #( 3611 e) ac_cv_prog_cc_c11=no 3612ac_save_CC=$CC 3613cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3614/* end confdefs.h. */ 3615$ac_c_conftest_c11_program 3616_ACEOF 3617for ac_arg in '' -std=gnu11 3618do 3619 CC="$ac_save_CC $ac_arg" 3620 if ac_fn_c_try_compile "$LINENO" 3621then : 3622 ac_cv_prog_cc_c11=$ac_arg 3623fi 3624rm -f core conftest.err conftest.$ac_objext conftest.beam 3625 test "x$ac_cv_prog_cc_c11" != "xno" && break 3626done 3627rm -f conftest.$ac_ext 3628CC=$ac_save_CC ;; 3629esac 3630fi 3631 3632if test "x$ac_cv_prog_cc_c11" = xno 3633then : 3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3635printf "%s\n" "unsupported" >&6; } 3636else case e in #( 3637 e) if test "x$ac_cv_prog_cc_c11" = x 3638then : 3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3640printf "%s\n" "none needed" >&6; } 3641else case e in #( 3642 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3643printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3644 CC="$CC $ac_cv_prog_cc_c11" ;; 3645esac 3646fi 3647 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3648 ac_prog_cc_stdc=c11 ;; 3649esac 3650fi 3651fi 3652if test x$ac_prog_cc_stdc = xno 3653then : 3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3655printf %s "checking for $CC option to enable C99 features... " >&6; } 3656if test ${ac_cv_prog_cc_c99+y} 3657then : 3658 printf %s "(cached) " >&6 3659else case e in #( 3660 e) ac_cv_prog_cc_c99=no 3661ac_save_CC=$CC 3662cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3663/* end confdefs.h. */ 3664$ac_c_conftest_c99_program 3665_ACEOF 3666for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3667do 3668 CC="$ac_save_CC $ac_arg" 3669 if ac_fn_c_try_compile "$LINENO" 3670then : 3671 ac_cv_prog_cc_c99=$ac_arg 3672fi 3673rm -f core conftest.err conftest.$ac_objext conftest.beam 3674 test "x$ac_cv_prog_cc_c99" != "xno" && break 3675done 3676rm -f conftest.$ac_ext 3677CC=$ac_save_CC ;; 3678esac 3679fi 3680 3681if test "x$ac_cv_prog_cc_c99" = xno 3682then : 3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3684printf "%s\n" "unsupported" >&6; } 3685else case e in #( 3686 e) if test "x$ac_cv_prog_cc_c99" = x 3687then : 3688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3689printf "%s\n" "none needed" >&6; } 3690else case e in #( 3691 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3692printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3693 CC="$CC $ac_cv_prog_cc_c99" ;; 3694esac 3695fi 3696 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3697 ac_prog_cc_stdc=c99 ;; 3698esac 3699fi 3700fi 3701if test x$ac_prog_cc_stdc = xno 3702then : 3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3704printf %s "checking for $CC option to enable C89 features... " >&6; } 3705if test ${ac_cv_prog_cc_c89+y} 3706then : 3707 printf %s "(cached) " >&6 3708else case e in #( 3709 e) ac_cv_prog_cc_c89=no 3710ac_save_CC=$CC 3711cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3712/* end confdefs.h. */ 3713$ac_c_conftest_c89_program 3714_ACEOF 3715for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3716do 3717 CC="$ac_save_CC $ac_arg" 3718 if ac_fn_c_try_compile "$LINENO" 3719then : 3720 ac_cv_prog_cc_c89=$ac_arg 3721fi 3722rm -f core conftest.err conftest.$ac_objext conftest.beam 3723 test "x$ac_cv_prog_cc_c89" != "xno" && break 3724done 3725rm -f conftest.$ac_ext 3726CC=$ac_save_CC ;; 3727esac 3728fi 3729 3730if test "x$ac_cv_prog_cc_c89" = xno 3731then : 3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3733printf "%s\n" "unsupported" >&6; } 3734else case e in #( 3735 e) if test "x$ac_cv_prog_cc_c89" = x 3736then : 3737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3738printf "%s\n" "none needed" >&6; } 3739else case e in #( 3740 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3741printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3742 CC="$CC $ac_cv_prog_cc_c89" ;; 3743esac 3744fi 3745 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3746 ac_prog_cc_stdc=c89 ;; 3747esac 3748fi 3749fi 3750 3751ac_ext=c 3752ac_cpp='$CPP $CPPFLAGS' 3753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3755ac_compiler_gnu=$ac_cv_c_compiler_gnu 3756 3757 3758 ac_ext=c 3759ac_cpp='$CPP $CPPFLAGS' 3760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3762ac_compiler_gnu=$ac_cv_c_compiler_gnu 3763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3764printf %s "checking whether $CC understands -c and -o together... " >&6; } 3765if test ${am_cv_prog_cc_c_o+y} 3766then : 3767 printf %s "(cached) " >&6 3768else case e in #( 3769 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3770/* end confdefs.h. */ 3771 3772int 3773main (void) 3774{ 3775 3776 ; 3777 return 0; 3778} 3779_ACEOF 3780 # Make sure it works both with $CC and with simple cc. 3781 # Following AC_PROG_CC_C_O, we do the test twice because some 3782 # compilers refuse to overwrite an existing .o file with -o, 3783 # though they will create one. 3784 am_cv_prog_cc_c_o=yes 3785 for am_i in 1 2; do 3786 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3787 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3788 ac_status=$? 3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3790 (exit $ac_status); } \ 3791 && test -f conftest2.$ac_objext; then 3792 : OK 3793 else 3794 am_cv_prog_cc_c_o=no 3795 break 3796 fi 3797 done 3798 rm -f core conftest* 3799 unset am_i ;; 3800esac 3801fi 3802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3803printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3804if test "$am_cv_prog_cc_c_o" != yes; then 3805 # Losing compiler, so override with the script. 3806 # FIXME: It is wrong to rewrite CC. 3807 # But if we don't then we get into trouble of one sort or another. 3808 # A longer-term fix would be to have automake use am__CC in this case, 3809 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3810 CC="$am_aux_dir/compile $CC" 3811fi 3812ac_ext=c 3813ac_cpp='$CPP $CPPFLAGS' 3814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3816ac_compiler_gnu=$ac_cv_c_compiler_gnu 3817 3818 3819 3820ac_header= ac_cache= 3821for ac_item in $ac_header_c_list 3822do 3823 if test $ac_cache; then 3824 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3825 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3826 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3827 fi 3828 ac_header= ac_cache= 3829 elif test $ac_header; then 3830 ac_cache=$ac_item 3831 else 3832 ac_header=$ac_item 3833 fi 3834done 3835 3836 3837 3838 3839 3840 3841 3842 3843if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3844then : 3845 3846printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3847 3848fi 3849 3850 3851 3852 3853 3854 3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3856printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3857if test ${ac_cv_safe_to_define___extensions__+y} 3858then : 3859 printf %s "(cached) " >&6 3860else case e in #( 3861 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3862/* end confdefs.h. */ 3863 3864# define __EXTENSIONS__ 1 3865 $ac_includes_default 3866int 3867main (void) 3868{ 3869 3870 ; 3871 return 0; 3872} 3873_ACEOF 3874if ac_fn_c_try_compile "$LINENO" 3875then : 3876 ac_cv_safe_to_define___extensions__=yes 3877else case e in #( 3878 e) ac_cv_safe_to_define___extensions__=no ;; 3879esac 3880fi 3881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3882esac 3883fi 3884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3885printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3886 3887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3888printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3889if test ${ac_cv_should_define__xopen_source+y} 3890then : 3891 printf %s "(cached) " >&6 3892else case e in #( 3893 e) ac_cv_should_define__xopen_source=no 3894 if test $ac_cv_header_wchar_h = yes 3895then : 3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3897/* end confdefs.h. */ 3898 3899 #include <wchar.h> 3900 mbstate_t x; 3901int 3902main (void) 3903{ 3904 3905 ; 3906 return 0; 3907} 3908_ACEOF 3909if ac_fn_c_try_compile "$LINENO" 3910then : 3911 3912else case e in #( 3913 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3914/* end confdefs.h. */ 3915 3916 #define _XOPEN_SOURCE 500 3917 #include <wchar.h> 3918 mbstate_t x; 3919int 3920main (void) 3921{ 3922 3923 ; 3924 return 0; 3925} 3926_ACEOF 3927if ac_fn_c_try_compile "$LINENO" 3928then : 3929 ac_cv_should_define__xopen_source=yes 3930fi 3931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3932esac 3933fi 3934rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3935fi ;; 3936esac 3937fi 3938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3939printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3940 3941 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3942 3943 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3944 3945 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3946 3947 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3948 3949 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3950 3951 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3952 3953 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3954 3955 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3956 3957 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3958 3959 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3960 3961 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 3962 3963 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3964 3965 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3966 3967 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3968 3969 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3970 3971 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3972 3973 if test $ac_cv_header_minix_config_h = yes 3974then : 3975 MINIX=yes 3976 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3977 3978 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3979 3980 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3981 3982else case e in #( 3983 e) MINIX= ;; 3984esac 3985fi 3986 if test $ac_cv_safe_to_define___extensions__ = yes 3987then : 3988 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3989 3990fi 3991 if test $ac_cv_should_define__xopen_source = yes 3992then : 3993 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3994 3995fi 3996 3997 3998# Initialize Automake 3999am__api_version='1.17' 4000 4001 4002 # Find a good install program. We prefer a C program (faster), 4003# so one script is as good as another. But avoid the broken or 4004# incompatible versions: 4005# SysV /etc/install, /usr/sbin/install 4006# SunOS /usr/etc/install 4007# IRIX /sbin/install 4008# AIX /bin/install 4009# AmigaOS /C/install, which installs bootblocks on floppy discs 4010# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4011# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4012# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4013# OS/2's system install, which has a completely different semantic 4014# ./install, which can be erroneously created by make from ./install.sh. 4015# Reject install programs that cannot install multiple files. 4016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4017printf %s "checking for a BSD-compatible install... " >&6; } 4018if test -z "$INSTALL"; then 4019if test ${ac_cv_path_install+y} 4020then : 4021 printf %s "(cached) " >&6 4022else case e in #( 4023 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4024for as_dir in $PATH 4025do 4026 IFS=$as_save_IFS 4027 case $as_dir in #((( 4028 '') as_dir=./ ;; 4029 */) ;; 4030 *) as_dir=$as_dir/ ;; 4031 esac 4032 # Account for fact that we put trailing slashes in our PATH walk. 4033case $as_dir in #(( 4034 ./ | /[cC]/* | \ 4035 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4036 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4037 /usr/ucb/* ) ;; 4038 *) 4039 # OSF1 and SCO ODT 3.0 have their own names for install. 4040 # Don't use installbsd from OSF since it installs stuff as root 4041 # by default. 4042 for ac_prog in ginstall scoinst install; do 4043 for ac_exec_ext in '' $ac_executable_extensions; do 4044 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 4045 if test $ac_prog = install && 4046 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4047 # AIX install. It has an incompatible calling convention. 4048 : 4049 elif test $ac_prog = install && 4050 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4051 # program-specific install script used by HP pwplus--don't use. 4052 : 4053 else 4054 rm -rf conftest.one conftest.two conftest.dir 4055 echo one > conftest.one 4056 echo two > conftest.two 4057 mkdir conftest.dir 4058 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 4059 test -s conftest.one && test -s conftest.two && 4060 test -s conftest.dir/conftest.one && 4061 test -s conftest.dir/conftest.two 4062 then 4063 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 4064 break 3 4065 fi 4066 fi 4067 fi 4068 done 4069 done 4070 ;; 4071esac 4072 4073 done 4074IFS=$as_save_IFS 4075 4076rm -rf conftest.one conftest.two conftest.dir 4077 ;; 4078esac 4079fi 4080 if test ${ac_cv_path_install+y}; then 4081 INSTALL=$ac_cv_path_install 4082 else 4083 # As a last resort, use the slow shell script. Don't cache a 4084 # value for INSTALL within a source directory, because that will 4085 # break other packages using the cache if that directory is 4086 # removed, or if the value is a relative name. 4087 INSTALL=$ac_install_sh 4088 fi 4089fi 4090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4091printf "%s\n" "$INSTALL" >&6; } 4092 4093# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4094# It thinks the first close brace ends the variable substitution. 4095test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4096 4097test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4098 4099test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4100 4101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 4102printf %s "checking whether sleep supports fractional seconds... " >&6; } 4103if test ${am_cv_sleep_fractional_seconds+y} 4104then : 4105 printf %s "(cached) " >&6 4106else case e in #( 4107 e) if sleep 0.001 2>/dev/null 4108then : 4109 am_cv_sleep_fractional_seconds=yes 4110else case e in #( 4111 e) am_cv_sleep_fractional_seconds=no ;; 4112esac 4113fi 4114 ;; 4115esac 4116fi 4117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 4118printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 4119 4120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 4121printf %s "checking filesystem timestamp resolution... " >&6; } 4122if test ${am_cv_filesystem_timestamp_resolution+y} 4123then : 4124 printf %s "(cached) " >&6 4125else case e in #( 4126 e) # Default to the worst case. 4127am_cv_filesystem_timestamp_resolution=2 4128 4129# Only try to go finer than 1 sec if sleep can do it. 4130# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 4131# - 1 sec is not much of a win compared to 2 sec, and 4132# - it takes 2 seconds to perform the test whether 1 sec works. 4133# 4134# Instead, just use the default 2s on platforms that have 1s resolution, 4135# accept the extra 1s delay when using $sleep in the Automake tests, in 4136# exchange for not incurring the 2s delay for running the test for all 4137# packages. 4138# 4139am_try_resolutions= 4140if test "$am_cv_sleep_fractional_seconds" = yes; then 4141 # Even a millisecond often causes a bunch of false positives, 4142 # so just try a hundredth of a second. The time saved between .001 and 4143 # .01 is not terribly consequential. 4144 am_try_resolutions="0.01 0.1 $am_try_resolutions" 4145fi 4146 4147# In order to catch current-generation FAT out, we must *modify* files 4148# that already exist; the *creation* timestamp is finer. Use names 4149# that make ls -t sort them differently when they have equal 4150# timestamps than when they have distinct timestamps, keeping 4151# in mind that ls -t prints the *newest* file first. 4152rm -f conftest.ts? 4153: > conftest.ts1 4154: > conftest.ts2 4155: > conftest.ts3 4156 4157# Make sure ls -t actually works. Do 'set' in a subshell so we don't 4158# clobber the current shell's arguments. (Outer-level square brackets 4159# are removed by m4; they're present so that m4 does not expand 4160# <dollar><star>; be careful, easy to get confused.) 4161if ( 4162 set X `ls -t conftest.ts[12]` && 4163 { 4164 test "$*" != "X conftest.ts1 conftest.ts2" || 4165 test "$*" != "X conftest.ts2 conftest.ts1"; 4166 } 4167); then :; else 4168 # If neither matched, then we have a broken ls. This can happen 4169 # if, for instance, CONFIG_SHELL is bash and it inherits a 4170 # broken ls alias from the environment. This has actually 4171 # happened. Such a system could not be considered "sane". 4172 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 4173 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4174printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4175as_fn_error $? "ls -t produces unexpected output. 4176Make sure there is not a broken ls alias in your environment. 4177See 'config.log' for more details" "$LINENO" 5; } 4178fi 4179 4180for am_try_res in $am_try_resolutions; do 4181 # Any one fine-grained sleep might happen to cross the boundary 4182 # between two values of a coarser actual resolution, but if we do 4183 # two fine-grained sleeps in a row, at least one of them will fall 4184 # entirely within a coarse interval. 4185 echo alpha > conftest.ts1 4186 sleep $am_try_res 4187 echo beta > conftest.ts2 4188 sleep $am_try_res 4189 echo gamma > conftest.ts3 4190 4191 # We assume that 'ls -t' will make use of high-resolution 4192 # timestamps if the operating system supports them at all. 4193 if (set X `ls -t conftest.ts?` && 4194 test "$2" = conftest.ts3 && 4195 test "$3" = conftest.ts2 && 4196 test "$4" = conftest.ts1); then 4197 # 4198 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 4199 # because we don't need to test make. 4200 make_ok=true 4201 if test $am_try_res != 1; then 4202 # But if we've succeeded so far with a subsecond resolution, we 4203 # have one more thing to check: make. It can happen that 4204 # everything else supports the subsecond mtimes, but make doesn't; 4205 # notably on macOS, which ships make 3.81 from 2006 (the last one 4206 # released under GPLv2). https://bugs.gnu.org/68808 4207 # 4208 # We test $MAKE if it is defined in the environment, else "make". 4209 # It might get overridden later, but our hope is that in practice 4210 # it does not matter: it is the system "make" which is (by far) 4211 # the most likely to be broken, whereas if the user overrides it, 4212 # probably they did so with a better, or at least not worse, make. 4213 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 4214 # 4215 # Create a Makefile (real tab character here): 4216 rm -f conftest.mk 4217 echo 'conftest.ts1: conftest.ts2' >conftest.mk 4218 echo ' touch conftest.ts2' >>conftest.mk 4219 # 4220 # Now, running 4221 # touch conftest.ts1; touch conftest.ts2; make 4222 # should touch ts1 because ts2 is newer. This could happen by luck, 4223 # but most often, it will fail if make's support is insufficient. So 4224 # test for several consecutive successes. 4225 # 4226 # (We reuse conftest.ts[12] because we still want to modify existing 4227 # files, not create new ones, per above.) 4228 n=0 4229 make=${MAKE-make} 4230 until test $n -eq 3; do 4231 echo one > conftest.ts1 4232 sleep $am_try_res 4233 echo two > conftest.ts2 # ts2 should now be newer than ts1 4234 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 4235 make_ok=false 4236 break # out of $n loop 4237 fi 4238 n=`expr $n + 1` 4239 done 4240 fi 4241 # 4242 if $make_ok; then 4243 # Everything we know to check worked out, so call this resolution good. 4244 am_cv_filesystem_timestamp_resolution=$am_try_res 4245 break # out of $am_try_res loop 4246 fi 4247 # Otherwise, we'll go on to check the next resolution. 4248 fi 4249done 4250rm -f conftest.ts? 4251# (end _am_filesystem_timestamp_resolution) 4252 ;; 4253esac 4254fi 4255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 4256printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 4257 4258# This check should not be cached, as it may vary across builds of 4259# different projects. 4260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4261printf %s "checking whether build environment is sane... " >&6; } 4262# Reject unsafe characters in $srcdir or the absolute working directory 4263# name. Accept space and tab only in the latter. 4264am_lf=' 4265' 4266case `pwd` in 4267 *[\\\"\#\$\&\'\`$am_lf]*) 4268 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4269esac 4270case $srcdir in 4271 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4272 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4273esac 4274 4275# Do 'set' in a subshell so we don't clobber the current shell's 4276# arguments. Must try -L first in case configure is actually a 4277# symlink; some systems play weird games with the mod time of symlinks 4278# (eg FreeBSD returns the mod time of the symlink's containing 4279# directory). 4280am_build_env_is_sane=no 4281am_has_slept=no 4282rm -f conftest.file 4283for am_try in 1 2; do 4284 echo "timestamp, slept: $am_has_slept" > conftest.file 4285 if ( 4286 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4287 if test "$*" = "X"; then 4288 # -L didn't work. 4289 set X `ls -t "$srcdir/configure" conftest.file` 4290 fi 4291 test "$2" = conftest.file 4292 ); then 4293 am_build_env_is_sane=yes 4294 break 4295 fi 4296 # Just in case. 4297 sleep "$am_cv_filesystem_timestamp_resolution" 4298 am_has_slept=yes 4299done 4300 4301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 4302printf "%s\n" "$am_build_env_is_sane" >&6; } 4303if test "$am_build_env_is_sane" = no; then 4304 as_fn_error $? "newly created file is older than distributed files! 4305Check your system clock" "$LINENO" 5 4306fi 4307 4308# If we didn't sleep, we still need to ensure time stamps of config.status and 4309# generated files are strictly newer. 4310am_sleep_pid= 4311if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 4312then : 4313 4314else case e in #( 4315 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 4316 am_sleep_pid=$! 4317 ;; 4318esac 4319fi 4320 4321rm -f conftest.file 4322 4323test "$program_prefix" != NONE && 4324 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4325# Use a double $ so make ignores it. 4326test "$program_suffix" != NONE && 4327 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4328# Double any \ or $. 4329# By default was 's,x,x', remove it if useless. 4330ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4331program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4332 4333 4334 if test x"${MISSING+set}" != xset; then 4335 MISSING="\${SHELL} '$am_aux_dir/missing'" 4336fi 4337# Use eval to expand $SHELL 4338if eval "$MISSING --is-lightweight"; then 4339 am_missing_run="$MISSING " 4340else 4341 am_missing_run= 4342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4343printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4344fi 4345 4346if test x"${install_sh+set}" != xset; then 4347 case $am_aux_dir in 4348 *\ * | *\ *) 4349 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4350 *) 4351 install_sh="\${SHELL} $am_aux_dir/install-sh" 4352 esac 4353fi 4354 4355# Installed binaries are usually stripped using 'strip' when the user 4356# run "make install-strip". However 'strip' might not be the right 4357# tool to use in cross-compilation environments, therefore Automake 4358# will honor the 'STRIP' environment variable to overrule this program. 4359if test "$cross_compiling" != no; then 4360 if test -n "$ac_tool_prefix"; then 4361 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4362set dummy ${ac_tool_prefix}strip; ac_word=$2 4363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4364printf %s "checking for $ac_word... " >&6; } 4365if test ${ac_cv_prog_STRIP+y} 4366then : 4367 printf %s "(cached) " >&6 4368else case e in #( 4369 e) if test -n "$STRIP"; then 4370 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4371else 4372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4373for as_dir in $PATH 4374do 4375 IFS=$as_save_IFS 4376 case $as_dir in #((( 4377 '') as_dir=./ ;; 4378 */) ;; 4379 *) as_dir=$as_dir/ ;; 4380 esac 4381 for ac_exec_ext in '' $ac_executable_extensions; do 4382 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4383 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4385 break 2 4386 fi 4387done 4388 done 4389IFS=$as_save_IFS 4390 4391fi ;; 4392esac 4393fi 4394STRIP=$ac_cv_prog_STRIP 4395if test -n "$STRIP"; then 4396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4397printf "%s\n" "$STRIP" >&6; } 4398else 4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4400printf "%s\n" "no" >&6; } 4401fi 4402 4403 4404fi 4405if test -z "$ac_cv_prog_STRIP"; then 4406 ac_ct_STRIP=$STRIP 4407 # Extract the first word of "strip", so it can be a program name with args. 4408set dummy strip; ac_word=$2 4409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4410printf %s "checking for $ac_word... " >&6; } 4411if test ${ac_cv_prog_ac_ct_STRIP+y} 4412then : 4413 printf %s "(cached) " >&6 4414else case e in #( 4415 e) if test -n "$ac_ct_STRIP"; then 4416 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4417else 4418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4419for as_dir in $PATH 4420do 4421 IFS=$as_save_IFS 4422 case $as_dir in #((( 4423 '') as_dir=./ ;; 4424 */) ;; 4425 *) as_dir=$as_dir/ ;; 4426 esac 4427 for ac_exec_ext in '' $ac_executable_extensions; do 4428 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4429 ac_cv_prog_ac_ct_STRIP="strip" 4430 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4431 break 2 4432 fi 4433done 4434 done 4435IFS=$as_save_IFS 4436 4437fi ;; 4438esac 4439fi 4440ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4441if test -n "$ac_ct_STRIP"; then 4442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4443printf "%s\n" "$ac_ct_STRIP" >&6; } 4444else 4445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4446printf "%s\n" "no" >&6; } 4447fi 4448 4449 if test "x$ac_ct_STRIP" = x; then 4450 STRIP=":" 4451 else 4452 case $cross_compiling:$ac_tool_warned in 4453yes:) 4454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4455printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4456ac_tool_warned=yes ;; 4457esac 4458 STRIP=$ac_ct_STRIP 4459 fi 4460else 4461 STRIP="$ac_cv_prog_STRIP" 4462fi 4463 4464fi 4465INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4466 4467 4468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4469printf %s "checking for a race-free mkdir -p... " >&6; } 4470if test -z "$MKDIR_P"; then 4471 if test ${ac_cv_path_mkdir+y} 4472then : 4473 printf %s "(cached) " >&6 4474else case e in #( 4475 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4476for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4477do 4478 IFS=$as_save_IFS 4479 case $as_dir in #((( 4480 '') as_dir=./ ;; 4481 */) ;; 4482 *) as_dir=$as_dir/ ;; 4483 esac 4484 for ac_prog in mkdir gmkdir; do 4485 for ac_exec_ext in '' $ac_executable_extensions; do 4486 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4487 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4488 'mkdir ('*'coreutils) '* | \ 4489 *'BusyBox '* | \ 4490 'mkdir (fileutils) '4.1*) 4491 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4492 break 3;; 4493 esac 4494 done 4495 done 4496 done 4497IFS=$as_save_IFS 4498 ;; 4499esac 4500fi 4501 4502 test -d ./--version && rmdir ./--version 4503 if test ${ac_cv_path_mkdir+y}; then 4504 MKDIR_P="$ac_cv_path_mkdir -p" 4505 else 4506 # As a last resort, use plain mkdir -p, 4507 # in the hope it doesn't have the bugs of ancient mkdir. 4508 MKDIR_P='mkdir -p' 4509 fi 4510fi 4511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4512printf "%s\n" "$MKDIR_P" >&6; } 4513 4514for ac_prog in gawk mawk nawk awk 4515do 4516 # Extract the first word of "$ac_prog", so it can be a program name with args. 4517set dummy $ac_prog; ac_word=$2 4518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4519printf %s "checking for $ac_word... " >&6; } 4520if test ${ac_cv_prog_AWK+y} 4521then : 4522 printf %s "(cached) " >&6 4523else case e in #( 4524 e) if test -n "$AWK"; then 4525 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4526else 4527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4528for as_dir in $PATH 4529do 4530 IFS=$as_save_IFS 4531 case $as_dir in #((( 4532 '') as_dir=./ ;; 4533 */) ;; 4534 *) as_dir=$as_dir/ ;; 4535 esac 4536 for ac_exec_ext in '' $ac_executable_extensions; do 4537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4538 ac_cv_prog_AWK="$ac_prog" 4539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4540 break 2 4541 fi 4542done 4543 done 4544IFS=$as_save_IFS 4545 4546fi ;; 4547esac 4548fi 4549AWK=$ac_cv_prog_AWK 4550if test -n "$AWK"; then 4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4552printf "%s\n" "$AWK" >&6; } 4553else 4554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4555printf "%s\n" "no" >&6; } 4556fi 4557 4558 4559 test -n "$AWK" && break 4560done 4561 4562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4563printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4564set x ${MAKE-make} 4565ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4566if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4567then : 4568 printf %s "(cached) " >&6 4569else case e in #( 4570 e) cat >conftest.make <<\_ACEOF 4571SHELL = /bin/sh 4572all: 4573 @echo '@@@%%%=$(MAKE)=@@@%%%' 4574_ACEOF 4575# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4576case `${MAKE-make} -f conftest.make 2>/dev/null` in 4577 *@@@%%%=?*=@@@%%%*) 4578 eval ac_cv_prog_make_${ac_make}_set=yes;; 4579 *) 4580 eval ac_cv_prog_make_${ac_make}_set=no;; 4581esac 4582rm -f conftest.make ;; 4583esac 4584fi 4585if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4587printf "%s\n" "yes" >&6; } 4588 SET_MAKE= 4589else 4590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4591printf "%s\n" "no" >&6; } 4592 SET_MAKE="MAKE=${MAKE-make}" 4593fi 4594 4595rm -rf .tst 2>/dev/null 4596mkdir .tst 2>/dev/null 4597if test -d .tst; then 4598 am__leading_dot=. 4599else 4600 am__leading_dot=_ 4601fi 4602rmdir .tst 2>/dev/null 4603 4604DEPDIR="${am__leading_dot}deps" 4605 4606ac_config_commands="$ac_config_commands depfiles" 4607 4608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4609printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4610cat > confinc.mk << 'END' 4611am__doit: 4612 @echo this is the am__doit target >confinc.out 4613.PHONY: am__doit 4614END 4615am__include="#" 4616am__quote= 4617# BSD make does it like this. 4618echo '.include "confinc.mk" # ignored' > confmf.BSD 4619# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4620echo 'include confinc.mk # ignored' > confmf.GNU 4621_am_result=no 4622for s in GNU BSD; do 4623 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4624 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4625 ac_status=$? 4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4627 (exit $ac_status); } 4628 case $?:`cat confinc.out 2>/dev/null` in #( 4629 '0:this is the am__doit target') : 4630 case $s in #( 4631 BSD) : 4632 am__include='.include' am__quote='"' ;; #( 4633 *) : 4634 am__include='include' am__quote='' ;; 4635esac ;; #( 4636 *) : 4637 ;; 4638esac 4639 if test "$am__include" != "#"; then 4640 _am_result="yes ($s style)" 4641 break 4642 fi 4643done 4644rm -f confinc.* confmf.* 4645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4646printf "%s\n" "${_am_result}" >&6; } 4647 4648# Check whether --enable-dependency-tracking was given. 4649if test ${enable_dependency_tracking+y} 4650then : 4651 enableval=$enable_dependency_tracking; 4652fi 4653 4654if test "x$enable_dependency_tracking" != xno; then 4655 am_depcomp="$ac_aux_dir/depcomp" 4656 AMDEPBACKSLASH='\' 4657 am__nodep='_no' 4658fi 4659 if test "x$enable_dependency_tracking" != xno; then 4660 AMDEP_TRUE= 4661 AMDEP_FALSE='#' 4662else 4663 AMDEP_TRUE='#' 4664 AMDEP_FALSE= 4665fi 4666 4667 4668AM_DEFAULT_VERBOSITY=1 4669# Check whether --enable-silent-rules was given. 4670if test ${enable_silent_rules+y} 4671then : 4672 enableval=$enable_silent_rules; 4673fi 4674 4675am_make=${MAKE-make} 4676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4677printf %s "checking whether $am_make supports nested variables... " >&6; } 4678if test ${am_cv_make_support_nested_variables+y} 4679then : 4680 printf %s "(cached) " >&6 4681else case e in #( 4682 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 4683BAR0=false 4684BAR1=true 4685V=1 4686am__doit: 4687 @$(TRUE) 4688.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4689 am_cv_make_support_nested_variables=yes 4690else 4691 am_cv_make_support_nested_variables=no 4692fi ;; 4693esac 4694fi 4695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4696printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4697AM_BACKSLASH='\' 4698 4699am__rm_f_notfound= 4700if (rm -f && rm -fr && rm -rf) 2>/dev/null 4701then : 4702 4703else case e in #( 4704 e) am__rm_f_notfound='""' ;; 4705esac 4706fi 4707 4708 4709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 4710printf %s "checking xargs -n works... " >&6; } 4711if test ${am_cv_xargs_n_works+y} 4712then : 4713 printf %s "(cached) " >&6 4714else case e in #( 4715 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 47163" 4717then : 4718 am_cv_xargs_n_works=yes 4719else case e in #( 4720 e) am_cv_xargs_n_works=no ;; 4721esac 4722fi ;; 4723esac 4724fi 4725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 4726printf "%s\n" "$am_cv_xargs_n_works" >&6; } 4727if test "$am_cv_xargs_n_works" = yes 4728then : 4729 am__xargs_n='xargs -n' 4730else case e in #( 4731 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 4732 ;; 4733esac 4734fi 4735 4736if test "`cd $srcdir && pwd`" != "`pwd`"; then 4737 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4738 # is not polluted with repeated "-I." 4739 am__isrc=' -I$(srcdir)' 4740 # test to see if srcdir already configured 4741 if test -f $srcdir/config.status; then 4742 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4743 fi 4744fi 4745 4746# test whether we have cygpath 4747if test -z "$CYGPATH_W"; then 4748 if (cygpath --version) >/dev/null 2>/dev/null; then 4749 CYGPATH_W='cygpath -w' 4750 else 4751 CYGPATH_W=echo 4752 fi 4753fi 4754 4755 4756# Define the identity of the package. 4757 PACKAGE='xauth' 4758 VERSION='1.1.4' 4759 4760 4761printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4762 4763 4764printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4765 4766# Some tools Automake needs. 4767 4768ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4769 4770 4771AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4772 4773 4774AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4775 4776 4777AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4778 4779 4780MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4781 4782# For better backward compatibility. To be removed once Automake 1.9.x 4783# dies out for good. For more background, see: 4784# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4785# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4786mkdir_p='$(MKDIR_P)' 4787 4788# We need awk for the "check" target (and possibly the TAP driver). The 4789# system "awk" is bad on some platforms. 4790# Always define AMTAR for backward compatibility. Yes, it's still used 4791# in the wild :-( We should find a proper way to deprecate it ... 4792AMTAR='$${TAR-tar}' 4793 4794 4795# We'll loop over all known methods to create a tar archive until one works. 4796_am_tools='gnutar pax cpio none' 4797 4798am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4799 4800 4801 4802 4803 4804depcc="$CC" am_compiler_list= 4805 4806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4807printf %s "checking dependency style of $depcc... " >&6; } 4808if test ${am_cv_CC_dependencies_compiler_type+y} 4809then : 4810 printf %s "(cached) " >&6 4811else case e in #( 4812 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4813 # We make a subdir and do the tests there. Otherwise we can end up 4814 # making bogus files that we don't know about and never remove. For 4815 # instance it was reported that on HP-UX the gcc test will end up 4816 # making a dummy file named 'D' -- because '-MD' means "put the output 4817 # in D". 4818 rm -rf conftest.dir 4819 mkdir conftest.dir 4820 # Copy depcomp to subdir because otherwise we won't find it if we're 4821 # using a relative directory. 4822 cp "$am_depcomp" conftest.dir 4823 cd conftest.dir 4824 # We will build objects and dependencies in a subdirectory because 4825 # it helps to detect inapplicable dependency modes. For instance 4826 # both Tru64's cc and ICC support -MD to output dependencies as a 4827 # side effect of compilation, but ICC will put the dependencies in 4828 # the current directory while Tru64 will put them in the object 4829 # directory. 4830 mkdir sub 4831 4832 am_cv_CC_dependencies_compiler_type=none 4833 if test "$am_compiler_list" = ""; then 4834 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4835 fi 4836 am__universal=false 4837 case " $depcc " in #( 4838 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4839 esac 4840 4841 for depmode in $am_compiler_list; do 4842 # Setup a source with many dependencies, because some compilers 4843 # like to wrap large dependency lists on column 80 (with \), and 4844 # we should not choose a depcomp mode which is confused by this. 4845 # 4846 # We need to recreate these files for each test, as the compiler may 4847 # overwrite some of them when testing with obscure command lines. 4848 # This happens at least with the AIX C compiler. 4849 : > sub/conftest.c 4850 for i in 1 2 3 4 5 6; do 4851 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4852 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4853 # Solaris 10 /bin/sh. 4854 echo '/* dummy */' > sub/conftst$i.h 4855 done 4856 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4857 4858 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4859 # mode. It turns out that the SunPro C++ compiler does not properly 4860 # handle '-M -o', and we need to detect this. Also, some Intel 4861 # versions had trouble with output in subdirs. 4862 am__obj=sub/conftest.${OBJEXT-o} 4863 am__minus_obj="-o $am__obj" 4864 case $depmode in 4865 gcc) 4866 # This depmode causes a compiler race in universal mode. 4867 test "$am__universal" = false || continue 4868 ;; 4869 nosideeffect) 4870 # After this tag, mechanisms are not by side-effect, so they'll 4871 # only be used when explicitly requested. 4872 if test "x$enable_dependency_tracking" = xyes; then 4873 continue 4874 else 4875 break 4876 fi 4877 ;; 4878 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4879 # This compiler won't grok '-c -o', but also, the minuso test has 4880 # not run yet. These depmodes are late enough in the game, and 4881 # so weak that their functioning should not be impacted. 4882 am__obj=conftest.${OBJEXT-o} 4883 am__minus_obj= 4884 ;; 4885 none) break ;; 4886 esac 4887 if depmode=$depmode \ 4888 source=sub/conftest.c object=$am__obj \ 4889 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4890 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4891 >/dev/null 2>conftest.err && 4892 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4893 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4894 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4895 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4896 # icc doesn't choke on unknown options, it will just issue warnings 4897 # or remarks (even with -Werror). So we grep stderr for any message 4898 # that says an option was ignored or not supported. 4899 # When given -MP, icc 7.0 and 7.1 complain thus: 4900 # icc: Command line warning: ignoring option '-M'; no argument required 4901 # The diagnosis changed in icc 8.0: 4902 # icc: Command line remark: option '-MP' not supported 4903 if (grep 'ignoring option' conftest.err || 4904 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4905 am_cv_CC_dependencies_compiler_type=$depmode 4906 break 4907 fi 4908 fi 4909 done 4910 4911 cd .. 4912 rm -rf conftest.dir 4913else 4914 am_cv_CC_dependencies_compiler_type=none 4915fi 4916 ;; 4917esac 4918fi 4919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4920printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4921CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4922 4923 if 4924 test "x$enable_dependency_tracking" != xno \ 4925 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4926 am__fastdepCC_TRUE= 4927 am__fastdepCC_FALSE='#' 4928else 4929 am__fastdepCC_TRUE='#' 4930 am__fastdepCC_FALSE= 4931fi 4932 4933 4934# Variables for tags utilities; see am/tags.am 4935if test -z "$CTAGS"; then 4936 CTAGS=ctags 4937fi 4938 4939if test -z "$ETAGS"; then 4940 ETAGS=etags 4941fi 4942 4943if test -z "$CSCOPE"; then 4944 CSCOPE=cscope 4945fi 4946 4947 4948 4949 4950 4951 4952 4953 4954# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4967printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4968if test ${ac_cv_c_undeclared_builtin_options+y} 4969then : 4970 printf %s "(cached) " >&6 4971else case e in #( 4972 e) ac_save_CFLAGS=$CFLAGS 4973 ac_cv_c_undeclared_builtin_options='cannot detect' 4974 for ac_arg in '' -fno-builtin; do 4975 CFLAGS="$ac_save_CFLAGS $ac_arg" 4976 # This test program should *not* compile successfully. 4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4978/* end confdefs.h. */ 4979 4980int 4981main (void) 4982{ 4983(void) strchr; 4984 ; 4985 return 0; 4986} 4987_ACEOF 4988if ac_fn_c_try_compile "$LINENO" 4989then : 4990 4991else case e in #( 4992 e) # This test program should compile successfully. 4993 # No library function is consistently available on 4994 # freestanding implementations, so test against a dummy 4995 # declaration. Include always-available headers on the 4996 # off chance that they somehow elicit warnings. 4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4998/* end confdefs.h. */ 4999#include <float.h> 5000#include <limits.h> 5001#include <stdarg.h> 5002#include <stddef.h> 5003extern void ac_decl (int, char *); 5004 5005int 5006main (void) 5007{ 5008(void) ac_decl (0, (char *) 0); 5009 (void) ac_decl; 5010 5011 ; 5012 return 0; 5013} 5014_ACEOF 5015if ac_fn_c_try_compile "$LINENO" 5016then : 5017 if test x"$ac_arg" = x 5018then : 5019 ac_cv_c_undeclared_builtin_options='none needed' 5020else case e in #( 5021 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 5022esac 5023fi 5024 break 5025fi 5026rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5027esac 5028fi 5029rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5030 done 5031 CFLAGS=$ac_save_CFLAGS 5032 ;; 5033esac 5034fi 5035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 5036printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 5037 case $ac_cv_c_undeclared_builtin_options in #( 5038 'cannot detect') : 5039 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 5040printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 5041as_fn_error $? "cannot make $CC report undeclared builtins 5042See 'config.log' for more details" "$LINENO" 5; } ;; #( 5043 'none needed') : 5044 ac_c_undeclared_builtin_options='' ;; #( 5045 *) : 5046 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 5047esac 5048 5049 5050 5051 5052 5053ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 5054if test "x$ac_cv_have_decl___clang__" = xyes 5055then : 5056 CLANGCC="yes" 5057else case e in #( 5058 e) CLANGCC="no" ;; 5059esac 5060fi 5061ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 5062if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 5063then : 5064 INTELCC="yes" 5065else case e in #( 5066 e) INTELCC="no" ;; 5067esac 5068fi 5069ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 5070if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 5071then : 5072 SUNCC="yes" 5073else case e in #( 5074 e) SUNCC="no" ;; 5075esac 5076fi 5077 5078 5079 5080 5081 5082 5083 5084 5085if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5086 if test -n "$ac_tool_prefix"; then 5087 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5088set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5090printf %s "checking for $ac_word... " >&6; } 5091if test ${ac_cv_path_PKG_CONFIG+y} 5092then : 5093 printf %s "(cached) " >&6 5094else case e in #( 5095 e) case $PKG_CONFIG in 5096 [\\/]* | ?:[\\/]*) 5097 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5098 ;; 5099 *) 5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5101for as_dir in $PATH 5102do 5103 IFS=$as_save_IFS 5104 case $as_dir in #((( 5105 '') as_dir=./ ;; 5106 */) ;; 5107 *) as_dir=$as_dir/ ;; 5108 esac 5109 for ac_exec_ext in '' $ac_executable_extensions; do 5110 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5111 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5113 break 2 5114 fi 5115done 5116 done 5117IFS=$as_save_IFS 5118 5119 ;; 5120esac ;; 5121esac 5122fi 5123PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5124if test -n "$PKG_CONFIG"; then 5125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5126printf "%s\n" "$PKG_CONFIG" >&6; } 5127else 5128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5129printf "%s\n" "no" >&6; } 5130fi 5131 5132 5133fi 5134if test -z "$ac_cv_path_PKG_CONFIG"; then 5135 ac_pt_PKG_CONFIG=$PKG_CONFIG 5136 # Extract the first word of "pkg-config", so it can be a program name with args. 5137set dummy pkg-config; ac_word=$2 5138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5139printf %s "checking for $ac_word... " >&6; } 5140if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 5141then : 5142 printf %s "(cached) " >&6 5143else case e in #( 5144 e) case $ac_pt_PKG_CONFIG in 5145 [\\/]* | ?:[\\/]*) 5146 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5147 ;; 5148 *) 5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5150for as_dir in $PATH 5151do 5152 IFS=$as_save_IFS 5153 case $as_dir in #((( 5154 '') as_dir=./ ;; 5155 */) ;; 5156 *) as_dir=$as_dir/ ;; 5157 esac 5158 for ac_exec_ext in '' $ac_executable_extensions; do 5159 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5160 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5162 break 2 5163 fi 5164done 5165 done 5166IFS=$as_save_IFS 5167 5168 ;; 5169esac ;; 5170esac 5171fi 5172ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5173if test -n "$ac_pt_PKG_CONFIG"; then 5174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5175printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 5176else 5177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5178printf "%s\n" "no" >&6; } 5179fi 5180 5181 if test "x$ac_pt_PKG_CONFIG" = x; then 5182 PKG_CONFIG="" 5183 else 5184 case $cross_compiling:$ac_tool_warned in 5185yes:) 5186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5187printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5188ac_tool_warned=yes ;; 5189esac 5190 PKG_CONFIG=$ac_pt_PKG_CONFIG 5191 fi 5192else 5193 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5194fi 5195 5196fi 5197if test -n "$PKG_CONFIG"; then 5198 _pkg_min_version=0.9.0 5199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5200printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5201 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5203printf "%s\n" "yes" >&6; } 5204 else 5205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5206printf "%s\n" "no" >&6; } 5207 PKG_CONFIG="" 5208 fi 5209fi 5210 5211 5212 # Make sure we can run config.sub. 5213$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5214 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5215 5216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5217printf %s "checking build system type... " >&6; } 5218if test ${ac_cv_build+y} 5219then : 5220 printf %s "(cached) " >&6 5221else case e in #( 5222 e) ac_build_alias=$build_alias 5223test "x$ac_build_alias" = x && 5224 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5225test "x$ac_build_alias" = x && 5226 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5227ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5228 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5229 ;; 5230esac 5231fi 5232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5233printf "%s\n" "$ac_cv_build" >&6; } 5234case $ac_cv_build in 5235*-*-*) ;; 5236*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5237esac 5238build=$ac_cv_build 5239ac_save_IFS=$IFS; IFS='-' 5240set x $ac_cv_build 5241shift 5242build_cpu=$1 5243build_vendor=$2 5244shift; shift 5245# Remember, the first character of IFS is used to create $*, 5246# except with old shells: 5247build_os=$* 5248IFS=$ac_save_IFS 5249case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5250 5251 5252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5253printf %s "checking host system type... " >&6; } 5254if test ${ac_cv_host+y} 5255then : 5256 printf %s "(cached) " >&6 5257else case e in #( 5258 e) if test "x$host_alias" = x; then 5259 ac_cv_host=$ac_cv_build 5260else 5261 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5262 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5263fi 5264 ;; 5265esac 5266fi 5267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5268printf "%s\n" "$ac_cv_host" >&6; } 5269case $ac_cv_host in 5270*-*-*) ;; 5271*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5272esac 5273host=$ac_cv_host 5274ac_save_IFS=$IFS; IFS='-' 5275set x $ac_cv_host 5276shift 5277host_cpu=$1 5278host_vendor=$2 5279shift; shift 5280# Remember, the first character of IFS is used to create $*, 5281# except with old shells: 5282host_os=$* 5283IFS=$ac_save_IFS 5284case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5285 5286 5287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5288printf %s "checking for a sed that does not truncate output... " >&6; } 5289if test ${ac_cv_path_SED+y} 5290then : 5291 printf %s "(cached) " >&6 5292else case e in #( 5293 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5294 for ac_i in 1 2 3 4 5 6 7; do 5295 ac_script="$ac_script$as_nl$ac_script" 5296 done 5297 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5298 { ac_script=; unset ac_script;} 5299 if test -z "$SED"; then 5300 ac_path_SED_found=false 5301 # Loop through the user's path and test for each of PROGNAME-LIST 5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5303for as_dir in $PATH 5304do 5305 IFS=$as_save_IFS 5306 case $as_dir in #((( 5307 '') as_dir=./ ;; 5308 */) ;; 5309 *) as_dir=$as_dir/ ;; 5310 esac 5311 for ac_prog in sed gsed 5312 do 5313 for ac_exec_ext in '' $ac_executable_extensions; do 5314 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5315 as_fn_executable_p "$ac_path_SED" || continue 5316# Check for GNU ac_path_SED and select it if it is found. 5317 # Check for GNU $ac_path_SED 5318case `"$ac_path_SED" --version 2>&1` in #( 5319*GNU*) 5320 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5321#( 5322*) 5323 ac_count=0 5324 printf %s 0123456789 >"conftest.in" 5325 while : 5326 do 5327 cat "conftest.in" "conftest.in" >"conftest.tmp" 5328 mv "conftest.tmp" "conftest.in" 5329 cp "conftest.in" "conftest.nl" 5330 printf "%s\n" '' >> "conftest.nl" 5331 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5333 as_fn_arith $ac_count + 1 && ac_count=$as_val 5334 if test $ac_count -gt ${ac_path_SED_max-0}; then 5335 # Best one so far, save it but keep looking for a better one 5336 ac_cv_path_SED="$ac_path_SED" 5337 ac_path_SED_max=$ac_count 5338 fi 5339 # 10*(2^10) chars as input seems more than enough 5340 test $ac_count -gt 10 && break 5341 done 5342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5343esac 5344 5345 $ac_path_SED_found && break 3 5346 done 5347 done 5348 done 5349IFS=$as_save_IFS 5350 if test -z "$ac_cv_path_SED"; then 5351 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5352 fi 5353else 5354 ac_cv_path_SED=$SED 5355fi 5356 ;; 5357esac 5358fi 5359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5360printf "%s\n" "$ac_cv_path_SED" >&6; } 5361 SED="$ac_cv_path_SED" 5362 rm -f conftest.sed 5363 5364 5365 5366 5367 5368 5369# Check whether --enable-selective-werror was given. 5370if test ${enable_selective_werror+y} 5371then : 5372 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5373else case e in #( 5374 e) SELECTIVE_WERROR=yes ;; 5375esac 5376fi 5377 5378 5379 5380 5381 5382# -v is too short to test reliably with XORG_TESTSET_CFLAG 5383if test "x$SUNCC" = "xyes"; then 5384 BASE_CFLAGS="-v" 5385else 5386 BASE_CFLAGS="" 5387fi 5388 5389# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403xorg_testset_save_CFLAGS="$CFLAGS" 5404 5405if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5408printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5409if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5410then : 5411 printf %s "(cached) " >&6 5412else case e in #( 5413 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5414/* end confdefs.h. */ 5415int i; 5416_ACEOF 5417if ac_fn_c_try_compile "$LINENO" 5418then : 5419 xorg_cv_cc_flag_unknown_warning_option=yes 5420else case e in #( 5421 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5422esac 5423fi 5424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5425esac 5426fi 5427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5428printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5429 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5430 CFLAGS="$xorg_testset_save_CFLAGS" 5431fi 5432 5433if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5436 fi 5437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5439printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5440if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5441then : 5442 printf %s "(cached) " >&6 5443else case e in #( 5444 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5445/* end confdefs.h. */ 5446int i; 5447_ACEOF 5448if ac_fn_c_try_compile "$LINENO" 5449then : 5450 xorg_cv_cc_flag_unused_command_line_argument=yes 5451else case e in #( 5452 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5453esac 5454fi 5455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5456esac 5457fi 5458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5459printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5461 CFLAGS="$xorg_testset_save_CFLAGS" 5462fi 5463 5464found="no" 5465 5466 if test $found = "no" ; then 5467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5469 fi 5470 5471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5473 fi 5474 5475 CFLAGS="$CFLAGS -Wall" 5476 5477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5478printf %s "checking if $CC supports -Wall... " >&6; } 5479 cacheid=xorg_cv_cc_flag__Wall 5480 if eval test \${$cacheid+y} 5481then : 5482 printf %s "(cached) " >&6 5483else case e in #( 5484 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5485/* end confdefs.h. */ 5486int i; 5487int 5488main (void) 5489{ 5490 5491 ; 5492 return 0; 5493} 5494_ACEOF 5495if ac_fn_c_try_link "$LINENO" 5496then : 5497 eval $cacheid=yes 5498else case e in #( 5499 e) eval $cacheid=no ;; 5500esac 5501fi 5502rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5503 conftest$ac_exeext conftest.$ac_ext ;; 5504esac 5505fi 5506 5507 5508 CFLAGS="$xorg_testset_save_CFLAGS" 5509 5510 eval supported=\$$cacheid 5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5512printf "%s\n" "$supported" >&6; } 5513 if test "$supported" = "yes" ; then 5514 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5515 found="yes" 5516 fi 5517 fi 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533xorg_testset_save_CFLAGS="$CFLAGS" 5534 5535if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5538printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5539if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5540then : 5541 printf %s "(cached) " >&6 5542else case e in #( 5543 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5544/* end confdefs.h. */ 5545int i; 5546_ACEOF 5547if ac_fn_c_try_compile "$LINENO" 5548then : 5549 xorg_cv_cc_flag_unknown_warning_option=yes 5550else case e in #( 5551 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5552esac 5553fi 5554rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5555esac 5556fi 5557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5558printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5560 CFLAGS="$xorg_testset_save_CFLAGS" 5561fi 5562 5563if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5566 fi 5567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5569printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5570if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5571then : 5572 printf %s "(cached) " >&6 5573else case e in #( 5574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5575/* end confdefs.h. */ 5576int i; 5577_ACEOF 5578if ac_fn_c_try_compile "$LINENO" 5579then : 5580 xorg_cv_cc_flag_unused_command_line_argument=yes 5581else case e in #( 5582 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5583esac 5584fi 5585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5586esac 5587fi 5588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5589printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5591 CFLAGS="$xorg_testset_save_CFLAGS" 5592fi 5593 5594found="no" 5595 5596 if test $found = "no" ; then 5597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5599 fi 5600 5601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5603 fi 5604 5605 CFLAGS="$CFLAGS -Wpointer-arith" 5606 5607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5608printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5609 cacheid=xorg_cv_cc_flag__Wpointer_arith 5610 if eval test \${$cacheid+y} 5611then : 5612 printf %s "(cached) " >&6 5613else case e in #( 5614 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5615/* end confdefs.h. */ 5616int i; 5617int 5618main (void) 5619{ 5620 5621 ; 5622 return 0; 5623} 5624_ACEOF 5625if ac_fn_c_try_link "$LINENO" 5626then : 5627 eval $cacheid=yes 5628else case e in #( 5629 e) eval $cacheid=no ;; 5630esac 5631fi 5632rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5633 conftest$ac_exeext conftest.$ac_ext ;; 5634esac 5635fi 5636 5637 5638 CFLAGS="$xorg_testset_save_CFLAGS" 5639 5640 eval supported=\$$cacheid 5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5642printf "%s\n" "$supported" >&6; } 5643 if test "$supported" = "yes" ; then 5644 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5645 found="yes" 5646 fi 5647 fi 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663xorg_testset_save_CFLAGS="$CFLAGS" 5664 5665if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5668printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5669if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5670then : 5671 printf %s "(cached) " >&6 5672else case e in #( 5673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5674/* end confdefs.h. */ 5675int i; 5676_ACEOF 5677if ac_fn_c_try_compile "$LINENO" 5678then : 5679 xorg_cv_cc_flag_unknown_warning_option=yes 5680else case e in #( 5681 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5682esac 5683fi 5684rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5685esac 5686fi 5687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5688printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5690 CFLAGS="$xorg_testset_save_CFLAGS" 5691fi 5692 5693if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5696 fi 5697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5699printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5700if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5701then : 5702 printf %s "(cached) " >&6 5703else case e in #( 5704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5705/* end confdefs.h. */ 5706int i; 5707_ACEOF 5708if ac_fn_c_try_compile "$LINENO" 5709then : 5710 xorg_cv_cc_flag_unused_command_line_argument=yes 5711else case e in #( 5712 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5713esac 5714fi 5715rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5716esac 5717fi 5718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5719printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5721 CFLAGS="$xorg_testset_save_CFLAGS" 5722fi 5723 5724found="no" 5725 5726 if test $found = "no" ; then 5727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5729 fi 5730 5731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5733 fi 5734 5735 CFLAGS="$CFLAGS -Wmissing-declarations" 5736 5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5738printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5739 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5740 if eval test \${$cacheid+y} 5741then : 5742 printf %s "(cached) " >&6 5743else case e in #( 5744 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5745/* end confdefs.h. */ 5746int i; 5747int 5748main (void) 5749{ 5750 5751 ; 5752 return 0; 5753} 5754_ACEOF 5755if ac_fn_c_try_link "$LINENO" 5756then : 5757 eval $cacheid=yes 5758else case e in #( 5759 e) eval $cacheid=no ;; 5760esac 5761fi 5762rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5763 conftest$ac_exeext conftest.$ac_ext ;; 5764esac 5765fi 5766 5767 5768 CFLAGS="$xorg_testset_save_CFLAGS" 5769 5770 eval supported=\$$cacheid 5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5772printf "%s\n" "$supported" >&6; } 5773 if test "$supported" = "yes" ; then 5774 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5775 found="yes" 5776 fi 5777 fi 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793xorg_testset_save_CFLAGS="$CFLAGS" 5794 5795if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5798printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5799if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5800then : 5801 printf %s "(cached) " >&6 5802else case e in #( 5803 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5804/* end confdefs.h. */ 5805int i; 5806_ACEOF 5807if ac_fn_c_try_compile "$LINENO" 5808then : 5809 xorg_cv_cc_flag_unknown_warning_option=yes 5810else case e in #( 5811 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5812esac 5813fi 5814rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5815esac 5816fi 5817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5818printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5820 CFLAGS="$xorg_testset_save_CFLAGS" 5821fi 5822 5823if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5826 fi 5827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5829printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5830if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5831then : 5832 printf %s "(cached) " >&6 5833else case e in #( 5834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5835/* end confdefs.h. */ 5836int i; 5837_ACEOF 5838if ac_fn_c_try_compile "$LINENO" 5839then : 5840 xorg_cv_cc_flag_unused_command_line_argument=yes 5841else case e in #( 5842 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5843esac 5844fi 5845rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5846esac 5847fi 5848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5849printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5851 CFLAGS="$xorg_testset_save_CFLAGS" 5852fi 5853 5854found="no" 5855 5856 if test $found = "no" ; then 5857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5859 fi 5860 5861 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5863 fi 5864 5865 CFLAGS="$CFLAGS -Wformat=2" 5866 5867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5868printf %s "checking if $CC supports -Wformat=2... " >&6; } 5869 cacheid=xorg_cv_cc_flag__Wformat_2 5870 if eval test \${$cacheid+y} 5871then : 5872 printf %s "(cached) " >&6 5873else case e in #( 5874 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5875/* end confdefs.h. */ 5876int i; 5877int 5878main (void) 5879{ 5880 5881 ; 5882 return 0; 5883} 5884_ACEOF 5885if ac_fn_c_try_link "$LINENO" 5886then : 5887 eval $cacheid=yes 5888else case e in #( 5889 e) eval $cacheid=no ;; 5890esac 5891fi 5892rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5893 conftest$ac_exeext conftest.$ac_ext ;; 5894esac 5895fi 5896 5897 5898 CFLAGS="$xorg_testset_save_CFLAGS" 5899 5900 eval supported=\$$cacheid 5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5902printf "%s\n" "$supported" >&6; } 5903 if test "$supported" = "yes" ; then 5904 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5905 found="yes" 5906 fi 5907 fi 5908 5909 if test $found = "no" ; then 5910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5912 fi 5913 5914 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5916 fi 5917 5918 CFLAGS="$CFLAGS -Wformat" 5919 5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5921printf %s "checking if $CC supports -Wformat... " >&6; } 5922 cacheid=xorg_cv_cc_flag__Wformat 5923 if eval test \${$cacheid+y} 5924then : 5925 printf %s "(cached) " >&6 5926else case e in #( 5927 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5928/* end confdefs.h. */ 5929int i; 5930int 5931main (void) 5932{ 5933 5934 ; 5935 return 0; 5936} 5937_ACEOF 5938if ac_fn_c_try_link "$LINENO" 5939then : 5940 eval $cacheid=yes 5941else case e in #( 5942 e) eval $cacheid=no ;; 5943esac 5944fi 5945rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5946 conftest$ac_exeext conftest.$ac_ext ;; 5947esac 5948fi 5949 5950 5951 CFLAGS="$xorg_testset_save_CFLAGS" 5952 5953 eval supported=\$$cacheid 5954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5955printf "%s\n" "$supported" >&6; } 5956 if test "$supported" = "yes" ; then 5957 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5958 found="yes" 5959 fi 5960 fi 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978xorg_testset_save_CFLAGS="$CFLAGS" 5979 5980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5983printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5984if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5985then : 5986 printf %s "(cached) " >&6 5987else case e in #( 5988 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5989/* end confdefs.h. */ 5990int i; 5991_ACEOF 5992if ac_fn_c_try_compile "$LINENO" 5993then : 5994 xorg_cv_cc_flag_unknown_warning_option=yes 5995else case e in #( 5996 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5997esac 5998fi 5999rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6000esac 6001fi 6002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6003printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6004 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6005 CFLAGS="$xorg_testset_save_CFLAGS" 6006fi 6007 6008if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6011 fi 6012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6014printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6015if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6016then : 6017 printf %s "(cached) " >&6 6018else case e in #( 6019 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6020/* end confdefs.h. */ 6021int i; 6022_ACEOF 6023if ac_fn_c_try_compile "$LINENO" 6024then : 6025 xorg_cv_cc_flag_unused_command_line_argument=yes 6026else case e in #( 6027 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6028esac 6029fi 6030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6031esac 6032fi 6033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6034printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6036 CFLAGS="$xorg_testset_save_CFLAGS" 6037fi 6038 6039found="no" 6040 6041 if test $found = "no" ; then 6042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6044 fi 6045 6046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6048 fi 6049 6050 CFLAGS="$CFLAGS -Wstrict-prototypes" 6051 6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 6053printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 6054 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 6055 if eval test \${$cacheid+y} 6056then : 6057 printf %s "(cached) " >&6 6058else case e in #( 6059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6060/* end confdefs.h. */ 6061int i; 6062int 6063main (void) 6064{ 6065 6066 ; 6067 return 0; 6068} 6069_ACEOF 6070if ac_fn_c_try_link "$LINENO" 6071then : 6072 eval $cacheid=yes 6073else case e in #( 6074 e) eval $cacheid=no ;; 6075esac 6076fi 6077rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6078 conftest$ac_exeext conftest.$ac_ext ;; 6079esac 6080fi 6081 6082 6083 CFLAGS="$xorg_testset_save_CFLAGS" 6084 6085 eval supported=\$$cacheid 6086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6087printf "%s\n" "$supported" >&6; } 6088 if test "$supported" = "yes" ; then 6089 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 6090 found="yes" 6091 fi 6092 fi 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108xorg_testset_save_CFLAGS="$CFLAGS" 6109 6110if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6113printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6114if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6115then : 6116 printf %s "(cached) " >&6 6117else case e in #( 6118 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6119/* end confdefs.h. */ 6120int i; 6121_ACEOF 6122if ac_fn_c_try_compile "$LINENO" 6123then : 6124 xorg_cv_cc_flag_unknown_warning_option=yes 6125else case e in #( 6126 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6127esac 6128fi 6129rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6130esac 6131fi 6132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6133printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6135 CFLAGS="$xorg_testset_save_CFLAGS" 6136fi 6137 6138if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6141 fi 6142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6144printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6145if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6146then : 6147 printf %s "(cached) " >&6 6148else case e in #( 6149 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6150/* end confdefs.h. */ 6151int i; 6152_ACEOF 6153if ac_fn_c_try_compile "$LINENO" 6154then : 6155 xorg_cv_cc_flag_unused_command_line_argument=yes 6156else case e in #( 6157 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6158esac 6159fi 6160rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6161esac 6162fi 6163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6164printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6165 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6166 CFLAGS="$xorg_testset_save_CFLAGS" 6167fi 6168 6169found="no" 6170 6171 if test $found = "no" ; then 6172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6174 fi 6175 6176 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6178 fi 6179 6180 CFLAGS="$CFLAGS -Wmissing-prototypes" 6181 6182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 6183printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 6184 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 6185 if eval test \${$cacheid+y} 6186then : 6187 printf %s "(cached) " >&6 6188else case e in #( 6189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6190/* end confdefs.h. */ 6191int i; 6192int 6193main (void) 6194{ 6195 6196 ; 6197 return 0; 6198} 6199_ACEOF 6200if ac_fn_c_try_link "$LINENO" 6201then : 6202 eval $cacheid=yes 6203else case e in #( 6204 e) eval $cacheid=no ;; 6205esac 6206fi 6207rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6208 conftest$ac_exeext conftest.$ac_ext ;; 6209esac 6210fi 6211 6212 6213 CFLAGS="$xorg_testset_save_CFLAGS" 6214 6215 eval supported=\$$cacheid 6216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6217printf "%s\n" "$supported" >&6; } 6218 if test "$supported" = "yes" ; then 6219 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 6220 found="yes" 6221 fi 6222 fi 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238xorg_testset_save_CFLAGS="$CFLAGS" 6239 6240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6243printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6244if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6245then : 6246 printf %s "(cached) " >&6 6247else case e in #( 6248 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6249/* end confdefs.h. */ 6250int i; 6251_ACEOF 6252if ac_fn_c_try_compile "$LINENO" 6253then : 6254 xorg_cv_cc_flag_unknown_warning_option=yes 6255else case e in #( 6256 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6257esac 6258fi 6259rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6260esac 6261fi 6262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6263printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6264 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6265 CFLAGS="$xorg_testset_save_CFLAGS" 6266fi 6267 6268if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6271 fi 6272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6274printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6275if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6276then : 6277 printf %s "(cached) " >&6 6278else case e in #( 6279 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6280/* end confdefs.h. */ 6281int i; 6282_ACEOF 6283if ac_fn_c_try_compile "$LINENO" 6284then : 6285 xorg_cv_cc_flag_unused_command_line_argument=yes 6286else case e in #( 6287 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6288esac 6289fi 6290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6291esac 6292fi 6293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6294printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6295 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6296 CFLAGS="$xorg_testset_save_CFLAGS" 6297fi 6298 6299found="no" 6300 6301 if test $found = "no" ; then 6302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6304 fi 6305 6306 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6308 fi 6309 6310 CFLAGS="$CFLAGS -Wnested-externs" 6311 6312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6313printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6314 cacheid=xorg_cv_cc_flag__Wnested_externs 6315 if eval test \${$cacheid+y} 6316then : 6317 printf %s "(cached) " >&6 6318else case e in #( 6319 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6320/* end confdefs.h. */ 6321int i; 6322int 6323main (void) 6324{ 6325 6326 ; 6327 return 0; 6328} 6329_ACEOF 6330if ac_fn_c_try_link "$LINENO" 6331then : 6332 eval $cacheid=yes 6333else case e in #( 6334 e) eval $cacheid=no ;; 6335esac 6336fi 6337rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6338 conftest$ac_exeext conftest.$ac_ext ;; 6339esac 6340fi 6341 6342 6343 CFLAGS="$xorg_testset_save_CFLAGS" 6344 6345 eval supported=\$$cacheid 6346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6347printf "%s\n" "$supported" >&6; } 6348 if test "$supported" = "yes" ; then 6349 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6350 found="yes" 6351 fi 6352 fi 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368xorg_testset_save_CFLAGS="$CFLAGS" 6369 6370if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6373printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6374if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6375then : 6376 printf %s "(cached) " >&6 6377else case e in #( 6378 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6379/* end confdefs.h. */ 6380int i; 6381_ACEOF 6382if ac_fn_c_try_compile "$LINENO" 6383then : 6384 xorg_cv_cc_flag_unknown_warning_option=yes 6385else case e in #( 6386 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6387esac 6388fi 6389rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6390esac 6391fi 6392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6393printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6395 CFLAGS="$xorg_testset_save_CFLAGS" 6396fi 6397 6398if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6401 fi 6402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6404printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6405if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6406then : 6407 printf %s "(cached) " >&6 6408else case e in #( 6409 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6410/* end confdefs.h. */ 6411int i; 6412_ACEOF 6413if ac_fn_c_try_compile "$LINENO" 6414then : 6415 xorg_cv_cc_flag_unused_command_line_argument=yes 6416else case e in #( 6417 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6418esac 6419fi 6420rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6421esac 6422fi 6423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6424printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6425 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6426 CFLAGS="$xorg_testset_save_CFLAGS" 6427fi 6428 6429found="no" 6430 6431 if test $found = "no" ; then 6432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6434 fi 6435 6436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6438 fi 6439 6440 CFLAGS="$CFLAGS -Wbad-function-cast" 6441 6442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6443printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6444 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6445 if eval test \${$cacheid+y} 6446then : 6447 printf %s "(cached) " >&6 6448else case e in #( 6449 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6450/* end confdefs.h. */ 6451int i; 6452int 6453main (void) 6454{ 6455 6456 ; 6457 return 0; 6458} 6459_ACEOF 6460if ac_fn_c_try_link "$LINENO" 6461then : 6462 eval $cacheid=yes 6463else case e in #( 6464 e) eval $cacheid=no ;; 6465esac 6466fi 6467rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6468 conftest$ac_exeext conftest.$ac_ext ;; 6469esac 6470fi 6471 6472 6473 CFLAGS="$xorg_testset_save_CFLAGS" 6474 6475 eval supported=\$$cacheid 6476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6477printf "%s\n" "$supported" >&6; } 6478 if test "$supported" = "yes" ; then 6479 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6480 found="yes" 6481 fi 6482 fi 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498xorg_testset_save_CFLAGS="$CFLAGS" 6499 6500if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6503printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6504if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6505then : 6506 printf %s "(cached) " >&6 6507else case e in #( 6508 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6509/* end confdefs.h. */ 6510int i; 6511_ACEOF 6512if ac_fn_c_try_compile "$LINENO" 6513then : 6514 xorg_cv_cc_flag_unknown_warning_option=yes 6515else case e in #( 6516 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6517esac 6518fi 6519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6520esac 6521fi 6522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6523printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6524 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6525 CFLAGS="$xorg_testset_save_CFLAGS" 6526fi 6527 6528if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6531 fi 6532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6534printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6535if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6536then : 6537 printf %s "(cached) " >&6 6538else case e in #( 6539 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6540/* end confdefs.h. */ 6541int i; 6542_ACEOF 6543if ac_fn_c_try_compile "$LINENO" 6544then : 6545 xorg_cv_cc_flag_unused_command_line_argument=yes 6546else case e in #( 6547 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6548esac 6549fi 6550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6551esac 6552fi 6553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6554printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6555 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6556 CFLAGS="$xorg_testset_save_CFLAGS" 6557fi 6558 6559found="no" 6560 6561 if test $found = "no" ; then 6562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6564 fi 6565 6566 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6568 fi 6569 6570 CFLAGS="$CFLAGS -Wold-style-definition" 6571 6572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6573printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6574 cacheid=xorg_cv_cc_flag__Wold_style_definition 6575 if eval test \${$cacheid+y} 6576then : 6577 printf %s "(cached) " >&6 6578else case e in #( 6579 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6580/* end confdefs.h. */ 6581int i; 6582int 6583main (void) 6584{ 6585 6586 ; 6587 return 0; 6588} 6589_ACEOF 6590if ac_fn_c_try_link "$LINENO" 6591then : 6592 eval $cacheid=yes 6593else case e in #( 6594 e) eval $cacheid=no ;; 6595esac 6596fi 6597rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6598 conftest$ac_exeext conftest.$ac_ext ;; 6599esac 6600fi 6601 6602 6603 CFLAGS="$xorg_testset_save_CFLAGS" 6604 6605 eval supported=\$$cacheid 6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6607printf "%s\n" "$supported" >&6; } 6608 if test "$supported" = "yes" ; then 6609 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6610 found="yes" 6611 fi 6612 fi 6613 6614 if test $found = "no" ; then 6615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6617 fi 6618 6619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6621 fi 6622 6623 CFLAGS="$CFLAGS -fd" 6624 6625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6626printf %s "checking if $CC supports -fd... " >&6; } 6627 cacheid=xorg_cv_cc_flag__fd 6628 if eval test \${$cacheid+y} 6629then : 6630 printf %s "(cached) " >&6 6631else case e in #( 6632 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6633/* end confdefs.h. */ 6634int i; 6635int 6636main (void) 6637{ 6638 6639 ; 6640 return 0; 6641} 6642_ACEOF 6643if ac_fn_c_try_link "$LINENO" 6644then : 6645 eval $cacheid=yes 6646else case e in #( 6647 e) eval $cacheid=no ;; 6648esac 6649fi 6650rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6651 conftest$ac_exeext conftest.$ac_ext ;; 6652esac 6653fi 6654 6655 6656 CFLAGS="$xorg_testset_save_CFLAGS" 6657 6658 eval supported=\$$cacheid 6659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6660printf "%s\n" "$supported" >&6; } 6661 if test "$supported" = "yes" ; then 6662 BASE_CFLAGS="$BASE_CFLAGS -fd" 6663 found="yes" 6664 fi 6665 fi 6666 6667 6668 6669 6670 6671# This chunk adds additional warnings that could catch undesired effects. 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685xorg_testset_save_CFLAGS="$CFLAGS" 6686 6687if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6690printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6691if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6692then : 6693 printf %s "(cached) " >&6 6694else case e in #( 6695 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6696/* end confdefs.h. */ 6697int i; 6698_ACEOF 6699if ac_fn_c_try_compile "$LINENO" 6700then : 6701 xorg_cv_cc_flag_unknown_warning_option=yes 6702else case e in #( 6703 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6704esac 6705fi 6706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6707esac 6708fi 6709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6710printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6711 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6712 CFLAGS="$xorg_testset_save_CFLAGS" 6713fi 6714 6715if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6718 fi 6719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6721printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6722if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6723then : 6724 printf %s "(cached) " >&6 6725else case e in #( 6726 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6727/* end confdefs.h. */ 6728int i; 6729_ACEOF 6730if ac_fn_c_try_compile "$LINENO" 6731then : 6732 xorg_cv_cc_flag_unused_command_line_argument=yes 6733else case e in #( 6734 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6735esac 6736fi 6737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6738esac 6739fi 6740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6741printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6742 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6743 CFLAGS="$xorg_testset_save_CFLAGS" 6744fi 6745 6746found="no" 6747 6748 if test $found = "no" ; then 6749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6751 fi 6752 6753 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6755 fi 6756 6757 CFLAGS="$CFLAGS -Wunused" 6758 6759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6760printf %s "checking if $CC supports -Wunused... " >&6; } 6761 cacheid=xorg_cv_cc_flag__Wunused 6762 if eval test \${$cacheid+y} 6763then : 6764 printf %s "(cached) " >&6 6765else case e in #( 6766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6767/* end confdefs.h. */ 6768int i; 6769int 6770main (void) 6771{ 6772 6773 ; 6774 return 0; 6775} 6776_ACEOF 6777if ac_fn_c_try_link "$LINENO" 6778then : 6779 eval $cacheid=yes 6780else case e in #( 6781 e) eval $cacheid=no ;; 6782esac 6783fi 6784rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6785 conftest$ac_exeext conftest.$ac_ext ;; 6786esac 6787fi 6788 6789 6790 CFLAGS="$xorg_testset_save_CFLAGS" 6791 6792 eval supported=\$$cacheid 6793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6794printf "%s\n" "$supported" >&6; } 6795 if test "$supported" = "yes" ; then 6796 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6797 found="yes" 6798 fi 6799 fi 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815xorg_testset_save_CFLAGS="$CFLAGS" 6816 6817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6820printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6821if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6822then : 6823 printf %s "(cached) " >&6 6824else case e in #( 6825 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6826/* end confdefs.h. */ 6827int i; 6828_ACEOF 6829if ac_fn_c_try_compile "$LINENO" 6830then : 6831 xorg_cv_cc_flag_unknown_warning_option=yes 6832else case e in #( 6833 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6834esac 6835fi 6836rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6837esac 6838fi 6839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6840printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6841 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6842 CFLAGS="$xorg_testset_save_CFLAGS" 6843fi 6844 6845if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6848 fi 6849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6851printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6852if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6853then : 6854 printf %s "(cached) " >&6 6855else case e in #( 6856 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6857/* end confdefs.h. */ 6858int i; 6859_ACEOF 6860if ac_fn_c_try_compile "$LINENO" 6861then : 6862 xorg_cv_cc_flag_unused_command_line_argument=yes 6863else case e in #( 6864 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6865esac 6866fi 6867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6868esac 6869fi 6870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6871printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6872 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6873 CFLAGS="$xorg_testset_save_CFLAGS" 6874fi 6875 6876found="no" 6877 6878 if test $found = "no" ; then 6879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6881 fi 6882 6883 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6885 fi 6886 6887 CFLAGS="$CFLAGS -Wuninitialized" 6888 6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6890printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6891 cacheid=xorg_cv_cc_flag__Wuninitialized 6892 if eval test \${$cacheid+y} 6893then : 6894 printf %s "(cached) " >&6 6895else case e in #( 6896 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6897/* end confdefs.h. */ 6898int i; 6899int 6900main (void) 6901{ 6902 6903 ; 6904 return 0; 6905} 6906_ACEOF 6907if ac_fn_c_try_link "$LINENO" 6908then : 6909 eval $cacheid=yes 6910else case e in #( 6911 e) eval $cacheid=no ;; 6912esac 6913fi 6914rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6915 conftest$ac_exeext conftest.$ac_ext ;; 6916esac 6917fi 6918 6919 6920 CFLAGS="$xorg_testset_save_CFLAGS" 6921 6922 eval supported=\$$cacheid 6923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6924printf "%s\n" "$supported" >&6; } 6925 if test "$supported" = "yes" ; then 6926 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6927 found="yes" 6928 fi 6929 fi 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945xorg_testset_save_CFLAGS="$CFLAGS" 6946 6947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6950printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6951if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6952then : 6953 printf %s "(cached) " >&6 6954else case e in #( 6955 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6956/* end confdefs.h. */ 6957int i; 6958_ACEOF 6959if ac_fn_c_try_compile "$LINENO" 6960then : 6961 xorg_cv_cc_flag_unknown_warning_option=yes 6962else case e in #( 6963 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6964esac 6965fi 6966rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6967esac 6968fi 6969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6970printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6972 CFLAGS="$xorg_testset_save_CFLAGS" 6973fi 6974 6975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6978 fi 6979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6981printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6982if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6983then : 6984 printf %s "(cached) " >&6 6985else case e in #( 6986 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6987/* end confdefs.h. */ 6988int i; 6989_ACEOF 6990if ac_fn_c_try_compile "$LINENO" 6991then : 6992 xorg_cv_cc_flag_unused_command_line_argument=yes 6993else case e in #( 6994 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6995esac 6996fi 6997rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6998esac 6999fi 7000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7001printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7003 CFLAGS="$xorg_testset_save_CFLAGS" 7004fi 7005 7006found="no" 7007 7008 if test $found = "no" ; then 7009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7011 fi 7012 7013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7015 fi 7016 7017 CFLAGS="$CFLAGS -Wshadow" 7018 7019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 7020printf %s "checking if $CC supports -Wshadow... " >&6; } 7021 cacheid=xorg_cv_cc_flag__Wshadow 7022 if eval test \${$cacheid+y} 7023then : 7024 printf %s "(cached) " >&6 7025else case e in #( 7026 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7027/* end confdefs.h. */ 7028int i; 7029int 7030main (void) 7031{ 7032 7033 ; 7034 return 0; 7035} 7036_ACEOF 7037if ac_fn_c_try_link "$LINENO" 7038then : 7039 eval $cacheid=yes 7040else case e in #( 7041 e) eval $cacheid=no ;; 7042esac 7043fi 7044rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7045 conftest$ac_exeext conftest.$ac_ext ;; 7046esac 7047fi 7048 7049 7050 CFLAGS="$xorg_testset_save_CFLAGS" 7051 7052 eval supported=\$$cacheid 7053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7054printf "%s\n" "$supported" >&6; } 7055 if test "$supported" = "yes" ; then 7056 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 7057 found="yes" 7058 fi 7059 fi 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075xorg_testset_save_CFLAGS="$CFLAGS" 7076 7077if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7080printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7081if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7082then : 7083 printf %s "(cached) " >&6 7084else case e in #( 7085 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7086/* end confdefs.h. */ 7087int i; 7088_ACEOF 7089if ac_fn_c_try_compile "$LINENO" 7090then : 7091 xorg_cv_cc_flag_unknown_warning_option=yes 7092else case e in #( 7093 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7094esac 7095fi 7096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7097esac 7098fi 7099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7100printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7102 CFLAGS="$xorg_testset_save_CFLAGS" 7103fi 7104 7105if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7108 fi 7109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7111printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7112if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7113then : 7114 printf %s "(cached) " >&6 7115else case e in #( 7116 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7117/* end confdefs.h. */ 7118int i; 7119_ACEOF 7120if ac_fn_c_try_compile "$LINENO" 7121then : 7122 xorg_cv_cc_flag_unused_command_line_argument=yes 7123else case e in #( 7124 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7125esac 7126fi 7127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7128esac 7129fi 7130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7131printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7133 CFLAGS="$xorg_testset_save_CFLAGS" 7134fi 7135 7136found="no" 7137 7138 if test $found = "no" ; then 7139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7141 fi 7142 7143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7145 fi 7146 7147 CFLAGS="$CFLAGS -Wmissing-noreturn" 7148 7149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 7150printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 7151 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 7152 if eval test \${$cacheid+y} 7153then : 7154 printf %s "(cached) " >&6 7155else case e in #( 7156 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7157/* end confdefs.h. */ 7158int i; 7159int 7160main (void) 7161{ 7162 7163 ; 7164 return 0; 7165} 7166_ACEOF 7167if ac_fn_c_try_link "$LINENO" 7168then : 7169 eval $cacheid=yes 7170else case e in #( 7171 e) eval $cacheid=no ;; 7172esac 7173fi 7174rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7175 conftest$ac_exeext conftest.$ac_ext ;; 7176esac 7177fi 7178 7179 7180 CFLAGS="$xorg_testset_save_CFLAGS" 7181 7182 eval supported=\$$cacheid 7183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7184printf "%s\n" "$supported" >&6; } 7185 if test "$supported" = "yes" ; then 7186 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7187 found="yes" 7188 fi 7189 fi 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205xorg_testset_save_CFLAGS="$CFLAGS" 7206 7207if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7210printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7211if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7212then : 7213 printf %s "(cached) " >&6 7214else case e in #( 7215 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7216/* end confdefs.h. */ 7217int i; 7218_ACEOF 7219if ac_fn_c_try_compile "$LINENO" 7220then : 7221 xorg_cv_cc_flag_unknown_warning_option=yes 7222else case e in #( 7223 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7224esac 7225fi 7226rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7227esac 7228fi 7229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7230printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7232 CFLAGS="$xorg_testset_save_CFLAGS" 7233fi 7234 7235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7238 fi 7239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7241printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7242if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7243then : 7244 printf %s "(cached) " >&6 7245else case e in #( 7246 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7247/* end confdefs.h. */ 7248int i; 7249_ACEOF 7250if ac_fn_c_try_compile "$LINENO" 7251then : 7252 xorg_cv_cc_flag_unused_command_line_argument=yes 7253else case e in #( 7254 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7255esac 7256fi 7257rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7258esac 7259fi 7260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7261printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7263 CFLAGS="$xorg_testset_save_CFLAGS" 7264fi 7265 7266found="no" 7267 7268 if test $found = "no" ; then 7269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7271 fi 7272 7273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7275 fi 7276 7277 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7278 7279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7280printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7281 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7282 if eval test \${$cacheid+y} 7283then : 7284 printf %s "(cached) " >&6 7285else case e in #( 7286 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7287/* end confdefs.h. */ 7288int i; 7289int 7290main (void) 7291{ 7292 7293 ; 7294 return 0; 7295} 7296_ACEOF 7297if ac_fn_c_try_link "$LINENO" 7298then : 7299 eval $cacheid=yes 7300else case e in #( 7301 e) eval $cacheid=no ;; 7302esac 7303fi 7304rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7305 conftest$ac_exeext conftest.$ac_ext ;; 7306esac 7307fi 7308 7309 7310 CFLAGS="$xorg_testset_save_CFLAGS" 7311 7312 eval supported=\$$cacheid 7313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7314printf "%s\n" "$supported" >&6; } 7315 if test "$supported" = "yes" ; then 7316 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7317 found="yes" 7318 fi 7319 fi 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335xorg_testset_save_CFLAGS="$CFLAGS" 7336 7337if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7340printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7341if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7342then : 7343 printf %s "(cached) " >&6 7344else case e in #( 7345 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7346/* end confdefs.h. */ 7347int i; 7348_ACEOF 7349if ac_fn_c_try_compile "$LINENO" 7350then : 7351 xorg_cv_cc_flag_unknown_warning_option=yes 7352else case e in #( 7353 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7354esac 7355fi 7356rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7357esac 7358fi 7359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7360printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7362 CFLAGS="$xorg_testset_save_CFLAGS" 7363fi 7364 7365if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7368 fi 7369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7371printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7372if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7373then : 7374 printf %s "(cached) " >&6 7375else case e in #( 7376 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7377/* end confdefs.h. */ 7378int i; 7379_ACEOF 7380if ac_fn_c_try_compile "$LINENO" 7381then : 7382 xorg_cv_cc_flag_unused_command_line_argument=yes 7383else case e in #( 7384 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7385esac 7386fi 7387rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7388esac 7389fi 7390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7391printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7392 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7393 CFLAGS="$xorg_testset_save_CFLAGS" 7394fi 7395 7396found="no" 7397 7398 if test $found = "no" ; then 7399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7401 fi 7402 7403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7405 fi 7406 7407 CFLAGS="$CFLAGS -Wredundant-decls" 7408 7409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7410printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7411 cacheid=xorg_cv_cc_flag__Wredundant_decls 7412 if eval test \${$cacheid+y} 7413then : 7414 printf %s "(cached) " >&6 7415else case e in #( 7416 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7417/* end confdefs.h. */ 7418int i; 7419int 7420main (void) 7421{ 7422 7423 ; 7424 return 0; 7425} 7426_ACEOF 7427if ac_fn_c_try_link "$LINENO" 7428then : 7429 eval $cacheid=yes 7430else case e in #( 7431 e) eval $cacheid=no ;; 7432esac 7433fi 7434rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7435 conftest$ac_exeext conftest.$ac_ext ;; 7436esac 7437fi 7438 7439 7440 CFLAGS="$xorg_testset_save_CFLAGS" 7441 7442 eval supported=\$$cacheid 7443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7444printf "%s\n" "$supported" >&6; } 7445 if test "$supported" = "yes" ; then 7446 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7447 found="yes" 7448 fi 7449 fi 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465xorg_testset_save_CFLAGS="$CFLAGS" 7466 7467if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7470printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7471if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7472then : 7473 printf %s "(cached) " >&6 7474else case e in #( 7475 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7476/* end confdefs.h. */ 7477int i; 7478_ACEOF 7479if ac_fn_c_try_compile "$LINENO" 7480then : 7481 xorg_cv_cc_flag_unknown_warning_option=yes 7482else case e in #( 7483 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7484esac 7485fi 7486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7487esac 7488fi 7489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7490printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7491 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7492 CFLAGS="$xorg_testset_save_CFLAGS" 7493fi 7494 7495if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7498 fi 7499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7501printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7502if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7503then : 7504 printf %s "(cached) " >&6 7505else case e in #( 7506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7507/* end confdefs.h. */ 7508int i; 7509_ACEOF 7510if ac_fn_c_try_compile "$LINENO" 7511then : 7512 xorg_cv_cc_flag_unused_command_line_argument=yes 7513else case e in #( 7514 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7515esac 7516fi 7517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7518esac 7519fi 7520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7521printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7523 CFLAGS="$xorg_testset_save_CFLAGS" 7524fi 7525 7526found="no" 7527 7528 if test $found = "no" ; then 7529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7531 fi 7532 7533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7535 fi 7536 7537 CFLAGS="$CFLAGS -Wlogical-op" 7538 7539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7540printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7541 cacheid=xorg_cv_cc_flag__Wlogical_op 7542 if eval test \${$cacheid+y} 7543then : 7544 printf %s "(cached) " >&6 7545else case e in #( 7546 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7547/* end confdefs.h. */ 7548int i; 7549int 7550main (void) 7551{ 7552 7553 ; 7554 return 0; 7555} 7556_ACEOF 7557if ac_fn_c_try_link "$LINENO" 7558then : 7559 eval $cacheid=yes 7560else case e in #( 7561 e) eval $cacheid=no ;; 7562esac 7563fi 7564rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7565 conftest$ac_exeext conftest.$ac_ext ;; 7566esac 7567fi 7568 7569 7570 CFLAGS="$xorg_testset_save_CFLAGS" 7571 7572 eval supported=\$$cacheid 7573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7574printf "%s\n" "$supported" >&6; } 7575 if test "$supported" = "yes" ; then 7576 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7577 found="yes" 7578 fi 7579 fi 7580 7581 7582 7583# These are currently disabled because they are noisy. They will be enabled 7584# in the future once the codebase is sufficiently modernized to silence 7585# them. For now, I don't want them to drown out the other warnings. 7586# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7587# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7588# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7589 7590# Turn some warnings into errors, so we don't accidentally get successful builds 7591# when there are problems that should be fixed. 7592 7593if test "x$SELECTIVE_WERROR" = "xyes" ; then 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607xorg_testset_save_CFLAGS="$CFLAGS" 7608 7609if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7612printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7613if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7614then : 7615 printf %s "(cached) " >&6 7616else case e in #( 7617 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7618/* end confdefs.h. */ 7619int i; 7620_ACEOF 7621if ac_fn_c_try_compile "$LINENO" 7622then : 7623 xorg_cv_cc_flag_unknown_warning_option=yes 7624else case e in #( 7625 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7626esac 7627fi 7628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7629esac 7630fi 7631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7632printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7634 CFLAGS="$xorg_testset_save_CFLAGS" 7635fi 7636 7637if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7640 fi 7641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7643printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7644if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7645then : 7646 printf %s "(cached) " >&6 7647else case e in #( 7648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7649/* end confdefs.h. */ 7650int i; 7651_ACEOF 7652if ac_fn_c_try_compile "$LINENO" 7653then : 7654 xorg_cv_cc_flag_unused_command_line_argument=yes 7655else case e in #( 7656 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7657esac 7658fi 7659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7660esac 7661fi 7662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7663printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7664 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7665 CFLAGS="$xorg_testset_save_CFLAGS" 7666fi 7667 7668found="no" 7669 7670 if test $found = "no" ; then 7671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7673 fi 7674 7675 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7677 fi 7678 7679 CFLAGS="$CFLAGS -Werror=implicit" 7680 7681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7682printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7683 cacheid=xorg_cv_cc_flag__Werror_implicit 7684 if eval test \${$cacheid+y} 7685then : 7686 printf %s "(cached) " >&6 7687else case e in #( 7688 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7689/* end confdefs.h. */ 7690int i; 7691int 7692main (void) 7693{ 7694 7695 ; 7696 return 0; 7697} 7698_ACEOF 7699if ac_fn_c_try_link "$LINENO" 7700then : 7701 eval $cacheid=yes 7702else case e in #( 7703 e) eval $cacheid=no ;; 7704esac 7705fi 7706rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7707 conftest$ac_exeext conftest.$ac_ext ;; 7708esac 7709fi 7710 7711 7712 CFLAGS="$xorg_testset_save_CFLAGS" 7713 7714 eval supported=\$$cacheid 7715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7716printf "%s\n" "$supported" >&6; } 7717 if test "$supported" = "yes" ; then 7718 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7719 found="yes" 7720 fi 7721 fi 7722 7723 if test $found = "no" ; then 7724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7726 fi 7727 7728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7730 fi 7731 7732 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7733 7734 { 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 7735printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7736 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7737 if eval test \${$cacheid+y} 7738then : 7739 printf %s "(cached) " >&6 7740else case e in #( 7741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7742/* end confdefs.h. */ 7743int i; 7744int 7745main (void) 7746{ 7747 7748 ; 7749 return 0; 7750} 7751_ACEOF 7752if ac_fn_c_try_link "$LINENO" 7753then : 7754 eval $cacheid=yes 7755else case e in #( 7756 e) eval $cacheid=no ;; 7757esac 7758fi 7759rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7760 conftest$ac_exeext conftest.$ac_ext ;; 7761esac 7762fi 7763 7764 7765 CFLAGS="$xorg_testset_save_CFLAGS" 7766 7767 eval supported=\$$cacheid 7768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7769printf "%s\n" "$supported" >&6; } 7770 if test "$supported" = "yes" ; then 7771 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7772 found="yes" 7773 fi 7774 fi 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790xorg_testset_save_CFLAGS="$CFLAGS" 7791 7792if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7795printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7796if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7797then : 7798 printf %s "(cached) " >&6 7799else case e in #( 7800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7801/* end confdefs.h. */ 7802int i; 7803_ACEOF 7804if ac_fn_c_try_compile "$LINENO" 7805then : 7806 xorg_cv_cc_flag_unknown_warning_option=yes 7807else case e in #( 7808 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7809esac 7810fi 7811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7812esac 7813fi 7814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7815printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7817 CFLAGS="$xorg_testset_save_CFLAGS" 7818fi 7819 7820if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7823 fi 7824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7826printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7827if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7828then : 7829 printf %s "(cached) " >&6 7830else case e in #( 7831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7832/* end confdefs.h. */ 7833int i; 7834_ACEOF 7835if ac_fn_c_try_compile "$LINENO" 7836then : 7837 xorg_cv_cc_flag_unused_command_line_argument=yes 7838else case e in #( 7839 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7840esac 7841fi 7842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7843esac 7844fi 7845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7846printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7848 CFLAGS="$xorg_testset_save_CFLAGS" 7849fi 7850 7851found="no" 7852 7853 if test $found = "no" ; then 7854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7856 fi 7857 7858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7860 fi 7861 7862 CFLAGS="$CFLAGS -Werror=nonnull" 7863 7864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7865printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7866 cacheid=xorg_cv_cc_flag__Werror_nonnull 7867 if eval test \${$cacheid+y} 7868then : 7869 printf %s "(cached) " >&6 7870else case e in #( 7871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7872/* end confdefs.h. */ 7873int i; 7874int 7875main (void) 7876{ 7877 7878 ; 7879 return 0; 7880} 7881_ACEOF 7882if ac_fn_c_try_link "$LINENO" 7883then : 7884 eval $cacheid=yes 7885else case e in #( 7886 e) eval $cacheid=no ;; 7887esac 7888fi 7889rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7890 conftest$ac_exeext conftest.$ac_ext ;; 7891esac 7892fi 7893 7894 7895 CFLAGS="$xorg_testset_save_CFLAGS" 7896 7897 eval supported=\$$cacheid 7898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7899printf "%s\n" "$supported" >&6; } 7900 if test "$supported" = "yes" ; then 7901 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7902 found="yes" 7903 fi 7904 fi 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920xorg_testset_save_CFLAGS="$CFLAGS" 7921 7922if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7925printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7926if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7927then : 7928 printf %s "(cached) " >&6 7929else case e in #( 7930 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7931/* end confdefs.h. */ 7932int i; 7933_ACEOF 7934if ac_fn_c_try_compile "$LINENO" 7935then : 7936 xorg_cv_cc_flag_unknown_warning_option=yes 7937else case e in #( 7938 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7939esac 7940fi 7941rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7942esac 7943fi 7944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7945printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7946 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7947 CFLAGS="$xorg_testset_save_CFLAGS" 7948fi 7949 7950if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7953 fi 7954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7956printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7957if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7958then : 7959 printf %s "(cached) " >&6 7960else case e in #( 7961 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7962/* end confdefs.h. */ 7963int i; 7964_ACEOF 7965if ac_fn_c_try_compile "$LINENO" 7966then : 7967 xorg_cv_cc_flag_unused_command_line_argument=yes 7968else case e in #( 7969 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7970esac 7971fi 7972rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7973esac 7974fi 7975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7976printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7977 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7978 CFLAGS="$xorg_testset_save_CFLAGS" 7979fi 7980 7981found="no" 7982 7983 if test $found = "no" ; then 7984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7986 fi 7987 7988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7990 fi 7991 7992 CFLAGS="$CFLAGS -Werror=init-self" 7993 7994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7995printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7996 cacheid=xorg_cv_cc_flag__Werror_init_self 7997 if eval test \${$cacheid+y} 7998then : 7999 printf %s "(cached) " >&6 8000else case e in #( 8001 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8002/* end confdefs.h. */ 8003int i; 8004int 8005main (void) 8006{ 8007 8008 ; 8009 return 0; 8010} 8011_ACEOF 8012if ac_fn_c_try_link "$LINENO" 8013then : 8014 eval $cacheid=yes 8015else case e in #( 8016 e) eval $cacheid=no ;; 8017esac 8018fi 8019rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8020 conftest$ac_exeext conftest.$ac_ext ;; 8021esac 8022fi 8023 8024 8025 CFLAGS="$xorg_testset_save_CFLAGS" 8026 8027 eval supported=\$$cacheid 8028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8029printf "%s\n" "$supported" >&6; } 8030 if test "$supported" = "yes" ; then 8031 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 8032 found="yes" 8033 fi 8034 fi 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050xorg_testset_save_CFLAGS="$CFLAGS" 8051 8052if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8055printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8056if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8057then : 8058 printf %s "(cached) " >&6 8059else case e in #( 8060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8061/* end confdefs.h. */ 8062int i; 8063_ACEOF 8064if ac_fn_c_try_compile "$LINENO" 8065then : 8066 xorg_cv_cc_flag_unknown_warning_option=yes 8067else case e in #( 8068 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8069esac 8070fi 8071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8072esac 8073fi 8074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8075printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8076 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8077 CFLAGS="$xorg_testset_save_CFLAGS" 8078fi 8079 8080if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8083 fi 8084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8086printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8087if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8088then : 8089 printf %s "(cached) " >&6 8090else case e in #( 8091 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8092/* end confdefs.h. */ 8093int i; 8094_ACEOF 8095if ac_fn_c_try_compile "$LINENO" 8096then : 8097 xorg_cv_cc_flag_unused_command_line_argument=yes 8098else case e in #( 8099 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8100esac 8101fi 8102rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8103esac 8104fi 8105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8106printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8108 CFLAGS="$xorg_testset_save_CFLAGS" 8109fi 8110 8111found="no" 8112 8113 if test $found = "no" ; then 8114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8116 fi 8117 8118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8120 fi 8121 8122 CFLAGS="$CFLAGS -Werror=main" 8123 8124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 8125printf %s "checking if $CC supports -Werror=main... " >&6; } 8126 cacheid=xorg_cv_cc_flag__Werror_main 8127 if eval test \${$cacheid+y} 8128then : 8129 printf %s "(cached) " >&6 8130else case e in #( 8131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8132/* end confdefs.h. */ 8133int i; 8134int 8135main (void) 8136{ 8137 8138 ; 8139 return 0; 8140} 8141_ACEOF 8142if ac_fn_c_try_link "$LINENO" 8143then : 8144 eval $cacheid=yes 8145else case e in #( 8146 e) eval $cacheid=no ;; 8147esac 8148fi 8149rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8150 conftest$ac_exeext conftest.$ac_ext ;; 8151esac 8152fi 8153 8154 8155 CFLAGS="$xorg_testset_save_CFLAGS" 8156 8157 eval supported=\$$cacheid 8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8159printf "%s\n" "$supported" >&6; } 8160 if test "$supported" = "yes" ; then 8161 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8162 found="yes" 8163 fi 8164 fi 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180xorg_testset_save_CFLAGS="$CFLAGS" 8181 8182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8185printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8186if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8187then : 8188 printf %s "(cached) " >&6 8189else case e in #( 8190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8191/* end confdefs.h. */ 8192int i; 8193_ACEOF 8194if ac_fn_c_try_compile "$LINENO" 8195then : 8196 xorg_cv_cc_flag_unknown_warning_option=yes 8197else case e in #( 8198 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8199esac 8200fi 8201rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8202esac 8203fi 8204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8205printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8206 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8207 CFLAGS="$xorg_testset_save_CFLAGS" 8208fi 8209 8210if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8213 fi 8214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8216printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8217if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8218then : 8219 printf %s "(cached) " >&6 8220else case e in #( 8221 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8222/* end confdefs.h. */ 8223int i; 8224_ACEOF 8225if ac_fn_c_try_compile "$LINENO" 8226then : 8227 xorg_cv_cc_flag_unused_command_line_argument=yes 8228else case e in #( 8229 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8230esac 8231fi 8232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8233esac 8234fi 8235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8236printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8238 CFLAGS="$xorg_testset_save_CFLAGS" 8239fi 8240 8241found="no" 8242 8243 if test $found = "no" ; then 8244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8246 fi 8247 8248 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8250 fi 8251 8252 CFLAGS="$CFLAGS -Werror=missing-braces" 8253 8254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8255printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8256 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8257 if eval test \${$cacheid+y} 8258then : 8259 printf %s "(cached) " >&6 8260else case e in #( 8261 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8262/* end confdefs.h. */ 8263int i; 8264int 8265main (void) 8266{ 8267 8268 ; 8269 return 0; 8270} 8271_ACEOF 8272if ac_fn_c_try_link "$LINENO" 8273then : 8274 eval $cacheid=yes 8275else case e in #( 8276 e) eval $cacheid=no ;; 8277esac 8278fi 8279rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8280 conftest$ac_exeext conftest.$ac_ext ;; 8281esac 8282fi 8283 8284 8285 CFLAGS="$xorg_testset_save_CFLAGS" 8286 8287 eval supported=\$$cacheid 8288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8289printf "%s\n" "$supported" >&6; } 8290 if test "$supported" = "yes" ; then 8291 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8292 found="yes" 8293 fi 8294 fi 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310xorg_testset_save_CFLAGS="$CFLAGS" 8311 8312if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8315printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8316if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8317then : 8318 printf %s "(cached) " >&6 8319else case e in #( 8320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8321/* end confdefs.h. */ 8322int i; 8323_ACEOF 8324if ac_fn_c_try_compile "$LINENO" 8325then : 8326 xorg_cv_cc_flag_unknown_warning_option=yes 8327else case e in #( 8328 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8329esac 8330fi 8331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8332esac 8333fi 8334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8335printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8337 CFLAGS="$xorg_testset_save_CFLAGS" 8338fi 8339 8340if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8343 fi 8344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8346printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8347if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8348then : 8349 printf %s "(cached) " >&6 8350else case e in #( 8351 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8352/* end confdefs.h. */ 8353int i; 8354_ACEOF 8355if ac_fn_c_try_compile "$LINENO" 8356then : 8357 xorg_cv_cc_flag_unused_command_line_argument=yes 8358else case e in #( 8359 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8360esac 8361fi 8362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8363esac 8364fi 8365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8366printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8368 CFLAGS="$xorg_testset_save_CFLAGS" 8369fi 8370 8371found="no" 8372 8373 if test $found = "no" ; then 8374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8376 fi 8377 8378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8380 fi 8381 8382 CFLAGS="$CFLAGS -Werror=sequence-point" 8383 8384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8385printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8386 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8387 if eval test \${$cacheid+y} 8388then : 8389 printf %s "(cached) " >&6 8390else case e in #( 8391 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8392/* end confdefs.h. */ 8393int i; 8394int 8395main (void) 8396{ 8397 8398 ; 8399 return 0; 8400} 8401_ACEOF 8402if ac_fn_c_try_link "$LINENO" 8403then : 8404 eval $cacheid=yes 8405else case e in #( 8406 e) eval $cacheid=no ;; 8407esac 8408fi 8409rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8410 conftest$ac_exeext conftest.$ac_ext ;; 8411esac 8412fi 8413 8414 8415 CFLAGS="$xorg_testset_save_CFLAGS" 8416 8417 eval supported=\$$cacheid 8418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8419printf "%s\n" "$supported" >&6; } 8420 if test "$supported" = "yes" ; then 8421 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8422 found="yes" 8423 fi 8424 fi 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440xorg_testset_save_CFLAGS="$CFLAGS" 8441 8442if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8445printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8446if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8447then : 8448 printf %s "(cached) " >&6 8449else case e in #( 8450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8451/* end confdefs.h. */ 8452int i; 8453_ACEOF 8454if ac_fn_c_try_compile "$LINENO" 8455then : 8456 xorg_cv_cc_flag_unknown_warning_option=yes 8457else case e in #( 8458 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8459esac 8460fi 8461rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8462esac 8463fi 8464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8465printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8467 CFLAGS="$xorg_testset_save_CFLAGS" 8468fi 8469 8470if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8473 fi 8474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8476printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8477if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8478then : 8479 printf %s "(cached) " >&6 8480else case e in #( 8481 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8482/* end confdefs.h. */ 8483int i; 8484_ACEOF 8485if ac_fn_c_try_compile "$LINENO" 8486then : 8487 xorg_cv_cc_flag_unused_command_line_argument=yes 8488else case e in #( 8489 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8490esac 8491fi 8492rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8493esac 8494fi 8495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8496printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8498 CFLAGS="$xorg_testset_save_CFLAGS" 8499fi 8500 8501found="no" 8502 8503 if test $found = "no" ; then 8504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8506 fi 8507 8508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8510 fi 8511 8512 CFLAGS="$CFLAGS -Werror=return-type" 8513 8514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8515printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8516 cacheid=xorg_cv_cc_flag__Werror_return_type 8517 if eval test \${$cacheid+y} 8518then : 8519 printf %s "(cached) " >&6 8520else case e in #( 8521 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8522/* end confdefs.h. */ 8523int i; 8524int 8525main (void) 8526{ 8527 8528 ; 8529 return 0; 8530} 8531_ACEOF 8532if ac_fn_c_try_link "$LINENO" 8533then : 8534 eval $cacheid=yes 8535else case e in #( 8536 e) eval $cacheid=no ;; 8537esac 8538fi 8539rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8540 conftest$ac_exeext conftest.$ac_ext ;; 8541esac 8542fi 8543 8544 8545 CFLAGS="$xorg_testset_save_CFLAGS" 8546 8547 eval supported=\$$cacheid 8548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8549printf "%s\n" "$supported" >&6; } 8550 if test "$supported" = "yes" ; then 8551 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8552 found="yes" 8553 fi 8554 fi 8555 8556 if test $found = "no" ; then 8557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8559 fi 8560 8561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8563 fi 8564 8565 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8566 8567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8568printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8569 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8570 if eval test \${$cacheid+y} 8571then : 8572 printf %s "(cached) " >&6 8573else case e in #( 8574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8575/* end confdefs.h. */ 8576int i; 8577int 8578main (void) 8579{ 8580 8581 ; 8582 return 0; 8583} 8584_ACEOF 8585if ac_fn_c_try_link "$LINENO" 8586then : 8587 eval $cacheid=yes 8588else case e in #( 8589 e) eval $cacheid=no ;; 8590esac 8591fi 8592rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8593 conftest$ac_exeext conftest.$ac_ext ;; 8594esac 8595fi 8596 8597 8598 CFLAGS="$xorg_testset_save_CFLAGS" 8599 8600 eval supported=\$$cacheid 8601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8602printf "%s\n" "$supported" >&6; } 8603 if test "$supported" = "yes" ; then 8604 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8605 found="yes" 8606 fi 8607 fi 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623xorg_testset_save_CFLAGS="$CFLAGS" 8624 8625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8628printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8629if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8630then : 8631 printf %s "(cached) " >&6 8632else case e in #( 8633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8634/* end confdefs.h. */ 8635int i; 8636_ACEOF 8637if ac_fn_c_try_compile "$LINENO" 8638then : 8639 xorg_cv_cc_flag_unknown_warning_option=yes 8640else case e in #( 8641 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8642esac 8643fi 8644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8645esac 8646fi 8647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8648printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8650 CFLAGS="$xorg_testset_save_CFLAGS" 8651fi 8652 8653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8656 fi 8657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8659printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8660if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8661then : 8662 printf %s "(cached) " >&6 8663else case e in #( 8664 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8665/* end confdefs.h. */ 8666int i; 8667_ACEOF 8668if ac_fn_c_try_compile "$LINENO" 8669then : 8670 xorg_cv_cc_flag_unused_command_line_argument=yes 8671else case e in #( 8672 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8673esac 8674fi 8675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8676esac 8677fi 8678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8679printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8680 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8681 CFLAGS="$xorg_testset_save_CFLAGS" 8682fi 8683 8684found="no" 8685 8686 if test $found = "no" ; then 8687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8689 fi 8690 8691 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8693 fi 8694 8695 CFLAGS="$CFLAGS -Werror=trigraphs" 8696 8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8698printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8699 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8700 if eval test \${$cacheid+y} 8701then : 8702 printf %s "(cached) " >&6 8703else case e in #( 8704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8705/* end confdefs.h. */ 8706int i; 8707int 8708main (void) 8709{ 8710 8711 ; 8712 return 0; 8713} 8714_ACEOF 8715if ac_fn_c_try_link "$LINENO" 8716then : 8717 eval $cacheid=yes 8718else case e in #( 8719 e) eval $cacheid=no ;; 8720esac 8721fi 8722rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8723 conftest$ac_exeext conftest.$ac_ext ;; 8724esac 8725fi 8726 8727 8728 CFLAGS="$xorg_testset_save_CFLAGS" 8729 8730 eval supported=\$$cacheid 8731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8732printf "%s\n" "$supported" >&6; } 8733 if test "$supported" = "yes" ; then 8734 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8735 found="yes" 8736 fi 8737 fi 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753xorg_testset_save_CFLAGS="$CFLAGS" 8754 8755if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8758printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8759if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8760then : 8761 printf %s "(cached) " >&6 8762else case e in #( 8763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8764/* end confdefs.h. */ 8765int i; 8766_ACEOF 8767if ac_fn_c_try_compile "$LINENO" 8768then : 8769 xorg_cv_cc_flag_unknown_warning_option=yes 8770else case e in #( 8771 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8772esac 8773fi 8774rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8775esac 8776fi 8777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8778printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8779 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8780 CFLAGS="$xorg_testset_save_CFLAGS" 8781fi 8782 8783if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8786 fi 8787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8789printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8790if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8791then : 8792 printf %s "(cached) " >&6 8793else case e in #( 8794 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8795/* end confdefs.h. */ 8796int i; 8797_ACEOF 8798if ac_fn_c_try_compile "$LINENO" 8799then : 8800 xorg_cv_cc_flag_unused_command_line_argument=yes 8801else case e in #( 8802 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8803esac 8804fi 8805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8806esac 8807fi 8808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8809printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8811 CFLAGS="$xorg_testset_save_CFLAGS" 8812fi 8813 8814found="no" 8815 8816 if test $found = "no" ; then 8817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8819 fi 8820 8821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8823 fi 8824 8825 CFLAGS="$CFLAGS -Werror=array-bounds" 8826 8827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8828printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8829 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8830 if eval test \${$cacheid+y} 8831then : 8832 printf %s "(cached) " >&6 8833else case e in #( 8834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8835/* end confdefs.h. */ 8836int i; 8837int 8838main (void) 8839{ 8840 8841 ; 8842 return 0; 8843} 8844_ACEOF 8845if ac_fn_c_try_link "$LINENO" 8846then : 8847 eval $cacheid=yes 8848else case e in #( 8849 e) eval $cacheid=no ;; 8850esac 8851fi 8852rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8853 conftest$ac_exeext conftest.$ac_ext ;; 8854esac 8855fi 8856 8857 8858 CFLAGS="$xorg_testset_save_CFLAGS" 8859 8860 eval supported=\$$cacheid 8861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8862printf "%s\n" "$supported" >&6; } 8863 if test "$supported" = "yes" ; then 8864 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8865 found="yes" 8866 fi 8867 fi 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883xorg_testset_save_CFLAGS="$CFLAGS" 8884 8885if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8888printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8889if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8890then : 8891 printf %s "(cached) " >&6 8892else case e in #( 8893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8894/* end confdefs.h. */ 8895int i; 8896_ACEOF 8897if ac_fn_c_try_compile "$LINENO" 8898then : 8899 xorg_cv_cc_flag_unknown_warning_option=yes 8900else case e in #( 8901 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8902esac 8903fi 8904rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8905esac 8906fi 8907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8908printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8909 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8910 CFLAGS="$xorg_testset_save_CFLAGS" 8911fi 8912 8913if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8916 fi 8917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8919printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8920if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8921then : 8922 printf %s "(cached) " >&6 8923else case e in #( 8924 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8925/* end confdefs.h. */ 8926int i; 8927_ACEOF 8928if ac_fn_c_try_compile "$LINENO" 8929then : 8930 xorg_cv_cc_flag_unused_command_line_argument=yes 8931else case e in #( 8932 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8933esac 8934fi 8935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8936esac 8937fi 8938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8939printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8941 CFLAGS="$xorg_testset_save_CFLAGS" 8942fi 8943 8944found="no" 8945 8946 if test $found = "no" ; then 8947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8949 fi 8950 8951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8953 fi 8954 8955 CFLAGS="$CFLAGS -Werror=write-strings" 8956 8957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8958printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8959 cacheid=xorg_cv_cc_flag__Werror_write_strings 8960 if eval test \${$cacheid+y} 8961then : 8962 printf %s "(cached) " >&6 8963else case e in #( 8964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8965/* end confdefs.h. */ 8966int i; 8967int 8968main (void) 8969{ 8970 8971 ; 8972 return 0; 8973} 8974_ACEOF 8975if ac_fn_c_try_link "$LINENO" 8976then : 8977 eval $cacheid=yes 8978else case e in #( 8979 e) eval $cacheid=no ;; 8980esac 8981fi 8982rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8983 conftest$ac_exeext conftest.$ac_ext ;; 8984esac 8985fi 8986 8987 8988 CFLAGS="$xorg_testset_save_CFLAGS" 8989 8990 eval supported=\$$cacheid 8991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8992printf "%s\n" "$supported" >&6; } 8993 if test "$supported" = "yes" ; then 8994 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8995 found="yes" 8996 fi 8997 fi 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013xorg_testset_save_CFLAGS="$CFLAGS" 9014 9015if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9018printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9019if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9020then : 9021 printf %s "(cached) " >&6 9022else case e in #( 9023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9024/* end confdefs.h. */ 9025int i; 9026_ACEOF 9027if ac_fn_c_try_compile "$LINENO" 9028then : 9029 xorg_cv_cc_flag_unknown_warning_option=yes 9030else case e in #( 9031 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9032esac 9033fi 9034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9035esac 9036fi 9037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9038printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9040 CFLAGS="$xorg_testset_save_CFLAGS" 9041fi 9042 9043if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9046 fi 9047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9049printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9050if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9051then : 9052 printf %s "(cached) " >&6 9053else case e in #( 9054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9055/* end confdefs.h. */ 9056int i; 9057_ACEOF 9058if ac_fn_c_try_compile "$LINENO" 9059then : 9060 xorg_cv_cc_flag_unused_command_line_argument=yes 9061else case e in #( 9062 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9063esac 9064fi 9065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9066esac 9067fi 9068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9069printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9071 CFLAGS="$xorg_testset_save_CFLAGS" 9072fi 9073 9074found="no" 9075 9076 if test $found = "no" ; then 9077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9079 fi 9080 9081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9083 fi 9084 9085 CFLAGS="$CFLAGS -Werror=address" 9086 9087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 9088printf %s "checking if $CC supports -Werror=address... " >&6; } 9089 cacheid=xorg_cv_cc_flag__Werror_address 9090 if eval test \${$cacheid+y} 9091then : 9092 printf %s "(cached) " >&6 9093else case e in #( 9094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9095/* end confdefs.h. */ 9096int i; 9097int 9098main (void) 9099{ 9100 9101 ; 9102 return 0; 9103} 9104_ACEOF 9105if ac_fn_c_try_link "$LINENO" 9106then : 9107 eval $cacheid=yes 9108else case e in #( 9109 e) eval $cacheid=no ;; 9110esac 9111fi 9112rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9113 conftest$ac_exeext conftest.$ac_ext ;; 9114esac 9115fi 9116 9117 9118 CFLAGS="$xorg_testset_save_CFLAGS" 9119 9120 eval supported=\$$cacheid 9121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9122printf "%s\n" "$supported" >&6; } 9123 if test "$supported" = "yes" ; then 9124 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 9125 found="yes" 9126 fi 9127 fi 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143xorg_testset_save_CFLAGS="$CFLAGS" 9144 9145if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9148printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9149if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9150then : 9151 printf %s "(cached) " >&6 9152else case e in #( 9153 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9154/* end confdefs.h. */ 9155int i; 9156_ACEOF 9157if ac_fn_c_try_compile "$LINENO" 9158then : 9159 xorg_cv_cc_flag_unknown_warning_option=yes 9160else case e in #( 9161 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9162esac 9163fi 9164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9165esac 9166fi 9167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9168printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9170 CFLAGS="$xorg_testset_save_CFLAGS" 9171fi 9172 9173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9176 fi 9177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9179printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9180if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9181then : 9182 printf %s "(cached) " >&6 9183else case e in #( 9184 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9185/* end confdefs.h. */ 9186int i; 9187_ACEOF 9188if ac_fn_c_try_compile "$LINENO" 9189then : 9190 xorg_cv_cc_flag_unused_command_line_argument=yes 9191else case e in #( 9192 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9193esac 9194fi 9195rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9196esac 9197fi 9198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9199printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9201 CFLAGS="$xorg_testset_save_CFLAGS" 9202fi 9203 9204found="no" 9205 9206 if test $found = "no" ; then 9207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9209 fi 9210 9211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9213 fi 9214 9215 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9216 9217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9218printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9219 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9220 if eval test \${$cacheid+y} 9221then : 9222 printf %s "(cached) " >&6 9223else case e in #( 9224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9225/* end confdefs.h. */ 9226int i; 9227int 9228main (void) 9229{ 9230 9231 ; 9232 return 0; 9233} 9234_ACEOF 9235if ac_fn_c_try_link "$LINENO" 9236then : 9237 eval $cacheid=yes 9238else case e in #( 9239 e) eval $cacheid=no ;; 9240esac 9241fi 9242rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9243 conftest$ac_exeext conftest.$ac_ext ;; 9244esac 9245fi 9246 9247 9248 CFLAGS="$xorg_testset_save_CFLAGS" 9249 9250 eval supported=\$$cacheid 9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9252printf "%s\n" "$supported" >&6; } 9253 if test "$supported" = "yes" ; then 9254 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9255 found="yes" 9256 fi 9257 fi 9258 9259 if test $found = "no" ; then 9260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9262 fi 9263 9264 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9266 fi 9267 9268 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9269 9270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9271printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9272 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9273 if eval test \${$cacheid+y} 9274then : 9275 printf %s "(cached) " >&6 9276else case e in #( 9277 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9278/* end confdefs.h. */ 9279int i; 9280int 9281main (void) 9282{ 9283 9284 ; 9285 return 0; 9286} 9287_ACEOF 9288if ac_fn_c_try_link "$LINENO" 9289then : 9290 eval $cacheid=yes 9291else case e in #( 9292 e) eval $cacheid=no ;; 9293esac 9294fi 9295rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9296 conftest$ac_exeext conftest.$ac_ext ;; 9297esac 9298fi 9299 9300 9301 CFLAGS="$xorg_testset_save_CFLAGS" 9302 9303 eval supported=\$$cacheid 9304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9305printf "%s\n" "$supported" >&6; } 9306 if test "$supported" = "yes" ; then 9307 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9308 found="yes" 9309 fi 9310 fi 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326xorg_testset_save_CFLAGS="$CFLAGS" 9327 9328if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9331printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9332if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9333then : 9334 printf %s "(cached) " >&6 9335else case e in #( 9336 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9337/* end confdefs.h. */ 9338int i; 9339_ACEOF 9340if ac_fn_c_try_compile "$LINENO" 9341then : 9342 xorg_cv_cc_flag_unknown_warning_option=yes 9343else case e in #( 9344 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9345esac 9346fi 9347rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9348esac 9349fi 9350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9351printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9352 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9353 CFLAGS="$xorg_testset_save_CFLAGS" 9354fi 9355 9356if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9359 fi 9360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9362printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9363if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9364then : 9365 printf %s "(cached) " >&6 9366else case e in #( 9367 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9368/* end confdefs.h. */ 9369int i; 9370_ACEOF 9371if ac_fn_c_try_compile "$LINENO" 9372then : 9373 xorg_cv_cc_flag_unused_command_line_argument=yes 9374else case e in #( 9375 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9376esac 9377fi 9378rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9379esac 9380fi 9381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9382printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9383 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9384 CFLAGS="$xorg_testset_save_CFLAGS" 9385fi 9386 9387found="no" 9388 9389 if test $found = "no" ; then 9390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9392 fi 9393 9394 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9396 fi 9397 9398 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9399 9400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9401printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9402 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9403 if eval test \${$cacheid+y} 9404then : 9405 printf %s "(cached) " >&6 9406else case e in #( 9407 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9408/* end confdefs.h. */ 9409int i; 9410int 9411main (void) 9412{ 9413 9414 ; 9415 return 0; 9416} 9417_ACEOF 9418if ac_fn_c_try_link "$LINENO" 9419then : 9420 eval $cacheid=yes 9421else case e in #( 9422 e) eval $cacheid=no ;; 9423esac 9424fi 9425rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9426 conftest$ac_exeext conftest.$ac_ext ;; 9427esac 9428fi 9429 9430 9431 CFLAGS="$xorg_testset_save_CFLAGS" 9432 9433 eval supported=\$$cacheid 9434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9435printf "%s\n" "$supported" >&6; } 9436 if test "$supported" = "yes" ; then 9437 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9438 found="yes" 9439 fi 9440 fi 9441 9442 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9443else 9444{ 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 9445printf "%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;} 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459xorg_testset_save_CFLAGS="$CFLAGS" 9460 9461if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9464printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9465if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9466then : 9467 printf %s "(cached) " >&6 9468else case e in #( 9469 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9470/* end confdefs.h. */ 9471int i; 9472_ACEOF 9473if ac_fn_c_try_compile "$LINENO" 9474then : 9475 xorg_cv_cc_flag_unknown_warning_option=yes 9476else case e in #( 9477 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9478esac 9479fi 9480rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9481esac 9482fi 9483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9484printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9486 CFLAGS="$xorg_testset_save_CFLAGS" 9487fi 9488 9489if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9492 fi 9493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9495printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9496if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9497then : 9498 printf %s "(cached) " >&6 9499else case e in #( 9500 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9501/* end confdefs.h. */ 9502int i; 9503_ACEOF 9504if ac_fn_c_try_compile "$LINENO" 9505then : 9506 xorg_cv_cc_flag_unused_command_line_argument=yes 9507else case e in #( 9508 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9509esac 9510fi 9511rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9512esac 9513fi 9514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9515printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9517 CFLAGS="$xorg_testset_save_CFLAGS" 9518fi 9519 9520found="no" 9521 9522 if test $found = "no" ; then 9523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9525 fi 9526 9527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9529 fi 9530 9531 CFLAGS="$CFLAGS -Wimplicit" 9532 9533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9534printf %s "checking if $CC supports -Wimplicit... " >&6; } 9535 cacheid=xorg_cv_cc_flag__Wimplicit 9536 if eval test \${$cacheid+y} 9537then : 9538 printf %s "(cached) " >&6 9539else case e in #( 9540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9541/* end confdefs.h. */ 9542int i; 9543int 9544main (void) 9545{ 9546 9547 ; 9548 return 0; 9549} 9550_ACEOF 9551if ac_fn_c_try_link "$LINENO" 9552then : 9553 eval $cacheid=yes 9554else case e in #( 9555 e) eval $cacheid=no ;; 9556esac 9557fi 9558rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9559 conftest$ac_exeext conftest.$ac_ext ;; 9560esac 9561fi 9562 9563 9564 CFLAGS="$xorg_testset_save_CFLAGS" 9565 9566 eval supported=\$$cacheid 9567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9568printf "%s\n" "$supported" >&6; } 9569 if test "$supported" = "yes" ; then 9570 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9571 found="yes" 9572 fi 9573 fi 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589xorg_testset_save_CFLAGS="$CFLAGS" 9590 9591if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9594printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9595if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9596then : 9597 printf %s "(cached) " >&6 9598else case e in #( 9599 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9600/* end confdefs.h. */ 9601int i; 9602_ACEOF 9603if ac_fn_c_try_compile "$LINENO" 9604then : 9605 xorg_cv_cc_flag_unknown_warning_option=yes 9606else case e in #( 9607 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9608esac 9609fi 9610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9611esac 9612fi 9613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9614printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9615 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9616 CFLAGS="$xorg_testset_save_CFLAGS" 9617fi 9618 9619if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9622 fi 9623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9625printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9626if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9627then : 9628 printf %s "(cached) " >&6 9629else case e in #( 9630 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9631/* end confdefs.h. */ 9632int i; 9633_ACEOF 9634if ac_fn_c_try_compile "$LINENO" 9635then : 9636 xorg_cv_cc_flag_unused_command_line_argument=yes 9637else case e in #( 9638 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9639esac 9640fi 9641rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9642esac 9643fi 9644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9645printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9647 CFLAGS="$xorg_testset_save_CFLAGS" 9648fi 9649 9650found="no" 9651 9652 if test $found = "no" ; then 9653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9655 fi 9656 9657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9659 fi 9660 9661 CFLAGS="$CFLAGS -Wnonnull" 9662 9663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9664printf %s "checking if $CC supports -Wnonnull... " >&6; } 9665 cacheid=xorg_cv_cc_flag__Wnonnull 9666 if eval test \${$cacheid+y} 9667then : 9668 printf %s "(cached) " >&6 9669else case e in #( 9670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9671/* end confdefs.h. */ 9672int i; 9673int 9674main (void) 9675{ 9676 9677 ; 9678 return 0; 9679} 9680_ACEOF 9681if ac_fn_c_try_link "$LINENO" 9682then : 9683 eval $cacheid=yes 9684else case e in #( 9685 e) eval $cacheid=no ;; 9686esac 9687fi 9688rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9689 conftest$ac_exeext conftest.$ac_ext ;; 9690esac 9691fi 9692 9693 9694 CFLAGS="$xorg_testset_save_CFLAGS" 9695 9696 eval supported=\$$cacheid 9697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9698printf "%s\n" "$supported" >&6; } 9699 if test "$supported" = "yes" ; then 9700 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9701 found="yes" 9702 fi 9703 fi 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719xorg_testset_save_CFLAGS="$CFLAGS" 9720 9721if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9724printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9725if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9726then : 9727 printf %s "(cached) " >&6 9728else case e in #( 9729 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9730/* end confdefs.h. */ 9731int i; 9732_ACEOF 9733if ac_fn_c_try_compile "$LINENO" 9734then : 9735 xorg_cv_cc_flag_unknown_warning_option=yes 9736else case e in #( 9737 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9738esac 9739fi 9740rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9741esac 9742fi 9743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9744printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9746 CFLAGS="$xorg_testset_save_CFLAGS" 9747fi 9748 9749if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9752 fi 9753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9755printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9756if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9757then : 9758 printf %s "(cached) " >&6 9759else case e in #( 9760 e) 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_unused_command_line_argument=yes 9767else case e in #( 9768 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9769esac 9770fi 9771rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9772esac 9773fi 9774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9775printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9776 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9777 CFLAGS="$xorg_testset_save_CFLAGS" 9778fi 9779 9780found="no" 9781 9782 if test $found = "no" ; then 9783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9785 fi 9786 9787 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9789 fi 9790 9791 CFLAGS="$CFLAGS -Winit-self" 9792 9793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9794printf %s "checking if $CC supports -Winit-self... " >&6; } 9795 cacheid=xorg_cv_cc_flag__Winit_self 9796 if eval test \${$cacheid+y} 9797then : 9798 printf %s "(cached) " >&6 9799else case e in #( 9800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9801/* end confdefs.h. */ 9802int i; 9803int 9804main (void) 9805{ 9806 9807 ; 9808 return 0; 9809} 9810_ACEOF 9811if ac_fn_c_try_link "$LINENO" 9812then : 9813 eval $cacheid=yes 9814else case e in #( 9815 e) eval $cacheid=no ;; 9816esac 9817fi 9818rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9819 conftest$ac_exeext conftest.$ac_ext ;; 9820esac 9821fi 9822 9823 9824 CFLAGS="$xorg_testset_save_CFLAGS" 9825 9826 eval supported=\$$cacheid 9827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9828printf "%s\n" "$supported" >&6; } 9829 if test "$supported" = "yes" ; then 9830 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9831 found="yes" 9832 fi 9833 fi 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849xorg_testset_save_CFLAGS="$CFLAGS" 9850 9851if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9854printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9855if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9856then : 9857 printf %s "(cached) " >&6 9858else case e in #( 9859 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9860/* end confdefs.h. */ 9861int i; 9862_ACEOF 9863if ac_fn_c_try_compile "$LINENO" 9864then : 9865 xorg_cv_cc_flag_unknown_warning_option=yes 9866else case e in #( 9867 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9868esac 9869fi 9870rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9871esac 9872fi 9873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9874printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9876 CFLAGS="$xorg_testset_save_CFLAGS" 9877fi 9878 9879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9882 fi 9883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9885printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9886if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9887then : 9888 printf %s "(cached) " >&6 9889else case e in #( 9890 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9891/* end confdefs.h. */ 9892int i; 9893_ACEOF 9894if ac_fn_c_try_compile "$LINENO" 9895then : 9896 xorg_cv_cc_flag_unused_command_line_argument=yes 9897else case e in #( 9898 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9899esac 9900fi 9901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9902esac 9903fi 9904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9905printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9907 CFLAGS="$xorg_testset_save_CFLAGS" 9908fi 9909 9910found="no" 9911 9912 if test $found = "no" ; then 9913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9915 fi 9916 9917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9919 fi 9920 9921 CFLAGS="$CFLAGS -Wmain" 9922 9923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9924printf %s "checking if $CC supports -Wmain... " >&6; } 9925 cacheid=xorg_cv_cc_flag__Wmain 9926 if eval test \${$cacheid+y} 9927then : 9928 printf %s "(cached) " >&6 9929else case e in #( 9930 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9931/* end confdefs.h. */ 9932int i; 9933int 9934main (void) 9935{ 9936 9937 ; 9938 return 0; 9939} 9940_ACEOF 9941if ac_fn_c_try_link "$LINENO" 9942then : 9943 eval $cacheid=yes 9944else case e in #( 9945 e) eval $cacheid=no ;; 9946esac 9947fi 9948rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9949 conftest$ac_exeext conftest.$ac_ext ;; 9950esac 9951fi 9952 9953 9954 CFLAGS="$xorg_testset_save_CFLAGS" 9955 9956 eval supported=\$$cacheid 9957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9958printf "%s\n" "$supported" >&6; } 9959 if test "$supported" = "yes" ; then 9960 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9961 found="yes" 9962 fi 9963 fi 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979xorg_testset_save_CFLAGS="$CFLAGS" 9980 9981if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9984printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9985if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9986then : 9987 printf %s "(cached) " >&6 9988else case e in #( 9989 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9990/* end confdefs.h. */ 9991int i; 9992_ACEOF 9993if ac_fn_c_try_compile "$LINENO" 9994then : 9995 xorg_cv_cc_flag_unknown_warning_option=yes 9996else case e in #( 9997 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9998esac 9999fi 10000rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10001esac 10002fi 10003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10004printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10005 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10006 CFLAGS="$xorg_testset_save_CFLAGS" 10007fi 10008 10009if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10012 fi 10013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10015printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10016if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10017then : 10018 printf %s "(cached) " >&6 10019else case e in #( 10020 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10021/* end confdefs.h. */ 10022int i; 10023_ACEOF 10024if ac_fn_c_try_compile "$LINENO" 10025then : 10026 xorg_cv_cc_flag_unused_command_line_argument=yes 10027else case e in #( 10028 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10029esac 10030fi 10031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10032esac 10033fi 10034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10035printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10036 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10037 CFLAGS="$xorg_testset_save_CFLAGS" 10038fi 10039 10040found="no" 10041 10042 if test $found = "no" ; then 10043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10045 fi 10046 10047 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10049 fi 10050 10051 CFLAGS="$CFLAGS -Wmissing-braces" 10052 10053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 10054printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 10055 cacheid=xorg_cv_cc_flag__Wmissing_braces 10056 if eval test \${$cacheid+y} 10057then : 10058 printf %s "(cached) " >&6 10059else case e in #( 10060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10061/* end confdefs.h. */ 10062int i; 10063int 10064main (void) 10065{ 10066 10067 ; 10068 return 0; 10069} 10070_ACEOF 10071if ac_fn_c_try_link "$LINENO" 10072then : 10073 eval $cacheid=yes 10074else case e in #( 10075 e) eval $cacheid=no ;; 10076esac 10077fi 10078rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10079 conftest$ac_exeext conftest.$ac_ext ;; 10080esac 10081fi 10082 10083 10084 CFLAGS="$xorg_testset_save_CFLAGS" 10085 10086 eval supported=\$$cacheid 10087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10088printf "%s\n" "$supported" >&6; } 10089 if test "$supported" = "yes" ; then 10090 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 10091 found="yes" 10092 fi 10093 fi 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109xorg_testset_save_CFLAGS="$CFLAGS" 10110 10111if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10114printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10115if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10116then : 10117 printf %s "(cached) " >&6 10118else case e in #( 10119 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10120/* end confdefs.h. */ 10121int i; 10122_ACEOF 10123if ac_fn_c_try_compile "$LINENO" 10124then : 10125 xorg_cv_cc_flag_unknown_warning_option=yes 10126else case e in #( 10127 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10128esac 10129fi 10130rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10131esac 10132fi 10133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10134printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10135 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10136 CFLAGS="$xorg_testset_save_CFLAGS" 10137fi 10138 10139if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10142 fi 10143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10145printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10146if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10147then : 10148 printf %s "(cached) " >&6 10149else case e in #( 10150 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10151/* end confdefs.h. */ 10152int i; 10153_ACEOF 10154if ac_fn_c_try_compile "$LINENO" 10155then : 10156 xorg_cv_cc_flag_unused_command_line_argument=yes 10157else case e in #( 10158 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10159esac 10160fi 10161rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10162esac 10163fi 10164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10165printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10166 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10167 CFLAGS="$xorg_testset_save_CFLAGS" 10168fi 10169 10170found="no" 10171 10172 if test $found = "no" ; then 10173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10175 fi 10176 10177 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10179 fi 10180 10181 CFLAGS="$CFLAGS -Wsequence-point" 10182 10183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10184printf %s "checking if $CC supports -Wsequence-point... " >&6; } 10185 cacheid=xorg_cv_cc_flag__Wsequence_point 10186 if eval test \${$cacheid+y} 10187then : 10188 printf %s "(cached) " >&6 10189else case e in #( 10190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10191/* end confdefs.h. */ 10192int i; 10193int 10194main (void) 10195{ 10196 10197 ; 10198 return 0; 10199} 10200_ACEOF 10201if ac_fn_c_try_link "$LINENO" 10202then : 10203 eval $cacheid=yes 10204else case e in #( 10205 e) eval $cacheid=no ;; 10206esac 10207fi 10208rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10209 conftest$ac_exeext conftest.$ac_ext ;; 10210esac 10211fi 10212 10213 10214 CFLAGS="$xorg_testset_save_CFLAGS" 10215 10216 eval supported=\$$cacheid 10217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10218printf "%s\n" "$supported" >&6; } 10219 if test "$supported" = "yes" ; then 10220 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10221 found="yes" 10222 fi 10223 fi 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239xorg_testset_save_CFLAGS="$CFLAGS" 10240 10241if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10244printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10245if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10246then : 10247 printf %s "(cached) " >&6 10248else case e in #( 10249 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10250/* end confdefs.h. */ 10251int i; 10252_ACEOF 10253if ac_fn_c_try_compile "$LINENO" 10254then : 10255 xorg_cv_cc_flag_unknown_warning_option=yes 10256else case e in #( 10257 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10258esac 10259fi 10260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10261esac 10262fi 10263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10264printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10266 CFLAGS="$xorg_testset_save_CFLAGS" 10267fi 10268 10269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10272 fi 10273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10275printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10276if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10277then : 10278 printf %s "(cached) " >&6 10279else case e in #( 10280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10281/* end confdefs.h. */ 10282int i; 10283_ACEOF 10284if ac_fn_c_try_compile "$LINENO" 10285then : 10286 xorg_cv_cc_flag_unused_command_line_argument=yes 10287else case e in #( 10288 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10289esac 10290fi 10291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10292esac 10293fi 10294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10295printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10297 CFLAGS="$xorg_testset_save_CFLAGS" 10298fi 10299 10300found="no" 10301 10302 if test $found = "no" ; then 10303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10305 fi 10306 10307 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10309 fi 10310 10311 CFLAGS="$CFLAGS -Wreturn-type" 10312 10313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10314printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10315 cacheid=xorg_cv_cc_flag__Wreturn_type 10316 if eval test \${$cacheid+y} 10317then : 10318 printf %s "(cached) " >&6 10319else case e in #( 10320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10321/* end confdefs.h. */ 10322int i; 10323int 10324main (void) 10325{ 10326 10327 ; 10328 return 0; 10329} 10330_ACEOF 10331if ac_fn_c_try_link "$LINENO" 10332then : 10333 eval $cacheid=yes 10334else case e in #( 10335 e) eval $cacheid=no ;; 10336esac 10337fi 10338rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10339 conftest$ac_exeext conftest.$ac_ext ;; 10340esac 10341fi 10342 10343 10344 CFLAGS="$xorg_testset_save_CFLAGS" 10345 10346 eval supported=\$$cacheid 10347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10348printf "%s\n" "$supported" >&6; } 10349 if test "$supported" = "yes" ; then 10350 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10351 found="yes" 10352 fi 10353 fi 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369xorg_testset_save_CFLAGS="$CFLAGS" 10370 10371if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10374printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10375if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10376then : 10377 printf %s "(cached) " >&6 10378else case e in #( 10379 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10380/* end confdefs.h. */ 10381int i; 10382_ACEOF 10383if ac_fn_c_try_compile "$LINENO" 10384then : 10385 xorg_cv_cc_flag_unknown_warning_option=yes 10386else case e in #( 10387 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10388esac 10389fi 10390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10391esac 10392fi 10393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10394printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10395 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10396 CFLAGS="$xorg_testset_save_CFLAGS" 10397fi 10398 10399if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10402 fi 10403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10405printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10406if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10407then : 10408 printf %s "(cached) " >&6 10409else case e in #( 10410 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10411/* end confdefs.h. */ 10412int i; 10413_ACEOF 10414if ac_fn_c_try_compile "$LINENO" 10415then : 10416 xorg_cv_cc_flag_unused_command_line_argument=yes 10417else case e in #( 10418 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10419esac 10420fi 10421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10422esac 10423fi 10424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10425printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10427 CFLAGS="$xorg_testset_save_CFLAGS" 10428fi 10429 10430found="no" 10431 10432 if test $found = "no" ; then 10433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10435 fi 10436 10437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10439 fi 10440 10441 CFLAGS="$CFLAGS -Wtrigraphs" 10442 10443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10444printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10445 cacheid=xorg_cv_cc_flag__Wtrigraphs 10446 if eval test \${$cacheid+y} 10447then : 10448 printf %s "(cached) " >&6 10449else case e in #( 10450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10451/* end confdefs.h. */ 10452int i; 10453int 10454main (void) 10455{ 10456 10457 ; 10458 return 0; 10459} 10460_ACEOF 10461if ac_fn_c_try_link "$LINENO" 10462then : 10463 eval $cacheid=yes 10464else case e in #( 10465 e) eval $cacheid=no ;; 10466esac 10467fi 10468rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10469 conftest$ac_exeext conftest.$ac_ext ;; 10470esac 10471fi 10472 10473 10474 CFLAGS="$xorg_testset_save_CFLAGS" 10475 10476 eval supported=\$$cacheid 10477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10478printf "%s\n" "$supported" >&6; } 10479 if test "$supported" = "yes" ; then 10480 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10481 found="yes" 10482 fi 10483 fi 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499xorg_testset_save_CFLAGS="$CFLAGS" 10500 10501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10504printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10505if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10506then : 10507 printf %s "(cached) " >&6 10508else case e in #( 10509 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10510/* end confdefs.h. */ 10511int i; 10512_ACEOF 10513if ac_fn_c_try_compile "$LINENO" 10514then : 10515 xorg_cv_cc_flag_unknown_warning_option=yes 10516else case e in #( 10517 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10518esac 10519fi 10520rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10521esac 10522fi 10523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10524printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10526 CFLAGS="$xorg_testset_save_CFLAGS" 10527fi 10528 10529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10532 fi 10533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10535printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10536if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10537then : 10538 printf %s "(cached) " >&6 10539else case e in #( 10540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10541/* end confdefs.h. */ 10542int i; 10543_ACEOF 10544if ac_fn_c_try_compile "$LINENO" 10545then : 10546 xorg_cv_cc_flag_unused_command_line_argument=yes 10547else case e in #( 10548 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10549esac 10550fi 10551rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10552esac 10553fi 10554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10555printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10557 CFLAGS="$xorg_testset_save_CFLAGS" 10558fi 10559 10560found="no" 10561 10562 if test $found = "no" ; then 10563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10565 fi 10566 10567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10569 fi 10570 10571 CFLAGS="$CFLAGS -Warray-bounds" 10572 10573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10574printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10575 cacheid=xorg_cv_cc_flag__Warray_bounds 10576 if eval test \${$cacheid+y} 10577then : 10578 printf %s "(cached) " >&6 10579else case e in #( 10580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10581/* end confdefs.h. */ 10582int i; 10583int 10584main (void) 10585{ 10586 10587 ; 10588 return 0; 10589} 10590_ACEOF 10591if ac_fn_c_try_link "$LINENO" 10592then : 10593 eval $cacheid=yes 10594else case e in #( 10595 e) eval $cacheid=no ;; 10596esac 10597fi 10598rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10599 conftest$ac_exeext conftest.$ac_ext ;; 10600esac 10601fi 10602 10603 10604 CFLAGS="$xorg_testset_save_CFLAGS" 10605 10606 eval supported=\$$cacheid 10607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10608printf "%s\n" "$supported" >&6; } 10609 if test "$supported" = "yes" ; then 10610 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10611 found="yes" 10612 fi 10613 fi 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629xorg_testset_save_CFLAGS="$CFLAGS" 10630 10631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10634printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10635if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10636then : 10637 printf %s "(cached) " >&6 10638else case e in #( 10639 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10640/* end confdefs.h. */ 10641int i; 10642_ACEOF 10643if ac_fn_c_try_compile "$LINENO" 10644then : 10645 xorg_cv_cc_flag_unknown_warning_option=yes 10646else case e in #( 10647 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10648esac 10649fi 10650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10651esac 10652fi 10653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10654printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10655 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10656 CFLAGS="$xorg_testset_save_CFLAGS" 10657fi 10658 10659if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10662 fi 10663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10665printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10666if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10667then : 10668 printf %s "(cached) " >&6 10669else case e in #( 10670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10671/* end confdefs.h. */ 10672int i; 10673_ACEOF 10674if ac_fn_c_try_compile "$LINENO" 10675then : 10676 xorg_cv_cc_flag_unused_command_line_argument=yes 10677else case e in #( 10678 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10679esac 10680fi 10681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10682esac 10683fi 10684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10685printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10687 CFLAGS="$xorg_testset_save_CFLAGS" 10688fi 10689 10690found="no" 10691 10692 if test $found = "no" ; then 10693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10695 fi 10696 10697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10699 fi 10700 10701 CFLAGS="$CFLAGS -Wwrite-strings" 10702 10703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10704printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10705 cacheid=xorg_cv_cc_flag__Wwrite_strings 10706 if eval test \${$cacheid+y} 10707then : 10708 printf %s "(cached) " >&6 10709else case e in #( 10710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10711/* end confdefs.h. */ 10712int i; 10713int 10714main (void) 10715{ 10716 10717 ; 10718 return 0; 10719} 10720_ACEOF 10721if ac_fn_c_try_link "$LINENO" 10722then : 10723 eval $cacheid=yes 10724else case e in #( 10725 e) eval $cacheid=no ;; 10726esac 10727fi 10728rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10729 conftest$ac_exeext conftest.$ac_ext ;; 10730esac 10731fi 10732 10733 10734 CFLAGS="$xorg_testset_save_CFLAGS" 10735 10736 eval supported=\$$cacheid 10737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10738printf "%s\n" "$supported" >&6; } 10739 if test "$supported" = "yes" ; then 10740 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10741 found="yes" 10742 fi 10743 fi 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759xorg_testset_save_CFLAGS="$CFLAGS" 10760 10761if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10764printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10765if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10766then : 10767 printf %s "(cached) " >&6 10768else case e in #( 10769 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10770/* end confdefs.h. */ 10771int i; 10772_ACEOF 10773if ac_fn_c_try_compile "$LINENO" 10774then : 10775 xorg_cv_cc_flag_unknown_warning_option=yes 10776else case e in #( 10777 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10778esac 10779fi 10780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10781esac 10782fi 10783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10784printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10785 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10786 CFLAGS="$xorg_testset_save_CFLAGS" 10787fi 10788 10789if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10792 fi 10793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10795printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10796if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10797then : 10798 printf %s "(cached) " >&6 10799else case e in #( 10800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10801/* end confdefs.h. */ 10802int i; 10803_ACEOF 10804if ac_fn_c_try_compile "$LINENO" 10805then : 10806 xorg_cv_cc_flag_unused_command_line_argument=yes 10807else case e in #( 10808 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10809esac 10810fi 10811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10812esac 10813fi 10814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10815printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10817 CFLAGS="$xorg_testset_save_CFLAGS" 10818fi 10819 10820found="no" 10821 10822 if test $found = "no" ; then 10823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10825 fi 10826 10827 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10829 fi 10830 10831 CFLAGS="$CFLAGS -Waddress" 10832 10833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10834printf %s "checking if $CC supports -Waddress... " >&6; } 10835 cacheid=xorg_cv_cc_flag__Waddress 10836 if eval test \${$cacheid+y} 10837then : 10838 printf %s "(cached) " >&6 10839else case e in #( 10840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10841/* end confdefs.h. */ 10842int i; 10843int 10844main (void) 10845{ 10846 10847 ; 10848 return 0; 10849} 10850_ACEOF 10851if ac_fn_c_try_link "$LINENO" 10852then : 10853 eval $cacheid=yes 10854else case e in #( 10855 e) eval $cacheid=no ;; 10856esac 10857fi 10858rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10859 conftest$ac_exeext conftest.$ac_ext ;; 10860esac 10861fi 10862 10863 10864 CFLAGS="$xorg_testset_save_CFLAGS" 10865 10866 eval supported=\$$cacheid 10867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10868printf "%s\n" "$supported" >&6; } 10869 if test "$supported" = "yes" ; then 10870 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10871 found="yes" 10872 fi 10873 fi 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889xorg_testset_save_CFLAGS="$CFLAGS" 10890 10891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10894printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10895if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10896then : 10897 printf %s "(cached) " >&6 10898else case e in #( 10899 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10900/* end confdefs.h. */ 10901int i; 10902_ACEOF 10903if ac_fn_c_try_compile "$LINENO" 10904then : 10905 xorg_cv_cc_flag_unknown_warning_option=yes 10906else case e in #( 10907 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10908esac 10909fi 10910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10911esac 10912fi 10913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10914printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10916 CFLAGS="$xorg_testset_save_CFLAGS" 10917fi 10918 10919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10922 fi 10923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10925printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10926if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10927then : 10928 printf %s "(cached) " >&6 10929else case e in #( 10930 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10931/* end confdefs.h. */ 10932int i; 10933_ACEOF 10934if ac_fn_c_try_compile "$LINENO" 10935then : 10936 xorg_cv_cc_flag_unused_command_line_argument=yes 10937else case e in #( 10938 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10939esac 10940fi 10941rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10942esac 10943fi 10944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10945printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10947 CFLAGS="$xorg_testset_save_CFLAGS" 10948fi 10949 10950found="no" 10951 10952 if test $found = "no" ; then 10953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10955 fi 10956 10957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10959 fi 10960 10961 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10962 10963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10964printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10965 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10966 if eval test \${$cacheid+y} 10967then : 10968 printf %s "(cached) " >&6 10969else case e in #( 10970 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10971/* end confdefs.h. */ 10972int i; 10973int 10974main (void) 10975{ 10976 10977 ; 10978 return 0; 10979} 10980_ACEOF 10981if ac_fn_c_try_link "$LINENO" 10982then : 10983 eval $cacheid=yes 10984else case e in #( 10985 e) eval $cacheid=no ;; 10986esac 10987fi 10988rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10989 conftest$ac_exeext conftest.$ac_ext ;; 10990esac 10991fi 10992 10993 10994 CFLAGS="$xorg_testset_save_CFLAGS" 10995 10996 eval supported=\$$cacheid 10997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10998printf "%s\n" "$supported" >&6; } 10999 if test "$supported" = "yes" ; then 11000 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 11001 found="yes" 11002 fi 11003 fi 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019xorg_testset_save_CFLAGS="$CFLAGS" 11020 11021if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11024printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11025if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11026then : 11027 printf %s "(cached) " >&6 11028else case e in #( 11029 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11030/* end confdefs.h. */ 11031int i; 11032_ACEOF 11033if ac_fn_c_try_compile "$LINENO" 11034then : 11035 xorg_cv_cc_flag_unknown_warning_option=yes 11036else case e in #( 11037 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11038esac 11039fi 11040rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11041esac 11042fi 11043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11044printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11046 CFLAGS="$xorg_testset_save_CFLAGS" 11047fi 11048 11049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11052 fi 11053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11055printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11056if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11057then : 11058 printf %s "(cached) " >&6 11059else case e in #( 11060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11061/* end confdefs.h. */ 11062int i; 11063_ACEOF 11064if ac_fn_c_try_compile "$LINENO" 11065then : 11066 xorg_cv_cc_flag_unused_command_line_argument=yes 11067else case e in #( 11068 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11069esac 11070fi 11071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11072esac 11073fi 11074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11075printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11076 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11077 CFLAGS="$xorg_testset_save_CFLAGS" 11078fi 11079 11080found="no" 11081 11082 if test $found = "no" ; then 11083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11085 fi 11086 11087 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11089 fi 11090 11091 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 11092 11093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 11094printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 11095 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 11096 if eval test \${$cacheid+y} 11097then : 11098 printf %s "(cached) " >&6 11099else case e in #( 11100 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11101/* end confdefs.h. */ 11102int i; 11103int 11104main (void) 11105{ 11106 11107 ; 11108 return 0; 11109} 11110_ACEOF 11111if ac_fn_c_try_link "$LINENO" 11112then : 11113 eval $cacheid=yes 11114else case e in #( 11115 e) eval $cacheid=no ;; 11116esac 11117fi 11118rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11119 conftest$ac_exeext conftest.$ac_ext ;; 11120esac 11121fi 11122 11123 11124 CFLAGS="$xorg_testset_save_CFLAGS" 11125 11126 eval supported=\$$cacheid 11127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11128printf "%s\n" "$supported" >&6; } 11129 if test "$supported" = "yes" ; then 11130 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 11131 found="yes" 11132 fi 11133 fi 11134 11135 11136fi 11137 11138 11139 11140 11141 11142 11143 11144 CWARNFLAGS="$BASE_CFLAGS" 11145 if test "x$GCC" = xyes ; then 11146 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 11147 fi 11148 11149 11150 11151 11152 11153 11154 11155 11156# Check whether --enable-strict-compilation was given. 11157if test ${enable_strict_compilation+y} 11158then : 11159 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11160else case e in #( 11161 e) STRICT_COMPILE=no ;; 11162esac 11163fi 11164 11165 11166 11167 11168 11169 11170STRICT_CFLAGS="" 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184xorg_testset_save_CFLAGS="$CFLAGS" 11185 11186if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11189printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11190if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11191then : 11192 printf %s "(cached) " >&6 11193else case e in #( 11194 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11195/* end confdefs.h. */ 11196int i; 11197_ACEOF 11198if ac_fn_c_try_compile "$LINENO" 11199then : 11200 xorg_cv_cc_flag_unknown_warning_option=yes 11201else case e in #( 11202 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11203esac 11204fi 11205rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11206esac 11207fi 11208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11209printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11211 CFLAGS="$xorg_testset_save_CFLAGS" 11212fi 11213 11214if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11217 fi 11218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11220printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11221if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11222then : 11223 printf %s "(cached) " >&6 11224else case e in #( 11225 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11226/* end confdefs.h. */ 11227int i; 11228_ACEOF 11229if ac_fn_c_try_compile "$LINENO" 11230then : 11231 xorg_cv_cc_flag_unused_command_line_argument=yes 11232else case e in #( 11233 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11234esac 11235fi 11236rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11237esac 11238fi 11239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11240printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11241 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11242 CFLAGS="$xorg_testset_save_CFLAGS" 11243fi 11244 11245found="no" 11246 11247 if test $found = "no" ; then 11248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11250 fi 11251 11252 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11254 fi 11255 11256 CFLAGS="$CFLAGS -pedantic" 11257 11258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11259printf %s "checking if $CC supports -pedantic... " >&6; } 11260 cacheid=xorg_cv_cc_flag__pedantic 11261 if eval test \${$cacheid+y} 11262then : 11263 printf %s "(cached) " >&6 11264else case e in #( 11265 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11266/* end confdefs.h. */ 11267int i; 11268int 11269main (void) 11270{ 11271 11272 ; 11273 return 0; 11274} 11275_ACEOF 11276if ac_fn_c_try_link "$LINENO" 11277then : 11278 eval $cacheid=yes 11279else case e in #( 11280 e) eval $cacheid=no ;; 11281esac 11282fi 11283rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11284 conftest$ac_exeext conftest.$ac_ext ;; 11285esac 11286fi 11287 11288 11289 CFLAGS="$xorg_testset_save_CFLAGS" 11290 11291 eval supported=\$$cacheid 11292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11293printf "%s\n" "$supported" >&6; } 11294 if test "$supported" = "yes" ; then 11295 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11296 found="yes" 11297 fi 11298 fi 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314xorg_testset_save_CFLAGS="$CFLAGS" 11315 11316if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11319printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11320if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11321then : 11322 printf %s "(cached) " >&6 11323else case e in #( 11324 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11325/* end confdefs.h. */ 11326int i; 11327_ACEOF 11328if ac_fn_c_try_compile "$LINENO" 11329then : 11330 xorg_cv_cc_flag_unknown_warning_option=yes 11331else case e in #( 11332 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11333esac 11334fi 11335rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11336esac 11337fi 11338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11339printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11341 CFLAGS="$xorg_testset_save_CFLAGS" 11342fi 11343 11344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11347 fi 11348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11350printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11351if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11352then : 11353 printf %s "(cached) " >&6 11354else case e in #( 11355 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11356/* end confdefs.h. */ 11357int i; 11358_ACEOF 11359if ac_fn_c_try_compile "$LINENO" 11360then : 11361 xorg_cv_cc_flag_unused_command_line_argument=yes 11362else case e in #( 11363 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11364esac 11365fi 11366rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11367esac 11368fi 11369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11370printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11371 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11372 CFLAGS="$xorg_testset_save_CFLAGS" 11373fi 11374 11375found="no" 11376 11377 if test $found = "no" ; then 11378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11380 fi 11381 11382 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11384 fi 11385 11386 CFLAGS="$CFLAGS -Werror" 11387 11388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11389printf %s "checking if $CC supports -Werror... " >&6; } 11390 cacheid=xorg_cv_cc_flag__Werror 11391 if eval test \${$cacheid+y} 11392then : 11393 printf %s "(cached) " >&6 11394else case e in #( 11395 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11396/* end confdefs.h. */ 11397int i; 11398int 11399main (void) 11400{ 11401 11402 ; 11403 return 0; 11404} 11405_ACEOF 11406if ac_fn_c_try_link "$LINENO" 11407then : 11408 eval $cacheid=yes 11409else case e in #( 11410 e) eval $cacheid=no ;; 11411esac 11412fi 11413rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11414 conftest$ac_exeext conftest.$ac_ext ;; 11415esac 11416fi 11417 11418 11419 CFLAGS="$xorg_testset_save_CFLAGS" 11420 11421 eval supported=\$$cacheid 11422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11423printf "%s\n" "$supported" >&6; } 11424 if test "$supported" = "yes" ; then 11425 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11426 found="yes" 11427 fi 11428 fi 11429 11430 if test $found = "no" ; then 11431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11433 fi 11434 11435 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11437 fi 11438 11439 CFLAGS="$CFLAGS -errwarn" 11440 11441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11442printf %s "checking if $CC supports -errwarn... " >&6; } 11443 cacheid=xorg_cv_cc_flag__errwarn 11444 if eval test \${$cacheid+y} 11445then : 11446 printf %s "(cached) " >&6 11447else case e in #( 11448 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11449/* end confdefs.h. */ 11450int i; 11451int 11452main (void) 11453{ 11454 11455 ; 11456 return 0; 11457} 11458_ACEOF 11459if ac_fn_c_try_link "$LINENO" 11460then : 11461 eval $cacheid=yes 11462else case e in #( 11463 e) eval $cacheid=no ;; 11464esac 11465fi 11466rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11467 conftest$ac_exeext conftest.$ac_ext ;; 11468esac 11469fi 11470 11471 11472 CFLAGS="$xorg_testset_save_CFLAGS" 11473 11474 eval supported=\$$cacheid 11475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11476printf "%s\n" "$supported" >&6; } 11477 if test "$supported" = "yes" ; then 11478 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11479 found="yes" 11480 fi 11481 fi 11482 11483 11484 11485# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11486# activate it with -Werror, so we add it here explicitly. 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500xorg_testset_save_CFLAGS="$CFLAGS" 11501 11502if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11505printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11506if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11507then : 11508 printf %s "(cached) " >&6 11509else case e in #( 11510 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11511/* end confdefs.h. */ 11512int i; 11513_ACEOF 11514if ac_fn_c_try_compile "$LINENO" 11515then : 11516 xorg_cv_cc_flag_unknown_warning_option=yes 11517else case e in #( 11518 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11519esac 11520fi 11521rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11522esac 11523fi 11524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11525printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11526 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11527 CFLAGS="$xorg_testset_save_CFLAGS" 11528fi 11529 11530if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11533 fi 11534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11536printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11537if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11538then : 11539 printf %s "(cached) " >&6 11540else case e in #( 11541 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11542/* end confdefs.h. */ 11543int i; 11544_ACEOF 11545if ac_fn_c_try_compile "$LINENO" 11546then : 11547 xorg_cv_cc_flag_unused_command_line_argument=yes 11548else case e in #( 11549 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11550esac 11551fi 11552rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11553esac 11554fi 11555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11556printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11557 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11558 CFLAGS="$xorg_testset_save_CFLAGS" 11559fi 11560 11561found="no" 11562 11563 if test $found = "no" ; then 11564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11566 fi 11567 11568 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11570 fi 11571 11572 CFLAGS="$CFLAGS -Werror=attributes" 11573 11574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11575printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11576 cacheid=xorg_cv_cc_flag__Werror_attributes 11577 if eval test \${$cacheid+y} 11578then : 11579 printf %s "(cached) " >&6 11580else case e in #( 11581 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11582/* end confdefs.h. */ 11583int i; 11584int 11585main (void) 11586{ 11587 11588 ; 11589 return 0; 11590} 11591_ACEOF 11592if ac_fn_c_try_link "$LINENO" 11593then : 11594 eval $cacheid=yes 11595else case e in #( 11596 e) eval $cacheid=no ;; 11597esac 11598fi 11599rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11600 conftest$ac_exeext conftest.$ac_ext ;; 11601esac 11602fi 11603 11604 11605 CFLAGS="$xorg_testset_save_CFLAGS" 11606 11607 eval supported=\$$cacheid 11608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11609printf "%s\n" "$supported" >&6; } 11610 if test "$supported" = "yes" ; then 11611 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11612 found="yes" 11613 fi 11614 fi 11615 11616 11617 11618if test "x$STRICT_COMPILE" = "xyes"; then 11619 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11620 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11621fi 11622 11623 11624 11625 11626 11627 11628 11629 11630cat >>confdefs.h <<_ACEOF 11631#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11632_ACEOF 11633 11634 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11635 if test "x$PVM" = "x"; then 11636 PVM="0" 11637 fi 11638 11639printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11640 11641 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11642 if test "x$PVP" = "x"; then 11643 PVP="0" 11644 fi 11645 11646printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11647 11648 11649 11650CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11651mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11652|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11653touch \$(top_srcdir)/ChangeLog; \ 11654echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11655 11656 11657 11658 11659macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11660INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11661mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11662|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11663touch \$(top_srcdir)/INSTALL; \ 11664echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11665 11666 11667 11668 11669 11670 11671case $host_os in 11672 solaris*) 11673 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11674 # check for a man page file found in later versions that use 11675 # traditional section numbers instead 11676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11677printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11678if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11679then : 11680 printf %s "(cached) " >&6 11681else case e in #( 11682 e) test "$cross_compiling" = yes && 11683 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11684if test -r "/usr/share/man/man7/attributes.7"; then 11685 ac_cv_file__usr_share_man_man7_attributes_7=yes 11686else 11687 ac_cv_file__usr_share_man_man7_attributes_7=no 11688fi ;; 11689esac 11690fi 11691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11692printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11693if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11694then : 11695 SYSV_MAN_SECTIONS=false 11696else case e in #( 11697 e) SYSV_MAN_SECTIONS=true ;; 11698esac 11699fi 11700 11701 ;; 11702 *) SYSV_MAN_SECTIONS=false ;; 11703esac 11704 11705if test x$APP_MAN_SUFFIX = x ; then 11706 APP_MAN_SUFFIX=1 11707fi 11708if test x$APP_MAN_DIR = x ; then 11709 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11710fi 11711 11712if test x$LIB_MAN_SUFFIX = x ; then 11713 LIB_MAN_SUFFIX=3 11714fi 11715if test x$LIB_MAN_DIR = x ; then 11716 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11717fi 11718 11719if test x$FILE_MAN_SUFFIX = x ; then 11720 case $SYSV_MAN_SECTIONS in 11721 true) FILE_MAN_SUFFIX=4 ;; 11722 *) FILE_MAN_SUFFIX=5 ;; 11723 esac 11724fi 11725if test x$FILE_MAN_DIR = x ; then 11726 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11727fi 11728 11729if test x$MISC_MAN_SUFFIX = x ; then 11730 case $SYSV_MAN_SECTIONS in 11731 true) MISC_MAN_SUFFIX=5 ;; 11732 *) MISC_MAN_SUFFIX=7 ;; 11733 esac 11734fi 11735if test x$MISC_MAN_DIR = x ; then 11736 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11737fi 11738 11739if test x$DRIVER_MAN_SUFFIX = x ; then 11740 case $SYSV_MAN_SECTIONS in 11741 true) DRIVER_MAN_SUFFIX=7 ;; 11742 *) DRIVER_MAN_SUFFIX=4 ;; 11743 esac 11744fi 11745if test x$DRIVER_MAN_DIR = x ; then 11746 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11747fi 11748 11749if test x$ADMIN_MAN_SUFFIX = x ; then 11750 case $SYSV_MAN_SECTIONS in 11751 true) ADMIN_MAN_SUFFIX=1m ;; 11752 *) ADMIN_MAN_SUFFIX=8 ;; 11753 esac 11754fi 11755if test x$ADMIN_MAN_DIR = x ; then 11756 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11757fi 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773XORG_MAN_PAGE="X Version 11" 11774 11775MAN_SUBSTS="\ 11776 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11777 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11778 -e 's|__xservername__|Xorg|g' \ 11779 -e 's|__xconfigfile__|xorg.conf|g' \ 11780 -e 's|__projectroot__|\$(prefix)|g' \ 11781 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11782 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11783 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11784 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11785 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11786 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11787 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11788 11789 11790 11791 11792AM_DEFAULT_VERBOSITY=0 11793 11794 11795 11796# Checks for header files. 11797ac_fn_c_check_header_compile "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default" 11798if test "x$ac_cv_header_net_errno_h" = xyes 11799then : 11800 printf "%s\n" "#define HAVE_NET_ERRNO_H 1" >>confdefs.h 11801 11802fi 11803 11804 11805# Checks for typedefs, structures, and compiler characteristics. 11806# Check whether --enable-largefile was given. 11807if test ${enable_largefile+y} 11808then : 11809 enableval=$enable_largefile; 11810fi 11811if test "$enable_largefile,$enable_year2038" != no,no 11812then : 11813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 11814printf %s "checking for $CC option to enable large file support... " >&6; } 11815if test ${ac_cv_sys_largefile_opts+y} 11816then : 11817 printf %s "(cached) " >&6 11818else case e in #( 11819 e) ac_save_CC="$CC" 11820 ac_opt_found=no 11821 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 11822 if test x"$ac_opt" != x"none needed" 11823then : 11824 CC="$ac_save_CC $ac_opt" 11825fi 11826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11827/* end confdefs.h. */ 11828#include <sys/types.h> 11829#ifndef FTYPE 11830# define FTYPE off_t 11831#endif 11832 /* Check that FTYPE can represent 2**63 - 1 correctly. 11833 We can't simply define LARGE_FTYPE to be 9223372036854775807, 11834 since some C++ compilers masquerading as C compilers 11835 incorrectly reject 9223372036854775807. */ 11836#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 11837 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 11838 && LARGE_FTYPE % 2147483647 == 1) 11839 ? 1 : -1]; 11840int 11841main (void) 11842{ 11843 11844 ; 11845 return 0; 11846} 11847_ACEOF 11848if ac_fn_c_try_compile "$LINENO" 11849then : 11850 if test x"$ac_opt" = x"none needed" 11851then : 11852 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 11853 CC="$CC -DFTYPE=ino_t" 11854 if ac_fn_c_try_compile "$LINENO" 11855then : 11856 11857else case e in #( 11858 e) CC="$CC -D_FILE_OFFSET_BITS=64" 11859 if ac_fn_c_try_compile "$LINENO" 11860then : 11861 ac_opt='-D_FILE_OFFSET_BITS=64' 11862fi 11863rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 11864esac 11865fi 11866rm -f core conftest.err conftest.$ac_objext conftest.beam 11867fi 11868 ac_cv_sys_largefile_opts=$ac_opt 11869 ac_opt_found=yes 11870fi 11871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11872 test $ac_opt_found = no || break 11873 done 11874 CC="$ac_save_CC" 11875 11876 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 11877esac 11878fi 11879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 11880printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 11881 11882ac_have_largefile=yes 11883case $ac_cv_sys_largefile_opts in #( 11884 "none needed") : 11885 ;; #( 11886 "supported through gnulib") : 11887 ;; #( 11888 "support not detected") : 11889 ac_have_largefile=no ;; #( 11890 "-D_FILE_OFFSET_BITS=64") : 11891 11892printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 11893 ;; #( 11894 "-D_LARGE_FILES=1") : 11895 11896printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 11897 ;; #( 11898 "-n32") : 11899 CC="$CC -n32" ;; #( 11900 *) : 11901 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 11902esac 11903 11904if test "$enable_year2038" != no 11905then : 11906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 11907printf %s "checking for $CC option for timestamps after 2038... " >&6; } 11908if test ${ac_cv_sys_year2038_opts+y} 11909then : 11910 printf %s "(cached) " >&6 11911else case e in #( 11912 e) ac_save_CPPFLAGS="$CPPFLAGS" 11913 ac_opt_found=no 11914 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do 11915 if test x"$ac_opt" != x"none needed" 11916then : 11917 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 11918fi 11919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11920/* end confdefs.h. */ 11921 11922 #include <time.h> 11923 /* Check that time_t can represent 2**32 - 1 correctly. */ 11924 #define LARGE_TIME_T \\ 11925 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 11926 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 11927 && LARGE_TIME_T % 65537 == 0) 11928 ? 1 : -1]; 11929 11930int 11931main (void) 11932{ 11933 11934 ; 11935 return 0; 11936} 11937_ACEOF 11938if ac_fn_c_try_compile "$LINENO" 11939then : 11940 ac_cv_sys_year2038_opts="$ac_opt" 11941 ac_opt_found=yes 11942fi 11943rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11944 test $ac_opt_found = no || break 11945 done 11946 CPPFLAGS="$ac_save_CPPFLAGS" 11947 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 11948esac 11949fi 11950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 11951printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 11952 11953ac_have_year2038=yes 11954case $ac_cv_sys_year2038_opts in #( 11955 "none needed") : 11956 ;; #( 11957 "support not detected") : 11958 ac_have_year2038=no ;; #( 11959 "-D_TIME_BITS=64") : 11960 11961printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 11962 ;; #( 11963 "-D__MINGW_USE_VC2005_COMPAT") : 11964 11965printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 11966 ;; #( 11967 "-U_USE_32_BIT_TIME_T"*) : 11968 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11969printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11970as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 11971will stop working after mid-January 2038. Remove 11972_USE_32BIT_TIME_T from the compiler flags. 11973See 'config.log' for more details" "$LINENO" 5; } ;; #( 11974 *) : 11975 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 11976esac 11977 11978fi 11979 11980fi 11981 11982# Checks for pkg-config packages 11983 11984pkg_failed=no 11985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XAUTH" >&5 11986printf %s "checking for XAUTH... " >&6; } 11987 11988if test -n "$XAUTH_CFLAGS"; then 11989 pkg_cv_XAUTH_CFLAGS="$XAUTH_CFLAGS" 11990 elif test -n "$PKG_CONFIG"; then 11991 if test -n "$PKG_CONFIG" && \ 11992 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5 11993 ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5 11994 ac_status=$? 11995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11996 test $ac_status = 0; }; then 11997 pkg_cv_XAUTH_CFLAGS=`$PKG_CONFIG --cflags "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null` 11998 test "x$?" != "x0" && pkg_failed=yes 11999else 12000 pkg_failed=yes 12001fi 12002 else 12003 pkg_failed=untried 12004fi 12005if test -n "$XAUTH_LIBS"; then 12006 pkg_cv_XAUTH_LIBS="$XAUTH_LIBS" 12007 elif test -n "$PKG_CONFIG"; then 12008 if test -n "$PKG_CONFIG" && \ 12009 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu xproto >= 7.0.17\""; } >&5 12010 ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu xproto >= 7.0.17") 2>&5 12011 ac_status=$? 12012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12013 test $ac_status = 0; }; then 12014 pkg_cv_XAUTH_LIBS=`$PKG_CONFIG --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>/dev/null` 12015 test "x$?" != "x0" && pkg_failed=yes 12016else 12017 pkg_failed=yes 12018fi 12019 else 12020 pkg_failed=untried 12021fi 12022 12023 12024 12025if test $pkg_failed = yes; then 12026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12027printf "%s\n" "no" >&6; } 12028 12029if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12030 _pkg_short_errors_supported=yes 12031else 12032 _pkg_short_errors_supported=no 12033fi 12034 if test $_pkg_short_errors_supported = yes; then 12035 XAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1` 12036 else 12037 XAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xau xext xmuu xproto >= 7.0.17" 2>&1` 12038 fi 12039 # Put the nasty error message in config.log where it belongs 12040 echo "$XAUTH_PKG_ERRORS" >&5 12041 12042 as_fn_error $? "Package requirements (x11 xau xext xmuu xproto >= 7.0.17) were not met: 12043 12044$XAUTH_PKG_ERRORS 12045 12046Consider adjusting the PKG_CONFIG_PATH environment variable if you 12047installed software in a non-standard prefix. 12048 12049Alternatively, you may set the environment variables XAUTH_CFLAGS 12050and XAUTH_LIBS to avoid the need to call pkg-config. 12051See the pkg-config man page for more details." "$LINENO" 5 12052elif test $pkg_failed = untried; then 12053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12054printf "%s\n" "no" >&6; } 12055 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 12056printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 12057as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12058is in your PATH or set the PKG_CONFIG environment variable to the full 12059path to pkg-config. 12060 12061Alternatively, you may set the environment variables XAUTH_CFLAGS 12062and XAUTH_LIBS to avoid the need to call pkg-config. 12063See the pkg-config man page for more details. 12064 12065To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12066See 'config.log' for more details" "$LINENO" 5; } 12067else 12068 XAUTH_CFLAGS=$pkg_cv_XAUTH_CFLAGS 12069 XAUTH_LIBS=$pkg_cv_XAUTH_LIBS 12070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12071printf "%s\n" "yes" >&6; } 12072 12073fi 12074 12075# Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro 12076# was not expanded, since xauth with no address support is rather broken. 12077# 12078# If you're seeing an error here, be sure you installed the lib/xtrans module 12079# first and if it's not in the default location, that you set the ACLOCAL 12080# environment variable to find it, such as: 12081# ACLOCAL="aclocal -I ${PREFIX}/share/aclocal" 12082 12083 12084# Transport selection macro from xtrans.m4 12085# Needed to set *CONN defines for gethost.c & parsedpy.c 12086 12087 12088 case $host_os in 12089 mingw*) unixdef="no" ;; 12090 *) unixdef="yes" ;; 12091 esac 12092 # Check whether --enable-unix-transport was given. 12093if test ${enable_unix_transport+y} 12094then : 12095 enableval=$enable_unix_transport; UNIXCONN=$enableval 12096else case e in #( 12097 e) UNIXCONN=$unixdef ;; 12098esac 12099fi 12100 12101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 12102printf %s "checking if Xtrans should support UNIX socket connections... " >&6; } 12103 if test "$UNIXCONN" = "yes"; then 12104 12105printf "%s\n" "#define UNIXCONN 1" >>confdefs.h 12106 12107 fi 12108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 12109printf "%s\n" "$UNIXCONN" >&6; } 12110 # Check whether --enable-tcp-transport was given. 12111if test ${enable_tcp_transport+y} 12112then : 12113 enableval=$enable_tcp_transport; TCPCONN=$enableval 12114else case e in #( 12115 e) TCPCONN=yes ;; 12116esac 12117fi 12118 12119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 12120printf %s "checking if Xtrans should support TCP socket connections... " >&6; } 12121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 12122printf "%s\n" "$TCPCONN" >&6; } 12123 if test "$TCPCONN" = "yes"; then 12124 12125printf "%s\n" "#define TCPCONN 1" >>confdefs.h 12126 12127 12128 # SVR4 hides these in libraries other than libc 12129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 12130printf %s "checking for library containing socket... " >&6; } 12131if test ${ac_cv_search_socket+y} 12132then : 12133 printf %s "(cached) " >&6 12134else case e in #( 12135 e) ac_func_search_save_LIBS=$LIBS 12136cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12137/* end confdefs.h. */ 12138 12139/* Override any GCC internal prototype to avoid an error. 12140 Use char because int might match the return type of a GCC 12141 builtin and then its argument prototype would still apply. 12142 The 'extern "C"' is for builds by C++ compilers; 12143 although this is not generally supported in C code supporting it here 12144 has little cost and some practical benefit (sr 110532). */ 12145#ifdef __cplusplus 12146extern "C" 12147#endif 12148char socket (void); 12149int 12150main (void) 12151{ 12152return socket (); 12153 ; 12154 return 0; 12155} 12156_ACEOF 12157for ac_lib in '' socket 12158do 12159 if test -z "$ac_lib"; then 12160 ac_res="none required" 12161 else 12162 ac_res=-l$ac_lib 12163 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12164 fi 12165 if ac_fn_c_try_link "$LINENO" 12166then : 12167 ac_cv_search_socket=$ac_res 12168fi 12169rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12170 conftest$ac_exeext 12171 if test ${ac_cv_search_socket+y} 12172then : 12173 break 12174fi 12175done 12176if test ${ac_cv_search_socket+y} 12177then : 12178 12179else case e in #( 12180 e) ac_cv_search_socket=no ;; 12181esac 12182fi 12183rm conftest.$ac_ext 12184LIBS=$ac_func_search_save_LIBS ;; 12185esac 12186fi 12187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 12188printf "%s\n" "$ac_cv_search_socket" >&6; } 12189ac_res=$ac_cv_search_socket 12190if test "$ac_res" != no 12191then : 12192 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12193 12194fi 12195 12196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 12197printf %s "checking for library containing gethostbyname... " >&6; } 12198if test ${ac_cv_search_gethostbyname+y} 12199then : 12200 printf %s "(cached) " >&6 12201else case e in #( 12202 e) ac_func_search_save_LIBS=$LIBS 12203cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12204/* end confdefs.h. */ 12205 12206/* Override any GCC internal prototype to avoid an error. 12207 Use char because int might match the return type of a GCC 12208 builtin and then its argument prototype would still apply. 12209 The 'extern "C"' is for builds by C++ compilers; 12210 although this is not generally supported in C code supporting it here 12211 has little cost and some practical benefit (sr 110532). */ 12212#ifdef __cplusplus 12213extern "C" 12214#endif 12215char gethostbyname (void); 12216int 12217main (void) 12218{ 12219return gethostbyname (); 12220 ; 12221 return 0; 12222} 12223_ACEOF 12224for ac_lib in '' nsl 12225do 12226 if test -z "$ac_lib"; then 12227 ac_res="none required" 12228 else 12229 ac_res=-l$ac_lib 12230 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12231 fi 12232 if ac_fn_c_try_link "$LINENO" 12233then : 12234 ac_cv_search_gethostbyname=$ac_res 12235fi 12236rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12237 conftest$ac_exeext 12238 if test ${ac_cv_search_gethostbyname+y} 12239then : 12240 break 12241fi 12242done 12243if test ${ac_cv_search_gethostbyname+y} 12244then : 12245 12246else case e in #( 12247 e) ac_cv_search_gethostbyname=no ;; 12248esac 12249fi 12250rm conftest.$ac_ext 12251LIBS=$ac_func_search_save_LIBS ;; 12252esac 12253fi 12254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 12255printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } 12256ac_res=$ac_cv_search_gethostbyname 12257if test "$ac_res" != no 12258then : 12259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12260 12261fi 12262 12263 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 12264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 12265printf %s "checking for main in -lws2_32... " >&6; } 12266if test ${ac_cv_lib_ws2_32_main+y} 12267then : 12268 printf %s "(cached) " >&6 12269else case e in #( 12270 e) ac_check_lib_save_LIBS=$LIBS 12271LIBS="-lws2_32 $LIBS" 12272cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12273/* end confdefs.h. */ 12274 12275 12276int 12277main (void) 12278{ 12279return main (); 12280 ; 12281 return 0; 12282} 12283_ACEOF 12284if ac_fn_c_try_link "$LINENO" 12285then : 12286 ac_cv_lib_ws2_32_main=yes 12287else case e in #( 12288 e) ac_cv_lib_ws2_32_main=no ;; 12289esac 12290fi 12291rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12292 conftest$ac_exeext conftest.$ac_ext 12293LIBS=$ac_check_lib_save_LIBS ;; 12294esac 12295fi 12296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 12297printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } 12298if test "x$ac_cv_lib_ws2_32_main" = xyes 12299then : 12300 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h 12301 12302 LIBS="-lws2_32 $LIBS" 12303 12304fi 12305 12306 fi 12307 12308 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 12309 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 12310if test "x$ac_cv_func_getaddrinfo" = xyes 12311then : 12312 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 12313 12314fi 12315ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 12316if test "x$ac_cv_func_inet_ntop" = xyes 12317then : 12318 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 12319 12320fi 12321 12322 12323 # Check whether --enable-ipv6 was given. 12324if test ${enable_ipv6+y} 12325then : 12326 enableval=$enable_ipv6; IPV6CONN=$enableval 12327else case e in #( 12328 e) IPV6CONN=$ac_cv_func_getaddrinfo ;; 12329esac 12330fi 12331 12332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 12333printf %s "checking if IPv6 support should be built... " >&6; } 12334 if test "$IPV6CONN" = "yes"; then 12335 12336printf "%s\n" "#define IPv6 1" >>confdefs.h 12337 12338 fi 12339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 12340printf "%s\n" "$IPV6CONN" >&6; } 12341 12342 # 4.3BSD-Reno added a new member to struct sockaddr_in 12343 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 12344#include <sys/types.h> 12345#include <sys/socket.h> 12346#include <netinet/in.h> 12347 12348" 12349if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes 12350then : 12351 12352printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h 12353 12354fi 12355 12356 12357 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 12358 # and added a type defined to be large enough to hold any sockaddr format. 12359 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 12360$ac_includes_default 12361#include <sys/socket.h> 12362 12363" 12364if test "x$ac_cv_type_socklen_t" = xyes 12365then : 12366 12367printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h 12368 12369 12370fi 12371ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " 12372$ac_includes_default 12373#include <sys/socket.h> 12374 12375" 12376if test "x$ac_cv_type_struct_sockaddr_storage" = xyes 12377then : 12378 12379printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 12380 12381 12382fi 12383 12384 12385 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 12386 # _XOPEN_SOURCE to get it (such as on Solaris) 12387 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 12388$ac_includes_default 12389#include <sys/socket.h> 12390 12391" 12392if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 12393then : 12394 12395fi 12396 12397 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 12398 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 12399 unset ac_cv_member_struct_msghdr_msg_control 12400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 12401printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 12402 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 12403#define _XOPEN_SOURCE 600 12404$ac_includes_default 12405#include <sys/socket.h> 12406 12407" 12408if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 12409then : 12410 12411printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h 12412 12413 12414fi 12415 12416 fi 12417 # If that didn't work, fall back to XPG5/UNIX98 with C89 12418 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 12419 unset ac_cv_member_struct_msghdr_msg_control 12420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 12421printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 12422 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 12423#define _XOPEN_SOURCE 500 12424$ac_includes_default 12425#include <sys/socket.h> 12426 12427" 12428if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 12429then : 12430 12431printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 12432 12433 12434fi 12435 12436 fi 12437 12438 12439 12440 fi 12441 case $host_os in 12442 solaris*) localdef="yes" ;; 12443 *) localdef="no" ;; 12444 esac 12445 # Check whether --enable-local-transport was given. 12446if test ${enable_local_transport+y} 12447then : 12448 enableval=$enable_local_transport; LOCALCONN=$enableval 12449else case e in #( 12450 e) LOCALCONN=$localdef ;; 12451esac 12452fi 12453 12454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 12455printf %s "checking if Xtrans should support os-specific local connections... " >&6; } 12456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 12457printf "%s\n" "$LOCALCONN" >&6; } 12458 if test "$LOCALCONN" = "yes"; then 12459 12460printf "%s\n" "#define LOCALCONN 1" >>confdefs.h 12461 12462 fi 12463 12464 # Other functions Xtrans may need 12465 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 12466if test "x$ac_cv_func_strcasecmp" = xyes 12467then : 12468 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 12469 12470fi 12471ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 12472if test "x$ac_cv_func_strlcpy" = xyes 12473then : 12474 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 12475 12476fi 12477 12478 12479 12480 12481# Checks for library functions. 12482ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 12483if test "x$ac_cv_func_getaddrinfo" = xyes 12484then : 12485 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 12486 12487fi 12488ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 12489if test "x$ac_cv_func_inet_ntop" = xyes 12490then : 12491 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 12492 12493fi 12494ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 12495if test "x$ac_cv_func_reallocarray" = xyes 12496then : 12497 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 12498 12499fi 12500ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 12501if test "x$ac_cv_func_strlcpy" = xyes 12502then : 12503 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 12504 12505fi 12506 12507 12508 12509 12510 12511 12512 12513# Check whether --with-lint was given. 12514if test ${with_lint+y} 12515then : 12516 withval=$with_lint; use_lint=$withval 12517else case e in #( 12518 e) use_lint=no ;; 12519esac 12520fi 12521 12522 12523# Obtain platform specific info like program name and options 12524# The lint program on FreeBSD and NetBSD is different from the one on Solaris 12525case $host_os in 12526 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 12527 lint_name=splint 12528 lint_options="-badflag" 12529 ;; 12530 *freebsd* | *netbsd*) 12531 lint_name=lint 12532 lint_options="-u -b" 12533 ;; 12534 *solaris*) 12535 lint_name=lint 12536 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 12537 ;; 12538esac 12539 12540# Test for the presence of the program (either guessed by the code or spelled out by the user) 12541if test "x$use_lint" = x"yes" ; then 12542 # Extract the first word of "$lint_name", so it can be a program name with args. 12543set dummy $lint_name; ac_word=$2 12544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12545printf %s "checking for $ac_word... " >&6; } 12546if test ${ac_cv_path_LINT+y} 12547then : 12548 printf %s "(cached) " >&6 12549else case e in #( 12550 e) case $LINT in 12551 [\\/]* | ?:[\\/]*) 12552 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 12553 ;; 12554 *) 12555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12556for as_dir in $PATH 12557do 12558 IFS=$as_save_IFS 12559 case $as_dir in #((( 12560 '') as_dir=./ ;; 12561 */) ;; 12562 *) as_dir=$as_dir/ ;; 12563 esac 12564 for ac_exec_ext in '' $ac_executable_extensions; do 12565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12566 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 12567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12568 break 2 12569 fi 12570done 12571 done 12572IFS=$as_save_IFS 12573 12574 ;; 12575esac ;; 12576esac 12577fi 12578LINT=$ac_cv_path_LINT 12579if test -n "$LINT"; then 12580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 12581printf "%s\n" "$LINT" >&6; } 12582else 12583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12584printf "%s\n" "no" >&6; } 12585fi 12586 12587 12588 if test "x$LINT" = "x"; then 12589 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 12590 fi 12591elif test "x$use_lint" = x"no" ; then 12592 if test "x$LINT" != "x"; then 12593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 12594printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 12595 fi 12596else 12597 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 12598fi 12599 12600# User supplied flags override default flags 12601if test "x$LINT_FLAGS" != "x"; then 12602 lint_options=$LINT_FLAGS 12603fi 12604 12605LINT_FLAGS=$lint_options 12606 12607 if test "x$LINT" != x; then 12608 LINT_TRUE= 12609 LINT_FALSE='#' 12610else 12611 LINT_TRUE='#' 12612 LINT_FALSE= 12613fi 12614 12615 12616 12617 12618ac_config_files="$ac_config_files Makefile tests/Makefile man/Makefile" 12619 12620cat >confcache <<\_ACEOF 12621# This file is a shell script that caches the results of configure 12622# tests run on this system so they can be shared between configure 12623# scripts and configure runs, see configure's option --config-cache. 12624# It is not useful on other systems. If it contains results you don't 12625# want to keep, you may remove or edit it. 12626# 12627# config.status only pays attention to the cache file if you give it 12628# the --recheck option to rerun configure. 12629# 12630# 'ac_cv_env_foo' variables (set or unset) will be overridden when 12631# loading this file, other *unset* 'ac_cv_foo' will be assigned the 12632# following values. 12633 12634_ACEOF 12635 12636# The following way of writing the cache mishandles newlines in values, 12637# but we know of no workaround that is simple, portable, and efficient. 12638# So, we kill variables containing newlines. 12639# Ultrix sh set writes to stderr and can't be redirected directly, 12640# and sets the high bit in the cache file unless we assign to the vars. 12641( 12642 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12643 eval ac_val=\$$ac_var 12644 case $ac_val in #( 12645 *${as_nl}*) 12646 case $ac_var in #( 12647 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12648printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12649 esac 12650 case $ac_var in #( 12651 _ | IFS | as_nl) ;; #( 12652 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12653 *) { eval $ac_var=; unset $ac_var;} ;; 12654 esac ;; 12655 esac 12656 done 12657 12658 (set) 2>&1 | 12659 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12660 *${as_nl}ac_space=\ *) 12661 # 'set' does not quote correctly, so add quotes: double-quote 12662 # substitution turns \\\\ into \\, and sed turns \\ into \. 12663 sed -n \ 12664 "s/'/'\\\\''/g; 12665 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12666 ;; #( 12667 *) 12668 # 'set' quotes correctly as required by POSIX, so do not add quotes. 12669 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12670 ;; 12671 esac | 12672 sort 12673) | 12674 sed ' 12675 /^ac_cv_env_/b end 12676 t clear 12677 :clear 12678 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 12679 t end 12680 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12681 :end' >>confcache 12682if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12683 if test -w "$cache_file"; then 12684 if test "x$cache_file" != "x/dev/null"; then 12685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12686printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 12687 if test ! -f "$cache_file" || test -h "$cache_file"; then 12688 cat confcache >"$cache_file" 12689 else 12690 case $cache_file in #( 12691 */* | ?:*) 12692 mv -f confcache "$cache_file"$$ && 12693 mv -f "$cache_file"$$ "$cache_file" ;; #( 12694 *) 12695 mv -f confcache "$cache_file" ;; 12696 esac 12697 fi 12698 fi 12699 else 12700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12701printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 12702 fi 12703fi 12704rm -f confcache 12705 12706test "x$prefix" = xNONE && prefix=$ac_default_prefix 12707# Let make expand exec_prefix. 12708test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12709 12710DEFS=-DHAVE_CONFIG_H 12711 12712ac_libobjs= 12713ac_ltlibobjs= 12714U= 12715for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12716 # 1. Remove the extension, and $U if already installed. 12717 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12718 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 12719 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12720 # will be set to the directory where LIBOBJS objects are built. 12721 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12722 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12723done 12724LIBOBJS=$ac_libobjs 12725 12726LTLIBOBJS=$ac_ltlibobjs 12727 12728 12729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12730printf %s "checking that generated files are newer than configure... " >&6; } 12731 if test -n "$am_sleep_pid"; then 12732 # Hide warnings about reused PIDs. 12733 wait $am_sleep_pid 2>/dev/null 12734 fi 12735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 12736printf "%s\n" "done" >&6; } 12737if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12738 as_fn_error $? "conditional \"AMDEP\" was never defined. 12739Usually this means the macro was only invoked conditionally." "$LINENO" 5 12740fi 12741if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12742 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12743Usually this means the macro was only invoked conditionally." "$LINENO" 5 12744fi 12745case $enable_silent_rules in # ((( 12746 yes) AM_DEFAULT_VERBOSITY=0;; 12747 no) AM_DEFAULT_VERBOSITY=1;; 12748esac 12749if test $am_cv_make_support_nested_variables = yes; then 12750 AM_V='$(V)' 12751 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 12752else 12753 AM_V=$AM_DEFAULT_VERBOSITY 12754 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 12755fi 12756 12757 if test -n "$EXEEXT"; then 12758 am__EXEEXT_TRUE= 12759 am__EXEEXT_FALSE='#' 12760else 12761 am__EXEEXT_TRUE='#' 12762 am__EXEEXT_FALSE= 12763fi 12764 12765# Check whether --enable-year2038 was given. 12766if test ${enable_year2038+y} 12767then : 12768 enableval=$enable_year2038; 12769fi 12770 12771if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 12772 as_fn_error $? "conditional \"LINT\" was never defined. 12773Usually this means the macro was only invoked conditionally." "$LINENO" 5 12774fi 12775 12776: "${CONFIG_STATUS=./config.status}" 12777ac_write_fail=0 12778ac_clean_files_save=$ac_clean_files 12779ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12781printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 12782as_write_fail=0 12783cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12784#! $SHELL 12785# Generated by $as_me. 12786# Run this file to recreate the current configuration. 12787# Compiler output produced by configure, useful for debugging 12788# configure, is in config.log if it exists. 12789 12790debug=false 12791ac_cs_recheck=false 12792ac_cs_silent=false 12793 12794SHELL=\${CONFIG_SHELL-$SHELL} 12795export SHELL 12796_ASEOF 12797cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12798## -------------------- ## 12799## M4sh Initialization. ## 12800## -------------------- ## 12801 12802# Be more Bourne compatible 12803DUALCASE=1; export DUALCASE # for MKS sh 12804if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12805then : 12806 emulate sh 12807 NULLCMD=: 12808 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12809 # is contrary to our usage. Disable this feature. 12810 alias -g '${1+"$@"}'='"$@"' 12811 setopt NO_GLOB_SUBST 12812else case e in #( 12813 e) case `(set -o) 2>/dev/null` in #( 12814 *posix*) : 12815 set -o posix ;; #( 12816 *) : 12817 ;; 12818esac ;; 12819esac 12820fi 12821 12822 12823 12824# Reset variables that may have inherited troublesome values from 12825# the environment. 12826 12827# IFS needs to be set, to space, tab, and newline, in precisely that order. 12828# (If _AS_PATH_WALK were called with IFS unset, it would have the 12829# side effect of setting IFS to empty, thus disabling word splitting.) 12830# Quoting is to prevent editors from complaining about space-tab. 12831as_nl=' 12832' 12833export as_nl 12834IFS=" "" $as_nl" 12835 12836PS1='$ ' 12837PS2='> ' 12838PS4='+ ' 12839 12840# Ensure predictable behavior from utilities with locale-dependent output. 12841LC_ALL=C 12842export LC_ALL 12843LANGUAGE=C 12844export LANGUAGE 12845 12846# We cannot yet rely on "unset" to work, but we need these variables 12847# to be unset--not just set to an empty or harmless value--now, to 12848# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12849# also avoids known problems related to "unset" and subshell syntax 12850# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12851for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12852do eval test \${$as_var+y} \ 12853 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12854done 12855 12856# Ensure that fds 0, 1, and 2 are open. 12857if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12858if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12859if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12860 12861# The user is always right. 12862if ${PATH_SEPARATOR+false} :; then 12863 PATH_SEPARATOR=: 12864 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12865 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12866 PATH_SEPARATOR=';' 12867 } 12868fi 12869 12870 12871# Find who we are. Look in the path if we contain no directory separator. 12872as_myself= 12873case $0 in #(( 12874 *[\\/]* ) as_myself=$0 ;; 12875 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12876for as_dir in $PATH 12877do 12878 IFS=$as_save_IFS 12879 case $as_dir in #((( 12880 '') as_dir=./ ;; 12881 */) ;; 12882 *) as_dir=$as_dir/ ;; 12883 esac 12884 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12885 done 12886IFS=$as_save_IFS 12887 12888 ;; 12889esac 12890# We did not find ourselves, most probably we were run as 'sh COMMAND' 12891# in which case we are not to be found in the path. 12892if test "x$as_myself" = x; then 12893 as_myself=$0 12894fi 12895if test ! -f "$as_myself"; then 12896 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12897 exit 1 12898fi 12899 12900 12901 12902# as_fn_error STATUS ERROR [LINENO LOG_FD] 12903# ---------------------------------------- 12904# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12905# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12906# script with STATUS, using 1 if that was 0. 12907as_fn_error () 12908{ 12909 as_status=$1; test $as_status -eq 0 && as_status=1 12910 if test "$4"; then 12911 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12913 fi 12914 printf "%s\n" "$as_me: error: $2" >&2 12915 as_fn_exit $as_status 12916} # as_fn_error 12917 12918 12919# as_fn_set_status STATUS 12920# ----------------------- 12921# Set $? to STATUS, without forking. 12922as_fn_set_status () 12923{ 12924 return $1 12925} # as_fn_set_status 12926 12927# as_fn_exit STATUS 12928# ----------------- 12929# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12930as_fn_exit () 12931{ 12932 set +e 12933 as_fn_set_status $1 12934 exit $1 12935} # as_fn_exit 12936 12937# as_fn_unset VAR 12938# --------------- 12939# Portably unset VAR. 12940as_fn_unset () 12941{ 12942 { eval $1=; unset $1;} 12943} 12944as_unset=as_fn_unset 12945 12946# as_fn_append VAR VALUE 12947# ---------------------- 12948# Append the text in VALUE to the end of the definition contained in VAR. Take 12949# advantage of any shell optimizations that allow amortized linear growth over 12950# repeated appends, instead of the typical quadratic growth present in naive 12951# implementations. 12952if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12953then : 12954 eval 'as_fn_append () 12955 { 12956 eval $1+=\$2 12957 }' 12958else case e in #( 12959 e) as_fn_append () 12960 { 12961 eval $1=\$$1\$2 12962 } ;; 12963esac 12964fi # as_fn_append 12965 12966# as_fn_arith ARG... 12967# ------------------ 12968# Perform arithmetic evaluation on the ARGs, and store the result in the 12969# global $as_val. Take advantage of shells that can avoid forks. The arguments 12970# must be portable across $(()) and expr. 12971if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12972then : 12973 eval 'as_fn_arith () 12974 { 12975 as_val=$(( $* )) 12976 }' 12977else case e in #( 12978 e) as_fn_arith () 12979 { 12980 as_val=`expr "$@" || test $? -eq 1` 12981 } ;; 12982esac 12983fi # as_fn_arith 12984 12985 12986if expr a : '\(a\)' >/dev/null 2>&1 && 12987 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12988 as_expr=expr 12989else 12990 as_expr=false 12991fi 12992 12993if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12994 as_basename=basename 12995else 12996 as_basename=false 12997fi 12998 12999if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13000 as_dirname=dirname 13001else 13002 as_dirname=false 13003fi 13004 13005as_me=`$as_basename -- "$0" || 13006$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13007 X"$0" : 'X\(//\)$' \| \ 13008 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13009printf "%s\n" X/"$0" | 13010 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13011 s//\1/ 13012 q 13013 } 13014 /^X\/\(\/\/\)$/{ 13015 s//\1/ 13016 q 13017 } 13018 /^X\/\(\/\).*/{ 13019 s//\1/ 13020 q 13021 } 13022 s/.*/./; q'` 13023 13024# Avoid depending upon Character Ranges. 13025as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13026as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13027as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13028as_cr_digits='0123456789' 13029as_cr_alnum=$as_cr_Letters$as_cr_digits 13030 13031 13032# Determine whether it's possible to make 'echo' print without a newline. 13033# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 13034# for compatibility with existing Makefiles. 13035ECHO_C= ECHO_N= ECHO_T= 13036case `echo -n x` in #((((( 13037-n*) 13038 case `echo 'xy\c'` in 13039 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13040 xy) ECHO_C='\c';; 13041 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13042 ECHO_T=' ';; 13043 esac;; 13044*) 13045 ECHO_N='-n';; 13046esac 13047 13048# For backward compatibility with old third-party macros, we provide 13049# the shell variables $as_echo and $as_echo_n. New code should use 13050# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 13051as_echo='printf %s\n' 13052as_echo_n='printf %s' 13053 13054rm -f conf$$ conf$$.exe conf$$.file 13055if test -d conf$$.dir; then 13056 rm -f conf$$.dir/conf$$.file 13057else 13058 rm -f conf$$.dir 13059 mkdir conf$$.dir 2>/dev/null 13060fi 13061if (echo >conf$$.file) 2>/dev/null; then 13062 if ln -s conf$$.file conf$$ 2>/dev/null; then 13063 as_ln_s='ln -s' 13064 # ... but there are two gotchas: 13065 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 13066 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 13067 # In both cases, we have to default to 'cp -pR'. 13068 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13069 as_ln_s='cp -pR' 13070 elif ln conf$$.file conf$$ 2>/dev/null; then 13071 as_ln_s=ln 13072 else 13073 as_ln_s='cp -pR' 13074 fi 13075else 13076 as_ln_s='cp -pR' 13077fi 13078rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13079rmdir conf$$.dir 2>/dev/null 13080 13081 13082# as_fn_mkdir_p 13083# ------------- 13084# Create "$as_dir" as a directory, including parents if necessary. 13085as_fn_mkdir_p () 13086{ 13087 13088 case $as_dir in #( 13089 -*) as_dir=./$as_dir;; 13090 esac 13091 test -d "$as_dir" || eval $as_mkdir_p || { 13092 as_dirs= 13093 while :; do 13094 case $as_dir in #( 13095 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13096 *) as_qdir=$as_dir;; 13097 esac 13098 as_dirs="'$as_qdir' $as_dirs" 13099 as_dir=`$as_dirname -- "$as_dir" || 13100$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13101 X"$as_dir" : 'X\(//\)[^/]' \| \ 13102 X"$as_dir" : 'X\(//\)$' \| \ 13103 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13104printf "%s\n" X"$as_dir" | 13105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13106 s//\1/ 13107 q 13108 } 13109 /^X\(\/\/\)[^/].*/{ 13110 s//\1/ 13111 q 13112 } 13113 /^X\(\/\/\)$/{ 13114 s//\1/ 13115 q 13116 } 13117 /^X\(\/\).*/{ 13118 s//\1/ 13119 q 13120 } 13121 s/.*/./; q'` 13122 test -d "$as_dir" && break 13123 done 13124 test -z "$as_dirs" || eval "mkdir $as_dirs" 13125 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13126 13127 13128} # as_fn_mkdir_p 13129if mkdir -p . 2>/dev/null; then 13130 as_mkdir_p='mkdir -p "$as_dir"' 13131else 13132 test -d ./-p && rmdir ./-p 13133 as_mkdir_p=false 13134fi 13135 13136 13137# as_fn_executable_p FILE 13138# ----------------------- 13139# Test if FILE is an executable regular file. 13140as_fn_executable_p () 13141{ 13142 test -f "$1" && test -x "$1" 13143} # as_fn_executable_p 13144as_test_x='test -x' 13145as_executable_p=as_fn_executable_p 13146 13147# Sed expression to map a string onto a valid CPP name. 13148as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 13149as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 13150 13151# Sed expression to map a string onto a valid variable name. 13152as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 13153as_tr_sh="eval sed '$as_sed_sh'" # deprecated 13154 13155 13156exec 6>&1 13157## ----------------------------------- ## 13158## Main body of $CONFIG_STATUS script. ## 13159## ----------------------------------- ## 13160_ASEOF 13161test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13162 13163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13164# Save the log message, to keep $0 and so on meaningful, and to 13165# report actual input values of CONFIG_FILES etc. instead of their 13166# values after options handling. 13167ac_log=" 13168This file was extended by xauth $as_me 1.1.4, which was 13169generated by GNU Autoconf 2.72. Invocation command line was 13170 13171 CONFIG_FILES = $CONFIG_FILES 13172 CONFIG_HEADERS = $CONFIG_HEADERS 13173 CONFIG_LINKS = $CONFIG_LINKS 13174 CONFIG_COMMANDS = $CONFIG_COMMANDS 13175 $ $0 $@ 13176 13177on `(hostname || uname -n) 2>/dev/null | sed 1q` 13178" 13179 13180_ACEOF 13181 13182case $ac_config_files in *" 13183"*) set x $ac_config_files; shift; ac_config_files=$*;; 13184esac 13185 13186case $ac_config_headers in *" 13187"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13188esac 13189 13190 13191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13192# Files that config.status was made for. 13193config_files="$ac_config_files" 13194config_headers="$ac_config_headers" 13195config_commands="$ac_config_commands" 13196 13197_ACEOF 13198 13199cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13200ac_cs_usage="\ 13201'$as_me' instantiates files and other configuration actions 13202from templates according to the current configuration. Unless the files 13203and actions are specified as TAGs, all are instantiated by default. 13204 13205Usage: $0 [OPTION]... [TAG]... 13206 13207 -h, --help print this help, then exit 13208 -V, --version print version number and configuration settings, then exit 13209 --config print configuration, then exit 13210 -q, --quiet, --silent 13211 do not print progress messages 13212 -d, --debug don't remove temporary files 13213 --recheck update $as_me by reconfiguring in the same conditions 13214 --file=FILE[:TEMPLATE] 13215 instantiate the configuration file FILE 13216 --header=FILE[:TEMPLATE] 13217 instantiate the configuration header FILE 13218 13219Configuration files: 13220$config_files 13221 13222Configuration headers: 13223$config_headers 13224 13225Configuration commands: 13226$config_commands 13227 13228Report bugs to <https://gitlab.freedesktop.org/xorg/app/xauth/-/issues>." 13229 13230_ACEOF 13231ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 13232ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 13233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13234ac_cs_config='$ac_cs_config_escaped' 13235ac_cs_version="\\ 13236xauth config.status 1.1.4 13237configured by $0, generated by GNU Autoconf 2.72, 13238 with options \\"\$ac_cs_config\\" 13239 13240Copyright (C) 2023 Free Software Foundation, Inc. 13241This config.status script is free software; the Free Software Foundation 13242gives unlimited permission to copy, distribute and modify it." 13243 13244ac_pwd='$ac_pwd' 13245srcdir='$srcdir' 13246INSTALL='$INSTALL' 13247MKDIR_P='$MKDIR_P' 13248AWK='$AWK' 13249test -n "\$AWK" || AWK=awk 13250_ACEOF 13251 13252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13253# The default lists apply if the user does not specify any file. 13254ac_need_defaults=: 13255while test $# != 0 13256do 13257 case $1 in 13258 --*=?*) 13259 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13260 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13261 ac_shift=: 13262 ;; 13263 --*=) 13264 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13265 ac_optarg= 13266 ac_shift=: 13267 ;; 13268 *) 13269 ac_option=$1 13270 ac_optarg=$2 13271 ac_shift=shift 13272 ;; 13273 esac 13274 13275 case $ac_option in 13276 # Handling of the options. 13277 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13278 ac_cs_recheck=: ;; 13279 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13280 printf "%s\n" "$ac_cs_version"; exit ;; 13281 --config | --confi | --conf | --con | --co | --c ) 13282 printf "%s\n" "$ac_cs_config"; exit ;; 13283 --debug | --debu | --deb | --de | --d | -d ) 13284 debug=: ;; 13285 --file | --fil | --fi | --f ) 13286 $ac_shift 13287 case $ac_optarg in 13288 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13289 '') as_fn_error $? "missing file argument" ;; 13290 esac 13291 as_fn_append CONFIG_FILES " '$ac_optarg'" 13292 ac_need_defaults=false;; 13293 --header | --heade | --head | --hea ) 13294 $ac_shift 13295 case $ac_optarg in 13296 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13297 esac 13298 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13299 ac_need_defaults=false;; 13300 --he | --h) 13301 # Conflict between --help and --header 13302 as_fn_error $? "ambiguous option: '$1' 13303Try '$0 --help' for more information.";; 13304 --help | --hel | -h ) 13305 printf "%s\n" "$ac_cs_usage"; exit ;; 13306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13307 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13308 ac_cs_silent=: ;; 13309 13310 # This is an error. 13311 -*) as_fn_error $? "unrecognized option: '$1' 13312Try '$0 --help' for more information." ;; 13313 13314 *) as_fn_append ac_config_targets " $1" 13315 ac_need_defaults=false ;; 13316 13317 esac 13318 shift 13319done 13320 13321ac_configure_extra_args= 13322 13323if $ac_cs_silent; then 13324 exec 6>/dev/null 13325 ac_configure_extra_args="$ac_configure_extra_args --silent" 13326fi 13327 13328_ACEOF 13329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13330if \$ac_cs_recheck; then 13331 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13332 shift 13333 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 13334 CONFIG_SHELL='$SHELL' 13335 export CONFIG_SHELL 13336 exec "\$@" 13337fi 13338 13339_ACEOF 13340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13341exec 5>>config.log 13342{ 13343 echo 13344 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13345## Running $as_me. ## 13346_ASBOX 13347 printf "%s\n" "$ac_log" 13348} >&5 13349 13350_ACEOF 13351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13352# 13353# INIT-COMMANDS 13354# 13355AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 13356 13357_ACEOF 13358 13359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13360 13361# Handling of arguments. 13362for ac_config_target in $ac_config_targets 13363do 13364 case $ac_config_target in 13365 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13366 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13367 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13368 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 13369 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 13370 13371 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 13372 esac 13373done 13374 13375 13376# If the user did not use the arguments to specify the items to instantiate, 13377# then the envvar interface is used. Set only those that are not. 13378# We use the long form for the default assignment because of an extremely 13379# bizarre bug on SunOS 4.1.3. 13380if $ac_need_defaults; then 13381 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 13382 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 13383 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 13384fi 13385 13386# Have a temporary directory for convenience. Make it in the build tree 13387# simply because there is no reason against having it here, and in addition, 13388# creating and moving files from /tmp can sometimes cause problems. 13389# Hook for its removal unless debugging. 13390# Note that there is a small window in which the directory will not be cleaned: 13391# after its creation but before its name has been assigned to '$tmp'. 13392$debug || 13393{ 13394 tmp= ac_tmp= 13395 trap 'exit_status=$? 13396 : "${ac_tmp:=$tmp}" 13397 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13398' 0 13399 trap 'as_fn_exit 1' 1 2 13 15 13400} 13401# Create a (secure) tmp directory for tmp files. 13402 13403{ 13404 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13405 test -d "$tmp" 13406} || 13407{ 13408 tmp=./conf$$-$RANDOM 13409 (umask 077 && mkdir "$tmp") 13410} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13411ac_tmp=$tmp 13412 13413# Set up the scripts for CONFIG_FILES section. 13414# No need to generate them if there are no CONFIG_FILES. 13415# This happens for instance with './config.status config.h'. 13416if test -n "$CONFIG_FILES"; then 13417 13418 13419ac_cr=`echo X | tr X '\015'` 13420# On cygwin, bash can eat \r inside `` if the user requested igncr. 13421# But we know of no other shell where ac_cr would be empty at this 13422# point, so we can use a bashism as a fallback. 13423if test "x$ac_cr" = x; then 13424 eval ac_cr=\$\'\\r\' 13425fi 13426ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13427if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13428 ac_cs_awk_cr='\\r' 13429else 13430 ac_cs_awk_cr=$ac_cr 13431fi 13432 13433echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13434_ACEOF 13435 13436 13437{ 13438 echo "cat >conf$$subs.awk <<_ACEOF" && 13439 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13440 echo "_ACEOF" 13441} >conf$$subs.sh || 13442 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13443ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13444ac_delim='%!_!# ' 13445for ac_last_try in false false false false false :; do 13446 . ./conf$$subs.sh || 13447 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13448 13449 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13450 if test $ac_delim_n = $ac_delim_num; then 13451 break 13452 elif $ac_last_try; then 13453 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13454 else 13455 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13456 fi 13457done 13458rm -f conf$$subs.sh 13459 13460cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13461cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13462_ACEOF 13463sed -n ' 13464h 13465s/^/S["/; s/!.*/"]=/ 13466p 13467g 13468s/^[^!]*!// 13469:repl 13470t repl 13471s/'"$ac_delim"'$// 13472t delim 13473:nl 13474h 13475s/\(.\{148\}\)..*/\1/ 13476t more1 13477s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13478p 13479n 13480b repl 13481:more1 13482s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13483p 13484g 13485s/.\{148\}// 13486t nl 13487:delim 13488h 13489s/\(.\{148\}\)..*/\1/ 13490t more2 13491s/["\\]/\\&/g; s/^/"/; s/$/"/ 13492p 13493b 13494:more2 13495s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13496p 13497g 13498s/.\{148\}// 13499t delim 13500' <conf$$subs.awk | sed ' 13501/^[^""]/{ 13502 N 13503 s/\n// 13504} 13505' >>$CONFIG_STATUS || ac_write_fail=1 13506rm -f conf$$subs.awk 13507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13508_ACAWK 13509cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13510 for (key in S) S_is_set[key] = 1 13511 FS = "" 13512 13513} 13514{ 13515 line = $ 0 13516 nfields = split(line, field, "@") 13517 substed = 0 13518 len = length(field[1]) 13519 for (i = 2; i < nfields; i++) { 13520 key = field[i] 13521 keylen = length(key) 13522 if (S_is_set[key]) { 13523 value = S[key] 13524 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13525 len += length(value) + length(field[++i]) 13526 substed = 1 13527 } else 13528 len += 1 + keylen 13529 } 13530 13531 print line 13532} 13533 13534_ACAWK 13535_ACEOF 13536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13537if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13538 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13539else 13540 cat 13541fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13542 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13543_ACEOF 13544 13545# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13546# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13547# trailing colons and then remove the whole line if VPATH becomes empty 13548# (actually we leave an empty line to preserve line numbers). 13549if test "x$srcdir" = x.; then 13550 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13551h 13552s/// 13553s/^/:/ 13554s/[ ]*$/:/ 13555s/:\$(srcdir):/:/g 13556s/:\${srcdir}:/:/g 13557s/:@srcdir@:/:/g 13558s/^:*// 13559s/:*$// 13560x 13561s/\(=[ ]*\).*/\1/ 13562G 13563s/\n// 13564s/^[^=]*=[ ]*$// 13565}' 13566fi 13567 13568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13569fi # test -n "$CONFIG_FILES" 13570 13571# Set up the scripts for CONFIG_HEADERS section. 13572# No need to generate them if there are no CONFIG_HEADERS. 13573# This happens for instance with './config.status Makefile'. 13574if test -n "$CONFIG_HEADERS"; then 13575cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13576BEGIN { 13577_ACEOF 13578 13579# Transform confdefs.h into an awk script 'defines.awk', embedded as 13580# here-document in config.status, that substitutes the proper values into 13581# config.h.in to produce config.h. 13582 13583# Create a delimiter string that does not exist in confdefs.h, to ease 13584# handling of long lines. 13585ac_delim='%!_!# ' 13586for ac_last_try in false false :; do 13587 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13588 if test -z "$ac_tt"; then 13589 break 13590 elif $ac_last_try; then 13591 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13592 else 13593 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13594 fi 13595done 13596 13597# For the awk script, D is an array of macro values keyed by name, 13598# likewise P contains macro parameters if any. Preserve backslash 13599# newline sequences. 13600 13601ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13602sed -n ' 13603s/.\{148\}/&'"$ac_delim"'/g 13604t rset 13605:rset 13606s/^[ ]*#[ ]*define[ ][ ]*/ / 13607t def 13608d 13609:def 13610s/\\$// 13611t bsnl 13612s/["\\]/\\&/g 13613s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13614D["\1"]=" \3"/p 13615s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13616d 13617:bsnl 13618s/["\\]/\\&/g 13619s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13620D["\1"]=" \3\\\\\\n"\\/p 13621t cont 13622s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13623t cont 13624d 13625:cont 13626n 13627s/.\{148\}/&'"$ac_delim"'/g 13628t clear 13629:clear 13630s/\\$// 13631t bsnlc 13632s/["\\]/\\&/g; s/^/"/; s/$/"/p 13633d 13634:bsnlc 13635s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13636b cont 13637' <confdefs.h | sed ' 13638s/'"$ac_delim"'/"\\\ 13639"/g' >>$CONFIG_STATUS || ac_write_fail=1 13640 13641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13642 for (key in D) D_is_set[key] = 1 13643 FS = "" 13644} 13645/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13646 line = \$ 0 13647 split(line, arg, " ") 13648 if (arg[1] == "#") { 13649 defundef = arg[2] 13650 mac1 = arg[3] 13651 } else { 13652 defundef = substr(arg[1], 2) 13653 mac1 = arg[2] 13654 } 13655 split(mac1, mac2, "(") #) 13656 macro = mac2[1] 13657 prefix = substr(line, 1, index(line, defundef) - 1) 13658 if (D_is_set[macro]) { 13659 # Preserve the white space surrounding the "#". 13660 print prefix "define", macro P[macro] D[macro] 13661 next 13662 } else { 13663 # Replace #undef with comments. This is necessary, for example, 13664 # in the case of _POSIX_SOURCE, which is predefined and required 13665 # on some systems where configure will not decide to define it. 13666 if (defundef == "undef") { 13667 print "/*", prefix defundef, macro, "*/" 13668 next 13669 } 13670 } 13671} 13672{ print } 13673_ACAWK 13674_ACEOF 13675cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13676 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13677fi # test -n "$CONFIG_HEADERS" 13678 13679 13680eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13681shift 13682for ac_tag 13683do 13684 case $ac_tag in 13685 :[FHLC]) ac_mode=$ac_tag; continue;; 13686 esac 13687 case $ac_mode$ac_tag in 13688 :[FHL]*:*);; 13689 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 13690 :[FH]-) ac_tag=-:-;; 13691 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13692 esac 13693 ac_save_IFS=$IFS 13694 IFS=: 13695 set x $ac_tag 13696 IFS=$ac_save_IFS 13697 shift 13698 ac_file=$1 13699 shift 13700 13701 case $ac_mode in 13702 :L) ac_source=$1;; 13703 :[FH]) 13704 ac_file_inputs= 13705 for ac_f 13706 do 13707 case $ac_f in 13708 -) ac_f="$ac_tmp/stdin";; 13709 *) # Look for the file first in the build tree, then in the source tree 13710 # (if the path is not absolute). The absolute path cannot be DOS-style, 13711 # because $ac_f cannot contain ':'. 13712 test -f "$ac_f" || 13713 case $ac_f in 13714 [\\/$]*) false;; 13715 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13716 esac || 13717 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 13718 esac 13719 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13720 as_fn_append ac_file_inputs " '$ac_f'" 13721 done 13722 13723 # Let's still pretend it is 'configure' which instantiates (i.e., don't 13724 # use $as_me), people would be surprised to read: 13725 # /* config.h. Generated by config.status. */ 13726 configure_input='Generated from '` 13727 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13728 `' by configure.' 13729 if test x"$ac_file" != x-; then 13730 configure_input="$ac_file. $configure_input" 13731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13732printf "%s\n" "$as_me: creating $ac_file" >&6;} 13733 fi 13734 # Neutralize special characters interpreted by sed in replacement strings. 13735 case $configure_input in #( 13736 *\&* | *\|* | *\\* ) 13737 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 13738 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13739 *) ac_sed_conf_input=$configure_input;; 13740 esac 13741 13742 case $ac_tag in 13743 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13744 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13745 esac 13746 ;; 13747 esac 13748 13749 ac_dir=`$as_dirname -- "$ac_file" || 13750$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13751 X"$ac_file" : 'X\(//\)[^/]' \| \ 13752 X"$ac_file" : 'X\(//\)$' \| \ 13753 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13754printf "%s\n" X"$ac_file" | 13755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13756 s//\1/ 13757 q 13758 } 13759 /^X\(\/\/\)[^/].*/{ 13760 s//\1/ 13761 q 13762 } 13763 /^X\(\/\/\)$/{ 13764 s//\1/ 13765 q 13766 } 13767 /^X\(\/\).*/{ 13768 s//\1/ 13769 q 13770 } 13771 s/.*/./; q'` 13772 as_dir="$ac_dir"; as_fn_mkdir_p 13773 ac_builddir=. 13774 13775case "$ac_dir" in 13776.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13777*) 13778 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13779 # A ".." for each directory in $ac_dir_suffix. 13780 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13781 case $ac_top_builddir_sub in 13782 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13783 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13784 esac ;; 13785esac 13786ac_abs_top_builddir=$ac_pwd 13787ac_abs_builddir=$ac_pwd$ac_dir_suffix 13788# for backward compatibility: 13789ac_top_builddir=$ac_top_build_prefix 13790 13791case $srcdir in 13792 .) # We are building in place. 13793 ac_srcdir=. 13794 ac_top_srcdir=$ac_top_builddir_sub 13795 ac_abs_top_srcdir=$ac_pwd ;; 13796 [\\/]* | ?:[\\/]* ) # Absolute name. 13797 ac_srcdir=$srcdir$ac_dir_suffix; 13798 ac_top_srcdir=$srcdir 13799 ac_abs_top_srcdir=$srcdir ;; 13800 *) # Relative name. 13801 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13802 ac_top_srcdir=$ac_top_build_prefix$srcdir 13803 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13804esac 13805ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13806 13807 13808 case $ac_mode in 13809 :F) 13810 # 13811 # CONFIG_FILE 13812 # 13813 13814 case $INSTALL in 13815 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13816 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13817 esac 13818 ac_MKDIR_P=$MKDIR_P 13819 case $MKDIR_P in 13820 [\\/$]* | ?:[\\/]* ) ;; 13821 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13822 esac 13823_ACEOF 13824 13825cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13826# If the template does not know about datarootdir, expand it. 13827# FIXME: This hack should be removed a few years after 2.60. 13828ac_datarootdir_hack=; ac_datarootdir_seen= 13829ac_sed_dataroot=' 13830/datarootdir/ { 13831 p 13832 q 13833} 13834/@datadir@/p 13835/@docdir@/p 13836/@infodir@/p 13837/@localedir@/p 13838/@mandir@/p' 13839case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13840*datarootdir*) ac_datarootdir_seen=yes;; 13841*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13843printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13844_ACEOF 13845cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13846 ac_datarootdir_hack=' 13847 s&@datadir@&$datadir&g 13848 s&@docdir@&$docdir&g 13849 s&@infodir@&$infodir&g 13850 s&@localedir@&$localedir&g 13851 s&@mandir@&$mandir&g 13852 s&\\\${datarootdir}&$datarootdir&g' ;; 13853esac 13854_ACEOF 13855 13856# Neutralize VPATH when '$srcdir' = '.'. 13857# Shell code in configure.ac might set extrasub. 13858# FIXME: do we really want to maintain this feature? 13859cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13860ac_sed_extra="$ac_vpsub 13861$extrasub 13862_ACEOF 13863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13864:t 13865/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13866s|@configure_input@|$ac_sed_conf_input|;t t 13867s&@top_builddir@&$ac_top_builddir_sub&;t t 13868s&@top_build_prefix@&$ac_top_build_prefix&;t t 13869s&@srcdir@&$ac_srcdir&;t t 13870s&@abs_srcdir@&$ac_abs_srcdir&;t t 13871s&@top_srcdir@&$ac_top_srcdir&;t t 13872s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13873s&@builddir@&$ac_builddir&;t t 13874s&@abs_builddir@&$ac_abs_builddir&;t t 13875s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13876s&@INSTALL@&$ac_INSTALL&;t t 13877s&@MKDIR_P@&$ac_MKDIR_P&;t t 13878$ac_datarootdir_hack 13879" 13880eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13881 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13882 13883test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13884 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13885 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13886 "$ac_tmp/out"`; test -z "$ac_out"; } && 13887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13888which seems to be undefined. Please make sure it is defined" >&5 13889printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13890which seems to be undefined. Please make sure it is defined" >&2;} 13891 13892 rm -f "$ac_tmp/stdin" 13893 case $ac_file in 13894 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13895 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13896 esac \ 13897 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13898 ;; 13899 :H) 13900 # 13901 # CONFIG_HEADER 13902 # 13903 if test x"$ac_file" != x-; then 13904 { 13905 printf "%s\n" "/* $configure_input */" >&1 \ 13906 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13907 } >"$ac_tmp/config.h" \ 13908 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13909 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13911printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13912 else 13913 rm -f "$ac_file" 13914 mv "$ac_tmp/config.h" "$ac_file" \ 13915 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13916 fi 13917 else 13918 printf "%s\n" "/* $configure_input */" >&1 \ 13919 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13920 || as_fn_error $? "could not create -" "$LINENO" 5 13921 fi 13922# Compute "$ac_file"'s index in $config_headers. 13923_am_arg="$ac_file" 13924_am_stamp_count=1 13925for _am_header in $config_headers :; do 13926 case $_am_header in 13927 $_am_arg | $_am_arg:* ) 13928 break ;; 13929 * ) 13930 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13931 esac 13932done 13933echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13934$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13935 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13936 X"$_am_arg" : 'X\(//\)$' \| \ 13937 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13938printf "%s\n" X"$_am_arg" | 13939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13940 s//\1/ 13941 q 13942 } 13943 /^X\(\/\/\)[^/].*/{ 13944 s//\1/ 13945 q 13946 } 13947 /^X\(\/\/\)$/{ 13948 s//\1/ 13949 q 13950 } 13951 /^X\(\/\).*/{ 13952 s//\1/ 13953 q 13954 } 13955 s/.*/./; q'`/stamp-h$_am_stamp_count 13956 ;; 13957 13958 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13959printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13960 ;; 13961 esac 13962 13963 13964 case $ac_file$ac_mode in 13965 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13966 # Older Autoconf quotes --file arguments for eval, but not when files 13967 # are listed without --file. Let's play safe and only enable the eval 13968 # if we detect the quoting. 13969 # TODO: see whether this extra hack can be removed once we start 13970 # requiring Autoconf 2.70 or later. 13971 case $CONFIG_FILES in #( 13972 *\'*) : 13973 eval set x "$CONFIG_FILES" ;; #( 13974 *) : 13975 set x $CONFIG_FILES ;; #( 13976 *) : 13977 ;; 13978esac 13979 shift 13980 # Used to flag and report bootstrapping failures. 13981 am_rc=0 13982 for am_mf 13983 do 13984 # Strip MF so we end up with the name of the file. 13985 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13986 # Check whether this is an Automake generated Makefile which includes 13987 # dependency-tracking related rules and includes. 13988 # Grep'ing the whole file directly is not great: AIX grep has a line 13989 # limit of 2048, but all sed's we know have understand at least 4000. 13990 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13991 || continue 13992 am_dirpart=`$as_dirname -- "$am_mf" || 13993$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13994 X"$am_mf" : 'X\(//\)[^/]' \| \ 13995 X"$am_mf" : 'X\(//\)$' \| \ 13996 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13997printf "%s\n" X"$am_mf" | 13998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13999 s//\1/ 14000 q 14001 } 14002 /^X\(\/\/\)[^/].*/{ 14003 s//\1/ 14004 q 14005 } 14006 /^X\(\/\/\)$/{ 14007 s//\1/ 14008 q 14009 } 14010 /^X\(\/\).*/{ 14011 s//\1/ 14012 q 14013 } 14014 s/.*/./; q'` 14015 am_filepart=`$as_basename -- "$am_mf" || 14016$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 14017 X"$am_mf" : 'X\(//\)$' \| \ 14018 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14019printf "%s\n" X/"$am_mf" | 14020 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14021 s//\1/ 14022 q 14023 } 14024 /^X\/\(\/\/\)$/{ 14025 s//\1/ 14026 q 14027 } 14028 /^X\/\(\/\).*/{ 14029 s//\1/ 14030 q 14031 } 14032 s/.*/./; q'` 14033 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 14034 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14035 | $MAKE -f - am--depfiles" >&5 14036 (cd "$am_dirpart" \ 14037 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14038 | $MAKE -f - am--depfiles) >&5 2>&5 14039 ac_status=$? 14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14041 (exit $ac_status); } || am_rc=$? 14042 done 14043 if test $am_rc -ne 0; then 14044 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 14045printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 14046as_fn_error $? "Something went wrong bootstrapping makefile fragments 14047 for automatic dependency tracking. If GNU make was not used, consider 14048 re-running the configure script with MAKE=\"gmake\" (or whatever is 14049 necessary). You can also try re-running configure with the 14050 '--disable-dependency-tracking' option to at least be able to build 14051 the package (albeit without support for automatic dependency tracking). 14052See 'config.log' for more details" "$LINENO" 5; } 14053 fi 14054 { am_dirpart=; unset am_dirpart;} 14055 { am_filepart=; unset am_filepart;} 14056 { am_mf=; unset am_mf;} 14057 { am_rc=; unset am_rc;} 14058 rm -f conftest-deps.mk 14059} 14060 ;; 14061 14062 esac 14063done # for ac_tag 14064 14065 14066as_fn_exit 0 14067_ACEOF 14068ac_clean_files=$ac_clean_files_save 14069 14070test $ac_write_fail = 0 || 14071 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14072 14073 14074# configure is writing to config.log, and then calls config.status. 14075# config.status does its own redirection, appending to config.log. 14076# Unfortunately, on DOS this fails, as config.log is still kept open 14077# by configure, so config.status won't be able to write to it; its 14078# output is simply discarded. So we exec the FD to /dev/null, 14079# effectively closing config.log, so it can be properly (re)opened and 14080# appended to by config.status. When coming back to configure, we 14081# need to make the FD available again. 14082if test "$no_create" != yes; then 14083 ac_cs_success=: 14084 ac_config_status_args= 14085 test "$silent" = yes && 14086 ac_config_status_args="$ac_config_status_args --quiet" 14087 exec 5>/dev/null 14088 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14089 exec 5>>config.log 14090 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14091 # would make configure fail if this is the last instruction. 14092 $ac_cs_success || as_fn_exit 1 14093fi 14094if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14096printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14097fi 14098 14099 14100