1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for makedepend 1.0.9. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/util/makedepend/-/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/util/makedepend/-/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='makedepend' 607PACKAGE_TARNAME='makedepend' 608PACKAGE_VERSION='1.0.9' 609PACKAGE_STRING='makedepend 1.0.9' 610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/util/makedepend/-/issues' 611PACKAGE_URL='' 612 613ac_unique_file="Makefile.am" 614# Factoring default headers for most tests. 615ac_includes_default="\ 616#include <stddef.h> 617#ifdef HAVE_STDIO_H 618# include <stdio.h> 619#endif 620#ifdef HAVE_STDLIB_H 621# include <stdlib.h> 622#endif 623#ifdef HAVE_STRING_H 624# include <string.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_STRINGS_H 633# include <strings.h> 634#endif 635#ifdef HAVE_SYS_TYPES_H 636# include <sys/types.h> 637#endif 638#ifdef HAVE_SYS_STAT_H 639# include <sys/stat.h> 640#endif 641#ifdef HAVE_UNISTD_H 642# include <unistd.h> 643#endif" 644 645ac_header_c_list= 646enable_year2038=no 647ac_subst_vars='am__EXEEXT_FALSE 648am__EXEEXT_TRUE 649LTLIBOBJS 650LIBOBJS 651LINT_FALSE 652LINT_TRUE 653LINT_FLAGS 654LINT 655MAN_SUBSTS 656XORG_MAN_PAGE 657ADMIN_MAN_DIR 658DRIVER_MAN_DIR 659MISC_MAN_DIR 660FILE_MAN_DIR 661LIB_MAN_DIR 662APP_MAN_DIR 663ADMIN_MAN_SUFFIX 664DRIVER_MAN_SUFFIX 665MISC_MAN_SUFFIX 666FILE_MAN_SUFFIX 667LIB_MAN_SUFFIX 668APP_MAN_SUFFIX 669SED 670host_os 671host_vendor 672host_cpu 673host 674build_os 675build_vendor 676build_cpu 677build 678INSTALL_CMD 679PKG_CONFIG_LIBDIR 680PKG_CONFIG_PATH 681PKG_CONFIG 682CHANGELOG_CMD 683STRICT_CFLAGS 684CWARNFLAGS 685BASE_CFLAGS 686AM_BACKSLASH 687AM_DEFAULT_VERBOSITY 688AM_DEFAULT_V 689AM_V 690CSCOPE 691ETAGS 692CTAGS 693am__fastdepCC_FALSE 694am__fastdepCC_TRUE 695CCDEPMODE 696am__nodep 697AMDEPBACKSLASH 698AMDEP_FALSE 699AMDEP_TRUE 700am__include 701DEPDIR 702am__untar 703am__tar 704AMTAR 705am__leading_dot 706SET_MAKE 707AWK 708mkdir_p 709MKDIR_P 710INSTALL_STRIP_PROGRAM 711STRIP 712install_sh 713MAKEINFO 714AUTOHEADER 715AUTOMAKE 716AUTOCONF 717ACLOCAL 718VERSION 719PACKAGE 720CYGPATH_W 721am__isrc 722INSTALL_DATA 723INSTALL_SCRIPT 724INSTALL_PROGRAM 725OBJEXT 726EXEEXT 727ac_ct_CC 728CPPFLAGS 729LDFLAGS 730CFLAGS 731CC 732target_alias 733host_alias 734build_alias 735LIBS 736ECHO_T 737ECHO_N 738ECHO_C 739DEFS 740mandir 741localedir 742libdir 743psdir 744pdfdir 745dvidir 746htmldir 747infodir 748docdir 749oldincludedir 750includedir 751runstatedir 752localstatedir 753sharedstatedir 754sysconfdir 755datadir 756datarootdir 757libexecdir 758sbindir 759bindir 760program_transform_name 761prefix 762exec_prefix 763PACKAGE_URL 764PACKAGE_BUGREPORT 765PACKAGE_STRING 766PACKAGE_VERSION 767PACKAGE_TARNAME 768PACKAGE_NAME 769PATH_SEPARATOR 770SHELL 771am__quote' 772ac_subst_files='' 773ac_user_opts=' 774enable_option_checking 775enable_dependency_tracking 776enable_silent_rules 777enable_selective_werror 778enable_strict_compilation 779with_lint 780enable_largefile 781enable_year2038 782' 783 ac_precious_vars='build_alias 784host_alias 785target_alias 786CC 787CFLAGS 788LDFLAGS 789LIBS 790CPPFLAGS 791PKG_CONFIG 792PKG_CONFIG_PATH 793PKG_CONFIG_LIBDIR 794LINT 795LINT_FLAGS' 796 797 798# Initialize some variables set by options. 799ac_init_help= 800ac_init_version=false 801ac_unrecognized_opts= 802ac_unrecognized_sep= 803# The variables have the same names as the options, with 804# dashes changed to underlines. 805cache_file=/dev/null 806exec_prefix=NONE 807no_create= 808no_recursion= 809prefix=NONE 810program_prefix=NONE 811program_suffix=NONE 812program_transform_name=s,x,x, 813silent= 814site= 815srcdir= 816verbose= 817x_includes=NONE 818x_libraries=NONE 819 820# Installation directory options. 821# These are left unexpanded so users can "make install exec_prefix=/foo" 822# and all the variables that are supposed to be based on exec_prefix 823# by default will actually change. 824# Use braces instead of parens because sh, perl, etc. also accept them. 825# (The list follows the same order as the GNU Coding Standards.) 826bindir='${exec_prefix}/bin' 827sbindir='${exec_prefix}/sbin' 828libexecdir='${exec_prefix}/libexec' 829datarootdir='${prefix}/share' 830datadir='${datarootdir}' 831sysconfdir='${prefix}/etc' 832sharedstatedir='${prefix}/com' 833localstatedir='${prefix}/var' 834runstatedir='${localstatedir}/run' 835includedir='${prefix}/include' 836oldincludedir='/usr/include' 837docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 838infodir='${datarootdir}/info' 839htmldir='${docdir}' 840dvidir='${docdir}' 841pdfdir='${docdir}' 842psdir='${docdir}' 843libdir='${exec_prefix}/lib' 844localedir='${datarootdir}/locale' 845mandir='${datarootdir}/man' 846 847ac_prev= 848ac_dashdash= 849for ac_option 850do 851 # If the previous option needs an argument, assign it. 852 if test -n "$ac_prev"; then 853 eval $ac_prev=\$ac_option 854 ac_prev= 855 continue 856 fi 857 858 case $ac_option in 859 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 860 *=) ac_optarg= ;; 861 *) ac_optarg=yes ;; 862 esac 863 864 case $ac_dashdash$ac_option in 865 --) 866 ac_dashdash=yes ;; 867 868 -bindir | --bindir | --bindi | --bind | --bin | --bi) 869 ac_prev=bindir ;; 870 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 871 bindir=$ac_optarg ;; 872 873 -build | --build | --buil | --bui | --bu) 874 ac_prev=build_alias ;; 875 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 876 build_alias=$ac_optarg ;; 877 878 -cache-file | --cache-file | --cache-fil | --cache-fi \ 879 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 880 ac_prev=cache_file ;; 881 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 882 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 883 cache_file=$ac_optarg ;; 884 885 --config-cache | -C) 886 cache_file=config.cache ;; 887 888 -datadir | --datadir | --datadi | --datad) 889 ac_prev=datadir ;; 890 -datadir=* | --datadir=* | --datadi=* | --datad=*) 891 datadir=$ac_optarg ;; 892 893 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 894 | --dataroo | --dataro | --datar) 895 ac_prev=datarootdir ;; 896 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 897 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 898 datarootdir=$ac_optarg ;; 899 900 -disable-* | --disable-*) 901 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 902 # Reject names that are not valid shell variable names. 903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 904 as_fn_error $? "invalid feature name: '$ac_useropt'" 905 ac_useropt_orig=$ac_useropt 906 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 907 case $ac_user_opts in 908 *" 909"enable_$ac_useropt" 910"*) ;; 911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 912 ac_unrecognized_sep=', ';; 913 esac 914 eval enable_$ac_useropt=no ;; 915 916 -docdir | --docdir | --docdi | --doc | --do) 917 ac_prev=docdir ;; 918 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 919 docdir=$ac_optarg ;; 920 921 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 922 ac_prev=dvidir ;; 923 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 924 dvidir=$ac_optarg ;; 925 926 -enable-* | --enable-*) 927 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 928 # Reject names that are not valid shell variable names. 929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 930 as_fn_error $? "invalid feature name: '$ac_useropt'" 931 ac_useropt_orig=$ac_useropt 932 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 933 case $ac_user_opts in 934 *" 935"enable_$ac_useropt" 936"*) ;; 937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 938 ac_unrecognized_sep=', ';; 939 esac 940 eval enable_$ac_useropt=\$ac_optarg ;; 941 942 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 943 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 944 | --exec | --exe | --ex) 945 ac_prev=exec_prefix ;; 946 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 947 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 948 | --exec=* | --exe=* | --ex=*) 949 exec_prefix=$ac_optarg ;; 950 951 -gas | --gas | --ga | --g) 952 # Obsolete; use --with-gas. 953 with_gas=yes ;; 954 955 -help | --help | --hel | --he | -h) 956 ac_init_help=long ;; 957 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 958 ac_init_help=recursive ;; 959 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 960 ac_init_help=short ;; 961 962 -host | --host | --hos | --ho) 963 ac_prev=host_alias ;; 964 -host=* | --host=* | --hos=* | --ho=*) 965 host_alias=$ac_optarg ;; 966 967 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 968 ac_prev=htmldir ;; 969 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 970 | --ht=*) 971 htmldir=$ac_optarg ;; 972 973 -includedir | --includedir | --includedi | --included | --include \ 974 | --includ | --inclu | --incl | --inc) 975 ac_prev=includedir ;; 976 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 977 | --includ=* | --inclu=* | --incl=* | --inc=*) 978 includedir=$ac_optarg ;; 979 980 -infodir | --infodir | --infodi | --infod | --info | --inf) 981 ac_prev=infodir ;; 982 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 983 infodir=$ac_optarg ;; 984 985 -libdir | --libdir | --libdi | --libd) 986 ac_prev=libdir ;; 987 -libdir=* | --libdir=* | --libdi=* | --libd=*) 988 libdir=$ac_optarg ;; 989 990 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 991 | --libexe | --libex | --libe) 992 ac_prev=libexecdir ;; 993 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 994 | --libexe=* | --libex=* | --libe=*) 995 libexecdir=$ac_optarg ;; 996 997 -localedir | --localedir | --localedi | --localed | --locale) 998 ac_prev=localedir ;; 999 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1000 localedir=$ac_optarg ;; 1001 1002 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1003 | --localstate | --localstat | --localsta | --localst | --locals) 1004 ac_prev=localstatedir ;; 1005 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1006 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1007 localstatedir=$ac_optarg ;; 1008 1009 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1010 ac_prev=mandir ;; 1011 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1012 mandir=$ac_optarg ;; 1013 1014 -nfp | --nfp | --nf) 1015 # Obsolete; use --without-fp. 1016 with_fp=no ;; 1017 1018 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1019 | --no-cr | --no-c | -n) 1020 no_create=yes ;; 1021 1022 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1023 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1024 no_recursion=yes ;; 1025 1026 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1027 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1028 | --oldin | --oldi | --old | --ol | --o) 1029 ac_prev=oldincludedir ;; 1030 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1031 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1032 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1033 oldincludedir=$ac_optarg ;; 1034 1035 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1036 ac_prev=prefix ;; 1037 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1038 prefix=$ac_optarg ;; 1039 1040 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1041 | --program-pre | --program-pr | --program-p) 1042 ac_prev=program_prefix ;; 1043 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1044 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1045 program_prefix=$ac_optarg ;; 1046 1047 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1048 | --program-suf | --program-su | --program-s) 1049 ac_prev=program_suffix ;; 1050 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1051 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1052 program_suffix=$ac_optarg ;; 1053 1054 -program-transform-name | --program-transform-name \ 1055 | --program-transform-nam | --program-transform-na \ 1056 | --program-transform-n | --program-transform- \ 1057 | --program-transform | --program-transfor \ 1058 | --program-transfo | --program-transf \ 1059 | --program-trans | --program-tran \ 1060 | --progr-tra | --program-tr | --program-t) 1061 ac_prev=program_transform_name ;; 1062 -program-transform-name=* | --program-transform-name=* \ 1063 | --program-transform-nam=* | --program-transform-na=* \ 1064 | --program-transform-n=* | --program-transform-=* \ 1065 | --program-transform=* | --program-transfor=* \ 1066 | --program-transfo=* | --program-transf=* \ 1067 | --program-trans=* | --program-tran=* \ 1068 | --progr-tra=* | --program-tr=* | --program-t=*) 1069 program_transform_name=$ac_optarg ;; 1070 1071 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1072 ac_prev=pdfdir ;; 1073 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1074 pdfdir=$ac_optarg ;; 1075 1076 -psdir | --psdir | --psdi | --psd | --ps) 1077 ac_prev=psdir ;; 1078 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1079 psdir=$ac_optarg ;; 1080 1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1082 | -silent | --silent | --silen | --sile | --sil) 1083 silent=yes ;; 1084 1085 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1086 | --runstate | --runstat | --runsta | --runst | --runs \ 1087 | --run | --ru | --r) 1088 ac_prev=runstatedir ;; 1089 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1090 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1091 | --run=* | --ru=* | --r=*) 1092 runstatedir=$ac_optarg ;; 1093 1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1095 ac_prev=sbindir ;; 1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1097 | --sbi=* | --sb=*) 1098 sbindir=$ac_optarg ;; 1099 1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1102 | --sharedst | --shareds | --shared | --share | --shar \ 1103 | --sha | --sh) 1104 ac_prev=sharedstatedir ;; 1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1108 | --sha=* | --sh=*) 1109 sharedstatedir=$ac_optarg ;; 1110 1111 -site | --site | --sit) 1112 ac_prev=site ;; 1113 -site=* | --site=* | --sit=*) 1114 site=$ac_optarg ;; 1115 1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1117 ac_prev=srcdir ;; 1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1119 srcdir=$ac_optarg ;; 1120 1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1122 | --syscon | --sysco | --sysc | --sys | --sy) 1123 ac_prev=sysconfdir ;; 1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1126 sysconfdir=$ac_optarg ;; 1127 1128 -target | --target | --targe | --targ | --tar | --ta | --t) 1129 ac_prev=target_alias ;; 1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1131 target_alias=$ac_optarg ;; 1132 1133 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1134 verbose=yes ;; 1135 1136 -version | --version | --versio | --versi | --vers | -V) 1137 ac_init_version=: ;; 1138 1139 -with-* | --with-*) 1140 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1141 # Reject names that are not valid shell variable names. 1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1143 as_fn_error $? "invalid package name: '$ac_useropt'" 1144 ac_useropt_orig=$ac_useropt 1145 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1146 case $ac_user_opts in 1147 *" 1148"with_$ac_useropt" 1149"*) ;; 1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1151 ac_unrecognized_sep=', ';; 1152 esac 1153 eval with_$ac_useropt=\$ac_optarg ;; 1154 1155 -without-* | --without-*) 1156 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1157 # Reject names that are not valid shell variable names. 1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1159 as_fn_error $? "invalid package name: '$ac_useropt'" 1160 ac_useropt_orig=$ac_useropt 1161 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1162 case $ac_user_opts in 1163 *" 1164"with_$ac_useropt" 1165"*) ;; 1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1167 ac_unrecognized_sep=', ';; 1168 esac 1169 eval with_$ac_useropt=no ;; 1170 1171 --x) 1172 # Obsolete; use --with-x. 1173 with_x=yes ;; 1174 1175 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1176 | --x-incl | --x-inc | --x-in | --x-i) 1177 ac_prev=x_includes ;; 1178 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1179 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1180 x_includes=$ac_optarg ;; 1181 1182 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1183 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1184 ac_prev=x_libraries ;; 1185 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1186 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1187 x_libraries=$ac_optarg ;; 1188 1189 -*) as_fn_error $? "unrecognized option: '$ac_option' 1190Try '$0 --help' for more information" 1191 ;; 1192 1193 *=*) 1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1195 # Reject names that are not valid shell variable names. 1196 case $ac_envvar in #( 1197 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1198 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1199 esac 1200 eval $ac_envvar=\$ac_optarg 1201 export $ac_envvar ;; 1202 1203 *) 1204 # FIXME: should be removed in autoconf 3.0. 1205 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1206 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1207 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1208 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1209 ;; 1210 1211 esac 1212done 1213 1214if test -n "$ac_prev"; then 1215 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1216 as_fn_error $? "missing argument to $ac_option" 1217fi 1218 1219if test -n "$ac_unrecognized_opts"; then 1220 case $enable_option_checking in 1221 no) ;; 1222 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1223 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1224 esac 1225fi 1226 1227# Check all directory arguments for consistency. 1228for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1229 datadir sysconfdir sharedstatedir localstatedir includedir \ 1230 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1231 libdir localedir mandir runstatedir 1232do 1233 eval ac_val=\$$ac_var 1234 # Remove trailing slashes. 1235 case $ac_val in 1236 */ ) 1237 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1238 eval $ac_var=\$ac_val;; 1239 esac 1240 # Be sure to have absolute directory names. 1241 case $ac_val in 1242 [\\/$]* | ?:[\\/]* ) continue;; 1243 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1244 esac 1245 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1246done 1247 1248# There might be people who depend on the old broken behavior: '$host' 1249# used to hold the argument of --host etc. 1250# FIXME: To remove some day. 1251build=$build_alias 1252host=$host_alias 1253target=$target_alias 1254 1255# FIXME: To remove some day. 1256if test "x$host_alias" != x; then 1257 if test "x$build_alias" = x; then 1258 cross_compiling=maybe 1259 elif test "x$build_alias" != "x$host_alias"; then 1260 cross_compiling=yes 1261 fi 1262fi 1263 1264ac_tool_prefix= 1265test -n "$host_alias" && ac_tool_prefix=$host_alias- 1266 1267test "$silent" = yes && exec 6>/dev/null 1268 1269 1270ac_pwd=`pwd` && test -n "$ac_pwd" && 1271ac_ls_di=`ls -di .` && 1272ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1273 as_fn_error $? "working directory cannot be determined" 1274test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1275 as_fn_error $? "pwd does not report name of working directory" 1276 1277 1278# Find the source files, if location was not specified. 1279if test -z "$srcdir"; then 1280 ac_srcdir_defaulted=yes 1281 # Try the directory containing this script, then the parent directory. 1282 ac_confdir=`$as_dirname -- "$as_myself" || 1283$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1284 X"$as_myself" : 'X\(//\)[^/]' \| \ 1285 X"$as_myself" : 'X\(//\)$' \| \ 1286 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1287printf "%s\n" X"$as_myself" | 1288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1289 s//\1/ 1290 q 1291 } 1292 /^X\(\/\/\)[^/].*/{ 1293 s//\1/ 1294 q 1295 } 1296 /^X\(\/\/\)$/{ 1297 s//\1/ 1298 q 1299 } 1300 /^X\(\/\).*/{ 1301 s//\1/ 1302 q 1303 } 1304 s/.*/./; q'` 1305 srcdir=$ac_confdir 1306 if test ! -r "$srcdir/$ac_unique_file"; then 1307 srcdir=.. 1308 fi 1309else 1310 ac_srcdir_defaulted=no 1311fi 1312if test ! -r "$srcdir/$ac_unique_file"; then 1313 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1314 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1315fi 1316ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1317ac_abs_confdir=`( 1318 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1319 pwd)` 1320# When building in place, set srcdir=. 1321if test "$ac_abs_confdir" = "$ac_pwd"; then 1322 srcdir=. 1323fi 1324# Remove unnecessary trailing slashes from srcdir. 1325# Double slashes in file names in object file debugging info 1326# mess up M-x gdb in Emacs. 1327case $srcdir in 1328*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1329esac 1330for ac_var in $ac_precious_vars; do 1331 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1332 eval ac_env_${ac_var}_value=\$${ac_var} 1333 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1334 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1335done 1336 1337# 1338# Report the --help message. 1339# 1340if test "$ac_init_help" = "long"; then 1341 # Omit some internal or obsolete options to make the list less imposing. 1342 # This message is too long to be a string in the A/UX 3.1 sh. 1343 cat <<_ACEOF 1344'configure' configures makedepend 1.0.9 to adapt to many kinds of systems. 1345 1346Usage: $0 [OPTION]... [VAR=VALUE]... 1347 1348To assign environment variables (e.g., CC, CFLAGS...), specify them as 1349VAR=VALUE. See below for descriptions of some of the useful variables. 1350 1351Defaults for the options are specified in brackets. 1352 1353Configuration: 1354 -h, --help display this help and exit 1355 --help=short display options specific to this package 1356 --help=recursive display the short help of all the included packages 1357 -V, --version display version information and exit 1358 -q, --quiet, --silent do not print 'checking ...' messages 1359 --cache-file=FILE cache test results in FILE [disabled] 1360 -C, --config-cache alias for '--cache-file=config.cache' 1361 -n, --no-create do not create output files 1362 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1363 1364Installation directories: 1365 --prefix=PREFIX install architecture-independent files in PREFIX 1366 [$ac_default_prefix] 1367 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1368 [PREFIX] 1369 1370By default, 'make install' will install all the files in 1371'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1372an installation prefix other than '$ac_default_prefix' using '--prefix', 1373for instance '--prefix=\$HOME'. 1374 1375For better control, use the options below. 1376 1377Fine tuning of the installation directories: 1378 --bindir=DIR user executables [EPREFIX/bin] 1379 --sbindir=DIR system admin executables [EPREFIX/sbin] 1380 --libexecdir=DIR program executables [EPREFIX/libexec] 1381 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1382 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1383 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1384 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1385 --libdir=DIR object code libraries [EPREFIX/lib] 1386 --includedir=DIR C header files [PREFIX/include] 1387 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1388 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1389 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1390 --infodir=DIR info documentation [DATAROOTDIR/info] 1391 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1392 --mandir=DIR man documentation [DATAROOTDIR/man] 1393 --docdir=DIR documentation root [DATAROOTDIR/doc/makedepend] 1394 --htmldir=DIR html documentation [DOCDIR] 1395 --dvidir=DIR dvi documentation [DOCDIR] 1396 --pdfdir=DIR pdf documentation [DOCDIR] 1397 --psdir=DIR ps documentation [DOCDIR] 1398_ACEOF 1399 1400 cat <<\_ACEOF 1401 1402Program names: 1403 --program-prefix=PREFIX prepend PREFIX to installed program names 1404 --program-suffix=SUFFIX append SUFFIX to installed program names 1405 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1406 1407System types: 1408 --build=BUILD configure for building on BUILD [guessed] 1409 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1410_ACEOF 1411fi 1412 1413if test -n "$ac_init_help"; then 1414 case $ac_init_help in 1415 short | recursive ) echo "Configuration of makedepend 1.0.9:";; 1416 esac 1417 cat <<\_ACEOF 1418 1419Optional Features: 1420 --disable-option-checking ignore unrecognized --enable/--with options 1421 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1422 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1423 --enable-dependency-tracking 1424 do not reject slow dependency extractors 1425 --disable-dependency-tracking 1426 speeds up one-time build 1427 --enable-silent-rules less verbose build output (undo: "make V=1") 1428 --disable-silent-rules verbose build output (undo: "make V=0") 1429 --disable-selective-werror 1430 Turn off selective compiler errors. (default: 1431 enabled) 1432 --enable-strict-compilation 1433 Enable all warnings from compiler and make them 1434 errors (default: disabled) 1435 --disable-largefile omit support for large files 1436 --enable-year2038 support timestamps after 2038 1437 1438Optional Packages: 1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1441 --with-lint Use a lint-style source code checker (default: 1442 disabled) 1443 1444Some influential environment variables: 1445 CC C compiler command 1446 CFLAGS C compiler flags 1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1448 nonstandard directory <lib dir> 1449 LIBS libraries to pass to the linker, e.g. -l<library> 1450 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1451 you have headers in a nonstandard directory <include dir> 1452 PKG_CONFIG path to pkg-config utility 1453 PKG_CONFIG_PATH 1454 directories to add to pkg-config's search path 1455 PKG_CONFIG_LIBDIR 1456 path overriding pkg-config's built-in search path 1457 LINT Path to a lint-style command 1458 LINT_FLAGS Flags for the lint-style command 1459 1460Use these variables to override the choices made by 'configure' or to help 1461it to find libraries and programs with nonstandard names/locations. 1462 1463Report bugs to <https://gitlab.freedesktop.org/xorg/util/makedepend/-/issues>. 1464_ACEOF 1465ac_status=$? 1466fi 1467 1468if test "$ac_init_help" = "recursive"; then 1469 # If there are subdirs, report their specific --help. 1470 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1471 test -d "$ac_dir" || 1472 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1473 continue 1474 ac_builddir=. 1475 1476case "$ac_dir" in 1477.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1478*) 1479 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1480 # A ".." for each directory in $ac_dir_suffix. 1481 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1482 case $ac_top_builddir_sub in 1483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1485 esac ;; 1486esac 1487ac_abs_top_builddir=$ac_pwd 1488ac_abs_builddir=$ac_pwd$ac_dir_suffix 1489# for backward compatibility: 1490ac_top_builddir=$ac_top_build_prefix 1491 1492case $srcdir in 1493 .) # We are building in place. 1494 ac_srcdir=. 1495 ac_top_srcdir=$ac_top_builddir_sub 1496 ac_abs_top_srcdir=$ac_pwd ;; 1497 [\\/]* | ?:[\\/]* ) # Absolute name. 1498 ac_srcdir=$srcdir$ac_dir_suffix; 1499 ac_top_srcdir=$srcdir 1500 ac_abs_top_srcdir=$srcdir ;; 1501 *) # Relative name. 1502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1503 ac_top_srcdir=$ac_top_build_prefix$srcdir 1504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1505esac 1506ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1507 1508 cd "$ac_dir" || { ac_status=$?; continue; } 1509 # Check for configure.gnu first; this name is used for a wrapper for 1510 # Metaconfig's "Configure" on case-insensitive file systems. 1511 if test -f "$ac_srcdir/configure.gnu"; then 1512 echo && 1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1514 elif test -f "$ac_srcdir/configure"; then 1515 echo && 1516 $SHELL "$ac_srcdir/configure" --help=recursive 1517 else 1518 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1519 fi || ac_status=$? 1520 cd "$ac_pwd" || { ac_status=$?; break; } 1521 done 1522fi 1523 1524test -n "$ac_init_help" && exit $ac_status 1525if $ac_init_version; then 1526 cat <<\_ACEOF 1527makedepend configure 1.0.9 1528generated by GNU Autoconf 2.72 1529 1530Copyright (C) 2023 Free Software Foundation, Inc. 1531This configure script is free software; the Free Software Foundation 1532gives unlimited permission to copy, distribute and modify it. 1533_ACEOF 1534 exit 1535fi 1536 1537## ------------------------ ## 1538## Autoconf initialization. ## 1539## ------------------------ ## 1540 1541# ac_fn_c_try_compile LINENO 1542# -------------------------- 1543# Try to compile conftest.$ac_ext, and return whether this succeeded. 1544ac_fn_c_try_compile () 1545{ 1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1547 rm -f conftest.$ac_objext conftest.beam 1548 if { { ac_try="$ac_compile" 1549case "(($ac_try" in 1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1551 *) ac_try_echo=$ac_try;; 1552esac 1553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1554printf "%s\n" "$ac_try_echo"; } >&5 1555 (eval "$ac_compile") 2>conftest.err 1556 ac_status=$? 1557 if test -s conftest.err; then 1558 grep -v '^ *+' conftest.err >conftest.er1 1559 cat conftest.er1 >&5 1560 mv -f conftest.er1 conftest.err 1561 fi 1562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1563 test $ac_status = 0; } && { 1564 test -z "$ac_c_werror_flag" || 1565 test ! -s conftest.err 1566 } && test -s conftest.$ac_objext 1567then : 1568 ac_retval=0 1569else case e in #( 1570 e) printf "%s\n" "$as_me: failed program was:" >&5 1571sed 's/^/| /' conftest.$ac_ext >&5 1572 1573 ac_retval=1 ;; 1574esac 1575fi 1576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1577 as_fn_set_status $ac_retval 1578 1579} # ac_fn_c_try_compile 1580 1581# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1582# ------------------------------------------------------- 1583# Tests whether HEADER exists and can be compiled using the include files in 1584# INCLUDES, setting the cache variable VAR accordingly. 1585ac_fn_c_check_header_compile () 1586{ 1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1589printf %s "checking for $2... " >&6; } 1590if eval test \${$3+y} 1591then : 1592 printf %s "(cached) " >&6 1593else case e in #( 1594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1595/* end confdefs.h. */ 1596$4 1597#include <$2> 1598_ACEOF 1599if ac_fn_c_try_compile "$LINENO" 1600then : 1601 eval "$3=yes" 1602else case e in #( 1603 e) eval "$3=no" ;; 1604esac 1605fi 1606rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1607esac 1608fi 1609eval ac_res=\$$3 1610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1611printf "%s\n" "$ac_res" >&6; } 1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1613 1614} # ac_fn_c_check_header_compile 1615 1616# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1617# ------------------------------------------------------------------ 1618# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1619# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1620ac_fn_check_decl () 1621{ 1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1623 as_decl_name=`echo $2|sed 's/ *(.*//'` 1624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1625printf %s "checking whether $as_decl_name is declared... " >&6; } 1626if eval test \${$3+y} 1627then : 1628 printf %s "(cached) " >&6 1629else case e in #( 1630 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1631 eval ac_save_FLAGS=\$$6 1632 as_fn_append $6 " $5" 1633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1634/* end confdefs.h. */ 1635$4 1636int 1637main (void) 1638{ 1639#ifndef $as_decl_name 1640#ifdef __cplusplus 1641 (void) $as_decl_use; 1642#else 1643 (void) $as_decl_name; 1644#endif 1645#endif 1646 1647 ; 1648 return 0; 1649} 1650_ACEOF 1651if ac_fn_c_try_compile "$LINENO" 1652then : 1653 eval "$3=yes" 1654else case e in #( 1655 e) eval "$3=no" ;; 1656esac 1657fi 1658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1659 eval $6=\$ac_save_FLAGS 1660 ;; 1661esac 1662fi 1663eval ac_res=\$$3 1664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1665printf "%s\n" "$ac_res" >&6; } 1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1667 1668} # ac_fn_check_decl 1669 1670# ac_fn_c_try_link LINENO 1671# ----------------------- 1672# Try to link conftest.$ac_ext, and return whether this succeeded. 1673ac_fn_c_try_link () 1674{ 1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1676 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1677 if { { ac_try="$ac_link" 1678case "(($ac_try" in 1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1680 *) ac_try_echo=$ac_try;; 1681esac 1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1683printf "%s\n" "$ac_try_echo"; } >&5 1684 (eval "$ac_link") 2>conftest.err 1685 ac_status=$? 1686 if test -s conftest.err; then 1687 grep -v '^ *+' conftest.err >conftest.er1 1688 cat conftest.er1 >&5 1689 mv -f conftest.er1 conftest.err 1690 fi 1691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1692 test $ac_status = 0; } && { 1693 test -z "$ac_c_werror_flag" || 1694 test ! -s conftest.err 1695 } && test -s conftest$ac_exeext && { 1696 test "$cross_compiling" = yes || 1697 test -x conftest$ac_exeext 1698 } 1699then : 1700 ac_retval=0 1701else case e in #( 1702 e) printf "%s\n" "$as_me: failed program was:" >&5 1703sed 's/^/| /' conftest.$ac_ext >&5 1704 1705 ac_retval=1 ;; 1706esac 1707fi 1708 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1709 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1710 # interfere with the next link command; also delete a directory that is 1711 # left behind by Apple's compiler. We do this before executing the actions. 1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1714 as_fn_set_status $ac_retval 1715 1716} # ac_fn_c_try_link 1717 1718# ac_fn_c_check_func LINENO FUNC VAR 1719# ---------------------------------- 1720# Tests whether FUNC exists, setting the cache variable VAR accordingly 1721ac_fn_c_check_func () 1722{ 1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1725printf %s "checking for $2... " >&6; } 1726if eval test \${$3+y} 1727then : 1728 printf %s "(cached) " >&6 1729else case e in #( 1730 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1731/* end confdefs.h. */ 1732/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1733 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1734#define $2 innocuous_$2 1735 1736/* System header to define __stub macros and hopefully few prototypes, 1737 which can conflict with char $2 (void); below. */ 1738 1739#include <limits.h> 1740#undef $2 1741 1742/* Override any GCC internal prototype to avoid an error. 1743 Use char because int might match the return type of a GCC 1744 builtin and then its argument prototype would still apply. */ 1745#ifdef __cplusplus 1746extern "C" 1747#endif 1748char $2 (void); 1749/* The GNU C library defines this for functions which it implements 1750 to always fail with ENOSYS. Some functions are actually named 1751 something starting with __ and the normal name is an alias. */ 1752#if defined __stub_$2 || defined __stub___$2 1753choke me 1754#endif 1755 1756int 1757main (void) 1758{ 1759return $2 (); 1760 ; 1761 return 0; 1762} 1763_ACEOF 1764if ac_fn_c_try_link "$LINENO" 1765then : 1766 eval "$3=yes" 1767else case e in #( 1768 e) eval "$3=no" ;; 1769esac 1770fi 1771rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1772 conftest$ac_exeext conftest.$ac_ext ;; 1773esac 1774fi 1775eval ac_res=\$$3 1776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1777printf "%s\n" "$ac_res" >&6; } 1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1779 1780} # ac_fn_c_check_func 1781ac_configure_args_raw= 1782for ac_arg 1783do 1784 case $ac_arg in 1785 *\'*) 1786 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1787 esac 1788 as_fn_append ac_configure_args_raw " '$ac_arg'" 1789done 1790 1791case $ac_configure_args_raw in 1792 *$as_nl*) 1793 ac_safe_unquote= ;; 1794 *) 1795 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1796 ac_unsafe_a="$ac_unsafe_z#~" 1797 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1798 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1799esac 1800 1801cat >config.log <<_ACEOF 1802This file contains any messages produced by compilers while 1803running configure, to aid debugging if configure makes a mistake. 1804 1805It was created by makedepend $as_me 1.0.9, which was 1806generated by GNU Autoconf 2.72. Invocation command line was 1807 1808 $ $0$ac_configure_args_raw 1809 1810_ACEOF 1811exec 5>>config.log 1812{ 1813cat <<_ASUNAME 1814## --------- ## 1815## Platform. ## 1816## --------- ## 1817 1818hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1819uname -m = `(uname -m) 2>/dev/null || echo unknown` 1820uname -r = `(uname -r) 2>/dev/null || echo unknown` 1821uname -s = `(uname -s) 2>/dev/null || echo unknown` 1822uname -v = `(uname -v) 2>/dev/null || echo unknown` 1823 1824/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1825/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1826 1827/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1828/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1829/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1830/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1831/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1832/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1833/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1834 1835_ASUNAME 1836 1837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1838for as_dir in $PATH 1839do 1840 IFS=$as_save_IFS 1841 case $as_dir in #((( 1842 '') as_dir=./ ;; 1843 */) ;; 1844 *) as_dir=$as_dir/ ;; 1845 esac 1846 printf "%s\n" "PATH: $as_dir" 1847 done 1848IFS=$as_save_IFS 1849 1850} >&5 1851 1852cat >&5 <<_ACEOF 1853 1854 1855## ----------- ## 1856## Core tests. ## 1857## ----------- ## 1858 1859_ACEOF 1860 1861 1862# Keep a trace of the command line. 1863# Strip out --no-create and --no-recursion so they do not pile up. 1864# Strip out --silent because we don't want to record it for future runs. 1865# Also quote any args containing shell meta-characters. 1866# Make two passes to allow for proper duplicate-argument suppression. 1867ac_configure_args= 1868ac_configure_args0= 1869ac_configure_args1= 1870ac_must_keep_next=false 1871for ac_pass in 1 2 1872do 1873 for ac_arg 1874 do 1875 case $ac_arg in 1876 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1878 | -silent | --silent | --silen | --sile | --sil) 1879 continue ;; 1880 *\'*) 1881 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1882 esac 1883 case $ac_pass in 1884 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1885 2) 1886 as_fn_append ac_configure_args1 " '$ac_arg'" 1887 if test $ac_must_keep_next = true; then 1888 ac_must_keep_next=false # Got value, back to normal. 1889 else 1890 case $ac_arg in 1891 *=* | --config-cache | -C | -disable-* | --disable-* \ 1892 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1893 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1894 | -with-* | --with-* | -without-* | --without-* | --x) 1895 case "$ac_configure_args0 " in 1896 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1897 esac 1898 ;; 1899 -* ) ac_must_keep_next=true ;; 1900 esac 1901 fi 1902 as_fn_append ac_configure_args " '$ac_arg'" 1903 ;; 1904 esac 1905 done 1906done 1907{ ac_configure_args0=; unset ac_configure_args0;} 1908{ ac_configure_args1=; unset ac_configure_args1;} 1909 1910# When interrupted or exit'd, cleanup temporary files, and complete 1911# config.log. We remove comments because anyway the quotes in there 1912# would cause problems or look ugly. 1913# WARNING: Use '\'' to represent an apostrophe within the trap. 1914# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1915trap 'exit_status=$? 1916 # Sanitize IFS. 1917 IFS=" "" $as_nl" 1918 # Save into config.log some information that might help in debugging. 1919 { 1920 echo 1921 1922 printf "%s\n" "## ---------------- ## 1923## Cache variables. ## 1924## ---------------- ##" 1925 echo 1926 # The following way of writing the cache mishandles newlines in values, 1927( 1928 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1929 eval ac_val=\$$ac_var 1930 case $ac_val in #( 1931 *${as_nl}*) 1932 case $ac_var in #( 1933 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1934printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1935 esac 1936 case $ac_var in #( 1937 _ | IFS | as_nl) ;; #( 1938 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1939 *) { eval $ac_var=; unset $ac_var;} ;; 1940 esac ;; 1941 esac 1942 done 1943 (set) 2>&1 | 1944 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1945 *${as_nl}ac_space=\ *) 1946 sed -n \ 1947 "s/'\''/'\''\\\\'\'''\''/g; 1948 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1949 ;; #( 1950 *) 1951 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1952 ;; 1953 esac | 1954 sort 1955) 1956 echo 1957 1958 printf "%s\n" "## ----------------- ## 1959## Output variables. ## 1960## ----------------- ##" 1961 echo 1962 for ac_var in $ac_subst_vars 1963 do 1964 eval ac_val=\$$ac_var 1965 case $ac_val in 1966 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1967 esac 1968 printf "%s\n" "$ac_var='\''$ac_val'\''" 1969 done | sort 1970 echo 1971 1972 if test -n "$ac_subst_files"; then 1973 printf "%s\n" "## ------------------- ## 1974## File substitutions. ## 1975## ------------------- ##" 1976 echo 1977 for ac_var in $ac_subst_files 1978 do 1979 eval ac_val=\$$ac_var 1980 case $ac_val in 1981 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1982 esac 1983 printf "%s\n" "$ac_var='\''$ac_val'\''" 1984 done | sort 1985 echo 1986 fi 1987 1988 if test -s confdefs.h; then 1989 printf "%s\n" "## ----------- ## 1990## confdefs.h. ## 1991## ----------- ##" 1992 echo 1993 cat confdefs.h 1994 echo 1995 fi 1996 test "$ac_signal" != 0 && 1997 printf "%s\n" "$as_me: caught signal $ac_signal" 1998 printf "%s\n" "$as_me: exit $exit_status" 1999 } >&5 2000 rm -f core *.core core.conftest.* && 2001 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2002 exit $exit_status 2003' 0 2004for ac_signal in 1 2 13 15; do 2005 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2006done 2007ac_signal=0 2008 2009# confdefs.h avoids OS command line length limits that DEFS can exceed. 2010rm -f -r conftest* confdefs.h 2011 2012printf "%s\n" "/* confdefs.h */" > confdefs.h 2013 2014# Predefined preprocessor variables. 2015 2016printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2017 2018printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2019 2020printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2021 2022printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2023 2024printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2025 2026printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2027 2028 2029# Let the site file select an alternate cache file if it wants to. 2030# Prefer an explicitly selected file to automatically selected ones. 2031if test -n "$CONFIG_SITE"; then 2032 ac_site_files="$CONFIG_SITE" 2033elif test "x$prefix" != xNONE; then 2034 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2035else 2036 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2037fi 2038 2039for ac_site_file in $ac_site_files 2040do 2041 case $ac_site_file in #( 2042 */*) : 2043 ;; #( 2044 *) : 2045 ac_site_file=./$ac_site_file ;; 2046esac 2047 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2049printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2050 sed 's/^/| /' "$ac_site_file" >&5 2051 . "$ac_site_file" \ 2052 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2053printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2054as_fn_error $? "failed to load site script $ac_site_file 2055See 'config.log' for more details" "$LINENO" 5; } 2056 fi 2057done 2058 2059if test -r "$cache_file"; then 2060 # Some versions of bash will fail to source /dev/null (special files 2061 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2062 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2064printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2065 case $cache_file in 2066 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2067 *) . "./$cache_file";; 2068 esac 2069 fi 2070else 2071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2072printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2073 >$cache_file 2074fi 2075 2076as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2077# Test code for whether the C compiler supports C89 (global declarations) 2078ac_c_conftest_c89_globals=' 2079/* Does the compiler advertise C89 conformance? 2080 Do not test the value of __STDC__, because some compilers set it to 0 2081 while being otherwise adequately conformant. */ 2082#if !defined __STDC__ 2083# error "Compiler does not advertise C89 conformance" 2084#endif 2085 2086#include <stddef.h> 2087#include <stdarg.h> 2088struct stat; 2089/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2090struct buf { int x; }; 2091struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2092static char *e (char **p, int i) 2093{ 2094 return p[i]; 2095} 2096static char *f (char * (*g) (char **, int), char **p, ...) 2097{ 2098 char *s; 2099 va_list v; 2100 va_start (v,p); 2101 s = g (p, va_arg (v,int)); 2102 va_end (v); 2103 return s; 2104} 2105 2106/* C89 style stringification. */ 2107#define noexpand_stringify(a) #a 2108const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2109 2110/* C89 style token pasting. Exercises some of the corner cases that 2111 e.g. old MSVC gets wrong, but not very hard. */ 2112#define noexpand_concat(a,b) a##b 2113#define expand_concat(a,b) noexpand_concat(a,b) 2114extern int vA; 2115extern int vbee; 2116#define aye A 2117#define bee B 2118int *pvA = &expand_concat(v,aye); 2119int *pvbee = &noexpand_concat(v,bee); 2120 2121/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2122 function prototypes and stuff, but not \xHH hex character constants. 2123 These do not provoke an error unfortunately, instead are silently treated 2124 as an "x". The following induces an error, until -std is added to get 2125 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2126 array size at least. It is necessary to write \x00 == 0 to get something 2127 that is true only with -std. */ 2128int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2129 2130/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2131 inside strings and character constants. */ 2132#define FOO(x) '\''x'\'' 2133int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2134 2135int test (int i, double x); 2136struct s1 {int (*f) (int a);}; 2137struct s2 {int (*f) (double a);}; 2138int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2139 int, int);' 2140 2141# Test code for whether the C compiler supports C89 (body of main). 2142ac_c_conftest_c89_main=' 2143ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2144' 2145 2146# Test code for whether the C compiler supports C99 (global declarations) 2147ac_c_conftest_c99_globals=' 2148/* Does the compiler advertise C99 conformance? */ 2149#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2150# error "Compiler does not advertise C99 conformance" 2151#endif 2152 2153// See if C++-style comments work. 2154 2155#include <stdbool.h> 2156extern int puts (const char *); 2157extern int printf (const char *, ...); 2158extern int dprintf (int, const char *, ...); 2159extern void *malloc (size_t); 2160extern void free (void *); 2161 2162// Check varargs macros. These examples are taken from C99 6.10.3.5. 2163// dprintf is used instead of fprintf to avoid needing to declare 2164// FILE and stderr. 2165#define debug(...) dprintf (2, __VA_ARGS__) 2166#define showlist(...) puts (#__VA_ARGS__) 2167#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2168static void 2169test_varargs_macros (void) 2170{ 2171 int x = 1234; 2172 int y = 5678; 2173 debug ("Flag"); 2174 debug ("X = %d\n", x); 2175 showlist (The first, second, and third items.); 2176 report (x>y, "x is %d but y is %d", x, y); 2177} 2178 2179// Check long long types. 2180#define BIG64 18446744073709551615ull 2181#define BIG32 4294967295ul 2182#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2183#if !BIG_OK 2184 #error "your preprocessor is broken" 2185#endif 2186#if BIG_OK 2187#else 2188 #error "your preprocessor is broken" 2189#endif 2190static long long int bignum = -9223372036854775807LL; 2191static unsigned long long int ubignum = BIG64; 2192 2193struct incomplete_array 2194{ 2195 int datasize; 2196 double data[]; 2197}; 2198 2199struct named_init { 2200 int number; 2201 const wchar_t *name; 2202 double average; 2203}; 2204 2205typedef const char *ccp; 2206 2207static inline int 2208test_restrict (ccp restrict text) 2209{ 2210 // Iterate through items via the restricted pointer. 2211 // Also check for declarations in for loops. 2212 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2213 continue; 2214 return 0; 2215} 2216 2217// Check varargs and va_copy. 2218static bool 2219test_varargs (const char *format, ...) 2220{ 2221 va_list args; 2222 va_start (args, format); 2223 va_list args_copy; 2224 va_copy (args_copy, args); 2225 2226 const char *str = ""; 2227 int number = 0; 2228 float fnumber = 0; 2229 2230 while (*format) 2231 { 2232 switch (*format++) 2233 { 2234 case '\''s'\'': // string 2235 str = va_arg (args_copy, const char *); 2236 break; 2237 case '\''d'\'': // int 2238 number = va_arg (args_copy, int); 2239 break; 2240 case '\''f'\'': // float 2241 fnumber = va_arg (args_copy, double); 2242 break; 2243 default: 2244 break; 2245 } 2246 } 2247 va_end (args_copy); 2248 va_end (args); 2249 2250 return *str && number && fnumber; 2251} 2252' 2253 2254# Test code for whether the C compiler supports C99 (body of main). 2255ac_c_conftest_c99_main=' 2256 // Check bool. 2257 _Bool success = false; 2258 success |= (argc != 0); 2259 2260 // Check restrict. 2261 if (test_restrict ("String literal") == 0) 2262 success = true; 2263 char *restrict newvar = "Another string"; 2264 2265 // Check varargs. 2266 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2267 test_varargs_macros (); 2268 2269 // Check flexible array members. 2270 struct incomplete_array *ia = 2271 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2272 ia->datasize = 10; 2273 for (int i = 0; i < ia->datasize; ++i) 2274 ia->data[i] = i * 1.234; 2275 // Work around memory leak warnings. 2276 free (ia); 2277 2278 // Check named initializers. 2279 struct named_init ni = { 2280 .number = 34, 2281 .name = L"Test wide string", 2282 .average = 543.34343, 2283 }; 2284 2285 ni.number = 58; 2286 2287 int dynamic_array[ni.number]; 2288 dynamic_array[0] = argv[0][0]; 2289 dynamic_array[ni.number - 1] = 543; 2290 2291 // work around unused variable warnings 2292 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2293 || dynamic_array[ni.number - 1] != 543); 2294' 2295 2296# Test code for whether the C compiler supports C11 (global declarations) 2297ac_c_conftest_c11_globals=' 2298/* Does the compiler advertise C11 conformance? */ 2299#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2300# error "Compiler does not advertise C11 conformance" 2301#endif 2302 2303// Check _Alignas. 2304char _Alignas (double) aligned_as_double; 2305char _Alignas (0) no_special_alignment; 2306extern char aligned_as_int; 2307char _Alignas (0) _Alignas (int) aligned_as_int; 2308 2309// Check _Alignof. 2310enum 2311{ 2312 int_alignment = _Alignof (int), 2313 int_array_alignment = _Alignof (int[100]), 2314 char_alignment = _Alignof (char) 2315}; 2316_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2317 2318// Check _Noreturn. 2319int _Noreturn does_not_return (void) { for (;;) continue; } 2320 2321// Check _Static_assert. 2322struct test_static_assert 2323{ 2324 int x; 2325 _Static_assert (sizeof (int) <= sizeof (long int), 2326 "_Static_assert does not work in struct"); 2327 long int y; 2328}; 2329 2330// Check UTF-8 literals. 2331#define u8 syntax error! 2332char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2333 2334// Check duplicate typedefs. 2335typedef long *long_ptr; 2336typedef long int *long_ptr; 2337typedef long_ptr long_ptr; 2338 2339// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2340struct anonymous 2341{ 2342 union { 2343 struct { int i; int j; }; 2344 struct { int k; long int l; } w; 2345 }; 2346 int m; 2347} v1; 2348' 2349 2350# Test code for whether the C compiler supports C11 (body of main). 2351ac_c_conftest_c11_main=' 2352 _Static_assert ((offsetof (struct anonymous, i) 2353 == offsetof (struct anonymous, w.k)), 2354 "Anonymous union alignment botch"); 2355 v1.i = 2; 2356 v1.w.k = 5; 2357 ok |= v1.i != 5; 2358' 2359 2360# Test code for whether the C compiler supports C11 (complete). 2361ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2362${ac_c_conftest_c99_globals} 2363${ac_c_conftest_c11_globals} 2364 2365int 2366main (int argc, char **argv) 2367{ 2368 int ok = 0; 2369 ${ac_c_conftest_c89_main} 2370 ${ac_c_conftest_c99_main} 2371 ${ac_c_conftest_c11_main} 2372 return ok; 2373} 2374" 2375 2376# Test code for whether the C compiler supports C99 (complete). 2377ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2378${ac_c_conftest_c99_globals} 2379 2380int 2381main (int argc, char **argv) 2382{ 2383 int ok = 0; 2384 ${ac_c_conftest_c89_main} 2385 ${ac_c_conftest_c99_main} 2386 return ok; 2387} 2388" 2389 2390# Test code for whether the C compiler supports C89 (complete). 2391ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2392 2393int 2394main (int argc, char **argv) 2395{ 2396 int ok = 0; 2397 ${ac_c_conftest_c89_main} 2398 return ok; 2399} 2400" 2401 2402as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2403as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2404as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2405as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2406as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2407as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2408as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2409as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2410as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2411as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2412 2413# Auxiliary files required by this configure script. 2414ac_aux_files="config.guess config.sub missing install-sh compile" 2415 2416# Locations in which to look for auxiliary files. 2417ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2418 2419# Search for a directory containing all of the required auxiliary files, 2420# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2421# If we don't find one directory that contains all the files we need, 2422# we report the set of missing files from the *first* directory in 2423# $ac_aux_dir_candidates and give up. 2424ac_missing_aux_files="" 2425ac_first_candidate=: 2426printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2428as_found=false 2429for as_dir in $ac_aux_dir_candidates 2430do 2431 IFS=$as_save_IFS 2432 case $as_dir in #((( 2433 '') as_dir=./ ;; 2434 */) ;; 2435 *) as_dir=$as_dir/ ;; 2436 esac 2437 as_found=: 2438 2439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2440 ac_aux_dir_found=yes 2441 ac_install_sh= 2442 for ac_aux in $ac_aux_files 2443 do 2444 # As a special case, if "install-sh" is required, that requirement 2445 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2446 # and $ac_install_sh is set appropriately for whichever one is found. 2447 if test x"$ac_aux" = x"install-sh" 2448 then 2449 if test -f "${as_dir}install-sh"; then 2450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2451 ac_install_sh="${as_dir}install-sh -c" 2452 elif test -f "${as_dir}install.sh"; then 2453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2454 ac_install_sh="${as_dir}install.sh -c" 2455 elif test -f "${as_dir}shtool"; then 2456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2457 ac_install_sh="${as_dir}shtool install -c" 2458 else 2459 ac_aux_dir_found=no 2460 if $ac_first_candidate; then 2461 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2462 else 2463 break 2464 fi 2465 fi 2466 else 2467 if test -f "${as_dir}${ac_aux}"; then 2468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2469 else 2470 ac_aux_dir_found=no 2471 if $ac_first_candidate; then 2472 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2473 else 2474 break 2475 fi 2476 fi 2477 fi 2478 done 2479 if test "$ac_aux_dir_found" = yes; then 2480 ac_aux_dir="$as_dir" 2481 break 2482 fi 2483 ac_first_candidate=false 2484 2485 as_found=false 2486done 2487IFS=$as_save_IFS 2488if $as_found 2489then : 2490 2491else case e in #( 2492 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2493esac 2494fi 2495 2496 2497# These three variables are undocumented and unsupported, 2498# and are intended to be withdrawn in a future Autoconf release. 2499# They can cause serious problems if a builder's source tree is in a directory 2500# whose full name contains unusual characters. 2501if test -f "${ac_aux_dir}config.guess"; then 2502 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2503fi 2504if test -f "${ac_aux_dir}config.sub"; then 2505 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2506fi 2507if test -f "$ac_aux_dir/configure"; then 2508 ac_configure="$SHELL ${ac_aux_dir}configure" 2509fi 2510 2511# Check that the precious variables saved in the cache have kept the same 2512# value. 2513ac_cache_corrupted=false 2514for ac_var in $ac_precious_vars; do 2515 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2516 eval ac_new_set=\$ac_env_${ac_var}_set 2517 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2518 eval ac_new_val=\$ac_env_${ac_var}_value 2519 case $ac_old_set,$ac_new_set in 2520 set,) 2521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2522printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2523 ac_cache_corrupted=: ;; 2524 ,set) 2525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2526printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2527 ac_cache_corrupted=: ;; 2528 ,);; 2529 *) 2530 if test "x$ac_old_val" != "x$ac_new_val"; then 2531 # differences in whitespace do not lead to failure. 2532 ac_old_val_w=`echo x $ac_old_val` 2533 ac_new_val_w=`echo x $ac_new_val` 2534 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2536printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2537 ac_cache_corrupted=: 2538 else 2539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2540printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2541 eval $ac_var=\$ac_old_val 2542 fi 2543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2544printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2546printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2547 fi;; 2548 esac 2549 # Pass precious variables to config.status. 2550 if test "$ac_new_set" = set; then 2551 case $ac_new_val in 2552 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2553 *) ac_arg=$ac_var=$ac_new_val ;; 2554 esac 2555 case " $ac_configure_args " in 2556 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2557 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2558 esac 2559 fi 2560done 2561if $ac_cache_corrupted; then 2562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2563printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2565printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2566 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2567 and start over" "$LINENO" 5 2568fi 2569## -------------------- ## 2570## Main body of script. ## 2571## -------------------- ## 2572 2573ac_ext=c 2574ac_cpp='$CPP $CPPFLAGS' 2575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2577ac_compiler_gnu=$ac_cv_c_compiler_gnu 2578 2579 2580 2581ac_config_headers="$ac_config_headers makedepend-config.h" 2582 2583# Set common system defines for POSIX extensions, such as _GNU_SOURCE 2584# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL) 2585# to avoid autoconf errors. 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597# Expand $ac_aux_dir to an absolute path. 2598am_aux_dir=`cd "$ac_aux_dir" && pwd` 2599 2600ac_ext=c 2601ac_cpp='$CPP $CPPFLAGS' 2602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2604ac_compiler_gnu=$ac_cv_c_compiler_gnu 2605if test -n "$ac_tool_prefix"; then 2606 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2607set dummy ${ac_tool_prefix}gcc; ac_word=$2 2608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2609printf %s "checking for $ac_word... " >&6; } 2610if test ${ac_cv_prog_CC+y} 2611then : 2612 printf %s "(cached) " >&6 2613else case e in #( 2614 e) if test -n "$CC"; then 2615 ac_cv_prog_CC="$CC" # Let the user override the test. 2616else 2617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2618for as_dir in $PATH 2619do 2620 IFS=$as_save_IFS 2621 case $as_dir in #((( 2622 '') as_dir=./ ;; 2623 */) ;; 2624 *) as_dir=$as_dir/ ;; 2625 esac 2626 for ac_exec_ext in '' $ac_executable_extensions; do 2627 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2628 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2630 break 2 2631 fi 2632done 2633 done 2634IFS=$as_save_IFS 2635 2636fi ;; 2637esac 2638fi 2639CC=$ac_cv_prog_CC 2640if test -n "$CC"; then 2641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2642printf "%s\n" "$CC" >&6; } 2643else 2644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2645printf "%s\n" "no" >&6; } 2646fi 2647 2648 2649fi 2650if test -z "$ac_cv_prog_CC"; then 2651 ac_ct_CC=$CC 2652 # Extract the first word of "gcc", so it can be a program name with args. 2653set dummy gcc; ac_word=$2 2654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2655printf %s "checking for $ac_word... " >&6; } 2656if test ${ac_cv_prog_ac_ct_CC+y} 2657then : 2658 printf %s "(cached) " >&6 2659else case e in #( 2660 e) if test -n "$ac_ct_CC"; then 2661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2662else 2663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2664for as_dir in $PATH 2665do 2666 IFS=$as_save_IFS 2667 case $as_dir in #((( 2668 '') as_dir=./ ;; 2669 */) ;; 2670 *) as_dir=$as_dir/ ;; 2671 esac 2672 for ac_exec_ext in '' $ac_executable_extensions; do 2673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2674 ac_cv_prog_ac_ct_CC="gcc" 2675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2676 break 2 2677 fi 2678done 2679 done 2680IFS=$as_save_IFS 2681 2682fi ;; 2683esac 2684fi 2685ac_ct_CC=$ac_cv_prog_ac_ct_CC 2686if test -n "$ac_ct_CC"; then 2687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2688printf "%s\n" "$ac_ct_CC" >&6; } 2689else 2690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2691printf "%s\n" "no" >&6; } 2692fi 2693 2694 if test "x$ac_ct_CC" = x; then 2695 CC="" 2696 else 2697 case $cross_compiling:$ac_tool_warned in 2698yes:) 2699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2700printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2701ac_tool_warned=yes ;; 2702esac 2703 CC=$ac_ct_CC 2704 fi 2705else 2706 CC="$ac_cv_prog_CC" 2707fi 2708 2709if test -z "$CC"; then 2710 if test -n "$ac_tool_prefix"; then 2711 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2712set dummy ${ac_tool_prefix}cc; ac_word=$2 2713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2714printf %s "checking for $ac_word... " >&6; } 2715if test ${ac_cv_prog_CC+y} 2716then : 2717 printf %s "(cached) " >&6 2718else case e in #( 2719 e) if test -n "$CC"; then 2720 ac_cv_prog_CC="$CC" # Let the user override the test. 2721else 2722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2723for as_dir in $PATH 2724do 2725 IFS=$as_save_IFS 2726 case $as_dir in #((( 2727 '') as_dir=./ ;; 2728 */) ;; 2729 *) as_dir=$as_dir/ ;; 2730 esac 2731 for ac_exec_ext in '' $ac_executable_extensions; do 2732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2733 ac_cv_prog_CC="${ac_tool_prefix}cc" 2734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2735 break 2 2736 fi 2737done 2738 done 2739IFS=$as_save_IFS 2740 2741fi ;; 2742esac 2743fi 2744CC=$ac_cv_prog_CC 2745if test -n "$CC"; then 2746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2747printf "%s\n" "$CC" >&6; } 2748else 2749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2750printf "%s\n" "no" >&6; } 2751fi 2752 2753 2754 fi 2755fi 2756if test -z "$CC"; then 2757 # Extract the first word of "cc", so it can be a program name with args. 2758set dummy cc; ac_word=$2 2759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2760printf %s "checking for $ac_word... " >&6; } 2761if test ${ac_cv_prog_CC+y} 2762then : 2763 printf %s "(cached) " >&6 2764else case e in #( 2765 e) if test -n "$CC"; then 2766 ac_cv_prog_CC="$CC" # Let the user override the test. 2767else 2768 ac_prog_rejected=no 2769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2770for as_dir in $PATH 2771do 2772 IFS=$as_save_IFS 2773 case $as_dir in #((( 2774 '') as_dir=./ ;; 2775 */) ;; 2776 *) as_dir=$as_dir/ ;; 2777 esac 2778 for ac_exec_ext in '' $ac_executable_extensions; do 2779 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2780 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2781 ac_prog_rejected=yes 2782 continue 2783 fi 2784 ac_cv_prog_CC="cc" 2785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2786 break 2 2787 fi 2788done 2789 done 2790IFS=$as_save_IFS 2791 2792if test $ac_prog_rejected = yes; then 2793 # We found a bogon in the path, so make sure we never use it. 2794 set dummy $ac_cv_prog_CC 2795 shift 2796 if test $# != 0; then 2797 # We chose a different compiler from the bogus one. 2798 # However, it has the same basename, so the bogon will be chosen 2799 # first if we set CC to just the basename; use the full file name. 2800 shift 2801 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2802 fi 2803fi 2804fi ;; 2805esac 2806fi 2807CC=$ac_cv_prog_CC 2808if test -n "$CC"; then 2809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2810printf "%s\n" "$CC" >&6; } 2811else 2812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2813printf "%s\n" "no" >&6; } 2814fi 2815 2816 2817fi 2818if test -z "$CC"; then 2819 if test -n "$ac_tool_prefix"; then 2820 for ac_prog in cl.exe 2821 do 2822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2823set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2825printf %s "checking for $ac_word... " >&6; } 2826if test ${ac_cv_prog_CC+y} 2827then : 2828 printf %s "(cached) " >&6 2829else case e in #( 2830 e) if test -n "$CC"; then 2831 ac_cv_prog_CC="$CC" # Let the user override the test. 2832else 2833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2834for as_dir in $PATH 2835do 2836 IFS=$as_save_IFS 2837 case $as_dir in #((( 2838 '') as_dir=./ ;; 2839 */) ;; 2840 *) as_dir=$as_dir/ ;; 2841 esac 2842 for ac_exec_ext in '' $ac_executable_extensions; do 2843 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2844 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2846 break 2 2847 fi 2848done 2849 done 2850IFS=$as_save_IFS 2851 2852fi ;; 2853esac 2854fi 2855CC=$ac_cv_prog_CC 2856if test -n "$CC"; then 2857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2858printf "%s\n" "$CC" >&6; } 2859else 2860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2861printf "%s\n" "no" >&6; } 2862fi 2863 2864 2865 test -n "$CC" && break 2866 done 2867fi 2868if test -z "$CC"; then 2869 ac_ct_CC=$CC 2870 for ac_prog in cl.exe 2871do 2872 # Extract the first word of "$ac_prog", so it can be a program name with args. 2873set dummy $ac_prog; ac_word=$2 2874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2875printf %s "checking for $ac_word... " >&6; } 2876if test ${ac_cv_prog_ac_ct_CC+y} 2877then : 2878 printf %s "(cached) " >&6 2879else case e in #( 2880 e) if test -n "$ac_ct_CC"; then 2881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2882else 2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2884for as_dir in $PATH 2885do 2886 IFS=$as_save_IFS 2887 case $as_dir in #((( 2888 '') as_dir=./ ;; 2889 */) ;; 2890 *) as_dir=$as_dir/ ;; 2891 esac 2892 for ac_exec_ext in '' $ac_executable_extensions; do 2893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2894 ac_cv_prog_ac_ct_CC="$ac_prog" 2895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2896 break 2 2897 fi 2898done 2899 done 2900IFS=$as_save_IFS 2901 2902fi ;; 2903esac 2904fi 2905ac_ct_CC=$ac_cv_prog_ac_ct_CC 2906if test -n "$ac_ct_CC"; then 2907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2908printf "%s\n" "$ac_ct_CC" >&6; } 2909else 2910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2911printf "%s\n" "no" >&6; } 2912fi 2913 2914 2915 test -n "$ac_ct_CC" && break 2916done 2917 2918 if test "x$ac_ct_CC" = x; then 2919 CC="" 2920 else 2921 case $cross_compiling:$ac_tool_warned in 2922yes:) 2923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2924printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2925ac_tool_warned=yes ;; 2926esac 2927 CC=$ac_ct_CC 2928 fi 2929fi 2930 2931fi 2932if test -z "$CC"; then 2933 if test -n "$ac_tool_prefix"; then 2934 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2935set dummy ${ac_tool_prefix}clang; ac_word=$2 2936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2937printf %s "checking for $ac_word... " >&6; } 2938if test ${ac_cv_prog_CC+y} 2939then : 2940 printf %s "(cached) " >&6 2941else case e in #( 2942 e) if test -n "$CC"; then 2943 ac_cv_prog_CC="$CC" # Let the user override the test. 2944else 2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2946for as_dir in $PATH 2947do 2948 IFS=$as_save_IFS 2949 case $as_dir in #((( 2950 '') as_dir=./ ;; 2951 */) ;; 2952 *) as_dir=$as_dir/ ;; 2953 esac 2954 for ac_exec_ext in '' $ac_executable_extensions; do 2955 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2956 ac_cv_prog_CC="${ac_tool_prefix}clang" 2957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2958 break 2 2959 fi 2960done 2961 done 2962IFS=$as_save_IFS 2963 2964fi ;; 2965esac 2966fi 2967CC=$ac_cv_prog_CC 2968if test -n "$CC"; then 2969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2970printf "%s\n" "$CC" >&6; } 2971else 2972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2973printf "%s\n" "no" >&6; } 2974fi 2975 2976 2977fi 2978if test -z "$ac_cv_prog_CC"; then 2979 ac_ct_CC=$CC 2980 # Extract the first word of "clang", so it can be a program name with args. 2981set dummy clang; ac_word=$2 2982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2983printf %s "checking for $ac_word... " >&6; } 2984if test ${ac_cv_prog_ac_ct_CC+y} 2985then : 2986 printf %s "(cached) " >&6 2987else case e in #( 2988 e) if test -n "$ac_ct_CC"; then 2989 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2990else 2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2992for as_dir in $PATH 2993do 2994 IFS=$as_save_IFS 2995 case $as_dir in #((( 2996 '') as_dir=./ ;; 2997 */) ;; 2998 *) as_dir=$as_dir/ ;; 2999 esac 3000 for ac_exec_ext in '' $ac_executable_extensions; do 3001 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3002 ac_cv_prog_ac_ct_CC="clang" 3003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3004 break 2 3005 fi 3006done 3007 done 3008IFS=$as_save_IFS 3009 3010fi ;; 3011esac 3012fi 3013ac_ct_CC=$ac_cv_prog_ac_ct_CC 3014if test -n "$ac_ct_CC"; then 3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3016printf "%s\n" "$ac_ct_CC" >&6; } 3017else 3018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3019printf "%s\n" "no" >&6; } 3020fi 3021 3022 if test "x$ac_ct_CC" = x; then 3023 CC="" 3024 else 3025 case $cross_compiling:$ac_tool_warned in 3026yes:) 3027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3028printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3029ac_tool_warned=yes ;; 3030esac 3031 CC=$ac_ct_CC 3032 fi 3033else 3034 CC="$ac_cv_prog_CC" 3035fi 3036 3037fi 3038 3039 3040test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3041printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3042as_fn_error $? "no acceptable C compiler found in \$PATH 3043See 'config.log' for more details" "$LINENO" 5; } 3044 3045# Provide some information about the compiler. 3046printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3047set X $ac_compile 3048ac_compiler=$2 3049for ac_option in --version -v -V -qversion -version; do 3050 { { ac_try="$ac_compiler $ac_option >&5" 3051case "(($ac_try" in 3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3053 *) ac_try_echo=$ac_try;; 3054esac 3055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3056printf "%s\n" "$ac_try_echo"; } >&5 3057 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3058 ac_status=$? 3059 if test -s conftest.err; then 3060 sed '10a\ 3061... rest of stderr output deleted ... 3062 10q' conftest.err >conftest.er1 3063 cat conftest.er1 >&5 3064 fi 3065 rm -f conftest.er1 conftest.err 3066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3067 test $ac_status = 0; } 3068done 3069 3070cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3071/* end confdefs.h. */ 3072 3073int 3074main (void) 3075{ 3076 3077 ; 3078 return 0; 3079} 3080_ACEOF 3081ac_clean_files_save=$ac_clean_files 3082ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3083# Try to create an executable without -o first, disregard a.out. 3084# It will help us diagnose broken compilers, and finding out an intuition 3085# of exeext. 3086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3087printf %s "checking whether the C compiler works... " >&6; } 3088ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3089 3090# The possible output files: 3091ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3092 3093ac_rmfiles= 3094for ac_file in $ac_files 3095do 3096 case $ac_file in 3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3098 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3099 esac 3100done 3101rm -f $ac_rmfiles 3102 3103if { { ac_try="$ac_link_default" 3104case "(($ac_try" in 3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3106 *) ac_try_echo=$ac_try;; 3107esac 3108eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3109printf "%s\n" "$ac_try_echo"; } >&5 3110 (eval "$ac_link_default") 2>&5 3111 ac_status=$? 3112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3113 test $ac_status = 0; } 3114then : 3115 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3116# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3117# in a Makefile. We should not override ac_cv_exeext if it was cached, 3118# so that the user can short-circuit this test for compilers unknown to 3119# Autoconf. 3120for ac_file in $ac_files '' 3121do 3122 test -f "$ac_file" || continue 3123 case $ac_file in 3124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3125 ;; 3126 [ab].out ) 3127 # We found the default executable, but exeext='' is most 3128 # certainly right. 3129 break;; 3130 *.* ) 3131 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3132 then :; else 3133 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3134 fi 3135 # We set ac_cv_exeext here because the later test for it is not 3136 # safe: cross compilers may not add the suffix if given an '-o' 3137 # argument, so we may need to know it at that point already. 3138 # Even if this section looks crufty: it has the advantage of 3139 # actually working. 3140 break;; 3141 * ) 3142 break;; 3143 esac 3144done 3145test "$ac_cv_exeext" = no && ac_cv_exeext= 3146 3147else case e in #( 3148 e) ac_file='' ;; 3149esac 3150fi 3151if test -z "$ac_file" 3152then : 3153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3154printf "%s\n" "no" >&6; } 3155printf "%s\n" "$as_me: failed program was:" >&5 3156sed 's/^/| /' conftest.$ac_ext >&5 3157 3158{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3159printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3160as_fn_error 77 "C compiler cannot create executables 3161See 'config.log' for more details" "$LINENO" 5; } 3162else case e in #( 3163 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3164printf "%s\n" "yes" >&6; } ;; 3165esac 3166fi 3167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3168printf %s "checking for C compiler default output file name... " >&6; } 3169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3170printf "%s\n" "$ac_file" >&6; } 3171ac_exeext=$ac_cv_exeext 3172 3173rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3174ac_clean_files=$ac_clean_files_save 3175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3176printf %s "checking for suffix of executables... " >&6; } 3177if { { ac_try="$ac_link" 3178case "(($ac_try" in 3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3180 *) ac_try_echo=$ac_try;; 3181esac 3182eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3183printf "%s\n" "$ac_try_echo"; } >&5 3184 (eval "$ac_link") 2>&5 3185 ac_status=$? 3186 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3187 test $ac_status = 0; } 3188then : 3189 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3190# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3191# work properly (i.e., refer to 'conftest.exe'), while it won't with 3192# 'rm'. 3193for ac_file in conftest.exe conftest conftest.*; do 3194 test -f "$ac_file" || continue 3195 case $ac_file in 3196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3197 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3198 break;; 3199 * ) break;; 3200 esac 3201done 3202else case e in #( 3203 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3204printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3205as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3206See 'config.log' for more details" "$LINENO" 5; } ;; 3207esac 3208fi 3209rm -f conftest conftest$ac_cv_exeext 3210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3211printf "%s\n" "$ac_cv_exeext" >&6; } 3212 3213rm -f conftest.$ac_ext 3214EXEEXT=$ac_cv_exeext 3215ac_exeext=$EXEEXT 3216cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3217/* end confdefs.h. */ 3218#include <stdio.h> 3219int 3220main (void) 3221{ 3222FILE *f = fopen ("conftest.out", "w"); 3223 if (!f) 3224 return 1; 3225 return ferror (f) || fclose (f) != 0; 3226 3227 ; 3228 return 0; 3229} 3230_ACEOF 3231ac_clean_files="$ac_clean_files conftest.out" 3232# Check that the compiler produces executables we can run. If not, either 3233# the compiler is broken, or we cross compile. 3234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3235printf %s "checking whether we are cross compiling... " >&6; } 3236if test "$cross_compiling" != yes; then 3237 { { ac_try="$ac_link" 3238case "(($ac_try" in 3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3240 *) ac_try_echo=$ac_try;; 3241esac 3242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3243printf "%s\n" "$ac_try_echo"; } >&5 3244 (eval "$ac_link") 2>&5 3245 ac_status=$? 3246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3247 test $ac_status = 0; } 3248 if { ac_try='./conftest$ac_cv_exeext' 3249 { { case "(($ac_try" in 3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3251 *) ac_try_echo=$ac_try;; 3252esac 3253eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3254printf "%s\n" "$ac_try_echo"; } >&5 3255 (eval "$ac_try") 2>&5 3256 ac_status=$? 3257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3258 test $ac_status = 0; }; }; then 3259 cross_compiling=no 3260 else 3261 if test "$cross_compiling" = maybe; then 3262 cross_compiling=yes 3263 else 3264 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3265printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3266as_fn_error 77 "cannot run C compiled programs. 3267If you meant to cross compile, use '--host'. 3268See 'config.log' for more details" "$LINENO" 5; } 3269 fi 3270 fi 3271fi 3272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3273printf "%s\n" "$cross_compiling" >&6; } 3274 3275rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3276 conftest.o conftest.obj conftest.out 3277ac_clean_files=$ac_clean_files_save 3278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3279printf %s "checking for suffix of object files... " >&6; } 3280if test ${ac_cv_objext+y} 3281then : 3282 printf %s "(cached) " >&6 3283else case e in #( 3284 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3285/* end confdefs.h. */ 3286 3287int 3288main (void) 3289{ 3290 3291 ; 3292 return 0; 3293} 3294_ACEOF 3295rm -f conftest.o conftest.obj 3296if { { ac_try="$ac_compile" 3297case "(($ac_try" in 3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3299 *) ac_try_echo=$ac_try;; 3300esac 3301eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3302printf "%s\n" "$ac_try_echo"; } >&5 3303 (eval "$ac_compile") 2>&5 3304 ac_status=$? 3305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3306 test $ac_status = 0; } 3307then : 3308 for ac_file in conftest.o conftest.obj conftest.*; do 3309 test -f "$ac_file" || continue; 3310 case $ac_file in 3311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3312 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3313 break;; 3314 esac 3315done 3316else case e in #( 3317 e) printf "%s\n" "$as_me: failed program was:" >&5 3318sed 's/^/| /' conftest.$ac_ext >&5 3319 3320{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3321printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3322as_fn_error $? "cannot compute suffix of object files: cannot compile 3323See 'config.log' for more details" "$LINENO" 5; } ;; 3324esac 3325fi 3326rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3327esac 3328fi 3329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3330printf "%s\n" "$ac_cv_objext" >&6; } 3331OBJEXT=$ac_cv_objext 3332ac_objext=$OBJEXT 3333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3334printf %s "checking whether the compiler supports GNU C... " >&6; } 3335if test ${ac_cv_c_compiler_gnu+y} 3336then : 3337 printf %s "(cached) " >&6 3338else case e in #( 3339 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3340/* end confdefs.h. */ 3341 3342int 3343main (void) 3344{ 3345#ifndef __GNUC__ 3346 choke me 3347#endif 3348 3349 ; 3350 return 0; 3351} 3352_ACEOF 3353if ac_fn_c_try_compile "$LINENO" 3354then : 3355 ac_compiler_gnu=yes 3356else case e in #( 3357 e) ac_compiler_gnu=no ;; 3358esac 3359fi 3360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3361ac_cv_c_compiler_gnu=$ac_compiler_gnu 3362 ;; 3363esac 3364fi 3365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3366printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3367ac_compiler_gnu=$ac_cv_c_compiler_gnu 3368 3369if test $ac_compiler_gnu = yes; then 3370 GCC=yes 3371else 3372 GCC= 3373fi 3374ac_test_CFLAGS=${CFLAGS+y} 3375ac_save_CFLAGS=$CFLAGS 3376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3377printf %s "checking whether $CC accepts -g... " >&6; } 3378if test ${ac_cv_prog_cc_g+y} 3379then : 3380 printf %s "(cached) " >&6 3381else case e in #( 3382 e) ac_save_c_werror_flag=$ac_c_werror_flag 3383 ac_c_werror_flag=yes 3384 ac_cv_prog_cc_g=no 3385 CFLAGS="-g" 3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3387/* end confdefs.h. */ 3388 3389int 3390main (void) 3391{ 3392 3393 ; 3394 return 0; 3395} 3396_ACEOF 3397if ac_fn_c_try_compile "$LINENO" 3398then : 3399 ac_cv_prog_cc_g=yes 3400else case e in #( 3401 e) CFLAGS="" 3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3403/* end confdefs.h. */ 3404 3405int 3406main (void) 3407{ 3408 3409 ; 3410 return 0; 3411} 3412_ACEOF 3413if ac_fn_c_try_compile "$LINENO" 3414then : 3415 3416else case e in #( 3417 e) ac_c_werror_flag=$ac_save_c_werror_flag 3418 CFLAGS="-g" 3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3420/* end confdefs.h. */ 3421 3422int 3423main (void) 3424{ 3425 3426 ; 3427 return 0; 3428} 3429_ACEOF 3430if ac_fn_c_try_compile "$LINENO" 3431then : 3432 ac_cv_prog_cc_g=yes 3433fi 3434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3435esac 3436fi 3437rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3438esac 3439fi 3440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3441 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3442esac 3443fi 3444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3445printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3446if test $ac_test_CFLAGS; then 3447 CFLAGS=$ac_save_CFLAGS 3448elif test $ac_cv_prog_cc_g = yes; then 3449 if test "$GCC" = yes; then 3450 CFLAGS="-g -O2" 3451 else 3452 CFLAGS="-g" 3453 fi 3454else 3455 if test "$GCC" = yes; then 3456 CFLAGS="-O2" 3457 else 3458 CFLAGS= 3459 fi 3460fi 3461ac_prog_cc_stdc=no 3462if test x$ac_prog_cc_stdc = xno 3463then : 3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3465printf %s "checking for $CC option to enable C11 features... " >&6; } 3466if test ${ac_cv_prog_cc_c11+y} 3467then : 3468 printf %s "(cached) " >&6 3469else case e in #( 3470 e) ac_cv_prog_cc_c11=no 3471ac_save_CC=$CC 3472cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3473/* end confdefs.h. */ 3474$ac_c_conftest_c11_program 3475_ACEOF 3476for ac_arg in '' -std=gnu11 3477do 3478 CC="$ac_save_CC $ac_arg" 3479 if ac_fn_c_try_compile "$LINENO" 3480then : 3481 ac_cv_prog_cc_c11=$ac_arg 3482fi 3483rm -f core conftest.err conftest.$ac_objext conftest.beam 3484 test "x$ac_cv_prog_cc_c11" != "xno" && break 3485done 3486rm -f conftest.$ac_ext 3487CC=$ac_save_CC ;; 3488esac 3489fi 3490 3491if test "x$ac_cv_prog_cc_c11" = xno 3492then : 3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3494printf "%s\n" "unsupported" >&6; } 3495else case e in #( 3496 e) if test "x$ac_cv_prog_cc_c11" = x 3497then : 3498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3499printf "%s\n" "none needed" >&6; } 3500else case e in #( 3501 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3502printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3503 CC="$CC $ac_cv_prog_cc_c11" ;; 3504esac 3505fi 3506 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3507 ac_prog_cc_stdc=c11 ;; 3508esac 3509fi 3510fi 3511if test x$ac_prog_cc_stdc = xno 3512then : 3513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3514printf %s "checking for $CC option to enable C99 features... " >&6; } 3515if test ${ac_cv_prog_cc_c99+y} 3516then : 3517 printf %s "(cached) " >&6 3518else case e in #( 3519 e) ac_cv_prog_cc_c99=no 3520ac_save_CC=$CC 3521cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3522/* end confdefs.h. */ 3523$ac_c_conftest_c99_program 3524_ACEOF 3525for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3526do 3527 CC="$ac_save_CC $ac_arg" 3528 if ac_fn_c_try_compile "$LINENO" 3529then : 3530 ac_cv_prog_cc_c99=$ac_arg 3531fi 3532rm -f core conftest.err conftest.$ac_objext conftest.beam 3533 test "x$ac_cv_prog_cc_c99" != "xno" && break 3534done 3535rm -f conftest.$ac_ext 3536CC=$ac_save_CC ;; 3537esac 3538fi 3539 3540if test "x$ac_cv_prog_cc_c99" = xno 3541then : 3542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3543printf "%s\n" "unsupported" >&6; } 3544else case e in #( 3545 e) if test "x$ac_cv_prog_cc_c99" = x 3546then : 3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3548printf "%s\n" "none needed" >&6; } 3549else case e in #( 3550 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3551printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3552 CC="$CC $ac_cv_prog_cc_c99" ;; 3553esac 3554fi 3555 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3556 ac_prog_cc_stdc=c99 ;; 3557esac 3558fi 3559fi 3560if test x$ac_prog_cc_stdc = xno 3561then : 3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3563printf %s "checking for $CC option to enable C89 features... " >&6; } 3564if test ${ac_cv_prog_cc_c89+y} 3565then : 3566 printf %s "(cached) " >&6 3567else case e in #( 3568 e) ac_cv_prog_cc_c89=no 3569ac_save_CC=$CC 3570cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3571/* end confdefs.h. */ 3572$ac_c_conftest_c89_program 3573_ACEOF 3574for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3575do 3576 CC="$ac_save_CC $ac_arg" 3577 if ac_fn_c_try_compile "$LINENO" 3578then : 3579 ac_cv_prog_cc_c89=$ac_arg 3580fi 3581rm -f core conftest.err conftest.$ac_objext conftest.beam 3582 test "x$ac_cv_prog_cc_c89" != "xno" && break 3583done 3584rm -f conftest.$ac_ext 3585CC=$ac_save_CC ;; 3586esac 3587fi 3588 3589if test "x$ac_cv_prog_cc_c89" = xno 3590then : 3591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3592printf "%s\n" "unsupported" >&6; } 3593else case e in #( 3594 e) if test "x$ac_cv_prog_cc_c89" = x 3595then : 3596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3597printf "%s\n" "none needed" >&6; } 3598else case e in #( 3599 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3600printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3601 CC="$CC $ac_cv_prog_cc_c89" ;; 3602esac 3603fi 3604 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3605 ac_prog_cc_stdc=c89 ;; 3606esac 3607fi 3608fi 3609 3610ac_ext=c 3611ac_cpp='$CPP $CPPFLAGS' 3612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3614ac_compiler_gnu=$ac_cv_c_compiler_gnu 3615 3616 3617 ac_ext=c 3618ac_cpp='$CPP $CPPFLAGS' 3619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3621ac_compiler_gnu=$ac_cv_c_compiler_gnu 3622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3623printf %s "checking whether $CC understands -c and -o together... " >&6; } 3624if test ${am_cv_prog_cc_c_o+y} 3625then : 3626 printf %s "(cached) " >&6 3627else case e in #( 3628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3629/* end confdefs.h. */ 3630 3631int 3632main (void) 3633{ 3634 3635 ; 3636 return 0; 3637} 3638_ACEOF 3639 # Make sure it works both with $CC and with simple cc. 3640 # Following AC_PROG_CC_C_O, we do the test twice because some 3641 # compilers refuse to overwrite an existing .o file with -o, 3642 # though they will create one. 3643 am_cv_prog_cc_c_o=yes 3644 for am_i in 1 2; do 3645 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3646 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3647 ac_status=$? 3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3649 (exit $ac_status); } \ 3650 && test -f conftest2.$ac_objext; then 3651 : OK 3652 else 3653 am_cv_prog_cc_c_o=no 3654 break 3655 fi 3656 done 3657 rm -f core conftest* 3658 unset am_i ;; 3659esac 3660fi 3661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3662printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3663if test "$am_cv_prog_cc_c_o" != yes; then 3664 # Losing compiler, so override with the script. 3665 # FIXME: It is wrong to rewrite CC. 3666 # But if we don't then we get into trouble of one sort or another. 3667 # A longer-term fix would be to have automake use am__CC in this case, 3668 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3669 CC="$am_aux_dir/compile $CC" 3670fi 3671ac_ext=c 3672ac_cpp='$CPP $CPPFLAGS' 3673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3675ac_compiler_gnu=$ac_cv_c_compiler_gnu 3676 3677 3678 3679ac_header= ac_cache= 3680for ac_item in $ac_header_c_list 3681do 3682 if test $ac_cache; then 3683 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3684 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3685 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3686 fi 3687 ac_header= ac_cache= 3688 elif test $ac_header; then 3689 ac_cache=$ac_item 3690 else 3691 ac_header=$ac_item 3692 fi 3693done 3694 3695 3696 3697 3698 3699 3700 3701 3702if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3703then : 3704 3705printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3706 3707fi 3708 3709 3710 3711 3712 3713 3714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3715printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3716if test ${ac_cv_safe_to_define___extensions__+y} 3717then : 3718 printf %s "(cached) " >&6 3719else case e in #( 3720 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3721/* end confdefs.h. */ 3722 3723# define __EXTENSIONS__ 1 3724 $ac_includes_default 3725int 3726main (void) 3727{ 3728 3729 ; 3730 return 0; 3731} 3732_ACEOF 3733if ac_fn_c_try_compile "$LINENO" 3734then : 3735 ac_cv_safe_to_define___extensions__=yes 3736else case e in #( 3737 e) ac_cv_safe_to_define___extensions__=no ;; 3738esac 3739fi 3740rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3741esac 3742fi 3743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3744printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3745 3746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3747printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3748if test ${ac_cv_should_define__xopen_source+y} 3749then : 3750 printf %s "(cached) " >&6 3751else case e in #( 3752 e) ac_cv_should_define__xopen_source=no 3753 if test $ac_cv_header_wchar_h = yes 3754then : 3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3756/* end confdefs.h. */ 3757 3758 #include <wchar.h> 3759 mbstate_t x; 3760int 3761main (void) 3762{ 3763 3764 ; 3765 return 0; 3766} 3767_ACEOF 3768if ac_fn_c_try_compile "$LINENO" 3769then : 3770 3771else case e in #( 3772 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3773/* end confdefs.h. */ 3774 3775 #define _XOPEN_SOURCE 500 3776 #include <wchar.h> 3777 mbstate_t x; 3778int 3779main (void) 3780{ 3781 3782 ; 3783 return 0; 3784} 3785_ACEOF 3786if ac_fn_c_try_compile "$LINENO" 3787then : 3788 ac_cv_should_define__xopen_source=yes 3789fi 3790rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3791esac 3792fi 3793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3794fi ;; 3795esac 3796fi 3797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3798printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3799 3800 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3801 3802 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3803 3804 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3805 3806 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3807 3808 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3809 3810 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3811 3812 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3813 3814 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3815 3816 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3817 3818 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3819 3820 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 3821 3822 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3823 3824 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3825 3826 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3827 3828 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3829 3830 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3831 3832 if test $ac_cv_header_minix_config_h = yes 3833then : 3834 MINIX=yes 3835 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3836 3837 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3838 3839 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3840 3841else case e in #( 3842 e) MINIX= ;; 3843esac 3844fi 3845 if test $ac_cv_safe_to_define___extensions__ = yes 3846then : 3847 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3848 3849fi 3850 if test $ac_cv_should_define__xopen_source = yes 3851then : 3852 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3853 3854fi 3855 3856 3857# Initialize Automake 3858am__api_version='1.16' 3859 3860 3861 # Find a good install program. We prefer a C program (faster), 3862# so one script is as good as another. But avoid the broken or 3863# incompatible versions: 3864# SysV /etc/install, /usr/sbin/install 3865# SunOS /usr/etc/install 3866# IRIX /sbin/install 3867# AIX /bin/install 3868# AmigaOS /C/install, which installs bootblocks on floppy discs 3869# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3870# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3871# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3872# OS/2's system install, which has a completely different semantic 3873# ./install, which can be erroneously created by make from ./install.sh. 3874# Reject install programs that cannot install multiple files. 3875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3876printf %s "checking for a BSD-compatible install... " >&6; } 3877if test -z "$INSTALL"; then 3878if test ${ac_cv_path_install+y} 3879then : 3880 printf %s "(cached) " >&6 3881else case e in #( 3882 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3883for as_dir in $PATH 3884do 3885 IFS=$as_save_IFS 3886 case $as_dir in #((( 3887 '') as_dir=./ ;; 3888 */) ;; 3889 *) as_dir=$as_dir/ ;; 3890 esac 3891 # Account for fact that we put trailing slashes in our PATH walk. 3892case $as_dir in #(( 3893 ./ | /[cC]/* | \ 3894 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3895 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3896 /usr/ucb/* ) ;; 3897 *) 3898 # OSF1 and SCO ODT 3.0 have their own names for install. 3899 # Don't use installbsd from OSF since it installs stuff as root 3900 # by default. 3901 for ac_prog in ginstall scoinst install; do 3902 for ac_exec_ext in '' $ac_executable_extensions; do 3903 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3904 if test $ac_prog = install && 3905 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3906 # AIX install. It has an incompatible calling convention. 3907 : 3908 elif test $ac_prog = install && 3909 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3910 # program-specific install script used by HP pwplus--don't use. 3911 : 3912 else 3913 rm -rf conftest.one conftest.two conftest.dir 3914 echo one > conftest.one 3915 echo two > conftest.two 3916 mkdir conftest.dir 3917 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3918 test -s conftest.one && test -s conftest.two && 3919 test -s conftest.dir/conftest.one && 3920 test -s conftest.dir/conftest.two 3921 then 3922 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3923 break 3 3924 fi 3925 fi 3926 fi 3927 done 3928 done 3929 ;; 3930esac 3931 3932 done 3933IFS=$as_save_IFS 3934 3935rm -rf conftest.one conftest.two conftest.dir 3936 ;; 3937esac 3938fi 3939 if test ${ac_cv_path_install+y}; then 3940 INSTALL=$ac_cv_path_install 3941 else 3942 # As a last resort, use the slow shell script. Don't cache a 3943 # value for INSTALL within a source directory, because that will 3944 # break other packages using the cache if that directory is 3945 # removed, or if the value is a relative name. 3946 INSTALL=$ac_install_sh 3947 fi 3948fi 3949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3950printf "%s\n" "$INSTALL" >&6; } 3951 3952# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3953# It thinks the first close brace ends the variable substitution. 3954test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3955 3956test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3957 3958test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3959 3960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3961printf %s "checking whether build environment is sane... " >&6; } 3962# Reject unsafe characters in $srcdir or the absolute working directory 3963# name. Accept space and tab only in the latter. 3964am_lf=' 3965' 3966case `pwd` in 3967 *[\\\"\#\$\&\'\`$am_lf]*) 3968 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3969esac 3970case $srcdir in 3971 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3972 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3973esac 3974 3975# Do 'set' in a subshell so we don't clobber the current shell's 3976# arguments. Must try -L first in case configure is actually a 3977# symlink; some systems play weird games with the mod time of symlinks 3978# (eg FreeBSD returns the mod time of the symlink's containing 3979# directory). 3980if ( 3981 am_has_slept=no 3982 for am_try in 1 2; do 3983 echo "timestamp, slept: $am_has_slept" > conftest.file 3984 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3985 if test "$*" = "X"; then 3986 # -L didn't work. 3987 set X `ls -t "$srcdir/configure" conftest.file` 3988 fi 3989 if test "$*" != "X $srcdir/configure conftest.file" \ 3990 && test "$*" != "X conftest.file $srcdir/configure"; then 3991 3992 # If neither matched, then we have a broken ls. This can happen 3993 # if, for instance, CONFIG_SHELL is bash and it inherits a 3994 # broken ls alias from the environment. This has actually 3995 # happened. Such a system could not be considered "sane". 3996 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3997 alias in your environment" "$LINENO" 5 3998 fi 3999 if test "$2" = conftest.file || test $am_try -eq 2; then 4000 break 4001 fi 4002 # Just in case. 4003 sleep 1 4004 am_has_slept=yes 4005 done 4006 test "$2" = conftest.file 4007 ) 4008then 4009 # Ok. 4010 : 4011else 4012 as_fn_error $? "newly created file is older than distributed files! 4013Check your system clock" "$LINENO" 5 4014fi 4015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4016printf "%s\n" "yes" >&6; } 4017# If we didn't sleep, we still need to ensure time stamps of config.status and 4018# generated files are strictly newer. 4019am_sleep_pid= 4020if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4021 ( sleep 1 ) & 4022 am_sleep_pid=$! 4023fi 4024 4025rm -f conftest.file 4026 4027test "$program_prefix" != NONE && 4028 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4029# Use a double $ so make ignores it. 4030test "$program_suffix" != NONE && 4031 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4032# Double any \ or $. 4033# By default was 's,x,x', remove it if useless. 4034ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4035program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4036 4037 4038 if test x"${MISSING+set}" != xset; then 4039 MISSING="\${SHELL} '$am_aux_dir/missing'" 4040fi 4041# Use eval to expand $SHELL 4042if eval "$MISSING --is-lightweight"; then 4043 am_missing_run="$MISSING " 4044else 4045 am_missing_run= 4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4047printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4048fi 4049 4050if test x"${install_sh+set}" != xset; then 4051 case $am_aux_dir in 4052 *\ * | *\ *) 4053 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4054 *) 4055 install_sh="\${SHELL} $am_aux_dir/install-sh" 4056 esac 4057fi 4058 4059# Installed binaries are usually stripped using 'strip' when the user 4060# run "make install-strip". However 'strip' might not be the right 4061# tool to use in cross-compilation environments, therefore Automake 4062# will honor the 'STRIP' environment variable to overrule this program. 4063if test "$cross_compiling" != no; then 4064 if test -n "$ac_tool_prefix"; then 4065 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4066set dummy ${ac_tool_prefix}strip; ac_word=$2 4067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4068printf %s "checking for $ac_word... " >&6; } 4069if test ${ac_cv_prog_STRIP+y} 4070then : 4071 printf %s "(cached) " >&6 4072else case e in #( 4073 e) if test -n "$STRIP"; then 4074 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4075else 4076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4077for as_dir in $PATH 4078do 4079 IFS=$as_save_IFS 4080 case $as_dir in #((( 4081 '') as_dir=./ ;; 4082 */) ;; 4083 *) as_dir=$as_dir/ ;; 4084 esac 4085 for ac_exec_ext in '' $ac_executable_extensions; do 4086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4087 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4089 break 2 4090 fi 4091done 4092 done 4093IFS=$as_save_IFS 4094 4095fi ;; 4096esac 4097fi 4098STRIP=$ac_cv_prog_STRIP 4099if test -n "$STRIP"; then 4100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4101printf "%s\n" "$STRIP" >&6; } 4102else 4103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4104printf "%s\n" "no" >&6; } 4105fi 4106 4107 4108fi 4109if test -z "$ac_cv_prog_STRIP"; then 4110 ac_ct_STRIP=$STRIP 4111 # Extract the first word of "strip", so it can be a program name with args. 4112set dummy strip; ac_word=$2 4113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4114printf %s "checking for $ac_word... " >&6; } 4115if test ${ac_cv_prog_ac_ct_STRIP+y} 4116then : 4117 printf %s "(cached) " >&6 4118else case e in #( 4119 e) if test -n "$ac_ct_STRIP"; then 4120 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4121else 4122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4123for as_dir in $PATH 4124do 4125 IFS=$as_save_IFS 4126 case $as_dir in #((( 4127 '') as_dir=./ ;; 4128 */) ;; 4129 *) as_dir=$as_dir/ ;; 4130 esac 4131 for ac_exec_ext in '' $ac_executable_extensions; do 4132 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4133 ac_cv_prog_ac_ct_STRIP="strip" 4134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4135 break 2 4136 fi 4137done 4138 done 4139IFS=$as_save_IFS 4140 4141fi ;; 4142esac 4143fi 4144ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4145if test -n "$ac_ct_STRIP"; then 4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4147printf "%s\n" "$ac_ct_STRIP" >&6; } 4148else 4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4150printf "%s\n" "no" >&6; } 4151fi 4152 4153 if test "x$ac_ct_STRIP" = x; then 4154 STRIP=":" 4155 else 4156 case $cross_compiling:$ac_tool_warned in 4157yes:) 4158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4159printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4160ac_tool_warned=yes ;; 4161esac 4162 STRIP=$ac_ct_STRIP 4163 fi 4164else 4165 STRIP="$ac_cv_prog_STRIP" 4166fi 4167 4168fi 4169INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4170 4171 4172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4173printf %s "checking for a race-free mkdir -p... " >&6; } 4174if test -z "$MKDIR_P"; then 4175 if test ${ac_cv_path_mkdir+y} 4176then : 4177 printf %s "(cached) " >&6 4178else case e in #( 4179 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4180for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4181do 4182 IFS=$as_save_IFS 4183 case $as_dir in #((( 4184 '') as_dir=./ ;; 4185 */) ;; 4186 *) as_dir=$as_dir/ ;; 4187 esac 4188 for ac_prog in mkdir gmkdir; do 4189 for ac_exec_ext in '' $ac_executable_extensions; do 4190 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4191 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4192 'mkdir ('*'coreutils) '* | \ 4193 *'BusyBox '* | \ 4194 'mkdir (fileutils) '4.1*) 4195 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4196 break 3;; 4197 esac 4198 done 4199 done 4200 done 4201IFS=$as_save_IFS 4202 ;; 4203esac 4204fi 4205 4206 test -d ./--version && rmdir ./--version 4207 if test ${ac_cv_path_mkdir+y}; then 4208 MKDIR_P="$ac_cv_path_mkdir -p" 4209 else 4210 # As a last resort, use plain mkdir -p, 4211 # in the hope it doesn't have the bugs of ancient mkdir. 4212 MKDIR_P='mkdir -p' 4213 fi 4214fi 4215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4216printf "%s\n" "$MKDIR_P" >&6; } 4217 4218for ac_prog in gawk mawk nawk awk 4219do 4220 # Extract the first word of "$ac_prog", so it can be a program name with args. 4221set dummy $ac_prog; ac_word=$2 4222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4223printf %s "checking for $ac_word... " >&6; } 4224if test ${ac_cv_prog_AWK+y} 4225then : 4226 printf %s "(cached) " >&6 4227else case e in #( 4228 e) if test -n "$AWK"; then 4229 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4230else 4231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4232for as_dir in $PATH 4233do 4234 IFS=$as_save_IFS 4235 case $as_dir in #((( 4236 '') as_dir=./ ;; 4237 */) ;; 4238 *) as_dir=$as_dir/ ;; 4239 esac 4240 for ac_exec_ext in '' $ac_executable_extensions; do 4241 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4242 ac_cv_prog_AWK="$ac_prog" 4243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4244 break 2 4245 fi 4246done 4247 done 4248IFS=$as_save_IFS 4249 4250fi ;; 4251esac 4252fi 4253AWK=$ac_cv_prog_AWK 4254if test -n "$AWK"; then 4255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4256printf "%s\n" "$AWK" >&6; } 4257else 4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4259printf "%s\n" "no" >&6; } 4260fi 4261 4262 4263 test -n "$AWK" && break 4264done 4265 4266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4267printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4268set x ${MAKE-make} 4269ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4270if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4271then : 4272 printf %s "(cached) " >&6 4273else case e in #( 4274 e) cat >conftest.make <<\_ACEOF 4275SHELL = /bin/sh 4276all: 4277 @echo '@@@%%%=$(MAKE)=@@@%%%' 4278_ACEOF 4279# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4280case `${MAKE-make} -f conftest.make 2>/dev/null` in 4281 *@@@%%%=?*=@@@%%%*) 4282 eval ac_cv_prog_make_${ac_make}_set=yes;; 4283 *) 4284 eval ac_cv_prog_make_${ac_make}_set=no;; 4285esac 4286rm -f conftest.make ;; 4287esac 4288fi 4289if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4291printf "%s\n" "yes" >&6; } 4292 SET_MAKE= 4293else 4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4295printf "%s\n" "no" >&6; } 4296 SET_MAKE="MAKE=${MAKE-make}" 4297fi 4298 4299rm -rf .tst 2>/dev/null 4300mkdir .tst 2>/dev/null 4301if test -d .tst; then 4302 am__leading_dot=. 4303else 4304 am__leading_dot=_ 4305fi 4306rmdir .tst 2>/dev/null 4307 4308DEPDIR="${am__leading_dot}deps" 4309 4310ac_config_commands="$ac_config_commands depfiles" 4311 4312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4313printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4314cat > confinc.mk << 'END' 4315am__doit: 4316 @echo this is the am__doit target >confinc.out 4317.PHONY: am__doit 4318END 4319am__include="#" 4320am__quote= 4321# BSD make does it like this. 4322echo '.include "confinc.mk" # ignored' > confmf.BSD 4323# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4324echo 'include confinc.mk # ignored' > confmf.GNU 4325_am_result=no 4326for s in GNU BSD; do 4327 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4328 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4329 ac_status=$? 4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4331 (exit $ac_status); } 4332 case $?:`cat confinc.out 2>/dev/null` in #( 4333 '0:this is the am__doit target') : 4334 case $s in #( 4335 BSD) : 4336 am__include='.include' am__quote='"' ;; #( 4337 *) : 4338 am__include='include' am__quote='' ;; 4339esac ;; #( 4340 *) : 4341 ;; 4342esac 4343 if test "$am__include" != "#"; then 4344 _am_result="yes ($s style)" 4345 break 4346 fi 4347done 4348rm -f confinc.* confmf.* 4349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4350printf "%s\n" "${_am_result}" >&6; } 4351 4352# Check whether --enable-dependency-tracking was given. 4353if test ${enable_dependency_tracking+y} 4354then : 4355 enableval=$enable_dependency_tracking; 4356fi 4357 4358if test "x$enable_dependency_tracking" != xno; then 4359 am_depcomp="$ac_aux_dir/depcomp" 4360 AMDEPBACKSLASH='\' 4361 am__nodep='_no' 4362fi 4363 if test "x$enable_dependency_tracking" != xno; then 4364 AMDEP_TRUE= 4365 AMDEP_FALSE='#' 4366else 4367 AMDEP_TRUE='#' 4368 AMDEP_FALSE= 4369fi 4370 4371 4372# Check whether --enable-silent-rules was given. 4373if test ${enable_silent_rules+y} 4374then : 4375 enableval=$enable_silent_rules; 4376fi 4377 4378case $enable_silent_rules in # ((( 4379 yes) AM_DEFAULT_VERBOSITY=0;; 4380 no) AM_DEFAULT_VERBOSITY=1;; 4381 *) AM_DEFAULT_VERBOSITY=1;; 4382esac 4383am_make=${MAKE-make} 4384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4385printf %s "checking whether $am_make supports nested variables... " >&6; } 4386if test ${am_cv_make_support_nested_variables+y} 4387then : 4388 printf %s "(cached) " >&6 4389else case e in #( 4390 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 4391BAR0=false 4392BAR1=true 4393V=1 4394am__doit: 4395 @$(TRUE) 4396.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4397 am_cv_make_support_nested_variables=yes 4398else 4399 am_cv_make_support_nested_variables=no 4400fi ;; 4401esac 4402fi 4403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4404printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4405if test $am_cv_make_support_nested_variables = yes; then 4406 AM_V='$(V)' 4407 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4408else 4409 AM_V=$AM_DEFAULT_VERBOSITY 4410 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4411fi 4412AM_BACKSLASH='\' 4413 4414if test "`cd $srcdir && pwd`" != "`pwd`"; then 4415 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4416 # is not polluted with repeated "-I." 4417 am__isrc=' -I$(srcdir)' 4418 # test to see if srcdir already configured 4419 if test -f $srcdir/config.status; then 4420 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4421 fi 4422fi 4423 4424# test whether we have cygpath 4425if test -z "$CYGPATH_W"; then 4426 if (cygpath --version) >/dev/null 2>/dev/null; then 4427 CYGPATH_W='cygpath -w' 4428 else 4429 CYGPATH_W=echo 4430 fi 4431fi 4432 4433 4434# Define the identity of the package. 4435 PACKAGE='makedepend' 4436 VERSION='1.0.9' 4437 4438 4439printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4440 4441 4442printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4443 4444# Some tools Automake needs. 4445 4446ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4447 4448 4449AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4450 4451 4452AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4453 4454 4455AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4456 4457 4458MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4459 4460# For better backward compatibility. To be removed once Automake 1.9.x 4461# dies out for good. For more background, see: 4462# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4463# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4464mkdir_p='$(MKDIR_P)' 4465 4466# We need awk for the "check" target (and possibly the TAP driver). The 4467# system "awk" is bad on some platforms. 4468# Always define AMTAR for backward compatibility. Yes, it's still used 4469# in the wild :-( We should find a proper way to deprecate it ... 4470AMTAR='$${TAR-tar}' 4471 4472 4473# We'll loop over all known methods to create a tar archive until one works. 4474_am_tools='gnutar pax cpio none' 4475 4476am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4477 4478 4479 4480 4481 4482depcc="$CC" am_compiler_list= 4483 4484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4485printf %s "checking dependency style of $depcc... " >&6; } 4486if test ${am_cv_CC_dependencies_compiler_type+y} 4487then : 4488 printf %s "(cached) " >&6 4489else case e in #( 4490 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4491 # We make a subdir and do the tests there. Otherwise we can end up 4492 # making bogus files that we don't know about and never remove. For 4493 # instance it was reported that on HP-UX the gcc test will end up 4494 # making a dummy file named 'D' -- because '-MD' means "put the output 4495 # in D". 4496 rm -rf conftest.dir 4497 mkdir conftest.dir 4498 # Copy depcomp to subdir because otherwise we won't find it if we're 4499 # using a relative directory. 4500 cp "$am_depcomp" conftest.dir 4501 cd conftest.dir 4502 # We will build objects and dependencies in a subdirectory because 4503 # it helps to detect inapplicable dependency modes. For instance 4504 # both Tru64's cc and ICC support -MD to output dependencies as a 4505 # side effect of compilation, but ICC will put the dependencies in 4506 # the current directory while Tru64 will put them in the object 4507 # directory. 4508 mkdir sub 4509 4510 am_cv_CC_dependencies_compiler_type=none 4511 if test "$am_compiler_list" = ""; then 4512 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4513 fi 4514 am__universal=false 4515 case " $depcc " in #( 4516 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4517 esac 4518 4519 for depmode in $am_compiler_list; do 4520 # Setup a source with many dependencies, because some compilers 4521 # like to wrap large dependency lists on column 80 (with \), and 4522 # we should not choose a depcomp mode which is confused by this. 4523 # 4524 # We need to recreate these files for each test, as the compiler may 4525 # overwrite some of them when testing with obscure command lines. 4526 # This happens at least with the AIX C compiler. 4527 : > sub/conftest.c 4528 for i in 1 2 3 4 5 6; do 4529 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4530 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4531 # Solaris 10 /bin/sh. 4532 echo '/* dummy */' > sub/conftst$i.h 4533 done 4534 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4535 4536 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4537 # mode. It turns out that the SunPro C++ compiler does not properly 4538 # handle '-M -o', and we need to detect this. Also, some Intel 4539 # versions had trouble with output in subdirs. 4540 am__obj=sub/conftest.${OBJEXT-o} 4541 am__minus_obj="-o $am__obj" 4542 case $depmode in 4543 gcc) 4544 # This depmode causes a compiler race in universal mode. 4545 test "$am__universal" = false || continue 4546 ;; 4547 nosideeffect) 4548 # After this tag, mechanisms are not by side-effect, so they'll 4549 # only be used when explicitly requested. 4550 if test "x$enable_dependency_tracking" = xyes; then 4551 continue 4552 else 4553 break 4554 fi 4555 ;; 4556 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4557 # This compiler won't grok '-c -o', but also, the minuso test has 4558 # not run yet. These depmodes are late enough in the game, and 4559 # so weak that their functioning should not be impacted. 4560 am__obj=conftest.${OBJEXT-o} 4561 am__minus_obj= 4562 ;; 4563 none) break ;; 4564 esac 4565 if depmode=$depmode \ 4566 source=sub/conftest.c object=$am__obj \ 4567 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4568 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4569 >/dev/null 2>conftest.err && 4570 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4571 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4572 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4573 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4574 # icc doesn't choke on unknown options, it will just issue warnings 4575 # or remarks (even with -Werror). So we grep stderr for any message 4576 # that says an option was ignored or not supported. 4577 # When given -MP, icc 7.0 and 7.1 complain thusly: 4578 # icc: Command line warning: ignoring option '-M'; no argument required 4579 # The diagnosis changed in icc 8.0: 4580 # icc: Command line remark: option '-MP' not supported 4581 if (grep 'ignoring option' conftest.err || 4582 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4583 am_cv_CC_dependencies_compiler_type=$depmode 4584 break 4585 fi 4586 fi 4587 done 4588 4589 cd .. 4590 rm -rf conftest.dir 4591else 4592 am_cv_CC_dependencies_compiler_type=none 4593fi 4594 ;; 4595esac 4596fi 4597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4598printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4599CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4600 4601 if 4602 test "x$enable_dependency_tracking" != xno \ 4603 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4604 am__fastdepCC_TRUE= 4605 am__fastdepCC_FALSE='#' 4606else 4607 am__fastdepCC_TRUE='#' 4608 am__fastdepCC_FALSE= 4609fi 4610 4611 4612# Variables for tags utilities; see am/tags.am 4613if test -z "$CTAGS"; then 4614 CTAGS=ctags 4615fi 4616 4617if test -z "$ETAGS"; then 4618 ETAGS=etags 4619fi 4620 4621if test -z "$CSCOPE"; then 4622 CSCOPE=cscope 4623fi 4624 4625 4626 4627# POSIX will say in a future version that running "rm -f" with no argument 4628# is OK; and we want to be able to make that assumption in our Makefile 4629# recipes. So use an aggressive probe to check that the usage we want is 4630# actually supported "in the wild" to an acceptable degree. 4631# See automake bug#10828. 4632# To make any issue more visible, cause the running configure to be aborted 4633# by default if the 'rm' program in use doesn't match our expectations; the 4634# user can still override this though. 4635if rm -f && rm -fr && rm -rf; then : OK; else 4636 cat >&2 <<'END' 4637Oops! 4638 4639Your 'rm' program seems unable to run without file operands specified 4640on the command line, even when the '-f' option is present. This is contrary 4641to the behaviour of most rm programs out there, and not conforming with 4642the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4643 4644Please tell bug-automake@gnu.org about your system, including the value 4645of your $PATH and any error possibly output before this message. This 4646can help us improve future automake versions. 4647 4648END 4649 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4650 echo 'Configuration will proceed anyway, since you have set the' >&2 4651 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4652 echo >&2 4653 else 4654 cat >&2 <<'END' 4655Aborting the configuration process, to ensure you take notice of the issue. 4656 4657You can download and install GNU coreutils to get an 'rm' implementation 4658that behaves properly: <https://www.gnu.org/software/coreutils/>. 4659 4660If you want to complete the configuration process using your problematic 4661'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4662to "yes", and re-run configure. 4663 4664END 4665 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4666 fi 4667fi 4668 4669 4670# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4684printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4685if test ${ac_cv_c_undeclared_builtin_options+y} 4686then : 4687 printf %s "(cached) " >&6 4688else case e in #( 4689 e) ac_save_CFLAGS=$CFLAGS 4690 ac_cv_c_undeclared_builtin_options='cannot detect' 4691 for ac_arg in '' -fno-builtin; do 4692 CFLAGS="$ac_save_CFLAGS $ac_arg" 4693 # This test program should *not* compile successfully. 4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4695/* end confdefs.h. */ 4696 4697int 4698main (void) 4699{ 4700(void) strchr; 4701 ; 4702 return 0; 4703} 4704_ACEOF 4705if ac_fn_c_try_compile "$LINENO" 4706then : 4707 4708else case e in #( 4709 e) # This test program should compile successfully. 4710 # No library function is consistently available on 4711 # freestanding implementations, so test against a dummy 4712 # declaration. Include always-available headers on the 4713 # off chance that they somehow elicit warnings. 4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4715/* end confdefs.h. */ 4716#include <float.h> 4717#include <limits.h> 4718#include <stdarg.h> 4719#include <stddef.h> 4720extern void ac_decl (int, char *); 4721 4722int 4723main (void) 4724{ 4725(void) ac_decl (0, (char *) 0); 4726 (void) ac_decl; 4727 4728 ; 4729 return 0; 4730} 4731_ACEOF 4732if ac_fn_c_try_compile "$LINENO" 4733then : 4734 if test x"$ac_arg" = x 4735then : 4736 ac_cv_c_undeclared_builtin_options='none needed' 4737else case e in #( 4738 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4739esac 4740fi 4741 break 4742fi 4743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4744esac 4745fi 4746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4747 done 4748 CFLAGS=$ac_save_CFLAGS 4749 ;; 4750esac 4751fi 4752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4753printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4754 case $ac_cv_c_undeclared_builtin_options in #( 4755 'cannot detect') : 4756 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4757printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4758as_fn_error $? "cannot make $CC report undeclared builtins 4759See 'config.log' for more details" "$LINENO" 5; } ;; #( 4760 'none needed') : 4761 ac_c_undeclared_builtin_options='' ;; #( 4762 *) : 4763 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4764esac 4765 4766 4767 4768 4769 4770ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4771if test "x$ac_cv_have_decl___clang__" = xyes 4772then : 4773 CLANGCC="yes" 4774else case e in #( 4775 e) CLANGCC="no" ;; 4776esac 4777fi 4778ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4779if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4780then : 4781 INTELCC="yes" 4782else case e in #( 4783 e) INTELCC="no" ;; 4784esac 4785fi 4786ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4787if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4788then : 4789 SUNCC="yes" 4790else case e in #( 4791 e) SUNCC="no" ;; 4792esac 4793fi 4794 4795 4796 4797 4798 4799 4800 4801 4802if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4803 if test -n "$ac_tool_prefix"; then 4804 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4805set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4807printf %s "checking for $ac_word... " >&6; } 4808if test ${ac_cv_path_PKG_CONFIG+y} 4809then : 4810 printf %s "(cached) " >&6 4811else case e in #( 4812 e) case $PKG_CONFIG in 4813 [\\/]* | ?:[\\/]*) 4814 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4815 ;; 4816 *) 4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4818for as_dir in $PATH 4819do 4820 IFS=$as_save_IFS 4821 case $as_dir in #((( 4822 '') as_dir=./ ;; 4823 */) ;; 4824 *) as_dir=$as_dir/ ;; 4825 esac 4826 for ac_exec_ext in '' $ac_executable_extensions; do 4827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4828 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4830 break 2 4831 fi 4832done 4833 done 4834IFS=$as_save_IFS 4835 4836 ;; 4837esac ;; 4838esac 4839fi 4840PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4841if test -n "$PKG_CONFIG"; then 4842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4843printf "%s\n" "$PKG_CONFIG" >&6; } 4844else 4845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4846printf "%s\n" "no" >&6; } 4847fi 4848 4849 4850fi 4851if test -z "$ac_cv_path_PKG_CONFIG"; then 4852 ac_pt_PKG_CONFIG=$PKG_CONFIG 4853 # Extract the first word of "pkg-config", so it can be a program name with args. 4854set dummy pkg-config; ac_word=$2 4855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4856printf %s "checking for $ac_word... " >&6; } 4857if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4858then : 4859 printf %s "(cached) " >&6 4860else case e in #( 4861 e) case $ac_pt_PKG_CONFIG in 4862 [\\/]* | ?:[\\/]*) 4863 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4864 ;; 4865 *) 4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4867for as_dir in $PATH 4868do 4869 IFS=$as_save_IFS 4870 case $as_dir in #((( 4871 '') as_dir=./ ;; 4872 */) ;; 4873 *) as_dir=$as_dir/ ;; 4874 esac 4875 for ac_exec_ext in '' $ac_executable_extensions; do 4876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4877 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4879 break 2 4880 fi 4881done 4882 done 4883IFS=$as_save_IFS 4884 4885 ;; 4886esac ;; 4887esac 4888fi 4889ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4890if test -n "$ac_pt_PKG_CONFIG"; then 4891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4892printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4893else 4894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4895printf "%s\n" "no" >&6; } 4896fi 4897 4898 if test "x$ac_pt_PKG_CONFIG" = x; then 4899 PKG_CONFIG="" 4900 else 4901 case $cross_compiling:$ac_tool_warned in 4902yes:) 4903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4904printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4905ac_tool_warned=yes ;; 4906esac 4907 PKG_CONFIG=$ac_pt_PKG_CONFIG 4908 fi 4909else 4910 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4911fi 4912 4913fi 4914if test -n "$PKG_CONFIG"; then 4915 _pkg_min_version=0.9.0 4916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4917printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4918 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4920printf "%s\n" "yes" >&6; } 4921 else 4922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4923printf "%s\n" "no" >&6; } 4924 PKG_CONFIG="" 4925 fi 4926fi 4927 4928 4929 # Make sure we can run config.sub. 4930$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4931 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4932 4933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4934printf %s "checking build system type... " >&6; } 4935if test ${ac_cv_build+y} 4936then : 4937 printf %s "(cached) " >&6 4938else case e in #( 4939 e) ac_build_alias=$build_alias 4940test "x$ac_build_alias" = x && 4941 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4942test "x$ac_build_alias" = x && 4943 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4944ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4945 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4946 ;; 4947esac 4948fi 4949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4950printf "%s\n" "$ac_cv_build" >&6; } 4951case $ac_cv_build in 4952*-*-*) ;; 4953*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4954esac 4955build=$ac_cv_build 4956ac_save_IFS=$IFS; IFS='-' 4957set x $ac_cv_build 4958shift 4959build_cpu=$1 4960build_vendor=$2 4961shift; shift 4962# Remember, the first character of IFS is used to create $*, 4963# except with old shells: 4964build_os=$* 4965IFS=$ac_save_IFS 4966case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4967 4968 4969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4970printf %s "checking host system type... " >&6; } 4971if test ${ac_cv_host+y} 4972then : 4973 printf %s "(cached) " >&6 4974else case e in #( 4975 e) if test "x$host_alias" = x; then 4976 ac_cv_host=$ac_cv_build 4977else 4978 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4979 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4980fi 4981 ;; 4982esac 4983fi 4984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4985printf "%s\n" "$ac_cv_host" >&6; } 4986case $ac_cv_host in 4987*-*-*) ;; 4988*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4989esac 4990host=$ac_cv_host 4991ac_save_IFS=$IFS; IFS='-' 4992set x $ac_cv_host 4993shift 4994host_cpu=$1 4995host_vendor=$2 4996shift; shift 4997# Remember, the first character of IFS is used to create $*, 4998# except with old shells: 4999host_os=$* 5000IFS=$ac_save_IFS 5001case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5002 5003 5004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5005printf %s "checking for a sed that does not truncate output... " >&6; } 5006if test ${ac_cv_path_SED+y} 5007then : 5008 printf %s "(cached) " >&6 5009else case e in #( 5010 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5011 for ac_i in 1 2 3 4 5 6 7; do 5012 ac_script="$ac_script$as_nl$ac_script" 5013 done 5014 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5015 { ac_script=; unset ac_script;} 5016 if test -z "$SED"; then 5017 ac_path_SED_found=false 5018 # Loop through the user's path and test for each of PROGNAME-LIST 5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5020for as_dir in $PATH 5021do 5022 IFS=$as_save_IFS 5023 case $as_dir in #((( 5024 '') as_dir=./ ;; 5025 */) ;; 5026 *) as_dir=$as_dir/ ;; 5027 esac 5028 for ac_prog in sed gsed 5029 do 5030 for ac_exec_ext in '' $ac_executable_extensions; do 5031 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5032 as_fn_executable_p "$ac_path_SED" || continue 5033# Check for GNU ac_path_SED and select it if it is found. 5034 # Check for GNU $ac_path_SED 5035case `"$ac_path_SED" --version 2>&1` in #( 5036*GNU*) 5037 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5038#( 5039*) 5040 ac_count=0 5041 printf %s 0123456789 >"conftest.in" 5042 while : 5043 do 5044 cat "conftest.in" "conftest.in" >"conftest.tmp" 5045 mv "conftest.tmp" "conftest.in" 5046 cp "conftest.in" "conftest.nl" 5047 printf "%s\n" '' >> "conftest.nl" 5048 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5050 as_fn_arith $ac_count + 1 && ac_count=$as_val 5051 if test $ac_count -gt ${ac_path_SED_max-0}; then 5052 # Best one so far, save it but keep looking for a better one 5053 ac_cv_path_SED="$ac_path_SED" 5054 ac_path_SED_max=$ac_count 5055 fi 5056 # 10*(2^10) chars as input seems more than enough 5057 test $ac_count -gt 10 && break 5058 done 5059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5060esac 5061 5062 $ac_path_SED_found && break 3 5063 done 5064 done 5065 done 5066IFS=$as_save_IFS 5067 if test -z "$ac_cv_path_SED"; then 5068 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5069 fi 5070else 5071 ac_cv_path_SED=$SED 5072fi 5073 ;; 5074esac 5075fi 5076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5077printf "%s\n" "$ac_cv_path_SED" >&6; } 5078 SED="$ac_cv_path_SED" 5079 rm -f conftest.sed 5080 5081 5082 5083 5084 5085 5086# Check whether --enable-selective-werror was given. 5087if test ${enable_selective_werror+y} 5088then : 5089 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5090else case e in #( 5091 e) SELECTIVE_WERROR=yes ;; 5092esac 5093fi 5094 5095 5096 5097 5098 5099# -v is too short to test reliably with XORG_TESTSET_CFLAG 5100if test "x$SUNCC" = "xyes"; then 5101 BASE_CFLAGS="-v" 5102else 5103 BASE_CFLAGS="" 5104fi 5105 5106# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120xorg_testset_save_CFLAGS="$CFLAGS" 5121 5122if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5125printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5126if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5127then : 5128 printf %s "(cached) " >&6 5129else case e in #( 5130 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5131/* end confdefs.h. */ 5132int i; 5133_ACEOF 5134if ac_fn_c_try_compile "$LINENO" 5135then : 5136 xorg_cv_cc_flag_unknown_warning_option=yes 5137else case e in #( 5138 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5139esac 5140fi 5141rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5142esac 5143fi 5144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5145printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5146 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5147 CFLAGS="$xorg_testset_save_CFLAGS" 5148fi 5149 5150if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5153 fi 5154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5156printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5157if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5158then : 5159 printf %s "(cached) " >&6 5160else case e in #( 5161 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5162/* end confdefs.h. */ 5163int i; 5164_ACEOF 5165if ac_fn_c_try_compile "$LINENO" 5166then : 5167 xorg_cv_cc_flag_unused_command_line_argument=yes 5168else case e in #( 5169 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5170esac 5171fi 5172rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5173esac 5174fi 5175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5176printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5177 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5178 CFLAGS="$xorg_testset_save_CFLAGS" 5179fi 5180 5181found="no" 5182 5183 if test $found = "no" ; then 5184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5186 fi 5187 5188 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5190 fi 5191 5192 CFLAGS="$CFLAGS -Wall" 5193 5194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5195printf %s "checking if $CC supports -Wall... " >&6; } 5196 cacheid=xorg_cv_cc_flag__Wall 5197 if eval test \${$cacheid+y} 5198then : 5199 printf %s "(cached) " >&6 5200else case e in #( 5201 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5202/* end confdefs.h. */ 5203int i; 5204int 5205main (void) 5206{ 5207 5208 ; 5209 return 0; 5210} 5211_ACEOF 5212if ac_fn_c_try_link "$LINENO" 5213then : 5214 eval $cacheid=yes 5215else case e in #( 5216 e) eval $cacheid=no ;; 5217esac 5218fi 5219rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5220 conftest$ac_exeext conftest.$ac_ext ;; 5221esac 5222fi 5223 5224 5225 CFLAGS="$xorg_testset_save_CFLAGS" 5226 5227 eval supported=\$$cacheid 5228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5229printf "%s\n" "$supported" >&6; } 5230 if test "$supported" = "yes" ; then 5231 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5232 found="yes" 5233 fi 5234 fi 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250xorg_testset_save_CFLAGS="$CFLAGS" 5251 5252if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5255printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5256if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5257then : 5258 printf %s "(cached) " >&6 5259else case e in #( 5260 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5261/* end confdefs.h. */ 5262int i; 5263_ACEOF 5264if ac_fn_c_try_compile "$LINENO" 5265then : 5266 xorg_cv_cc_flag_unknown_warning_option=yes 5267else case e in #( 5268 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5269esac 5270fi 5271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5272esac 5273fi 5274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5275printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5276 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5277 CFLAGS="$xorg_testset_save_CFLAGS" 5278fi 5279 5280if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5283 fi 5284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5286printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5287if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5288then : 5289 printf %s "(cached) " >&6 5290else case e in #( 5291 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5292/* end confdefs.h. */ 5293int i; 5294_ACEOF 5295if ac_fn_c_try_compile "$LINENO" 5296then : 5297 xorg_cv_cc_flag_unused_command_line_argument=yes 5298else case e in #( 5299 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5300esac 5301fi 5302rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5303esac 5304fi 5305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5306printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5307 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5308 CFLAGS="$xorg_testset_save_CFLAGS" 5309fi 5310 5311found="no" 5312 5313 if test $found = "no" ; then 5314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5316 fi 5317 5318 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5320 fi 5321 5322 CFLAGS="$CFLAGS -Wpointer-arith" 5323 5324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5325printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5326 cacheid=xorg_cv_cc_flag__Wpointer_arith 5327 if eval test \${$cacheid+y} 5328then : 5329 printf %s "(cached) " >&6 5330else case e in #( 5331 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5332/* end confdefs.h. */ 5333int i; 5334int 5335main (void) 5336{ 5337 5338 ; 5339 return 0; 5340} 5341_ACEOF 5342if ac_fn_c_try_link "$LINENO" 5343then : 5344 eval $cacheid=yes 5345else case e in #( 5346 e) eval $cacheid=no ;; 5347esac 5348fi 5349rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5350 conftest$ac_exeext conftest.$ac_ext ;; 5351esac 5352fi 5353 5354 5355 CFLAGS="$xorg_testset_save_CFLAGS" 5356 5357 eval supported=\$$cacheid 5358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5359printf "%s\n" "$supported" >&6; } 5360 if test "$supported" = "yes" ; then 5361 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5362 found="yes" 5363 fi 5364 fi 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380xorg_testset_save_CFLAGS="$CFLAGS" 5381 5382if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5385printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5386if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5387then : 5388 printf %s "(cached) " >&6 5389else case e in #( 5390 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5391/* end confdefs.h. */ 5392int i; 5393_ACEOF 5394if ac_fn_c_try_compile "$LINENO" 5395then : 5396 xorg_cv_cc_flag_unknown_warning_option=yes 5397else case e in #( 5398 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5399esac 5400fi 5401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5402esac 5403fi 5404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5405printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5406 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5407 CFLAGS="$xorg_testset_save_CFLAGS" 5408fi 5409 5410if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5413 fi 5414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5416printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5417if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5418then : 5419 printf %s "(cached) " >&6 5420else case e in #( 5421 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5422/* end confdefs.h. */ 5423int i; 5424_ACEOF 5425if ac_fn_c_try_compile "$LINENO" 5426then : 5427 xorg_cv_cc_flag_unused_command_line_argument=yes 5428else case e in #( 5429 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5430esac 5431fi 5432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5433esac 5434fi 5435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5436printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5437 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5438 CFLAGS="$xorg_testset_save_CFLAGS" 5439fi 5440 5441found="no" 5442 5443 if test $found = "no" ; then 5444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5446 fi 5447 5448 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5450 fi 5451 5452 CFLAGS="$CFLAGS -Wmissing-declarations" 5453 5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5455printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5456 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5457 if eval test \${$cacheid+y} 5458then : 5459 printf %s "(cached) " >&6 5460else case e in #( 5461 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5462/* end confdefs.h. */ 5463int i; 5464int 5465main (void) 5466{ 5467 5468 ; 5469 return 0; 5470} 5471_ACEOF 5472if ac_fn_c_try_link "$LINENO" 5473then : 5474 eval $cacheid=yes 5475else case e in #( 5476 e) eval $cacheid=no ;; 5477esac 5478fi 5479rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5480 conftest$ac_exeext conftest.$ac_ext ;; 5481esac 5482fi 5483 5484 5485 CFLAGS="$xorg_testset_save_CFLAGS" 5486 5487 eval supported=\$$cacheid 5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5489printf "%s\n" "$supported" >&6; } 5490 if test "$supported" = "yes" ; then 5491 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5492 found="yes" 5493 fi 5494 fi 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510xorg_testset_save_CFLAGS="$CFLAGS" 5511 5512if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5515printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5516if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5517then : 5518 printf %s "(cached) " >&6 5519else case e in #( 5520 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5521/* end confdefs.h. */ 5522int i; 5523_ACEOF 5524if ac_fn_c_try_compile "$LINENO" 5525then : 5526 xorg_cv_cc_flag_unknown_warning_option=yes 5527else case e in #( 5528 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5529esac 5530fi 5531rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5532esac 5533fi 5534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5535printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5536 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5537 CFLAGS="$xorg_testset_save_CFLAGS" 5538fi 5539 5540if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5543 fi 5544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5546printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5547if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5548then : 5549 printf %s "(cached) " >&6 5550else case e in #( 5551 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5552/* end confdefs.h. */ 5553int i; 5554_ACEOF 5555if ac_fn_c_try_compile "$LINENO" 5556then : 5557 xorg_cv_cc_flag_unused_command_line_argument=yes 5558else case e in #( 5559 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5560esac 5561fi 5562rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5563esac 5564fi 5565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5566printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5567 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5568 CFLAGS="$xorg_testset_save_CFLAGS" 5569fi 5570 5571found="no" 5572 5573 if test $found = "no" ; then 5574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5576 fi 5577 5578 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5580 fi 5581 5582 CFLAGS="$CFLAGS -Wformat=2" 5583 5584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5585printf %s "checking if $CC supports -Wformat=2... " >&6; } 5586 cacheid=xorg_cv_cc_flag__Wformat_2 5587 if eval test \${$cacheid+y} 5588then : 5589 printf %s "(cached) " >&6 5590else case e in #( 5591 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5592/* end confdefs.h. */ 5593int i; 5594int 5595main (void) 5596{ 5597 5598 ; 5599 return 0; 5600} 5601_ACEOF 5602if ac_fn_c_try_link "$LINENO" 5603then : 5604 eval $cacheid=yes 5605else case e in #( 5606 e) eval $cacheid=no ;; 5607esac 5608fi 5609rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5610 conftest$ac_exeext conftest.$ac_ext ;; 5611esac 5612fi 5613 5614 5615 CFLAGS="$xorg_testset_save_CFLAGS" 5616 5617 eval supported=\$$cacheid 5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5619printf "%s\n" "$supported" >&6; } 5620 if test "$supported" = "yes" ; then 5621 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5622 found="yes" 5623 fi 5624 fi 5625 5626 if test $found = "no" ; then 5627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5629 fi 5630 5631 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5633 fi 5634 5635 CFLAGS="$CFLAGS -Wformat" 5636 5637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5638printf %s "checking if $CC supports -Wformat... " >&6; } 5639 cacheid=xorg_cv_cc_flag__Wformat 5640 if eval test \${$cacheid+y} 5641then : 5642 printf %s "(cached) " >&6 5643else case e in #( 5644 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5645/* end confdefs.h. */ 5646int i; 5647int 5648main (void) 5649{ 5650 5651 ; 5652 return 0; 5653} 5654_ACEOF 5655if ac_fn_c_try_link "$LINENO" 5656then : 5657 eval $cacheid=yes 5658else case e in #( 5659 e) eval $cacheid=no ;; 5660esac 5661fi 5662rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5663 conftest$ac_exeext conftest.$ac_ext ;; 5664esac 5665fi 5666 5667 5668 CFLAGS="$xorg_testset_save_CFLAGS" 5669 5670 eval supported=\$$cacheid 5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5672printf "%s\n" "$supported" >&6; } 5673 if test "$supported" = "yes" ; then 5674 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5675 found="yes" 5676 fi 5677 fi 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695xorg_testset_save_CFLAGS="$CFLAGS" 5696 5697if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5700printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5701if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5702then : 5703 printf %s "(cached) " >&6 5704else case e in #( 5705 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5706/* end confdefs.h. */ 5707int i; 5708_ACEOF 5709if ac_fn_c_try_compile "$LINENO" 5710then : 5711 xorg_cv_cc_flag_unknown_warning_option=yes 5712else case e in #( 5713 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5714esac 5715fi 5716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5717esac 5718fi 5719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5720printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5722 CFLAGS="$xorg_testset_save_CFLAGS" 5723fi 5724 5725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5728 fi 5729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5731printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5732if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5733then : 5734 printf %s "(cached) " >&6 5735else case e in #( 5736 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5737/* end confdefs.h. */ 5738int i; 5739_ACEOF 5740if ac_fn_c_try_compile "$LINENO" 5741then : 5742 xorg_cv_cc_flag_unused_command_line_argument=yes 5743else case e in #( 5744 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5745esac 5746fi 5747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5748esac 5749fi 5750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5751printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5753 CFLAGS="$xorg_testset_save_CFLAGS" 5754fi 5755 5756found="no" 5757 5758 if test $found = "no" ; then 5759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5761 fi 5762 5763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5765 fi 5766 5767 CFLAGS="$CFLAGS -Wstrict-prototypes" 5768 5769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5770printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5771 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5772 if eval test \${$cacheid+y} 5773then : 5774 printf %s "(cached) " >&6 5775else case e in #( 5776 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5777/* end confdefs.h. */ 5778int i; 5779int 5780main (void) 5781{ 5782 5783 ; 5784 return 0; 5785} 5786_ACEOF 5787if ac_fn_c_try_link "$LINENO" 5788then : 5789 eval $cacheid=yes 5790else case e in #( 5791 e) eval $cacheid=no ;; 5792esac 5793fi 5794rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5795 conftest$ac_exeext conftest.$ac_ext ;; 5796esac 5797fi 5798 5799 5800 CFLAGS="$xorg_testset_save_CFLAGS" 5801 5802 eval supported=\$$cacheid 5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5804printf "%s\n" "$supported" >&6; } 5805 if test "$supported" = "yes" ; then 5806 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5807 found="yes" 5808 fi 5809 fi 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825xorg_testset_save_CFLAGS="$CFLAGS" 5826 5827if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5830printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5831if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5832then : 5833 printf %s "(cached) " >&6 5834else case e in #( 5835 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5836/* end confdefs.h. */ 5837int i; 5838_ACEOF 5839if ac_fn_c_try_compile "$LINENO" 5840then : 5841 xorg_cv_cc_flag_unknown_warning_option=yes 5842else case e in #( 5843 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5844esac 5845fi 5846rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5847esac 5848fi 5849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5850printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5852 CFLAGS="$xorg_testset_save_CFLAGS" 5853fi 5854 5855if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5858 fi 5859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5861printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5862if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5863then : 5864 printf %s "(cached) " >&6 5865else case e in #( 5866 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5867/* end confdefs.h. */ 5868int i; 5869_ACEOF 5870if ac_fn_c_try_compile "$LINENO" 5871then : 5872 xorg_cv_cc_flag_unused_command_line_argument=yes 5873else case e in #( 5874 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5875esac 5876fi 5877rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5878esac 5879fi 5880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5881printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5882 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5883 CFLAGS="$xorg_testset_save_CFLAGS" 5884fi 5885 5886found="no" 5887 5888 if test $found = "no" ; then 5889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5891 fi 5892 5893 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5895 fi 5896 5897 CFLAGS="$CFLAGS -Wmissing-prototypes" 5898 5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5900printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5901 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5902 if eval test \${$cacheid+y} 5903then : 5904 printf %s "(cached) " >&6 5905else case e in #( 5906 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5907/* end confdefs.h. */ 5908int i; 5909int 5910main (void) 5911{ 5912 5913 ; 5914 return 0; 5915} 5916_ACEOF 5917if ac_fn_c_try_link "$LINENO" 5918then : 5919 eval $cacheid=yes 5920else case e in #( 5921 e) eval $cacheid=no ;; 5922esac 5923fi 5924rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5925 conftest$ac_exeext conftest.$ac_ext ;; 5926esac 5927fi 5928 5929 5930 CFLAGS="$xorg_testset_save_CFLAGS" 5931 5932 eval supported=\$$cacheid 5933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5934printf "%s\n" "$supported" >&6; } 5935 if test "$supported" = "yes" ; then 5936 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5937 found="yes" 5938 fi 5939 fi 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955xorg_testset_save_CFLAGS="$CFLAGS" 5956 5957if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5960printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5961if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5962then : 5963 printf %s "(cached) " >&6 5964else case e in #( 5965 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5966/* end confdefs.h. */ 5967int i; 5968_ACEOF 5969if ac_fn_c_try_compile "$LINENO" 5970then : 5971 xorg_cv_cc_flag_unknown_warning_option=yes 5972else case e in #( 5973 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5974esac 5975fi 5976rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5977esac 5978fi 5979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5980printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5982 CFLAGS="$xorg_testset_save_CFLAGS" 5983fi 5984 5985if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5988 fi 5989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5991printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5992if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5993then : 5994 printf %s "(cached) " >&6 5995else case e in #( 5996 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5997/* end confdefs.h. */ 5998int i; 5999_ACEOF 6000if ac_fn_c_try_compile "$LINENO" 6001then : 6002 xorg_cv_cc_flag_unused_command_line_argument=yes 6003else case e in #( 6004 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6005esac 6006fi 6007rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6008esac 6009fi 6010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6011printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6013 CFLAGS="$xorg_testset_save_CFLAGS" 6014fi 6015 6016found="no" 6017 6018 if test $found = "no" ; then 6019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6021 fi 6022 6023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6025 fi 6026 6027 CFLAGS="$CFLAGS -Wnested-externs" 6028 6029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6030printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6031 cacheid=xorg_cv_cc_flag__Wnested_externs 6032 if eval test \${$cacheid+y} 6033then : 6034 printf %s "(cached) " >&6 6035else case e in #( 6036 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6037/* end confdefs.h. */ 6038int i; 6039int 6040main (void) 6041{ 6042 6043 ; 6044 return 0; 6045} 6046_ACEOF 6047if ac_fn_c_try_link "$LINENO" 6048then : 6049 eval $cacheid=yes 6050else case e in #( 6051 e) eval $cacheid=no ;; 6052esac 6053fi 6054rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6055 conftest$ac_exeext conftest.$ac_ext ;; 6056esac 6057fi 6058 6059 6060 CFLAGS="$xorg_testset_save_CFLAGS" 6061 6062 eval supported=\$$cacheid 6063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6064printf "%s\n" "$supported" >&6; } 6065 if test "$supported" = "yes" ; then 6066 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6067 found="yes" 6068 fi 6069 fi 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085xorg_testset_save_CFLAGS="$CFLAGS" 6086 6087if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6090printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6091if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6092then : 6093 printf %s "(cached) " >&6 6094else case e in #( 6095 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6096/* end confdefs.h. */ 6097int i; 6098_ACEOF 6099if ac_fn_c_try_compile "$LINENO" 6100then : 6101 xorg_cv_cc_flag_unknown_warning_option=yes 6102else case e in #( 6103 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6104esac 6105fi 6106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6107esac 6108fi 6109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6110printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6112 CFLAGS="$xorg_testset_save_CFLAGS" 6113fi 6114 6115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6118 fi 6119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6121printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6122if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6123then : 6124 printf %s "(cached) " >&6 6125else case e in #( 6126 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6127/* end confdefs.h. */ 6128int i; 6129_ACEOF 6130if ac_fn_c_try_compile "$LINENO" 6131then : 6132 xorg_cv_cc_flag_unused_command_line_argument=yes 6133else case e in #( 6134 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6135esac 6136fi 6137rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6138esac 6139fi 6140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6141printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6143 CFLAGS="$xorg_testset_save_CFLAGS" 6144fi 6145 6146found="no" 6147 6148 if test $found = "no" ; then 6149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6151 fi 6152 6153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6155 fi 6156 6157 CFLAGS="$CFLAGS -Wbad-function-cast" 6158 6159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6160printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6161 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6162 if eval test \${$cacheid+y} 6163then : 6164 printf %s "(cached) " >&6 6165else case e in #( 6166 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6167/* end confdefs.h. */ 6168int i; 6169int 6170main (void) 6171{ 6172 6173 ; 6174 return 0; 6175} 6176_ACEOF 6177if ac_fn_c_try_link "$LINENO" 6178then : 6179 eval $cacheid=yes 6180else case e in #( 6181 e) eval $cacheid=no ;; 6182esac 6183fi 6184rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6185 conftest$ac_exeext conftest.$ac_ext ;; 6186esac 6187fi 6188 6189 6190 CFLAGS="$xorg_testset_save_CFLAGS" 6191 6192 eval supported=\$$cacheid 6193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6194printf "%s\n" "$supported" >&6; } 6195 if test "$supported" = "yes" ; then 6196 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6197 found="yes" 6198 fi 6199 fi 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215xorg_testset_save_CFLAGS="$CFLAGS" 6216 6217if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6220printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6221if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6222then : 6223 printf %s "(cached) " >&6 6224else case e in #( 6225 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6226/* end confdefs.h. */ 6227int i; 6228_ACEOF 6229if ac_fn_c_try_compile "$LINENO" 6230then : 6231 xorg_cv_cc_flag_unknown_warning_option=yes 6232else case e in #( 6233 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6234esac 6235fi 6236rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6237esac 6238fi 6239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6240printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6242 CFLAGS="$xorg_testset_save_CFLAGS" 6243fi 6244 6245if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6248 fi 6249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6251printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6252if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6253then : 6254 printf %s "(cached) " >&6 6255else case e in #( 6256 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6257/* end confdefs.h. */ 6258int i; 6259_ACEOF 6260if ac_fn_c_try_compile "$LINENO" 6261then : 6262 xorg_cv_cc_flag_unused_command_line_argument=yes 6263else case e in #( 6264 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6265esac 6266fi 6267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6268esac 6269fi 6270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6271printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6272 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6273 CFLAGS="$xorg_testset_save_CFLAGS" 6274fi 6275 6276found="no" 6277 6278 if test $found = "no" ; then 6279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6281 fi 6282 6283 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6285 fi 6286 6287 CFLAGS="$CFLAGS -Wold-style-definition" 6288 6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6290printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6291 cacheid=xorg_cv_cc_flag__Wold_style_definition 6292 if eval test \${$cacheid+y} 6293then : 6294 printf %s "(cached) " >&6 6295else case e in #( 6296 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6297/* end confdefs.h. */ 6298int i; 6299int 6300main (void) 6301{ 6302 6303 ; 6304 return 0; 6305} 6306_ACEOF 6307if ac_fn_c_try_link "$LINENO" 6308then : 6309 eval $cacheid=yes 6310else case e in #( 6311 e) eval $cacheid=no ;; 6312esac 6313fi 6314rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6315 conftest$ac_exeext conftest.$ac_ext ;; 6316esac 6317fi 6318 6319 6320 CFLAGS="$xorg_testset_save_CFLAGS" 6321 6322 eval supported=\$$cacheid 6323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6324printf "%s\n" "$supported" >&6; } 6325 if test "$supported" = "yes" ; then 6326 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6327 found="yes" 6328 fi 6329 fi 6330 6331 if test $found = "no" ; then 6332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6334 fi 6335 6336 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6338 fi 6339 6340 CFLAGS="$CFLAGS -fd" 6341 6342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6343printf %s "checking if $CC supports -fd... " >&6; } 6344 cacheid=xorg_cv_cc_flag__fd 6345 if eval test \${$cacheid+y} 6346then : 6347 printf %s "(cached) " >&6 6348else case e in #( 6349 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6350/* end confdefs.h. */ 6351int i; 6352int 6353main (void) 6354{ 6355 6356 ; 6357 return 0; 6358} 6359_ACEOF 6360if ac_fn_c_try_link "$LINENO" 6361then : 6362 eval $cacheid=yes 6363else case e in #( 6364 e) eval $cacheid=no ;; 6365esac 6366fi 6367rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6368 conftest$ac_exeext conftest.$ac_ext ;; 6369esac 6370fi 6371 6372 6373 CFLAGS="$xorg_testset_save_CFLAGS" 6374 6375 eval supported=\$$cacheid 6376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6377printf "%s\n" "$supported" >&6; } 6378 if test "$supported" = "yes" ; then 6379 BASE_CFLAGS="$BASE_CFLAGS -fd" 6380 found="yes" 6381 fi 6382 fi 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398xorg_testset_save_CFLAGS="$CFLAGS" 6399 6400if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6403printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6404if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6405then : 6406 printf %s "(cached) " >&6 6407else case e in #( 6408 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6409/* end confdefs.h. */ 6410int i; 6411_ACEOF 6412if ac_fn_c_try_compile "$LINENO" 6413then : 6414 xorg_cv_cc_flag_unknown_warning_option=yes 6415else case e in #( 6416 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6417esac 6418fi 6419rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6420esac 6421fi 6422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6423printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6425 CFLAGS="$xorg_testset_save_CFLAGS" 6426fi 6427 6428if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6431 fi 6432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6434printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6435if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6436then : 6437 printf %s "(cached) " >&6 6438else case e in #( 6439 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6440/* end confdefs.h. */ 6441int i; 6442_ACEOF 6443if ac_fn_c_try_compile "$LINENO" 6444then : 6445 xorg_cv_cc_flag_unused_command_line_argument=yes 6446else case e in #( 6447 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6448esac 6449fi 6450rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6451esac 6452fi 6453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6454printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6456 CFLAGS="$xorg_testset_save_CFLAGS" 6457fi 6458 6459found="no" 6460 6461 if test $found = "no" ; then 6462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6464 fi 6465 6466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6468 fi 6469 6470 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6471 6472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6473printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6474 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6475 if eval test \${$cacheid+y} 6476then : 6477 printf %s "(cached) " >&6 6478else case e in #( 6479 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6480/* end confdefs.h. */ 6481int i; 6482int 6483main (void) 6484{ 6485 6486 ; 6487 return 0; 6488} 6489_ACEOF 6490if ac_fn_c_try_link "$LINENO" 6491then : 6492 eval $cacheid=yes 6493else case e in #( 6494 e) eval $cacheid=no ;; 6495esac 6496fi 6497rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6498 conftest$ac_exeext conftest.$ac_ext ;; 6499esac 6500fi 6501 6502 6503 CFLAGS="$xorg_testset_save_CFLAGS" 6504 6505 eval supported=\$$cacheid 6506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6507printf "%s\n" "$supported" >&6; } 6508 if test "$supported" = "yes" ; then 6509 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6510 found="yes" 6511 fi 6512 fi 6513 6514 6515 6516 6517 6518# This chunk adds additional warnings that could catch undesired effects. 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532xorg_testset_save_CFLAGS="$CFLAGS" 6533 6534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6537printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6538if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6539then : 6540 printf %s "(cached) " >&6 6541else case e in #( 6542 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6543/* end confdefs.h. */ 6544int i; 6545_ACEOF 6546if ac_fn_c_try_compile "$LINENO" 6547then : 6548 xorg_cv_cc_flag_unknown_warning_option=yes 6549else case e in #( 6550 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6551esac 6552fi 6553rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6554esac 6555fi 6556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6557printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6558 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6559 CFLAGS="$xorg_testset_save_CFLAGS" 6560fi 6561 6562if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6565 fi 6566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6568printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6569if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6570then : 6571 printf %s "(cached) " >&6 6572else case e in #( 6573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6574/* end confdefs.h. */ 6575int i; 6576_ACEOF 6577if ac_fn_c_try_compile "$LINENO" 6578then : 6579 xorg_cv_cc_flag_unused_command_line_argument=yes 6580else case e in #( 6581 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6582esac 6583fi 6584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6585esac 6586fi 6587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6588printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6589 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6590 CFLAGS="$xorg_testset_save_CFLAGS" 6591fi 6592 6593found="no" 6594 6595 if test $found = "no" ; then 6596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6598 fi 6599 6600 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6602 fi 6603 6604 CFLAGS="$CFLAGS -Wunused" 6605 6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6607printf %s "checking if $CC supports -Wunused... " >&6; } 6608 cacheid=xorg_cv_cc_flag__Wunused 6609 if eval test \${$cacheid+y} 6610then : 6611 printf %s "(cached) " >&6 6612else case e in #( 6613 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6614/* end confdefs.h. */ 6615int i; 6616int 6617main (void) 6618{ 6619 6620 ; 6621 return 0; 6622} 6623_ACEOF 6624if ac_fn_c_try_link "$LINENO" 6625then : 6626 eval $cacheid=yes 6627else case e in #( 6628 e) eval $cacheid=no ;; 6629esac 6630fi 6631rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6632 conftest$ac_exeext conftest.$ac_ext ;; 6633esac 6634fi 6635 6636 6637 CFLAGS="$xorg_testset_save_CFLAGS" 6638 6639 eval supported=\$$cacheid 6640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6641printf "%s\n" "$supported" >&6; } 6642 if test "$supported" = "yes" ; then 6643 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6644 found="yes" 6645 fi 6646 fi 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662xorg_testset_save_CFLAGS="$CFLAGS" 6663 6664if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6667printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6668if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6669then : 6670 printf %s "(cached) " >&6 6671else case e in #( 6672 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6673/* end confdefs.h. */ 6674int i; 6675_ACEOF 6676if ac_fn_c_try_compile "$LINENO" 6677then : 6678 xorg_cv_cc_flag_unknown_warning_option=yes 6679else case e in #( 6680 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6681esac 6682fi 6683rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6684esac 6685fi 6686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6687printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6689 CFLAGS="$xorg_testset_save_CFLAGS" 6690fi 6691 6692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6695 fi 6696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6698printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6699if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6700then : 6701 printf %s "(cached) " >&6 6702else case e in #( 6703 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6704/* end confdefs.h. */ 6705int i; 6706_ACEOF 6707if ac_fn_c_try_compile "$LINENO" 6708then : 6709 xorg_cv_cc_flag_unused_command_line_argument=yes 6710else case e in #( 6711 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6712esac 6713fi 6714rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6715esac 6716fi 6717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6718printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6719 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6720 CFLAGS="$xorg_testset_save_CFLAGS" 6721fi 6722 6723found="no" 6724 6725 if test $found = "no" ; then 6726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6728 fi 6729 6730 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6732 fi 6733 6734 CFLAGS="$CFLAGS -Wuninitialized" 6735 6736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6737printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6738 cacheid=xorg_cv_cc_flag__Wuninitialized 6739 if eval test \${$cacheid+y} 6740then : 6741 printf %s "(cached) " >&6 6742else case e in #( 6743 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6744/* end confdefs.h. */ 6745int i; 6746int 6747main (void) 6748{ 6749 6750 ; 6751 return 0; 6752} 6753_ACEOF 6754if ac_fn_c_try_link "$LINENO" 6755then : 6756 eval $cacheid=yes 6757else case e in #( 6758 e) eval $cacheid=no ;; 6759esac 6760fi 6761rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6762 conftest$ac_exeext conftest.$ac_ext ;; 6763esac 6764fi 6765 6766 6767 CFLAGS="$xorg_testset_save_CFLAGS" 6768 6769 eval supported=\$$cacheid 6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6771printf "%s\n" "$supported" >&6; } 6772 if test "$supported" = "yes" ; then 6773 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6774 found="yes" 6775 fi 6776 fi 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792xorg_testset_save_CFLAGS="$CFLAGS" 6793 6794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6797printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6798if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6799then : 6800 printf %s "(cached) " >&6 6801else case e in #( 6802 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6803/* end confdefs.h. */ 6804int i; 6805_ACEOF 6806if ac_fn_c_try_compile "$LINENO" 6807then : 6808 xorg_cv_cc_flag_unknown_warning_option=yes 6809else case e in #( 6810 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6811esac 6812fi 6813rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6814esac 6815fi 6816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6817printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6819 CFLAGS="$xorg_testset_save_CFLAGS" 6820fi 6821 6822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6825 fi 6826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6828printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6829if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6830then : 6831 printf %s "(cached) " >&6 6832else case e in #( 6833 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6834/* end confdefs.h. */ 6835int i; 6836_ACEOF 6837if ac_fn_c_try_compile "$LINENO" 6838then : 6839 xorg_cv_cc_flag_unused_command_line_argument=yes 6840else case e in #( 6841 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6842esac 6843fi 6844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6845esac 6846fi 6847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6848printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6850 CFLAGS="$xorg_testset_save_CFLAGS" 6851fi 6852 6853found="no" 6854 6855 if test $found = "no" ; then 6856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6858 fi 6859 6860 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6862 fi 6863 6864 CFLAGS="$CFLAGS -Wshadow" 6865 6866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6867printf %s "checking if $CC supports -Wshadow... " >&6; } 6868 cacheid=xorg_cv_cc_flag__Wshadow 6869 if eval test \${$cacheid+y} 6870then : 6871 printf %s "(cached) " >&6 6872else case e in #( 6873 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6874/* end confdefs.h. */ 6875int i; 6876int 6877main (void) 6878{ 6879 6880 ; 6881 return 0; 6882} 6883_ACEOF 6884if ac_fn_c_try_link "$LINENO" 6885then : 6886 eval $cacheid=yes 6887else case e in #( 6888 e) eval $cacheid=no ;; 6889esac 6890fi 6891rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6892 conftest$ac_exeext conftest.$ac_ext ;; 6893esac 6894fi 6895 6896 6897 CFLAGS="$xorg_testset_save_CFLAGS" 6898 6899 eval supported=\$$cacheid 6900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6901printf "%s\n" "$supported" >&6; } 6902 if test "$supported" = "yes" ; then 6903 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6904 found="yes" 6905 fi 6906 fi 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922xorg_testset_save_CFLAGS="$CFLAGS" 6923 6924if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6927printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6928if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6929then : 6930 printf %s "(cached) " >&6 6931else case e in #( 6932 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6933/* end confdefs.h. */ 6934int i; 6935_ACEOF 6936if ac_fn_c_try_compile "$LINENO" 6937then : 6938 xorg_cv_cc_flag_unknown_warning_option=yes 6939else case e in #( 6940 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6941esac 6942fi 6943rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6944esac 6945fi 6946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6947printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6949 CFLAGS="$xorg_testset_save_CFLAGS" 6950fi 6951 6952if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6955 fi 6956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6958printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6959if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6960then : 6961 printf %s "(cached) " >&6 6962else case e in #( 6963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6964/* end confdefs.h. */ 6965int i; 6966_ACEOF 6967if ac_fn_c_try_compile "$LINENO" 6968then : 6969 xorg_cv_cc_flag_unused_command_line_argument=yes 6970else case e in #( 6971 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6972esac 6973fi 6974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6975esac 6976fi 6977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6978printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6980 CFLAGS="$xorg_testset_save_CFLAGS" 6981fi 6982 6983found="no" 6984 6985 if test $found = "no" ; then 6986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6988 fi 6989 6990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6992 fi 6993 6994 CFLAGS="$CFLAGS -Wmissing-noreturn" 6995 6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6997printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6998 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6999 if eval test \${$cacheid+y} 7000then : 7001 printf %s "(cached) " >&6 7002else case e in #( 7003 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7004/* end confdefs.h. */ 7005int i; 7006int 7007main (void) 7008{ 7009 7010 ; 7011 return 0; 7012} 7013_ACEOF 7014if ac_fn_c_try_link "$LINENO" 7015then : 7016 eval $cacheid=yes 7017else case e in #( 7018 e) eval $cacheid=no ;; 7019esac 7020fi 7021rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7022 conftest$ac_exeext conftest.$ac_ext ;; 7023esac 7024fi 7025 7026 7027 CFLAGS="$xorg_testset_save_CFLAGS" 7028 7029 eval supported=\$$cacheid 7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7031printf "%s\n" "$supported" >&6; } 7032 if test "$supported" = "yes" ; then 7033 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7034 found="yes" 7035 fi 7036 fi 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052xorg_testset_save_CFLAGS="$CFLAGS" 7053 7054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7057printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7058if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7059then : 7060 printf %s "(cached) " >&6 7061else case e in #( 7062 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7063/* end confdefs.h. */ 7064int i; 7065_ACEOF 7066if ac_fn_c_try_compile "$LINENO" 7067then : 7068 xorg_cv_cc_flag_unknown_warning_option=yes 7069else case e in #( 7070 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7071esac 7072fi 7073rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7074esac 7075fi 7076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7077printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7078 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7079 CFLAGS="$xorg_testset_save_CFLAGS" 7080fi 7081 7082if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7085 fi 7086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7088printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7089if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7090then : 7091 printf %s "(cached) " >&6 7092else case e in #( 7093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7094/* end confdefs.h. */ 7095int i; 7096_ACEOF 7097if ac_fn_c_try_compile "$LINENO" 7098then : 7099 xorg_cv_cc_flag_unused_command_line_argument=yes 7100else case e in #( 7101 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7102esac 7103fi 7104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7105esac 7106fi 7107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7108printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7109 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7110 CFLAGS="$xorg_testset_save_CFLAGS" 7111fi 7112 7113found="no" 7114 7115 if test $found = "no" ; then 7116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7118 fi 7119 7120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7122 fi 7123 7124 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7125 7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7127printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7128 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7129 if eval test \${$cacheid+y} 7130then : 7131 printf %s "(cached) " >&6 7132else case e in #( 7133 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7134/* end confdefs.h. */ 7135int i; 7136int 7137main (void) 7138{ 7139 7140 ; 7141 return 0; 7142} 7143_ACEOF 7144if ac_fn_c_try_link "$LINENO" 7145then : 7146 eval $cacheid=yes 7147else case e in #( 7148 e) eval $cacheid=no ;; 7149esac 7150fi 7151rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7152 conftest$ac_exeext conftest.$ac_ext ;; 7153esac 7154fi 7155 7156 7157 CFLAGS="$xorg_testset_save_CFLAGS" 7158 7159 eval supported=\$$cacheid 7160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7161printf "%s\n" "$supported" >&6; } 7162 if test "$supported" = "yes" ; then 7163 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7164 found="yes" 7165 fi 7166 fi 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182xorg_testset_save_CFLAGS="$CFLAGS" 7183 7184if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7187printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7188if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7189then : 7190 printf %s "(cached) " >&6 7191else case e in #( 7192 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7193/* end confdefs.h. */ 7194int i; 7195_ACEOF 7196if ac_fn_c_try_compile "$LINENO" 7197then : 7198 xorg_cv_cc_flag_unknown_warning_option=yes 7199else case e in #( 7200 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7201esac 7202fi 7203rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7204esac 7205fi 7206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7207printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7209 CFLAGS="$xorg_testset_save_CFLAGS" 7210fi 7211 7212if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7215 fi 7216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7218printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7219if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7220then : 7221 printf %s "(cached) " >&6 7222else case e in #( 7223 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7224/* end confdefs.h. */ 7225int i; 7226_ACEOF 7227if ac_fn_c_try_compile "$LINENO" 7228then : 7229 xorg_cv_cc_flag_unused_command_line_argument=yes 7230else case e in #( 7231 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7232esac 7233fi 7234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7235esac 7236fi 7237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7238printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7240 CFLAGS="$xorg_testset_save_CFLAGS" 7241fi 7242 7243found="no" 7244 7245 if test $found = "no" ; then 7246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7248 fi 7249 7250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7252 fi 7253 7254 CFLAGS="$CFLAGS -Wredundant-decls" 7255 7256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7257printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7258 cacheid=xorg_cv_cc_flag__Wredundant_decls 7259 if eval test \${$cacheid+y} 7260then : 7261 printf %s "(cached) " >&6 7262else case e in #( 7263 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7264/* end confdefs.h. */ 7265int i; 7266int 7267main (void) 7268{ 7269 7270 ; 7271 return 0; 7272} 7273_ACEOF 7274if ac_fn_c_try_link "$LINENO" 7275then : 7276 eval $cacheid=yes 7277else case e in #( 7278 e) eval $cacheid=no ;; 7279esac 7280fi 7281rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7282 conftest$ac_exeext conftest.$ac_ext ;; 7283esac 7284fi 7285 7286 7287 CFLAGS="$xorg_testset_save_CFLAGS" 7288 7289 eval supported=\$$cacheid 7290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7291printf "%s\n" "$supported" >&6; } 7292 if test "$supported" = "yes" ; then 7293 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7294 found="yes" 7295 fi 7296 fi 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312xorg_testset_save_CFLAGS="$CFLAGS" 7313 7314if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7317printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7318if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7319then : 7320 printf %s "(cached) " >&6 7321else case e in #( 7322 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7323/* end confdefs.h. */ 7324int i; 7325_ACEOF 7326if ac_fn_c_try_compile "$LINENO" 7327then : 7328 xorg_cv_cc_flag_unknown_warning_option=yes 7329else case e in #( 7330 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7331esac 7332fi 7333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7334esac 7335fi 7336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7337printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7338 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7339 CFLAGS="$xorg_testset_save_CFLAGS" 7340fi 7341 7342if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7345 fi 7346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7348printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7349if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7350then : 7351 printf %s "(cached) " >&6 7352else case e in #( 7353 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7354/* end confdefs.h. */ 7355int i; 7356_ACEOF 7357if ac_fn_c_try_compile "$LINENO" 7358then : 7359 xorg_cv_cc_flag_unused_command_line_argument=yes 7360else case e in #( 7361 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7362esac 7363fi 7364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7365esac 7366fi 7367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7368printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7370 CFLAGS="$xorg_testset_save_CFLAGS" 7371fi 7372 7373found="no" 7374 7375 if test $found = "no" ; then 7376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7378 fi 7379 7380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7382 fi 7383 7384 CFLAGS="$CFLAGS -Wlogical-op" 7385 7386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7387printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7388 cacheid=xorg_cv_cc_flag__Wlogical_op 7389 if eval test \${$cacheid+y} 7390then : 7391 printf %s "(cached) " >&6 7392else case e in #( 7393 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7394/* end confdefs.h. */ 7395int i; 7396int 7397main (void) 7398{ 7399 7400 ; 7401 return 0; 7402} 7403_ACEOF 7404if ac_fn_c_try_link "$LINENO" 7405then : 7406 eval $cacheid=yes 7407else case e in #( 7408 e) eval $cacheid=no ;; 7409esac 7410fi 7411rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7412 conftest$ac_exeext conftest.$ac_ext ;; 7413esac 7414fi 7415 7416 7417 CFLAGS="$xorg_testset_save_CFLAGS" 7418 7419 eval supported=\$$cacheid 7420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7421printf "%s\n" "$supported" >&6; } 7422 if test "$supported" = "yes" ; then 7423 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7424 found="yes" 7425 fi 7426 fi 7427 7428 7429 7430# These are currently disabled because they are noisy. They will be enabled 7431# in the future once the codebase is sufficiently modernized to silence 7432# them. For now, I don't want them to drown out the other warnings. 7433# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7434# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7435# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7436 7437# Turn some warnings into errors, so we don't accidentally get successful builds 7438# when there are problems that should be fixed. 7439 7440if test "x$SELECTIVE_WERROR" = "xyes" ; then 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454xorg_testset_save_CFLAGS="$CFLAGS" 7455 7456if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7459printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7460if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7461then : 7462 printf %s "(cached) " >&6 7463else case e in #( 7464 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7465/* end confdefs.h. */ 7466int i; 7467_ACEOF 7468if ac_fn_c_try_compile "$LINENO" 7469then : 7470 xorg_cv_cc_flag_unknown_warning_option=yes 7471else case e in #( 7472 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7473esac 7474fi 7475rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7476esac 7477fi 7478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7479printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7481 CFLAGS="$xorg_testset_save_CFLAGS" 7482fi 7483 7484if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7487 fi 7488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7490printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7491if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7492then : 7493 printf %s "(cached) " >&6 7494else case e in #( 7495 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7496/* end confdefs.h. */ 7497int i; 7498_ACEOF 7499if ac_fn_c_try_compile "$LINENO" 7500then : 7501 xorg_cv_cc_flag_unused_command_line_argument=yes 7502else case e in #( 7503 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7504esac 7505fi 7506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7507esac 7508fi 7509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7510printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7511 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7512 CFLAGS="$xorg_testset_save_CFLAGS" 7513fi 7514 7515found="no" 7516 7517 if test $found = "no" ; then 7518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7520 fi 7521 7522 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7524 fi 7525 7526 CFLAGS="$CFLAGS -Werror=implicit" 7527 7528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7529printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7530 cacheid=xorg_cv_cc_flag__Werror_implicit 7531 if eval test \${$cacheid+y} 7532then : 7533 printf %s "(cached) " >&6 7534else case e in #( 7535 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7536/* end confdefs.h. */ 7537int i; 7538int 7539main (void) 7540{ 7541 7542 ; 7543 return 0; 7544} 7545_ACEOF 7546if ac_fn_c_try_link "$LINENO" 7547then : 7548 eval $cacheid=yes 7549else case e in #( 7550 e) eval $cacheid=no ;; 7551esac 7552fi 7553rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7554 conftest$ac_exeext conftest.$ac_ext ;; 7555esac 7556fi 7557 7558 7559 CFLAGS="$xorg_testset_save_CFLAGS" 7560 7561 eval supported=\$$cacheid 7562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7563printf "%s\n" "$supported" >&6; } 7564 if test "$supported" = "yes" ; then 7565 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7566 found="yes" 7567 fi 7568 fi 7569 7570 if test $found = "no" ; then 7571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7573 fi 7574 7575 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7577 fi 7578 7579 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7580 7581 { 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 7582printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7583 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7584 if eval test \${$cacheid+y} 7585then : 7586 printf %s "(cached) " >&6 7587else case e in #( 7588 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7589/* end confdefs.h. */ 7590int i; 7591int 7592main (void) 7593{ 7594 7595 ; 7596 return 0; 7597} 7598_ACEOF 7599if ac_fn_c_try_link "$LINENO" 7600then : 7601 eval $cacheid=yes 7602else case e in #( 7603 e) eval $cacheid=no ;; 7604esac 7605fi 7606rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7607 conftest$ac_exeext conftest.$ac_ext ;; 7608esac 7609fi 7610 7611 7612 CFLAGS="$xorg_testset_save_CFLAGS" 7613 7614 eval supported=\$$cacheid 7615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7616printf "%s\n" "$supported" >&6; } 7617 if test "$supported" = "yes" ; then 7618 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7619 found="yes" 7620 fi 7621 fi 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637xorg_testset_save_CFLAGS="$CFLAGS" 7638 7639if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7642printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7643if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7644then : 7645 printf %s "(cached) " >&6 7646else case e in #( 7647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7648/* end confdefs.h. */ 7649int i; 7650_ACEOF 7651if ac_fn_c_try_compile "$LINENO" 7652then : 7653 xorg_cv_cc_flag_unknown_warning_option=yes 7654else case e in #( 7655 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7656esac 7657fi 7658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7659esac 7660fi 7661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7662printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7664 CFLAGS="$xorg_testset_save_CFLAGS" 7665fi 7666 7667if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7670 fi 7671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7673printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7674if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7675then : 7676 printf %s "(cached) " >&6 7677else case e in #( 7678 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7679/* end confdefs.h. */ 7680int i; 7681_ACEOF 7682if ac_fn_c_try_compile "$LINENO" 7683then : 7684 xorg_cv_cc_flag_unused_command_line_argument=yes 7685else case e in #( 7686 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7687esac 7688fi 7689rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7690esac 7691fi 7692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7693printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7694 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7695 CFLAGS="$xorg_testset_save_CFLAGS" 7696fi 7697 7698found="no" 7699 7700 if test $found = "no" ; then 7701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7703 fi 7704 7705 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7707 fi 7708 7709 CFLAGS="$CFLAGS -Werror=nonnull" 7710 7711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7712printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7713 cacheid=xorg_cv_cc_flag__Werror_nonnull 7714 if eval test \${$cacheid+y} 7715then : 7716 printf %s "(cached) " >&6 7717else case e in #( 7718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7719/* end confdefs.h. */ 7720int i; 7721int 7722main (void) 7723{ 7724 7725 ; 7726 return 0; 7727} 7728_ACEOF 7729if ac_fn_c_try_link "$LINENO" 7730then : 7731 eval $cacheid=yes 7732else case e in #( 7733 e) eval $cacheid=no ;; 7734esac 7735fi 7736rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7737 conftest$ac_exeext conftest.$ac_ext ;; 7738esac 7739fi 7740 7741 7742 CFLAGS="$xorg_testset_save_CFLAGS" 7743 7744 eval supported=\$$cacheid 7745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7746printf "%s\n" "$supported" >&6; } 7747 if test "$supported" = "yes" ; then 7748 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7749 found="yes" 7750 fi 7751 fi 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767xorg_testset_save_CFLAGS="$CFLAGS" 7768 7769if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7772printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7773if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7774then : 7775 printf %s "(cached) " >&6 7776else case e in #( 7777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7778/* end confdefs.h. */ 7779int i; 7780_ACEOF 7781if ac_fn_c_try_compile "$LINENO" 7782then : 7783 xorg_cv_cc_flag_unknown_warning_option=yes 7784else case e in #( 7785 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7786esac 7787fi 7788rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7789esac 7790fi 7791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7792printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7794 CFLAGS="$xorg_testset_save_CFLAGS" 7795fi 7796 7797if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7800 fi 7801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7803printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7804if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7805then : 7806 printf %s "(cached) " >&6 7807else case e in #( 7808 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7809/* end confdefs.h. */ 7810int i; 7811_ACEOF 7812if ac_fn_c_try_compile "$LINENO" 7813then : 7814 xorg_cv_cc_flag_unused_command_line_argument=yes 7815else case e in #( 7816 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7817esac 7818fi 7819rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7820esac 7821fi 7822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7823printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7825 CFLAGS="$xorg_testset_save_CFLAGS" 7826fi 7827 7828found="no" 7829 7830 if test $found = "no" ; then 7831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7833 fi 7834 7835 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7837 fi 7838 7839 CFLAGS="$CFLAGS -Werror=init-self" 7840 7841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7842printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7843 cacheid=xorg_cv_cc_flag__Werror_init_self 7844 if eval test \${$cacheid+y} 7845then : 7846 printf %s "(cached) " >&6 7847else case e in #( 7848 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7849/* end confdefs.h. */ 7850int i; 7851int 7852main (void) 7853{ 7854 7855 ; 7856 return 0; 7857} 7858_ACEOF 7859if ac_fn_c_try_link "$LINENO" 7860then : 7861 eval $cacheid=yes 7862else case e in #( 7863 e) eval $cacheid=no ;; 7864esac 7865fi 7866rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7867 conftest$ac_exeext conftest.$ac_ext ;; 7868esac 7869fi 7870 7871 7872 CFLAGS="$xorg_testset_save_CFLAGS" 7873 7874 eval supported=\$$cacheid 7875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7876printf "%s\n" "$supported" >&6; } 7877 if test "$supported" = "yes" ; then 7878 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7879 found="yes" 7880 fi 7881 fi 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897xorg_testset_save_CFLAGS="$CFLAGS" 7898 7899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7902printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7903if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7904then : 7905 printf %s "(cached) " >&6 7906else case e in #( 7907 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7908/* end confdefs.h. */ 7909int i; 7910_ACEOF 7911if ac_fn_c_try_compile "$LINENO" 7912then : 7913 xorg_cv_cc_flag_unknown_warning_option=yes 7914else case e in #( 7915 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7916esac 7917fi 7918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7919esac 7920fi 7921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7922printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7923 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7924 CFLAGS="$xorg_testset_save_CFLAGS" 7925fi 7926 7927if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7930 fi 7931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7933printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7934if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7935then : 7936 printf %s "(cached) " >&6 7937else case e in #( 7938 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7939/* end confdefs.h. */ 7940int i; 7941_ACEOF 7942if ac_fn_c_try_compile "$LINENO" 7943then : 7944 xorg_cv_cc_flag_unused_command_line_argument=yes 7945else case e in #( 7946 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7947esac 7948fi 7949rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7950esac 7951fi 7952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7953printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7954 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7955 CFLAGS="$xorg_testset_save_CFLAGS" 7956fi 7957 7958found="no" 7959 7960 if test $found = "no" ; then 7961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7963 fi 7964 7965 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7967 fi 7968 7969 CFLAGS="$CFLAGS -Werror=main" 7970 7971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7972printf %s "checking if $CC supports -Werror=main... " >&6; } 7973 cacheid=xorg_cv_cc_flag__Werror_main 7974 if eval test \${$cacheid+y} 7975then : 7976 printf %s "(cached) " >&6 7977else case e in #( 7978 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7979/* end confdefs.h. */ 7980int i; 7981int 7982main (void) 7983{ 7984 7985 ; 7986 return 0; 7987} 7988_ACEOF 7989if ac_fn_c_try_link "$LINENO" 7990then : 7991 eval $cacheid=yes 7992else case e in #( 7993 e) eval $cacheid=no ;; 7994esac 7995fi 7996rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7997 conftest$ac_exeext conftest.$ac_ext ;; 7998esac 7999fi 8000 8001 8002 CFLAGS="$xorg_testset_save_CFLAGS" 8003 8004 eval supported=\$$cacheid 8005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8006printf "%s\n" "$supported" >&6; } 8007 if test "$supported" = "yes" ; then 8008 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8009 found="yes" 8010 fi 8011 fi 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027xorg_testset_save_CFLAGS="$CFLAGS" 8028 8029if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8032printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8033if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8034then : 8035 printf %s "(cached) " >&6 8036else case e in #( 8037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8038/* end confdefs.h. */ 8039int i; 8040_ACEOF 8041if ac_fn_c_try_compile "$LINENO" 8042then : 8043 xorg_cv_cc_flag_unknown_warning_option=yes 8044else case e in #( 8045 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8046esac 8047fi 8048rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8049esac 8050fi 8051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8052printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8053 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8054 CFLAGS="$xorg_testset_save_CFLAGS" 8055fi 8056 8057if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8060 fi 8061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8063printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8064if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8065then : 8066 printf %s "(cached) " >&6 8067else case e in #( 8068 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8069/* end confdefs.h. */ 8070int i; 8071_ACEOF 8072if ac_fn_c_try_compile "$LINENO" 8073then : 8074 xorg_cv_cc_flag_unused_command_line_argument=yes 8075else case e in #( 8076 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8077esac 8078fi 8079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8080esac 8081fi 8082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8083printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8084 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8085 CFLAGS="$xorg_testset_save_CFLAGS" 8086fi 8087 8088found="no" 8089 8090 if test $found = "no" ; then 8091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8093 fi 8094 8095 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8097 fi 8098 8099 CFLAGS="$CFLAGS -Werror=missing-braces" 8100 8101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8102printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8103 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8104 if eval test \${$cacheid+y} 8105then : 8106 printf %s "(cached) " >&6 8107else case e in #( 8108 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8109/* end confdefs.h. */ 8110int i; 8111int 8112main (void) 8113{ 8114 8115 ; 8116 return 0; 8117} 8118_ACEOF 8119if ac_fn_c_try_link "$LINENO" 8120then : 8121 eval $cacheid=yes 8122else case e in #( 8123 e) eval $cacheid=no ;; 8124esac 8125fi 8126rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8127 conftest$ac_exeext conftest.$ac_ext ;; 8128esac 8129fi 8130 8131 8132 CFLAGS="$xorg_testset_save_CFLAGS" 8133 8134 eval supported=\$$cacheid 8135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8136printf "%s\n" "$supported" >&6; } 8137 if test "$supported" = "yes" ; then 8138 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8139 found="yes" 8140 fi 8141 fi 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157xorg_testset_save_CFLAGS="$CFLAGS" 8158 8159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8162printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8163if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8164then : 8165 printf %s "(cached) " >&6 8166else case e in #( 8167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8168/* end confdefs.h. */ 8169int i; 8170_ACEOF 8171if ac_fn_c_try_compile "$LINENO" 8172then : 8173 xorg_cv_cc_flag_unknown_warning_option=yes 8174else case e in #( 8175 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8176esac 8177fi 8178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8179esac 8180fi 8181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8182printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8184 CFLAGS="$xorg_testset_save_CFLAGS" 8185fi 8186 8187if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8190 fi 8191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8193printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8194if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8195then : 8196 printf %s "(cached) " >&6 8197else case e in #( 8198 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8199/* end confdefs.h. */ 8200int i; 8201_ACEOF 8202if ac_fn_c_try_compile "$LINENO" 8203then : 8204 xorg_cv_cc_flag_unused_command_line_argument=yes 8205else case e in #( 8206 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8207esac 8208fi 8209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8210esac 8211fi 8212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8213printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8215 CFLAGS="$xorg_testset_save_CFLAGS" 8216fi 8217 8218found="no" 8219 8220 if test $found = "no" ; then 8221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8223 fi 8224 8225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8227 fi 8228 8229 CFLAGS="$CFLAGS -Werror=sequence-point" 8230 8231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8232printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8233 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8234 if eval test \${$cacheid+y} 8235then : 8236 printf %s "(cached) " >&6 8237else case e in #( 8238 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8239/* end confdefs.h. */ 8240int i; 8241int 8242main (void) 8243{ 8244 8245 ; 8246 return 0; 8247} 8248_ACEOF 8249if ac_fn_c_try_link "$LINENO" 8250then : 8251 eval $cacheid=yes 8252else case e in #( 8253 e) eval $cacheid=no ;; 8254esac 8255fi 8256rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8257 conftest$ac_exeext conftest.$ac_ext ;; 8258esac 8259fi 8260 8261 8262 CFLAGS="$xorg_testset_save_CFLAGS" 8263 8264 eval supported=\$$cacheid 8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8266printf "%s\n" "$supported" >&6; } 8267 if test "$supported" = "yes" ; then 8268 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8269 found="yes" 8270 fi 8271 fi 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287xorg_testset_save_CFLAGS="$CFLAGS" 8288 8289if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8292printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8293if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8294then : 8295 printf %s "(cached) " >&6 8296else case e in #( 8297 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8298/* end confdefs.h. */ 8299int i; 8300_ACEOF 8301if ac_fn_c_try_compile "$LINENO" 8302then : 8303 xorg_cv_cc_flag_unknown_warning_option=yes 8304else case e in #( 8305 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8306esac 8307fi 8308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8309esac 8310fi 8311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8312printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8314 CFLAGS="$xorg_testset_save_CFLAGS" 8315fi 8316 8317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8320 fi 8321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8323printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8324if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8325then : 8326 printf %s "(cached) " >&6 8327else case e in #( 8328 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8329/* end confdefs.h. */ 8330int i; 8331_ACEOF 8332if ac_fn_c_try_compile "$LINENO" 8333then : 8334 xorg_cv_cc_flag_unused_command_line_argument=yes 8335else case e in #( 8336 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8337esac 8338fi 8339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8340esac 8341fi 8342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8343printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8344 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8345 CFLAGS="$xorg_testset_save_CFLAGS" 8346fi 8347 8348found="no" 8349 8350 if test $found = "no" ; then 8351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8353 fi 8354 8355 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8357 fi 8358 8359 CFLAGS="$CFLAGS -Werror=return-type" 8360 8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8362printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8363 cacheid=xorg_cv_cc_flag__Werror_return_type 8364 if eval test \${$cacheid+y} 8365then : 8366 printf %s "(cached) " >&6 8367else case e in #( 8368 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8369/* end confdefs.h. */ 8370int i; 8371int 8372main (void) 8373{ 8374 8375 ; 8376 return 0; 8377} 8378_ACEOF 8379if ac_fn_c_try_link "$LINENO" 8380then : 8381 eval $cacheid=yes 8382else case e in #( 8383 e) eval $cacheid=no ;; 8384esac 8385fi 8386rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8387 conftest$ac_exeext conftest.$ac_ext ;; 8388esac 8389fi 8390 8391 8392 CFLAGS="$xorg_testset_save_CFLAGS" 8393 8394 eval supported=\$$cacheid 8395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8396printf "%s\n" "$supported" >&6; } 8397 if test "$supported" = "yes" ; then 8398 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8399 found="yes" 8400 fi 8401 fi 8402 8403 if test $found = "no" ; then 8404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8406 fi 8407 8408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8410 fi 8411 8412 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8413 8414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8415printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8416 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8417 if eval test \${$cacheid+y} 8418then : 8419 printf %s "(cached) " >&6 8420else case e in #( 8421 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8422/* end confdefs.h. */ 8423int i; 8424int 8425main (void) 8426{ 8427 8428 ; 8429 return 0; 8430} 8431_ACEOF 8432if ac_fn_c_try_link "$LINENO" 8433then : 8434 eval $cacheid=yes 8435else case e in #( 8436 e) eval $cacheid=no ;; 8437esac 8438fi 8439rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8440 conftest$ac_exeext conftest.$ac_ext ;; 8441esac 8442fi 8443 8444 8445 CFLAGS="$xorg_testset_save_CFLAGS" 8446 8447 eval supported=\$$cacheid 8448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8449printf "%s\n" "$supported" >&6; } 8450 if test "$supported" = "yes" ; then 8451 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8452 found="yes" 8453 fi 8454 fi 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470xorg_testset_save_CFLAGS="$CFLAGS" 8471 8472if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8475printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8476if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8477then : 8478 printf %s "(cached) " >&6 8479else case e in #( 8480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8481/* end confdefs.h. */ 8482int i; 8483_ACEOF 8484if ac_fn_c_try_compile "$LINENO" 8485then : 8486 xorg_cv_cc_flag_unknown_warning_option=yes 8487else case e in #( 8488 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8489esac 8490fi 8491rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8492esac 8493fi 8494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8495printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8496 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8497 CFLAGS="$xorg_testset_save_CFLAGS" 8498fi 8499 8500if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8503 fi 8504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8506printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8507if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8508then : 8509 printf %s "(cached) " >&6 8510else case e in #( 8511 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8512/* end confdefs.h. */ 8513int i; 8514_ACEOF 8515if ac_fn_c_try_compile "$LINENO" 8516then : 8517 xorg_cv_cc_flag_unused_command_line_argument=yes 8518else case e in #( 8519 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8520esac 8521fi 8522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8523esac 8524fi 8525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8526printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8527 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8528 CFLAGS="$xorg_testset_save_CFLAGS" 8529fi 8530 8531found="no" 8532 8533 if test $found = "no" ; then 8534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8536 fi 8537 8538 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8540 fi 8541 8542 CFLAGS="$CFLAGS -Werror=trigraphs" 8543 8544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8545printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8546 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8547 if eval test \${$cacheid+y} 8548then : 8549 printf %s "(cached) " >&6 8550else case e in #( 8551 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8552/* end confdefs.h. */ 8553int i; 8554int 8555main (void) 8556{ 8557 8558 ; 8559 return 0; 8560} 8561_ACEOF 8562if ac_fn_c_try_link "$LINENO" 8563then : 8564 eval $cacheid=yes 8565else case e in #( 8566 e) eval $cacheid=no ;; 8567esac 8568fi 8569rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8570 conftest$ac_exeext conftest.$ac_ext ;; 8571esac 8572fi 8573 8574 8575 CFLAGS="$xorg_testset_save_CFLAGS" 8576 8577 eval supported=\$$cacheid 8578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8579printf "%s\n" "$supported" >&6; } 8580 if test "$supported" = "yes" ; then 8581 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8582 found="yes" 8583 fi 8584 fi 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600xorg_testset_save_CFLAGS="$CFLAGS" 8601 8602if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8605printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8606if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8607then : 8608 printf %s "(cached) " >&6 8609else case e in #( 8610 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8611/* end confdefs.h. */ 8612int i; 8613_ACEOF 8614if ac_fn_c_try_compile "$LINENO" 8615then : 8616 xorg_cv_cc_flag_unknown_warning_option=yes 8617else case e in #( 8618 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8619esac 8620fi 8621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8622esac 8623fi 8624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8625printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8627 CFLAGS="$xorg_testset_save_CFLAGS" 8628fi 8629 8630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8633 fi 8634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8636printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8637if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8638then : 8639 printf %s "(cached) " >&6 8640else case e in #( 8641 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8642/* end confdefs.h. */ 8643int i; 8644_ACEOF 8645if ac_fn_c_try_compile "$LINENO" 8646then : 8647 xorg_cv_cc_flag_unused_command_line_argument=yes 8648else case e in #( 8649 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8650esac 8651fi 8652rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8653esac 8654fi 8655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8656printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8658 CFLAGS="$xorg_testset_save_CFLAGS" 8659fi 8660 8661found="no" 8662 8663 if test $found = "no" ; then 8664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8666 fi 8667 8668 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8670 fi 8671 8672 CFLAGS="$CFLAGS -Werror=array-bounds" 8673 8674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8675printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8676 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8677 if eval test \${$cacheid+y} 8678then : 8679 printf %s "(cached) " >&6 8680else case e in #( 8681 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8682/* end confdefs.h. */ 8683int i; 8684int 8685main (void) 8686{ 8687 8688 ; 8689 return 0; 8690} 8691_ACEOF 8692if ac_fn_c_try_link "$LINENO" 8693then : 8694 eval $cacheid=yes 8695else case e in #( 8696 e) eval $cacheid=no ;; 8697esac 8698fi 8699rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8700 conftest$ac_exeext conftest.$ac_ext ;; 8701esac 8702fi 8703 8704 8705 CFLAGS="$xorg_testset_save_CFLAGS" 8706 8707 eval supported=\$$cacheid 8708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8709printf "%s\n" "$supported" >&6; } 8710 if test "$supported" = "yes" ; then 8711 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8712 found="yes" 8713 fi 8714 fi 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730xorg_testset_save_CFLAGS="$CFLAGS" 8731 8732if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8735printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8736if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8737then : 8738 printf %s "(cached) " >&6 8739else case e in #( 8740 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8741/* end confdefs.h. */ 8742int i; 8743_ACEOF 8744if ac_fn_c_try_compile "$LINENO" 8745then : 8746 xorg_cv_cc_flag_unknown_warning_option=yes 8747else case e in #( 8748 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8749esac 8750fi 8751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8752esac 8753fi 8754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8755printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8756 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8757 CFLAGS="$xorg_testset_save_CFLAGS" 8758fi 8759 8760if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8763 fi 8764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8766printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8767if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8768then : 8769 printf %s "(cached) " >&6 8770else case e in #( 8771 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8772/* end confdefs.h. */ 8773int i; 8774_ACEOF 8775if ac_fn_c_try_compile "$LINENO" 8776then : 8777 xorg_cv_cc_flag_unused_command_line_argument=yes 8778else case e in #( 8779 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8780esac 8781fi 8782rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8783esac 8784fi 8785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8786printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8788 CFLAGS="$xorg_testset_save_CFLAGS" 8789fi 8790 8791found="no" 8792 8793 if test $found = "no" ; then 8794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8796 fi 8797 8798 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8800 fi 8801 8802 CFLAGS="$CFLAGS -Werror=write-strings" 8803 8804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8805printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8806 cacheid=xorg_cv_cc_flag__Werror_write_strings 8807 if eval test \${$cacheid+y} 8808then : 8809 printf %s "(cached) " >&6 8810else case e in #( 8811 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8812/* end confdefs.h. */ 8813int i; 8814int 8815main (void) 8816{ 8817 8818 ; 8819 return 0; 8820} 8821_ACEOF 8822if ac_fn_c_try_link "$LINENO" 8823then : 8824 eval $cacheid=yes 8825else case e in #( 8826 e) eval $cacheid=no ;; 8827esac 8828fi 8829rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8830 conftest$ac_exeext conftest.$ac_ext ;; 8831esac 8832fi 8833 8834 8835 CFLAGS="$xorg_testset_save_CFLAGS" 8836 8837 eval supported=\$$cacheid 8838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8839printf "%s\n" "$supported" >&6; } 8840 if test "$supported" = "yes" ; then 8841 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8842 found="yes" 8843 fi 8844 fi 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860xorg_testset_save_CFLAGS="$CFLAGS" 8861 8862if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8865printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8866if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8867then : 8868 printf %s "(cached) " >&6 8869else case e in #( 8870 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8871/* end confdefs.h. */ 8872int i; 8873_ACEOF 8874if ac_fn_c_try_compile "$LINENO" 8875then : 8876 xorg_cv_cc_flag_unknown_warning_option=yes 8877else case e in #( 8878 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8879esac 8880fi 8881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8882esac 8883fi 8884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8885printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8886 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8887 CFLAGS="$xorg_testset_save_CFLAGS" 8888fi 8889 8890if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8893 fi 8894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8896printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8897if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8898then : 8899 printf %s "(cached) " >&6 8900else case e in #( 8901 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8902/* end confdefs.h. */ 8903int i; 8904_ACEOF 8905if ac_fn_c_try_compile "$LINENO" 8906then : 8907 xorg_cv_cc_flag_unused_command_line_argument=yes 8908else case e in #( 8909 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8910esac 8911fi 8912rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8913esac 8914fi 8915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8916printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8917 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8918 CFLAGS="$xorg_testset_save_CFLAGS" 8919fi 8920 8921found="no" 8922 8923 if test $found = "no" ; then 8924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8926 fi 8927 8928 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8930 fi 8931 8932 CFLAGS="$CFLAGS -Werror=address" 8933 8934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8935printf %s "checking if $CC supports -Werror=address... " >&6; } 8936 cacheid=xorg_cv_cc_flag__Werror_address 8937 if eval test \${$cacheid+y} 8938then : 8939 printf %s "(cached) " >&6 8940else case e in #( 8941 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8942/* end confdefs.h. */ 8943int i; 8944int 8945main (void) 8946{ 8947 8948 ; 8949 return 0; 8950} 8951_ACEOF 8952if ac_fn_c_try_link "$LINENO" 8953then : 8954 eval $cacheid=yes 8955else case e in #( 8956 e) eval $cacheid=no ;; 8957esac 8958fi 8959rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8960 conftest$ac_exeext conftest.$ac_ext ;; 8961esac 8962fi 8963 8964 8965 CFLAGS="$xorg_testset_save_CFLAGS" 8966 8967 eval supported=\$$cacheid 8968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8969printf "%s\n" "$supported" >&6; } 8970 if test "$supported" = "yes" ; then 8971 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8972 found="yes" 8973 fi 8974 fi 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990xorg_testset_save_CFLAGS="$CFLAGS" 8991 8992if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8995printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8996if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8997then : 8998 printf %s "(cached) " >&6 8999else case e in #( 9000 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9001/* end confdefs.h. */ 9002int i; 9003_ACEOF 9004if ac_fn_c_try_compile "$LINENO" 9005then : 9006 xorg_cv_cc_flag_unknown_warning_option=yes 9007else case e in #( 9008 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9009esac 9010fi 9011rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9012esac 9013fi 9014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9015printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9016 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9017 CFLAGS="$xorg_testset_save_CFLAGS" 9018fi 9019 9020if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9023 fi 9024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9026printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9027if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9028then : 9029 printf %s "(cached) " >&6 9030else case e in #( 9031 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9032/* end confdefs.h. */ 9033int i; 9034_ACEOF 9035if ac_fn_c_try_compile "$LINENO" 9036then : 9037 xorg_cv_cc_flag_unused_command_line_argument=yes 9038else case e in #( 9039 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9040esac 9041fi 9042rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9043esac 9044fi 9045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9046printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9047 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9048 CFLAGS="$xorg_testset_save_CFLAGS" 9049fi 9050 9051found="no" 9052 9053 if test $found = "no" ; then 9054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9056 fi 9057 9058 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9060 fi 9061 9062 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9063 9064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9065printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9066 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9067 if eval test \${$cacheid+y} 9068then : 9069 printf %s "(cached) " >&6 9070else case e in #( 9071 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9072/* end confdefs.h. */ 9073int i; 9074int 9075main (void) 9076{ 9077 9078 ; 9079 return 0; 9080} 9081_ACEOF 9082if ac_fn_c_try_link "$LINENO" 9083then : 9084 eval $cacheid=yes 9085else case e in #( 9086 e) eval $cacheid=no ;; 9087esac 9088fi 9089rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9090 conftest$ac_exeext conftest.$ac_ext ;; 9091esac 9092fi 9093 9094 9095 CFLAGS="$xorg_testset_save_CFLAGS" 9096 9097 eval supported=\$$cacheid 9098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9099printf "%s\n" "$supported" >&6; } 9100 if test "$supported" = "yes" ; then 9101 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9102 found="yes" 9103 fi 9104 fi 9105 9106 if test $found = "no" ; then 9107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9109 fi 9110 9111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9113 fi 9114 9115 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9116 9117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9118printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9119 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9120 if eval test \${$cacheid+y} 9121then : 9122 printf %s "(cached) " >&6 9123else case e in #( 9124 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9125/* end confdefs.h. */ 9126int i; 9127int 9128main (void) 9129{ 9130 9131 ; 9132 return 0; 9133} 9134_ACEOF 9135if ac_fn_c_try_link "$LINENO" 9136then : 9137 eval $cacheid=yes 9138else case e in #( 9139 e) eval $cacheid=no ;; 9140esac 9141fi 9142rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9143 conftest$ac_exeext conftest.$ac_ext ;; 9144esac 9145fi 9146 9147 9148 CFLAGS="$xorg_testset_save_CFLAGS" 9149 9150 eval supported=\$$cacheid 9151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9152printf "%s\n" "$supported" >&6; } 9153 if test "$supported" = "yes" ; then 9154 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9155 found="yes" 9156 fi 9157 fi 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173xorg_testset_save_CFLAGS="$CFLAGS" 9174 9175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9178printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9179if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9180then : 9181 printf %s "(cached) " >&6 9182else case e in #( 9183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9184/* end confdefs.h. */ 9185int i; 9186_ACEOF 9187if ac_fn_c_try_compile "$LINENO" 9188then : 9189 xorg_cv_cc_flag_unknown_warning_option=yes 9190else case e in #( 9191 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9192esac 9193fi 9194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9195esac 9196fi 9197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9198printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9199 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9200 CFLAGS="$xorg_testset_save_CFLAGS" 9201fi 9202 9203if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9206 fi 9207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9209printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9210if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9211then : 9212 printf %s "(cached) " >&6 9213else case e in #( 9214 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9215/* end confdefs.h. */ 9216int i; 9217_ACEOF 9218if ac_fn_c_try_compile "$LINENO" 9219then : 9220 xorg_cv_cc_flag_unused_command_line_argument=yes 9221else case e in #( 9222 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9223esac 9224fi 9225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9226esac 9227fi 9228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9229printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9231 CFLAGS="$xorg_testset_save_CFLAGS" 9232fi 9233 9234found="no" 9235 9236 if test $found = "no" ; then 9237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9239 fi 9240 9241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9243 fi 9244 9245 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9246 9247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9248printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9249 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9250 if eval test \${$cacheid+y} 9251then : 9252 printf %s "(cached) " >&6 9253else case e in #( 9254 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9255/* end confdefs.h. */ 9256int i; 9257int 9258main (void) 9259{ 9260 9261 ; 9262 return 0; 9263} 9264_ACEOF 9265if ac_fn_c_try_link "$LINENO" 9266then : 9267 eval $cacheid=yes 9268else case e in #( 9269 e) eval $cacheid=no ;; 9270esac 9271fi 9272rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9273 conftest$ac_exeext conftest.$ac_ext ;; 9274esac 9275fi 9276 9277 9278 CFLAGS="$xorg_testset_save_CFLAGS" 9279 9280 eval supported=\$$cacheid 9281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9282printf "%s\n" "$supported" >&6; } 9283 if test "$supported" = "yes" ; then 9284 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9285 found="yes" 9286 fi 9287 fi 9288 9289 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9290else 9291{ 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 9292printf "%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;} 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306xorg_testset_save_CFLAGS="$CFLAGS" 9307 9308if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9311printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9312if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9313then : 9314 printf %s "(cached) " >&6 9315else case e in #( 9316 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9317/* end confdefs.h. */ 9318int i; 9319_ACEOF 9320if ac_fn_c_try_compile "$LINENO" 9321then : 9322 xorg_cv_cc_flag_unknown_warning_option=yes 9323else case e in #( 9324 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9325esac 9326fi 9327rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9328esac 9329fi 9330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9331printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9333 CFLAGS="$xorg_testset_save_CFLAGS" 9334fi 9335 9336if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9339 fi 9340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9342printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9343if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9344then : 9345 printf %s "(cached) " >&6 9346else case e in #( 9347 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9348/* end confdefs.h. */ 9349int i; 9350_ACEOF 9351if ac_fn_c_try_compile "$LINENO" 9352then : 9353 xorg_cv_cc_flag_unused_command_line_argument=yes 9354else case e in #( 9355 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9356esac 9357fi 9358rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9359esac 9360fi 9361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9362printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9364 CFLAGS="$xorg_testset_save_CFLAGS" 9365fi 9366 9367found="no" 9368 9369 if test $found = "no" ; then 9370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9372 fi 9373 9374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9376 fi 9377 9378 CFLAGS="$CFLAGS -Wimplicit" 9379 9380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9381printf %s "checking if $CC supports -Wimplicit... " >&6; } 9382 cacheid=xorg_cv_cc_flag__Wimplicit 9383 if eval test \${$cacheid+y} 9384then : 9385 printf %s "(cached) " >&6 9386else case e in #( 9387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9388/* end confdefs.h. */ 9389int i; 9390int 9391main (void) 9392{ 9393 9394 ; 9395 return 0; 9396} 9397_ACEOF 9398if ac_fn_c_try_link "$LINENO" 9399then : 9400 eval $cacheid=yes 9401else case e in #( 9402 e) eval $cacheid=no ;; 9403esac 9404fi 9405rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9406 conftest$ac_exeext conftest.$ac_ext ;; 9407esac 9408fi 9409 9410 9411 CFLAGS="$xorg_testset_save_CFLAGS" 9412 9413 eval supported=\$$cacheid 9414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9415printf "%s\n" "$supported" >&6; } 9416 if test "$supported" = "yes" ; then 9417 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9418 found="yes" 9419 fi 9420 fi 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436xorg_testset_save_CFLAGS="$CFLAGS" 9437 9438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9441printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9442if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9443then : 9444 printf %s "(cached) " >&6 9445else case e in #( 9446 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9447/* end confdefs.h. */ 9448int i; 9449_ACEOF 9450if ac_fn_c_try_compile "$LINENO" 9451then : 9452 xorg_cv_cc_flag_unknown_warning_option=yes 9453else case e in #( 9454 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9455esac 9456fi 9457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9458esac 9459fi 9460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9461printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9462 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9463 CFLAGS="$xorg_testset_save_CFLAGS" 9464fi 9465 9466if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9469 fi 9470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9472printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9473if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9474then : 9475 printf %s "(cached) " >&6 9476else case e in #( 9477 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9478/* end confdefs.h. */ 9479int i; 9480_ACEOF 9481if ac_fn_c_try_compile "$LINENO" 9482then : 9483 xorg_cv_cc_flag_unused_command_line_argument=yes 9484else case e in #( 9485 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9486esac 9487fi 9488rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9489esac 9490fi 9491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9492printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9494 CFLAGS="$xorg_testset_save_CFLAGS" 9495fi 9496 9497found="no" 9498 9499 if test $found = "no" ; then 9500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9502 fi 9503 9504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9506 fi 9507 9508 CFLAGS="$CFLAGS -Wnonnull" 9509 9510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9511printf %s "checking if $CC supports -Wnonnull... " >&6; } 9512 cacheid=xorg_cv_cc_flag__Wnonnull 9513 if eval test \${$cacheid+y} 9514then : 9515 printf %s "(cached) " >&6 9516else case e in #( 9517 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9518/* end confdefs.h. */ 9519int i; 9520int 9521main (void) 9522{ 9523 9524 ; 9525 return 0; 9526} 9527_ACEOF 9528if ac_fn_c_try_link "$LINENO" 9529then : 9530 eval $cacheid=yes 9531else case e in #( 9532 e) eval $cacheid=no ;; 9533esac 9534fi 9535rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9536 conftest$ac_exeext conftest.$ac_ext ;; 9537esac 9538fi 9539 9540 9541 CFLAGS="$xorg_testset_save_CFLAGS" 9542 9543 eval supported=\$$cacheid 9544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9545printf "%s\n" "$supported" >&6; } 9546 if test "$supported" = "yes" ; then 9547 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9548 found="yes" 9549 fi 9550 fi 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566xorg_testset_save_CFLAGS="$CFLAGS" 9567 9568if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9571printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9572if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9573then : 9574 printf %s "(cached) " >&6 9575else case e in #( 9576 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9577/* end confdefs.h. */ 9578int i; 9579_ACEOF 9580if ac_fn_c_try_compile "$LINENO" 9581then : 9582 xorg_cv_cc_flag_unknown_warning_option=yes 9583else case e in #( 9584 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9585esac 9586fi 9587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9588esac 9589fi 9590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9591printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9593 CFLAGS="$xorg_testset_save_CFLAGS" 9594fi 9595 9596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9599 fi 9600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9602printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9603if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9604then : 9605 printf %s "(cached) " >&6 9606else case e in #( 9607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9608/* end confdefs.h. */ 9609int i; 9610_ACEOF 9611if ac_fn_c_try_compile "$LINENO" 9612then : 9613 xorg_cv_cc_flag_unused_command_line_argument=yes 9614else case e in #( 9615 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9616esac 9617fi 9618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9619esac 9620fi 9621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9622printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9623 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9624 CFLAGS="$xorg_testset_save_CFLAGS" 9625fi 9626 9627found="no" 9628 9629 if test $found = "no" ; then 9630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9632 fi 9633 9634 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9636 fi 9637 9638 CFLAGS="$CFLAGS -Winit-self" 9639 9640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9641printf %s "checking if $CC supports -Winit-self... " >&6; } 9642 cacheid=xorg_cv_cc_flag__Winit_self 9643 if eval test \${$cacheid+y} 9644then : 9645 printf %s "(cached) " >&6 9646else case e in #( 9647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9648/* end confdefs.h. */ 9649int i; 9650int 9651main (void) 9652{ 9653 9654 ; 9655 return 0; 9656} 9657_ACEOF 9658if ac_fn_c_try_link "$LINENO" 9659then : 9660 eval $cacheid=yes 9661else case e in #( 9662 e) eval $cacheid=no ;; 9663esac 9664fi 9665rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9666 conftest$ac_exeext conftest.$ac_ext ;; 9667esac 9668fi 9669 9670 9671 CFLAGS="$xorg_testset_save_CFLAGS" 9672 9673 eval supported=\$$cacheid 9674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9675printf "%s\n" "$supported" >&6; } 9676 if test "$supported" = "yes" ; then 9677 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9678 found="yes" 9679 fi 9680 fi 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696xorg_testset_save_CFLAGS="$CFLAGS" 9697 9698if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9701printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9702if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9703then : 9704 printf %s "(cached) " >&6 9705else case e in #( 9706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9707/* end confdefs.h. */ 9708int i; 9709_ACEOF 9710if ac_fn_c_try_compile "$LINENO" 9711then : 9712 xorg_cv_cc_flag_unknown_warning_option=yes 9713else case e in #( 9714 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9715esac 9716fi 9717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9718esac 9719fi 9720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9721printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9722 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9723 CFLAGS="$xorg_testset_save_CFLAGS" 9724fi 9725 9726if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9729 fi 9730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9732printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9733if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9734then : 9735 printf %s "(cached) " >&6 9736else case e in #( 9737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9738/* end confdefs.h. */ 9739int i; 9740_ACEOF 9741if ac_fn_c_try_compile "$LINENO" 9742then : 9743 xorg_cv_cc_flag_unused_command_line_argument=yes 9744else case e in #( 9745 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9746esac 9747fi 9748rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9749esac 9750fi 9751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9752printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9754 CFLAGS="$xorg_testset_save_CFLAGS" 9755fi 9756 9757found="no" 9758 9759 if test $found = "no" ; then 9760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9762 fi 9763 9764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9766 fi 9767 9768 CFLAGS="$CFLAGS -Wmain" 9769 9770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9771printf %s "checking if $CC supports -Wmain... " >&6; } 9772 cacheid=xorg_cv_cc_flag__Wmain 9773 if eval test \${$cacheid+y} 9774then : 9775 printf %s "(cached) " >&6 9776else case e in #( 9777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9778/* end confdefs.h. */ 9779int i; 9780int 9781main (void) 9782{ 9783 9784 ; 9785 return 0; 9786} 9787_ACEOF 9788if ac_fn_c_try_link "$LINENO" 9789then : 9790 eval $cacheid=yes 9791else case e in #( 9792 e) eval $cacheid=no ;; 9793esac 9794fi 9795rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9796 conftest$ac_exeext conftest.$ac_ext ;; 9797esac 9798fi 9799 9800 9801 CFLAGS="$xorg_testset_save_CFLAGS" 9802 9803 eval supported=\$$cacheid 9804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9805printf "%s\n" "$supported" >&6; } 9806 if test "$supported" = "yes" ; then 9807 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9808 found="yes" 9809 fi 9810 fi 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826xorg_testset_save_CFLAGS="$CFLAGS" 9827 9828if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9831printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9832if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9833then : 9834 printf %s "(cached) " >&6 9835else case e in #( 9836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9837/* end confdefs.h. */ 9838int i; 9839_ACEOF 9840if ac_fn_c_try_compile "$LINENO" 9841then : 9842 xorg_cv_cc_flag_unknown_warning_option=yes 9843else case e in #( 9844 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9845esac 9846fi 9847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9848esac 9849fi 9850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9851printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9853 CFLAGS="$xorg_testset_save_CFLAGS" 9854fi 9855 9856if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9859 fi 9860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9862printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9863if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9864then : 9865 printf %s "(cached) " >&6 9866else case e in #( 9867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9868/* end confdefs.h. */ 9869int i; 9870_ACEOF 9871if ac_fn_c_try_compile "$LINENO" 9872then : 9873 xorg_cv_cc_flag_unused_command_line_argument=yes 9874else case e in #( 9875 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9876esac 9877fi 9878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9879esac 9880fi 9881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9882printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9884 CFLAGS="$xorg_testset_save_CFLAGS" 9885fi 9886 9887found="no" 9888 9889 if test $found = "no" ; then 9890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9892 fi 9893 9894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9896 fi 9897 9898 CFLAGS="$CFLAGS -Wmissing-braces" 9899 9900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9901printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9902 cacheid=xorg_cv_cc_flag__Wmissing_braces 9903 if eval test \${$cacheid+y} 9904then : 9905 printf %s "(cached) " >&6 9906else case e in #( 9907 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9908/* end confdefs.h. */ 9909int i; 9910int 9911main (void) 9912{ 9913 9914 ; 9915 return 0; 9916} 9917_ACEOF 9918if ac_fn_c_try_link "$LINENO" 9919then : 9920 eval $cacheid=yes 9921else case e in #( 9922 e) eval $cacheid=no ;; 9923esac 9924fi 9925rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9926 conftest$ac_exeext conftest.$ac_ext ;; 9927esac 9928fi 9929 9930 9931 CFLAGS="$xorg_testset_save_CFLAGS" 9932 9933 eval supported=\$$cacheid 9934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9935printf "%s\n" "$supported" >&6; } 9936 if test "$supported" = "yes" ; then 9937 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9938 found="yes" 9939 fi 9940 fi 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956xorg_testset_save_CFLAGS="$CFLAGS" 9957 9958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9961printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9962if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9963then : 9964 printf %s "(cached) " >&6 9965else case e in #( 9966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9967/* end confdefs.h. */ 9968int i; 9969_ACEOF 9970if ac_fn_c_try_compile "$LINENO" 9971then : 9972 xorg_cv_cc_flag_unknown_warning_option=yes 9973else case e in #( 9974 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9975esac 9976fi 9977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9978esac 9979fi 9980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9981printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9983 CFLAGS="$xorg_testset_save_CFLAGS" 9984fi 9985 9986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9989 fi 9990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9992printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9993if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9994then : 9995 printf %s "(cached) " >&6 9996else case e in #( 9997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9998/* end confdefs.h. */ 9999int i; 10000_ACEOF 10001if ac_fn_c_try_compile "$LINENO" 10002then : 10003 xorg_cv_cc_flag_unused_command_line_argument=yes 10004else case e in #( 10005 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10006esac 10007fi 10008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10009esac 10010fi 10011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10012printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10014 CFLAGS="$xorg_testset_save_CFLAGS" 10015fi 10016 10017found="no" 10018 10019 if test $found = "no" ; then 10020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10022 fi 10023 10024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10026 fi 10027 10028 CFLAGS="$CFLAGS -Wsequence-point" 10029 10030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10031printf %s "checking if $CC supports -Wsequence-point... " >&6; } 10032 cacheid=xorg_cv_cc_flag__Wsequence_point 10033 if eval test \${$cacheid+y} 10034then : 10035 printf %s "(cached) " >&6 10036else case e in #( 10037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10038/* end confdefs.h. */ 10039int i; 10040int 10041main (void) 10042{ 10043 10044 ; 10045 return 0; 10046} 10047_ACEOF 10048if ac_fn_c_try_link "$LINENO" 10049then : 10050 eval $cacheid=yes 10051else case e in #( 10052 e) eval $cacheid=no ;; 10053esac 10054fi 10055rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10056 conftest$ac_exeext conftest.$ac_ext ;; 10057esac 10058fi 10059 10060 10061 CFLAGS="$xorg_testset_save_CFLAGS" 10062 10063 eval supported=\$$cacheid 10064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10065printf "%s\n" "$supported" >&6; } 10066 if test "$supported" = "yes" ; then 10067 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10068 found="yes" 10069 fi 10070 fi 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086xorg_testset_save_CFLAGS="$CFLAGS" 10087 10088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10091printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10092if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10093then : 10094 printf %s "(cached) " >&6 10095else case e in #( 10096 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10097/* end confdefs.h. */ 10098int i; 10099_ACEOF 10100if ac_fn_c_try_compile "$LINENO" 10101then : 10102 xorg_cv_cc_flag_unknown_warning_option=yes 10103else case e in #( 10104 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10105esac 10106fi 10107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10108esac 10109fi 10110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10111printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10113 CFLAGS="$xorg_testset_save_CFLAGS" 10114fi 10115 10116if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10119 fi 10120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10122printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10123if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10124then : 10125 printf %s "(cached) " >&6 10126else case e in #( 10127 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10128/* end confdefs.h. */ 10129int i; 10130_ACEOF 10131if ac_fn_c_try_compile "$LINENO" 10132then : 10133 xorg_cv_cc_flag_unused_command_line_argument=yes 10134else case e in #( 10135 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10136esac 10137fi 10138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10139esac 10140fi 10141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10142printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10144 CFLAGS="$xorg_testset_save_CFLAGS" 10145fi 10146 10147found="no" 10148 10149 if test $found = "no" ; then 10150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10152 fi 10153 10154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10156 fi 10157 10158 CFLAGS="$CFLAGS -Wreturn-type" 10159 10160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10161printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10162 cacheid=xorg_cv_cc_flag__Wreturn_type 10163 if eval test \${$cacheid+y} 10164then : 10165 printf %s "(cached) " >&6 10166else case e in #( 10167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10168/* end confdefs.h. */ 10169int i; 10170int 10171main (void) 10172{ 10173 10174 ; 10175 return 0; 10176} 10177_ACEOF 10178if ac_fn_c_try_link "$LINENO" 10179then : 10180 eval $cacheid=yes 10181else case e in #( 10182 e) eval $cacheid=no ;; 10183esac 10184fi 10185rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10186 conftest$ac_exeext conftest.$ac_ext ;; 10187esac 10188fi 10189 10190 10191 CFLAGS="$xorg_testset_save_CFLAGS" 10192 10193 eval supported=\$$cacheid 10194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10195printf "%s\n" "$supported" >&6; } 10196 if test "$supported" = "yes" ; then 10197 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10198 found="yes" 10199 fi 10200 fi 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216xorg_testset_save_CFLAGS="$CFLAGS" 10217 10218if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10221printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10222if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10223then : 10224 printf %s "(cached) " >&6 10225else case e in #( 10226 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10227/* end confdefs.h. */ 10228int i; 10229_ACEOF 10230if ac_fn_c_try_compile "$LINENO" 10231then : 10232 xorg_cv_cc_flag_unknown_warning_option=yes 10233else case e in #( 10234 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10235esac 10236fi 10237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10238esac 10239fi 10240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10241printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10243 CFLAGS="$xorg_testset_save_CFLAGS" 10244fi 10245 10246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10249 fi 10250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10252printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10253if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10254then : 10255 printf %s "(cached) " >&6 10256else case e in #( 10257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10258/* end confdefs.h. */ 10259int i; 10260_ACEOF 10261if ac_fn_c_try_compile "$LINENO" 10262then : 10263 xorg_cv_cc_flag_unused_command_line_argument=yes 10264else case e in #( 10265 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10266esac 10267fi 10268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10269esac 10270fi 10271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10272printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10273 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10274 CFLAGS="$xorg_testset_save_CFLAGS" 10275fi 10276 10277found="no" 10278 10279 if test $found = "no" ; then 10280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10282 fi 10283 10284 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10286 fi 10287 10288 CFLAGS="$CFLAGS -Wtrigraphs" 10289 10290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10291printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10292 cacheid=xorg_cv_cc_flag__Wtrigraphs 10293 if eval test \${$cacheid+y} 10294then : 10295 printf %s "(cached) " >&6 10296else case e in #( 10297 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10298/* end confdefs.h. */ 10299int i; 10300int 10301main (void) 10302{ 10303 10304 ; 10305 return 0; 10306} 10307_ACEOF 10308if ac_fn_c_try_link "$LINENO" 10309then : 10310 eval $cacheid=yes 10311else case e in #( 10312 e) eval $cacheid=no ;; 10313esac 10314fi 10315rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10316 conftest$ac_exeext conftest.$ac_ext ;; 10317esac 10318fi 10319 10320 10321 CFLAGS="$xorg_testset_save_CFLAGS" 10322 10323 eval supported=\$$cacheid 10324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10325printf "%s\n" "$supported" >&6; } 10326 if test "$supported" = "yes" ; then 10327 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10328 found="yes" 10329 fi 10330 fi 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346xorg_testset_save_CFLAGS="$CFLAGS" 10347 10348if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10351printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10352if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10353then : 10354 printf %s "(cached) " >&6 10355else case e in #( 10356 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10357/* end confdefs.h. */ 10358int i; 10359_ACEOF 10360if ac_fn_c_try_compile "$LINENO" 10361then : 10362 xorg_cv_cc_flag_unknown_warning_option=yes 10363else case e in #( 10364 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10365esac 10366fi 10367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10368esac 10369fi 10370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10371printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10372 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10373 CFLAGS="$xorg_testset_save_CFLAGS" 10374fi 10375 10376if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10379 fi 10380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10382printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10383if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10384then : 10385 printf %s "(cached) " >&6 10386else case e in #( 10387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10388/* end confdefs.h. */ 10389int i; 10390_ACEOF 10391if ac_fn_c_try_compile "$LINENO" 10392then : 10393 xorg_cv_cc_flag_unused_command_line_argument=yes 10394else case e in #( 10395 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10396esac 10397fi 10398rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10399esac 10400fi 10401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10402printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10403 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10404 CFLAGS="$xorg_testset_save_CFLAGS" 10405fi 10406 10407found="no" 10408 10409 if test $found = "no" ; then 10410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10412 fi 10413 10414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10416 fi 10417 10418 CFLAGS="$CFLAGS -Warray-bounds" 10419 10420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10421printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10422 cacheid=xorg_cv_cc_flag__Warray_bounds 10423 if eval test \${$cacheid+y} 10424then : 10425 printf %s "(cached) " >&6 10426else case e in #( 10427 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10428/* end confdefs.h. */ 10429int i; 10430int 10431main (void) 10432{ 10433 10434 ; 10435 return 0; 10436} 10437_ACEOF 10438if ac_fn_c_try_link "$LINENO" 10439then : 10440 eval $cacheid=yes 10441else case e in #( 10442 e) eval $cacheid=no ;; 10443esac 10444fi 10445rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10446 conftest$ac_exeext conftest.$ac_ext ;; 10447esac 10448fi 10449 10450 10451 CFLAGS="$xorg_testset_save_CFLAGS" 10452 10453 eval supported=\$$cacheid 10454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10455printf "%s\n" "$supported" >&6; } 10456 if test "$supported" = "yes" ; then 10457 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10458 found="yes" 10459 fi 10460 fi 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476xorg_testset_save_CFLAGS="$CFLAGS" 10477 10478if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10481printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10482if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10483then : 10484 printf %s "(cached) " >&6 10485else case e in #( 10486 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10487/* end confdefs.h. */ 10488int i; 10489_ACEOF 10490if ac_fn_c_try_compile "$LINENO" 10491then : 10492 xorg_cv_cc_flag_unknown_warning_option=yes 10493else case e in #( 10494 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10495esac 10496fi 10497rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10498esac 10499fi 10500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10501printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10503 CFLAGS="$xorg_testset_save_CFLAGS" 10504fi 10505 10506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10509 fi 10510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10512printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10513if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10514then : 10515 printf %s "(cached) " >&6 10516else case e in #( 10517 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10518/* end confdefs.h. */ 10519int i; 10520_ACEOF 10521if ac_fn_c_try_compile "$LINENO" 10522then : 10523 xorg_cv_cc_flag_unused_command_line_argument=yes 10524else case e in #( 10525 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10526esac 10527fi 10528rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10529esac 10530fi 10531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10532printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10534 CFLAGS="$xorg_testset_save_CFLAGS" 10535fi 10536 10537found="no" 10538 10539 if test $found = "no" ; then 10540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10542 fi 10543 10544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10546 fi 10547 10548 CFLAGS="$CFLAGS -Wwrite-strings" 10549 10550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10551printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10552 cacheid=xorg_cv_cc_flag__Wwrite_strings 10553 if eval test \${$cacheid+y} 10554then : 10555 printf %s "(cached) " >&6 10556else case e in #( 10557 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10558/* end confdefs.h. */ 10559int i; 10560int 10561main (void) 10562{ 10563 10564 ; 10565 return 0; 10566} 10567_ACEOF 10568if ac_fn_c_try_link "$LINENO" 10569then : 10570 eval $cacheid=yes 10571else case e in #( 10572 e) eval $cacheid=no ;; 10573esac 10574fi 10575rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10576 conftest$ac_exeext conftest.$ac_ext ;; 10577esac 10578fi 10579 10580 10581 CFLAGS="$xorg_testset_save_CFLAGS" 10582 10583 eval supported=\$$cacheid 10584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10585printf "%s\n" "$supported" >&6; } 10586 if test "$supported" = "yes" ; then 10587 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10588 found="yes" 10589 fi 10590 fi 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606xorg_testset_save_CFLAGS="$CFLAGS" 10607 10608if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10611printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10612if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10613then : 10614 printf %s "(cached) " >&6 10615else case e in #( 10616 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10617/* end confdefs.h. */ 10618int i; 10619_ACEOF 10620if ac_fn_c_try_compile "$LINENO" 10621then : 10622 xorg_cv_cc_flag_unknown_warning_option=yes 10623else case e in #( 10624 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10625esac 10626fi 10627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10628esac 10629fi 10630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10631printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10632 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10633 CFLAGS="$xorg_testset_save_CFLAGS" 10634fi 10635 10636if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10639 fi 10640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10642printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10643if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10644then : 10645 printf %s "(cached) " >&6 10646else case e in #( 10647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10648/* end confdefs.h. */ 10649int i; 10650_ACEOF 10651if ac_fn_c_try_compile "$LINENO" 10652then : 10653 xorg_cv_cc_flag_unused_command_line_argument=yes 10654else case e in #( 10655 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10656esac 10657fi 10658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10659esac 10660fi 10661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10662printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10664 CFLAGS="$xorg_testset_save_CFLAGS" 10665fi 10666 10667found="no" 10668 10669 if test $found = "no" ; then 10670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10672 fi 10673 10674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10676 fi 10677 10678 CFLAGS="$CFLAGS -Waddress" 10679 10680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10681printf %s "checking if $CC supports -Waddress... " >&6; } 10682 cacheid=xorg_cv_cc_flag__Waddress 10683 if eval test \${$cacheid+y} 10684then : 10685 printf %s "(cached) " >&6 10686else case e in #( 10687 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10688/* end confdefs.h. */ 10689int i; 10690int 10691main (void) 10692{ 10693 10694 ; 10695 return 0; 10696} 10697_ACEOF 10698if ac_fn_c_try_link "$LINENO" 10699then : 10700 eval $cacheid=yes 10701else case e in #( 10702 e) eval $cacheid=no ;; 10703esac 10704fi 10705rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10706 conftest$ac_exeext conftest.$ac_ext ;; 10707esac 10708fi 10709 10710 10711 CFLAGS="$xorg_testset_save_CFLAGS" 10712 10713 eval supported=\$$cacheid 10714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10715printf "%s\n" "$supported" >&6; } 10716 if test "$supported" = "yes" ; then 10717 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10718 found="yes" 10719 fi 10720 fi 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736xorg_testset_save_CFLAGS="$CFLAGS" 10737 10738if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10741printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10742if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10743then : 10744 printf %s "(cached) " >&6 10745else case e in #( 10746 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10747/* end confdefs.h. */ 10748int i; 10749_ACEOF 10750if ac_fn_c_try_compile "$LINENO" 10751then : 10752 xorg_cv_cc_flag_unknown_warning_option=yes 10753else case e in #( 10754 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10755esac 10756fi 10757rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10758esac 10759fi 10760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10761printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10763 CFLAGS="$xorg_testset_save_CFLAGS" 10764fi 10765 10766if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10769 fi 10770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10772printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10773if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10774then : 10775 printf %s "(cached) " >&6 10776else case e in #( 10777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10778/* end confdefs.h. */ 10779int i; 10780_ACEOF 10781if ac_fn_c_try_compile "$LINENO" 10782then : 10783 xorg_cv_cc_flag_unused_command_line_argument=yes 10784else case e in #( 10785 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10786esac 10787fi 10788rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10789esac 10790fi 10791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10792printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10794 CFLAGS="$xorg_testset_save_CFLAGS" 10795fi 10796 10797found="no" 10798 10799 if test $found = "no" ; then 10800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10802 fi 10803 10804 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10806 fi 10807 10808 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10809 10810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10811printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10812 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10813 if eval test \${$cacheid+y} 10814then : 10815 printf %s "(cached) " >&6 10816else case e in #( 10817 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10818/* end confdefs.h. */ 10819int i; 10820int 10821main (void) 10822{ 10823 10824 ; 10825 return 0; 10826} 10827_ACEOF 10828if ac_fn_c_try_link "$LINENO" 10829then : 10830 eval $cacheid=yes 10831else case e in #( 10832 e) eval $cacheid=no ;; 10833esac 10834fi 10835rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10836 conftest$ac_exeext conftest.$ac_ext ;; 10837esac 10838fi 10839 10840 10841 CFLAGS="$xorg_testset_save_CFLAGS" 10842 10843 eval supported=\$$cacheid 10844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10845printf "%s\n" "$supported" >&6; } 10846 if test "$supported" = "yes" ; then 10847 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10848 found="yes" 10849 fi 10850 fi 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866xorg_testset_save_CFLAGS="$CFLAGS" 10867 10868if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10871printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10872if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10873then : 10874 printf %s "(cached) " >&6 10875else case e in #( 10876 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10877/* end confdefs.h. */ 10878int i; 10879_ACEOF 10880if ac_fn_c_try_compile "$LINENO" 10881then : 10882 xorg_cv_cc_flag_unknown_warning_option=yes 10883else case e in #( 10884 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10885esac 10886fi 10887rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10888esac 10889fi 10890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10891printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10892 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10893 CFLAGS="$xorg_testset_save_CFLAGS" 10894fi 10895 10896if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10899 fi 10900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10902printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10903if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10904then : 10905 printf %s "(cached) " >&6 10906else case e in #( 10907 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10908/* end confdefs.h. */ 10909int i; 10910_ACEOF 10911if ac_fn_c_try_compile "$LINENO" 10912then : 10913 xorg_cv_cc_flag_unused_command_line_argument=yes 10914else case e in #( 10915 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10916esac 10917fi 10918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10919esac 10920fi 10921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10922printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10923 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10924 CFLAGS="$xorg_testset_save_CFLAGS" 10925fi 10926 10927found="no" 10928 10929 if test $found = "no" ; then 10930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10932 fi 10933 10934 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10936 fi 10937 10938 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10939 10940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10941printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10942 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10943 if eval test \${$cacheid+y} 10944then : 10945 printf %s "(cached) " >&6 10946else case e in #( 10947 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10948/* end confdefs.h. */ 10949int i; 10950int 10951main (void) 10952{ 10953 10954 ; 10955 return 0; 10956} 10957_ACEOF 10958if ac_fn_c_try_link "$LINENO" 10959then : 10960 eval $cacheid=yes 10961else case e in #( 10962 e) eval $cacheid=no ;; 10963esac 10964fi 10965rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10966 conftest$ac_exeext conftest.$ac_ext ;; 10967esac 10968fi 10969 10970 10971 CFLAGS="$xorg_testset_save_CFLAGS" 10972 10973 eval supported=\$$cacheid 10974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10975printf "%s\n" "$supported" >&6; } 10976 if test "$supported" = "yes" ; then 10977 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10978 found="yes" 10979 fi 10980 fi 10981 10982 10983fi 10984 10985 10986 10987 10988 10989 10990 10991 CWARNFLAGS="$BASE_CFLAGS" 10992 if test "x$GCC" = xyes ; then 10993 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10994 fi 10995 10996 10997 10998 10999 11000 11001 11002 11003# Check whether --enable-strict-compilation was given. 11004if test ${enable_strict_compilation+y} 11005then : 11006 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11007else case e in #( 11008 e) STRICT_COMPILE=no ;; 11009esac 11010fi 11011 11012 11013 11014 11015 11016 11017STRICT_CFLAGS="" 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031xorg_testset_save_CFLAGS="$CFLAGS" 11032 11033if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11036printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11037if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11038then : 11039 printf %s "(cached) " >&6 11040else case e in #( 11041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11042/* end confdefs.h. */ 11043int i; 11044_ACEOF 11045if ac_fn_c_try_compile "$LINENO" 11046then : 11047 xorg_cv_cc_flag_unknown_warning_option=yes 11048else case e in #( 11049 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11050esac 11051fi 11052rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11053esac 11054fi 11055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11056printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11058 CFLAGS="$xorg_testset_save_CFLAGS" 11059fi 11060 11061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11064 fi 11065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11067printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11068if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11069then : 11070 printf %s "(cached) " >&6 11071else case e in #( 11072 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11073/* end confdefs.h. */ 11074int i; 11075_ACEOF 11076if ac_fn_c_try_compile "$LINENO" 11077then : 11078 xorg_cv_cc_flag_unused_command_line_argument=yes 11079else case e in #( 11080 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11081esac 11082fi 11083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11084esac 11085fi 11086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11087printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11089 CFLAGS="$xorg_testset_save_CFLAGS" 11090fi 11091 11092found="no" 11093 11094 if test $found = "no" ; then 11095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11097 fi 11098 11099 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11101 fi 11102 11103 CFLAGS="$CFLAGS -pedantic" 11104 11105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11106printf %s "checking if $CC supports -pedantic... " >&6; } 11107 cacheid=xorg_cv_cc_flag__pedantic 11108 if eval test \${$cacheid+y} 11109then : 11110 printf %s "(cached) " >&6 11111else case e in #( 11112 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11113/* end confdefs.h. */ 11114int i; 11115int 11116main (void) 11117{ 11118 11119 ; 11120 return 0; 11121} 11122_ACEOF 11123if ac_fn_c_try_link "$LINENO" 11124then : 11125 eval $cacheid=yes 11126else case e in #( 11127 e) eval $cacheid=no ;; 11128esac 11129fi 11130rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11131 conftest$ac_exeext conftest.$ac_ext ;; 11132esac 11133fi 11134 11135 11136 CFLAGS="$xorg_testset_save_CFLAGS" 11137 11138 eval supported=\$$cacheid 11139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11140printf "%s\n" "$supported" >&6; } 11141 if test "$supported" = "yes" ; then 11142 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11143 found="yes" 11144 fi 11145 fi 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161xorg_testset_save_CFLAGS="$CFLAGS" 11162 11163if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11166printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11167if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11168then : 11169 printf %s "(cached) " >&6 11170else case e in #( 11171 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11172/* end confdefs.h. */ 11173int i; 11174_ACEOF 11175if ac_fn_c_try_compile "$LINENO" 11176then : 11177 xorg_cv_cc_flag_unknown_warning_option=yes 11178else case e in #( 11179 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11180esac 11181fi 11182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11183esac 11184fi 11185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11186printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11188 CFLAGS="$xorg_testset_save_CFLAGS" 11189fi 11190 11191if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11194 fi 11195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11197printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11198if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11199then : 11200 printf %s "(cached) " >&6 11201else case e in #( 11202 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11203/* end confdefs.h. */ 11204int i; 11205_ACEOF 11206if ac_fn_c_try_compile "$LINENO" 11207then : 11208 xorg_cv_cc_flag_unused_command_line_argument=yes 11209else case e in #( 11210 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11211esac 11212fi 11213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11214esac 11215fi 11216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11217printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11219 CFLAGS="$xorg_testset_save_CFLAGS" 11220fi 11221 11222found="no" 11223 11224 if test $found = "no" ; then 11225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11227 fi 11228 11229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11231 fi 11232 11233 CFLAGS="$CFLAGS -Werror" 11234 11235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11236printf %s "checking if $CC supports -Werror... " >&6; } 11237 cacheid=xorg_cv_cc_flag__Werror 11238 if eval test \${$cacheid+y} 11239then : 11240 printf %s "(cached) " >&6 11241else case e in #( 11242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11243/* end confdefs.h. */ 11244int i; 11245int 11246main (void) 11247{ 11248 11249 ; 11250 return 0; 11251} 11252_ACEOF 11253if ac_fn_c_try_link "$LINENO" 11254then : 11255 eval $cacheid=yes 11256else case e in #( 11257 e) eval $cacheid=no ;; 11258esac 11259fi 11260rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11261 conftest$ac_exeext conftest.$ac_ext ;; 11262esac 11263fi 11264 11265 11266 CFLAGS="$xorg_testset_save_CFLAGS" 11267 11268 eval supported=\$$cacheid 11269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11270printf "%s\n" "$supported" >&6; } 11271 if test "$supported" = "yes" ; then 11272 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11273 found="yes" 11274 fi 11275 fi 11276 11277 if test $found = "no" ; then 11278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11280 fi 11281 11282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11284 fi 11285 11286 CFLAGS="$CFLAGS -errwarn" 11287 11288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11289printf %s "checking if $CC supports -errwarn... " >&6; } 11290 cacheid=xorg_cv_cc_flag__errwarn 11291 if eval test \${$cacheid+y} 11292then : 11293 printf %s "(cached) " >&6 11294else case e in #( 11295 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11296/* end confdefs.h. */ 11297int i; 11298int 11299main (void) 11300{ 11301 11302 ; 11303 return 0; 11304} 11305_ACEOF 11306if ac_fn_c_try_link "$LINENO" 11307then : 11308 eval $cacheid=yes 11309else case e in #( 11310 e) eval $cacheid=no ;; 11311esac 11312fi 11313rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11314 conftest$ac_exeext conftest.$ac_ext ;; 11315esac 11316fi 11317 11318 11319 CFLAGS="$xorg_testset_save_CFLAGS" 11320 11321 eval supported=\$$cacheid 11322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11323printf "%s\n" "$supported" >&6; } 11324 if test "$supported" = "yes" ; then 11325 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11326 found="yes" 11327 fi 11328 fi 11329 11330 11331 11332# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11333# activate it with -Werror, so we add it here explicitly. 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347xorg_testset_save_CFLAGS="$CFLAGS" 11348 11349if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11352printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11353if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11354then : 11355 printf %s "(cached) " >&6 11356else case e in #( 11357 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11358/* end confdefs.h. */ 11359int i; 11360_ACEOF 11361if ac_fn_c_try_compile "$LINENO" 11362then : 11363 xorg_cv_cc_flag_unknown_warning_option=yes 11364else case e in #( 11365 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11366esac 11367fi 11368rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11369esac 11370fi 11371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11372printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11373 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11374 CFLAGS="$xorg_testset_save_CFLAGS" 11375fi 11376 11377if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11380 fi 11381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11383printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11384if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11385then : 11386 printf %s "(cached) " >&6 11387else case e in #( 11388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11389/* end confdefs.h. */ 11390int i; 11391_ACEOF 11392if ac_fn_c_try_compile "$LINENO" 11393then : 11394 xorg_cv_cc_flag_unused_command_line_argument=yes 11395else case e in #( 11396 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11397esac 11398fi 11399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11400esac 11401fi 11402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11403printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11405 CFLAGS="$xorg_testset_save_CFLAGS" 11406fi 11407 11408found="no" 11409 11410 if test $found = "no" ; then 11411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11413 fi 11414 11415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11417 fi 11418 11419 CFLAGS="$CFLAGS -Werror=attributes" 11420 11421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11422printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11423 cacheid=xorg_cv_cc_flag__Werror_attributes 11424 if eval test \${$cacheid+y} 11425then : 11426 printf %s "(cached) " >&6 11427else case e in #( 11428 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11429/* end confdefs.h. */ 11430int i; 11431int 11432main (void) 11433{ 11434 11435 ; 11436 return 0; 11437} 11438_ACEOF 11439if ac_fn_c_try_link "$LINENO" 11440then : 11441 eval $cacheid=yes 11442else case e in #( 11443 e) eval $cacheid=no ;; 11444esac 11445fi 11446rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11447 conftest$ac_exeext conftest.$ac_ext ;; 11448esac 11449fi 11450 11451 11452 CFLAGS="$xorg_testset_save_CFLAGS" 11453 11454 eval supported=\$$cacheid 11455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11456printf "%s\n" "$supported" >&6; } 11457 if test "$supported" = "yes" ; then 11458 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11459 found="yes" 11460 fi 11461 fi 11462 11463 11464 11465if test "x$STRICT_COMPILE" = "xyes"; then 11466 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11467 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11468fi 11469 11470 11471 11472 11473 11474 11475 11476 11477cat >>confdefs.h <<_ACEOF 11478#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11479_ACEOF 11480 11481 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11482 if test "x$PVM" = "x"; then 11483 PVM="0" 11484 fi 11485 11486printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11487 11488 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11489 if test "x$PVP" = "x"; then 11490 PVP="0" 11491 fi 11492 11493printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11494 11495 11496 11497CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11498mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11499|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11500touch \$(top_srcdir)/ChangeLog; \ 11501echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11502 11503 11504 11505 11506macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11507INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11508mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11509|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11510touch \$(top_srcdir)/INSTALL; \ 11511echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11512 11513 11514 11515 11516 11517 11518case $host_os in 11519 solaris*) 11520 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11521 # check for a man page file found in later versions that use 11522 # traditional section numbers instead 11523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11524printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11525if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11526then : 11527 printf %s "(cached) " >&6 11528else case e in #( 11529 e) test "$cross_compiling" = yes && 11530 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11531if test -r "/usr/share/man/man7/attributes.7"; then 11532 ac_cv_file__usr_share_man_man7_attributes_7=yes 11533else 11534 ac_cv_file__usr_share_man_man7_attributes_7=no 11535fi ;; 11536esac 11537fi 11538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11539printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11540if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11541then : 11542 SYSV_MAN_SECTIONS=false 11543else case e in #( 11544 e) SYSV_MAN_SECTIONS=true ;; 11545esac 11546fi 11547 11548 ;; 11549 *) SYSV_MAN_SECTIONS=false ;; 11550esac 11551 11552if test x$APP_MAN_SUFFIX = x ; then 11553 APP_MAN_SUFFIX=1 11554fi 11555if test x$APP_MAN_DIR = x ; then 11556 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11557fi 11558 11559if test x$LIB_MAN_SUFFIX = x ; then 11560 LIB_MAN_SUFFIX=3 11561fi 11562if test x$LIB_MAN_DIR = x ; then 11563 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11564fi 11565 11566if test x$FILE_MAN_SUFFIX = x ; then 11567 case $SYSV_MAN_SECTIONS in 11568 true) FILE_MAN_SUFFIX=4 ;; 11569 *) FILE_MAN_SUFFIX=5 ;; 11570 esac 11571fi 11572if test x$FILE_MAN_DIR = x ; then 11573 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11574fi 11575 11576if test x$MISC_MAN_SUFFIX = x ; then 11577 case $SYSV_MAN_SECTIONS in 11578 true) MISC_MAN_SUFFIX=5 ;; 11579 *) MISC_MAN_SUFFIX=7 ;; 11580 esac 11581fi 11582if test x$MISC_MAN_DIR = x ; then 11583 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11584fi 11585 11586if test x$DRIVER_MAN_SUFFIX = x ; then 11587 case $SYSV_MAN_SECTIONS in 11588 true) DRIVER_MAN_SUFFIX=7 ;; 11589 *) DRIVER_MAN_SUFFIX=4 ;; 11590 esac 11591fi 11592if test x$DRIVER_MAN_DIR = x ; then 11593 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11594fi 11595 11596if test x$ADMIN_MAN_SUFFIX = x ; then 11597 case $SYSV_MAN_SECTIONS in 11598 true) ADMIN_MAN_SUFFIX=1m ;; 11599 *) ADMIN_MAN_SUFFIX=8 ;; 11600 esac 11601fi 11602if test x$ADMIN_MAN_DIR = x ; then 11603 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11604fi 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620XORG_MAN_PAGE="X Version 11" 11621 11622MAN_SUBSTS="\ 11623 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11624 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11625 -e 's|__xservername__|Xorg|g' \ 11626 -e 's|__xconfigfile__|xorg.conf|g' \ 11627 -e 's|__projectroot__|\$(prefix)|g' \ 11628 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11629 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11630 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11631 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11632 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11633 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11634 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11635 11636 11637 11638# Check whether --enable-silent-rules was given. 11639if test ${enable_silent_rules+y} 11640then : 11641 enableval=$enable_silent_rules; 11642fi 11643 11644case $enable_silent_rules in # ((( 11645 yes) AM_DEFAULT_VERBOSITY=0;; 11646 no) AM_DEFAULT_VERBOSITY=1;; 11647 *) AM_DEFAULT_VERBOSITY=0;; 11648esac 11649am_make=${MAKE-make} 11650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11651printf %s "checking whether $am_make supports nested variables... " >&6; } 11652if test ${am_cv_make_support_nested_variables+y} 11653then : 11654 printf %s "(cached) " >&6 11655else case e in #( 11656 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 11657BAR0=false 11658BAR1=true 11659V=1 11660am__doit: 11661 @$(TRUE) 11662.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11663 am_cv_make_support_nested_variables=yes 11664else 11665 am_cv_make_support_nested_variables=no 11666fi ;; 11667esac 11668fi 11669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11670printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11671if test $am_cv_make_support_nested_variables = yes; then 11672 AM_V='$(V)' 11673 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11674else 11675 AM_V=$AM_DEFAULT_VERBOSITY 11676 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11677fi 11678AM_BACKSLASH='\' 11679 11680 11681 11682 11683 11684 11685 11686 11687# Check whether --with-lint was given. 11688if test ${with_lint+y} 11689then : 11690 withval=$with_lint; use_lint=$withval 11691else case e in #( 11692 e) use_lint=no ;; 11693esac 11694fi 11695 11696 11697# Obtain platform specific info like program name and options 11698# The lint program on FreeBSD and NetBSD is different from the one on Solaris 11699case $host_os in 11700 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 11701 lint_name=splint 11702 lint_options="-badflag" 11703 ;; 11704 *freebsd* | *netbsd*) 11705 lint_name=lint 11706 lint_options="-u -b" 11707 ;; 11708 *solaris*) 11709 lint_name=lint 11710 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 11711 ;; 11712esac 11713 11714# Test for the presence of the program (either guessed by the code or spelled out by the user) 11715if test "x$use_lint" = x"yes" ; then 11716 # Extract the first word of "$lint_name", so it can be a program name with args. 11717set dummy $lint_name; ac_word=$2 11718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11719printf %s "checking for $ac_word... " >&6; } 11720if test ${ac_cv_path_LINT+y} 11721then : 11722 printf %s "(cached) " >&6 11723else case e in #( 11724 e) case $LINT in 11725 [\\/]* | ?:[\\/]*) 11726 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 11727 ;; 11728 *) 11729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11730for as_dir in $PATH 11731do 11732 IFS=$as_save_IFS 11733 case $as_dir in #((( 11734 '') as_dir=./ ;; 11735 */) ;; 11736 *) as_dir=$as_dir/ ;; 11737 esac 11738 for ac_exec_ext in '' $ac_executable_extensions; do 11739 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11740 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 11741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11742 break 2 11743 fi 11744done 11745 done 11746IFS=$as_save_IFS 11747 11748 ;; 11749esac ;; 11750esac 11751fi 11752LINT=$ac_cv_path_LINT 11753if test -n "$LINT"; then 11754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 11755printf "%s\n" "$LINT" >&6; } 11756else 11757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11758printf "%s\n" "no" >&6; } 11759fi 11760 11761 11762 if test "x$LINT" = "x"; then 11763 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 11764 fi 11765elif test "x$use_lint" = x"no" ; then 11766 if test "x$LINT" != "x"; then 11767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 11768printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 11769 fi 11770else 11771 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 11772fi 11773 11774# User supplied flags override default flags 11775if test "x$LINT_FLAGS" != "x"; then 11776 lint_options=$LINT_FLAGS 11777fi 11778 11779LINT_FLAGS=$lint_options 11780 11781 if test "x$LINT" != x; then 11782 LINT_TRUE= 11783 LINT_FALSE='#' 11784else 11785 LINT_TRUE='#' 11786 LINT_FALSE= 11787fi 11788 11789 11790 11791 11792ac_fn_c_check_func "$LINENO" "rename" "ac_cv_func_rename" 11793if test "x$ac_cv_func_rename" = xyes 11794then : 11795 printf "%s\n" "#define HAVE_RENAME 1" >>confdefs.h 11796 11797fi 11798ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod" 11799if test "x$ac_cv_func_fchmod" = xyes 11800then : 11801 printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h 11802 11803fi 11804ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 11805if test "x$ac_cv_func_reallocarray" = xyes 11806then : 11807 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 11808 11809fi 11810 11811 11812# Check whether --enable-largefile was given. 11813if test ${enable_largefile+y} 11814then : 11815 enableval=$enable_largefile; 11816fi 11817if test "$enable_largefile,$enable_year2038" != no,no 11818then : 11819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 11820printf %s "checking for $CC option to enable large file support... " >&6; } 11821if test ${ac_cv_sys_largefile_opts+y} 11822then : 11823 printf %s "(cached) " >&6 11824else case e in #( 11825 e) ac_save_CC="$CC" 11826 ac_opt_found=no 11827 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 11828 if test x"$ac_opt" != x"none needed" 11829then : 11830 CC="$ac_save_CC $ac_opt" 11831fi 11832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11833/* end confdefs.h. */ 11834#include <sys/types.h> 11835#ifndef FTYPE 11836# define FTYPE off_t 11837#endif 11838 /* Check that FTYPE can represent 2**63 - 1 correctly. 11839 We can't simply define LARGE_FTYPE to be 9223372036854775807, 11840 since some C++ compilers masquerading as C compilers 11841 incorrectly reject 9223372036854775807. */ 11842#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 11843 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 11844 && LARGE_FTYPE % 2147483647 == 1) 11845 ? 1 : -1]; 11846int 11847main (void) 11848{ 11849 11850 ; 11851 return 0; 11852} 11853_ACEOF 11854if ac_fn_c_try_compile "$LINENO" 11855then : 11856 if test x"$ac_opt" = x"none needed" 11857then : 11858 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 11859 CC="$CC -DFTYPE=ino_t" 11860 if ac_fn_c_try_compile "$LINENO" 11861then : 11862 11863else case e in #( 11864 e) CC="$CC -D_FILE_OFFSET_BITS=64" 11865 if ac_fn_c_try_compile "$LINENO" 11866then : 11867 ac_opt='-D_FILE_OFFSET_BITS=64' 11868fi 11869rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 11870esac 11871fi 11872rm -f core conftest.err conftest.$ac_objext conftest.beam 11873fi 11874 ac_cv_sys_largefile_opts=$ac_opt 11875 ac_opt_found=yes 11876fi 11877rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11878 test $ac_opt_found = no || break 11879 done 11880 CC="$ac_save_CC" 11881 11882 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 11883esac 11884fi 11885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 11886printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 11887 11888ac_have_largefile=yes 11889case $ac_cv_sys_largefile_opts in #( 11890 "none needed") : 11891 ;; #( 11892 "supported through gnulib") : 11893 ;; #( 11894 "support not detected") : 11895 ac_have_largefile=no ;; #( 11896 "-D_FILE_OFFSET_BITS=64") : 11897 11898printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 11899 ;; #( 11900 "-D_LARGE_FILES=1") : 11901 11902printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 11903 ;; #( 11904 "-n32") : 11905 CC="$CC -n32" ;; #( 11906 *) : 11907 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 11908esac 11909 11910if test "$enable_year2038" != no 11911then : 11912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 11913printf %s "checking for $CC option for timestamps after 2038... " >&6; } 11914if test ${ac_cv_sys_year2038_opts+y} 11915then : 11916 printf %s "(cached) " >&6 11917else case e in #( 11918 e) ac_save_CPPFLAGS="$CPPFLAGS" 11919 ac_opt_found=no 11920 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 11921 if test x"$ac_opt" != x"none needed" 11922then : 11923 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 11924fi 11925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11926/* end confdefs.h. */ 11927 11928 #include <time.h> 11929 /* Check that time_t can represent 2**32 - 1 correctly. */ 11930 #define LARGE_TIME_T \\ 11931 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 11932 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 11933 && LARGE_TIME_T % 65537 == 0) 11934 ? 1 : -1]; 11935 11936int 11937main (void) 11938{ 11939 11940 ; 11941 return 0; 11942} 11943_ACEOF 11944if ac_fn_c_try_compile "$LINENO" 11945then : 11946 ac_cv_sys_year2038_opts="$ac_opt" 11947 ac_opt_found=yes 11948fi 11949rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11950 test $ac_opt_found = no || break 11951 done 11952 CPPFLAGS="$ac_save_CPPFLAGS" 11953 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 11954esac 11955fi 11956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 11957printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 11958 11959ac_have_year2038=yes 11960case $ac_cv_sys_year2038_opts in #( 11961 "none needed") : 11962 ;; #( 11963 "support not detected") : 11964 ac_have_year2038=no ;; #( 11965 "-D_TIME_BITS=64") : 11966 11967printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 11968 ;; #( 11969 "-D__MINGW_USE_VC2005_COMPAT") : 11970 11971printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 11972 ;; #( 11973 "-U_USE_32_BIT_TIME_T"*) : 11974 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11975printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11976as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 11977will stop working after mid-January 2038. Remove 11978_USE_32BIT_TIME_T from the compiler flags. 11979See 'config.log' for more details" "$LINENO" 5; } ;; #( 11980 *) : 11981 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 11982esac 11983 11984fi 11985 11986fi 11987 11988ac_config_files="$ac_config_files Makefile" 11989 11990cat >confcache <<\_ACEOF 11991# This file is a shell script that caches the results of configure 11992# tests run on this system so they can be shared between configure 11993# scripts and configure runs, see configure's option --config-cache. 11994# It is not useful on other systems. If it contains results you don't 11995# want to keep, you may remove or edit it. 11996# 11997# config.status only pays attention to the cache file if you give it 11998# the --recheck option to rerun configure. 11999# 12000# 'ac_cv_env_foo' variables (set or unset) will be overridden when 12001# loading this file, other *unset* 'ac_cv_foo' will be assigned the 12002# following values. 12003 12004_ACEOF 12005 12006# The following way of writing the cache mishandles newlines in values, 12007# but we know of no workaround that is simple, portable, and efficient. 12008# So, we kill variables containing newlines. 12009# Ultrix sh set writes to stderr and can't be redirected directly, 12010# and sets the high bit in the cache file unless we assign to the vars. 12011( 12012 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12013 eval ac_val=\$$ac_var 12014 case $ac_val in #( 12015 *${as_nl}*) 12016 case $ac_var in #( 12017 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12018printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12019 esac 12020 case $ac_var in #( 12021 _ | IFS | as_nl) ;; #( 12022 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12023 *) { eval $ac_var=; unset $ac_var;} ;; 12024 esac ;; 12025 esac 12026 done 12027 12028 (set) 2>&1 | 12029 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12030 *${as_nl}ac_space=\ *) 12031 # 'set' does not quote correctly, so add quotes: double-quote 12032 # substitution turns \\\\ into \\, and sed turns \\ into \. 12033 sed -n \ 12034 "s/'/'\\\\''/g; 12035 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12036 ;; #( 12037 *) 12038 # 'set' quotes correctly as required by POSIX, so do not add quotes. 12039 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12040 ;; 12041 esac | 12042 sort 12043) | 12044 sed ' 12045 /^ac_cv_env_/b end 12046 t clear 12047 :clear 12048 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 12049 t end 12050 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12051 :end' >>confcache 12052if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12053 if test -w "$cache_file"; then 12054 if test "x$cache_file" != "x/dev/null"; then 12055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12056printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 12057 if test ! -f "$cache_file" || test -h "$cache_file"; then 12058 cat confcache >"$cache_file" 12059 else 12060 case $cache_file in #( 12061 */* | ?:*) 12062 mv -f confcache "$cache_file"$$ && 12063 mv -f "$cache_file"$$ "$cache_file" ;; #( 12064 *) 12065 mv -f confcache "$cache_file" ;; 12066 esac 12067 fi 12068 fi 12069 else 12070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12071printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 12072 fi 12073fi 12074rm -f confcache 12075 12076test "x$prefix" = xNONE && prefix=$ac_default_prefix 12077# Let make expand exec_prefix. 12078test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12079 12080DEFS=-DHAVE_CONFIG_H 12081 12082ac_libobjs= 12083ac_ltlibobjs= 12084U= 12085for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12086 # 1. Remove the extension, and $U if already installed. 12087 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12088 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 12089 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12090 # will be set to the directory where LIBOBJS objects are built. 12091 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12092 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12093done 12094LIBOBJS=$ac_libobjs 12095 12096LTLIBOBJS=$ac_ltlibobjs 12097 12098 12099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12100printf %s "checking that generated files are newer than configure... " >&6; } 12101 if test -n "$am_sleep_pid"; then 12102 # Hide warnings about reused PIDs. 12103 wait $am_sleep_pid 2>/dev/null 12104 fi 12105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 12106printf "%s\n" "done" >&6; } 12107if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12108 as_fn_error $? "conditional \"AMDEP\" was never defined. 12109Usually this means the macro was only invoked conditionally." "$LINENO" 5 12110fi 12111if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12112 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12113Usually this means the macro was only invoked conditionally." "$LINENO" 5 12114fi 12115 if test -n "$EXEEXT"; then 12116 am__EXEEXT_TRUE= 12117 am__EXEEXT_FALSE='#' 12118else 12119 am__EXEEXT_TRUE='#' 12120 am__EXEEXT_FALSE= 12121fi 12122 12123if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 12124 as_fn_error $? "conditional \"LINT\" was never defined. 12125Usually this means the macro was only invoked conditionally." "$LINENO" 5 12126fi 12127# Check whether --enable-year2038 was given. 12128if test ${enable_year2038+y} 12129then : 12130 enableval=$enable_year2038; 12131fi 12132 12133 12134: "${CONFIG_STATUS=./config.status}" 12135ac_write_fail=0 12136ac_clean_files_save=$ac_clean_files 12137ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12139printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 12140as_write_fail=0 12141cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12142#! $SHELL 12143# Generated by $as_me. 12144# Run this file to recreate the current configuration. 12145# Compiler output produced by configure, useful for debugging 12146# configure, is in config.log if it exists. 12147 12148debug=false 12149ac_cs_recheck=false 12150ac_cs_silent=false 12151 12152SHELL=\${CONFIG_SHELL-$SHELL} 12153export SHELL 12154_ASEOF 12155cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12156## -------------------- ## 12157## M4sh Initialization. ## 12158## -------------------- ## 12159 12160# Be more Bourne compatible 12161DUALCASE=1; export DUALCASE # for MKS sh 12162if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12163then : 12164 emulate sh 12165 NULLCMD=: 12166 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12167 # is contrary to our usage. Disable this feature. 12168 alias -g '${1+"$@"}'='"$@"' 12169 setopt NO_GLOB_SUBST 12170else case e in #( 12171 e) case `(set -o) 2>/dev/null` in #( 12172 *posix*) : 12173 set -o posix ;; #( 12174 *) : 12175 ;; 12176esac ;; 12177esac 12178fi 12179 12180 12181 12182# Reset variables that may have inherited troublesome values from 12183# the environment. 12184 12185# IFS needs to be set, to space, tab, and newline, in precisely that order. 12186# (If _AS_PATH_WALK were called with IFS unset, it would have the 12187# side effect of setting IFS to empty, thus disabling word splitting.) 12188# Quoting is to prevent editors from complaining about space-tab. 12189as_nl=' 12190' 12191export as_nl 12192IFS=" "" $as_nl" 12193 12194PS1='$ ' 12195PS2='> ' 12196PS4='+ ' 12197 12198# Ensure predictable behavior from utilities with locale-dependent output. 12199LC_ALL=C 12200export LC_ALL 12201LANGUAGE=C 12202export LANGUAGE 12203 12204# We cannot yet rely on "unset" to work, but we need these variables 12205# to be unset--not just set to an empty or harmless value--now, to 12206# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12207# also avoids known problems related to "unset" and subshell syntax 12208# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12209for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12210do eval test \${$as_var+y} \ 12211 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12212done 12213 12214# Ensure that fds 0, 1, and 2 are open. 12215if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12216if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12217if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12218 12219# The user is always right. 12220if ${PATH_SEPARATOR+false} :; then 12221 PATH_SEPARATOR=: 12222 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12223 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12224 PATH_SEPARATOR=';' 12225 } 12226fi 12227 12228 12229# Find who we are. Look in the path if we contain no directory separator. 12230as_myself= 12231case $0 in #(( 12232 *[\\/]* ) as_myself=$0 ;; 12233 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12234for as_dir in $PATH 12235do 12236 IFS=$as_save_IFS 12237 case $as_dir in #((( 12238 '') as_dir=./ ;; 12239 */) ;; 12240 *) as_dir=$as_dir/ ;; 12241 esac 12242 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12243 done 12244IFS=$as_save_IFS 12245 12246 ;; 12247esac 12248# We did not find ourselves, most probably we were run as 'sh COMMAND' 12249# in which case we are not to be found in the path. 12250if test "x$as_myself" = x; then 12251 as_myself=$0 12252fi 12253if test ! -f "$as_myself"; then 12254 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12255 exit 1 12256fi 12257 12258 12259 12260# as_fn_error STATUS ERROR [LINENO LOG_FD] 12261# ---------------------------------------- 12262# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12263# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12264# script with STATUS, using 1 if that was 0. 12265as_fn_error () 12266{ 12267 as_status=$1; test $as_status -eq 0 && as_status=1 12268 if test "$4"; then 12269 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12271 fi 12272 printf "%s\n" "$as_me: error: $2" >&2 12273 as_fn_exit $as_status 12274} # as_fn_error 12275 12276 12277# as_fn_set_status STATUS 12278# ----------------------- 12279# Set $? to STATUS, without forking. 12280as_fn_set_status () 12281{ 12282 return $1 12283} # as_fn_set_status 12284 12285# as_fn_exit STATUS 12286# ----------------- 12287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12288as_fn_exit () 12289{ 12290 set +e 12291 as_fn_set_status $1 12292 exit $1 12293} # as_fn_exit 12294 12295# as_fn_unset VAR 12296# --------------- 12297# Portably unset VAR. 12298as_fn_unset () 12299{ 12300 { eval $1=; unset $1;} 12301} 12302as_unset=as_fn_unset 12303 12304# as_fn_append VAR VALUE 12305# ---------------------- 12306# Append the text in VALUE to the end of the definition contained in VAR. Take 12307# advantage of any shell optimizations that allow amortized linear growth over 12308# repeated appends, instead of the typical quadratic growth present in naive 12309# implementations. 12310if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12311then : 12312 eval 'as_fn_append () 12313 { 12314 eval $1+=\$2 12315 }' 12316else case e in #( 12317 e) as_fn_append () 12318 { 12319 eval $1=\$$1\$2 12320 } ;; 12321esac 12322fi # as_fn_append 12323 12324# as_fn_arith ARG... 12325# ------------------ 12326# Perform arithmetic evaluation on the ARGs, and store the result in the 12327# global $as_val. Take advantage of shells that can avoid forks. The arguments 12328# must be portable across $(()) and expr. 12329if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12330then : 12331 eval 'as_fn_arith () 12332 { 12333 as_val=$(( $* )) 12334 }' 12335else case e in #( 12336 e) as_fn_arith () 12337 { 12338 as_val=`expr "$@" || test $? -eq 1` 12339 } ;; 12340esac 12341fi # as_fn_arith 12342 12343 12344if expr a : '\(a\)' >/dev/null 2>&1 && 12345 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12346 as_expr=expr 12347else 12348 as_expr=false 12349fi 12350 12351if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12352 as_basename=basename 12353else 12354 as_basename=false 12355fi 12356 12357if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12358 as_dirname=dirname 12359else 12360 as_dirname=false 12361fi 12362 12363as_me=`$as_basename -- "$0" || 12364$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12365 X"$0" : 'X\(//\)$' \| \ 12366 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12367printf "%s\n" X/"$0" | 12368 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12369 s//\1/ 12370 q 12371 } 12372 /^X\/\(\/\/\)$/{ 12373 s//\1/ 12374 q 12375 } 12376 /^X\/\(\/\).*/{ 12377 s//\1/ 12378 q 12379 } 12380 s/.*/./; q'` 12381 12382# Avoid depending upon Character Ranges. 12383as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12384as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12385as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12386as_cr_digits='0123456789' 12387as_cr_alnum=$as_cr_Letters$as_cr_digits 12388 12389 12390# Determine whether it's possible to make 'echo' print without a newline. 12391# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12392# for compatibility with existing Makefiles. 12393ECHO_C= ECHO_N= ECHO_T= 12394case `echo -n x` in #((((( 12395-n*) 12396 case `echo 'xy\c'` in 12397 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12398 xy) ECHO_C='\c';; 12399 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12400 ECHO_T=' ';; 12401 esac;; 12402*) 12403 ECHO_N='-n';; 12404esac 12405 12406# For backward compatibility with old third-party macros, we provide 12407# the shell variables $as_echo and $as_echo_n. New code should use 12408# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12409as_echo='printf %s\n' 12410as_echo_n='printf %s' 12411 12412rm -f conf$$ conf$$.exe conf$$.file 12413if test -d conf$$.dir; then 12414 rm -f conf$$.dir/conf$$.file 12415else 12416 rm -f conf$$.dir 12417 mkdir conf$$.dir 2>/dev/null 12418fi 12419if (echo >conf$$.file) 2>/dev/null; then 12420 if ln -s conf$$.file conf$$ 2>/dev/null; then 12421 as_ln_s='ln -s' 12422 # ... but there are two gotchas: 12423 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12424 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12425 # In both cases, we have to default to 'cp -pR'. 12426 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12427 as_ln_s='cp -pR' 12428 elif ln conf$$.file conf$$ 2>/dev/null; then 12429 as_ln_s=ln 12430 else 12431 as_ln_s='cp -pR' 12432 fi 12433else 12434 as_ln_s='cp -pR' 12435fi 12436rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12437rmdir conf$$.dir 2>/dev/null 12438 12439 12440# as_fn_mkdir_p 12441# ------------- 12442# Create "$as_dir" as a directory, including parents if necessary. 12443as_fn_mkdir_p () 12444{ 12445 12446 case $as_dir in #( 12447 -*) as_dir=./$as_dir;; 12448 esac 12449 test -d "$as_dir" || eval $as_mkdir_p || { 12450 as_dirs= 12451 while :; do 12452 case $as_dir in #( 12453 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12454 *) as_qdir=$as_dir;; 12455 esac 12456 as_dirs="'$as_qdir' $as_dirs" 12457 as_dir=`$as_dirname -- "$as_dir" || 12458$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12459 X"$as_dir" : 'X\(//\)[^/]' \| \ 12460 X"$as_dir" : 'X\(//\)$' \| \ 12461 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12462printf "%s\n" X"$as_dir" | 12463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12464 s//\1/ 12465 q 12466 } 12467 /^X\(\/\/\)[^/].*/{ 12468 s//\1/ 12469 q 12470 } 12471 /^X\(\/\/\)$/{ 12472 s//\1/ 12473 q 12474 } 12475 /^X\(\/\).*/{ 12476 s//\1/ 12477 q 12478 } 12479 s/.*/./; q'` 12480 test -d "$as_dir" && break 12481 done 12482 test -z "$as_dirs" || eval "mkdir $as_dirs" 12483 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12484 12485 12486} # as_fn_mkdir_p 12487if mkdir -p . 2>/dev/null; then 12488 as_mkdir_p='mkdir -p "$as_dir"' 12489else 12490 test -d ./-p && rmdir ./-p 12491 as_mkdir_p=false 12492fi 12493 12494 12495# as_fn_executable_p FILE 12496# ----------------------- 12497# Test if FILE is an executable regular file. 12498as_fn_executable_p () 12499{ 12500 test -f "$1" && test -x "$1" 12501} # as_fn_executable_p 12502as_test_x='test -x' 12503as_executable_p=as_fn_executable_p 12504 12505# Sed expression to map a string onto a valid CPP name. 12506as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12507as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12508 12509# Sed expression to map a string onto a valid variable name. 12510as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12511as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12512 12513 12514exec 6>&1 12515## ----------------------------------- ## 12516## Main body of $CONFIG_STATUS script. ## 12517## ----------------------------------- ## 12518_ASEOF 12519test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12520 12521cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12522# Save the log message, to keep $0 and so on meaningful, and to 12523# report actual input values of CONFIG_FILES etc. instead of their 12524# values after options handling. 12525ac_log=" 12526This file was extended by makedepend $as_me 1.0.9, which was 12527generated by GNU Autoconf 2.72. Invocation command line was 12528 12529 CONFIG_FILES = $CONFIG_FILES 12530 CONFIG_HEADERS = $CONFIG_HEADERS 12531 CONFIG_LINKS = $CONFIG_LINKS 12532 CONFIG_COMMANDS = $CONFIG_COMMANDS 12533 $ $0 $@ 12534 12535on `(hostname || uname -n) 2>/dev/null | sed 1q` 12536" 12537 12538_ACEOF 12539 12540case $ac_config_files in *" 12541"*) set x $ac_config_files; shift; ac_config_files=$*;; 12542esac 12543 12544case $ac_config_headers in *" 12545"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12546esac 12547 12548 12549cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12550# Files that config.status was made for. 12551config_files="$ac_config_files" 12552config_headers="$ac_config_headers" 12553config_commands="$ac_config_commands" 12554 12555_ACEOF 12556 12557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12558ac_cs_usage="\ 12559'$as_me' instantiates files and other configuration actions 12560from templates according to the current configuration. Unless the files 12561and actions are specified as TAGs, all are instantiated by default. 12562 12563Usage: $0 [OPTION]... [TAG]... 12564 12565 -h, --help print this help, then exit 12566 -V, --version print version number and configuration settings, then exit 12567 --config print configuration, then exit 12568 -q, --quiet, --silent 12569 do not print progress messages 12570 -d, --debug don't remove temporary files 12571 --recheck update $as_me by reconfiguring in the same conditions 12572 --file=FILE[:TEMPLATE] 12573 instantiate the configuration file FILE 12574 --header=FILE[:TEMPLATE] 12575 instantiate the configuration header FILE 12576 12577Configuration files: 12578$config_files 12579 12580Configuration headers: 12581$config_headers 12582 12583Configuration commands: 12584$config_commands 12585 12586Report bugs to <https://gitlab.freedesktop.org/xorg/util/makedepend/-/issues>." 12587 12588_ACEOF 12589ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12590ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12592ac_cs_config='$ac_cs_config_escaped' 12593ac_cs_version="\\ 12594makedepend config.status 1.0.9 12595configured by $0, generated by GNU Autoconf 2.72, 12596 with options \\"\$ac_cs_config\\" 12597 12598Copyright (C) 2023 Free Software Foundation, Inc. 12599This config.status script is free software; the Free Software Foundation 12600gives unlimited permission to copy, distribute and modify it." 12601 12602ac_pwd='$ac_pwd' 12603srcdir='$srcdir' 12604INSTALL='$INSTALL' 12605MKDIR_P='$MKDIR_P' 12606AWK='$AWK' 12607test -n "\$AWK" || AWK=awk 12608_ACEOF 12609 12610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12611# The default lists apply if the user does not specify any file. 12612ac_need_defaults=: 12613while test $# != 0 12614do 12615 case $1 in 12616 --*=?*) 12617 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12618 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12619 ac_shift=: 12620 ;; 12621 --*=) 12622 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12623 ac_optarg= 12624 ac_shift=: 12625 ;; 12626 *) 12627 ac_option=$1 12628 ac_optarg=$2 12629 ac_shift=shift 12630 ;; 12631 esac 12632 12633 case $ac_option in 12634 # Handling of the options. 12635 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12636 ac_cs_recheck=: ;; 12637 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12638 printf "%s\n" "$ac_cs_version"; exit ;; 12639 --config | --confi | --conf | --con | --co | --c ) 12640 printf "%s\n" "$ac_cs_config"; exit ;; 12641 --debug | --debu | --deb | --de | --d | -d ) 12642 debug=: ;; 12643 --file | --fil | --fi | --f ) 12644 $ac_shift 12645 case $ac_optarg in 12646 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12647 '') as_fn_error $? "missing file argument" ;; 12648 esac 12649 as_fn_append CONFIG_FILES " '$ac_optarg'" 12650 ac_need_defaults=false;; 12651 --header | --heade | --head | --hea ) 12652 $ac_shift 12653 case $ac_optarg in 12654 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12655 esac 12656 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12657 ac_need_defaults=false;; 12658 --he | --h) 12659 # Conflict between --help and --header 12660 as_fn_error $? "ambiguous option: '$1' 12661Try '$0 --help' for more information.";; 12662 --help | --hel | -h ) 12663 printf "%s\n" "$ac_cs_usage"; exit ;; 12664 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12665 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12666 ac_cs_silent=: ;; 12667 12668 # This is an error. 12669 -*) as_fn_error $? "unrecognized option: '$1' 12670Try '$0 --help' for more information." ;; 12671 12672 *) as_fn_append ac_config_targets " $1" 12673 ac_need_defaults=false ;; 12674 12675 esac 12676 shift 12677done 12678 12679ac_configure_extra_args= 12680 12681if $ac_cs_silent; then 12682 exec 6>/dev/null 12683 ac_configure_extra_args="$ac_configure_extra_args --silent" 12684fi 12685 12686_ACEOF 12687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12688if \$ac_cs_recheck; then 12689 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12690 shift 12691 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12692 CONFIG_SHELL='$SHELL' 12693 export CONFIG_SHELL 12694 exec "\$@" 12695fi 12696 12697_ACEOF 12698cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12699exec 5>>config.log 12700{ 12701 echo 12702 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12703## Running $as_me. ## 12704_ASBOX 12705 printf "%s\n" "$ac_log" 12706} >&5 12707 12708_ACEOF 12709cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12710# 12711# INIT-COMMANDS 12712# 12713AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12714 12715_ACEOF 12716 12717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12718 12719# Handling of arguments. 12720for ac_config_target in $ac_config_targets 12721do 12722 case $ac_config_target in 12723 "makedepend-config.h") CONFIG_HEADERS="$CONFIG_HEADERS makedepend-config.h" ;; 12724 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12725 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12726 12727 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12728 esac 12729done 12730 12731 12732# If the user did not use the arguments to specify the items to instantiate, 12733# then the envvar interface is used. Set only those that are not. 12734# We use the long form for the default assignment because of an extremely 12735# bizarre bug on SunOS 4.1.3. 12736if $ac_need_defaults; then 12737 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12738 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12739 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12740fi 12741 12742# Have a temporary directory for convenience. Make it in the build tree 12743# simply because there is no reason against having it here, and in addition, 12744# creating and moving files from /tmp can sometimes cause problems. 12745# Hook for its removal unless debugging. 12746# Note that there is a small window in which the directory will not be cleaned: 12747# after its creation but before its name has been assigned to '$tmp'. 12748$debug || 12749{ 12750 tmp= ac_tmp= 12751 trap 'exit_status=$? 12752 : "${ac_tmp:=$tmp}" 12753 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12754' 0 12755 trap 'as_fn_exit 1' 1 2 13 15 12756} 12757# Create a (secure) tmp directory for tmp files. 12758 12759{ 12760 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12761 test -d "$tmp" 12762} || 12763{ 12764 tmp=./conf$$-$RANDOM 12765 (umask 077 && mkdir "$tmp") 12766} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12767ac_tmp=$tmp 12768 12769# Set up the scripts for CONFIG_FILES section. 12770# No need to generate them if there are no CONFIG_FILES. 12771# This happens for instance with './config.status config.h'. 12772if test -n "$CONFIG_FILES"; then 12773 12774 12775ac_cr=`echo X | tr X '\015'` 12776# On cygwin, bash can eat \r inside `` if the user requested igncr. 12777# But we know of no other shell where ac_cr would be empty at this 12778# point, so we can use a bashism as a fallback. 12779if test "x$ac_cr" = x; then 12780 eval ac_cr=\$\'\\r\' 12781fi 12782ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12783if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12784 ac_cs_awk_cr='\\r' 12785else 12786 ac_cs_awk_cr=$ac_cr 12787fi 12788 12789echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12790_ACEOF 12791 12792 12793{ 12794 echo "cat >conf$$subs.awk <<_ACEOF" && 12795 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12796 echo "_ACEOF" 12797} >conf$$subs.sh || 12798 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12799ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12800ac_delim='%!_!# ' 12801for ac_last_try in false false false false false :; do 12802 . ./conf$$subs.sh || 12803 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12804 12805 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12806 if test $ac_delim_n = $ac_delim_num; then 12807 break 12808 elif $ac_last_try; then 12809 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12810 else 12811 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12812 fi 12813done 12814rm -f conf$$subs.sh 12815 12816cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12817cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12818_ACEOF 12819sed -n ' 12820h 12821s/^/S["/; s/!.*/"]=/ 12822p 12823g 12824s/^[^!]*!// 12825:repl 12826t repl 12827s/'"$ac_delim"'$// 12828t delim 12829:nl 12830h 12831s/\(.\{148\}\)..*/\1/ 12832t more1 12833s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12834p 12835n 12836b repl 12837:more1 12838s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12839p 12840g 12841s/.\{148\}// 12842t nl 12843:delim 12844h 12845s/\(.\{148\}\)..*/\1/ 12846t more2 12847s/["\\]/\\&/g; s/^/"/; s/$/"/ 12848p 12849b 12850:more2 12851s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12852p 12853g 12854s/.\{148\}// 12855t delim 12856' <conf$$subs.awk | sed ' 12857/^[^""]/{ 12858 N 12859 s/\n// 12860} 12861' >>$CONFIG_STATUS || ac_write_fail=1 12862rm -f conf$$subs.awk 12863cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12864_ACAWK 12865cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12866 for (key in S) S_is_set[key] = 1 12867 FS = "" 12868 12869} 12870{ 12871 line = $ 0 12872 nfields = split(line, field, "@") 12873 substed = 0 12874 len = length(field[1]) 12875 for (i = 2; i < nfields; i++) { 12876 key = field[i] 12877 keylen = length(key) 12878 if (S_is_set[key]) { 12879 value = S[key] 12880 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12881 len += length(value) + length(field[++i]) 12882 substed = 1 12883 } else 12884 len += 1 + keylen 12885 } 12886 12887 print line 12888} 12889 12890_ACAWK 12891_ACEOF 12892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12893if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12894 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12895else 12896 cat 12897fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12898 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12899_ACEOF 12900 12901# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12902# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12903# trailing colons and then remove the whole line if VPATH becomes empty 12904# (actually we leave an empty line to preserve line numbers). 12905if test "x$srcdir" = x.; then 12906 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12907h 12908s/// 12909s/^/:/ 12910s/[ ]*$/:/ 12911s/:\$(srcdir):/:/g 12912s/:\${srcdir}:/:/g 12913s/:@srcdir@:/:/g 12914s/^:*// 12915s/:*$// 12916x 12917s/\(=[ ]*\).*/\1/ 12918G 12919s/\n// 12920s/^[^=]*=[ ]*$// 12921}' 12922fi 12923 12924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12925fi # test -n "$CONFIG_FILES" 12926 12927# Set up the scripts for CONFIG_HEADERS section. 12928# No need to generate them if there are no CONFIG_HEADERS. 12929# This happens for instance with './config.status Makefile'. 12930if test -n "$CONFIG_HEADERS"; then 12931cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12932BEGIN { 12933_ACEOF 12934 12935# Transform confdefs.h into an awk script 'defines.awk', embedded as 12936# here-document in config.status, that substitutes the proper values into 12937# config.h.in to produce config.h. 12938 12939# Create a delimiter string that does not exist in confdefs.h, to ease 12940# handling of long lines. 12941ac_delim='%!_!# ' 12942for ac_last_try in false false :; do 12943 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12944 if test -z "$ac_tt"; then 12945 break 12946 elif $ac_last_try; then 12947 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12948 else 12949 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12950 fi 12951done 12952 12953# For the awk script, D is an array of macro values keyed by name, 12954# likewise P contains macro parameters if any. Preserve backslash 12955# newline sequences. 12956 12957ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12958sed -n ' 12959s/.\{148\}/&'"$ac_delim"'/g 12960t rset 12961:rset 12962s/^[ ]*#[ ]*define[ ][ ]*/ / 12963t def 12964d 12965:def 12966s/\\$// 12967t bsnl 12968s/["\\]/\\&/g 12969s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12970D["\1"]=" \3"/p 12971s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12972d 12973:bsnl 12974s/["\\]/\\&/g 12975s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12976D["\1"]=" \3\\\\\\n"\\/p 12977t cont 12978s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12979t cont 12980d 12981:cont 12982n 12983s/.\{148\}/&'"$ac_delim"'/g 12984t clear 12985:clear 12986s/\\$// 12987t bsnlc 12988s/["\\]/\\&/g; s/^/"/; s/$/"/p 12989d 12990:bsnlc 12991s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12992b cont 12993' <confdefs.h | sed ' 12994s/'"$ac_delim"'/"\\\ 12995"/g' >>$CONFIG_STATUS || ac_write_fail=1 12996 12997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12998 for (key in D) D_is_set[key] = 1 12999 FS = "" 13000} 13001/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13002 line = \$ 0 13003 split(line, arg, " ") 13004 if (arg[1] == "#") { 13005 defundef = arg[2] 13006 mac1 = arg[3] 13007 } else { 13008 defundef = substr(arg[1], 2) 13009 mac1 = arg[2] 13010 } 13011 split(mac1, mac2, "(") #) 13012 macro = mac2[1] 13013 prefix = substr(line, 1, index(line, defundef) - 1) 13014 if (D_is_set[macro]) { 13015 # Preserve the white space surrounding the "#". 13016 print prefix "define", macro P[macro] D[macro] 13017 next 13018 } else { 13019 # Replace #undef with comments. This is necessary, for example, 13020 # in the case of _POSIX_SOURCE, which is predefined and required 13021 # on some systems where configure will not decide to define it. 13022 if (defundef == "undef") { 13023 print "/*", prefix defundef, macro, "*/" 13024 next 13025 } 13026 } 13027} 13028{ print } 13029_ACAWK 13030_ACEOF 13031cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13032 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13033fi # test -n "$CONFIG_HEADERS" 13034 13035 13036eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13037shift 13038for ac_tag 13039do 13040 case $ac_tag in 13041 :[FHLC]) ac_mode=$ac_tag; continue;; 13042 esac 13043 case $ac_mode$ac_tag in 13044 :[FHL]*:*);; 13045 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 13046 :[FH]-) ac_tag=-:-;; 13047 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13048 esac 13049 ac_save_IFS=$IFS 13050 IFS=: 13051 set x $ac_tag 13052 IFS=$ac_save_IFS 13053 shift 13054 ac_file=$1 13055 shift 13056 13057 case $ac_mode in 13058 :L) ac_source=$1;; 13059 :[FH]) 13060 ac_file_inputs= 13061 for ac_f 13062 do 13063 case $ac_f in 13064 -) ac_f="$ac_tmp/stdin";; 13065 *) # Look for the file first in the build tree, then in the source tree 13066 # (if the path is not absolute). The absolute path cannot be DOS-style, 13067 # because $ac_f cannot contain ':'. 13068 test -f "$ac_f" || 13069 case $ac_f in 13070 [\\/$]*) false;; 13071 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13072 esac || 13073 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 13074 esac 13075 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13076 as_fn_append ac_file_inputs " '$ac_f'" 13077 done 13078 13079 # Let's still pretend it is 'configure' which instantiates (i.e., don't 13080 # use $as_me), people would be surprised to read: 13081 # /* config.h. Generated by config.status. */ 13082 configure_input='Generated from '` 13083 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13084 `' by configure.' 13085 if test x"$ac_file" != x-; then 13086 configure_input="$ac_file. $configure_input" 13087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13088printf "%s\n" "$as_me: creating $ac_file" >&6;} 13089 fi 13090 # Neutralize special characters interpreted by sed in replacement strings. 13091 case $configure_input in #( 13092 *\&* | *\|* | *\\* ) 13093 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 13094 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13095 *) ac_sed_conf_input=$configure_input;; 13096 esac 13097 13098 case $ac_tag in 13099 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13100 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13101 esac 13102 ;; 13103 esac 13104 13105 ac_dir=`$as_dirname -- "$ac_file" || 13106$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13107 X"$ac_file" : 'X\(//\)[^/]' \| \ 13108 X"$ac_file" : 'X\(//\)$' \| \ 13109 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13110printf "%s\n" X"$ac_file" | 13111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13112 s//\1/ 13113 q 13114 } 13115 /^X\(\/\/\)[^/].*/{ 13116 s//\1/ 13117 q 13118 } 13119 /^X\(\/\/\)$/{ 13120 s//\1/ 13121 q 13122 } 13123 /^X\(\/\).*/{ 13124 s//\1/ 13125 q 13126 } 13127 s/.*/./; q'` 13128 as_dir="$ac_dir"; as_fn_mkdir_p 13129 ac_builddir=. 13130 13131case "$ac_dir" in 13132.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13133*) 13134 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13135 # A ".." for each directory in $ac_dir_suffix. 13136 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13137 case $ac_top_builddir_sub in 13138 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13139 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13140 esac ;; 13141esac 13142ac_abs_top_builddir=$ac_pwd 13143ac_abs_builddir=$ac_pwd$ac_dir_suffix 13144# for backward compatibility: 13145ac_top_builddir=$ac_top_build_prefix 13146 13147case $srcdir in 13148 .) # We are building in place. 13149 ac_srcdir=. 13150 ac_top_srcdir=$ac_top_builddir_sub 13151 ac_abs_top_srcdir=$ac_pwd ;; 13152 [\\/]* | ?:[\\/]* ) # Absolute name. 13153 ac_srcdir=$srcdir$ac_dir_suffix; 13154 ac_top_srcdir=$srcdir 13155 ac_abs_top_srcdir=$srcdir ;; 13156 *) # Relative name. 13157 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13158 ac_top_srcdir=$ac_top_build_prefix$srcdir 13159 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13160esac 13161ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13162 13163 13164 case $ac_mode in 13165 :F) 13166 # 13167 # CONFIG_FILE 13168 # 13169 13170 case $INSTALL in 13171 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13172 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13173 esac 13174 ac_MKDIR_P=$MKDIR_P 13175 case $MKDIR_P in 13176 [\\/$]* | ?:[\\/]* ) ;; 13177 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13178 esac 13179_ACEOF 13180 13181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13182# If the template does not know about datarootdir, expand it. 13183# FIXME: This hack should be removed a few years after 2.60. 13184ac_datarootdir_hack=; ac_datarootdir_seen= 13185ac_sed_dataroot=' 13186/datarootdir/ { 13187 p 13188 q 13189} 13190/@datadir@/p 13191/@docdir@/p 13192/@infodir@/p 13193/@localedir@/p 13194/@mandir@/p' 13195case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13196*datarootdir*) ac_datarootdir_seen=yes;; 13197*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13199printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13200_ACEOF 13201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13202 ac_datarootdir_hack=' 13203 s&@datadir@&$datadir&g 13204 s&@docdir@&$docdir&g 13205 s&@infodir@&$infodir&g 13206 s&@localedir@&$localedir&g 13207 s&@mandir@&$mandir&g 13208 s&\\\${datarootdir}&$datarootdir&g' ;; 13209esac 13210_ACEOF 13211 13212# Neutralize VPATH when '$srcdir' = '.'. 13213# Shell code in configure.ac might set extrasub. 13214# FIXME: do we really want to maintain this feature? 13215cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13216ac_sed_extra="$ac_vpsub 13217$extrasub 13218_ACEOF 13219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13220:t 13221/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13222s|@configure_input@|$ac_sed_conf_input|;t t 13223s&@top_builddir@&$ac_top_builddir_sub&;t t 13224s&@top_build_prefix@&$ac_top_build_prefix&;t t 13225s&@srcdir@&$ac_srcdir&;t t 13226s&@abs_srcdir@&$ac_abs_srcdir&;t t 13227s&@top_srcdir@&$ac_top_srcdir&;t t 13228s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13229s&@builddir@&$ac_builddir&;t t 13230s&@abs_builddir@&$ac_abs_builddir&;t t 13231s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13232s&@INSTALL@&$ac_INSTALL&;t t 13233s&@MKDIR_P@&$ac_MKDIR_P&;t t 13234$ac_datarootdir_hack 13235" 13236eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13237 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13238 13239test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13240 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13241 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13242 "$ac_tmp/out"`; test -z "$ac_out"; } && 13243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13244which seems to be undefined. Please make sure it is defined" >&5 13245printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13246which seems to be undefined. Please make sure it is defined" >&2;} 13247 13248 rm -f "$ac_tmp/stdin" 13249 case $ac_file in 13250 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13251 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13252 esac \ 13253 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13254 ;; 13255 :H) 13256 # 13257 # CONFIG_HEADER 13258 # 13259 if test x"$ac_file" != x-; then 13260 { 13261 printf "%s\n" "/* $configure_input */" >&1 \ 13262 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13263 } >"$ac_tmp/config.h" \ 13264 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13265 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13267printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13268 else 13269 rm -f "$ac_file" 13270 mv "$ac_tmp/config.h" "$ac_file" \ 13271 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13272 fi 13273 else 13274 printf "%s\n" "/* $configure_input */" >&1 \ 13275 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13276 || as_fn_error $? "could not create -" "$LINENO" 5 13277 fi 13278# Compute "$ac_file"'s index in $config_headers. 13279_am_arg="$ac_file" 13280_am_stamp_count=1 13281for _am_header in $config_headers :; do 13282 case $_am_header in 13283 $_am_arg | $_am_arg:* ) 13284 break ;; 13285 * ) 13286 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13287 esac 13288done 13289echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13290$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13291 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13292 X"$_am_arg" : 'X\(//\)$' \| \ 13293 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13294printf "%s\n" X"$_am_arg" | 13295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13296 s//\1/ 13297 q 13298 } 13299 /^X\(\/\/\)[^/].*/{ 13300 s//\1/ 13301 q 13302 } 13303 /^X\(\/\/\)$/{ 13304 s//\1/ 13305 q 13306 } 13307 /^X\(\/\).*/{ 13308 s//\1/ 13309 q 13310 } 13311 s/.*/./; q'`/stamp-h$_am_stamp_count 13312 ;; 13313 13314 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13315printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13316 ;; 13317 esac 13318 13319 13320 case $ac_file$ac_mode in 13321 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13322 # Older Autoconf quotes --file arguments for eval, but not when files 13323 # are listed without --file. Let's play safe and only enable the eval 13324 # if we detect the quoting. 13325 # TODO: see whether this extra hack can be removed once we start 13326 # requiring Autoconf 2.70 or later. 13327 case $CONFIG_FILES in #( 13328 *\'*) : 13329 eval set x "$CONFIG_FILES" ;; #( 13330 *) : 13331 set x $CONFIG_FILES ;; #( 13332 *) : 13333 ;; 13334esac 13335 shift 13336 # Used to flag and report bootstrapping failures. 13337 am_rc=0 13338 for am_mf 13339 do 13340 # Strip MF so we end up with the name of the file. 13341 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13342 # Check whether this is an Automake generated Makefile which includes 13343 # dependency-tracking related rules and includes. 13344 # Grep'ing the whole file directly is not great: AIX grep has a line 13345 # limit of 2048, but all sed's we know have understand at least 4000. 13346 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13347 || continue 13348 am_dirpart=`$as_dirname -- "$am_mf" || 13349$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13350 X"$am_mf" : 'X\(//\)[^/]' \| \ 13351 X"$am_mf" : 'X\(//\)$' \| \ 13352 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13353printf "%s\n" X"$am_mf" | 13354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13355 s//\1/ 13356 q 13357 } 13358 /^X\(\/\/\)[^/].*/{ 13359 s//\1/ 13360 q 13361 } 13362 /^X\(\/\/\)$/{ 13363 s//\1/ 13364 q 13365 } 13366 /^X\(\/\).*/{ 13367 s//\1/ 13368 q 13369 } 13370 s/.*/./; q'` 13371 am_filepart=`$as_basename -- "$am_mf" || 13372$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13373 X"$am_mf" : 'X\(//\)$' \| \ 13374 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13375printf "%s\n" X/"$am_mf" | 13376 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13377 s//\1/ 13378 q 13379 } 13380 /^X\/\(\/\/\)$/{ 13381 s//\1/ 13382 q 13383 } 13384 /^X\/\(\/\).*/{ 13385 s//\1/ 13386 q 13387 } 13388 s/.*/./; q'` 13389 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13390 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13391 | $MAKE -f - am--depfiles" >&5 13392 (cd "$am_dirpart" \ 13393 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13394 | $MAKE -f - am--depfiles) >&5 2>&5 13395 ac_status=$? 13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13397 (exit $ac_status); } || am_rc=$? 13398 done 13399 if test $am_rc -ne 0; then 13400 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13401printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13402as_fn_error $? "Something went wrong bootstrapping makefile fragments 13403 for automatic dependency tracking. If GNU make was not used, consider 13404 re-running the configure script with MAKE=\"gmake\" (or whatever is 13405 necessary). You can also try re-running configure with the 13406 '--disable-dependency-tracking' option to at least be able to build 13407 the package (albeit without support for automatic dependency tracking). 13408See 'config.log' for more details" "$LINENO" 5; } 13409 fi 13410 { am_dirpart=; unset am_dirpart;} 13411 { am_filepart=; unset am_filepart;} 13412 { am_mf=; unset am_mf;} 13413 { am_rc=; unset am_rc;} 13414 rm -f conftest-deps.mk 13415} 13416 ;; 13417 13418 esac 13419done # for ac_tag 13420 13421 13422as_fn_exit 0 13423_ACEOF 13424ac_clean_files=$ac_clean_files_save 13425 13426test $ac_write_fail = 0 || 13427 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13428 13429 13430# configure is writing to config.log, and then calls config.status. 13431# config.status does its own redirection, appending to config.log. 13432# Unfortunately, on DOS this fails, as config.log is still kept open 13433# by configure, so config.status won't be able to write to it; its 13434# output is simply discarded. So we exec the FD to /dev/null, 13435# effectively closing config.log, so it can be properly (re)opened and 13436# appended to by config.status. When coming back to configure, we 13437# need to make the FD available again. 13438if test "$no_create" != yes; then 13439 ac_cs_success=: 13440 ac_config_status_args= 13441 test "$silent" = yes && 13442 ac_config_status_args="$ac_config_status_args --quiet" 13443 exec 5>/dev/null 13444 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13445 exec 5>>config.log 13446 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13447 # would make configure fail if this is the last instruction. 13448 $ac_cs_success || as_fn_exit 1 13449fi 13450if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13452printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13453fi 13454 13455 13456