1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for xmh 1.0.5. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmh/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as 'sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed 'exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157esac ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177esac 178fi 179test x\$exitcode = x0 || exit 1 180blah=\$(echo \$(echo blah)) 181test x\"\$blah\" = xblah || exit 1 182test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187test \$(( 1 + 1 )) = 2 || exit 1" 188 if (eval "$as_required") 2>/dev/null 189then : 190 as_have_required=yes 191else case e in #( 192 e) as_have_required=no ;; 193esac 194fi 195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 196then : 197 198else case e in #( 199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 200as_found=false 201for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 202do 203 IFS=$as_save_IFS 204 case $as_dir in #((( 205 '') as_dir=./ ;; 206 */) ;; 207 *) as_dir=$as_dir/ ;; 208 esac 209 as_found=: 210 case $as_dir in #( 211 /*) 212 for as_base in sh bash ksh sh5; do 213 # Try only shells that exist, to save several forks. 214 as_shell=$as_dir$as_base 215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 217then : 218 CONFIG_SHELL=$as_shell as_have_required=yes 219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 220then : 221 break 2 222fi 223fi 224 done;; 225 esac 226 as_found=false 227done 228IFS=$as_save_IFS 229if $as_found 230then : 231 232else case e in #( 233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 235then : 236 CONFIG_SHELL=$SHELL as_have_required=yes 237fi ;; 238esac 239fi 240 241 242 if test "x$CONFIG_SHELL" != x 243then : 244 export CONFIG_SHELL 245 # We cannot yet assume a decent shell, so we have to provide a 246# neutralization value for shells without unset; and this also 247# works around shells that cannot unset nonexistent variables. 248# Preserve -v and -x to the replacement shell. 249BASH_ENV=/dev/null 250ENV=/dev/null 251(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 252case $- in # (((( 253 *v*x* | *x*v* ) as_opts=-vx ;; 254 *v* ) as_opts=-v ;; 255 *x* ) as_opts=-x ;; 256 * ) as_opts= ;; 257esac 258exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 259# Admittedly, this is quite paranoid, since all the known shells bail 260# out after a failed 'exec'. 261printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 262exit 255 263fi 264 265 if test x$as_have_required = xno 266then : 267 printf "%s\n" "$0: This script requires a shell more modern than all" 268 printf "%s\n" "$0: the shells that I found on your system." 269 if test ${ZSH_VERSION+y} ; then 270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 272 else 273 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 274$0: https://gitlab.freedesktop.org/xorg/app/xmh/-/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='xmh' 607PACKAGE_TARNAME='xmh' 608PACKAGE_VERSION='1.0.5' 609PACKAGE_STRING='xmh 1.0.5' 610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xmh/-/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= 646ac_func_c_list= 647enable_year2038=no 648ac_subst_vars='am__EXEEXT_FALSE 649am__EXEEXT_TRUE 650LTLIBOBJS 651LIBOBJS 652appdefaultdir 653APPDEFS_LIBS 654APPDEFS_CFLAGS 655XMH_LIBS 656XMH_CFLAGS 657MAN_SUBSTS 658XORG_MAN_PAGE 659ADMIN_MAN_DIR 660DRIVER_MAN_DIR 661MISC_MAN_DIR 662FILE_MAN_DIR 663LIB_MAN_DIR 664APP_MAN_DIR 665ADMIN_MAN_SUFFIX 666DRIVER_MAN_SUFFIX 667MISC_MAN_SUFFIX 668FILE_MAN_SUFFIX 669LIB_MAN_SUFFIX 670APP_MAN_SUFFIX 671SED 672host_os 673host_vendor 674host_cpu 675host 676build_os 677build_vendor 678build_cpu 679build 680INSTALL_CMD 681PKG_CONFIG_LIBDIR 682PKG_CONFIG_PATH 683PKG_CONFIG 684CHANGELOG_CMD 685STRICT_CFLAGS 686CWARNFLAGS 687BASE_CFLAGS 688am__fastdepCC_FALSE 689am__fastdepCC_TRUE 690CCDEPMODE 691am__nodep 692AMDEPBACKSLASH 693AMDEP_FALSE 694AMDEP_TRUE 695am__include 696DEPDIR 697OBJEXT 698EXEEXT 699ac_ct_CC 700CPPFLAGS 701LDFLAGS 702CFLAGS 703CC 704AM_BACKSLASH 705AM_DEFAULT_VERBOSITY 706AM_DEFAULT_V 707AM_V 708CSCOPE 709ETAGS 710CTAGS 711am__untar 712am__tar 713AMTAR 714am__leading_dot 715SET_MAKE 716AWK 717mkdir_p 718MKDIR_P 719INSTALL_STRIP_PROGRAM 720STRIP 721install_sh 722MAKEINFO 723AUTOHEADER 724AUTOMAKE 725AUTOCONF 726ACLOCAL 727VERSION 728PACKAGE 729CYGPATH_W 730am__isrc 731INSTALL_DATA 732INSTALL_SCRIPT 733INSTALL_PROGRAM 734target_alias 735host_alias 736build_alias 737LIBS 738ECHO_T 739ECHO_N 740ECHO_C 741DEFS 742mandir 743localedir 744libdir 745psdir 746pdfdir 747dvidir 748htmldir 749infodir 750docdir 751oldincludedir 752includedir 753runstatedir 754localstatedir 755sharedstatedir 756sysconfdir 757datadir 758datarootdir 759libexecdir 760sbindir 761bindir 762program_transform_name 763prefix 764exec_prefix 765PACKAGE_URL 766PACKAGE_BUGREPORT 767PACKAGE_STRING 768PACKAGE_VERSION 769PACKAGE_TARNAME 770PACKAGE_NAME 771PATH_SEPARATOR 772SHELL 773am__quote' 774ac_subst_files='' 775ac_user_opts=' 776enable_option_checking 777enable_silent_rules 778enable_dependency_tracking 779enable_selective_werror 780enable_strict_compilation 781with_appdefaultdir 782enable_largefile 783enable_year2038 784' 785 ac_precious_vars='build_alias 786host_alias 787target_alias 788CC 789CFLAGS 790LDFLAGS 791LIBS 792CPPFLAGS 793PKG_CONFIG 794PKG_CONFIG_PATH 795PKG_CONFIG_LIBDIR 796XMH_CFLAGS 797XMH_LIBS 798APPDEFS_CFLAGS 799APPDEFS_LIBS' 800 801 802# Initialize some variables set by options. 803ac_init_help= 804ac_init_version=false 805ac_unrecognized_opts= 806ac_unrecognized_sep= 807# The variables have the same names as the options, with 808# dashes changed to underlines. 809cache_file=/dev/null 810exec_prefix=NONE 811no_create= 812no_recursion= 813prefix=NONE 814program_prefix=NONE 815program_suffix=NONE 816program_transform_name=s,x,x, 817silent= 818site= 819srcdir= 820verbose= 821x_includes=NONE 822x_libraries=NONE 823 824# Installation directory options. 825# These are left unexpanded so users can "make install exec_prefix=/foo" 826# and all the variables that are supposed to be based on exec_prefix 827# by default will actually change. 828# Use braces instead of parens because sh, perl, etc. also accept them. 829# (The list follows the same order as the GNU Coding Standards.) 830bindir='${exec_prefix}/bin' 831sbindir='${exec_prefix}/sbin' 832libexecdir='${exec_prefix}/libexec' 833datarootdir='${prefix}/share' 834datadir='${datarootdir}' 835sysconfdir='${prefix}/etc' 836sharedstatedir='${prefix}/com' 837localstatedir='${prefix}/var' 838runstatedir='${localstatedir}/run' 839includedir='${prefix}/include' 840oldincludedir='/usr/include' 841docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 842infodir='${datarootdir}/info' 843htmldir='${docdir}' 844dvidir='${docdir}' 845pdfdir='${docdir}' 846psdir='${docdir}' 847libdir='${exec_prefix}/lib' 848localedir='${datarootdir}/locale' 849mandir='${datarootdir}/man' 850 851ac_prev= 852ac_dashdash= 853for ac_option 854do 855 # If the previous option needs an argument, assign it. 856 if test -n "$ac_prev"; then 857 eval $ac_prev=\$ac_option 858 ac_prev= 859 continue 860 fi 861 862 case $ac_option in 863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 864 *=) ac_optarg= ;; 865 *) ac_optarg=yes ;; 866 esac 867 868 case $ac_dashdash$ac_option in 869 --) 870 ac_dashdash=yes ;; 871 872 -bindir | --bindir | --bindi | --bind | --bin | --bi) 873 ac_prev=bindir ;; 874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 875 bindir=$ac_optarg ;; 876 877 -build | --build | --buil | --bui | --bu) 878 ac_prev=build_alias ;; 879 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 880 build_alias=$ac_optarg ;; 881 882 -cache-file | --cache-file | --cache-fil | --cache-fi \ 883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 884 ac_prev=cache_file ;; 885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 887 cache_file=$ac_optarg ;; 888 889 --config-cache | -C) 890 cache_file=config.cache ;; 891 892 -datadir | --datadir | --datadi | --datad) 893 ac_prev=datadir ;; 894 -datadir=* | --datadir=* | --datadi=* | --datad=*) 895 datadir=$ac_optarg ;; 896 897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 898 | --dataroo | --dataro | --datar) 899 ac_prev=datarootdir ;; 900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 902 datarootdir=$ac_optarg ;; 903 904 -disable-* | --disable-*) 905 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 906 # Reject names that are not valid shell variable names. 907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 908 as_fn_error $? "invalid feature name: '$ac_useropt'" 909 ac_useropt_orig=$ac_useropt 910 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 911 case $ac_user_opts in 912 *" 913"enable_$ac_useropt" 914"*) ;; 915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 916 ac_unrecognized_sep=', ';; 917 esac 918 eval enable_$ac_useropt=no ;; 919 920 -docdir | --docdir | --docdi | --doc | --do) 921 ac_prev=docdir ;; 922 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 923 docdir=$ac_optarg ;; 924 925 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 926 ac_prev=dvidir ;; 927 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 928 dvidir=$ac_optarg ;; 929 930 -enable-* | --enable-*) 931 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 932 # Reject names that are not valid shell variable names. 933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 934 as_fn_error $? "invalid feature name: '$ac_useropt'" 935 ac_useropt_orig=$ac_useropt 936 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 937 case $ac_user_opts in 938 *" 939"enable_$ac_useropt" 940"*) ;; 941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 942 ac_unrecognized_sep=', ';; 943 esac 944 eval enable_$ac_useropt=\$ac_optarg ;; 945 946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 948 | --exec | --exe | --ex) 949 ac_prev=exec_prefix ;; 950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 952 | --exec=* | --exe=* | --ex=*) 953 exec_prefix=$ac_optarg ;; 954 955 -gas | --gas | --ga | --g) 956 # Obsolete; use --with-gas. 957 with_gas=yes ;; 958 959 -help | --help | --hel | --he | -h) 960 ac_init_help=long ;; 961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 962 ac_init_help=recursive ;; 963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 964 ac_init_help=short ;; 965 966 -host | --host | --hos | --ho) 967 ac_prev=host_alias ;; 968 -host=* | --host=* | --hos=* | --ho=*) 969 host_alias=$ac_optarg ;; 970 971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 972 ac_prev=htmldir ;; 973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 974 | --ht=*) 975 htmldir=$ac_optarg ;; 976 977 -includedir | --includedir | --includedi | --included | --include \ 978 | --includ | --inclu | --incl | --inc) 979 ac_prev=includedir ;; 980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 981 | --includ=* | --inclu=* | --incl=* | --inc=*) 982 includedir=$ac_optarg ;; 983 984 -infodir | --infodir | --infodi | --infod | --info | --inf) 985 ac_prev=infodir ;; 986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 987 infodir=$ac_optarg ;; 988 989 -libdir | --libdir | --libdi | --libd) 990 ac_prev=libdir ;; 991 -libdir=* | --libdir=* | --libdi=* | --libd=*) 992 libdir=$ac_optarg ;; 993 994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 995 | --libexe | --libex | --libe) 996 ac_prev=libexecdir ;; 997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 998 | --libexe=* | --libex=* | --libe=*) 999 libexecdir=$ac_optarg ;; 1000 1001 -localedir | --localedir | --localedi | --localed | --locale) 1002 ac_prev=localedir ;; 1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1004 localedir=$ac_optarg ;; 1005 1006 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1007 | --localstate | --localstat | --localsta | --localst | --locals) 1008 ac_prev=localstatedir ;; 1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1011 localstatedir=$ac_optarg ;; 1012 1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1014 ac_prev=mandir ;; 1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1016 mandir=$ac_optarg ;; 1017 1018 -nfp | --nfp | --nf) 1019 # Obsolete; use --without-fp. 1020 with_fp=no ;; 1021 1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1023 | --no-cr | --no-c | -n) 1024 no_create=yes ;; 1025 1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1028 no_recursion=yes ;; 1029 1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1032 | --oldin | --oldi | --old | --ol | --o) 1033 ac_prev=oldincludedir ;; 1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1037 oldincludedir=$ac_optarg ;; 1038 1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1040 ac_prev=prefix ;; 1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1042 prefix=$ac_optarg ;; 1043 1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1045 | --program-pre | --program-pr | --program-p) 1046 ac_prev=program_prefix ;; 1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1049 program_prefix=$ac_optarg ;; 1050 1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1052 | --program-suf | --program-su | --program-s) 1053 ac_prev=program_suffix ;; 1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1056 program_suffix=$ac_optarg ;; 1057 1058 -program-transform-name | --program-transform-name \ 1059 | --program-transform-nam | --program-transform-na \ 1060 | --program-transform-n | --program-transform- \ 1061 | --program-transform | --program-transfor \ 1062 | --program-transfo | --program-transf \ 1063 | --program-trans | --program-tran \ 1064 | --progr-tra | --program-tr | --program-t) 1065 ac_prev=program_transform_name ;; 1066 -program-transform-name=* | --program-transform-name=* \ 1067 | --program-transform-nam=* | --program-transform-na=* \ 1068 | --program-transform-n=* | --program-transform-=* \ 1069 | --program-transform=* | --program-transfor=* \ 1070 | --program-transfo=* | --program-transf=* \ 1071 | --program-trans=* | --program-tran=* \ 1072 | --progr-tra=* | --program-tr=* | --program-t=*) 1073 program_transform_name=$ac_optarg ;; 1074 1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1076 ac_prev=pdfdir ;; 1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1078 pdfdir=$ac_optarg ;; 1079 1080 -psdir | --psdir | --psdi | --psd | --ps) 1081 ac_prev=psdir ;; 1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1083 psdir=$ac_optarg ;; 1084 1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1086 | -silent | --silent | --silen | --sile | --sil) 1087 silent=yes ;; 1088 1089 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1090 | --runstate | --runstat | --runsta | --runst | --runs \ 1091 | --run | --ru | --r) 1092 ac_prev=runstatedir ;; 1093 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1094 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1095 | --run=* | --ru=* | --r=*) 1096 runstatedir=$ac_optarg ;; 1097 1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1099 ac_prev=sbindir ;; 1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1101 | --sbi=* | --sb=*) 1102 sbindir=$ac_optarg ;; 1103 1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1106 | --sharedst | --shareds | --shared | --share | --shar \ 1107 | --sha | --sh) 1108 ac_prev=sharedstatedir ;; 1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1112 | --sha=* | --sh=*) 1113 sharedstatedir=$ac_optarg ;; 1114 1115 -site | --site | --sit) 1116 ac_prev=site ;; 1117 -site=* | --site=* | --sit=*) 1118 site=$ac_optarg ;; 1119 1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1121 ac_prev=srcdir ;; 1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1123 srcdir=$ac_optarg ;; 1124 1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1126 | --syscon | --sysco | --sysc | --sys | --sy) 1127 ac_prev=sysconfdir ;; 1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1130 sysconfdir=$ac_optarg ;; 1131 1132 -target | --target | --targe | --targ | --tar | --ta | --t) 1133 ac_prev=target_alias ;; 1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1135 target_alias=$ac_optarg ;; 1136 1137 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1138 verbose=yes ;; 1139 1140 -version | --version | --versio | --versi | --vers | -V) 1141 ac_init_version=: ;; 1142 1143 -with-* | --with-*) 1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1145 # Reject names that are not valid shell variable names. 1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1147 as_fn_error $? "invalid package name: '$ac_useropt'" 1148 ac_useropt_orig=$ac_useropt 1149 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1150 case $ac_user_opts in 1151 *" 1152"with_$ac_useropt" 1153"*) ;; 1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1155 ac_unrecognized_sep=', ';; 1156 esac 1157 eval with_$ac_useropt=\$ac_optarg ;; 1158 1159 -without-* | --without-*) 1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1161 # Reject names that are not valid shell variable names. 1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1163 as_fn_error $? "invalid package name: '$ac_useropt'" 1164 ac_useropt_orig=$ac_useropt 1165 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1166 case $ac_user_opts in 1167 *" 1168"with_$ac_useropt" 1169"*) ;; 1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1171 ac_unrecognized_sep=', ';; 1172 esac 1173 eval with_$ac_useropt=no ;; 1174 1175 --x) 1176 # Obsolete; use --with-x. 1177 with_x=yes ;; 1178 1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1180 | --x-incl | --x-inc | --x-in | --x-i) 1181 ac_prev=x_includes ;; 1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1184 x_includes=$ac_optarg ;; 1185 1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1188 ac_prev=x_libraries ;; 1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1191 x_libraries=$ac_optarg ;; 1192 1193 -*) as_fn_error $? "unrecognized option: '$ac_option' 1194Try '$0 --help' for more information" 1195 ;; 1196 1197 *=*) 1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1199 # Reject names that are not valid shell variable names. 1200 case $ac_envvar in #( 1201 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1202 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1203 esac 1204 eval $ac_envvar=\$ac_optarg 1205 export $ac_envvar ;; 1206 1207 *) 1208 # FIXME: should be removed in autoconf 3.0. 1209 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1211 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1212 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1213 ;; 1214 1215 esac 1216done 1217 1218if test -n "$ac_prev"; then 1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1220 as_fn_error $? "missing argument to $ac_option" 1221fi 1222 1223if test -n "$ac_unrecognized_opts"; then 1224 case $enable_option_checking in 1225 no) ;; 1226 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1227 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1228 esac 1229fi 1230 1231# Check all directory arguments for consistency. 1232for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1233 datadir sysconfdir sharedstatedir localstatedir includedir \ 1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1235 libdir localedir mandir runstatedir 1236do 1237 eval ac_val=\$$ac_var 1238 # Remove trailing slashes. 1239 case $ac_val in 1240 */ ) 1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1242 eval $ac_var=\$ac_val;; 1243 esac 1244 # Be sure to have absolute directory names. 1245 case $ac_val in 1246 [\\/$]* | ?:[\\/]* ) continue;; 1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1248 esac 1249 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1250done 1251 1252# There might be people who depend on the old broken behavior: '$host' 1253# used to hold the argument of --host etc. 1254# FIXME: To remove some day. 1255build=$build_alias 1256host=$host_alias 1257target=$target_alias 1258 1259# FIXME: To remove some day. 1260if test "x$host_alias" != x; then 1261 if test "x$build_alias" = x; then 1262 cross_compiling=maybe 1263 elif test "x$build_alias" != "x$host_alias"; then 1264 cross_compiling=yes 1265 fi 1266fi 1267 1268ac_tool_prefix= 1269test -n "$host_alias" && ac_tool_prefix=$host_alias- 1270 1271test "$silent" = yes && exec 6>/dev/null 1272 1273 1274ac_pwd=`pwd` && test -n "$ac_pwd" && 1275ac_ls_di=`ls -di .` && 1276ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1277 as_fn_error $? "working directory cannot be determined" 1278test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1279 as_fn_error $? "pwd does not report name of working directory" 1280 1281 1282# Find the source files, if location was not specified. 1283if test -z "$srcdir"; then 1284 ac_srcdir_defaulted=yes 1285 # Try the directory containing this script, then the parent directory. 1286 ac_confdir=`$as_dirname -- "$as_myself" || 1287$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1288 X"$as_myself" : 'X\(//\)[^/]' \| \ 1289 X"$as_myself" : 'X\(//\)$' \| \ 1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1291printf "%s\n" X"$as_myself" | 1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1293 s//\1/ 1294 q 1295 } 1296 /^X\(\/\/\)[^/].*/{ 1297 s//\1/ 1298 q 1299 } 1300 /^X\(\/\/\)$/{ 1301 s//\1/ 1302 q 1303 } 1304 /^X\(\/\).*/{ 1305 s//\1/ 1306 q 1307 } 1308 s/.*/./; q'` 1309 srcdir=$ac_confdir 1310 if test ! -r "$srcdir/$ac_unique_file"; then 1311 srcdir=.. 1312 fi 1313else 1314 ac_srcdir_defaulted=no 1315fi 1316if test ! -r "$srcdir/$ac_unique_file"; then 1317 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1318 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1319fi 1320ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1321ac_abs_confdir=`( 1322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1323 pwd)` 1324# When building in place, set srcdir=. 1325if test "$ac_abs_confdir" = "$ac_pwd"; then 1326 srcdir=. 1327fi 1328# Remove unnecessary trailing slashes from srcdir. 1329# Double slashes in file names in object file debugging info 1330# mess up M-x gdb in Emacs. 1331case $srcdir in 1332*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1333esac 1334for ac_var in $ac_precious_vars; do 1335 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1336 eval ac_env_${ac_var}_value=\$${ac_var} 1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1338 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1339done 1340 1341# 1342# Report the --help message. 1343# 1344if test "$ac_init_help" = "long"; then 1345 # Omit some internal or obsolete options to make the list less imposing. 1346 # This message is too long to be a string in the A/UX 3.1 sh. 1347 cat <<_ACEOF 1348'configure' configures xmh 1.0.5 to adapt to many kinds of systems. 1349 1350Usage: $0 [OPTION]... [VAR=VALUE]... 1351 1352To assign environment variables (e.g., CC, CFLAGS...), specify them as 1353VAR=VALUE. See below for descriptions of some of the useful variables. 1354 1355Defaults for the options are specified in brackets. 1356 1357Configuration: 1358 -h, --help display this help and exit 1359 --help=short display options specific to this package 1360 --help=recursive display the short help of all the included packages 1361 -V, --version display version information and exit 1362 -q, --quiet, --silent do not print 'checking ...' messages 1363 --cache-file=FILE cache test results in FILE [disabled] 1364 -C, --config-cache alias for '--cache-file=config.cache' 1365 -n, --no-create do not create output files 1366 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1367 1368Installation directories: 1369 --prefix=PREFIX install architecture-independent files in PREFIX 1370 [$ac_default_prefix] 1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1372 [PREFIX] 1373 1374By default, 'make install' will install all the files in 1375'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1376an installation prefix other than '$ac_default_prefix' using '--prefix', 1377for instance '--prefix=\$HOME'. 1378 1379For better control, use the options below. 1380 1381Fine tuning of the installation directories: 1382 --bindir=DIR user executables [EPREFIX/bin] 1383 --sbindir=DIR system admin executables [EPREFIX/sbin] 1384 --libexecdir=DIR program executables [EPREFIX/libexec] 1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1388 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1389 --libdir=DIR object code libraries [EPREFIX/lib] 1390 --includedir=DIR C header files [PREFIX/include] 1391 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1394 --infodir=DIR info documentation [DATAROOTDIR/info] 1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1396 --mandir=DIR man documentation [DATAROOTDIR/man] 1397 --docdir=DIR documentation root [DATAROOTDIR/doc/xmh] 1398 --htmldir=DIR html documentation [DOCDIR] 1399 --dvidir=DIR dvi documentation [DOCDIR] 1400 --pdfdir=DIR pdf documentation [DOCDIR] 1401 --psdir=DIR ps documentation [DOCDIR] 1402_ACEOF 1403 1404 cat <<\_ACEOF 1405 1406Program names: 1407 --program-prefix=PREFIX prepend PREFIX to installed program names 1408 --program-suffix=SUFFIX append SUFFIX to installed program names 1409 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1410 1411System types: 1412 --build=BUILD configure for building on BUILD [guessed] 1413 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1414_ACEOF 1415fi 1416 1417if test -n "$ac_init_help"; then 1418 case $ac_init_help in 1419 short | recursive ) echo "Configuration of xmh 1.0.5:";; 1420 esac 1421 cat <<\_ACEOF 1422 1423Optional Features: 1424 --disable-option-checking ignore unrecognized --enable/--with options 1425 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1426 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1427 --enable-silent-rules less verbose build output (undo: "make V=1") 1428 --disable-silent-rules verbose build output (undo: "make V=0") 1429 --enable-dependency-tracking 1430 do not reject slow dependency extractors 1431 --disable-dependency-tracking 1432 speeds up one-time build 1433 --disable-selective-werror 1434 Turn off selective compiler errors. (default: 1435 enabled) 1436 --enable-strict-compilation 1437 Enable all warnings from compiler and make them 1438 errors (default: disabled) 1439 --disable-largefile omit support for large files 1440 --enable-year2038 support timestamps after 2038 1441 1442Optional Packages: 1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1445 --with-appdefaultdir=<pathname> 1446 specify directory for app-defaults files (default is 1447 autodetected) 1448 1449Some influential environment variables: 1450 CC C compiler command 1451 CFLAGS C compiler flags 1452 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1453 nonstandard directory <lib dir> 1454 LIBS libraries to pass to the linker, e.g. -l<library> 1455 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1456 you have headers in a nonstandard directory <include dir> 1457 PKG_CONFIG path to pkg-config utility 1458 PKG_CONFIG_PATH 1459 directories to add to pkg-config's search path 1460 PKG_CONFIG_LIBDIR 1461 path overriding pkg-config's built-in search path 1462 XMH_CFLAGS C compiler flags for XMH, overriding pkg-config 1463 XMH_LIBS linker flags for XMH, overriding pkg-config 1464 APPDEFS_CFLAGS 1465 C compiler flags for APPDEFS, overriding pkg-config 1466 APPDEFS_LIBS 1467 linker flags for APPDEFS, overriding pkg-config 1468 1469Use these variables to override the choices made by 'configure' or to help 1470it to find libraries and programs with nonstandard names/locations. 1471 1472Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmh/-/issues>. 1473_ACEOF 1474ac_status=$? 1475fi 1476 1477if test "$ac_init_help" = "recursive"; then 1478 # If there are subdirs, report their specific --help. 1479 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1480 test -d "$ac_dir" || 1481 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1482 continue 1483 ac_builddir=. 1484 1485case "$ac_dir" in 1486.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1487*) 1488 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1489 # A ".." for each directory in $ac_dir_suffix. 1490 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1491 case $ac_top_builddir_sub in 1492 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1493 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1494 esac ;; 1495esac 1496ac_abs_top_builddir=$ac_pwd 1497ac_abs_builddir=$ac_pwd$ac_dir_suffix 1498# for backward compatibility: 1499ac_top_builddir=$ac_top_build_prefix 1500 1501case $srcdir in 1502 .) # We are building in place. 1503 ac_srcdir=. 1504 ac_top_srcdir=$ac_top_builddir_sub 1505 ac_abs_top_srcdir=$ac_pwd ;; 1506 [\\/]* | ?:[\\/]* ) # Absolute name. 1507 ac_srcdir=$srcdir$ac_dir_suffix; 1508 ac_top_srcdir=$srcdir 1509 ac_abs_top_srcdir=$srcdir ;; 1510 *) # Relative name. 1511 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1512 ac_top_srcdir=$ac_top_build_prefix$srcdir 1513 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1514esac 1515ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1516 1517 cd "$ac_dir" || { ac_status=$?; continue; } 1518 # Check for configure.gnu first; this name is used for a wrapper for 1519 # Metaconfig's "Configure" on case-insensitive file systems. 1520 if test -f "$ac_srcdir/configure.gnu"; then 1521 echo && 1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1523 elif test -f "$ac_srcdir/configure"; then 1524 echo && 1525 $SHELL "$ac_srcdir/configure" --help=recursive 1526 else 1527 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1528 fi || ac_status=$? 1529 cd "$ac_pwd" || { ac_status=$?; break; } 1530 done 1531fi 1532 1533test -n "$ac_init_help" && exit $ac_status 1534if $ac_init_version; then 1535 cat <<\_ACEOF 1536xmh configure 1.0.5 1537generated by GNU Autoconf 2.72 1538 1539Copyright (C) 2023 Free Software Foundation, Inc. 1540This configure script is free software; the Free Software Foundation 1541gives unlimited permission to copy, distribute and modify it. 1542_ACEOF 1543 exit 1544fi 1545 1546## ------------------------ ## 1547## Autoconf initialization. ## 1548## ------------------------ ## 1549 1550# ac_fn_c_try_compile LINENO 1551# -------------------------- 1552# Try to compile conftest.$ac_ext, and return whether this succeeded. 1553ac_fn_c_try_compile () 1554{ 1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1556 rm -f conftest.$ac_objext conftest.beam 1557 if { { ac_try="$ac_compile" 1558case "(($ac_try" in 1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1560 *) ac_try_echo=$ac_try;; 1561esac 1562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1563printf "%s\n" "$ac_try_echo"; } >&5 1564 (eval "$ac_compile") 2>conftest.err 1565 ac_status=$? 1566 if test -s conftest.err; then 1567 grep -v '^ *+' conftest.err >conftest.er1 1568 cat conftest.er1 >&5 1569 mv -f conftest.er1 conftest.err 1570 fi 1571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1572 test $ac_status = 0; } && { 1573 test -z "$ac_c_werror_flag" || 1574 test ! -s conftest.err 1575 } && test -s conftest.$ac_objext 1576then : 1577 ac_retval=0 1578else case e in #( 1579 e) printf "%s\n" "$as_me: failed program was:" >&5 1580sed 's/^/| /' conftest.$ac_ext >&5 1581 1582 ac_retval=1 ;; 1583esac 1584fi 1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1586 as_fn_set_status $ac_retval 1587 1588} # ac_fn_c_try_compile 1589 1590# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1591# ------------------------------------------------------------------ 1592# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1593# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1594ac_fn_check_decl () 1595{ 1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1597 as_decl_name=`echo $2|sed 's/ *(.*//'` 1598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1599printf %s "checking whether $as_decl_name is declared... " >&6; } 1600if eval test \${$3+y} 1601then : 1602 printf %s "(cached) " >&6 1603else case e in #( 1604 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1605 eval ac_save_FLAGS=\$$6 1606 as_fn_append $6 " $5" 1607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1608/* end confdefs.h. */ 1609$4 1610int 1611main (void) 1612{ 1613#ifndef $as_decl_name 1614#ifdef __cplusplus 1615 (void) $as_decl_use; 1616#else 1617 (void) $as_decl_name; 1618#endif 1619#endif 1620 1621 ; 1622 return 0; 1623} 1624_ACEOF 1625if ac_fn_c_try_compile "$LINENO" 1626then : 1627 eval "$3=yes" 1628else case e in #( 1629 e) eval "$3=no" ;; 1630esac 1631fi 1632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1633 eval $6=\$ac_save_FLAGS 1634 ;; 1635esac 1636fi 1637eval ac_res=\$$3 1638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1639printf "%s\n" "$ac_res" >&6; } 1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1641 1642} # ac_fn_check_decl 1643 1644# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1645# ------------------------------------------------------- 1646# Tests whether HEADER exists and can be compiled using the include files in 1647# INCLUDES, setting the cache variable VAR accordingly. 1648ac_fn_c_check_header_compile () 1649{ 1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1652printf %s "checking for $2... " >&6; } 1653if eval test \${$3+y} 1654then : 1655 printf %s "(cached) " >&6 1656else case e in #( 1657 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1658/* end confdefs.h. */ 1659$4 1660#include <$2> 1661_ACEOF 1662if ac_fn_c_try_compile "$LINENO" 1663then : 1664 eval "$3=yes" 1665else case e in #( 1666 e) eval "$3=no" ;; 1667esac 1668fi 1669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1670esac 1671fi 1672eval ac_res=\$$3 1673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1674printf "%s\n" "$ac_res" >&6; } 1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1676 1677} # ac_fn_c_check_header_compile 1678 1679# ac_fn_c_try_link LINENO 1680# ----------------------- 1681# Try to link conftest.$ac_ext, and return whether this succeeded. 1682ac_fn_c_try_link () 1683{ 1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1685 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1686 if { { ac_try="$ac_link" 1687case "(($ac_try" in 1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1689 *) ac_try_echo=$ac_try;; 1690esac 1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1692printf "%s\n" "$ac_try_echo"; } >&5 1693 (eval "$ac_link") 2>conftest.err 1694 ac_status=$? 1695 if test -s conftest.err; then 1696 grep -v '^ *+' conftest.err >conftest.er1 1697 cat conftest.er1 >&5 1698 mv -f conftest.er1 conftest.err 1699 fi 1700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1701 test $ac_status = 0; } && { 1702 test -z "$ac_c_werror_flag" || 1703 test ! -s conftest.err 1704 } && test -s conftest$ac_exeext && { 1705 test "$cross_compiling" = yes || 1706 test -x conftest$ac_exeext 1707 } 1708then : 1709 ac_retval=0 1710else case e in #( 1711 e) printf "%s\n" "$as_me: failed program was:" >&5 1712sed 's/^/| /' conftest.$ac_ext >&5 1713 1714 ac_retval=1 ;; 1715esac 1716fi 1717 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1718 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1719 # interfere with the next link command; also delete a directory that is 1720 # left behind by Apple's compiler. We do this before executing the actions. 1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1723 as_fn_set_status $ac_retval 1724 1725} # ac_fn_c_try_link 1726 1727# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1728# ------------------------------------------- 1729# Tests whether TYPE exists after having included INCLUDES, setting cache 1730# variable VAR accordingly. 1731ac_fn_c_check_type () 1732{ 1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1735printf %s "checking for $2... " >&6; } 1736if eval test \${$3+y} 1737then : 1738 printf %s "(cached) " >&6 1739else case e in #( 1740 e) eval "$3=no" 1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1742/* end confdefs.h. */ 1743$4 1744int 1745main (void) 1746{ 1747if (sizeof ($2)) 1748 return 0; 1749 ; 1750 return 0; 1751} 1752_ACEOF 1753if ac_fn_c_try_compile "$LINENO" 1754then : 1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1756/* end confdefs.h. */ 1757$4 1758int 1759main (void) 1760{ 1761if (sizeof (($2))) 1762 return 0; 1763 ; 1764 return 0; 1765} 1766_ACEOF 1767if ac_fn_c_try_compile "$LINENO" 1768then : 1769 1770else case e in #( 1771 e) eval "$3=yes" ;; 1772esac 1773fi 1774rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1775fi 1776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1777esac 1778fi 1779eval ac_res=\$$3 1780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1781printf "%s\n" "$ac_res" >&6; } 1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1783 1784} # ac_fn_c_check_type 1785 1786# ac_fn_c_check_func LINENO FUNC VAR 1787# ---------------------------------- 1788# Tests whether FUNC exists, setting the cache variable VAR accordingly 1789ac_fn_c_check_func () 1790{ 1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1793printf %s "checking for $2... " >&6; } 1794if eval test \${$3+y} 1795then : 1796 printf %s "(cached) " >&6 1797else case e in #( 1798 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1799/* end confdefs.h. */ 1800/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1801 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1802#define $2 innocuous_$2 1803 1804/* System header to define __stub macros and hopefully few prototypes, 1805 which can conflict with char $2 (void); below. */ 1806 1807#include <limits.h> 1808#undef $2 1809 1810/* Override any GCC internal prototype to avoid an error. 1811 Use char because int might match the return type of a GCC 1812 builtin and then its argument prototype would still apply. */ 1813#ifdef __cplusplus 1814extern "C" 1815#endif 1816char $2 (void); 1817/* The GNU C library defines this for functions which it implements 1818 to always fail with ENOSYS. Some functions are actually named 1819 something starting with __ and the normal name is an alias. */ 1820#if defined __stub_$2 || defined __stub___$2 1821choke me 1822#endif 1823 1824int 1825main (void) 1826{ 1827return $2 (); 1828 ; 1829 return 0; 1830} 1831_ACEOF 1832if ac_fn_c_try_link "$LINENO" 1833then : 1834 eval "$3=yes" 1835else case e in #( 1836 e) eval "$3=no" ;; 1837esac 1838fi 1839rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1840 conftest$ac_exeext conftest.$ac_ext ;; 1841esac 1842fi 1843eval ac_res=\$$3 1844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1845printf "%s\n" "$ac_res" >&6; } 1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1847 1848} # ac_fn_c_check_func 1849 1850# ac_fn_c_try_run LINENO 1851# ---------------------- 1852# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1853# executables *can* be run. 1854ac_fn_c_try_run () 1855{ 1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1857 if { { ac_try="$ac_link" 1858case "(($ac_try" in 1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1860 *) ac_try_echo=$ac_try;; 1861esac 1862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1863printf "%s\n" "$ac_try_echo"; } >&5 1864 (eval "$ac_link") 2>&5 1865 ac_status=$? 1866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1867 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1868 { { case "(($ac_try" in 1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1870 *) ac_try_echo=$ac_try;; 1871esac 1872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1873printf "%s\n" "$ac_try_echo"; } >&5 1874 (eval "$ac_try") 2>&5 1875 ac_status=$? 1876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1877 test $ac_status = 0; }; } 1878then : 1879 ac_retval=0 1880else case e in #( 1881 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1882 printf "%s\n" "$as_me: failed program was:" >&5 1883sed 's/^/| /' conftest.$ac_ext >&5 1884 1885 ac_retval=$ac_status ;; 1886esac 1887fi 1888 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1890 as_fn_set_status $ac_retval 1891 1892} # ac_fn_c_try_run 1893ac_configure_args_raw= 1894for ac_arg 1895do 1896 case $ac_arg in 1897 *\'*) 1898 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1899 esac 1900 as_fn_append ac_configure_args_raw " '$ac_arg'" 1901done 1902 1903case $ac_configure_args_raw in 1904 *$as_nl*) 1905 ac_safe_unquote= ;; 1906 *) 1907 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1908 ac_unsafe_a="$ac_unsafe_z#~" 1909 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1910 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1911esac 1912 1913cat >config.log <<_ACEOF 1914This file contains any messages produced by compilers while 1915running configure, to aid debugging if configure makes a mistake. 1916 1917It was created by xmh $as_me 1.0.5, which was 1918generated by GNU Autoconf 2.72. Invocation command line was 1919 1920 $ $0$ac_configure_args_raw 1921 1922_ACEOF 1923exec 5>>config.log 1924{ 1925cat <<_ASUNAME 1926## --------- ## 1927## Platform. ## 1928## --------- ## 1929 1930hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1931uname -m = `(uname -m) 2>/dev/null || echo unknown` 1932uname -r = `(uname -r) 2>/dev/null || echo unknown` 1933uname -s = `(uname -s) 2>/dev/null || echo unknown` 1934uname -v = `(uname -v) 2>/dev/null || echo unknown` 1935 1936/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1937/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1938 1939/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1940/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1941/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1942/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1943/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1944/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1945/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1946 1947_ASUNAME 1948 1949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1950for as_dir in $PATH 1951do 1952 IFS=$as_save_IFS 1953 case $as_dir in #((( 1954 '') as_dir=./ ;; 1955 */) ;; 1956 *) as_dir=$as_dir/ ;; 1957 esac 1958 printf "%s\n" "PATH: $as_dir" 1959 done 1960IFS=$as_save_IFS 1961 1962} >&5 1963 1964cat >&5 <<_ACEOF 1965 1966 1967## ----------- ## 1968## Core tests. ## 1969## ----------- ## 1970 1971_ACEOF 1972 1973 1974# Keep a trace of the command line. 1975# Strip out --no-create and --no-recursion so they do not pile up. 1976# Strip out --silent because we don't want to record it for future runs. 1977# Also quote any args containing shell meta-characters. 1978# Make two passes to allow for proper duplicate-argument suppression. 1979ac_configure_args= 1980ac_configure_args0= 1981ac_configure_args1= 1982ac_must_keep_next=false 1983for ac_pass in 1 2 1984do 1985 for ac_arg 1986 do 1987 case $ac_arg in 1988 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1990 | -silent | --silent | --silen | --sile | --sil) 1991 continue ;; 1992 *\'*) 1993 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1994 esac 1995 case $ac_pass in 1996 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1997 2) 1998 as_fn_append ac_configure_args1 " '$ac_arg'" 1999 if test $ac_must_keep_next = true; then 2000 ac_must_keep_next=false # Got value, back to normal. 2001 else 2002 case $ac_arg in 2003 *=* | --config-cache | -C | -disable-* | --disable-* \ 2004 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2005 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2006 | -with-* | --with-* | -without-* | --without-* | --x) 2007 case "$ac_configure_args0 " in 2008 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2009 esac 2010 ;; 2011 -* ) ac_must_keep_next=true ;; 2012 esac 2013 fi 2014 as_fn_append ac_configure_args " '$ac_arg'" 2015 ;; 2016 esac 2017 done 2018done 2019{ ac_configure_args0=; unset ac_configure_args0;} 2020{ ac_configure_args1=; unset ac_configure_args1;} 2021 2022# When interrupted or exit'd, cleanup temporary files, and complete 2023# config.log. We remove comments because anyway the quotes in there 2024# would cause problems or look ugly. 2025# WARNING: Use '\'' to represent an apostrophe within the trap. 2026# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2027trap 'exit_status=$? 2028 # Sanitize IFS. 2029 IFS=" "" $as_nl" 2030 # Save into config.log some information that might help in debugging. 2031 { 2032 echo 2033 2034 printf "%s\n" "## ---------------- ## 2035## Cache variables. ## 2036## ---------------- ##" 2037 echo 2038 # The following way of writing the cache mishandles newlines in values, 2039( 2040 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2041 eval ac_val=\$$ac_var 2042 case $ac_val in #( 2043 *${as_nl}*) 2044 case $ac_var in #( 2045 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2046printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2047 esac 2048 case $ac_var in #( 2049 _ | IFS | as_nl) ;; #( 2050 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2051 *) { eval $ac_var=; unset $ac_var;} ;; 2052 esac ;; 2053 esac 2054 done 2055 (set) 2>&1 | 2056 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2057 *${as_nl}ac_space=\ *) 2058 sed -n \ 2059 "s/'\''/'\''\\\\'\'''\''/g; 2060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2061 ;; #( 2062 *) 2063 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2064 ;; 2065 esac | 2066 sort 2067) 2068 echo 2069 2070 printf "%s\n" "## ----------------- ## 2071## Output variables. ## 2072## ----------------- ##" 2073 echo 2074 for ac_var in $ac_subst_vars 2075 do 2076 eval ac_val=\$$ac_var 2077 case $ac_val in 2078 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2079 esac 2080 printf "%s\n" "$ac_var='\''$ac_val'\''" 2081 done | sort 2082 echo 2083 2084 if test -n "$ac_subst_files"; then 2085 printf "%s\n" "## ------------------- ## 2086## File substitutions. ## 2087## ------------------- ##" 2088 echo 2089 for ac_var in $ac_subst_files 2090 do 2091 eval ac_val=\$$ac_var 2092 case $ac_val in 2093 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2094 esac 2095 printf "%s\n" "$ac_var='\''$ac_val'\''" 2096 done | sort 2097 echo 2098 fi 2099 2100 if test -s confdefs.h; then 2101 printf "%s\n" "## ----------- ## 2102## confdefs.h. ## 2103## ----------- ##" 2104 echo 2105 cat confdefs.h 2106 echo 2107 fi 2108 test "$ac_signal" != 0 && 2109 printf "%s\n" "$as_me: caught signal $ac_signal" 2110 printf "%s\n" "$as_me: exit $exit_status" 2111 } >&5 2112 rm -f core *.core core.conftest.* && 2113 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2114 exit $exit_status 2115' 0 2116for ac_signal in 1 2 13 15; do 2117 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2118done 2119ac_signal=0 2120 2121# confdefs.h avoids OS command line length limits that DEFS can exceed. 2122rm -f -r conftest* confdefs.h 2123 2124printf "%s\n" "/* confdefs.h */" > confdefs.h 2125 2126# Predefined preprocessor variables. 2127 2128printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2129 2130printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2131 2132printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2133 2134printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2135 2136printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2137 2138printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2139 2140 2141# Let the site file select an alternate cache file if it wants to. 2142# Prefer an explicitly selected file to automatically selected ones. 2143if test -n "$CONFIG_SITE"; then 2144 ac_site_files="$CONFIG_SITE" 2145elif test "x$prefix" != xNONE; then 2146 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2147else 2148 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2149fi 2150 2151for ac_site_file in $ac_site_files 2152do 2153 case $ac_site_file in #( 2154 */*) : 2155 ;; #( 2156 *) : 2157 ac_site_file=./$ac_site_file ;; 2158esac 2159 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2161printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2162 sed 's/^/| /' "$ac_site_file" >&5 2163 . "$ac_site_file" \ 2164 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2165printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2166as_fn_error $? "failed to load site script $ac_site_file 2167See 'config.log' for more details" "$LINENO" 5; } 2168 fi 2169done 2170 2171if test -r "$cache_file"; then 2172 # Some versions of bash will fail to source /dev/null (special files 2173 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2174 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2176printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2177 case $cache_file in 2178 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2179 *) . "./$cache_file";; 2180 esac 2181 fi 2182else 2183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2184printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2185 >$cache_file 2186fi 2187 2188# Test code for whether the C compiler supports C89 (global declarations) 2189ac_c_conftest_c89_globals=' 2190/* Does the compiler advertise C89 conformance? 2191 Do not test the value of __STDC__, because some compilers set it to 0 2192 while being otherwise adequately conformant. */ 2193#if !defined __STDC__ 2194# error "Compiler does not advertise C89 conformance" 2195#endif 2196 2197#include <stddef.h> 2198#include <stdarg.h> 2199struct stat; 2200/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2201struct buf { int x; }; 2202struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2203static char *e (char **p, int i) 2204{ 2205 return p[i]; 2206} 2207static char *f (char * (*g) (char **, int), char **p, ...) 2208{ 2209 char *s; 2210 va_list v; 2211 va_start (v,p); 2212 s = g (p, va_arg (v,int)); 2213 va_end (v); 2214 return s; 2215} 2216 2217/* C89 style stringification. */ 2218#define noexpand_stringify(a) #a 2219const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2220 2221/* C89 style token pasting. Exercises some of the corner cases that 2222 e.g. old MSVC gets wrong, but not very hard. */ 2223#define noexpand_concat(a,b) a##b 2224#define expand_concat(a,b) noexpand_concat(a,b) 2225extern int vA; 2226extern int vbee; 2227#define aye A 2228#define bee B 2229int *pvA = &expand_concat(v,aye); 2230int *pvbee = &noexpand_concat(v,bee); 2231 2232/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2233 function prototypes and stuff, but not \xHH hex character constants. 2234 These do not provoke an error unfortunately, instead are silently treated 2235 as an "x". The following induces an error, until -std is added to get 2236 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2237 array size at least. It is necessary to write \x00 == 0 to get something 2238 that is true only with -std. */ 2239int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2240 2241/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2242 inside strings and character constants. */ 2243#define FOO(x) '\''x'\'' 2244int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2245 2246int test (int i, double x); 2247struct s1 {int (*f) (int a);}; 2248struct s2 {int (*f) (double a);}; 2249int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2250 int, int);' 2251 2252# Test code for whether the C compiler supports C89 (body of main). 2253ac_c_conftest_c89_main=' 2254ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2255' 2256 2257# Test code for whether the C compiler supports C99 (global declarations) 2258ac_c_conftest_c99_globals=' 2259/* Does the compiler advertise C99 conformance? */ 2260#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2261# error "Compiler does not advertise C99 conformance" 2262#endif 2263 2264// See if C++-style comments work. 2265 2266#include <stdbool.h> 2267extern int puts (const char *); 2268extern int printf (const char *, ...); 2269extern int dprintf (int, const char *, ...); 2270extern void *malloc (size_t); 2271extern void free (void *); 2272 2273// Check varargs macros. These examples are taken from C99 6.10.3.5. 2274// dprintf is used instead of fprintf to avoid needing to declare 2275// FILE and stderr. 2276#define debug(...) dprintf (2, __VA_ARGS__) 2277#define showlist(...) puts (#__VA_ARGS__) 2278#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2279static void 2280test_varargs_macros (void) 2281{ 2282 int x = 1234; 2283 int y = 5678; 2284 debug ("Flag"); 2285 debug ("X = %d\n", x); 2286 showlist (The first, second, and third items.); 2287 report (x>y, "x is %d but y is %d", x, y); 2288} 2289 2290// Check long long types. 2291#define BIG64 18446744073709551615ull 2292#define BIG32 4294967295ul 2293#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2294#if !BIG_OK 2295 #error "your preprocessor is broken" 2296#endif 2297#if BIG_OK 2298#else 2299 #error "your preprocessor is broken" 2300#endif 2301static long long int bignum = -9223372036854775807LL; 2302static unsigned long long int ubignum = BIG64; 2303 2304struct incomplete_array 2305{ 2306 int datasize; 2307 double data[]; 2308}; 2309 2310struct named_init { 2311 int number; 2312 const wchar_t *name; 2313 double average; 2314}; 2315 2316typedef const char *ccp; 2317 2318static inline int 2319test_restrict (ccp restrict text) 2320{ 2321 // Iterate through items via the restricted pointer. 2322 // Also check for declarations in for loops. 2323 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2324 continue; 2325 return 0; 2326} 2327 2328// Check varargs and va_copy. 2329static bool 2330test_varargs (const char *format, ...) 2331{ 2332 va_list args; 2333 va_start (args, format); 2334 va_list args_copy; 2335 va_copy (args_copy, args); 2336 2337 const char *str = ""; 2338 int number = 0; 2339 float fnumber = 0; 2340 2341 while (*format) 2342 { 2343 switch (*format++) 2344 { 2345 case '\''s'\'': // string 2346 str = va_arg (args_copy, const char *); 2347 break; 2348 case '\''d'\'': // int 2349 number = va_arg (args_copy, int); 2350 break; 2351 case '\''f'\'': // float 2352 fnumber = va_arg (args_copy, double); 2353 break; 2354 default: 2355 break; 2356 } 2357 } 2358 va_end (args_copy); 2359 va_end (args); 2360 2361 return *str && number && fnumber; 2362} 2363' 2364 2365# Test code for whether the C compiler supports C99 (body of main). 2366ac_c_conftest_c99_main=' 2367 // Check bool. 2368 _Bool success = false; 2369 success |= (argc != 0); 2370 2371 // Check restrict. 2372 if (test_restrict ("String literal") == 0) 2373 success = true; 2374 char *restrict newvar = "Another string"; 2375 2376 // Check varargs. 2377 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2378 test_varargs_macros (); 2379 2380 // Check flexible array members. 2381 struct incomplete_array *ia = 2382 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2383 ia->datasize = 10; 2384 for (int i = 0; i < ia->datasize; ++i) 2385 ia->data[i] = i * 1.234; 2386 // Work around memory leak warnings. 2387 free (ia); 2388 2389 // Check named initializers. 2390 struct named_init ni = { 2391 .number = 34, 2392 .name = L"Test wide string", 2393 .average = 543.34343, 2394 }; 2395 2396 ni.number = 58; 2397 2398 int dynamic_array[ni.number]; 2399 dynamic_array[0] = argv[0][0]; 2400 dynamic_array[ni.number - 1] = 543; 2401 2402 // work around unused variable warnings 2403 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2404 || dynamic_array[ni.number - 1] != 543); 2405' 2406 2407# Test code for whether the C compiler supports C11 (global declarations) 2408ac_c_conftest_c11_globals=' 2409/* Does the compiler advertise C11 conformance? */ 2410#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2411# error "Compiler does not advertise C11 conformance" 2412#endif 2413 2414// Check _Alignas. 2415char _Alignas (double) aligned_as_double; 2416char _Alignas (0) no_special_alignment; 2417extern char aligned_as_int; 2418char _Alignas (0) _Alignas (int) aligned_as_int; 2419 2420// Check _Alignof. 2421enum 2422{ 2423 int_alignment = _Alignof (int), 2424 int_array_alignment = _Alignof (int[100]), 2425 char_alignment = _Alignof (char) 2426}; 2427_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2428 2429// Check _Noreturn. 2430int _Noreturn does_not_return (void) { for (;;) continue; } 2431 2432// Check _Static_assert. 2433struct test_static_assert 2434{ 2435 int x; 2436 _Static_assert (sizeof (int) <= sizeof (long int), 2437 "_Static_assert does not work in struct"); 2438 long int y; 2439}; 2440 2441// Check UTF-8 literals. 2442#define u8 syntax error! 2443char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2444 2445// Check duplicate typedefs. 2446typedef long *long_ptr; 2447typedef long int *long_ptr; 2448typedef long_ptr long_ptr; 2449 2450// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2451struct anonymous 2452{ 2453 union { 2454 struct { int i; int j; }; 2455 struct { int k; long int l; } w; 2456 }; 2457 int m; 2458} v1; 2459' 2460 2461# Test code for whether the C compiler supports C11 (body of main). 2462ac_c_conftest_c11_main=' 2463 _Static_assert ((offsetof (struct anonymous, i) 2464 == offsetof (struct anonymous, w.k)), 2465 "Anonymous union alignment botch"); 2466 v1.i = 2; 2467 v1.w.k = 5; 2468 ok |= v1.i != 5; 2469' 2470 2471# Test code for whether the C compiler supports C11 (complete). 2472ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2473${ac_c_conftest_c99_globals} 2474${ac_c_conftest_c11_globals} 2475 2476int 2477main (int argc, char **argv) 2478{ 2479 int ok = 0; 2480 ${ac_c_conftest_c89_main} 2481 ${ac_c_conftest_c99_main} 2482 ${ac_c_conftest_c11_main} 2483 return ok; 2484} 2485" 2486 2487# Test code for whether the C compiler supports C99 (complete). 2488ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2489${ac_c_conftest_c99_globals} 2490 2491int 2492main (int argc, char **argv) 2493{ 2494 int ok = 0; 2495 ${ac_c_conftest_c89_main} 2496 ${ac_c_conftest_c99_main} 2497 return ok; 2498} 2499" 2500 2501# Test code for whether the C compiler supports C89 (complete). 2502ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2503 2504int 2505main (int argc, char **argv) 2506{ 2507 int ok = 0; 2508 ${ac_c_conftest_c89_main} 2509 return ok; 2510} 2511" 2512 2513as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2514as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2515as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2516as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2517as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2518as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2519as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2520as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2521as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2522as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H" 2523as_fn_append ac_func_c_list " fork HAVE_FORK" 2524as_fn_append ac_func_c_list " vfork HAVE_VFORK" 2525 2526# Auxiliary files required by this configure script. 2527ac_aux_files="config.guess config.sub compile missing install-sh" 2528 2529# Locations in which to look for auxiliary files. 2530ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2531 2532# Search for a directory containing all of the required auxiliary files, 2533# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2534# If we don't find one directory that contains all the files we need, 2535# we report the set of missing files from the *first* directory in 2536# $ac_aux_dir_candidates and give up. 2537ac_missing_aux_files="" 2538ac_first_candidate=: 2539printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2541as_found=false 2542for as_dir in $ac_aux_dir_candidates 2543do 2544 IFS=$as_save_IFS 2545 case $as_dir in #((( 2546 '') as_dir=./ ;; 2547 */) ;; 2548 *) as_dir=$as_dir/ ;; 2549 esac 2550 as_found=: 2551 2552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2553 ac_aux_dir_found=yes 2554 ac_install_sh= 2555 for ac_aux in $ac_aux_files 2556 do 2557 # As a special case, if "install-sh" is required, that requirement 2558 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2559 # and $ac_install_sh is set appropriately for whichever one is found. 2560 if test x"$ac_aux" = x"install-sh" 2561 then 2562 if test -f "${as_dir}install-sh"; then 2563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2564 ac_install_sh="${as_dir}install-sh -c" 2565 elif test -f "${as_dir}install.sh"; then 2566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2567 ac_install_sh="${as_dir}install.sh -c" 2568 elif test -f "${as_dir}shtool"; then 2569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2570 ac_install_sh="${as_dir}shtool install -c" 2571 else 2572 ac_aux_dir_found=no 2573 if $ac_first_candidate; then 2574 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2575 else 2576 break 2577 fi 2578 fi 2579 else 2580 if test -f "${as_dir}${ac_aux}"; then 2581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2582 else 2583 ac_aux_dir_found=no 2584 if $ac_first_candidate; then 2585 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2586 else 2587 break 2588 fi 2589 fi 2590 fi 2591 done 2592 if test "$ac_aux_dir_found" = yes; then 2593 ac_aux_dir="$as_dir" 2594 break 2595 fi 2596 ac_first_candidate=false 2597 2598 as_found=false 2599done 2600IFS=$as_save_IFS 2601if $as_found 2602then : 2603 2604else case e in #( 2605 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2606esac 2607fi 2608 2609 2610# These three variables are undocumented and unsupported, 2611# and are intended to be withdrawn in a future Autoconf release. 2612# They can cause serious problems if a builder's source tree is in a directory 2613# whose full name contains unusual characters. 2614if test -f "${ac_aux_dir}config.guess"; then 2615 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2616fi 2617if test -f "${ac_aux_dir}config.sub"; then 2618 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2619fi 2620if test -f "$ac_aux_dir/configure"; then 2621 ac_configure="$SHELL ${ac_aux_dir}configure" 2622fi 2623 2624# Check that the precious variables saved in the cache have kept the same 2625# value. 2626ac_cache_corrupted=false 2627for ac_var in $ac_precious_vars; do 2628 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2629 eval ac_new_set=\$ac_env_${ac_var}_set 2630 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2631 eval ac_new_val=\$ac_env_${ac_var}_value 2632 case $ac_old_set,$ac_new_set in 2633 set,) 2634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2635printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2636 ac_cache_corrupted=: ;; 2637 ,set) 2638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2639printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2640 ac_cache_corrupted=: ;; 2641 ,);; 2642 *) 2643 if test "x$ac_old_val" != "x$ac_new_val"; then 2644 # differences in whitespace do not lead to failure. 2645 ac_old_val_w=`echo x $ac_old_val` 2646 ac_new_val_w=`echo x $ac_new_val` 2647 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2649printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2650 ac_cache_corrupted=: 2651 else 2652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2653printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2654 eval $ac_var=\$ac_old_val 2655 fi 2656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2657printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2659printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2660 fi;; 2661 esac 2662 # Pass precious variables to config.status. 2663 if test "$ac_new_set" = set; then 2664 case $ac_new_val in 2665 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2666 *) ac_arg=$ac_var=$ac_new_val ;; 2667 esac 2668 case " $ac_configure_args " in 2669 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2670 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2671 esac 2672 fi 2673done 2674if $ac_cache_corrupted; then 2675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2676printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2678printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2679 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2680 and start over" "$LINENO" 5 2681fi 2682## -------------------- ## 2683## Main body of script. ## 2684## -------------------- ## 2685 2686ac_ext=c 2687ac_cpp='$CPP $CPPFLAGS' 2688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2690ac_compiler_gnu=$ac_cv_c_compiler_gnu 2691 2692 2693 2694ac_config_headers="$ac_config_headers config.h" 2695 2696 2697# Initialize Automake 2698am__api_version='1.16' 2699 2700 2701 2702 # Find a good install program. We prefer a C program (faster), 2703# so one script is as good as another. But avoid the broken or 2704# incompatible versions: 2705# SysV /etc/install, /usr/sbin/install 2706# SunOS /usr/etc/install 2707# IRIX /sbin/install 2708# AIX /bin/install 2709# AmigaOS /C/install, which installs bootblocks on floppy discs 2710# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2711# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2712# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2713# OS/2's system install, which has a completely different semantic 2714# ./install, which can be erroneously created by make from ./install.sh. 2715# Reject install programs that cannot install multiple files. 2716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2717printf %s "checking for a BSD-compatible install... " >&6; } 2718if test -z "$INSTALL"; then 2719if test ${ac_cv_path_install+y} 2720then : 2721 printf %s "(cached) " >&6 2722else case e in #( 2723 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2724for as_dir in $PATH 2725do 2726 IFS=$as_save_IFS 2727 case $as_dir in #((( 2728 '') as_dir=./ ;; 2729 */) ;; 2730 *) as_dir=$as_dir/ ;; 2731 esac 2732 # Account for fact that we put trailing slashes in our PATH walk. 2733case $as_dir in #(( 2734 ./ | /[cC]/* | \ 2735 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2736 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2737 /usr/ucb/* ) ;; 2738 *) 2739 # OSF1 and SCO ODT 3.0 have their own names for install. 2740 # Don't use installbsd from OSF since it installs stuff as root 2741 # by default. 2742 for ac_prog in ginstall scoinst install; do 2743 for ac_exec_ext in '' $ac_executable_extensions; do 2744 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2745 if test $ac_prog = install && 2746 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2747 # AIX install. It has an incompatible calling convention. 2748 : 2749 elif test $ac_prog = install && 2750 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2751 # program-specific install script used by HP pwplus--don't use. 2752 : 2753 else 2754 rm -rf conftest.one conftest.two conftest.dir 2755 echo one > conftest.one 2756 echo two > conftest.two 2757 mkdir conftest.dir 2758 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2759 test -s conftest.one && test -s conftest.two && 2760 test -s conftest.dir/conftest.one && 2761 test -s conftest.dir/conftest.two 2762 then 2763 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2764 break 3 2765 fi 2766 fi 2767 fi 2768 done 2769 done 2770 ;; 2771esac 2772 2773 done 2774IFS=$as_save_IFS 2775 2776rm -rf conftest.one conftest.two conftest.dir 2777 ;; 2778esac 2779fi 2780 if test ${ac_cv_path_install+y}; then 2781 INSTALL=$ac_cv_path_install 2782 else 2783 # As a last resort, use the slow shell script. Don't cache a 2784 # value for INSTALL within a source directory, because that will 2785 # break other packages using the cache if that directory is 2786 # removed, or if the value is a relative name. 2787 INSTALL=$ac_install_sh 2788 fi 2789fi 2790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2791printf "%s\n" "$INSTALL" >&6; } 2792 2793# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2794# It thinks the first close brace ends the variable substitution. 2795test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2796 2797test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2798 2799test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2800 2801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2802printf %s "checking whether build environment is sane... " >&6; } 2803# Reject unsafe characters in $srcdir or the absolute working directory 2804# name. Accept space and tab only in the latter. 2805am_lf=' 2806' 2807case `pwd` in 2808 *[\\\"\#\$\&\'\`$am_lf]*) 2809 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2810esac 2811case $srcdir in 2812 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2813 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2814esac 2815 2816# Do 'set' in a subshell so we don't clobber the current shell's 2817# arguments. Must try -L first in case configure is actually a 2818# symlink; some systems play weird games with the mod time of symlinks 2819# (eg FreeBSD returns the mod time of the symlink's containing 2820# directory). 2821if ( 2822 am_has_slept=no 2823 for am_try in 1 2; do 2824 echo "timestamp, slept: $am_has_slept" > conftest.file 2825 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2826 if test "$*" = "X"; then 2827 # -L didn't work. 2828 set X `ls -t "$srcdir/configure" conftest.file` 2829 fi 2830 if test "$*" != "X $srcdir/configure conftest.file" \ 2831 && test "$*" != "X conftest.file $srcdir/configure"; then 2832 2833 # If neither matched, then we have a broken ls. This can happen 2834 # if, for instance, CONFIG_SHELL is bash and it inherits a 2835 # broken ls alias from the environment. This has actually 2836 # happened. Such a system could not be considered "sane". 2837 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2838 alias in your environment" "$LINENO" 5 2839 fi 2840 if test "$2" = conftest.file || test $am_try -eq 2; then 2841 break 2842 fi 2843 # Just in case. 2844 sleep 1 2845 am_has_slept=yes 2846 done 2847 test "$2" = conftest.file 2848 ) 2849then 2850 # Ok. 2851 : 2852else 2853 as_fn_error $? "newly created file is older than distributed files! 2854Check your system clock" "$LINENO" 5 2855fi 2856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2857printf "%s\n" "yes" >&6; } 2858# If we didn't sleep, we still need to ensure time stamps of config.status and 2859# generated files are strictly newer. 2860am_sleep_pid= 2861if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2862 ( sleep 1 ) & 2863 am_sleep_pid=$! 2864fi 2865 2866rm -f conftest.file 2867 2868test "$program_prefix" != NONE && 2869 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2870# Use a double $ so make ignores it. 2871test "$program_suffix" != NONE && 2872 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2873# Double any \ or $. 2874# By default was 's,x,x', remove it if useless. 2875ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2876program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2877 2878 2879# Expand $ac_aux_dir to an absolute path. 2880am_aux_dir=`cd "$ac_aux_dir" && pwd` 2881 2882 2883 if test x"${MISSING+set}" != xset; then 2884 MISSING="\${SHELL} '$am_aux_dir/missing'" 2885fi 2886# Use eval to expand $SHELL 2887if eval "$MISSING --is-lightweight"; then 2888 am_missing_run="$MISSING " 2889else 2890 am_missing_run= 2891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2892printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2893fi 2894 2895if test x"${install_sh+set}" != xset; then 2896 case $am_aux_dir in 2897 *\ * | *\ *) 2898 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2899 *) 2900 install_sh="\${SHELL} $am_aux_dir/install-sh" 2901 esac 2902fi 2903 2904# Installed binaries are usually stripped using 'strip' when the user 2905# run "make install-strip". However 'strip' might not be the right 2906# tool to use in cross-compilation environments, therefore Automake 2907# will honor the 'STRIP' environment variable to overrule this program. 2908if test "$cross_compiling" != no; then 2909 if test -n "$ac_tool_prefix"; then 2910 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2911set dummy ${ac_tool_prefix}strip; ac_word=$2 2912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2913printf %s "checking for $ac_word... " >&6; } 2914if test ${ac_cv_prog_STRIP+y} 2915then : 2916 printf %s "(cached) " >&6 2917else case e in #( 2918 e) if test -n "$STRIP"; then 2919 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2920else 2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2922for as_dir in $PATH 2923do 2924 IFS=$as_save_IFS 2925 case $as_dir in #((( 2926 '') as_dir=./ ;; 2927 */) ;; 2928 *) as_dir=$as_dir/ ;; 2929 esac 2930 for ac_exec_ext in '' $ac_executable_extensions; do 2931 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2932 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2934 break 2 2935 fi 2936done 2937 done 2938IFS=$as_save_IFS 2939 2940fi ;; 2941esac 2942fi 2943STRIP=$ac_cv_prog_STRIP 2944if test -n "$STRIP"; then 2945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2946printf "%s\n" "$STRIP" >&6; } 2947else 2948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2949printf "%s\n" "no" >&6; } 2950fi 2951 2952 2953fi 2954if test -z "$ac_cv_prog_STRIP"; then 2955 ac_ct_STRIP=$STRIP 2956 # Extract the first word of "strip", so it can be a program name with args. 2957set dummy strip; ac_word=$2 2958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2959printf %s "checking for $ac_word... " >&6; } 2960if test ${ac_cv_prog_ac_ct_STRIP+y} 2961then : 2962 printf %s "(cached) " >&6 2963else case e in #( 2964 e) if test -n "$ac_ct_STRIP"; then 2965 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2966else 2967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2968for as_dir in $PATH 2969do 2970 IFS=$as_save_IFS 2971 case $as_dir in #((( 2972 '') as_dir=./ ;; 2973 */) ;; 2974 *) as_dir=$as_dir/ ;; 2975 esac 2976 for ac_exec_ext in '' $ac_executable_extensions; do 2977 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2978 ac_cv_prog_ac_ct_STRIP="strip" 2979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2980 break 2 2981 fi 2982done 2983 done 2984IFS=$as_save_IFS 2985 2986fi ;; 2987esac 2988fi 2989ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2990if test -n "$ac_ct_STRIP"; then 2991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2992printf "%s\n" "$ac_ct_STRIP" >&6; } 2993else 2994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2995printf "%s\n" "no" >&6; } 2996fi 2997 2998 if test "x$ac_ct_STRIP" = x; then 2999 STRIP=":" 3000 else 3001 case $cross_compiling:$ac_tool_warned in 3002yes:) 3003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3004printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3005ac_tool_warned=yes ;; 3006esac 3007 STRIP=$ac_ct_STRIP 3008 fi 3009else 3010 STRIP="$ac_cv_prog_STRIP" 3011fi 3012 3013fi 3014INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3015 3016 3017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3018printf %s "checking for a race-free mkdir -p... " >&6; } 3019if test -z "$MKDIR_P"; then 3020 if test ${ac_cv_path_mkdir+y} 3021then : 3022 printf %s "(cached) " >&6 3023else case e in #( 3024 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3025for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3026do 3027 IFS=$as_save_IFS 3028 case $as_dir in #((( 3029 '') as_dir=./ ;; 3030 */) ;; 3031 *) as_dir=$as_dir/ ;; 3032 esac 3033 for ac_prog in mkdir gmkdir; do 3034 for ac_exec_ext in '' $ac_executable_extensions; do 3035 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3036 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3037 'mkdir ('*'coreutils) '* | \ 3038 *'BusyBox '* | \ 3039 'mkdir (fileutils) '4.1*) 3040 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3041 break 3;; 3042 esac 3043 done 3044 done 3045 done 3046IFS=$as_save_IFS 3047 ;; 3048esac 3049fi 3050 3051 test -d ./--version && rmdir ./--version 3052 if test ${ac_cv_path_mkdir+y}; then 3053 MKDIR_P="$ac_cv_path_mkdir -p" 3054 else 3055 # As a last resort, use plain mkdir -p, 3056 # in the hope it doesn't have the bugs of ancient mkdir. 3057 MKDIR_P='mkdir -p' 3058 fi 3059fi 3060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3061printf "%s\n" "$MKDIR_P" >&6; } 3062 3063for ac_prog in gawk mawk nawk awk 3064do 3065 # Extract the first word of "$ac_prog", so it can be a program name with args. 3066set dummy $ac_prog; ac_word=$2 3067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3068printf %s "checking for $ac_word... " >&6; } 3069if test ${ac_cv_prog_AWK+y} 3070then : 3071 printf %s "(cached) " >&6 3072else case e in #( 3073 e) if test -n "$AWK"; then 3074 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3075else 3076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3077for as_dir in $PATH 3078do 3079 IFS=$as_save_IFS 3080 case $as_dir in #((( 3081 '') as_dir=./ ;; 3082 */) ;; 3083 *) as_dir=$as_dir/ ;; 3084 esac 3085 for ac_exec_ext in '' $ac_executable_extensions; do 3086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3087 ac_cv_prog_AWK="$ac_prog" 3088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3089 break 2 3090 fi 3091done 3092 done 3093IFS=$as_save_IFS 3094 3095fi ;; 3096esac 3097fi 3098AWK=$ac_cv_prog_AWK 3099if test -n "$AWK"; then 3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3101printf "%s\n" "$AWK" >&6; } 3102else 3103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3104printf "%s\n" "no" >&6; } 3105fi 3106 3107 3108 test -n "$AWK" && break 3109done 3110 3111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3112printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3113set x ${MAKE-make} 3114ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3115if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3116then : 3117 printf %s "(cached) " >&6 3118else case e in #( 3119 e) cat >conftest.make <<\_ACEOF 3120SHELL = /bin/sh 3121all: 3122 @echo '@@@%%%=$(MAKE)=@@@%%%' 3123_ACEOF 3124# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3125case `${MAKE-make} -f conftest.make 2>/dev/null` in 3126 *@@@%%%=?*=@@@%%%*) 3127 eval ac_cv_prog_make_${ac_make}_set=yes;; 3128 *) 3129 eval ac_cv_prog_make_${ac_make}_set=no;; 3130esac 3131rm -f conftest.make ;; 3132esac 3133fi 3134if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3136printf "%s\n" "yes" >&6; } 3137 SET_MAKE= 3138else 3139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3140printf "%s\n" "no" >&6; } 3141 SET_MAKE="MAKE=${MAKE-make}" 3142fi 3143 3144rm -rf .tst 2>/dev/null 3145mkdir .tst 2>/dev/null 3146if test -d .tst; then 3147 am__leading_dot=. 3148else 3149 am__leading_dot=_ 3150fi 3151rmdir .tst 2>/dev/null 3152 3153# Check whether --enable-silent-rules was given. 3154if test ${enable_silent_rules+y} 3155then : 3156 enableval=$enable_silent_rules; 3157fi 3158 3159case $enable_silent_rules in # ((( 3160 yes) AM_DEFAULT_VERBOSITY=0;; 3161 no) AM_DEFAULT_VERBOSITY=1;; 3162 *) AM_DEFAULT_VERBOSITY=1;; 3163esac 3164am_make=${MAKE-make} 3165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3166printf %s "checking whether $am_make supports nested variables... " >&6; } 3167if test ${am_cv_make_support_nested_variables+y} 3168then : 3169 printf %s "(cached) " >&6 3170else case e in #( 3171 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3172BAR0=false 3173BAR1=true 3174V=1 3175am__doit: 3176 @$(TRUE) 3177.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3178 am_cv_make_support_nested_variables=yes 3179else 3180 am_cv_make_support_nested_variables=no 3181fi ;; 3182esac 3183fi 3184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3185printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3186if test $am_cv_make_support_nested_variables = yes; then 3187 AM_V='$(V)' 3188 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3189else 3190 AM_V=$AM_DEFAULT_VERBOSITY 3191 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3192fi 3193AM_BACKSLASH='\' 3194 3195if test "`cd $srcdir && pwd`" != "`pwd`"; then 3196 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3197 # is not polluted with repeated "-I." 3198 am__isrc=' -I$(srcdir)' 3199 # test to see if srcdir already configured 3200 if test -f $srcdir/config.status; then 3201 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3202 fi 3203fi 3204 3205# test whether we have cygpath 3206if test -z "$CYGPATH_W"; then 3207 if (cygpath --version) >/dev/null 2>/dev/null; then 3208 CYGPATH_W='cygpath -w' 3209 else 3210 CYGPATH_W=echo 3211 fi 3212fi 3213 3214 3215# Define the identity of the package. 3216 PACKAGE='xmh' 3217 VERSION='1.0.5' 3218 3219 3220printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3221 3222 3223printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3224 3225# Some tools Automake needs. 3226 3227ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3228 3229 3230AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3231 3232 3233AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3234 3235 3236AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3237 3238 3239MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3240 3241# For better backward compatibility. To be removed once Automake 1.9.x 3242# dies out for good. For more background, see: 3243# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3244# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3245mkdir_p='$(MKDIR_P)' 3246 3247# We need awk for the "check" target (and possibly the TAP driver). The 3248# system "awk" is bad on some platforms. 3249# Always define AMTAR for backward compatibility. Yes, it's still used 3250# in the wild :-( We should find a proper way to deprecate it ... 3251AMTAR='$${TAR-tar}' 3252 3253 3254# We'll loop over all known methods to create a tar archive until one works. 3255_am_tools='gnutar pax cpio none' 3256 3257am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3258 3259 3260 3261 3262 3263# Variables for tags utilities; see am/tags.am 3264if test -z "$CTAGS"; then 3265 CTAGS=ctags 3266fi 3267 3268if test -z "$ETAGS"; then 3269 ETAGS=etags 3270fi 3271 3272if test -z "$CSCOPE"; then 3273 CSCOPE=cscope 3274fi 3275 3276 3277 3278# POSIX will say in a future version that running "rm -f" with no argument 3279# is OK; and we want to be able to make that assumption in our Makefile 3280# recipes. So use an aggressive probe to check that the usage we want is 3281# actually supported "in the wild" to an acceptable degree. 3282# See automake bug#10828. 3283# To make any issue more visible, cause the running configure to be aborted 3284# by default if the 'rm' program in use doesn't match our expectations; the 3285# user can still override this though. 3286if rm -f && rm -fr && rm -rf; then : OK; else 3287 cat >&2 <<'END' 3288Oops! 3289 3290Your 'rm' program seems unable to run without file operands specified 3291on the command line, even when the '-f' option is present. This is contrary 3292to the behaviour of most rm programs out there, and not conforming with 3293the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3294 3295Please tell bug-automake@gnu.org about your system, including the value 3296of your $PATH and any error possibly output before this message. This 3297can help us improve future automake versions. 3298 3299END 3300 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3301 echo 'Configuration will proceed anyway, since you have set the' >&2 3302 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3303 echo >&2 3304 else 3305 cat >&2 <<'END' 3306Aborting the configuration process, to ensure you take notice of the issue. 3307 3308You can download and install GNU coreutils to get an 'rm' implementation 3309that behaves properly: <https://www.gnu.org/software/coreutils/>. 3310 3311If you want to complete the configuration process using your problematic 3312'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3313to "yes", and re-run configure. 3314 3315END 3316 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3317 fi 3318fi 3319 3320 3321# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342DEPDIR="${am__leading_dot}deps" 3343 3344ac_config_commands="$ac_config_commands depfiles" 3345 3346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3347printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3348cat > confinc.mk << 'END' 3349am__doit: 3350 @echo this is the am__doit target >confinc.out 3351.PHONY: am__doit 3352END 3353am__include="#" 3354am__quote= 3355# BSD make does it like this. 3356echo '.include "confinc.mk" # ignored' > confmf.BSD 3357# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3358echo 'include confinc.mk # ignored' > confmf.GNU 3359_am_result=no 3360for s in GNU BSD; do 3361 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3362 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3363 ac_status=$? 3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3365 (exit $ac_status); } 3366 case $?:`cat confinc.out 2>/dev/null` in #( 3367 '0:this is the am__doit target') : 3368 case $s in #( 3369 BSD) : 3370 am__include='.include' am__quote='"' ;; #( 3371 *) : 3372 am__include='include' am__quote='' ;; 3373esac ;; #( 3374 *) : 3375 ;; 3376esac 3377 if test "$am__include" != "#"; then 3378 _am_result="yes ($s style)" 3379 break 3380 fi 3381done 3382rm -f confinc.* confmf.* 3383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3384printf "%s\n" "${_am_result}" >&6; } 3385 3386# Check whether --enable-dependency-tracking was given. 3387if test ${enable_dependency_tracking+y} 3388then : 3389 enableval=$enable_dependency_tracking; 3390fi 3391 3392if test "x$enable_dependency_tracking" != xno; then 3393 am_depcomp="$ac_aux_dir/depcomp" 3394 AMDEPBACKSLASH='\' 3395 am__nodep='_no' 3396fi 3397 if test "x$enable_dependency_tracking" != xno; then 3398 AMDEP_TRUE= 3399 AMDEP_FALSE='#' 3400else 3401 AMDEP_TRUE='#' 3402 AMDEP_FALSE= 3403fi 3404 3405 3406ac_ext=c 3407ac_cpp='$CPP $CPPFLAGS' 3408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3410ac_compiler_gnu=$ac_cv_c_compiler_gnu 3411if test -n "$ac_tool_prefix"; then 3412 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3413set dummy ${ac_tool_prefix}gcc; ac_word=$2 3414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3415printf %s "checking for $ac_word... " >&6; } 3416if test ${ac_cv_prog_CC+y} 3417then : 3418 printf %s "(cached) " >&6 3419else case e in #( 3420 e) if test -n "$CC"; then 3421 ac_cv_prog_CC="$CC" # Let the user override the test. 3422else 3423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3424for as_dir in $PATH 3425do 3426 IFS=$as_save_IFS 3427 case $as_dir in #((( 3428 '') as_dir=./ ;; 3429 */) ;; 3430 *) as_dir=$as_dir/ ;; 3431 esac 3432 for ac_exec_ext in '' $ac_executable_extensions; do 3433 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3434 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3436 break 2 3437 fi 3438done 3439 done 3440IFS=$as_save_IFS 3441 3442fi ;; 3443esac 3444fi 3445CC=$ac_cv_prog_CC 3446if test -n "$CC"; then 3447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3448printf "%s\n" "$CC" >&6; } 3449else 3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3451printf "%s\n" "no" >&6; } 3452fi 3453 3454 3455fi 3456if test -z "$ac_cv_prog_CC"; then 3457 ac_ct_CC=$CC 3458 # Extract the first word of "gcc", so it can be a program name with args. 3459set dummy gcc; ac_word=$2 3460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3461printf %s "checking for $ac_word... " >&6; } 3462if test ${ac_cv_prog_ac_ct_CC+y} 3463then : 3464 printf %s "(cached) " >&6 3465else case e in #( 3466 e) if test -n "$ac_ct_CC"; then 3467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3468else 3469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3470for as_dir in $PATH 3471do 3472 IFS=$as_save_IFS 3473 case $as_dir in #((( 3474 '') as_dir=./ ;; 3475 */) ;; 3476 *) as_dir=$as_dir/ ;; 3477 esac 3478 for ac_exec_ext in '' $ac_executable_extensions; do 3479 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3480 ac_cv_prog_ac_ct_CC="gcc" 3481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3482 break 2 3483 fi 3484done 3485 done 3486IFS=$as_save_IFS 3487 3488fi ;; 3489esac 3490fi 3491ac_ct_CC=$ac_cv_prog_ac_ct_CC 3492if test -n "$ac_ct_CC"; then 3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3494printf "%s\n" "$ac_ct_CC" >&6; } 3495else 3496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3497printf "%s\n" "no" >&6; } 3498fi 3499 3500 if test "x$ac_ct_CC" = x; then 3501 CC="" 3502 else 3503 case $cross_compiling:$ac_tool_warned in 3504yes:) 3505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3506printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3507ac_tool_warned=yes ;; 3508esac 3509 CC=$ac_ct_CC 3510 fi 3511else 3512 CC="$ac_cv_prog_CC" 3513fi 3514 3515if test -z "$CC"; then 3516 if test -n "$ac_tool_prefix"; then 3517 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3518set dummy ${ac_tool_prefix}cc; ac_word=$2 3519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3520printf %s "checking for $ac_word... " >&6; } 3521if test ${ac_cv_prog_CC+y} 3522then : 3523 printf %s "(cached) " >&6 3524else case e in #( 3525 e) if test -n "$CC"; then 3526 ac_cv_prog_CC="$CC" # Let the user override the test. 3527else 3528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3529for as_dir in $PATH 3530do 3531 IFS=$as_save_IFS 3532 case $as_dir in #((( 3533 '') as_dir=./ ;; 3534 */) ;; 3535 *) as_dir=$as_dir/ ;; 3536 esac 3537 for ac_exec_ext in '' $ac_executable_extensions; do 3538 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3539 ac_cv_prog_CC="${ac_tool_prefix}cc" 3540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3541 break 2 3542 fi 3543done 3544 done 3545IFS=$as_save_IFS 3546 3547fi ;; 3548esac 3549fi 3550CC=$ac_cv_prog_CC 3551if test -n "$CC"; then 3552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3553printf "%s\n" "$CC" >&6; } 3554else 3555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3556printf "%s\n" "no" >&6; } 3557fi 3558 3559 3560 fi 3561fi 3562if test -z "$CC"; then 3563 # Extract the first word of "cc", so it can be a program name with args. 3564set dummy cc; ac_word=$2 3565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3566printf %s "checking for $ac_word... " >&6; } 3567if test ${ac_cv_prog_CC+y} 3568then : 3569 printf %s "(cached) " >&6 3570else case e in #( 3571 e) if test -n "$CC"; then 3572 ac_cv_prog_CC="$CC" # Let the user override the test. 3573else 3574 ac_prog_rejected=no 3575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3576for as_dir in $PATH 3577do 3578 IFS=$as_save_IFS 3579 case $as_dir in #((( 3580 '') as_dir=./ ;; 3581 */) ;; 3582 *) as_dir=$as_dir/ ;; 3583 esac 3584 for ac_exec_ext in '' $ac_executable_extensions; do 3585 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3586 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3587 ac_prog_rejected=yes 3588 continue 3589 fi 3590 ac_cv_prog_CC="cc" 3591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3592 break 2 3593 fi 3594done 3595 done 3596IFS=$as_save_IFS 3597 3598if test $ac_prog_rejected = yes; then 3599 # We found a bogon in the path, so make sure we never use it. 3600 set dummy $ac_cv_prog_CC 3601 shift 3602 if test $# != 0; then 3603 # We chose a different compiler from the bogus one. 3604 # However, it has the same basename, so the bogon will be chosen 3605 # first if we set CC to just the basename; use the full file name. 3606 shift 3607 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3608 fi 3609fi 3610fi ;; 3611esac 3612fi 3613CC=$ac_cv_prog_CC 3614if test -n "$CC"; then 3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3616printf "%s\n" "$CC" >&6; } 3617else 3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3619printf "%s\n" "no" >&6; } 3620fi 3621 3622 3623fi 3624if test -z "$CC"; then 3625 if test -n "$ac_tool_prefix"; then 3626 for ac_prog in cl.exe 3627 do 3628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3629set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3631printf %s "checking for $ac_word... " >&6; } 3632if test ${ac_cv_prog_CC+y} 3633then : 3634 printf %s "(cached) " >&6 3635else case e in #( 3636 e) if test -n "$CC"; then 3637 ac_cv_prog_CC="$CC" # Let the user override the test. 3638else 3639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3640for as_dir in $PATH 3641do 3642 IFS=$as_save_IFS 3643 case $as_dir in #((( 3644 '') as_dir=./ ;; 3645 */) ;; 3646 *) as_dir=$as_dir/ ;; 3647 esac 3648 for ac_exec_ext in '' $ac_executable_extensions; do 3649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3650 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3652 break 2 3653 fi 3654done 3655 done 3656IFS=$as_save_IFS 3657 3658fi ;; 3659esac 3660fi 3661CC=$ac_cv_prog_CC 3662if test -n "$CC"; then 3663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3664printf "%s\n" "$CC" >&6; } 3665else 3666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3667printf "%s\n" "no" >&6; } 3668fi 3669 3670 3671 test -n "$CC" && break 3672 done 3673fi 3674if test -z "$CC"; then 3675 ac_ct_CC=$CC 3676 for ac_prog in cl.exe 3677do 3678 # Extract the first word of "$ac_prog", so it can be a program name with args. 3679set dummy $ac_prog; ac_word=$2 3680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3681printf %s "checking for $ac_word... " >&6; } 3682if test ${ac_cv_prog_ac_ct_CC+y} 3683then : 3684 printf %s "(cached) " >&6 3685else case e in #( 3686 e) if test -n "$ac_ct_CC"; then 3687 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3688else 3689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3690for as_dir in $PATH 3691do 3692 IFS=$as_save_IFS 3693 case $as_dir in #((( 3694 '') as_dir=./ ;; 3695 */) ;; 3696 *) as_dir=$as_dir/ ;; 3697 esac 3698 for ac_exec_ext in '' $ac_executable_extensions; do 3699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3700 ac_cv_prog_ac_ct_CC="$ac_prog" 3701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3702 break 2 3703 fi 3704done 3705 done 3706IFS=$as_save_IFS 3707 3708fi ;; 3709esac 3710fi 3711ac_ct_CC=$ac_cv_prog_ac_ct_CC 3712if test -n "$ac_ct_CC"; then 3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3714printf "%s\n" "$ac_ct_CC" >&6; } 3715else 3716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3717printf "%s\n" "no" >&6; } 3718fi 3719 3720 3721 test -n "$ac_ct_CC" && break 3722done 3723 3724 if test "x$ac_ct_CC" = x; then 3725 CC="" 3726 else 3727 case $cross_compiling:$ac_tool_warned in 3728yes:) 3729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3730printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3731ac_tool_warned=yes ;; 3732esac 3733 CC=$ac_ct_CC 3734 fi 3735fi 3736 3737fi 3738if test -z "$CC"; then 3739 if test -n "$ac_tool_prefix"; then 3740 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3741set dummy ${ac_tool_prefix}clang; ac_word=$2 3742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3743printf %s "checking for $ac_word... " >&6; } 3744if test ${ac_cv_prog_CC+y} 3745then : 3746 printf %s "(cached) " >&6 3747else case e in #( 3748 e) if test -n "$CC"; then 3749 ac_cv_prog_CC="$CC" # Let the user override the test. 3750else 3751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3752for as_dir in $PATH 3753do 3754 IFS=$as_save_IFS 3755 case $as_dir in #((( 3756 '') as_dir=./ ;; 3757 */) ;; 3758 *) as_dir=$as_dir/ ;; 3759 esac 3760 for ac_exec_ext in '' $ac_executable_extensions; do 3761 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3762 ac_cv_prog_CC="${ac_tool_prefix}clang" 3763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3764 break 2 3765 fi 3766done 3767 done 3768IFS=$as_save_IFS 3769 3770fi ;; 3771esac 3772fi 3773CC=$ac_cv_prog_CC 3774if test -n "$CC"; then 3775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3776printf "%s\n" "$CC" >&6; } 3777else 3778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3779printf "%s\n" "no" >&6; } 3780fi 3781 3782 3783fi 3784if test -z "$ac_cv_prog_CC"; then 3785 ac_ct_CC=$CC 3786 # Extract the first word of "clang", so it can be a program name with args. 3787set dummy clang; ac_word=$2 3788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3789printf %s "checking for $ac_word... " >&6; } 3790if test ${ac_cv_prog_ac_ct_CC+y} 3791then : 3792 printf %s "(cached) " >&6 3793else case e in #( 3794 e) if test -n "$ac_ct_CC"; then 3795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3796else 3797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3798for as_dir in $PATH 3799do 3800 IFS=$as_save_IFS 3801 case $as_dir in #((( 3802 '') as_dir=./ ;; 3803 */) ;; 3804 *) as_dir=$as_dir/ ;; 3805 esac 3806 for ac_exec_ext in '' $ac_executable_extensions; do 3807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3808 ac_cv_prog_ac_ct_CC="clang" 3809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3810 break 2 3811 fi 3812done 3813 done 3814IFS=$as_save_IFS 3815 3816fi ;; 3817esac 3818fi 3819ac_ct_CC=$ac_cv_prog_ac_ct_CC 3820if test -n "$ac_ct_CC"; then 3821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3822printf "%s\n" "$ac_ct_CC" >&6; } 3823else 3824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3825printf "%s\n" "no" >&6; } 3826fi 3827 3828 if test "x$ac_ct_CC" = x; then 3829 CC="" 3830 else 3831 case $cross_compiling:$ac_tool_warned in 3832yes:) 3833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3834printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3835ac_tool_warned=yes ;; 3836esac 3837 CC=$ac_ct_CC 3838 fi 3839else 3840 CC="$ac_cv_prog_CC" 3841fi 3842 3843fi 3844 3845 3846test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3847printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3848as_fn_error $? "no acceptable C compiler found in \$PATH 3849See 'config.log' for more details" "$LINENO" 5; } 3850 3851# Provide some information about the compiler. 3852printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3853set X $ac_compile 3854ac_compiler=$2 3855for ac_option in --version -v -V -qversion -version; do 3856 { { ac_try="$ac_compiler $ac_option >&5" 3857case "(($ac_try" in 3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3859 *) ac_try_echo=$ac_try;; 3860esac 3861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3862printf "%s\n" "$ac_try_echo"; } >&5 3863 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3864 ac_status=$? 3865 if test -s conftest.err; then 3866 sed '10a\ 3867... rest of stderr output deleted ... 3868 10q' conftest.err >conftest.er1 3869 cat conftest.er1 >&5 3870 fi 3871 rm -f conftest.er1 conftest.err 3872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3873 test $ac_status = 0; } 3874done 3875 3876cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3877/* end confdefs.h. */ 3878 3879int 3880main (void) 3881{ 3882 3883 ; 3884 return 0; 3885} 3886_ACEOF 3887ac_clean_files_save=$ac_clean_files 3888ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3889# Try to create an executable without -o first, disregard a.out. 3890# It will help us diagnose broken compilers, and finding out an intuition 3891# of exeext. 3892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3893printf %s "checking whether the C compiler works... " >&6; } 3894ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3895 3896# The possible output files: 3897ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3898 3899ac_rmfiles= 3900for ac_file in $ac_files 3901do 3902 case $ac_file in 3903 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3904 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3905 esac 3906done 3907rm -f $ac_rmfiles 3908 3909if { { ac_try="$ac_link_default" 3910case "(($ac_try" in 3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3912 *) ac_try_echo=$ac_try;; 3913esac 3914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3915printf "%s\n" "$ac_try_echo"; } >&5 3916 (eval "$ac_link_default") 2>&5 3917 ac_status=$? 3918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3919 test $ac_status = 0; } 3920then : 3921 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3922# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3923# in a Makefile. We should not override ac_cv_exeext if it was cached, 3924# so that the user can short-circuit this test for compilers unknown to 3925# Autoconf. 3926for ac_file in $ac_files '' 3927do 3928 test -f "$ac_file" || continue 3929 case $ac_file in 3930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3931 ;; 3932 [ab].out ) 3933 # We found the default executable, but exeext='' is most 3934 # certainly right. 3935 break;; 3936 *.* ) 3937 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3938 then :; else 3939 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3940 fi 3941 # We set ac_cv_exeext here because the later test for it is not 3942 # safe: cross compilers may not add the suffix if given an '-o' 3943 # argument, so we may need to know it at that point already. 3944 # Even if this section looks crufty: it has the advantage of 3945 # actually working. 3946 break;; 3947 * ) 3948 break;; 3949 esac 3950done 3951test "$ac_cv_exeext" = no && ac_cv_exeext= 3952 3953else case e in #( 3954 e) ac_file='' ;; 3955esac 3956fi 3957if test -z "$ac_file" 3958then : 3959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3960printf "%s\n" "no" >&6; } 3961printf "%s\n" "$as_me: failed program was:" >&5 3962sed 's/^/| /' conftest.$ac_ext >&5 3963 3964{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3965printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3966as_fn_error 77 "C compiler cannot create executables 3967See 'config.log' for more details" "$LINENO" 5; } 3968else case e in #( 3969 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3970printf "%s\n" "yes" >&6; } ;; 3971esac 3972fi 3973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3974printf %s "checking for C compiler default output file name... " >&6; } 3975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3976printf "%s\n" "$ac_file" >&6; } 3977ac_exeext=$ac_cv_exeext 3978 3979rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3980ac_clean_files=$ac_clean_files_save 3981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3982printf %s "checking for suffix of executables... " >&6; } 3983if { { ac_try="$ac_link" 3984case "(($ac_try" in 3985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3986 *) ac_try_echo=$ac_try;; 3987esac 3988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3989printf "%s\n" "$ac_try_echo"; } >&5 3990 (eval "$ac_link") 2>&5 3991 ac_status=$? 3992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3993 test $ac_status = 0; } 3994then : 3995 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3996# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3997# work properly (i.e., refer to 'conftest.exe'), while it won't with 3998# 'rm'. 3999for ac_file in conftest.exe conftest conftest.*; do 4000 test -f "$ac_file" || continue 4001 case $ac_file in 4002 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4003 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4004 break;; 4005 * ) break;; 4006 esac 4007done 4008else case e in #( 4009 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4010printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4011as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4012See 'config.log' for more details" "$LINENO" 5; } ;; 4013esac 4014fi 4015rm -f conftest conftest$ac_cv_exeext 4016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4017printf "%s\n" "$ac_cv_exeext" >&6; } 4018 4019rm -f conftest.$ac_ext 4020EXEEXT=$ac_cv_exeext 4021ac_exeext=$EXEEXT 4022cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4023/* end confdefs.h. */ 4024#include <stdio.h> 4025int 4026main (void) 4027{ 4028FILE *f = fopen ("conftest.out", "w"); 4029 if (!f) 4030 return 1; 4031 return ferror (f) || fclose (f) != 0; 4032 4033 ; 4034 return 0; 4035} 4036_ACEOF 4037ac_clean_files="$ac_clean_files conftest.out" 4038# Check that the compiler produces executables we can run. If not, either 4039# the compiler is broken, or we cross compile. 4040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4041printf %s "checking whether we are cross compiling... " >&6; } 4042if test "$cross_compiling" != yes; then 4043 { { ac_try="$ac_link" 4044case "(($ac_try" in 4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4046 *) ac_try_echo=$ac_try;; 4047esac 4048eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4049printf "%s\n" "$ac_try_echo"; } >&5 4050 (eval "$ac_link") 2>&5 4051 ac_status=$? 4052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4053 test $ac_status = 0; } 4054 if { ac_try='./conftest$ac_cv_exeext' 4055 { { case "(($ac_try" in 4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4057 *) ac_try_echo=$ac_try;; 4058esac 4059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4060printf "%s\n" "$ac_try_echo"; } >&5 4061 (eval "$ac_try") 2>&5 4062 ac_status=$? 4063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4064 test $ac_status = 0; }; }; then 4065 cross_compiling=no 4066 else 4067 if test "$cross_compiling" = maybe; then 4068 cross_compiling=yes 4069 else 4070 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4071printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4072as_fn_error 77 "cannot run C compiled programs. 4073If you meant to cross compile, use '--host'. 4074See 'config.log' for more details" "$LINENO" 5; } 4075 fi 4076 fi 4077fi 4078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4079printf "%s\n" "$cross_compiling" >&6; } 4080 4081rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4082 conftest.o conftest.obj conftest.out 4083ac_clean_files=$ac_clean_files_save 4084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4085printf %s "checking for suffix of object files... " >&6; } 4086if test ${ac_cv_objext+y} 4087then : 4088 printf %s "(cached) " >&6 4089else case e in #( 4090 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4091/* end confdefs.h. */ 4092 4093int 4094main (void) 4095{ 4096 4097 ; 4098 return 0; 4099} 4100_ACEOF 4101rm -f conftest.o conftest.obj 4102if { { ac_try="$ac_compile" 4103case "(($ac_try" in 4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4105 *) ac_try_echo=$ac_try;; 4106esac 4107eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4108printf "%s\n" "$ac_try_echo"; } >&5 4109 (eval "$ac_compile") 2>&5 4110 ac_status=$? 4111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4112 test $ac_status = 0; } 4113then : 4114 for ac_file in conftest.o conftest.obj conftest.*; do 4115 test -f "$ac_file" || continue; 4116 case $ac_file in 4117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4118 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4119 break;; 4120 esac 4121done 4122else case e in #( 4123 e) printf "%s\n" "$as_me: failed program was:" >&5 4124sed 's/^/| /' conftest.$ac_ext >&5 4125 4126{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4127printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4128as_fn_error $? "cannot compute suffix of object files: cannot compile 4129See 'config.log' for more details" "$LINENO" 5; } ;; 4130esac 4131fi 4132rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4133esac 4134fi 4135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4136printf "%s\n" "$ac_cv_objext" >&6; } 4137OBJEXT=$ac_cv_objext 4138ac_objext=$OBJEXT 4139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4140printf %s "checking whether the compiler supports GNU C... " >&6; } 4141if test ${ac_cv_c_compiler_gnu+y} 4142then : 4143 printf %s "(cached) " >&6 4144else case e in #( 4145 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4146/* end confdefs.h. */ 4147 4148int 4149main (void) 4150{ 4151#ifndef __GNUC__ 4152 choke me 4153#endif 4154 4155 ; 4156 return 0; 4157} 4158_ACEOF 4159if ac_fn_c_try_compile "$LINENO" 4160then : 4161 ac_compiler_gnu=yes 4162else case e in #( 4163 e) ac_compiler_gnu=no ;; 4164esac 4165fi 4166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4167ac_cv_c_compiler_gnu=$ac_compiler_gnu 4168 ;; 4169esac 4170fi 4171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4172printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4173ac_compiler_gnu=$ac_cv_c_compiler_gnu 4174 4175if test $ac_compiler_gnu = yes; then 4176 GCC=yes 4177else 4178 GCC= 4179fi 4180ac_test_CFLAGS=${CFLAGS+y} 4181ac_save_CFLAGS=$CFLAGS 4182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4183printf %s "checking whether $CC accepts -g... " >&6; } 4184if test ${ac_cv_prog_cc_g+y} 4185then : 4186 printf %s "(cached) " >&6 4187else case e in #( 4188 e) ac_save_c_werror_flag=$ac_c_werror_flag 4189 ac_c_werror_flag=yes 4190 ac_cv_prog_cc_g=no 4191 CFLAGS="-g" 4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4193/* end confdefs.h. */ 4194 4195int 4196main (void) 4197{ 4198 4199 ; 4200 return 0; 4201} 4202_ACEOF 4203if ac_fn_c_try_compile "$LINENO" 4204then : 4205 ac_cv_prog_cc_g=yes 4206else case e in #( 4207 e) CFLAGS="" 4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4209/* end confdefs.h. */ 4210 4211int 4212main (void) 4213{ 4214 4215 ; 4216 return 0; 4217} 4218_ACEOF 4219if ac_fn_c_try_compile "$LINENO" 4220then : 4221 4222else case e in #( 4223 e) ac_c_werror_flag=$ac_save_c_werror_flag 4224 CFLAGS="-g" 4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4226/* end confdefs.h. */ 4227 4228int 4229main (void) 4230{ 4231 4232 ; 4233 return 0; 4234} 4235_ACEOF 4236if ac_fn_c_try_compile "$LINENO" 4237then : 4238 ac_cv_prog_cc_g=yes 4239fi 4240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4241esac 4242fi 4243rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4244esac 4245fi 4246rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4247 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4248esac 4249fi 4250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4251printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4252if test $ac_test_CFLAGS; then 4253 CFLAGS=$ac_save_CFLAGS 4254elif test $ac_cv_prog_cc_g = yes; then 4255 if test "$GCC" = yes; then 4256 CFLAGS="-g -O2" 4257 else 4258 CFLAGS="-g" 4259 fi 4260else 4261 if test "$GCC" = yes; then 4262 CFLAGS="-O2" 4263 else 4264 CFLAGS= 4265 fi 4266fi 4267ac_prog_cc_stdc=no 4268if test x$ac_prog_cc_stdc = xno 4269then : 4270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4271printf %s "checking for $CC option to enable C11 features... " >&6; } 4272if test ${ac_cv_prog_cc_c11+y} 4273then : 4274 printf %s "(cached) " >&6 4275else case e in #( 4276 e) ac_cv_prog_cc_c11=no 4277ac_save_CC=$CC 4278cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4279/* end confdefs.h. */ 4280$ac_c_conftest_c11_program 4281_ACEOF 4282for ac_arg in '' -std=gnu11 4283do 4284 CC="$ac_save_CC $ac_arg" 4285 if ac_fn_c_try_compile "$LINENO" 4286then : 4287 ac_cv_prog_cc_c11=$ac_arg 4288fi 4289rm -f core conftest.err conftest.$ac_objext conftest.beam 4290 test "x$ac_cv_prog_cc_c11" != "xno" && break 4291done 4292rm -f conftest.$ac_ext 4293CC=$ac_save_CC ;; 4294esac 4295fi 4296 4297if test "x$ac_cv_prog_cc_c11" = xno 4298then : 4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4300printf "%s\n" "unsupported" >&6; } 4301else case e in #( 4302 e) if test "x$ac_cv_prog_cc_c11" = x 4303then : 4304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4305printf "%s\n" "none needed" >&6; } 4306else case e in #( 4307 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4308printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4309 CC="$CC $ac_cv_prog_cc_c11" ;; 4310esac 4311fi 4312 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4313 ac_prog_cc_stdc=c11 ;; 4314esac 4315fi 4316fi 4317if test x$ac_prog_cc_stdc = xno 4318then : 4319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4320printf %s "checking for $CC option to enable C99 features... " >&6; } 4321if test ${ac_cv_prog_cc_c99+y} 4322then : 4323 printf %s "(cached) " >&6 4324else case e in #( 4325 e) ac_cv_prog_cc_c99=no 4326ac_save_CC=$CC 4327cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4328/* end confdefs.h. */ 4329$ac_c_conftest_c99_program 4330_ACEOF 4331for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4332do 4333 CC="$ac_save_CC $ac_arg" 4334 if ac_fn_c_try_compile "$LINENO" 4335then : 4336 ac_cv_prog_cc_c99=$ac_arg 4337fi 4338rm -f core conftest.err conftest.$ac_objext conftest.beam 4339 test "x$ac_cv_prog_cc_c99" != "xno" && break 4340done 4341rm -f conftest.$ac_ext 4342CC=$ac_save_CC ;; 4343esac 4344fi 4345 4346if test "x$ac_cv_prog_cc_c99" = xno 4347then : 4348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4349printf "%s\n" "unsupported" >&6; } 4350else case e in #( 4351 e) if test "x$ac_cv_prog_cc_c99" = x 4352then : 4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4354printf "%s\n" "none needed" >&6; } 4355else case e in #( 4356 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4357printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4358 CC="$CC $ac_cv_prog_cc_c99" ;; 4359esac 4360fi 4361 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4362 ac_prog_cc_stdc=c99 ;; 4363esac 4364fi 4365fi 4366if test x$ac_prog_cc_stdc = xno 4367then : 4368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4369printf %s "checking for $CC option to enable C89 features... " >&6; } 4370if test ${ac_cv_prog_cc_c89+y} 4371then : 4372 printf %s "(cached) " >&6 4373else case e in #( 4374 e) ac_cv_prog_cc_c89=no 4375ac_save_CC=$CC 4376cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4377/* end confdefs.h. */ 4378$ac_c_conftest_c89_program 4379_ACEOF 4380for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4381do 4382 CC="$ac_save_CC $ac_arg" 4383 if ac_fn_c_try_compile "$LINENO" 4384then : 4385 ac_cv_prog_cc_c89=$ac_arg 4386fi 4387rm -f core conftest.err conftest.$ac_objext conftest.beam 4388 test "x$ac_cv_prog_cc_c89" != "xno" && break 4389done 4390rm -f conftest.$ac_ext 4391CC=$ac_save_CC ;; 4392esac 4393fi 4394 4395if test "x$ac_cv_prog_cc_c89" = xno 4396then : 4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4398printf "%s\n" "unsupported" >&6; } 4399else case e in #( 4400 e) if test "x$ac_cv_prog_cc_c89" = x 4401then : 4402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4403printf "%s\n" "none needed" >&6; } 4404else case e in #( 4405 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4406printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4407 CC="$CC $ac_cv_prog_cc_c89" ;; 4408esac 4409fi 4410 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4411 ac_prog_cc_stdc=c89 ;; 4412esac 4413fi 4414fi 4415 4416ac_ext=c 4417ac_cpp='$CPP $CPPFLAGS' 4418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4420ac_compiler_gnu=$ac_cv_c_compiler_gnu 4421 4422 4423 ac_ext=c 4424ac_cpp='$CPP $CPPFLAGS' 4425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4427ac_compiler_gnu=$ac_cv_c_compiler_gnu 4428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4429printf %s "checking whether $CC understands -c and -o together... " >&6; } 4430if test ${am_cv_prog_cc_c_o+y} 4431then : 4432 printf %s "(cached) " >&6 4433else case e in #( 4434 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4435/* end confdefs.h. */ 4436 4437int 4438main (void) 4439{ 4440 4441 ; 4442 return 0; 4443} 4444_ACEOF 4445 # Make sure it works both with $CC and with simple cc. 4446 # Following AC_PROG_CC_C_O, we do the test twice because some 4447 # compilers refuse to overwrite an existing .o file with -o, 4448 # though they will create one. 4449 am_cv_prog_cc_c_o=yes 4450 for am_i in 1 2; do 4451 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4452 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4453 ac_status=$? 4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4455 (exit $ac_status); } \ 4456 && test -f conftest2.$ac_objext; then 4457 : OK 4458 else 4459 am_cv_prog_cc_c_o=no 4460 break 4461 fi 4462 done 4463 rm -f core conftest* 4464 unset am_i ;; 4465esac 4466fi 4467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4468printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4469if test "$am_cv_prog_cc_c_o" != yes; then 4470 # Losing compiler, so override with the script. 4471 # FIXME: It is wrong to rewrite CC. 4472 # But if we don't then we get into trouble of one sort or another. 4473 # A longer-term fix would be to have automake use am__CC in this case, 4474 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4475 CC="$am_aux_dir/compile $CC" 4476fi 4477ac_ext=c 4478ac_cpp='$CPP $CPPFLAGS' 4479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4481ac_compiler_gnu=$ac_cv_c_compiler_gnu 4482 4483 4484depcc="$CC" am_compiler_list= 4485 4486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4487printf %s "checking dependency style of $depcc... " >&6; } 4488if test ${am_cv_CC_dependencies_compiler_type+y} 4489then : 4490 printf %s "(cached) " >&6 4491else case e in #( 4492 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4493 # We make a subdir and do the tests there. Otherwise we can end up 4494 # making bogus files that we don't know about and never remove. For 4495 # instance it was reported that on HP-UX the gcc test will end up 4496 # making a dummy file named 'D' -- because '-MD' means "put the output 4497 # in D". 4498 rm -rf conftest.dir 4499 mkdir conftest.dir 4500 # Copy depcomp to subdir because otherwise we won't find it if we're 4501 # using a relative directory. 4502 cp "$am_depcomp" conftest.dir 4503 cd conftest.dir 4504 # We will build objects and dependencies in a subdirectory because 4505 # it helps to detect inapplicable dependency modes. For instance 4506 # both Tru64's cc and ICC support -MD to output dependencies as a 4507 # side effect of compilation, but ICC will put the dependencies in 4508 # the current directory while Tru64 will put them in the object 4509 # directory. 4510 mkdir sub 4511 4512 am_cv_CC_dependencies_compiler_type=none 4513 if test "$am_compiler_list" = ""; then 4514 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4515 fi 4516 am__universal=false 4517 case " $depcc " in #( 4518 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4519 esac 4520 4521 for depmode in $am_compiler_list; do 4522 # Setup a source with many dependencies, because some compilers 4523 # like to wrap large dependency lists on column 80 (with \), and 4524 # we should not choose a depcomp mode which is confused by this. 4525 # 4526 # We need to recreate these files for each test, as the compiler may 4527 # overwrite some of them when testing with obscure command lines. 4528 # This happens at least with the AIX C compiler. 4529 : > sub/conftest.c 4530 for i in 1 2 3 4 5 6; do 4531 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4532 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4533 # Solaris 10 /bin/sh. 4534 echo '/* dummy */' > sub/conftst$i.h 4535 done 4536 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4537 4538 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4539 # mode. It turns out that the SunPro C++ compiler does not properly 4540 # handle '-M -o', and we need to detect this. Also, some Intel 4541 # versions had trouble with output in subdirs. 4542 am__obj=sub/conftest.${OBJEXT-o} 4543 am__minus_obj="-o $am__obj" 4544 case $depmode in 4545 gcc) 4546 # This depmode causes a compiler race in universal mode. 4547 test "$am__universal" = false || continue 4548 ;; 4549 nosideeffect) 4550 # After this tag, mechanisms are not by side-effect, so they'll 4551 # only be used when explicitly requested. 4552 if test "x$enable_dependency_tracking" = xyes; then 4553 continue 4554 else 4555 break 4556 fi 4557 ;; 4558 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4559 # This compiler won't grok '-c -o', but also, the minuso test has 4560 # not run yet. These depmodes are late enough in the game, and 4561 # so weak that their functioning should not be impacted. 4562 am__obj=conftest.${OBJEXT-o} 4563 am__minus_obj= 4564 ;; 4565 none) break ;; 4566 esac 4567 if depmode=$depmode \ 4568 source=sub/conftest.c object=$am__obj \ 4569 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4570 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4571 >/dev/null 2>conftest.err && 4572 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4573 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4574 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4575 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4576 # icc doesn't choke on unknown options, it will just issue warnings 4577 # or remarks (even with -Werror). So we grep stderr for any message 4578 # that says an option was ignored or not supported. 4579 # When given -MP, icc 7.0 and 7.1 complain thusly: 4580 # icc: Command line warning: ignoring option '-M'; no argument required 4581 # The diagnosis changed in icc 8.0: 4582 # icc: Command line remark: option '-MP' not supported 4583 if (grep 'ignoring option' conftest.err || 4584 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4585 am_cv_CC_dependencies_compiler_type=$depmode 4586 break 4587 fi 4588 fi 4589 done 4590 4591 cd .. 4592 rm -rf conftest.dir 4593else 4594 am_cv_CC_dependencies_compiler_type=none 4595fi 4596 ;; 4597esac 4598fi 4599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4600printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4601CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4602 4603 if 4604 test "x$enable_dependency_tracking" != xno \ 4605 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4606 am__fastdepCC_TRUE= 4607 am__fastdepCC_FALSE='#' 4608else 4609 am__fastdepCC_TRUE='#' 4610 am__fastdepCC_FALSE= 4611fi 4612 4613 4614 4615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4616printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4617if test ${ac_cv_c_undeclared_builtin_options+y} 4618then : 4619 printf %s "(cached) " >&6 4620else case e in #( 4621 e) ac_save_CFLAGS=$CFLAGS 4622 ac_cv_c_undeclared_builtin_options='cannot detect' 4623 for ac_arg in '' -fno-builtin; do 4624 CFLAGS="$ac_save_CFLAGS $ac_arg" 4625 # This test program should *not* compile successfully. 4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4627/* end confdefs.h. */ 4628 4629int 4630main (void) 4631{ 4632(void) strchr; 4633 ; 4634 return 0; 4635} 4636_ACEOF 4637if ac_fn_c_try_compile "$LINENO" 4638then : 4639 4640else case e in #( 4641 e) # This test program should compile successfully. 4642 # No library function is consistently available on 4643 # freestanding implementations, so test against a dummy 4644 # declaration. Include always-available headers on the 4645 # off chance that they somehow elicit warnings. 4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4647/* end confdefs.h. */ 4648#include <float.h> 4649#include <limits.h> 4650#include <stdarg.h> 4651#include <stddef.h> 4652extern void ac_decl (int, char *); 4653 4654int 4655main (void) 4656{ 4657(void) ac_decl (0, (char *) 0); 4658 (void) ac_decl; 4659 4660 ; 4661 return 0; 4662} 4663_ACEOF 4664if ac_fn_c_try_compile "$LINENO" 4665then : 4666 if test x"$ac_arg" = x 4667then : 4668 ac_cv_c_undeclared_builtin_options='none needed' 4669else case e in #( 4670 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4671esac 4672fi 4673 break 4674fi 4675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4676esac 4677fi 4678rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4679 done 4680 CFLAGS=$ac_save_CFLAGS 4681 ;; 4682esac 4683fi 4684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4685printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4686 case $ac_cv_c_undeclared_builtin_options in #( 4687 'cannot detect') : 4688 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4689printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4690as_fn_error $? "cannot make $CC report undeclared builtins 4691See 'config.log' for more details" "$LINENO" 5; } ;; #( 4692 'none needed') : 4693 ac_c_undeclared_builtin_options='' ;; #( 4694 *) : 4695 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4696esac 4697 4698ac_header= ac_cache= 4699for ac_item in $ac_header_c_list 4700do 4701 if test $ac_cache; then 4702 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4703 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4704 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4705 fi 4706 ac_header= ac_cache= 4707 elif test $ac_header; then 4708 ac_cache=$ac_item 4709 else 4710 ac_header=$ac_item 4711 fi 4712done 4713 4714 4715 4716 4717 4718 4719 4720 4721if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4722then : 4723 4724printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4725 4726fi 4727 4728 4729 4730 4731ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4732if test "x$ac_cv_have_decl___clang__" = xyes 4733then : 4734 CLANGCC="yes" 4735else case e in #( 4736 e) CLANGCC="no" ;; 4737esac 4738fi 4739ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4740if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4741then : 4742 INTELCC="yes" 4743else case e in #( 4744 e) INTELCC="no" ;; 4745esac 4746fi 4747ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4748if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4749then : 4750 SUNCC="yes" 4751else case e in #( 4752 e) SUNCC="no" ;; 4753esac 4754fi 4755 4756 4757 4758 4759 4760 4761 4762 4763if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4764 if test -n "$ac_tool_prefix"; then 4765 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4766set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4768printf %s "checking for $ac_word... " >&6; } 4769if test ${ac_cv_path_PKG_CONFIG+y} 4770then : 4771 printf %s "(cached) " >&6 4772else case e in #( 4773 e) case $PKG_CONFIG in 4774 [\\/]* | ?:[\\/]*) 4775 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4776 ;; 4777 *) 4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4779for as_dir in $PATH 4780do 4781 IFS=$as_save_IFS 4782 case $as_dir in #((( 4783 '') as_dir=./ ;; 4784 */) ;; 4785 *) as_dir=$as_dir/ ;; 4786 esac 4787 for ac_exec_ext in '' $ac_executable_extensions; do 4788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4789 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4791 break 2 4792 fi 4793done 4794 done 4795IFS=$as_save_IFS 4796 4797 ;; 4798esac ;; 4799esac 4800fi 4801PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4802if test -n "$PKG_CONFIG"; then 4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4804printf "%s\n" "$PKG_CONFIG" >&6; } 4805else 4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4807printf "%s\n" "no" >&6; } 4808fi 4809 4810 4811fi 4812if test -z "$ac_cv_path_PKG_CONFIG"; then 4813 ac_pt_PKG_CONFIG=$PKG_CONFIG 4814 # Extract the first word of "pkg-config", so it can be a program name with args. 4815set dummy pkg-config; ac_word=$2 4816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4817printf %s "checking for $ac_word... " >&6; } 4818if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4819then : 4820 printf %s "(cached) " >&6 4821else case e in #( 4822 e) case $ac_pt_PKG_CONFIG in 4823 [\\/]* | ?:[\\/]*) 4824 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4825 ;; 4826 *) 4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4828for as_dir in $PATH 4829do 4830 IFS=$as_save_IFS 4831 case $as_dir in #((( 4832 '') as_dir=./ ;; 4833 */) ;; 4834 *) as_dir=$as_dir/ ;; 4835 esac 4836 for ac_exec_ext in '' $ac_executable_extensions; do 4837 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4838 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4840 break 2 4841 fi 4842done 4843 done 4844IFS=$as_save_IFS 4845 4846 ;; 4847esac ;; 4848esac 4849fi 4850ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4851if test -n "$ac_pt_PKG_CONFIG"; then 4852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4853printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4854else 4855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4856printf "%s\n" "no" >&6; } 4857fi 4858 4859 if test "x$ac_pt_PKG_CONFIG" = x; then 4860 PKG_CONFIG="" 4861 else 4862 case $cross_compiling:$ac_tool_warned in 4863yes:) 4864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4865printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4866ac_tool_warned=yes ;; 4867esac 4868 PKG_CONFIG=$ac_pt_PKG_CONFIG 4869 fi 4870else 4871 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4872fi 4873 4874fi 4875if test -n "$PKG_CONFIG"; then 4876 _pkg_min_version=0.9.0 4877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4878printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4879 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4881printf "%s\n" "yes" >&6; } 4882 else 4883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4884printf "%s\n" "no" >&6; } 4885 PKG_CONFIG="" 4886 fi 4887fi 4888 4889 4890 # Make sure we can run config.sub. 4891$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4892 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4893 4894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4895printf %s "checking build system type... " >&6; } 4896if test ${ac_cv_build+y} 4897then : 4898 printf %s "(cached) " >&6 4899else case e in #( 4900 e) ac_build_alias=$build_alias 4901test "x$ac_build_alias" = x && 4902 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4903test "x$ac_build_alias" = x && 4904 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4905ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4906 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4907 ;; 4908esac 4909fi 4910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4911printf "%s\n" "$ac_cv_build" >&6; } 4912case $ac_cv_build in 4913*-*-*) ;; 4914*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4915esac 4916build=$ac_cv_build 4917ac_save_IFS=$IFS; IFS='-' 4918set x $ac_cv_build 4919shift 4920build_cpu=$1 4921build_vendor=$2 4922shift; shift 4923# Remember, the first character of IFS is used to create $*, 4924# except with old shells: 4925build_os=$* 4926IFS=$ac_save_IFS 4927case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4928 4929 4930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4931printf %s "checking host system type... " >&6; } 4932if test ${ac_cv_host+y} 4933then : 4934 printf %s "(cached) " >&6 4935else case e in #( 4936 e) if test "x$host_alias" = x; then 4937 ac_cv_host=$ac_cv_build 4938else 4939 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4940 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4941fi 4942 ;; 4943esac 4944fi 4945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4946printf "%s\n" "$ac_cv_host" >&6; } 4947case $ac_cv_host in 4948*-*-*) ;; 4949*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4950esac 4951host=$ac_cv_host 4952ac_save_IFS=$IFS; IFS='-' 4953set x $ac_cv_host 4954shift 4955host_cpu=$1 4956host_vendor=$2 4957shift; shift 4958# Remember, the first character of IFS is used to create $*, 4959# except with old shells: 4960host_os=$* 4961IFS=$ac_save_IFS 4962case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4963 4964 4965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4966printf %s "checking for a sed that does not truncate output... " >&6; } 4967if test ${ac_cv_path_SED+y} 4968then : 4969 printf %s "(cached) " >&6 4970else case e in #( 4971 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4972 for ac_i in 1 2 3 4 5 6 7; do 4973 ac_script="$ac_script$as_nl$ac_script" 4974 done 4975 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4976 { ac_script=; unset ac_script;} 4977 if test -z "$SED"; then 4978 ac_path_SED_found=false 4979 # Loop through the user's path and test for each of PROGNAME-LIST 4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4981for as_dir in $PATH 4982do 4983 IFS=$as_save_IFS 4984 case $as_dir in #((( 4985 '') as_dir=./ ;; 4986 */) ;; 4987 *) as_dir=$as_dir/ ;; 4988 esac 4989 for ac_prog in sed gsed 4990 do 4991 for ac_exec_ext in '' $ac_executable_extensions; do 4992 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4993 as_fn_executable_p "$ac_path_SED" || continue 4994# Check for GNU ac_path_SED and select it if it is found. 4995 # Check for GNU $ac_path_SED 4996case `"$ac_path_SED" --version 2>&1` in #( 4997*GNU*) 4998 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4999#( 5000*) 5001 ac_count=0 5002 printf %s 0123456789 >"conftest.in" 5003 while : 5004 do 5005 cat "conftest.in" "conftest.in" >"conftest.tmp" 5006 mv "conftest.tmp" "conftest.in" 5007 cp "conftest.in" "conftest.nl" 5008 printf "%s\n" '' >> "conftest.nl" 5009 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5010 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5011 as_fn_arith $ac_count + 1 && ac_count=$as_val 5012 if test $ac_count -gt ${ac_path_SED_max-0}; then 5013 # Best one so far, save it but keep looking for a better one 5014 ac_cv_path_SED="$ac_path_SED" 5015 ac_path_SED_max=$ac_count 5016 fi 5017 # 10*(2^10) chars as input seems more than enough 5018 test $ac_count -gt 10 && break 5019 done 5020 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5021esac 5022 5023 $ac_path_SED_found && break 3 5024 done 5025 done 5026 done 5027IFS=$as_save_IFS 5028 if test -z "$ac_cv_path_SED"; then 5029 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5030 fi 5031else 5032 ac_cv_path_SED=$SED 5033fi 5034 ;; 5035esac 5036fi 5037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5038printf "%s\n" "$ac_cv_path_SED" >&6; } 5039 SED="$ac_cv_path_SED" 5040 rm -f conftest.sed 5041 5042 5043 5044 5045 5046 5047# Check whether --enable-selective-werror was given. 5048if test ${enable_selective_werror+y} 5049then : 5050 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5051else case e in #( 5052 e) SELECTIVE_WERROR=yes ;; 5053esac 5054fi 5055 5056 5057 5058 5059 5060# -v is too short to test reliably with XORG_TESTSET_CFLAG 5061if test "x$SUNCC" = "xyes"; then 5062 BASE_CFLAGS="-v" 5063else 5064 BASE_CFLAGS="" 5065fi 5066 5067# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081xorg_testset_save_CFLAGS="$CFLAGS" 5082 5083if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5086printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5087if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5088then : 5089 printf %s "(cached) " >&6 5090else case e in #( 5091 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5092/* end confdefs.h. */ 5093int i; 5094_ACEOF 5095if ac_fn_c_try_compile "$LINENO" 5096then : 5097 xorg_cv_cc_flag_unknown_warning_option=yes 5098else case e in #( 5099 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5100esac 5101fi 5102rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5103esac 5104fi 5105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5106printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5108 CFLAGS="$xorg_testset_save_CFLAGS" 5109fi 5110 5111if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5114 fi 5115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5117printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5118if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5119then : 5120 printf %s "(cached) " >&6 5121else case e in #( 5122 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5123/* end confdefs.h. */ 5124int i; 5125_ACEOF 5126if ac_fn_c_try_compile "$LINENO" 5127then : 5128 xorg_cv_cc_flag_unused_command_line_argument=yes 5129else case e in #( 5130 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5131esac 5132fi 5133rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5134esac 5135fi 5136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5137printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5139 CFLAGS="$xorg_testset_save_CFLAGS" 5140fi 5141 5142found="no" 5143 5144 if test $found = "no" ; then 5145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5147 fi 5148 5149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5151 fi 5152 5153 CFLAGS="$CFLAGS -Wall" 5154 5155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5156printf %s "checking if $CC supports -Wall... " >&6; } 5157 cacheid=xorg_cv_cc_flag__Wall 5158 if eval test \${$cacheid+y} 5159then : 5160 printf %s "(cached) " >&6 5161else case e in #( 5162 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5163/* end confdefs.h. */ 5164int i; 5165int 5166main (void) 5167{ 5168 5169 ; 5170 return 0; 5171} 5172_ACEOF 5173if ac_fn_c_try_link "$LINENO" 5174then : 5175 eval $cacheid=yes 5176else case e in #( 5177 e) eval $cacheid=no ;; 5178esac 5179fi 5180rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5181 conftest$ac_exeext conftest.$ac_ext ;; 5182esac 5183fi 5184 5185 5186 CFLAGS="$xorg_testset_save_CFLAGS" 5187 5188 eval supported=\$$cacheid 5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5190printf "%s\n" "$supported" >&6; } 5191 if test "$supported" = "yes" ; then 5192 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5193 found="yes" 5194 fi 5195 fi 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211xorg_testset_save_CFLAGS="$CFLAGS" 5212 5213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5216printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5217if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5218then : 5219 printf %s "(cached) " >&6 5220else case e in #( 5221 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5222/* end confdefs.h. */ 5223int i; 5224_ACEOF 5225if ac_fn_c_try_compile "$LINENO" 5226then : 5227 xorg_cv_cc_flag_unknown_warning_option=yes 5228else case e in #( 5229 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5230esac 5231fi 5232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5233esac 5234fi 5235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5236printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5238 CFLAGS="$xorg_testset_save_CFLAGS" 5239fi 5240 5241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5244 fi 5245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5247printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5248if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5249then : 5250 printf %s "(cached) " >&6 5251else case e in #( 5252 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5253/* end confdefs.h. */ 5254int i; 5255_ACEOF 5256if ac_fn_c_try_compile "$LINENO" 5257then : 5258 xorg_cv_cc_flag_unused_command_line_argument=yes 5259else case e in #( 5260 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5261esac 5262fi 5263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5264esac 5265fi 5266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5267printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5269 CFLAGS="$xorg_testset_save_CFLAGS" 5270fi 5271 5272found="no" 5273 5274 if test $found = "no" ; then 5275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5277 fi 5278 5279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5281 fi 5282 5283 CFLAGS="$CFLAGS -Wpointer-arith" 5284 5285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5286printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5287 cacheid=xorg_cv_cc_flag__Wpointer_arith 5288 if eval test \${$cacheid+y} 5289then : 5290 printf %s "(cached) " >&6 5291else case e in #( 5292 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5293/* end confdefs.h. */ 5294int i; 5295int 5296main (void) 5297{ 5298 5299 ; 5300 return 0; 5301} 5302_ACEOF 5303if ac_fn_c_try_link "$LINENO" 5304then : 5305 eval $cacheid=yes 5306else case e in #( 5307 e) eval $cacheid=no ;; 5308esac 5309fi 5310rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5311 conftest$ac_exeext conftest.$ac_ext ;; 5312esac 5313fi 5314 5315 5316 CFLAGS="$xorg_testset_save_CFLAGS" 5317 5318 eval supported=\$$cacheid 5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5320printf "%s\n" "$supported" >&6; } 5321 if test "$supported" = "yes" ; then 5322 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5323 found="yes" 5324 fi 5325 fi 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341xorg_testset_save_CFLAGS="$CFLAGS" 5342 5343if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5346printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5347if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5348then : 5349 printf %s "(cached) " >&6 5350else case e in #( 5351 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5352/* end confdefs.h. */ 5353int i; 5354_ACEOF 5355if ac_fn_c_try_compile "$LINENO" 5356then : 5357 xorg_cv_cc_flag_unknown_warning_option=yes 5358else case e in #( 5359 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5360esac 5361fi 5362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5363esac 5364fi 5365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5366printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5367 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5368 CFLAGS="$xorg_testset_save_CFLAGS" 5369fi 5370 5371if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5374 fi 5375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5377printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5378if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5379then : 5380 printf %s "(cached) " >&6 5381else case e in #( 5382 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5383/* end confdefs.h. */ 5384int i; 5385_ACEOF 5386if ac_fn_c_try_compile "$LINENO" 5387then : 5388 xorg_cv_cc_flag_unused_command_line_argument=yes 5389else case e in #( 5390 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5391esac 5392fi 5393rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5394esac 5395fi 5396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5397printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5398 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5399 CFLAGS="$xorg_testset_save_CFLAGS" 5400fi 5401 5402found="no" 5403 5404 if test $found = "no" ; then 5405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5407 fi 5408 5409 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5411 fi 5412 5413 CFLAGS="$CFLAGS -Wmissing-declarations" 5414 5415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5416printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5417 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5418 if eval test \${$cacheid+y} 5419then : 5420 printf %s "(cached) " >&6 5421else case e in #( 5422 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5423/* end confdefs.h. */ 5424int i; 5425int 5426main (void) 5427{ 5428 5429 ; 5430 return 0; 5431} 5432_ACEOF 5433if ac_fn_c_try_link "$LINENO" 5434then : 5435 eval $cacheid=yes 5436else case e in #( 5437 e) eval $cacheid=no ;; 5438esac 5439fi 5440rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5441 conftest$ac_exeext conftest.$ac_ext ;; 5442esac 5443fi 5444 5445 5446 CFLAGS="$xorg_testset_save_CFLAGS" 5447 5448 eval supported=\$$cacheid 5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5450printf "%s\n" "$supported" >&6; } 5451 if test "$supported" = "yes" ; then 5452 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5453 found="yes" 5454 fi 5455 fi 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471xorg_testset_save_CFLAGS="$CFLAGS" 5472 5473if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5476printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5477if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5478then : 5479 printf %s "(cached) " >&6 5480else case e in #( 5481 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5482/* end confdefs.h. */ 5483int i; 5484_ACEOF 5485if ac_fn_c_try_compile "$LINENO" 5486then : 5487 xorg_cv_cc_flag_unknown_warning_option=yes 5488else case e in #( 5489 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5490esac 5491fi 5492rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5493esac 5494fi 5495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5496printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5498 CFLAGS="$xorg_testset_save_CFLAGS" 5499fi 5500 5501if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5504 fi 5505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5507printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5508if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5509then : 5510 printf %s "(cached) " >&6 5511else case e in #( 5512 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5513/* end confdefs.h. */ 5514int i; 5515_ACEOF 5516if ac_fn_c_try_compile "$LINENO" 5517then : 5518 xorg_cv_cc_flag_unused_command_line_argument=yes 5519else case e in #( 5520 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5521esac 5522fi 5523rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5524esac 5525fi 5526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5527printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5529 CFLAGS="$xorg_testset_save_CFLAGS" 5530fi 5531 5532found="no" 5533 5534 if test $found = "no" ; then 5535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5537 fi 5538 5539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5541 fi 5542 5543 CFLAGS="$CFLAGS -Wformat=2" 5544 5545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5546printf %s "checking if $CC supports -Wformat=2... " >&6; } 5547 cacheid=xorg_cv_cc_flag__Wformat_2 5548 if eval test \${$cacheid+y} 5549then : 5550 printf %s "(cached) " >&6 5551else case e in #( 5552 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5553/* end confdefs.h. */ 5554int i; 5555int 5556main (void) 5557{ 5558 5559 ; 5560 return 0; 5561} 5562_ACEOF 5563if ac_fn_c_try_link "$LINENO" 5564then : 5565 eval $cacheid=yes 5566else case e in #( 5567 e) eval $cacheid=no ;; 5568esac 5569fi 5570rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5571 conftest$ac_exeext conftest.$ac_ext ;; 5572esac 5573fi 5574 5575 5576 CFLAGS="$xorg_testset_save_CFLAGS" 5577 5578 eval supported=\$$cacheid 5579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5580printf "%s\n" "$supported" >&6; } 5581 if test "$supported" = "yes" ; then 5582 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5583 found="yes" 5584 fi 5585 fi 5586 5587 if test $found = "no" ; then 5588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5590 fi 5591 5592 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5594 fi 5595 5596 CFLAGS="$CFLAGS -Wformat" 5597 5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5599printf %s "checking if $CC supports -Wformat... " >&6; } 5600 cacheid=xorg_cv_cc_flag__Wformat 5601 if eval test \${$cacheid+y} 5602then : 5603 printf %s "(cached) " >&6 5604else case e in #( 5605 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5606/* end confdefs.h. */ 5607int i; 5608int 5609main (void) 5610{ 5611 5612 ; 5613 return 0; 5614} 5615_ACEOF 5616if ac_fn_c_try_link "$LINENO" 5617then : 5618 eval $cacheid=yes 5619else case e in #( 5620 e) eval $cacheid=no ;; 5621esac 5622fi 5623rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5624 conftest$ac_exeext conftest.$ac_ext ;; 5625esac 5626fi 5627 5628 5629 CFLAGS="$xorg_testset_save_CFLAGS" 5630 5631 eval supported=\$$cacheid 5632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5633printf "%s\n" "$supported" >&6; } 5634 if test "$supported" = "yes" ; then 5635 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5636 found="yes" 5637 fi 5638 fi 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656xorg_testset_save_CFLAGS="$CFLAGS" 5657 5658if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5661printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5662if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5663then : 5664 printf %s "(cached) " >&6 5665else case e in #( 5666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5667/* end confdefs.h. */ 5668int i; 5669_ACEOF 5670if ac_fn_c_try_compile "$LINENO" 5671then : 5672 xorg_cv_cc_flag_unknown_warning_option=yes 5673else case e in #( 5674 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5675esac 5676fi 5677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5678esac 5679fi 5680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5681printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5682 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5683 CFLAGS="$xorg_testset_save_CFLAGS" 5684fi 5685 5686if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5689 fi 5690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5692printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5693if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5694then : 5695 printf %s "(cached) " >&6 5696else case e in #( 5697 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5698/* end confdefs.h. */ 5699int i; 5700_ACEOF 5701if ac_fn_c_try_compile "$LINENO" 5702then : 5703 xorg_cv_cc_flag_unused_command_line_argument=yes 5704else case e in #( 5705 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5706esac 5707fi 5708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5709esac 5710fi 5711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5712printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5714 CFLAGS="$xorg_testset_save_CFLAGS" 5715fi 5716 5717found="no" 5718 5719 if test $found = "no" ; then 5720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5722 fi 5723 5724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5726 fi 5727 5728 CFLAGS="$CFLAGS -Wstrict-prototypes" 5729 5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5731printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5732 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5733 if eval test \${$cacheid+y} 5734then : 5735 printf %s "(cached) " >&6 5736else case e in #( 5737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5738/* end confdefs.h. */ 5739int i; 5740int 5741main (void) 5742{ 5743 5744 ; 5745 return 0; 5746} 5747_ACEOF 5748if ac_fn_c_try_link "$LINENO" 5749then : 5750 eval $cacheid=yes 5751else case e in #( 5752 e) eval $cacheid=no ;; 5753esac 5754fi 5755rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5756 conftest$ac_exeext conftest.$ac_ext ;; 5757esac 5758fi 5759 5760 5761 CFLAGS="$xorg_testset_save_CFLAGS" 5762 5763 eval supported=\$$cacheid 5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5765printf "%s\n" "$supported" >&6; } 5766 if test "$supported" = "yes" ; then 5767 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5768 found="yes" 5769 fi 5770 fi 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786xorg_testset_save_CFLAGS="$CFLAGS" 5787 5788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5791printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5792if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5793then : 5794 printf %s "(cached) " >&6 5795else case e in #( 5796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5797/* end confdefs.h. */ 5798int i; 5799_ACEOF 5800if ac_fn_c_try_compile "$LINENO" 5801then : 5802 xorg_cv_cc_flag_unknown_warning_option=yes 5803else case e in #( 5804 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5805esac 5806fi 5807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5808esac 5809fi 5810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5811printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5812 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5813 CFLAGS="$xorg_testset_save_CFLAGS" 5814fi 5815 5816if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5819 fi 5820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5822printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5823if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5824then : 5825 printf %s "(cached) " >&6 5826else case e in #( 5827 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5828/* end confdefs.h. */ 5829int i; 5830_ACEOF 5831if ac_fn_c_try_compile "$LINENO" 5832then : 5833 xorg_cv_cc_flag_unused_command_line_argument=yes 5834else case e in #( 5835 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5836esac 5837fi 5838rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5839esac 5840fi 5841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5842printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5844 CFLAGS="$xorg_testset_save_CFLAGS" 5845fi 5846 5847found="no" 5848 5849 if test $found = "no" ; then 5850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5852 fi 5853 5854 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5856 fi 5857 5858 CFLAGS="$CFLAGS -Wmissing-prototypes" 5859 5860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5861printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5862 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5863 if eval test \${$cacheid+y} 5864then : 5865 printf %s "(cached) " >&6 5866else case e in #( 5867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5868/* end confdefs.h. */ 5869int i; 5870int 5871main (void) 5872{ 5873 5874 ; 5875 return 0; 5876} 5877_ACEOF 5878if ac_fn_c_try_link "$LINENO" 5879then : 5880 eval $cacheid=yes 5881else case e in #( 5882 e) eval $cacheid=no ;; 5883esac 5884fi 5885rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5886 conftest$ac_exeext conftest.$ac_ext ;; 5887esac 5888fi 5889 5890 5891 CFLAGS="$xorg_testset_save_CFLAGS" 5892 5893 eval supported=\$$cacheid 5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5895printf "%s\n" "$supported" >&6; } 5896 if test "$supported" = "yes" ; then 5897 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5898 found="yes" 5899 fi 5900 fi 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916xorg_testset_save_CFLAGS="$CFLAGS" 5917 5918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5921printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5922if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5923then : 5924 printf %s "(cached) " >&6 5925else case e in #( 5926 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5927/* end confdefs.h. */ 5928int i; 5929_ACEOF 5930if ac_fn_c_try_compile "$LINENO" 5931then : 5932 xorg_cv_cc_flag_unknown_warning_option=yes 5933else case e in #( 5934 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5935esac 5936fi 5937rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5938esac 5939fi 5940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5941printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5943 CFLAGS="$xorg_testset_save_CFLAGS" 5944fi 5945 5946if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5949 fi 5950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5952printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5953if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5954then : 5955 printf %s "(cached) " >&6 5956else case e in #( 5957 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5958/* end confdefs.h. */ 5959int i; 5960_ACEOF 5961if ac_fn_c_try_compile "$LINENO" 5962then : 5963 xorg_cv_cc_flag_unused_command_line_argument=yes 5964else case e in #( 5965 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5966esac 5967fi 5968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5969esac 5970fi 5971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5972printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5974 CFLAGS="$xorg_testset_save_CFLAGS" 5975fi 5976 5977found="no" 5978 5979 if test $found = "no" ; then 5980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5982 fi 5983 5984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5986 fi 5987 5988 CFLAGS="$CFLAGS -Wnested-externs" 5989 5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5991printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5992 cacheid=xorg_cv_cc_flag__Wnested_externs 5993 if eval test \${$cacheid+y} 5994then : 5995 printf %s "(cached) " >&6 5996else case e in #( 5997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5998/* end confdefs.h. */ 5999int i; 6000int 6001main (void) 6002{ 6003 6004 ; 6005 return 0; 6006} 6007_ACEOF 6008if ac_fn_c_try_link "$LINENO" 6009then : 6010 eval $cacheid=yes 6011else case e in #( 6012 e) eval $cacheid=no ;; 6013esac 6014fi 6015rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6016 conftest$ac_exeext conftest.$ac_ext ;; 6017esac 6018fi 6019 6020 6021 CFLAGS="$xorg_testset_save_CFLAGS" 6022 6023 eval supported=\$$cacheid 6024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6025printf "%s\n" "$supported" >&6; } 6026 if test "$supported" = "yes" ; then 6027 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6028 found="yes" 6029 fi 6030 fi 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046xorg_testset_save_CFLAGS="$CFLAGS" 6047 6048if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6051printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6052if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6053then : 6054 printf %s "(cached) " >&6 6055else case e in #( 6056 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6057/* end confdefs.h. */ 6058int i; 6059_ACEOF 6060if ac_fn_c_try_compile "$LINENO" 6061then : 6062 xorg_cv_cc_flag_unknown_warning_option=yes 6063else case e in #( 6064 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6065esac 6066fi 6067rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6068esac 6069fi 6070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6071printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6073 CFLAGS="$xorg_testset_save_CFLAGS" 6074fi 6075 6076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6079 fi 6080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6082printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6083if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6084then : 6085 printf %s "(cached) " >&6 6086else case e in #( 6087 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6088/* end confdefs.h. */ 6089int i; 6090_ACEOF 6091if ac_fn_c_try_compile "$LINENO" 6092then : 6093 xorg_cv_cc_flag_unused_command_line_argument=yes 6094else case e in #( 6095 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6096esac 6097fi 6098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6099esac 6100fi 6101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6102printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6103 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6104 CFLAGS="$xorg_testset_save_CFLAGS" 6105fi 6106 6107found="no" 6108 6109 if test $found = "no" ; then 6110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6112 fi 6113 6114 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6116 fi 6117 6118 CFLAGS="$CFLAGS -Wbad-function-cast" 6119 6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6121printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6122 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6123 if eval test \${$cacheid+y} 6124then : 6125 printf %s "(cached) " >&6 6126else case e in #( 6127 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6128/* end confdefs.h. */ 6129int i; 6130int 6131main (void) 6132{ 6133 6134 ; 6135 return 0; 6136} 6137_ACEOF 6138if ac_fn_c_try_link "$LINENO" 6139then : 6140 eval $cacheid=yes 6141else case e in #( 6142 e) eval $cacheid=no ;; 6143esac 6144fi 6145rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6146 conftest$ac_exeext conftest.$ac_ext ;; 6147esac 6148fi 6149 6150 6151 CFLAGS="$xorg_testset_save_CFLAGS" 6152 6153 eval supported=\$$cacheid 6154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6155printf "%s\n" "$supported" >&6; } 6156 if test "$supported" = "yes" ; then 6157 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6158 found="yes" 6159 fi 6160 fi 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176xorg_testset_save_CFLAGS="$CFLAGS" 6177 6178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6181printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6182if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6183then : 6184 printf %s "(cached) " >&6 6185else case e in #( 6186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6187/* end confdefs.h. */ 6188int i; 6189_ACEOF 6190if ac_fn_c_try_compile "$LINENO" 6191then : 6192 xorg_cv_cc_flag_unknown_warning_option=yes 6193else case e in #( 6194 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6195esac 6196fi 6197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6198esac 6199fi 6200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6201printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6203 CFLAGS="$xorg_testset_save_CFLAGS" 6204fi 6205 6206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6209 fi 6210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6212printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6213if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6214then : 6215 printf %s "(cached) " >&6 6216else case e in #( 6217 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6218/* end confdefs.h. */ 6219int i; 6220_ACEOF 6221if ac_fn_c_try_compile "$LINENO" 6222then : 6223 xorg_cv_cc_flag_unused_command_line_argument=yes 6224else case e in #( 6225 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6226esac 6227fi 6228rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6229esac 6230fi 6231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6232printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6233 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6234 CFLAGS="$xorg_testset_save_CFLAGS" 6235fi 6236 6237found="no" 6238 6239 if test $found = "no" ; then 6240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6242 fi 6243 6244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6246 fi 6247 6248 CFLAGS="$CFLAGS -Wold-style-definition" 6249 6250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6251printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6252 cacheid=xorg_cv_cc_flag__Wold_style_definition 6253 if eval test \${$cacheid+y} 6254then : 6255 printf %s "(cached) " >&6 6256else case e in #( 6257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6258/* end confdefs.h. */ 6259int i; 6260int 6261main (void) 6262{ 6263 6264 ; 6265 return 0; 6266} 6267_ACEOF 6268if ac_fn_c_try_link "$LINENO" 6269then : 6270 eval $cacheid=yes 6271else case e in #( 6272 e) eval $cacheid=no ;; 6273esac 6274fi 6275rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6276 conftest$ac_exeext conftest.$ac_ext ;; 6277esac 6278fi 6279 6280 6281 CFLAGS="$xorg_testset_save_CFLAGS" 6282 6283 eval supported=\$$cacheid 6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6285printf "%s\n" "$supported" >&6; } 6286 if test "$supported" = "yes" ; then 6287 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6288 found="yes" 6289 fi 6290 fi 6291 6292 if test $found = "no" ; then 6293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6295 fi 6296 6297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6299 fi 6300 6301 CFLAGS="$CFLAGS -fd" 6302 6303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6304printf %s "checking if $CC supports -fd... " >&6; } 6305 cacheid=xorg_cv_cc_flag__fd 6306 if eval test \${$cacheid+y} 6307then : 6308 printf %s "(cached) " >&6 6309else case e in #( 6310 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6311/* end confdefs.h. */ 6312int i; 6313int 6314main (void) 6315{ 6316 6317 ; 6318 return 0; 6319} 6320_ACEOF 6321if ac_fn_c_try_link "$LINENO" 6322then : 6323 eval $cacheid=yes 6324else case e in #( 6325 e) eval $cacheid=no ;; 6326esac 6327fi 6328rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6329 conftest$ac_exeext conftest.$ac_ext ;; 6330esac 6331fi 6332 6333 6334 CFLAGS="$xorg_testset_save_CFLAGS" 6335 6336 eval supported=\$$cacheid 6337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6338printf "%s\n" "$supported" >&6; } 6339 if test "$supported" = "yes" ; then 6340 BASE_CFLAGS="$BASE_CFLAGS -fd" 6341 found="yes" 6342 fi 6343 fi 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359xorg_testset_save_CFLAGS="$CFLAGS" 6360 6361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6364printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6365if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6366then : 6367 printf %s "(cached) " >&6 6368else case e in #( 6369 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6370/* end confdefs.h. */ 6371int i; 6372_ACEOF 6373if ac_fn_c_try_compile "$LINENO" 6374then : 6375 xorg_cv_cc_flag_unknown_warning_option=yes 6376else case e in #( 6377 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6378esac 6379fi 6380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6381esac 6382fi 6383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6384printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6385 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6386 CFLAGS="$xorg_testset_save_CFLAGS" 6387fi 6388 6389if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6392 fi 6393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6395printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6396if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6397then : 6398 printf %s "(cached) " >&6 6399else case e in #( 6400 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6401/* end confdefs.h. */ 6402int i; 6403_ACEOF 6404if ac_fn_c_try_compile "$LINENO" 6405then : 6406 xorg_cv_cc_flag_unused_command_line_argument=yes 6407else case e in #( 6408 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6409esac 6410fi 6411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6412esac 6413fi 6414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6415printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6416 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6417 CFLAGS="$xorg_testset_save_CFLAGS" 6418fi 6419 6420found="no" 6421 6422 if test $found = "no" ; then 6423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6425 fi 6426 6427 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6429 fi 6430 6431 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6432 6433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6434printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6435 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6436 if eval test \${$cacheid+y} 6437then : 6438 printf %s "(cached) " >&6 6439else case e in #( 6440 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6441/* end confdefs.h. */ 6442int i; 6443int 6444main (void) 6445{ 6446 6447 ; 6448 return 0; 6449} 6450_ACEOF 6451if ac_fn_c_try_link "$LINENO" 6452then : 6453 eval $cacheid=yes 6454else case e in #( 6455 e) eval $cacheid=no ;; 6456esac 6457fi 6458rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6459 conftest$ac_exeext conftest.$ac_ext ;; 6460esac 6461fi 6462 6463 6464 CFLAGS="$xorg_testset_save_CFLAGS" 6465 6466 eval supported=\$$cacheid 6467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6468printf "%s\n" "$supported" >&6; } 6469 if test "$supported" = "yes" ; then 6470 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6471 found="yes" 6472 fi 6473 fi 6474 6475 6476 6477 6478 6479# This chunk adds additional warnings that could catch undesired effects. 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493xorg_testset_save_CFLAGS="$CFLAGS" 6494 6495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6498printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6499if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6500then : 6501 printf %s "(cached) " >&6 6502else case e in #( 6503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6504/* end confdefs.h. */ 6505int i; 6506_ACEOF 6507if ac_fn_c_try_compile "$LINENO" 6508then : 6509 xorg_cv_cc_flag_unknown_warning_option=yes 6510else case e in #( 6511 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6512esac 6513fi 6514rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6515esac 6516fi 6517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6518printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6519 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6520 CFLAGS="$xorg_testset_save_CFLAGS" 6521fi 6522 6523if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6526 fi 6527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6529printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6530if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6531then : 6532 printf %s "(cached) " >&6 6533else case e in #( 6534 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6535/* end confdefs.h. */ 6536int i; 6537_ACEOF 6538if ac_fn_c_try_compile "$LINENO" 6539then : 6540 xorg_cv_cc_flag_unused_command_line_argument=yes 6541else case e in #( 6542 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6543esac 6544fi 6545rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6546esac 6547fi 6548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6549printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6551 CFLAGS="$xorg_testset_save_CFLAGS" 6552fi 6553 6554found="no" 6555 6556 if test $found = "no" ; then 6557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6559 fi 6560 6561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6563 fi 6564 6565 CFLAGS="$CFLAGS -Wunused" 6566 6567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6568printf %s "checking if $CC supports -Wunused... " >&6; } 6569 cacheid=xorg_cv_cc_flag__Wunused 6570 if eval test \${$cacheid+y} 6571then : 6572 printf %s "(cached) " >&6 6573else case e in #( 6574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6575/* end confdefs.h. */ 6576int i; 6577int 6578main (void) 6579{ 6580 6581 ; 6582 return 0; 6583} 6584_ACEOF 6585if ac_fn_c_try_link "$LINENO" 6586then : 6587 eval $cacheid=yes 6588else case e in #( 6589 e) eval $cacheid=no ;; 6590esac 6591fi 6592rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6593 conftest$ac_exeext conftest.$ac_ext ;; 6594esac 6595fi 6596 6597 6598 CFLAGS="$xorg_testset_save_CFLAGS" 6599 6600 eval supported=\$$cacheid 6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6602printf "%s\n" "$supported" >&6; } 6603 if test "$supported" = "yes" ; then 6604 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6605 found="yes" 6606 fi 6607 fi 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623xorg_testset_save_CFLAGS="$CFLAGS" 6624 6625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6628printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6629if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6630then : 6631 printf %s "(cached) " >&6 6632else case e in #( 6633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6634/* end confdefs.h. */ 6635int i; 6636_ACEOF 6637if ac_fn_c_try_compile "$LINENO" 6638then : 6639 xorg_cv_cc_flag_unknown_warning_option=yes 6640else case e in #( 6641 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6642esac 6643fi 6644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6645esac 6646fi 6647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6648printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6650 CFLAGS="$xorg_testset_save_CFLAGS" 6651fi 6652 6653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6656 fi 6657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6659printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6660if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6661then : 6662 printf %s "(cached) " >&6 6663else case e in #( 6664 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6665/* end confdefs.h. */ 6666int i; 6667_ACEOF 6668if ac_fn_c_try_compile "$LINENO" 6669then : 6670 xorg_cv_cc_flag_unused_command_line_argument=yes 6671else case e in #( 6672 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6673esac 6674fi 6675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6676esac 6677fi 6678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6679printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6680 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6681 CFLAGS="$xorg_testset_save_CFLAGS" 6682fi 6683 6684found="no" 6685 6686 if test $found = "no" ; then 6687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6689 fi 6690 6691 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6693 fi 6694 6695 CFLAGS="$CFLAGS -Wuninitialized" 6696 6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6698printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6699 cacheid=xorg_cv_cc_flag__Wuninitialized 6700 if eval test \${$cacheid+y} 6701then : 6702 printf %s "(cached) " >&6 6703else case e in #( 6704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6705/* end confdefs.h. */ 6706int i; 6707int 6708main (void) 6709{ 6710 6711 ; 6712 return 0; 6713} 6714_ACEOF 6715if ac_fn_c_try_link "$LINENO" 6716then : 6717 eval $cacheid=yes 6718else case e in #( 6719 e) eval $cacheid=no ;; 6720esac 6721fi 6722rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6723 conftest$ac_exeext conftest.$ac_ext ;; 6724esac 6725fi 6726 6727 6728 CFLAGS="$xorg_testset_save_CFLAGS" 6729 6730 eval supported=\$$cacheid 6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6732printf "%s\n" "$supported" >&6; } 6733 if test "$supported" = "yes" ; then 6734 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6735 found="yes" 6736 fi 6737 fi 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753xorg_testset_save_CFLAGS="$CFLAGS" 6754 6755if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6758printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6759if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6760then : 6761 printf %s "(cached) " >&6 6762else case e in #( 6763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6764/* end confdefs.h. */ 6765int i; 6766_ACEOF 6767if ac_fn_c_try_compile "$LINENO" 6768then : 6769 xorg_cv_cc_flag_unknown_warning_option=yes 6770else case e in #( 6771 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6772esac 6773fi 6774rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6775esac 6776fi 6777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6778printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6779 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6780 CFLAGS="$xorg_testset_save_CFLAGS" 6781fi 6782 6783if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6786 fi 6787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6789printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6790if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6791then : 6792 printf %s "(cached) " >&6 6793else case e in #( 6794 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6795/* end confdefs.h. */ 6796int i; 6797_ACEOF 6798if ac_fn_c_try_compile "$LINENO" 6799then : 6800 xorg_cv_cc_flag_unused_command_line_argument=yes 6801else case e in #( 6802 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6803esac 6804fi 6805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6806esac 6807fi 6808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6809printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6811 CFLAGS="$xorg_testset_save_CFLAGS" 6812fi 6813 6814found="no" 6815 6816 if test $found = "no" ; then 6817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6819 fi 6820 6821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6823 fi 6824 6825 CFLAGS="$CFLAGS -Wshadow" 6826 6827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6828printf %s "checking if $CC supports -Wshadow... " >&6; } 6829 cacheid=xorg_cv_cc_flag__Wshadow 6830 if eval test \${$cacheid+y} 6831then : 6832 printf %s "(cached) " >&6 6833else case e in #( 6834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6835/* end confdefs.h. */ 6836int i; 6837int 6838main (void) 6839{ 6840 6841 ; 6842 return 0; 6843} 6844_ACEOF 6845if ac_fn_c_try_link "$LINENO" 6846then : 6847 eval $cacheid=yes 6848else case e in #( 6849 e) eval $cacheid=no ;; 6850esac 6851fi 6852rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6853 conftest$ac_exeext conftest.$ac_ext ;; 6854esac 6855fi 6856 6857 6858 CFLAGS="$xorg_testset_save_CFLAGS" 6859 6860 eval supported=\$$cacheid 6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6862printf "%s\n" "$supported" >&6; } 6863 if test "$supported" = "yes" ; then 6864 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6865 found="yes" 6866 fi 6867 fi 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883xorg_testset_save_CFLAGS="$CFLAGS" 6884 6885if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6888printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6889if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6890then : 6891 printf %s "(cached) " >&6 6892else case e in #( 6893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6894/* end confdefs.h. */ 6895int i; 6896_ACEOF 6897if ac_fn_c_try_compile "$LINENO" 6898then : 6899 xorg_cv_cc_flag_unknown_warning_option=yes 6900else case e in #( 6901 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6902esac 6903fi 6904rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6905esac 6906fi 6907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6908printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6909 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6910 CFLAGS="$xorg_testset_save_CFLAGS" 6911fi 6912 6913if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6916 fi 6917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6919printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6920if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6921then : 6922 printf %s "(cached) " >&6 6923else case e in #( 6924 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6925/* end confdefs.h. */ 6926int i; 6927_ACEOF 6928if ac_fn_c_try_compile "$LINENO" 6929then : 6930 xorg_cv_cc_flag_unused_command_line_argument=yes 6931else case e in #( 6932 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6933esac 6934fi 6935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6936esac 6937fi 6938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6939printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6941 CFLAGS="$xorg_testset_save_CFLAGS" 6942fi 6943 6944found="no" 6945 6946 if test $found = "no" ; then 6947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6949 fi 6950 6951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6953 fi 6954 6955 CFLAGS="$CFLAGS -Wmissing-noreturn" 6956 6957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6958printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6959 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6960 if eval test \${$cacheid+y} 6961then : 6962 printf %s "(cached) " >&6 6963else case e in #( 6964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6965/* end confdefs.h. */ 6966int i; 6967int 6968main (void) 6969{ 6970 6971 ; 6972 return 0; 6973} 6974_ACEOF 6975if ac_fn_c_try_link "$LINENO" 6976then : 6977 eval $cacheid=yes 6978else case e in #( 6979 e) eval $cacheid=no ;; 6980esac 6981fi 6982rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6983 conftest$ac_exeext conftest.$ac_ext ;; 6984esac 6985fi 6986 6987 6988 CFLAGS="$xorg_testset_save_CFLAGS" 6989 6990 eval supported=\$$cacheid 6991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6992printf "%s\n" "$supported" >&6; } 6993 if test "$supported" = "yes" ; then 6994 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6995 found="yes" 6996 fi 6997 fi 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013xorg_testset_save_CFLAGS="$CFLAGS" 7014 7015if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7018printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7019if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7020then : 7021 printf %s "(cached) " >&6 7022else case e in #( 7023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7024/* end confdefs.h. */ 7025int i; 7026_ACEOF 7027if ac_fn_c_try_compile "$LINENO" 7028then : 7029 xorg_cv_cc_flag_unknown_warning_option=yes 7030else case e in #( 7031 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7032esac 7033fi 7034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7035esac 7036fi 7037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7038printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7040 CFLAGS="$xorg_testset_save_CFLAGS" 7041fi 7042 7043if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7046 fi 7047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7049printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7050if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7051then : 7052 printf %s "(cached) " >&6 7053else case e in #( 7054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7055/* end confdefs.h. */ 7056int i; 7057_ACEOF 7058if ac_fn_c_try_compile "$LINENO" 7059then : 7060 xorg_cv_cc_flag_unused_command_line_argument=yes 7061else case e in #( 7062 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7063esac 7064fi 7065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7066esac 7067fi 7068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7069printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7071 CFLAGS="$xorg_testset_save_CFLAGS" 7072fi 7073 7074found="no" 7075 7076 if test $found = "no" ; then 7077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7079 fi 7080 7081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7083 fi 7084 7085 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7086 7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7088printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7089 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7090 if eval test \${$cacheid+y} 7091then : 7092 printf %s "(cached) " >&6 7093else case e in #( 7094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7095/* end confdefs.h. */ 7096int i; 7097int 7098main (void) 7099{ 7100 7101 ; 7102 return 0; 7103} 7104_ACEOF 7105if ac_fn_c_try_link "$LINENO" 7106then : 7107 eval $cacheid=yes 7108else case e in #( 7109 e) eval $cacheid=no ;; 7110esac 7111fi 7112rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7113 conftest$ac_exeext conftest.$ac_ext ;; 7114esac 7115fi 7116 7117 7118 CFLAGS="$xorg_testset_save_CFLAGS" 7119 7120 eval supported=\$$cacheid 7121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7122printf "%s\n" "$supported" >&6; } 7123 if test "$supported" = "yes" ; then 7124 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7125 found="yes" 7126 fi 7127 fi 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143xorg_testset_save_CFLAGS="$CFLAGS" 7144 7145if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7148printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7149if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7150then : 7151 printf %s "(cached) " >&6 7152else case e in #( 7153 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7154/* end confdefs.h. */ 7155int i; 7156_ACEOF 7157if ac_fn_c_try_compile "$LINENO" 7158then : 7159 xorg_cv_cc_flag_unknown_warning_option=yes 7160else case e in #( 7161 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7162esac 7163fi 7164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7165esac 7166fi 7167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7168printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7170 CFLAGS="$xorg_testset_save_CFLAGS" 7171fi 7172 7173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7176 fi 7177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7179printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7180if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7181then : 7182 printf %s "(cached) " >&6 7183else case e in #( 7184 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7185/* end confdefs.h. */ 7186int i; 7187_ACEOF 7188if ac_fn_c_try_compile "$LINENO" 7189then : 7190 xorg_cv_cc_flag_unused_command_line_argument=yes 7191else case e in #( 7192 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7193esac 7194fi 7195rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7196esac 7197fi 7198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7199printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7201 CFLAGS="$xorg_testset_save_CFLAGS" 7202fi 7203 7204found="no" 7205 7206 if test $found = "no" ; then 7207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7209 fi 7210 7211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7213 fi 7214 7215 CFLAGS="$CFLAGS -Wredundant-decls" 7216 7217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7218printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7219 cacheid=xorg_cv_cc_flag__Wredundant_decls 7220 if eval test \${$cacheid+y} 7221then : 7222 printf %s "(cached) " >&6 7223else case e in #( 7224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7225/* end confdefs.h. */ 7226int i; 7227int 7228main (void) 7229{ 7230 7231 ; 7232 return 0; 7233} 7234_ACEOF 7235if ac_fn_c_try_link "$LINENO" 7236then : 7237 eval $cacheid=yes 7238else case e in #( 7239 e) eval $cacheid=no ;; 7240esac 7241fi 7242rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7243 conftest$ac_exeext conftest.$ac_ext ;; 7244esac 7245fi 7246 7247 7248 CFLAGS="$xorg_testset_save_CFLAGS" 7249 7250 eval supported=\$$cacheid 7251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7252printf "%s\n" "$supported" >&6; } 7253 if test "$supported" = "yes" ; then 7254 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7255 found="yes" 7256 fi 7257 fi 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273xorg_testset_save_CFLAGS="$CFLAGS" 7274 7275if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7278printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7279if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7280then : 7281 printf %s "(cached) " >&6 7282else case e in #( 7283 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7284/* end confdefs.h. */ 7285int i; 7286_ACEOF 7287if ac_fn_c_try_compile "$LINENO" 7288then : 7289 xorg_cv_cc_flag_unknown_warning_option=yes 7290else case e in #( 7291 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7292esac 7293fi 7294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7295esac 7296fi 7297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7298printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7300 CFLAGS="$xorg_testset_save_CFLAGS" 7301fi 7302 7303if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7306 fi 7307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7309printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7310if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7311then : 7312 printf %s "(cached) " >&6 7313else case e in #( 7314 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7315/* end confdefs.h. */ 7316int i; 7317_ACEOF 7318if ac_fn_c_try_compile "$LINENO" 7319then : 7320 xorg_cv_cc_flag_unused_command_line_argument=yes 7321else case e in #( 7322 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7323esac 7324fi 7325rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7326esac 7327fi 7328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7329printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7330 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7331 CFLAGS="$xorg_testset_save_CFLAGS" 7332fi 7333 7334found="no" 7335 7336 if test $found = "no" ; then 7337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7339 fi 7340 7341 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7343 fi 7344 7345 CFLAGS="$CFLAGS -Wlogical-op" 7346 7347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7348printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7349 cacheid=xorg_cv_cc_flag__Wlogical_op 7350 if eval test \${$cacheid+y} 7351then : 7352 printf %s "(cached) " >&6 7353else case e in #( 7354 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7355/* end confdefs.h. */ 7356int i; 7357int 7358main (void) 7359{ 7360 7361 ; 7362 return 0; 7363} 7364_ACEOF 7365if ac_fn_c_try_link "$LINENO" 7366then : 7367 eval $cacheid=yes 7368else case e in #( 7369 e) eval $cacheid=no ;; 7370esac 7371fi 7372rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7373 conftest$ac_exeext conftest.$ac_ext ;; 7374esac 7375fi 7376 7377 7378 CFLAGS="$xorg_testset_save_CFLAGS" 7379 7380 eval supported=\$$cacheid 7381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7382printf "%s\n" "$supported" >&6; } 7383 if test "$supported" = "yes" ; then 7384 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7385 found="yes" 7386 fi 7387 fi 7388 7389 7390 7391# These are currently disabled because they are noisy. They will be enabled 7392# in the future once the codebase is sufficiently modernized to silence 7393# them. For now, I don't want them to drown out the other warnings. 7394# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7395# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7396# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7397 7398# Turn some warnings into errors, so we don't accidentally get successful builds 7399# when there are problems that should be fixed. 7400 7401if test "x$SELECTIVE_WERROR" = "xyes" ; then 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415xorg_testset_save_CFLAGS="$CFLAGS" 7416 7417if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7420printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7421if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7422then : 7423 printf %s "(cached) " >&6 7424else case e in #( 7425 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7426/* end confdefs.h. */ 7427int i; 7428_ACEOF 7429if ac_fn_c_try_compile "$LINENO" 7430then : 7431 xorg_cv_cc_flag_unknown_warning_option=yes 7432else case e in #( 7433 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7434esac 7435fi 7436rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7437esac 7438fi 7439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7440printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7441 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7442 CFLAGS="$xorg_testset_save_CFLAGS" 7443fi 7444 7445if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7448 fi 7449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7451printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7452if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7453then : 7454 printf %s "(cached) " >&6 7455else case e in #( 7456 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7457/* end confdefs.h. */ 7458int i; 7459_ACEOF 7460if ac_fn_c_try_compile "$LINENO" 7461then : 7462 xorg_cv_cc_flag_unused_command_line_argument=yes 7463else case e in #( 7464 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7465esac 7466fi 7467rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7468esac 7469fi 7470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7471printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7472 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7473 CFLAGS="$xorg_testset_save_CFLAGS" 7474fi 7475 7476found="no" 7477 7478 if test $found = "no" ; then 7479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7481 fi 7482 7483 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7485 fi 7486 7487 CFLAGS="$CFLAGS -Werror=implicit" 7488 7489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7490printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7491 cacheid=xorg_cv_cc_flag__Werror_implicit 7492 if eval test \${$cacheid+y} 7493then : 7494 printf %s "(cached) " >&6 7495else case e in #( 7496 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7497/* end confdefs.h. */ 7498int i; 7499int 7500main (void) 7501{ 7502 7503 ; 7504 return 0; 7505} 7506_ACEOF 7507if ac_fn_c_try_link "$LINENO" 7508then : 7509 eval $cacheid=yes 7510else case e in #( 7511 e) eval $cacheid=no ;; 7512esac 7513fi 7514rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7515 conftest$ac_exeext conftest.$ac_ext ;; 7516esac 7517fi 7518 7519 7520 CFLAGS="$xorg_testset_save_CFLAGS" 7521 7522 eval supported=\$$cacheid 7523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7524printf "%s\n" "$supported" >&6; } 7525 if test "$supported" = "yes" ; then 7526 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7527 found="yes" 7528 fi 7529 fi 7530 7531 if test $found = "no" ; then 7532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7534 fi 7535 7536 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7538 fi 7539 7540 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7541 7542 { 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 7543printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7544 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7545 if eval test \${$cacheid+y} 7546then : 7547 printf %s "(cached) " >&6 7548else case e in #( 7549 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7550/* end confdefs.h. */ 7551int i; 7552int 7553main (void) 7554{ 7555 7556 ; 7557 return 0; 7558} 7559_ACEOF 7560if ac_fn_c_try_link "$LINENO" 7561then : 7562 eval $cacheid=yes 7563else case e in #( 7564 e) eval $cacheid=no ;; 7565esac 7566fi 7567rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7568 conftest$ac_exeext conftest.$ac_ext ;; 7569esac 7570fi 7571 7572 7573 CFLAGS="$xorg_testset_save_CFLAGS" 7574 7575 eval supported=\$$cacheid 7576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7577printf "%s\n" "$supported" >&6; } 7578 if test "$supported" = "yes" ; then 7579 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7580 found="yes" 7581 fi 7582 fi 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598xorg_testset_save_CFLAGS="$CFLAGS" 7599 7600if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7603printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7604if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7605then : 7606 printf %s "(cached) " >&6 7607else case e in #( 7608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7609/* end confdefs.h. */ 7610int i; 7611_ACEOF 7612if ac_fn_c_try_compile "$LINENO" 7613then : 7614 xorg_cv_cc_flag_unknown_warning_option=yes 7615else case e in #( 7616 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7617esac 7618fi 7619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7620esac 7621fi 7622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7623printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7625 CFLAGS="$xorg_testset_save_CFLAGS" 7626fi 7627 7628if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7631 fi 7632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7634printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7635if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7636then : 7637 printf %s "(cached) " >&6 7638else case e in #( 7639 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7640/* end confdefs.h. */ 7641int i; 7642_ACEOF 7643if ac_fn_c_try_compile "$LINENO" 7644then : 7645 xorg_cv_cc_flag_unused_command_line_argument=yes 7646else case e in #( 7647 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7648esac 7649fi 7650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7651esac 7652fi 7653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7654printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7655 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7656 CFLAGS="$xorg_testset_save_CFLAGS" 7657fi 7658 7659found="no" 7660 7661 if test $found = "no" ; then 7662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7664 fi 7665 7666 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7668 fi 7669 7670 CFLAGS="$CFLAGS -Werror=nonnull" 7671 7672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7673printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7674 cacheid=xorg_cv_cc_flag__Werror_nonnull 7675 if eval test \${$cacheid+y} 7676then : 7677 printf %s "(cached) " >&6 7678else case e in #( 7679 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7680/* end confdefs.h. */ 7681int i; 7682int 7683main (void) 7684{ 7685 7686 ; 7687 return 0; 7688} 7689_ACEOF 7690if ac_fn_c_try_link "$LINENO" 7691then : 7692 eval $cacheid=yes 7693else case e in #( 7694 e) eval $cacheid=no ;; 7695esac 7696fi 7697rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7698 conftest$ac_exeext conftest.$ac_ext ;; 7699esac 7700fi 7701 7702 7703 CFLAGS="$xorg_testset_save_CFLAGS" 7704 7705 eval supported=\$$cacheid 7706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7707printf "%s\n" "$supported" >&6; } 7708 if test "$supported" = "yes" ; then 7709 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7710 found="yes" 7711 fi 7712 fi 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728xorg_testset_save_CFLAGS="$CFLAGS" 7729 7730if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7733printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7734if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7735then : 7736 printf %s "(cached) " >&6 7737else case e in #( 7738 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7739/* end confdefs.h. */ 7740int i; 7741_ACEOF 7742if ac_fn_c_try_compile "$LINENO" 7743then : 7744 xorg_cv_cc_flag_unknown_warning_option=yes 7745else case e in #( 7746 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7747esac 7748fi 7749rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7750esac 7751fi 7752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7753printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7754 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7755 CFLAGS="$xorg_testset_save_CFLAGS" 7756fi 7757 7758if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7761 fi 7762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7764printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7765if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7766then : 7767 printf %s "(cached) " >&6 7768else case e in #( 7769 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7770/* end confdefs.h. */ 7771int i; 7772_ACEOF 7773if ac_fn_c_try_compile "$LINENO" 7774then : 7775 xorg_cv_cc_flag_unused_command_line_argument=yes 7776else case e in #( 7777 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7778esac 7779fi 7780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7781esac 7782fi 7783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7784printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7785 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7786 CFLAGS="$xorg_testset_save_CFLAGS" 7787fi 7788 7789found="no" 7790 7791 if test $found = "no" ; then 7792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7794 fi 7795 7796 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7798 fi 7799 7800 CFLAGS="$CFLAGS -Werror=init-self" 7801 7802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7803printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7804 cacheid=xorg_cv_cc_flag__Werror_init_self 7805 if eval test \${$cacheid+y} 7806then : 7807 printf %s "(cached) " >&6 7808else case e in #( 7809 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7810/* end confdefs.h. */ 7811int i; 7812int 7813main (void) 7814{ 7815 7816 ; 7817 return 0; 7818} 7819_ACEOF 7820if ac_fn_c_try_link "$LINENO" 7821then : 7822 eval $cacheid=yes 7823else case e in #( 7824 e) eval $cacheid=no ;; 7825esac 7826fi 7827rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7828 conftest$ac_exeext conftest.$ac_ext ;; 7829esac 7830fi 7831 7832 7833 CFLAGS="$xorg_testset_save_CFLAGS" 7834 7835 eval supported=\$$cacheid 7836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7837printf "%s\n" "$supported" >&6; } 7838 if test "$supported" = "yes" ; then 7839 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7840 found="yes" 7841 fi 7842 fi 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858xorg_testset_save_CFLAGS="$CFLAGS" 7859 7860if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7863printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7864if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7865then : 7866 printf %s "(cached) " >&6 7867else case e in #( 7868 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7869/* end confdefs.h. */ 7870int i; 7871_ACEOF 7872if ac_fn_c_try_compile "$LINENO" 7873then : 7874 xorg_cv_cc_flag_unknown_warning_option=yes 7875else case e in #( 7876 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7877esac 7878fi 7879rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7880esac 7881fi 7882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7883printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7884 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7885 CFLAGS="$xorg_testset_save_CFLAGS" 7886fi 7887 7888if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7891 fi 7892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7894printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7895if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7896then : 7897 printf %s "(cached) " >&6 7898else case e in #( 7899 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7900/* end confdefs.h. */ 7901int i; 7902_ACEOF 7903if ac_fn_c_try_compile "$LINENO" 7904then : 7905 xorg_cv_cc_flag_unused_command_line_argument=yes 7906else case e in #( 7907 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7908esac 7909fi 7910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7911esac 7912fi 7913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7914printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7915 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7916 CFLAGS="$xorg_testset_save_CFLAGS" 7917fi 7918 7919found="no" 7920 7921 if test $found = "no" ; then 7922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7924 fi 7925 7926 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7928 fi 7929 7930 CFLAGS="$CFLAGS -Werror=main" 7931 7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7933printf %s "checking if $CC supports -Werror=main... " >&6; } 7934 cacheid=xorg_cv_cc_flag__Werror_main 7935 if eval test \${$cacheid+y} 7936then : 7937 printf %s "(cached) " >&6 7938else case e in #( 7939 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7940/* end confdefs.h. */ 7941int i; 7942int 7943main (void) 7944{ 7945 7946 ; 7947 return 0; 7948} 7949_ACEOF 7950if ac_fn_c_try_link "$LINENO" 7951then : 7952 eval $cacheid=yes 7953else case e in #( 7954 e) eval $cacheid=no ;; 7955esac 7956fi 7957rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7958 conftest$ac_exeext conftest.$ac_ext ;; 7959esac 7960fi 7961 7962 7963 CFLAGS="$xorg_testset_save_CFLAGS" 7964 7965 eval supported=\$$cacheid 7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7967printf "%s\n" "$supported" >&6; } 7968 if test "$supported" = "yes" ; then 7969 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7970 found="yes" 7971 fi 7972 fi 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988xorg_testset_save_CFLAGS="$CFLAGS" 7989 7990if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7993printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7994if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7995then : 7996 printf %s "(cached) " >&6 7997else case e in #( 7998 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7999/* end confdefs.h. */ 8000int i; 8001_ACEOF 8002if ac_fn_c_try_compile "$LINENO" 8003then : 8004 xorg_cv_cc_flag_unknown_warning_option=yes 8005else case e in #( 8006 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8007esac 8008fi 8009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8010esac 8011fi 8012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8013printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8015 CFLAGS="$xorg_testset_save_CFLAGS" 8016fi 8017 8018if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8021 fi 8022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8024printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8025if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8026then : 8027 printf %s "(cached) " >&6 8028else case e in #( 8029 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8030/* end confdefs.h. */ 8031int i; 8032_ACEOF 8033if ac_fn_c_try_compile "$LINENO" 8034then : 8035 xorg_cv_cc_flag_unused_command_line_argument=yes 8036else case e in #( 8037 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8038esac 8039fi 8040rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8041esac 8042fi 8043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8044printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8045 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8046 CFLAGS="$xorg_testset_save_CFLAGS" 8047fi 8048 8049found="no" 8050 8051 if test $found = "no" ; then 8052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8054 fi 8055 8056 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8058 fi 8059 8060 CFLAGS="$CFLAGS -Werror=missing-braces" 8061 8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8063printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8064 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8065 if eval test \${$cacheid+y} 8066then : 8067 printf %s "(cached) " >&6 8068else case e in #( 8069 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8070/* end confdefs.h. */ 8071int i; 8072int 8073main (void) 8074{ 8075 8076 ; 8077 return 0; 8078} 8079_ACEOF 8080if ac_fn_c_try_link "$LINENO" 8081then : 8082 eval $cacheid=yes 8083else case e in #( 8084 e) eval $cacheid=no ;; 8085esac 8086fi 8087rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8088 conftest$ac_exeext conftest.$ac_ext ;; 8089esac 8090fi 8091 8092 8093 CFLAGS="$xorg_testset_save_CFLAGS" 8094 8095 eval supported=\$$cacheid 8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8097printf "%s\n" "$supported" >&6; } 8098 if test "$supported" = "yes" ; then 8099 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8100 found="yes" 8101 fi 8102 fi 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118xorg_testset_save_CFLAGS="$CFLAGS" 8119 8120if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8123printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8124if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8125then : 8126 printf %s "(cached) " >&6 8127else case e in #( 8128 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8129/* end confdefs.h. */ 8130int i; 8131_ACEOF 8132if ac_fn_c_try_compile "$LINENO" 8133then : 8134 xorg_cv_cc_flag_unknown_warning_option=yes 8135else case e in #( 8136 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8137esac 8138fi 8139rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8140esac 8141fi 8142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8143printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8144 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8145 CFLAGS="$xorg_testset_save_CFLAGS" 8146fi 8147 8148if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8151 fi 8152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8154printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8155if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8156then : 8157 printf %s "(cached) " >&6 8158else case e in #( 8159 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8160/* end confdefs.h. */ 8161int i; 8162_ACEOF 8163if ac_fn_c_try_compile "$LINENO" 8164then : 8165 xorg_cv_cc_flag_unused_command_line_argument=yes 8166else case e in #( 8167 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8168esac 8169fi 8170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8171esac 8172fi 8173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8174printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8175 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8176 CFLAGS="$xorg_testset_save_CFLAGS" 8177fi 8178 8179found="no" 8180 8181 if test $found = "no" ; then 8182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8184 fi 8185 8186 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8188 fi 8189 8190 CFLAGS="$CFLAGS -Werror=sequence-point" 8191 8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8193printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8194 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8195 if eval test \${$cacheid+y} 8196then : 8197 printf %s "(cached) " >&6 8198else case e in #( 8199 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8200/* end confdefs.h. */ 8201int i; 8202int 8203main (void) 8204{ 8205 8206 ; 8207 return 0; 8208} 8209_ACEOF 8210if ac_fn_c_try_link "$LINENO" 8211then : 8212 eval $cacheid=yes 8213else case e in #( 8214 e) eval $cacheid=no ;; 8215esac 8216fi 8217rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8218 conftest$ac_exeext conftest.$ac_ext ;; 8219esac 8220fi 8221 8222 8223 CFLAGS="$xorg_testset_save_CFLAGS" 8224 8225 eval supported=\$$cacheid 8226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8227printf "%s\n" "$supported" >&6; } 8228 if test "$supported" = "yes" ; then 8229 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8230 found="yes" 8231 fi 8232 fi 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248xorg_testset_save_CFLAGS="$CFLAGS" 8249 8250if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8253printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8254if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8255then : 8256 printf %s "(cached) " >&6 8257else case e in #( 8258 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8259/* end confdefs.h. */ 8260int i; 8261_ACEOF 8262if ac_fn_c_try_compile "$LINENO" 8263then : 8264 xorg_cv_cc_flag_unknown_warning_option=yes 8265else case e in #( 8266 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8267esac 8268fi 8269rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8270esac 8271fi 8272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8273printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8274 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8275 CFLAGS="$xorg_testset_save_CFLAGS" 8276fi 8277 8278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8281 fi 8282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8284printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8285if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8286then : 8287 printf %s "(cached) " >&6 8288else case e in #( 8289 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8290/* end confdefs.h. */ 8291int i; 8292_ACEOF 8293if ac_fn_c_try_compile "$LINENO" 8294then : 8295 xorg_cv_cc_flag_unused_command_line_argument=yes 8296else case e in #( 8297 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8298esac 8299fi 8300rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8301esac 8302fi 8303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8304printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8305 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8306 CFLAGS="$xorg_testset_save_CFLAGS" 8307fi 8308 8309found="no" 8310 8311 if test $found = "no" ; then 8312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8314 fi 8315 8316 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8318 fi 8319 8320 CFLAGS="$CFLAGS -Werror=return-type" 8321 8322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8323printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8324 cacheid=xorg_cv_cc_flag__Werror_return_type 8325 if eval test \${$cacheid+y} 8326then : 8327 printf %s "(cached) " >&6 8328else case e in #( 8329 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8330/* end confdefs.h. */ 8331int i; 8332int 8333main (void) 8334{ 8335 8336 ; 8337 return 0; 8338} 8339_ACEOF 8340if ac_fn_c_try_link "$LINENO" 8341then : 8342 eval $cacheid=yes 8343else case e in #( 8344 e) eval $cacheid=no ;; 8345esac 8346fi 8347rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8348 conftest$ac_exeext conftest.$ac_ext ;; 8349esac 8350fi 8351 8352 8353 CFLAGS="$xorg_testset_save_CFLAGS" 8354 8355 eval supported=\$$cacheid 8356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8357printf "%s\n" "$supported" >&6; } 8358 if test "$supported" = "yes" ; then 8359 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8360 found="yes" 8361 fi 8362 fi 8363 8364 if test $found = "no" ; then 8365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8367 fi 8368 8369 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8371 fi 8372 8373 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8374 8375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8376printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8377 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8378 if eval test \${$cacheid+y} 8379then : 8380 printf %s "(cached) " >&6 8381else case e in #( 8382 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8383/* end confdefs.h. */ 8384int i; 8385int 8386main (void) 8387{ 8388 8389 ; 8390 return 0; 8391} 8392_ACEOF 8393if ac_fn_c_try_link "$LINENO" 8394then : 8395 eval $cacheid=yes 8396else case e in #( 8397 e) eval $cacheid=no ;; 8398esac 8399fi 8400rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8401 conftest$ac_exeext conftest.$ac_ext ;; 8402esac 8403fi 8404 8405 8406 CFLAGS="$xorg_testset_save_CFLAGS" 8407 8408 eval supported=\$$cacheid 8409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8410printf "%s\n" "$supported" >&6; } 8411 if test "$supported" = "yes" ; then 8412 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8413 found="yes" 8414 fi 8415 fi 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431xorg_testset_save_CFLAGS="$CFLAGS" 8432 8433if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8436printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8437if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8438then : 8439 printf %s "(cached) " >&6 8440else case e in #( 8441 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8442/* end confdefs.h. */ 8443int i; 8444_ACEOF 8445if ac_fn_c_try_compile "$LINENO" 8446then : 8447 xorg_cv_cc_flag_unknown_warning_option=yes 8448else case e in #( 8449 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8450esac 8451fi 8452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8453esac 8454fi 8455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8456printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8457 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8458 CFLAGS="$xorg_testset_save_CFLAGS" 8459fi 8460 8461if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8464 fi 8465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8467printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8468if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8469then : 8470 printf %s "(cached) " >&6 8471else case e in #( 8472 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8473/* end confdefs.h. */ 8474int i; 8475_ACEOF 8476if ac_fn_c_try_compile "$LINENO" 8477then : 8478 xorg_cv_cc_flag_unused_command_line_argument=yes 8479else case e in #( 8480 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8481esac 8482fi 8483rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8484esac 8485fi 8486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8487printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8489 CFLAGS="$xorg_testset_save_CFLAGS" 8490fi 8491 8492found="no" 8493 8494 if test $found = "no" ; then 8495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8497 fi 8498 8499 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8501 fi 8502 8503 CFLAGS="$CFLAGS -Werror=trigraphs" 8504 8505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8506printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8507 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8508 if eval test \${$cacheid+y} 8509then : 8510 printf %s "(cached) " >&6 8511else case e in #( 8512 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8513/* end confdefs.h. */ 8514int i; 8515int 8516main (void) 8517{ 8518 8519 ; 8520 return 0; 8521} 8522_ACEOF 8523if ac_fn_c_try_link "$LINENO" 8524then : 8525 eval $cacheid=yes 8526else case e in #( 8527 e) eval $cacheid=no ;; 8528esac 8529fi 8530rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8531 conftest$ac_exeext conftest.$ac_ext ;; 8532esac 8533fi 8534 8535 8536 CFLAGS="$xorg_testset_save_CFLAGS" 8537 8538 eval supported=\$$cacheid 8539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8540printf "%s\n" "$supported" >&6; } 8541 if test "$supported" = "yes" ; then 8542 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8543 found="yes" 8544 fi 8545 fi 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561xorg_testset_save_CFLAGS="$CFLAGS" 8562 8563if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8566printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8567if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8568then : 8569 printf %s "(cached) " >&6 8570else case e in #( 8571 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8572/* end confdefs.h. */ 8573int i; 8574_ACEOF 8575if ac_fn_c_try_compile "$LINENO" 8576then : 8577 xorg_cv_cc_flag_unknown_warning_option=yes 8578else case e in #( 8579 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8580esac 8581fi 8582rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8583esac 8584fi 8585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8586printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8588 CFLAGS="$xorg_testset_save_CFLAGS" 8589fi 8590 8591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8594 fi 8595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8597printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8598if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8599then : 8600 printf %s "(cached) " >&6 8601else case e in #( 8602 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8603/* end confdefs.h. */ 8604int i; 8605_ACEOF 8606if ac_fn_c_try_compile "$LINENO" 8607then : 8608 xorg_cv_cc_flag_unused_command_line_argument=yes 8609else case e in #( 8610 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8611esac 8612fi 8613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8614esac 8615fi 8616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8617printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8618 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8619 CFLAGS="$xorg_testset_save_CFLAGS" 8620fi 8621 8622found="no" 8623 8624 if test $found = "no" ; then 8625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8627 fi 8628 8629 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8631 fi 8632 8633 CFLAGS="$CFLAGS -Werror=array-bounds" 8634 8635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8636printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8637 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8638 if eval test \${$cacheid+y} 8639then : 8640 printf %s "(cached) " >&6 8641else case e in #( 8642 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8643/* end confdefs.h. */ 8644int i; 8645int 8646main (void) 8647{ 8648 8649 ; 8650 return 0; 8651} 8652_ACEOF 8653if ac_fn_c_try_link "$LINENO" 8654then : 8655 eval $cacheid=yes 8656else case e in #( 8657 e) eval $cacheid=no ;; 8658esac 8659fi 8660rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8661 conftest$ac_exeext conftest.$ac_ext ;; 8662esac 8663fi 8664 8665 8666 CFLAGS="$xorg_testset_save_CFLAGS" 8667 8668 eval supported=\$$cacheid 8669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8670printf "%s\n" "$supported" >&6; } 8671 if test "$supported" = "yes" ; then 8672 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8673 found="yes" 8674 fi 8675 fi 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691xorg_testset_save_CFLAGS="$CFLAGS" 8692 8693if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8696printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8697if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8698then : 8699 printf %s "(cached) " >&6 8700else case e in #( 8701 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8702/* end confdefs.h. */ 8703int i; 8704_ACEOF 8705if ac_fn_c_try_compile "$LINENO" 8706then : 8707 xorg_cv_cc_flag_unknown_warning_option=yes 8708else case e in #( 8709 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8710esac 8711fi 8712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8713esac 8714fi 8715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8716printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8718 CFLAGS="$xorg_testset_save_CFLAGS" 8719fi 8720 8721if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8724 fi 8725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8727printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8728if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8729then : 8730 printf %s "(cached) " >&6 8731else case e in #( 8732 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8733/* end confdefs.h. */ 8734int i; 8735_ACEOF 8736if ac_fn_c_try_compile "$LINENO" 8737then : 8738 xorg_cv_cc_flag_unused_command_line_argument=yes 8739else case e in #( 8740 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8741esac 8742fi 8743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8744esac 8745fi 8746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8747printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8749 CFLAGS="$xorg_testset_save_CFLAGS" 8750fi 8751 8752found="no" 8753 8754 if test $found = "no" ; then 8755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8757 fi 8758 8759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8761 fi 8762 8763 CFLAGS="$CFLAGS -Werror=write-strings" 8764 8765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8766printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8767 cacheid=xorg_cv_cc_flag__Werror_write_strings 8768 if eval test \${$cacheid+y} 8769then : 8770 printf %s "(cached) " >&6 8771else case e in #( 8772 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8773/* end confdefs.h. */ 8774int i; 8775int 8776main (void) 8777{ 8778 8779 ; 8780 return 0; 8781} 8782_ACEOF 8783if ac_fn_c_try_link "$LINENO" 8784then : 8785 eval $cacheid=yes 8786else case e in #( 8787 e) eval $cacheid=no ;; 8788esac 8789fi 8790rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8791 conftest$ac_exeext conftest.$ac_ext ;; 8792esac 8793fi 8794 8795 8796 CFLAGS="$xorg_testset_save_CFLAGS" 8797 8798 eval supported=\$$cacheid 8799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8800printf "%s\n" "$supported" >&6; } 8801 if test "$supported" = "yes" ; then 8802 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8803 found="yes" 8804 fi 8805 fi 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821xorg_testset_save_CFLAGS="$CFLAGS" 8822 8823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8826printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8827if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8828then : 8829 printf %s "(cached) " >&6 8830else case e in #( 8831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8832/* end confdefs.h. */ 8833int i; 8834_ACEOF 8835if ac_fn_c_try_compile "$LINENO" 8836then : 8837 xorg_cv_cc_flag_unknown_warning_option=yes 8838else case e in #( 8839 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8840esac 8841fi 8842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8843esac 8844fi 8845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8846printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8848 CFLAGS="$xorg_testset_save_CFLAGS" 8849fi 8850 8851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8854 fi 8855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8857printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8858if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8859then : 8860 printf %s "(cached) " >&6 8861else case e in #( 8862 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8863/* end confdefs.h. */ 8864int i; 8865_ACEOF 8866if ac_fn_c_try_compile "$LINENO" 8867then : 8868 xorg_cv_cc_flag_unused_command_line_argument=yes 8869else case e in #( 8870 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8871esac 8872fi 8873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8874esac 8875fi 8876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8877printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8878 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8879 CFLAGS="$xorg_testset_save_CFLAGS" 8880fi 8881 8882found="no" 8883 8884 if test $found = "no" ; then 8885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8887 fi 8888 8889 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8891 fi 8892 8893 CFLAGS="$CFLAGS -Werror=address" 8894 8895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8896printf %s "checking if $CC supports -Werror=address... " >&6; } 8897 cacheid=xorg_cv_cc_flag__Werror_address 8898 if eval test \${$cacheid+y} 8899then : 8900 printf %s "(cached) " >&6 8901else case e in #( 8902 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8903/* end confdefs.h. */ 8904int i; 8905int 8906main (void) 8907{ 8908 8909 ; 8910 return 0; 8911} 8912_ACEOF 8913if ac_fn_c_try_link "$LINENO" 8914then : 8915 eval $cacheid=yes 8916else case e in #( 8917 e) eval $cacheid=no ;; 8918esac 8919fi 8920rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8921 conftest$ac_exeext conftest.$ac_ext ;; 8922esac 8923fi 8924 8925 8926 CFLAGS="$xorg_testset_save_CFLAGS" 8927 8928 eval supported=\$$cacheid 8929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8930printf "%s\n" "$supported" >&6; } 8931 if test "$supported" = "yes" ; then 8932 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8933 found="yes" 8934 fi 8935 fi 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951xorg_testset_save_CFLAGS="$CFLAGS" 8952 8953if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8956printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8957if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8958then : 8959 printf %s "(cached) " >&6 8960else case e in #( 8961 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8962/* end confdefs.h. */ 8963int i; 8964_ACEOF 8965if ac_fn_c_try_compile "$LINENO" 8966then : 8967 xorg_cv_cc_flag_unknown_warning_option=yes 8968else case e in #( 8969 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8970esac 8971fi 8972rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8973esac 8974fi 8975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8976printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8978 CFLAGS="$xorg_testset_save_CFLAGS" 8979fi 8980 8981if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8984 fi 8985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8987printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8988if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8989then : 8990 printf %s "(cached) " >&6 8991else case e in #( 8992 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8993/* end confdefs.h. */ 8994int i; 8995_ACEOF 8996if ac_fn_c_try_compile "$LINENO" 8997then : 8998 xorg_cv_cc_flag_unused_command_line_argument=yes 8999else case e in #( 9000 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9001esac 9002fi 9003rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9004esac 9005fi 9006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9007printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9009 CFLAGS="$xorg_testset_save_CFLAGS" 9010fi 9011 9012found="no" 9013 9014 if test $found = "no" ; then 9015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9017 fi 9018 9019 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9021 fi 9022 9023 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9024 9025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9026printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9027 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9028 if eval test \${$cacheid+y} 9029then : 9030 printf %s "(cached) " >&6 9031else case e in #( 9032 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9033/* end confdefs.h. */ 9034int i; 9035int 9036main (void) 9037{ 9038 9039 ; 9040 return 0; 9041} 9042_ACEOF 9043if ac_fn_c_try_link "$LINENO" 9044then : 9045 eval $cacheid=yes 9046else case e in #( 9047 e) eval $cacheid=no ;; 9048esac 9049fi 9050rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9051 conftest$ac_exeext conftest.$ac_ext ;; 9052esac 9053fi 9054 9055 9056 CFLAGS="$xorg_testset_save_CFLAGS" 9057 9058 eval supported=\$$cacheid 9059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9060printf "%s\n" "$supported" >&6; } 9061 if test "$supported" = "yes" ; then 9062 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9063 found="yes" 9064 fi 9065 fi 9066 9067 if test $found = "no" ; then 9068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9070 fi 9071 9072 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9074 fi 9075 9076 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9077 9078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9079printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9080 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9081 if eval test \${$cacheid+y} 9082then : 9083 printf %s "(cached) " >&6 9084else case e in #( 9085 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9086/* end confdefs.h. */ 9087int i; 9088int 9089main (void) 9090{ 9091 9092 ; 9093 return 0; 9094} 9095_ACEOF 9096if ac_fn_c_try_link "$LINENO" 9097then : 9098 eval $cacheid=yes 9099else case e in #( 9100 e) eval $cacheid=no ;; 9101esac 9102fi 9103rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9104 conftest$ac_exeext conftest.$ac_ext ;; 9105esac 9106fi 9107 9108 9109 CFLAGS="$xorg_testset_save_CFLAGS" 9110 9111 eval supported=\$$cacheid 9112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9113printf "%s\n" "$supported" >&6; } 9114 if test "$supported" = "yes" ; then 9115 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9116 found="yes" 9117 fi 9118 fi 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134xorg_testset_save_CFLAGS="$CFLAGS" 9135 9136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9139printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9140if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9141then : 9142 printf %s "(cached) " >&6 9143else case e in #( 9144 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9145/* end confdefs.h. */ 9146int i; 9147_ACEOF 9148if ac_fn_c_try_compile "$LINENO" 9149then : 9150 xorg_cv_cc_flag_unknown_warning_option=yes 9151else case e in #( 9152 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9153esac 9154fi 9155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9156esac 9157fi 9158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9159printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9160 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9161 CFLAGS="$xorg_testset_save_CFLAGS" 9162fi 9163 9164if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9167 fi 9168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9170printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9171if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9172then : 9173 printf %s "(cached) " >&6 9174else case e in #( 9175 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9176/* end confdefs.h. */ 9177int i; 9178_ACEOF 9179if ac_fn_c_try_compile "$LINENO" 9180then : 9181 xorg_cv_cc_flag_unused_command_line_argument=yes 9182else case e in #( 9183 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9184esac 9185fi 9186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9187esac 9188fi 9189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9190printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9191 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9192 CFLAGS="$xorg_testset_save_CFLAGS" 9193fi 9194 9195found="no" 9196 9197 if test $found = "no" ; then 9198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9200 fi 9201 9202 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9204 fi 9205 9206 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9207 9208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9209printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9210 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9211 if eval test \${$cacheid+y} 9212then : 9213 printf %s "(cached) " >&6 9214else case e in #( 9215 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9216/* end confdefs.h. */ 9217int i; 9218int 9219main (void) 9220{ 9221 9222 ; 9223 return 0; 9224} 9225_ACEOF 9226if ac_fn_c_try_link "$LINENO" 9227then : 9228 eval $cacheid=yes 9229else case e in #( 9230 e) eval $cacheid=no ;; 9231esac 9232fi 9233rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9234 conftest$ac_exeext conftest.$ac_ext ;; 9235esac 9236fi 9237 9238 9239 CFLAGS="$xorg_testset_save_CFLAGS" 9240 9241 eval supported=\$$cacheid 9242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9243printf "%s\n" "$supported" >&6; } 9244 if test "$supported" = "yes" ; then 9245 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9246 found="yes" 9247 fi 9248 fi 9249 9250 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9251else 9252{ 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 9253printf "%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;} 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267xorg_testset_save_CFLAGS="$CFLAGS" 9268 9269if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9272printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9273if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9274then : 9275 printf %s "(cached) " >&6 9276else case e in #( 9277 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9278/* end confdefs.h. */ 9279int i; 9280_ACEOF 9281if ac_fn_c_try_compile "$LINENO" 9282then : 9283 xorg_cv_cc_flag_unknown_warning_option=yes 9284else case e in #( 9285 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9286esac 9287fi 9288rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9289esac 9290fi 9291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9292printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9294 CFLAGS="$xorg_testset_save_CFLAGS" 9295fi 9296 9297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9300 fi 9301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9303printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9304if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9305then : 9306 printf %s "(cached) " >&6 9307else case e in #( 9308 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9309/* end confdefs.h. */ 9310int i; 9311_ACEOF 9312if ac_fn_c_try_compile "$LINENO" 9313then : 9314 xorg_cv_cc_flag_unused_command_line_argument=yes 9315else case e in #( 9316 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9317esac 9318fi 9319rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9320esac 9321fi 9322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9323printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9324 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9325 CFLAGS="$xorg_testset_save_CFLAGS" 9326fi 9327 9328found="no" 9329 9330 if test $found = "no" ; then 9331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9333 fi 9334 9335 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9337 fi 9338 9339 CFLAGS="$CFLAGS -Wimplicit" 9340 9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9342printf %s "checking if $CC supports -Wimplicit... " >&6; } 9343 cacheid=xorg_cv_cc_flag__Wimplicit 9344 if eval test \${$cacheid+y} 9345then : 9346 printf %s "(cached) " >&6 9347else case e in #( 9348 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9349/* end confdefs.h. */ 9350int i; 9351int 9352main (void) 9353{ 9354 9355 ; 9356 return 0; 9357} 9358_ACEOF 9359if ac_fn_c_try_link "$LINENO" 9360then : 9361 eval $cacheid=yes 9362else case e in #( 9363 e) eval $cacheid=no ;; 9364esac 9365fi 9366rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9367 conftest$ac_exeext conftest.$ac_ext ;; 9368esac 9369fi 9370 9371 9372 CFLAGS="$xorg_testset_save_CFLAGS" 9373 9374 eval supported=\$$cacheid 9375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9376printf "%s\n" "$supported" >&6; } 9377 if test "$supported" = "yes" ; then 9378 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9379 found="yes" 9380 fi 9381 fi 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397xorg_testset_save_CFLAGS="$CFLAGS" 9398 9399if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9402printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9403if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9404then : 9405 printf %s "(cached) " >&6 9406else case e in #( 9407 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9408/* end confdefs.h. */ 9409int i; 9410_ACEOF 9411if ac_fn_c_try_compile "$LINENO" 9412then : 9413 xorg_cv_cc_flag_unknown_warning_option=yes 9414else case e in #( 9415 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9416esac 9417fi 9418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9419esac 9420fi 9421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9422printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9423 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9424 CFLAGS="$xorg_testset_save_CFLAGS" 9425fi 9426 9427if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9430 fi 9431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9433printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9434if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9435then : 9436 printf %s "(cached) " >&6 9437else case e in #( 9438 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9439/* end confdefs.h. */ 9440int i; 9441_ACEOF 9442if ac_fn_c_try_compile "$LINENO" 9443then : 9444 xorg_cv_cc_flag_unused_command_line_argument=yes 9445else case e in #( 9446 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9447esac 9448fi 9449rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9450esac 9451fi 9452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9453printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9455 CFLAGS="$xorg_testset_save_CFLAGS" 9456fi 9457 9458found="no" 9459 9460 if test $found = "no" ; then 9461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9463 fi 9464 9465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9467 fi 9468 9469 CFLAGS="$CFLAGS -Wnonnull" 9470 9471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9472printf %s "checking if $CC supports -Wnonnull... " >&6; } 9473 cacheid=xorg_cv_cc_flag__Wnonnull 9474 if eval test \${$cacheid+y} 9475then : 9476 printf %s "(cached) " >&6 9477else case e in #( 9478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9479/* end confdefs.h. */ 9480int i; 9481int 9482main (void) 9483{ 9484 9485 ; 9486 return 0; 9487} 9488_ACEOF 9489if ac_fn_c_try_link "$LINENO" 9490then : 9491 eval $cacheid=yes 9492else case e in #( 9493 e) eval $cacheid=no ;; 9494esac 9495fi 9496rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9497 conftest$ac_exeext conftest.$ac_ext ;; 9498esac 9499fi 9500 9501 9502 CFLAGS="$xorg_testset_save_CFLAGS" 9503 9504 eval supported=\$$cacheid 9505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9506printf "%s\n" "$supported" >&6; } 9507 if test "$supported" = "yes" ; then 9508 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9509 found="yes" 9510 fi 9511 fi 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527xorg_testset_save_CFLAGS="$CFLAGS" 9528 9529if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9532printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9533if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9534then : 9535 printf %s "(cached) " >&6 9536else case e in #( 9537 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9538/* end confdefs.h. */ 9539int i; 9540_ACEOF 9541if ac_fn_c_try_compile "$LINENO" 9542then : 9543 xorg_cv_cc_flag_unknown_warning_option=yes 9544else case e in #( 9545 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9546esac 9547fi 9548rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9549esac 9550fi 9551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9552printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9554 CFLAGS="$xorg_testset_save_CFLAGS" 9555fi 9556 9557if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9560 fi 9561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9563printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9564if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9565then : 9566 printf %s "(cached) " >&6 9567else case e in #( 9568 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9569/* end confdefs.h. */ 9570int i; 9571_ACEOF 9572if ac_fn_c_try_compile "$LINENO" 9573then : 9574 xorg_cv_cc_flag_unused_command_line_argument=yes 9575else case e in #( 9576 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9577esac 9578fi 9579rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9580esac 9581fi 9582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9583printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9584 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9585 CFLAGS="$xorg_testset_save_CFLAGS" 9586fi 9587 9588found="no" 9589 9590 if test $found = "no" ; then 9591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9593 fi 9594 9595 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9597 fi 9598 9599 CFLAGS="$CFLAGS -Winit-self" 9600 9601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9602printf %s "checking if $CC supports -Winit-self... " >&6; } 9603 cacheid=xorg_cv_cc_flag__Winit_self 9604 if eval test \${$cacheid+y} 9605then : 9606 printf %s "(cached) " >&6 9607else case e in #( 9608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9609/* end confdefs.h. */ 9610int i; 9611int 9612main (void) 9613{ 9614 9615 ; 9616 return 0; 9617} 9618_ACEOF 9619if ac_fn_c_try_link "$LINENO" 9620then : 9621 eval $cacheid=yes 9622else case e in #( 9623 e) eval $cacheid=no ;; 9624esac 9625fi 9626rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9627 conftest$ac_exeext conftest.$ac_ext ;; 9628esac 9629fi 9630 9631 9632 CFLAGS="$xorg_testset_save_CFLAGS" 9633 9634 eval supported=\$$cacheid 9635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9636printf "%s\n" "$supported" >&6; } 9637 if test "$supported" = "yes" ; then 9638 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9639 found="yes" 9640 fi 9641 fi 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657xorg_testset_save_CFLAGS="$CFLAGS" 9658 9659if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9662printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9663if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9664then : 9665 printf %s "(cached) " >&6 9666else case e in #( 9667 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9668/* end confdefs.h. */ 9669int i; 9670_ACEOF 9671if ac_fn_c_try_compile "$LINENO" 9672then : 9673 xorg_cv_cc_flag_unknown_warning_option=yes 9674else case e in #( 9675 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9676esac 9677fi 9678rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9679esac 9680fi 9681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9682printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9683 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9684 CFLAGS="$xorg_testset_save_CFLAGS" 9685fi 9686 9687if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9690 fi 9691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9693printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9694if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9695then : 9696 printf %s "(cached) " >&6 9697else case e in #( 9698 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9699/* end confdefs.h. */ 9700int i; 9701_ACEOF 9702if ac_fn_c_try_compile "$LINENO" 9703then : 9704 xorg_cv_cc_flag_unused_command_line_argument=yes 9705else case e in #( 9706 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9707esac 9708fi 9709rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9710esac 9711fi 9712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9713printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9714 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9715 CFLAGS="$xorg_testset_save_CFLAGS" 9716fi 9717 9718found="no" 9719 9720 if test $found = "no" ; then 9721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9723 fi 9724 9725 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9727 fi 9728 9729 CFLAGS="$CFLAGS -Wmain" 9730 9731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9732printf %s "checking if $CC supports -Wmain... " >&6; } 9733 cacheid=xorg_cv_cc_flag__Wmain 9734 if eval test \${$cacheid+y} 9735then : 9736 printf %s "(cached) " >&6 9737else case e in #( 9738 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9739/* end confdefs.h. */ 9740int i; 9741int 9742main (void) 9743{ 9744 9745 ; 9746 return 0; 9747} 9748_ACEOF 9749if ac_fn_c_try_link "$LINENO" 9750then : 9751 eval $cacheid=yes 9752else case e in #( 9753 e) eval $cacheid=no ;; 9754esac 9755fi 9756rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9757 conftest$ac_exeext conftest.$ac_ext ;; 9758esac 9759fi 9760 9761 9762 CFLAGS="$xorg_testset_save_CFLAGS" 9763 9764 eval supported=\$$cacheid 9765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9766printf "%s\n" "$supported" >&6; } 9767 if test "$supported" = "yes" ; then 9768 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9769 found="yes" 9770 fi 9771 fi 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787xorg_testset_save_CFLAGS="$CFLAGS" 9788 9789if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9792printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9793if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9794then : 9795 printf %s "(cached) " >&6 9796else case e in #( 9797 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9798/* end confdefs.h. */ 9799int i; 9800_ACEOF 9801if ac_fn_c_try_compile "$LINENO" 9802then : 9803 xorg_cv_cc_flag_unknown_warning_option=yes 9804else case e in #( 9805 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9806esac 9807fi 9808rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9809esac 9810fi 9811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9812printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9813 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9814 CFLAGS="$xorg_testset_save_CFLAGS" 9815fi 9816 9817if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9820 fi 9821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9823printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9824if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9825then : 9826 printf %s "(cached) " >&6 9827else case e in #( 9828 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9829/* end confdefs.h. */ 9830int i; 9831_ACEOF 9832if ac_fn_c_try_compile "$LINENO" 9833then : 9834 xorg_cv_cc_flag_unused_command_line_argument=yes 9835else case e in #( 9836 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9837esac 9838fi 9839rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9840esac 9841fi 9842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9843printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9845 CFLAGS="$xorg_testset_save_CFLAGS" 9846fi 9847 9848found="no" 9849 9850 if test $found = "no" ; then 9851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9853 fi 9854 9855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9857 fi 9858 9859 CFLAGS="$CFLAGS -Wmissing-braces" 9860 9861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9862printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9863 cacheid=xorg_cv_cc_flag__Wmissing_braces 9864 if eval test \${$cacheid+y} 9865then : 9866 printf %s "(cached) " >&6 9867else case e in #( 9868 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9869/* end confdefs.h. */ 9870int i; 9871int 9872main (void) 9873{ 9874 9875 ; 9876 return 0; 9877} 9878_ACEOF 9879if ac_fn_c_try_link "$LINENO" 9880then : 9881 eval $cacheid=yes 9882else case e in #( 9883 e) eval $cacheid=no ;; 9884esac 9885fi 9886rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9887 conftest$ac_exeext conftest.$ac_ext ;; 9888esac 9889fi 9890 9891 9892 CFLAGS="$xorg_testset_save_CFLAGS" 9893 9894 eval supported=\$$cacheid 9895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9896printf "%s\n" "$supported" >&6; } 9897 if test "$supported" = "yes" ; then 9898 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9899 found="yes" 9900 fi 9901 fi 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917xorg_testset_save_CFLAGS="$CFLAGS" 9918 9919if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9922printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9923if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9924then : 9925 printf %s "(cached) " >&6 9926else case e in #( 9927 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9928/* end confdefs.h. */ 9929int i; 9930_ACEOF 9931if ac_fn_c_try_compile "$LINENO" 9932then : 9933 xorg_cv_cc_flag_unknown_warning_option=yes 9934else case e in #( 9935 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9936esac 9937fi 9938rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9939esac 9940fi 9941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9942printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9944 CFLAGS="$xorg_testset_save_CFLAGS" 9945fi 9946 9947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9950 fi 9951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9953printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9954if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9955then : 9956 printf %s "(cached) " >&6 9957else case e in #( 9958 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9959/* end confdefs.h. */ 9960int i; 9961_ACEOF 9962if ac_fn_c_try_compile "$LINENO" 9963then : 9964 xorg_cv_cc_flag_unused_command_line_argument=yes 9965else case e in #( 9966 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9967esac 9968fi 9969rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9970esac 9971fi 9972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9973printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9974 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9975 CFLAGS="$xorg_testset_save_CFLAGS" 9976fi 9977 9978found="no" 9979 9980 if test $found = "no" ; then 9981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9983 fi 9984 9985 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9987 fi 9988 9989 CFLAGS="$CFLAGS -Wsequence-point" 9990 9991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9992printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9993 cacheid=xorg_cv_cc_flag__Wsequence_point 9994 if eval test \${$cacheid+y} 9995then : 9996 printf %s "(cached) " >&6 9997else case e in #( 9998 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9999/* end confdefs.h. */ 10000int i; 10001int 10002main (void) 10003{ 10004 10005 ; 10006 return 0; 10007} 10008_ACEOF 10009if ac_fn_c_try_link "$LINENO" 10010then : 10011 eval $cacheid=yes 10012else case e in #( 10013 e) eval $cacheid=no ;; 10014esac 10015fi 10016rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10017 conftest$ac_exeext conftest.$ac_ext ;; 10018esac 10019fi 10020 10021 10022 CFLAGS="$xorg_testset_save_CFLAGS" 10023 10024 eval supported=\$$cacheid 10025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10026printf "%s\n" "$supported" >&6; } 10027 if test "$supported" = "yes" ; then 10028 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10029 found="yes" 10030 fi 10031 fi 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047xorg_testset_save_CFLAGS="$CFLAGS" 10048 10049if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10052printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10053if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10054then : 10055 printf %s "(cached) " >&6 10056else case e in #( 10057 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10058/* end confdefs.h. */ 10059int i; 10060_ACEOF 10061if ac_fn_c_try_compile "$LINENO" 10062then : 10063 xorg_cv_cc_flag_unknown_warning_option=yes 10064else case e in #( 10065 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10066esac 10067fi 10068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10069esac 10070fi 10071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10072printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10074 CFLAGS="$xorg_testset_save_CFLAGS" 10075fi 10076 10077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10080 fi 10081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10083printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10084if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10085then : 10086 printf %s "(cached) " >&6 10087else case e in #( 10088 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10089/* end confdefs.h. */ 10090int i; 10091_ACEOF 10092if ac_fn_c_try_compile "$LINENO" 10093then : 10094 xorg_cv_cc_flag_unused_command_line_argument=yes 10095else case e in #( 10096 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10097esac 10098fi 10099rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10100esac 10101fi 10102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10103printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10105 CFLAGS="$xorg_testset_save_CFLAGS" 10106fi 10107 10108found="no" 10109 10110 if test $found = "no" ; then 10111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10113 fi 10114 10115 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10117 fi 10118 10119 CFLAGS="$CFLAGS -Wreturn-type" 10120 10121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10122printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10123 cacheid=xorg_cv_cc_flag__Wreturn_type 10124 if eval test \${$cacheid+y} 10125then : 10126 printf %s "(cached) " >&6 10127else case e in #( 10128 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10129/* end confdefs.h. */ 10130int i; 10131int 10132main (void) 10133{ 10134 10135 ; 10136 return 0; 10137} 10138_ACEOF 10139if ac_fn_c_try_link "$LINENO" 10140then : 10141 eval $cacheid=yes 10142else case e in #( 10143 e) eval $cacheid=no ;; 10144esac 10145fi 10146rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10147 conftest$ac_exeext conftest.$ac_ext ;; 10148esac 10149fi 10150 10151 10152 CFLAGS="$xorg_testset_save_CFLAGS" 10153 10154 eval supported=\$$cacheid 10155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10156printf "%s\n" "$supported" >&6; } 10157 if test "$supported" = "yes" ; then 10158 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10159 found="yes" 10160 fi 10161 fi 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177xorg_testset_save_CFLAGS="$CFLAGS" 10178 10179if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10182printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10183if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10184then : 10185 printf %s "(cached) " >&6 10186else case e in #( 10187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10188/* end confdefs.h. */ 10189int i; 10190_ACEOF 10191if ac_fn_c_try_compile "$LINENO" 10192then : 10193 xorg_cv_cc_flag_unknown_warning_option=yes 10194else case e in #( 10195 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10196esac 10197fi 10198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10199esac 10200fi 10201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10202printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10204 CFLAGS="$xorg_testset_save_CFLAGS" 10205fi 10206 10207if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10210 fi 10211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10213printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10214if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10215then : 10216 printf %s "(cached) " >&6 10217else case e in #( 10218 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10219/* end confdefs.h. */ 10220int i; 10221_ACEOF 10222if ac_fn_c_try_compile "$LINENO" 10223then : 10224 xorg_cv_cc_flag_unused_command_line_argument=yes 10225else case e in #( 10226 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10227esac 10228fi 10229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10230esac 10231fi 10232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10233printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10235 CFLAGS="$xorg_testset_save_CFLAGS" 10236fi 10237 10238found="no" 10239 10240 if test $found = "no" ; then 10241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10243 fi 10244 10245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10247 fi 10248 10249 CFLAGS="$CFLAGS -Wtrigraphs" 10250 10251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10252printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10253 cacheid=xorg_cv_cc_flag__Wtrigraphs 10254 if eval test \${$cacheid+y} 10255then : 10256 printf %s "(cached) " >&6 10257else case e in #( 10258 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10259/* end confdefs.h. */ 10260int i; 10261int 10262main (void) 10263{ 10264 10265 ; 10266 return 0; 10267} 10268_ACEOF 10269if ac_fn_c_try_link "$LINENO" 10270then : 10271 eval $cacheid=yes 10272else case e in #( 10273 e) eval $cacheid=no ;; 10274esac 10275fi 10276rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10277 conftest$ac_exeext conftest.$ac_ext ;; 10278esac 10279fi 10280 10281 10282 CFLAGS="$xorg_testset_save_CFLAGS" 10283 10284 eval supported=\$$cacheid 10285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10286printf "%s\n" "$supported" >&6; } 10287 if test "$supported" = "yes" ; then 10288 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10289 found="yes" 10290 fi 10291 fi 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307xorg_testset_save_CFLAGS="$CFLAGS" 10308 10309if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10312printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10313if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10314then : 10315 printf %s "(cached) " >&6 10316else case e in #( 10317 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10318/* end confdefs.h. */ 10319int i; 10320_ACEOF 10321if ac_fn_c_try_compile "$LINENO" 10322then : 10323 xorg_cv_cc_flag_unknown_warning_option=yes 10324else case e in #( 10325 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10326esac 10327fi 10328rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10329esac 10330fi 10331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10332printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10334 CFLAGS="$xorg_testset_save_CFLAGS" 10335fi 10336 10337if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10340 fi 10341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10343printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10344if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10345then : 10346 printf %s "(cached) " >&6 10347else case e in #( 10348 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10349/* end confdefs.h. */ 10350int i; 10351_ACEOF 10352if ac_fn_c_try_compile "$LINENO" 10353then : 10354 xorg_cv_cc_flag_unused_command_line_argument=yes 10355else case e in #( 10356 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10357esac 10358fi 10359rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10360esac 10361fi 10362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10363printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10365 CFLAGS="$xorg_testset_save_CFLAGS" 10366fi 10367 10368found="no" 10369 10370 if test $found = "no" ; then 10371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10373 fi 10374 10375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10377 fi 10378 10379 CFLAGS="$CFLAGS -Warray-bounds" 10380 10381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10382printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10383 cacheid=xorg_cv_cc_flag__Warray_bounds 10384 if eval test \${$cacheid+y} 10385then : 10386 printf %s "(cached) " >&6 10387else case e in #( 10388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10389/* end confdefs.h. */ 10390int i; 10391int 10392main (void) 10393{ 10394 10395 ; 10396 return 0; 10397} 10398_ACEOF 10399if ac_fn_c_try_link "$LINENO" 10400then : 10401 eval $cacheid=yes 10402else case e in #( 10403 e) eval $cacheid=no ;; 10404esac 10405fi 10406rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10407 conftest$ac_exeext conftest.$ac_ext ;; 10408esac 10409fi 10410 10411 10412 CFLAGS="$xorg_testset_save_CFLAGS" 10413 10414 eval supported=\$$cacheid 10415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10416printf "%s\n" "$supported" >&6; } 10417 if test "$supported" = "yes" ; then 10418 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10419 found="yes" 10420 fi 10421 fi 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437xorg_testset_save_CFLAGS="$CFLAGS" 10438 10439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10442printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10443if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10444then : 10445 printf %s "(cached) " >&6 10446else case e in #( 10447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10448/* end confdefs.h. */ 10449int i; 10450_ACEOF 10451if ac_fn_c_try_compile "$LINENO" 10452then : 10453 xorg_cv_cc_flag_unknown_warning_option=yes 10454else case e in #( 10455 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10456esac 10457fi 10458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10459esac 10460fi 10461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10462printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10464 CFLAGS="$xorg_testset_save_CFLAGS" 10465fi 10466 10467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10470 fi 10471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10473printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10474if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10475then : 10476 printf %s "(cached) " >&6 10477else case e in #( 10478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10479/* end confdefs.h. */ 10480int i; 10481_ACEOF 10482if ac_fn_c_try_compile "$LINENO" 10483then : 10484 xorg_cv_cc_flag_unused_command_line_argument=yes 10485else case e in #( 10486 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10487esac 10488fi 10489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10490esac 10491fi 10492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10493printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10495 CFLAGS="$xorg_testset_save_CFLAGS" 10496fi 10497 10498found="no" 10499 10500 if test $found = "no" ; then 10501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10503 fi 10504 10505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10507 fi 10508 10509 CFLAGS="$CFLAGS -Wwrite-strings" 10510 10511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10512printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10513 cacheid=xorg_cv_cc_flag__Wwrite_strings 10514 if eval test \${$cacheid+y} 10515then : 10516 printf %s "(cached) " >&6 10517else case e in #( 10518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10519/* end confdefs.h. */ 10520int i; 10521int 10522main (void) 10523{ 10524 10525 ; 10526 return 0; 10527} 10528_ACEOF 10529if ac_fn_c_try_link "$LINENO" 10530then : 10531 eval $cacheid=yes 10532else case e in #( 10533 e) eval $cacheid=no ;; 10534esac 10535fi 10536rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10537 conftest$ac_exeext conftest.$ac_ext ;; 10538esac 10539fi 10540 10541 10542 CFLAGS="$xorg_testset_save_CFLAGS" 10543 10544 eval supported=\$$cacheid 10545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10546printf "%s\n" "$supported" >&6; } 10547 if test "$supported" = "yes" ; then 10548 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10549 found="yes" 10550 fi 10551 fi 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567xorg_testset_save_CFLAGS="$CFLAGS" 10568 10569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10572printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10573if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10574then : 10575 printf %s "(cached) " >&6 10576else case e in #( 10577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10578/* end confdefs.h. */ 10579int i; 10580_ACEOF 10581if ac_fn_c_try_compile "$LINENO" 10582then : 10583 xorg_cv_cc_flag_unknown_warning_option=yes 10584else case e in #( 10585 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10586esac 10587fi 10588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10589esac 10590fi 10591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10592printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10593 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10594 CFLAGS="$xorg_testset_save_CFLAGS" 10595fi 10596 10597if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10600 fi 10601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10603printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10604if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10605then : 10606 printf %s "(cached) " >&6 10607else case e in #( 10608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10609/* end confdefs.h. */ 10610int i; 10611_ACEOF 10612if ac_fn_c_try_compile "$LINENO" 10613then : 10614 xorg_cv_cc_flag_unused_command_line_argument=yes 10615else case e in #( 10616 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10617esac 10618fi 10619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10620esac 10621fi 10622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10623printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10624 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10625 CFLAGS="$xorg_testset_save_CFLAGS" 10626fi 10627 10628found="no" 10629 10630 if test $found = "no" ; then 10631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10633 fi 10634 10635 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10637 fi 10638 10639 CFLAGS="$CFLAGS -Waddress" 10640 10641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10642printf %s "checking if $CC supports -Waddress... " >&6; } 10643 cacheid=xorg_cv_cc_flag__Waddress 10644 if eval test \${$cacheid+y} 10645then : 10646 printf %s "(cached) " >&6 10647else case e in #( 10648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10649/* end confdefs.h. */ 10650int i; 10651int 10652main (void) 10653{ 10654 10655 ; 10656 return 0; 10657} 10658_ACEOF 10659if ac_fn_c_try_link "$LINENO" 10660then : 10661 eval $cacheid=yes 10662else case e in #( 10663 e) eval $cacheid=no ;; 10664esac 10665fi 10666rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10667 conftest$ac_exeext conftest.$ac_ext ;; 10668esac 10669fi 10670 10671 10672 CFLAGS="$xorg_testset_save_CFLAGS" 10673 10674 eval supported=\$$cacheid 10675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10676printf "%s\n" "$supported" >&6; } 10677 if test "$supported" = "yes" ; then 10678 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10679 found="yes" 10680 fi 10681 fi 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697xorg_testset_save_CFLAGS="$CFLAGS" 10698 10699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10702printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10703if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10704then : 10705 printf %s "(cached) " >&6 10706else case e in #( 10707 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10708/* end confdefs.h. */ 10709int i; 10710_ACEOF 10711if ac_fn_c_try_compile "$LINENO" 10712then : 10713 xorg_cv_cc_flag_unknown_warning_option=yes 10714else case e in #( 10715 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10716esac 10717fi 10718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10719esac 10720fi 10721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10722printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10723 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10724 CFLAGS="$xorg_testset_save_CFLAGS" 10725fi 10726 10727if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10730 fi 10731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10733printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10734if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10735then : 10736 printf %s "(cached) " >&6 10737else case e in #( 10738 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10739/* end confdefs.h. */ 10740int i; 10741_ACEOF 10742if ac_fn_c_try_compile "$LINENO" 10743then : 10744 xorg_cv_cc_flag_unused_command_line_argument=yes 10745else case e in #( 10746 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10747esac 10748fi 10749rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10750esac 10751fi 10752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10753printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10754 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10755 CFLAGS="$xorg_testset_save_CFLAGS" 10756fi 10757 10758found="no" 10759 10760 if test $found = "no" ; then 10761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10763 fi 10764 10765 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10767 fi 10768 10769 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10770 10771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10772printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10773 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10774 if eval test \${$cacheid+y} 10775then : 10776 printf %s "(cached) " >&6 10777else case e in #( 10778 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10779/* end confdefs.h. */ 10780int i; 10781int 10782main (void) 10783{ 10784 10785 ; 10786 return 0; 10787} 10788_ACEOF 10789if ac_fn_c_try_link "$LINENO" 10790then : 10791 eval $cacheid=yes 10792else case e in #( 10793 e) eval $cacheid=no ;; 10794esac 10795fi 10796rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10797 conftest$ac_exeext conftest.$ac_ext ;; 10798esac 10799fi 10800 10801 10802 CFLAGS="$xorg_testset_save_CFLAGS" 10803 10804 eval supported=\$$cacheid 10805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10806printf "%s\n" "$supported" >&6; } 10807 if test "$supported" = "yes" ; then 10808 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10809 found="yes" 10810 fi 10811 fi 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827xorg_testset_save_CFLAGS="$CFLAGS" 10828 10829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10832printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10833if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10834then : 10835 printf %s "(cached) " >&6 10836else case e in #( 10837 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10838/* end confdefs.h. */ 10839int i; 10840_ACEOF 10841if ac_fn_c_try_compile "$LINENO" 10842then : 10843 xorg_cv_cc_flag_unknown_warning_option=yes 10844else case e in #( 10845 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10846esac 10847fi 10848rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10849esac 10850fi 10851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10852printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10854 CFLAGS="$xorg_testset_save_CFLAGS" 10855fi 10856 10857if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10860 fi 10861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10863printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10864if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10865then : 10866 printf %s "(cached) " >&6 10867else case e in #( 10868 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10869/* end confdefs.h. */ 10870int i; 10871_ACEOF 10872if ac_fn_c_try_compile "$LINENO" 10873then : 10874 xorg_cv_cc_flag_unused_command_line_argument=yes 10875else case e in #( 10876 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10877esac 10878fi 10879rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10880esac 10881fi 10882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10883printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10885 CFLAGS="$xorg_testset_save_CFLAGS" 10886fi 10887 10888found="no" 10889 10890 if test $found = "no" ; then 10891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10893 fi 10894 10895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10897 fi 10898 10899 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10900 10901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10902printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10903 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10904 if eval test \${$cacheid+y} 10905then : 10906 printf %s "(cached) " >&6 10907else case e in #( 10908 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10909/* end confdefs.h. */ 10910int i; 10911int 10912main (void) 10913{ 10914 10915 ; 10916 return 0; 10917} 10918_ACEOF 10919if ac_fn_c_try_link "$LINENO" 10920then : 10921 eval $cacheid=yes 10922else case e in #( 10923 e) eval $cacheid=no ;; 10924esac 10925fi 10926rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10927 conftest$ac_exeext conftest.$ac_ext ;; 10928esac 10929fi 10930 10931 10932 CFLAGS="$xorg_testset_save_CFLAGS" 10933 10934 eval supported=\$$cacheid 10935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10936printf "%s\n" "$supported" >&6; } 10937 if test "$supported" = "yes" ; then 10938 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10939 found="yes" 10940 fi 10941 fi 10942 10943 10944fi 10945 10946 10947 10948 10949 10950 10951 10952 CWARNFLAGS="$BASE_CFLAGS" 10953 if test "x$GCC" = xyes ; then 10954 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10955 fi 10956 10957 10958 10959 10960 10961 10962 10963 10964# Check whether --enable-strict-compilation was given. 10965if test ${enable_strict_compilation+y} 10966then : 10967 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10968else case e in #( 10969 e) STRICT_COMPILE=no ;; 10970esac 10971fi 10972 10973 10974 10975 10976 10977 10978STRICT_CFLAGS="" 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992xorg_testset_save_CFLAGS="$CFLAGS" 10993 10994if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10997printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10998if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10999then : 11000 printf %s "(cached) " >&6 11001else case e in #( 11002 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11003/* end confdefs.h. */ 11004int i; 11005_ACEOF 11006if ac_fn_c_try_compile "$LINENO" 11007then : 11008 xorg_cv_cc_flag_unknown_warning_option=yes 11009else case e in #( 11010 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11011esac 11012fi 11013rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11014esac 11015fi 11016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11017printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11018 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11019 CFLAGS="$xorg_testset_save_CFLAGS" 11020fi 11021 11022if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11025 fi 11026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11028printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11029if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11030then : 11031 printf %s "(cached) " >&6 11032else case e in #( 11033 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11034/* end confdefs.h. */ 11035int i; 11036_ACEOF 11037if ac_fn_c_try_compile "$LINENO" 11038then : 11039 xorg_cv_cc_flag_unused_command_line_argument=yes 11040else case e in #( 11041 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11042esac 11043fi 11044rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11045esac 11046fi 11047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11048printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11049 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11050 CFLAGS="$xorg_testset_save_CFLAGS" 11051fi 11052 11053found="no" 11054 11055 if test $found = "no" ; then 11056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11058 fi 11059 11060 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11062 fi 11063 11064 CFLAGS="$CFLAGS -pedantic" 11065 11066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11067printf %s "checking if $CC supports -pedantic... " >&6; } 11068 cacheid=xorg_cv_cc_flag__pedantic 11069 if eval test \${$cacheid+y} 11070then : 11071 printf %s "(cached) " >&6 11072else case e in #( 11073 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11074/* end confdefs.h. */ 11075int i; 11076int 11077main (void) 11078{ 11079 11080 ; 11081 return 0; 11082} 11083_ACEOF 11084if ac_fn_c_try_link "$LINENO" 11085then : 11086 eval $cacheid=yes 11087else case e in #( 11088 e) eval $cacheid=no ;; 11089esac 11090fi 11091rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11092 conftest$ac_exeext conftest.$ac_ext ;; 11093esac 11094fi 11095 11096 11097 CFLAGS="$xorg_testset_save_CFLAGS" 11098 11099 eval supported=\$$cacheid 11100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11101printf "%s\n" "$supported" >&6; } 11102 if test "$supported" = "yes" ; then 11103 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11104 found="yes" 11105 fi 11106 fi 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122xorg_testset_save_CFLAGS="$CFLAGS" 11123 11124if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11127printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11128if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11129then : 11130 printf %s "(cached) " >&6 11131else case e in #( 11132 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11133/* end confdefs.h. */ 11134int i; 11135_ACEOF 11136if ac_fn_c_try_compile "$LINENO" 11137then : 11138 xorg_cv_cc_flag_unknown_warning_option=yes 11139else case e in #( 11140 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11141esac 11142fi 11143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11144esac 11145fi 11146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11147printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11148 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11149 CFLAGS="$xorg_testset_save_CFLAGS" 11150fi 11151 11152if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11155 fi 11156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11158printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11159if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11160then : 11161 printf %s "(cached) " >&6 11162else case e in #( 11163 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11164/* end confdefs.h. */ 11165int i; 11166_ACEOF 11167if ac_fn_c_try_compile "$LINENO" 11168then : 11169 xorg_cv_cc_flag_unused_command_line_argument=yes 11170else case e in #( 11171 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11172esac 11173fi 11174rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11175esac 11176fi 11177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11178printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11179 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11180 CFLAGS="$xorg_testset_save_CFLAGS" 11181fi 11182 11183found="no" 11184 11185 if test $found = "no" ; then 11186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11188 fi 11189 11190 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11192 fi 11193 11194 CFLAGS="$CFLAGS -Werror" 11195 11196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11197printf %s "checking if $CC supports -Werror... " >&6; } 11198 cacheid=xorg_cv_cc_flag__Werror 11199 if eval test \${$cacheid+y} 11200then : 11201 printf %s "(cached) " >&6 11202else case e in #( 11203 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11204/* end confdefs.h. */ 11205int i; 11206int 11207main (void) 11208{ 11209 11210 ; 11211 return 0; 11212} 11213_ACEOF 11214if ac_fn_c_try_link "$LINENO" 11215then : 11216 eval $cacheid=yes 11217else case e in #( 11218 e) eval $cacheid=no ;; 11219esac 11220fi 11221rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11222 conftest$ac_exeext conftest.$ac_ext ;; 11223esac 11224fi 11225 11226 11227 CFLAGS="$xorg_testset_save_CFLAGS" 11228 11229 eval supported=\$$cacheid 11230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11231printf "%s\n" "$supported" >&6; } 11232 if test "$supported" = "yes" ; then 11233 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11234 found="yes" 11235 fi 11236 fi 11237 11238 if test $found = "no" ; then 11239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11241 fi 11242 11243 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11245 fi 11246 11247 CFLAGS="$CFLAGS -errwarn" 11248 11249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11250printf %s "checking if $CC supports -errwarn... " >&6; } 11251 cacheid=xorg_cv_cc_flag__errwarn 11252 if eval test \${$cacheid+y} 11253then : 11254 printf %s "(cached) " >&6 11255else case e in #( 11256 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11257/* end confdefs.h. */ 11258int i; 11259int 11260main (void) 11261{ 11262 11263 ; 11264 return 0; 11265} 11266_ACEOF 11267if ac_fn_c_try_link "$LINENO" 11268then : 11269 eval $cacheid=yes 11270else case e in #( 11271 e) eval $cacheid=no ;; 11272esac 11273fi 11274rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11275 conftest$ac_exeext conftest.$ac_ext ;; 11276esac 11277fi 11278 11279 11280 CFLAGS="$xorg_testset_save_CFLAGS" 11281 11282 eval supported=\$$cacheid 11283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11284printf "%s\n" "$supported" >&6; } 11285 if test "$supported" = "yes" ; then 11286 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11287 found="yes" 11288 fi 11289 fi 11290 11291 11292 11293# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11294# activate it with -Werror, so we add it here explicitly. 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308xorg_testset_save_CFLAGS="$CFLAGS" 11309 11310if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11313printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11314if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11315then : 11316 printf %s "(cached) " >&6 11317else case e in #( 11318 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11319/* end confdefs.h. */ 11320int i; 11321_ACEOF 11322if ac_fn_c_try_compile "$LINENO" 11323then : 11324 xorg_cv_cc_flag_unknown_warning_option=yes 11325else case e in #( 11326 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11327esac 11328fi 11329rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11330esac 11331fi 11332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11333printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11334 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11335 CFLAGS="$xorg_testset_save_CFLAGS" 11336fi 11337 11338if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11341 fi 11342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11344printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11345if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11346then : 11347 printf %s "(cached) " >&6 11348else case e in #( 11349 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11350/* end confdefs.h. */ 11351int i; 11352_ACEOF 11353if ac_fn_c_try_compile "$LINENO" 11354then : 11355 xorg_cv_cc_flag_unused_command_line_argument=yes 11356else case e in #( 11357 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11358esac 11359fi 11360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11361esac 11362fi 11363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11364printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11365 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11366 CFLAGS="$xorg_testset_save_CFLAGS" 11367fi 11368 11369found="no" 11370 11371 if test $found = "no" ; then 11372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11374 fi 11375 11376 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11378 fi 11379 11380 CFLAGS="$CFLAGS -Werror=attributes" 11381 11382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11383printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11384 cacheid=xorg_cv_cc_flag__Werror_attributes 11385 if eval test \${$cacheid+y} 11386then : 11387 printf %s "(cached) " >&6 11388else case e in #( 11389 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11390/* end confdefs.h. */ 11391int i; 11392int 11393main (void) 11394{ 11395 11396 ; 11397 return 0; 11398} 11399_ACEOF 11400if ac_fn_c_try_link "$LINENO" 11401then : 11402 eval $cacheid=yes 11403else case e in #( 11404 e) eval $cacheid=no ;; 11405esac 11406fi 11407rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11408 conftest$ac_exeext conftest.$ac_ext ;; 11409esac 11410fi 11411 11412 11413 CFLAGS="$xorg_testset_save_CFLAGS" 11414 11415 eval supported=\$$cacheid 11416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11417printf "%s\n" "$supported" >&6; } 11418 if test "$supported" = "yes" ; then 11419 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11420 found="yes" 11421 fi 11422 fi 11423 11424 11425 11426if test "x$STRICT_COMPILE" = "xyes"; then 11427 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11428 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11429fi 11430 11431 11432 11433 11434 11435 11436 11437 11438cat >>confdefs.h <<_ACEOF 11439#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11440_ACEOF 11441 11442 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11443 if test "x$PVM" = "x"; then 11444 PVM="0" 11445 fi 11446 11447printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11448 11449 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11450 if test "x$PVP" = "x"; then 11451 PVP="0" 11452 fi 11453 11454printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11455 11456 11457 11458CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11459mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11460|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11461touch \$(top_srcdir)/ChangeLog; \ 11462echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11463 11464 11465 11466 11467macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11468INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11469mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11470|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11471touch \$(top_srcdir)/INSTALL; \ 11472echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11473 11474 11475 11476 11477 11478 11479case $host_os in 11480 solaris*) 11481 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11482 # check for a man page file found in later versions that use 11483 # traditional section numbers instead 11484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11485printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11486if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11487then : 11488 printf %s "(cached) " >&6 11489else case e in #( 11490 e) test "$cross_compiling" = yes && 11491 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11492if test -r "/usr/share/man/man7/attributes.7"; then 11493 ac_cv_file__usr_share_man_man7_attributes_7=yes 11494else 11495 ac_cv_file__usr_share_man_man7_attributes_7=no 11496fi ;; 11497esac 11498fi 11499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11500printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11501if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11502then : 11503 SYSV_MAN_SECTIONS=false 11504else case e in #( 11505 e) SYSV_MAN_SECTIONS=true ;; 11506esac 11507fi 11508 11509 ;; 11510 *) SYSV_MAN_SECTIONS=false ;; 11511esac 11512 11513if test x$APP_MAN_SUFFIX = x ; then 11514 APP_MAN_SUFFIX=1 11515fi 11516if test x$APP_MAN_DIR = x ; then 11517 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11518fi 11519 11520if test x$LIB_MAN_SUFFIX = x ; then 11521 LIB_MAN_SUFFIX=3 11522fi 11523if test x$LIB_MAN_DIR = x ; then 11524 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11525fi 11526 11527if test x$FILE_MAN_SUFFIX = x ; then 11528 case $SYSV_MAN_SECTIONS in 11529 true) FILE_MAN_SUFFIX=4 ;; 11530 *) FILE_MAN_SUFFIX=5 ;; 11531 esac 11532fi 11533if test x$FILE_MAN_DIR = x ; then 11534 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11535fi 11536 11537if test x$MISC_MAN_SUFFIX = x ; then 11538 case $SYSV_MAN_SECTIONS in 11539 true) MISC_MAN_SUFFIX=5 ;; 11540 *) MISC_MAN_SUFFIX=7 ;; 11541 esac 11542fi 11543if test x$MISC_MAN_DIR = x ; then 11544 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11545fi 11546 11547if test x$DRIVER_MAN_SUFFIX = x ; then 11548 case $SYSV_MAN_SECTIONS in 11549 true) DRIVER_MAN_SUFFIX=7 ;; 11550 *) DRIVER_MAN_SUFFIX=4 ;; 11551 esac 11552fi 11553if test x$DRIVER_MAN_DIR = x ; then 11554 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11555fi 11556 11557if test x$ADMIN_MAN_SUFFIX = x ; then 11558 case $SYSV_MAN_SECTIONS in 11559 true) ADMIN_MAN_SUFFIX=1m ;; 11560 *) ADMIN_MAN_SUFFIX=8 ;; 11561 esac 11562fi 11563if test x$ADMIN_MAN_DIR = x ; then 11564 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11565fi 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581XORG_MAN_PAGE="X Version 11" 11582 11583MAN_SUBSTS="\ 11584 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11585 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11586 -e 's|__xservername__|Xorg|g' \ 11587 -e 's|__xconfigfile__|xorg.conf|g' \ 11588 -e 's|__projectroot__|\$(prefix)|g' \ 11589 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11590 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11591 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11592 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11593 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11594 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11595 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11596 11597 11598 11599# Check whether --enable-silent-rules was given. 11600if test ${enable_silent_rules+y} 11601then : 11602 enableval=$enable_silent_rules; 11603fi 11604 11605case $enable_silent_rules in # ((( 11606 yes) AM_DEFAULT_VERBOSITY=0;; 11607 no) AM_DEFAULT_VERBOSITY=1;; 11608 *) AM_DEFAULT_VERBOSITY=0;; 11609esac 11610am_make=${MAKE-make} 11611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11612printf %s "checking whether $am_make supports nested variables... " >&6; } 11613if test ${am_cv_make_support_nested_variables+y} 11614then : 11615 printf %s "(cached) " >&6 11616else case e in #( 11617 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 11618BAR0=false 11619BAR1=true 11620V=1 11621am__doit: 11622 @$(TRUE) 11623.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11624 am_cv_make_support_nested_variables=yes 11625else 11626 am_cv_make_support_nested_variables=no 11627fi ;; 11628esac 11629fi 11630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11631printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11632if test $am_cv_make_support_nested_variables = yes; then 11633 AM_V='$(V)' 11634 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11635else 11636 AM_V=$AM_DEFAULT_VERBOSITY 11637 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11638fi 11639AM_BACKSLASH='\' 11640 11641 11642 11643 11644# Checks for pkg-config packages 11645 11646pkg_failed=no 11647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XMH" >&5 11648printf %s "checking for XMH... " >&6; } 11649 11650if test -n "$XMH_CFLAGS"; then 11651 pkg_cv_XMH_CFLAGS="$XMH_CFLAGS" 11652 elif test -n "$PKG_CONFIG"; then 11653 if test -n "$PKG_CONFIG" && \ 11654 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.3 x11 xbitmaps >= 1.1.0 xproto >= 7.0.17\""; } >&5 11655 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.3 x11 xbitmaps >= 1.1.0 xproto >= 7.0.17") 2>&5 11656 ac_status=$? 11657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11658 test $ac_status = 0; }; then 11659 pkg_cv_XMH_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt >= 1.3 x11 xbitmaps >= 1.1.0 xproto >= 7.0.17" 2>/dev/null` 11660 test "x$?" != "x0" && pkg_failed=yes 11661else 11662 pkg_failed=yes 11663fi 11664 else 11665 pkg_failed=untried 11666fi 11667if test -n "$XMH_LIBS"; then 11668 pkg_cv_XMH_LIBS="$XMH_LIBS" 11669 elif test -n "$PKG_CONFIG"; then 11670 if test -n "$PKG_CONFIG" && \ 11671 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.3 x11 xbitmaps >= 1.1.0 xproto >= 7.0.17\""; } >&5 11672 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.3 x11 xbitmaps >= 1.1.0 xproto >= 7.0.17") 2>&5 11673 ac_status=$? 11674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11675 test $ac_status = 0; }; then 11676 pkg_cv_XMH_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt >= 1.3 x11 xbitmaps >= 1.1.0 xproto >= 7.0.17" 2>/dev/null` 11677 test "x$?" != "x0" && pkg_failed=yes 11678else 11679 pkg_failed=yes 11680fi 11681 else 11682 pkg_failed=untried 11683fi 11684 11685 11686 11687if test $pkg_failed = yes; then 11688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11689printf "%s\n" "no" >&6; } 11690 11691if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11692 _pkg_short_errors_supported=yes 11693else 11694 _pkg_short_errors_supported=no 11695fi 11696 if test $_pkg_short_errors_supported = yes; then 11697 XMH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt >= 1.3 x11 xbitmaps >= 1.1.0 xproto >= 7.0.17" 2>&1` 11698 else 11699 XMH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt >= 1.3 x11 xbitmaps >= 1.1.0 xproto >= 7.0.17" 2>&1` 11700 fi 11701 # Put the nasty error message in config.log where it belongs 11702 echo "$XMH_PKG_ERRORS" >&5 11703 11704 as_fn_error $? "Package requirements (xaw7 xmu xt >= 1.3 x11 xbitmaps >= 1.1.0 xproto >= 7.0.17) were not met: 11705 11706$XMH_PKG_ERRORS 11707 11708Consider adjusting the PKG_CONFIG_PATH environment variable if you 11709installed software in a non-standard prefix. 11710 11711Alternatively, you may set the environment variables XMH_CFLAGS 11712and XMH_LIBS to avoid the need to call pkg-config. 11713See the pkg-config man page for more details." "$LINENO" 5 11714elif test $pkg_failed = untried; then 11715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11716printf "%s\n" "no" >&6; } 11717 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11718printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11719as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11720is in your PATH or set the PKG_CONFIG environment variable to the full 11721path to pkg-config. 11722 11723Alternatively, you may set the environment variables XMH_CFLAGS 11724and XMH_LIBS to avoid the need to call pkg-config. 11725See the pkg-config man page for more details. 11726 11727To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11728See 'config.log' for more details" "$LINENO" 5; } 11729else 11730 XMH_CFLAGS=$pkg_cv_XMH_CFLAGS 11731 XMH_LIBS=$pkg_cv_XMH_LIBS 11732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11733printf "%s\n" "yes" >&6; } 11734 11735fi 11736 11737 11738pkg_failed=no 11739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 11740printf %s "checking for APPDEFS... " >&6; } 11741 11742if test -n "$APPDEFS_CFLAGS"; then 11743 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 11744 elif test -n "$PKG_CONFIG"; then 11745 if test -n "$PKG_CONFIG" && \ 11746 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11747 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11748 ac_status=$? 11749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11750 test $ac_status = 0; }; then 11751 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 11752 test "x$?" != "x0" && pkg_failed=yes 11753else 11754 pkg_failed=yes 11755fi 11756 else 11757 pkg_failed=untried 11758fi 11759if test -n "$APPDEFS_LIBS"; then 11760 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 11761 elif test -n "$PKG_CONFIG"; then 11762 if test -n "$PKG_CONFIG" && \ 11763 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11764 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11765 ac_status=$? 11766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11767 test $ac_status = 0; }; then 11768 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 11769 test "x$?" != "x0" && pkg_failed=yes 11770else 11771 pkg_failed=yes 11772fi 11773 else 11774 pkg_failed=untried 11775fi 11776 11777 11778 11779if test $pkg_failed = yes; then 11780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11781printf "%s\n" "no" >&6; } 11782 11783if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11784 _pkg_short_errors_supported=yes 11785else 11786 _pkg_short_errors_supported=no 11787fi 11788 if test $_pkg_short_errors_supported = yes; then 11789 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` 11790 else 11791 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` 11792 fi 11793 # Put the nasty error message in config.log where it belongs 11794 echo "$APPDEFS_PKG_ERRORS" >&5 11795 11796 as_fn_error $? "Package requirements (xt) were not met: 11797 11798$APPDEFS_PKG_ERRORS 11799 11800Consider adjusting the PKG_CONFIG_PATH environment variable if you 11801installed software in a non-standard prefix. 11802 11803Alternatively, you may set the environment variables APPDEFS_CFLAGS 11804and APPDEFS_LIBS to avoid the need to call pkg-config. 11805See the pkg-config man page for more details." "$LINENO" 5 11806elif test $pkg_failed = untried; then 11807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11808printf "%s\n" "no" >&6; } 11809 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11810printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11811as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11812is in your PATH or set the PKG_CONFIG environment variable to the full 11813path to pkg-config. 11814 11815Alternatively, you may set the environment variables APPDEFS_CFLAGS 11816and APPDEFS_LIBS to avoid the need to call pkg-config. 11817See the pkg-config man page for more details. 11818 11819To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11820See 'config.log' for more details" "$LINENO" 5; } 11821else 11822 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 11823 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 11824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11825printf "%s\n" "yes" >&6; } 11826 11827fi 11828xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 11829 11830# Check whether --with-appdefaultdir was given. 11831if test ${with_appdefaultdir+y} 11832then : 11833 withval=$with_appdefaultdir; appdefaultdir="$withval" 11834else case e in #( 11835 e) appdefaultdir="${xt_appdefaultdir}" ;; 11836esac 11837fi 11838 11839 11840 11841# Checks for typedefs, structures, and compiler characteristics. 11842# Check whether --enable-largefile was given. 11843if test ${enable_largefile+y} 11844then : 11845 enableval=$enable_largefile; 11846fi 11847if test "$enable_largefile,$enable_year2038" != no,no 11848then : 11849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 11850printf %s "checking for $CC option to enable large file support... " >&6; } 11851if test ${ac_cv_sys_largefile_opts+y} 11852then : 11853 printf %s "(cached) " >&6 11854else case e in #( 11855 e) ac_save_CC="$CC" 11856 ac_opt_found=no 11857 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 11858 if test x"$ac_opt" != x"none needed" 11859then : 11860 CC="$ac_save_CC $ac_opt" 11861fi 11862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11863/* end confdefs.h. */ 11864#include <sys/types.h> 11865#ifndef FTYPE 11866# define FTYPE off_t 11867#endif 11868 /* Check that FTYPE can represent 2**63 - 1 correctly. 11869 We can't simply define LARGE_FTYPE to be 9223372036854775807, 11870 since some C++ compilers masquerading as C compilers 11871 incorrectly reject 9223372036854775807. */ 11872#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 11873 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 11874 && LARGE_FTYPE % 2147483647 == 1) 11875 ? 1 : -1]; 11876int 11877main (void) 11878{ 11879 11880 ; 11881 return 0; 11882} 11883_ACEOF 11884if ac_fn_c_try_compile "$LINENO" 11885then : 11886 if test x"$ac_opt" = x"none needed" 11887then : 11888 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 11889 CC="$CC -DFTYPE=ino_t" 11890 if ac_fn_c_try_compile "$LINENO" 11891then : 11892 11893else case e in #( 11894 e) CC="$CC -D_FILE_OFFSET_BITS=64" 11895 if ac_fn_c_try_compile "$LINENO" 11896then : 11897 ac_opt='-D_FILE_OFFSET_BITS=64' 11898fi 11899rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 11900esac 11901fi 11902rm -f core conftest.err conftest.$ac_objext conftest.beam 11903fi 11904 ac_cv_sys_largefile_opts=$ac_opt 11905 ac_opt_found=yes 11906fi 11907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11908 test $ac_opt_found = no || break 11909 done 11910 CC="$ac_save_CC" 11911 11912 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 11913esac 11914fi 11915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 11916printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 11917 11918ac_have_largefile=yes 11919case $ac_cv_sys_largefile_opts in #( 11920 "none needed") : 11921 ;; #( 11922 "supported through gnulib") : 11923 ;; #( 11924 "support not detected") : 11925 ac_have_largefile=no ;; #( 11926 "-D_FILE_OFFSET_BITS=64") : 11927 11928printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 11929 ;; #( 11930 "-D_LARGE_FILES=1") : 11931 11932printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 11933 ;; #( 11934 "-n32") : 11935 CC="$CC -n32" ;; #( 11936 *) : 11937 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 11938esac 11939 11940if test "$enable_year2038" != no 11941then : 11942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 11943printf %s "checking for $CC option for timestamps after 2038... " >&6; } 11944if test ${ac_cv_sys_year2038_opts+y} 11945then : 11946 printf %s "(cached) " >&6 11947else case e in #( 11948 e) ac_save_CPPFLAGS="$CPPFLAGS" 11949 ac_opt_found=no 11950 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 11951 if test x"$ac_opt" != x"none needed" 11952then : 11953 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 11954fi 11955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11956/* end confdefs.h. */ 11957 11958 #include <time.h> 11959 /* Check that time_t can represent 2**32 - 1 correctly. */ 11960 #define LARGE_TIME_T \\ 11961 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 11962 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 11963 && LARGE_TIME_T % 65537 == 0) 11964 ? 1 : -1]; 11965 11966int 11967main (void) 11968{ 11969 11970 ; 11971 return 0; 11972} 11973_ACEOF 11974if ac_fn_c_try_compile "$LINENO" 11975then : 11976 ac_cv_sys_year2038_opts="$ac_opt" 11977 ac_opt_found=yes 11978fi 11979rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11980 test $ac_opt_found = no || break 11981 done 11982 CPPFLAGS="$ac_save_CPPFLAGS" 11983 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 11984esac 11985fi 11986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 11987printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 11988 11989ac_have_year2038=yes 11990case $ac_cv_sys_year2038_opts in #( 11991 "none needed") : 11992 ;; #( 11993 "support not detected") : 11994 ac_have_year2038=no ;; #( 11995 "-D_TIME_BITS=64") : 11996 11997printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 11998 ;; #( 11999 "-D__MINGW_USE_VC2005_COMPAT") : 12000 12001printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 12002 ;; #( 12003 "-U_USE_32_BIT_TIME_T"*) : 12004 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 12005printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 12006as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 12007will stop working after mid-January 2038. Remove 12008_USE_32BIT_TIME_T from the compiler flags. 12009See 'config.log' for more details" "$LINENO" 5; } ;; #( 12010 *) : 12011 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 12012esac 12013 12014fi 12015 12016fi 12017 12018# Checks for library functions. 12019 12020 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 12021" 12022if test "x$ac_cv_type_pid_t" = xyes 12023then : 12024 12025else case e in #( 12026 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12027/* end confdefs.h. */ 12028 12029 #if defined _WIN64 && !defined __CYGWIN__ 12030 LLP64 12031 #endif 12032 12033int 12034main (void) 12035{ 12036 12037 ; 12038 return 0; 12039} 12040 12041_ACEOF 12042if ac_fn_c_try_compile "$LINENO" 12043then : 12044 ac_pid_type='int' 12045else case e in #( 12046 e) ac_pid_type='__int64' ;; 12047esac 12048fi 12049rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12050 12051printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 12052 12053 ;; 12054esac 12055fi 12056 12057 12058 12059ac_func= 12060for ac_item in $ac_func_c_list 12061do 12062 if test $ac_func; then 12063 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 12064 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 12065 echo "#define $ac_item 1" >> confdefs.h 12066 fi 12067 ac_func= 12068 else 12069 ac_func=$ac_item 12070 fi 12071done 12072 12073 12074 12075if test "x$ac_cv_func_fork" = xyes; then 12076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 12077printf %s "checking for working fork... " >&6; } 12078if test ${ac_cv_func_fork_works+y} 12079then : 12080 printf %s "(cached) " >&6 12081else case e in #( 12082 e) if test "$cross_compiling" = yes 12083then : 12084 ac_cv_func_fork_works=cross 12085else case e in #( 12086 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12087/* end confdefs.h. */ 12088$ac_includes_default 12089int 12090main (void) 12091{ 12092 12093 /* By R. Kuhlmann. */ 12094 return fork () < 0; 12095 12096 ; 12097 return 0; 12098} 12099_ACEOF 12100if ac_fn_c_try_run "$LINENO" 12101then : 12102 ac_cv_func_fork_works=yes 12103else case e in #( 12104 e) ac_cv_func_fork_works=no ;; 12105esac 12106fi 12107rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12108 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12109esac 12110fi 12111 ;; 12112esac 12113fi 12114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 12115printf "%s\n" "$ac_cv_func_fork_works" >&6; } 12116 12117else 12118 ac_cv_func_fork_works=$ac_cv_func_fork 12119fi 12120if test "x$ac_cv_func_fork_works" = xcross; then 12121 case $host in 12122 *-*-amigaos* | *-*-msdosdjgpp*) 12123 # Override, as these systems have only a dummy fork() stub 12124 ac_cv_func_fork_works=no 12125 ;; 12126 *) 12127 ac_cv_func_fork_works=yes 12128 ;; 12129 esac 12130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 12131printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 12132fi 12133ac_cv_func_vfork_works=$ac_cv_func_vfork 12134if test "x$ac_cv_func_vfork" = xyes; then 12135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 12136printf %s "checking for working vfork... " >&6; } 12137if test ${ac_cv_func_vfork_works+y} 12138then : 12139 printf %s "(cached) " >&6 12140else case e in #( 12141 e) if test "$cross_compiling" = yes 12142then : 12143 ac_cv_func_vfork_works=cross 12144else case e in #( 12145 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12146/* end confdefs.h. */ 12147/* Thanks to Paul Eggert for this test. */ 12148$ac_includes_default 12149#include <signal.h> 12150#include <sys/wait.h> 12151#ifdef HAVE_VFORK_H 12152# include <vfork.h> 12153#endif 12154 12155static void 12156do_nothing (int sig) 12157{ 12158 (void) sig; 12159} 12160 12161/* On some sparc systems, changes by the child to local and incoming 12162 argument registers are propagated back to the parent. The compiler 12163 is told about this with #include <vfork.h>, but some compilers 12164 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 12165 static variable whose address is put into a register that is 12166 clobbered by the vfork. */ 12167static void 12168sparc_address_test (int arg) 12169{ 12170 static pid_t child; 12171 if (!child) { 12172 child = vfork (); 12173 if (child < 0) { 12174 perror ("vfork"); 12175 _exit(2); 12176 } 12177 if (!child) { 12178 arg = getpid(); 12179 write(-1, "", 0); 12180 _exit (arg); 12181 } 12182 } 12183} 12184 12185int 12186main (void) 12187{ 12188 pid_t parent = getpid (); 12189 pid_t child; 12190 12191 sparc_address_test (0); 12192 12193 /* On Solaris 2.4, changes by the child to the signal handler 12194 also munge signal handlers in the parent. To detect this, 12195 start by putting the parent's handler in a known state. */ 12196 signal (SIGTERM, SIG_DFL); 12197 12198 child = vfork (); 12199 12200 if (child == 0) { 12201 /* Here is another test for sparc vfork register problems. This 12202 test uses lots of local variables, at least as many local 12203 variables as main has allocated so far including compiler 12204 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 12205 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 12206 reuse the register of parent for one of the local variables, 12207 since it will think that parent can't possibly be used any more 12208 in this routine. Assigning to the local variable will thus 12209 munge parent in the parent process. */ 12210 pid_t 12211 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 12212 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 12213 /* Convince the compiler that p..p7 are live; otherwise, it might 12214 use the same hardware register for all 8 local variables. */ 12215 if (p != p1 || p != p2 || p != p3 || p != p4 12216 || p != p5 || p != p6 || p != p7) 12217 _exit(1); 12218 12219 /* Alter the child's signal handler. */ 12220 if (signal (SIGTERM, do_nothing) != SIG_DFL) 12221 _exit(1); 12222 12223 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 12224 from child file descriptors. If the child closes a descriptor 12225 before it execs or exits, this munges the parent's descriptor 12226 as well. Test for this by closing stdout in the child. */ 12227 _exit(close(fileno(stdout)) != 0); 12228 } else { 12229 int status; 12230 struct stat st; 12231 12232 while (wait(&status) != child) 12233 ; 12234 return ( 12235 /* Was there some problem with vforking? */ 12236 child < 0 12237 12238 /* Did the child munge the parent's signal handler? */ 12239 || signal (SIGTERM, SIG_DFL) != SIG_DFL 12240 12241 /* Did the child fail? (This shouldn't happen.) */ 12242 || status 12243 12244 /* Did the vfork/compiler bug occur? */ 12245 || parent != getpid() 12246 12247 /* Did the file descriptor bug occur? */ 12248 || fstat(fileno(stdout), &st) != 0 12249 ); 12250 } 12251} 12252_ACEOF 12253if ac_fn_c_try_run "$LINENO" 12254then : 12255 ac_cv_func_vfork_works=yes 12256else case e in #( 12257 e) ac_cv_func_vfork_works=no ;; 12258esac 12259fi 12260rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12261 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12262esac 12263fi 12264 ;; 12265esac 12266fi 12267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 12268printf "%s\n" "$ac_cv_func_vfork_works" >&6; } 12269 12270fi; 12271if test "x$ac_cv_func_fork_works" = xcross; then 12272 ac_cv_func_vfork_works=$ac_cv_func_vfork 12273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 12274printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 12275fi 12276 12277if test "x$ac_cv_func_vfork_works" = xyes; then 12278 12279printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h 12280 12281else 12282 12283printf "%s\n" "#define vfork fork" >>confdefs.h 12284 12285fi 12286if test "x$ac_cv_func_fork_works" = xyes; then 12287 12288printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h 12289 12290fi 12291 12292 12293ac_config_files="$ac_config_files Makefile man/Makefile" 12294 12295cat >confcache <<\_ACEOF 12296# This file is a shell script that caches the results of configure 12297# tests run on this system so they can be shared between configure 12298# scripts and configure runs, see configure's option --config-cache. 12299# It is not useful on other systems. If it contains results you don't 12300# want to keep, you may remove or edit it. 12301# 12302# config.status only pays attention to the cache file if you give it 12303# the --recheck option to rerun configure. 12304# 12305# 'ac_cv_env_foo' variables (set or unset) will be overridden when 12306# loading this file, other *unset* 'ac_cv_foo' will be assigned the 12307# following values. 12308 12309_ACEOF 12310 12311# The following way of writing the cache mishandles newlines in values, 12312# but we know of no workaround that is simple, portable, and efficient. 12313# So, we kill variables containing newlines. 12314# Ultrix sh set writes to stderr and can't be redirected directly, 12315# and sets the high bit in the cache file unless we assign to the vars. 12316( 12317 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12318 eval ac_val=\$$ac_var 12319 case $ac_val in #( 12320 *${as_nl}*) 12321 case $ac_var in #( 12322 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12323printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12324 esac 12325 case $ac_var in #( 12326 _ | IFS | as_nl) ;; #( 12327 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12328 *) { eval $ac_var=; unset $ac_var;} ;; 12329 esac ;; 12330 esac 12331 done 12332 12333 (set) 2>&1 | 12334 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12335 *${as_nl}ac_space=\ *) 12336 # 'set' does not quote correctly, so add quotes: double-quote 12337 # substitution turns \\\\ into \\, and sed turns \\ into \. 12338 sed -n \ 12339 "s/'/'\\\\''/g; 12340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12341 ;; #( 12342 *) 12343 # 'set' quotes correctly as required by POSIX, so do not add quotes. 12344 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12345 ;; 12346 esac | 12347 sort 12348) | 12349 sed ' 12350 /^ac_cv_env_/b end 12351 t clear 12352 :clear 12353 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 12354 t end 12355 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12356 :end' >>confcache 12357if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12358 if test -w "$cache_file"; then 12359 if test "x$cache_file" != "x/dev/null"; then 12360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12361printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 12362 if test ! -f "$cache_file" || test -h "$cache_file"; then 12363 cat confcache >"$cache_file" 12364 else 12365 case $cache_file in #( 12366 */* | ?:*) 12367 mv -f confcache "$cache_file"$$ && 12368 mv -f "$cache_file"$$ "$cache_file" ;; #( 12369 *) 12370 mv -f confcache "$cache_file" ;; 12371 esac 12372 fi 12373 fi 12374 else 12375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12376printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 12377 fi 12378fi 12379rm -f confcache 12380 12381test "x$prefix" = xNONE && prefix=$ac_default_prefix 12382# Let make expand exec_prefix. 12383test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12384 12385DEFS=-DHAVE_CONFIG_H 12386 12387ac_libobjs= 12388ac_ltlibobjs= 12389U= 12390for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12391 # 1. Remove the extension, and $U if already installed. 12392 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12393 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 12394 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12395 # will be set to the directory where LIBOBJS objects are built. 12396 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12397 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12398done 12399LIBOBJS=$ac_libobjs 12400 12401LTLIBOBJS=$ac_ltlibobjs 12402 12403 12404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12405printf %s "checking that generated files are newer than configure... " >&6; } 12406 if test -n "$am_sleep_pid"; then 12407 # Hide warnings about reused PIDs. 12408 wait $am_sleep_pid 2>/dev/null 12409 fi 12410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 12411printf "%s\n" "done" >&6; } 12412 if test -n "$EXEEXT"; then 12413 am__EXEEXT_TRUE= 12414 am__EXEEXT_FALSE='#' 12415else 12416 am__EXEEXT_TRUE='#' 12417 am__EXEEXT_FALSE= 12418fi 12419 12420if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12421 as_fn_error $? "conditional \"AMDEP\" was never defined. 12422Usually this means the macro was only invoked conditionally." "$LINENO" 5 12423fi 12424if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12425 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12426Usually this means the macro was only invoked conditionally." "$LINENO" 5 12427fi 12428# Check whether --enable-year2038 was given. 12429if test ${enable_year2038+y} 12430then : 12431 enableval=$enable_year2038; 12432fi 12433 12434 12435: "${CONFIG_STATUS=./config.status}" 12436ac_write_fail=0 12437ac_clean_files_save=$ac_clean_files 12438ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12440printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 12441as_write_fail=0 12442cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12443#! $SHELL 12444# Generated by $as_me. 12445# Run this file to recreate the current configuration. 12446# Compiler output produced by configure, useful for debugging 12447# configure, is in config.log if it exists. 12448 12449debug=false 12450ac_cs_recheck=false 12451ac_cs_silent=false 12452 12453SHELL=\${CONFIG_SHELL-$SHELL} 12454export SHELL 12455_ASEOF 12456cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12457## -------------------- ## 12458## M4sh Initialization. ## 12459## -------------------- ## 12460 12461# Be more Bourne compatible 12462DUALCASE=1; export DUALCASE # for MKS sh 12463if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12464then : 12465 emulate sh 12466 NULLCMD=: 12467 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12468 # is contrary to our usage. Disable this feature. 12469 alias -g '${1+"$@"}'='"$@"' 12470 setopt NO_GLOB_SUBST 12471else case e in #( 12472 e) case `(set -o) 2>/dev/null` in #( 12473 *posix*) : 12474 set -o posix ;; #( 12475 *) : 12476 ;; 12477esac ;; 12478esac 12479fi 12480 12481 12482 12483# Reset variables that may have inherited troublesome values from 12484# the environment. 12485 12486# IFS needs to be set, to space, tab, and newline, in precisely that order. 12487# (If _AS_PATH_WALK were called with IFS unset, it would have the 12488# side effect of setting IFS to empty, thus disabling word splitting.) 12489# Quoting is to prevent editors from complaining about space-tab. 12490as_nl=' 12491' 12492export as_nl 12493IFS=" "" $as_nl" 12494 12495PS1='$ ' 12496PS2='> ' 12497PS4='+ ' 12498 12499# Ensure predictable behavior from utilities with locale-dependent output. 12500LC_ALL=C 12501export LC_ALL 12502LANGUAGE=C 12503export LANGUAGE 12504 12505# We cannot yet rely on "unset" to work, but we need these variables 12506# to be unset--not just set to an empty or harmless value--now, to 12507# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12508# also avoids known problems related to "unset" and subshell syntax 12509# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12510for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12511do eval test \${$as_var+y} \ 12512 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12513done 12514 12515# Ensure that fds 0, 1, and 2 are open. 12516if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12517if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12518if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12519 12520# The user is always right. 12521if ${PATH_SEPARATOR+false} :; then 12522 PATH_SEPARATOR=: 12523 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12524 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12525 PATH_SEPARATOR=';' 12526 } 12527fi 12528 12529 12530# Find who we are. Look in the path if we contain no directory separator. 12531as_myself= 12532case $0 in #(( 12533 *[\\/]* ) as_myself=$0 ;; 12534 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12535for as_dir in $PATH 12536do 12537 IFS=$as_save_IFS 12538 case $as_dir in #((( 12539 '') as_dir=./ ;; 12540 */) ;; 12541 *) as_dir=$as_dir/ ;; 12542 esac 12543 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12544 done 12545IFS=$as_save_IFS 12546 12547 ;; 12548esac 12549# We did not find ourselves, most probably we were run as 'sh COMMAND' 12550# in which case we are not to be found in the path. 12551if test "x$as_myself" = x; then 12552 as_myself=$0 12553fi 12554if test ! -f "$as_myself"; then 12555 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12556 exit 1 12557fi 12558 12559 12560 12561# as_fn_error STATUS ERROR [LINENO LOG_FD] 12562# ---------------------------------------- 12563# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12564# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12565# script with STATUS, using 1 if that was 0. 12566as_fn_error () 12567{ 12568 as_status=$1; test $as_status -eq 0 && as_status=1 12569 if test "$4"; then 12570 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12572 fi 12573 printf "%s\n" "$as_me: error: $2" >&2 12574 as_fn_exit $as_status 12575} # as_fn_error 12576 12577 12578# as_fn_set_status STATUS 12579# ----------------------- 12580# Set $? to STATUS, without forking. 12581as_fn_set_status () 12582{ 12583 return $1 12584} # as_fn_set_status 12585 12586# as_fn_exit STATUS 12587# ----------------- 12588# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12589as_fn_exit () 12590{ 12591 set +e 12592 as_fn_set_status $1 12593 exit $1 12594} # as_fn_exit 12595 12596# as_fn_unset VAR 12597# --------------- 12598# Portably unset VAR. 12599as_fn_unset () 12600{ 12601 { eval $1=; unset $1;} 12602} 12603as_unset=as_fn_unset 12604 12605# as_fn_append VAR VALUE 12606# ---------------------- 12607# Append the text in VALUE to the end of the definition contained in VAR. Take 12608# advantage of any shell optimizations that allow amortized linear growth over 12609# repeated appends, instead of the typical quadratic growth present in naive 12610# implementations. 12611if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12612then : 12613 eval 'as_fn_append () 12614 { 12615 eval $1+=\$2 12616 }' 12617else case e in #( 12618 e) as_fn_append () 12619 { 12620 eval $1=\$$1\$2 12621 } ;; 12622esac 12623fi # as_fn_append 12624 12625# as_fn_arith ARG... 12626# ------------------ 12627# Perform arithmetic evaluation on the ARGs, and store the result in the 12628# global $as_val. Take advantage of shells that can avoid forks. The arguments 12629# must be portable across $(()) and expr. 12630if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12631then : 12632 eval 'as_fn_arith () 12633 { 12634 as_val=$(( $* )) 12635 }' 12636else case e in #( 12637 e) as_fn_arith () 12638 { 12639 as_val=`expr "$@" || test $? -eq 1` 12640 } ;; 12641esac 12642fi # as_fn_arith 12643 12644 12645if expr a : '\(a\)' >/dev/null 2>&1 && 12646 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12647 as_expr=expr 12648else 12649 as_expr=false 12650fi 12651 12652if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12653 as_basename=basename 12654else 12655 as_basename=false 12656fi 12657 12658if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12659 as_dirname=dirname 12660else 12661 as_dirname=false 12662fi 12663 12664as_me=`$as_basename -- "$0" || 12665$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12666 X"$0" : 'X\(//\)$' \| \ 12667 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12668printf "%s\n" X/"$0" | 12669 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12670 s//\1/ 12671 q 12672 } 12673 /^X\/\(\/\/\)$/{ 12674 s//\1/ 12675 q 12676 } 12677 /^X\/\(\/\).*/{ 12678 s//\1/ 12679 q 12680 } 12681 s/.*/./; q'` 12682 12683# Avoid depending upon Character Ranges. 12684as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12685as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12686as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12687as_cr_digits='0123456789' 12688as_cr_alnum=$as_cr_Letters$as_cr_digits 12689 12690 12691# Determine whether it's possible to make 'echo' print without a newline. 12692# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12693# for compatibility with existing Makefiles. 12694ECHO_C= ECHO_N= ECHO_T= 12695case `echo -n x` in #((((( 12696-n*) 12697 case `echo 'xy\c'` in 12698 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12699 xy) ECHO_C='\c';; 12700 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12701 ECHO_T=' ';; 12702 esac;; 12703*) 12704 ECHO_N='-n';; 12705esac 12706 12707# For backward compatibility with old third-party macros, we provide 12708# the shell variables $as_echo and $as_echo_n. New code should use 12709# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12710as_echo='printf %s\n' 12711as_echo_n='printf %s' 12712 12713rm -f conf$$ conf$$.exe conf$$.file 12714if test -d conf$$.dir; then 12715 rm -f conf$$.dir/conf$$.file 12716else 12717 rm -f conf$$.dir 12718 mkdir conf$$.dir 2>/dev/null 12719fi 12720if (echo >conf$$.file) 2>/dev/null; then 12721 if ln -s conf$$.file conf$$ 2>/dev/null; then 12722 as_ln_s='ln -s' 12723 # ... but there are two gotchas: 12724 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12725 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12726 # In both cases, we have to default to 'cp -pR'. 12727 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12728 as_ln_s='cp -pR' 12729 elif ln conf$$.file conf$$ 2>/dev/null; then 12730 as_ln_s=ln 12731 else 12732 as_ln_s='cp -pR' 12733 fi 12734else 12735 as_ln_s='cp -pR' 12736fi 12737rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12738rmdir conf$$.dir 2>/dev/null 12739 12740 12741# as_fn_mkdir_p 12742# ------------- 12743# Create "$as_dir" as a directory, including parents if necessary. 12744as_fn_mkdir_p () 12745{ 12746 12747 case $as_dir in #( 12748 -*) as_dir=./$as_dir;; 12749 esac 12750 test -d "$as_dir" || eval $as_mkdir_p || { 12751 as_dirs= 12752 while :; do 12753 case $as_dir in #( 12754 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12755 *) as_qdir=$as_dir;; 12756 esac 12757 as_dirs="'$as_qdir' $as_dirs" 12758 as_dir=`$as_dirname -- "$as_dir" || 12759$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12760 X"$as_dir" : 'X\(//\)[^/]' \| \ 12761 X"$as_dir" : 'X\(//\)$' \| \ 12762 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12763printf "%s\n" X"$as_dir" | 12764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12765 s//\1/ 12766 q 12767 } 12768 /^X\(\/\/\)[^/].*/{ 12769 s//\1/ 12770 q 12771 } 12772 /^X\(\/\/\)$/{ 12773 s//\1/ 12774 q 12775 } 12776 /^X\(\/\).*/{ 12777 s//\1/ 12778 q 12779 } 12780 s/.*/./; q'` 12781 test -d "$as_dir" && break 12782 done 12783 test -z "$as_dirs" || eval "mkdir $as_dirs" 12784 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12785 12786 12787} # as_fn_mkdir_p 12788if mkdir -p . 2>/dev/null; then 12789 as_mkdir_p='mkdir -p "$as_dir"' 12790else 12791 test -d ./-p && rmdir ./-p 12792 as_mkdir_p=false 12793fi 12794 12795 12796# as_fn_executable_p FILE 12797# ----------------------- 12798# Test if FILE is an executable regular file. 12799as_fn_executable_p () 12800{ 12801 test -f "$1" && test -x "$1" 12802} # as_fn_executable_p 12803as_test_x='test -x' 12804as_executable_p=as_fn_executable_p 12805 12806# Sed expression to map a string onto a valid CPP name. 12807as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12808as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12809 12810# Sed expression to map a string onto a valid variable name. 12811as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12812as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12813 12814 12815exec 6>&1 12816## ----------------------------------- ## 12817## Main body of $CONFIG_STATUS script. ## 12818## ----------------------------------- ## 12819_ASEOF 12820test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12821 12822cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12823# Save the log message, to keep $0 and so on meaningful, and to 12824# report actual input values of CONFIG_FILES etc. instead of their 12825# values after options handling. 12826ac_log=" 12827This file was extended by xmh $as_me 1.0.5, which was 12828generated by GNU Autoconf 2.72. Invocation command line was 12829 12830 CONFIG_FILES = $CONFIG_FILES 12831 CONFIG_HEADERS = $CONFIG_HEADERS 12832 CONFIG_LINKS = $CONFIG_LINKS 12833 CONFIG_COMMANDS = $CONFIG_COMMANDS 12834 $ $0 $@ 12835 12836on `(hostname || uname -n) 2>/dev/null | sed 1q` 12837" 12838 12839_ACEOF 12840 12841case $ac_config_files in *" 12842"*) set x $ac_config_files; shift; ac_config_files=$*;; 12843esac 12844 12845case $ac_config_headers in *" 12846"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12847esac 12848 12849 12850cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12851# Files that config.status was made for. 12852config_files="$ac_config_files" 12853config_headers="$ac_config_headers" 12854config_commands="$ac_config_commands" 12855 12856_ACEOF 12857 12858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12859ac_cs_usage="\ 12860'$as_me' instantiates files and other configuration actions 12861from templates according to the current configuration. Unless the files 12862and actions are specified as TAGs, all are instantiated by default. 12863 12864Usage: $0 [OPTION]... [TAG]... 12865 12866 -h, --help print this help, then exit 12867 -V, --version print version number and configuration settings, then exit 12868 --config print configuration, then exit 12869 -q, --quiet, --silent 12870 do not print progress messages 12871 -d, --debug don't remove temporary files 12872 --recheck update $as_me by reconfiguring in the same conditions 12873 --file=FILE[:TEMPLATE] 12874 instantiate the configuration file FILE 12875 --header=FILE[:TEMPLATE] 12876 instantiate the configuration header FILE 12877 12878Configuration files: 12879$config_files 12880 12881Configuration headers: 12882$config_headers 12883 12884Configuration commands: 12885$config_commands 12886 12887Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmh/-/issues>." 12888 12889_ACEOF 12890ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12891ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12892cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12893ac_cs_config='$ac_cs_config_escaped' 12894ac_cs_version="\\ 12895xmh config.status 1.0.5 12896configured by $0, generated by GNU Autoconf 2.72, 12897 with options \\"\$ac_cs_config\\" 12898 12899Copyright (C) 2023 Free Software Foundation, Inc. 12900This config.status script is free software; the Free Software Foundation 12901gives unlimited permission to copy, distribute and modify it." 12902 12903ac_pwd='$ac_pwd' 12904srcdir='$srcdir' 12905INSTALL='$INSTALL' 12906MKDIR_P='$MKDIR_P' 12907AWK='$AWK' 12908test -n "\$AWK" || AWK=awk 12909_ACEOF 12910 12911cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12912# The default lists apply if the user does not specify any file. 12913ac_need_defaults=: 12914while test $# != 0 12915do 12916 case $1 in 12917 --*=?*) 12918 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12919 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12920 ac_shift=: 12921 ;; 12922 --*=) 12923 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12924 ac_optarg= 12925 ac_shift=: 12926 ;; 12927 *) 12928 ac_option=$1 12929 ac_optarg=$2 12930 ac_shift=shift 12931 ;; 12932 esac 12933 12934 case $ac_option in 12935 # Handling of the options. 12936 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12937 ac_cs_recheck=: ;; 12938 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12939 printf "%s\n" "$ac_cs_version"; exit ;; 12940 --config | --confi | --conf | --con | --co | --c ) 12941 printf "%s\n" "$ac_cs_config"; exit ;; 12942 --debug | --debu | --deb | --de | --d | -d ) 12943 debug=: ;; 12944 --file | --fil | --fi | --f ) 12945 $ac_shift 12946 case $ac_optarg in 12947 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12948 '') as_fn_error $? "missing file argument" ;; 12949 esac 12950 as_fn_append CONFIG_FILES " '$ac_optarg'" 12951 ac_need_defaults=false;; 12952 --header | --heade | --head | --hea ) 12953 $ac_shift 12954 case $ac_optarg in 12955 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12956 esac 12957 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12958 ac_need_defaults=false;; 12959 --he | --h) 12960 # Conflict between --help and --header 12961 as_fn_error $? "ambiguous option: '$1' 12962Try '$0 --help' for more information.";; 12963 --help | --hel | -h ) 12964 printf "%s\n" "$ac_cs_usage"; exit ;; 12965 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12966 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12967 ac_cs_silent=: ;; 12968 12969 # This is an error. 12970 -*) as_fn_error $? "unrecognized option: '$1' 12971Try '$0 --help' for more information." ;; 12972 12973 *) as_fn_append ac_config_targets " $1" 12974 ac_need_defaults=false ;; 12975 12976 esac 12977 shift 12978done 12979 12980ac_configure_extra_args= 12981 12982if $ac_cs_silent; then 12983 exec 6>/dev/null 12984 ac_configure_extra_args="$ac_configure_extra_args --silent" 12985fi 12986 12987_ACEOF 12988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12989if \$ac_cs_recheck; then 12990 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12991 shift 12992 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12993 CONFIG_SHELL='$SHELL' 12994 export CONFIG_SHELL 12995 exec "\$@" 12996fi 12997 12998_ACEOF 12999cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13000exec 5>>config.log 13001{ 13002 echo 13003 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13004## Running $as_me. ## 13005_ASBOX 13006 printf "%s\n" "$ac_log" 13007} >&5 13008 13009_ACEOF 13010cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13011# 13012# INIT-COMMANDS 13013# 13014AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 13015 13016_ACEOF 13017 13018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13019 13020# Handling of arguments. 13021for ac_config_target in $ac_config_targets 13022do 13023 case $ac_config_target in 13024 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13025 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13026 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13027 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 13028 13029 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 13030 esac 13031done 13032 13033 13034# If the user did not use the arguments to specify the items to instantiate, 13035# then the envvar interface is used. Set only those that are not. 13036# We use the long form for the default assignment because of an extremely 13037# bizarre bug on SunOS 4.1.3. 13038if $ac_need_defaults; then 13039 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 13040 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 13041 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 13042fi 13043 13044# Have a temporary directory for convenience. Make it in the build tree 13045# simply because there is no reason against having it here, and in addition, 13046# creating and moving files from /tmp can sometimes cause problems. 13047# Hook for its removal unless debugging. 13048# Note that there is a small window in which the directory will not be cleaned: 13049# after its creation but before its name has been assigned to '$tmp'. 13050$debug || 13051{ 13052 tmp= ac_tmp= 13053 trap 'exit_status=$? 13054 : "${ac_tmp:=$tmp}" 13055 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13056' 0 13057 trap 'as_fn_exit 1' 1 2 13 15 13058} 13059# Create a (secure) tmp directory for tmp files. 13060 13061{ 13062 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13063 test -d "$tmp" 13064} || 13065{ 13066 tmp=./conf$$-$RANDOM 13067 (umask 077 && mkdir "$tmp") 13068} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13069ac_tmp=$tmp 13070 13071# Set up the scripts for CONFIG_FILES section. 13072# No need to generate them if there are no CONFIG_FILES. 13073# This happens for instance with './config.status config.h'. 13074if test -n "$CONFIG_FILES"; then 13075 13076 13077ac_cr=`echo X | tr X '\015'` 13078# On cygwin, bash can eat \r inside `` if the user requested igncr. 13079# But we know of no other shell where ac_cr would be empty at this 13080# point, so we can use a bashism as a fallback. 13081if test "x$ac_cr" = x; then 13082 eval ac_cr=\$\'\\r\' 13083fi 13084ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13085if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13086 ac_cs_awk_cr='\\r' 13087else 13088 ac_cs_awk_cr=$ac_cr 13089fi 13090 13091echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13092_ACEOF 13093 13094 13095{ 13096 echo "cat >conf$$subs.awk <<_ACEOF" && 13097 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13098 echo "_ACEOF" 13099} >conf$$subs.sh || 13100 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13101ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13102ac_delim='%!_!# ' 13103for ac_last_try in false false false false false :; do 13104 . ./conf$$subs.sh || 13105 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13106 13107 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13108 if test $ac_delim_n = $ac_delim_num; then 13109 break 13110 elif $ac_last_try; then 13111 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13112 else 13113 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13114 fi 13115done 13116rm -f conf$$subs.sh 13117 13118cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13119cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13120_ACEOF 13121sed -n ' 13122h 13123s/^/S["/; s/!.*/"]=/ 13124p 13125g 13126s/^[^!]*!// 13127:repl 13128t repl 13129s/'"$ac_delim"'$// 13130t delim 13131:nl 13132h 13133s/\(.\{148\}\)..*/\1/ 13134t more1 13135s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13136p 13137n 13138b repl 13139:more1 13140s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13141p 13142g 13143s/.\{148\}// 13144t nl 13145:delim 13146h 13147s/\(.\{148\}\)..*/\1/ 13148t more2 13149s/["\\]/\\&/g; s/^/"/; s/$/"/ 13150p 13151b 13152:more2 13153s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13154p 13155g 13156s/.\{148\}// 13157t delim 13158' <conf$$subs.awk | sed ' 13159/^[^""]/{ 13160 N 13161 s/\n// 13162} 13163' >>$CONFIG_STATUS || ac_write_fail=1 13164rm -f conf$$subs.awk 13165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13166_ACAWK 13167cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13168 for (key in S) S_is_set[key] = 1 13169 FS = "" 13170 13171} 13172{ 13173 line = $ 0 13174 nfields = split(line, field, "@") 13175 substed = 0 13176 len = length(field[1]) 13177 for (i = 2; i < nfields; i++) { 13178 key = field[i] 13179 keylen = length(key) 13180 if (S_is_set[key]) { 13181 value = S[key] 13182 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13183 len += length(value) + length(field[++i]) 13184 substed = 1 13185 } else 13186 len += 1 + keylen 13187 } 13188 13189 print line 13190} 13191 13192_ACAWK 13193_ACEOF 13194cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13195if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13196 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13197else 13198 cat 13199fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13200 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13201_ACEOF 13202 13203# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13204# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13205# trailing colons and then remove the whole line if VPATH becomes empty 13206# (actually we leave an empty line to preserve line numbers). 13207if test "x$srcdir" = x.; then 13208 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13209h 13210s/// 13211s/^/:/ 13212s/[ ]*$/:/ 13213s/:\$(srcdir):/:/g 13214s/:\${srcdir}:/:/g 13215s/:@srcdir@:/:/g 13216s/^:*// 13217s/:*$// 13218x 13219s/\(=[ ]*\).*/\1/ 13220G 13221s/\n// 13222s/^[^=]*=[ ]*$// 13223}' 13224fi 13225 13226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13227fi # test -n "$CONFIG_FILES" 13228 13229# Set up the scripts for CONFIG_HEADERS section. 13230# No need to generate them if there are no CONFIG_HEADERS. 13231# This happens for instance with './config.status Makefile'. 13232if test -n "$CONFIG_HEADERS"; then 13233cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13234BEGIN { 13235_ACEOF 13236 13237# Transform confdefs.h into an awk script 'defines.awk', embedded as 13238# here-document in config.status, that substitutes the proper values into 13239# config.h.in to produce config.h. 13240 13241# Create a delimiter string that does not exist in confdefs.h, to ease 13242# handling of long lines. 13243ac_delim='%!_!# ' 13244for ac_last_try in false false :; do 13245 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13246 if test -z "$ac_tt"; then 13247 break 13248 elif $ac_last_try; then 13249 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13250 else 13251 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13252 fi 13253done 13254 13255# For the awk script, D is an array of macro values keyed by name, 13256# likewise P contains macro parameters if any. Preserve backslash 13257# newline sequences. 13258 13259ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13260sed -n ' 13261s/.\{148\}/&'"$ac_delim"'/g 13262t rset 13263:rset 13264s/^[ ]*#[ ]*define[ ][ ]*/ / 13265t def 13266d 13267:def 13268s/\\$// 13269t bsnl 13270s/["\\]/\\&/g 13271s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13272D["\1"]=" \3"/p 13273s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13274d 13275:bsnl 13276s/["\\]/\\&/g 13277s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13278D["\1"]=" \3\\\\\\n"\\/p 13279t cont 13280s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13281t cont 13282d 13283:cont 13284n 13285s/.\{148\}/&'"$ac_delim"'/g 13286t clear 13287:clear 13288s/\\$// 13289t bsnlc 13290s/["\\]/\\&/g; s/^/"/; s/$/"/p 13291d 13292:bsnlc 13293s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13294b cont 13295' <confdefs.h | sed ' 13296s/'"$ac_delim"'/"\\\ 13297"/g' >>$CONFIG_STATUS || ac_write_fail=1 13298 13299cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13300 for (key in D) D_is_set[key] = 1 13301 FS = "" 13302} 13303/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13304 line = \$ 0 13305 split(line, arg, " ") 13306 if (arg[1] == "#") { 13307 defundef = arg[2] 13308 mac1 = arg[3] 13309 } else { 13310 defundef = substr(arg[1], 2) 13311 mac1 = arg[2] 13312 } 13313 split(mac1, mac2, "(") #) 13314 macro = mac2[1] 13315 prefix = substr(line, 1, index(line, defundef) - 1) 13316 if (D_is_set[macro]) { 13317 # Preserve the white space surrounding the "#". 13318 print prefix "define", macro P[macro] D[macro] 13319 next 13320 } else { 13321 # Replace #undef with comments. This is necessary, for example, 13322 # in the case of _POSIX_SOURCE, which is predefined and required 13323 # on some systems where configure will not decide to define it. 13324 if (defundef == "undef") { 13325 print "/*", prefix defundef, macro, "*/" 13326 next 13327 } 13328 } 13329} 13330{ print } 13331_ACAWK 13332_ACEOF 13333cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13334 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13335fi # test -n "$CONFIG_HEADERS" 13336 13337 13338eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13339shift 13340for ac_tag 13341do 13342 case $ac_tag in 13343 :[FHLC]) ac_mode=$ac_tag; continue;; 13344 esac 13345 case $ac_mode$ac_tag in 13346 :[FHL]*:*);; 13347 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 13348 :[FH]-) ac_tag=-:-;; 13349 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13350 esac 13351 ac_save_IFS=$IFS 13352 IFS=: 13353 set x $ac_tag 13354 IFS=$ac_save_IFS 13355 shift 13356 ac_file=$1 13357 shift 13358 13359 case $ac_mode in 13360 :L) ac_source=$1;; 13361 :[FH]) 13362 ac_file_inputs= 13363 for ac_f 13364 do 13365 case $ac_f in 13366 -) ac_f="$ac_tmp/stdin";; 13367 *) # Look for the file first in the build tree, then in the source tree 13368 # (if the path is not absolute). The absolute path cannot be DOS-style, 13369 # because $ac_f cannot contain ':'. 13370 test -f "$ac_f" || 13371 case $ac_f in 13372 [\\/$]*) false;; 13373 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13374 esac || 13375 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 13376 esac 13377 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13378 as_fn_append ac_file_inputs " '$ac_f'" 13379 done 13380 13381 # Let's still pretend it is 'configure' which instantiates (i.e., don't 13382 # use $as_me), people would be surprised to read: 13383 # /* config.h. Generated by config.status. */ 13384 configure_input='Generated from '` 13385 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13386 `' by configure.' 13387 if test x"$ac_file" != x-; then 13388 configure_input="$ac_file. $configure_input" 13389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13390printf "%s\n" "$as_me: creating $ac_file" >&6;} 13391 fi 13392 # Neutralize special characters interpreted by sed in replacement strings. 13393 case $configure_input in #( 13394 *\&* | *\|* | *\\* ) 13395 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 13396 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13397 *) ac_sed_conf_input=$configure_input;; 13398 esac 13399 13400 case $ac_tag in 13401 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13402 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13403 esac 13404 ;; 13405 esac 13406 13407 ac_dir=`$as_dirname -- "$ac_file" || 13408$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13409 X"$ac_file" : 'X\(//\)[^/]' \| \ 13410 X"$ac_file" : 'X\(//\)$' \| \ 13411 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13412printf "%s\n" X"$ac_file" | 13413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13414 s//\1/ 13415 q 13416 } 13417 /^X\(\/\/\)[^/].*/{ 13418 s//\1/ 13419 q 13420 } 13421 /^X\(\/\/\)$/{ 13422 s//\1/ 13423 q 13424 } 13425 /^X\(\/\).*/{ 13426 s//\1/ 13427 q 13428 } 13429 s/.*/./; q'` 13430 as_dir="$ac_dir"; as_fn_mkdir_p 13431 ac_builddir=. 13432 13433case "$ac_dir" in 13434.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13435*) 13436 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13437 # A ".." for each directory in $ac_dir_suffix. 13438 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13439 case $ac_top_builddir_sub in 13440 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13441 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13442 esac ;; 13443esac 13444ac_abs_top_builddir=$ac_pwd 13445ac_abs_builddir=$ac_pwd$ac_dir_suffix 13446# for backward compatibility: 13447ac_top_builddir=$ac_top_build_prefix 13448 13449case $srcdir in 13450 .) # We are building in place. 13451 ac_srcdir=. 13452 ac_top_srcdir=$ac_top_builddir_sub 13453 ac_abs_top_srcdir=$ac_pwd ;; 13454 [\\/]* | ?:[\\/]* ) # Absolute name. 13455 ac_srcdir=$srcdir$ac_dir_suffix; 13456 ac_top_srcdir=$srcdir 13457 ac_abs_top_srcdir=$srcdir ;; 13458 *) # Relative name. 13459 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13460 ac_top_srcdir=$ac_top_build_prefix$srcdir 13461 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13462esac 13463ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13464 13465 13466 case $ac_mode in 13467 :F) 13468 # 13469 # CONFIG_FILE 13470 # 13471 13472 case $INSTALL in 13473 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13474 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13475 esac 13476 ac_MKDIR_P=$MKDIR_P 13477 case $MKDIR_P in 13478 [\\/$]* | ?:[\\/]* ) ;; 13479 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13480 esac 13481_ACEOF 13482 13483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13484# If the template does not know about datarootdir, expand it. 13485# FIXME: This hack should be removed a few years after 2.60. 13486ac_datarootdir_hack=; ac_datarootdir_seen= 13487ac_sed_dataroot=' 13488/datarootdir/ { 13489 p 13490 q 13491} 13492/@datadir@/p 13493/@docdir@/p 13494/@infodir@/p 13495/@localedir@/p 13496/@mandir@/p' 13497case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13498*datarootdir*) ac_datarootdir_seen=yes;; 13499*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13501printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13502_ACEOF 13503cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13504 ac_datarootdir_hack=' 13505 s&@datadir@&$datadir&g 13506 s&@docdir@&$docdir&g 13507 s&@infodir@&$infodir&g 13508 s&@localedir@&$localedir&g 13509 s&@mandir@&$mandir&g 13510 s&\\\${datarootdir}&$datarootdir&g' ;; 13511esac 13512_ACEOF 13513 13514# Neutralize VPATH when '$srcdir' = '.'. 13515# Shell code in configure.ac might set extrasub. 13516# FIXME: do we really want to maintain this feature? 13517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13518ac_sed_extra="$ac_vpsub 13519$extrasub 13520_ACEOF 13521cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13522:t 13523/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13524s|@configure_input@|$ac_sed_conf_input|;t t 13525s&@top_builddir@&$ac_top_builddir_sub&;t t 13526s&@top_build_prefix@&$ac_top_build_prefix&;t t 13527s&@srcdir@&$ac_srcdir&;t t 13528s&@abs_srcdir@&$ac_abs_srcdir&;t t 13529s&@top_srcdir@&$ac_top_srcdir&;t t 13530s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13531s&@builddir@&$ac_builddir&;t t 13532s&@abs_builddir@&$ac_abs_builddir&;t t 13533s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13534s&@INSTALL@&$ac_INSTALL&;t t 13535s&@MKDIR_P@&$ac_MKDIR_P&;t t 13536$ac_datarootdir_hack 13537" 13538eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13539 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13540 13541test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13542 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13543 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13544 "$ac_tmp/out"`; test -z "$ac_out"; } && 13545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13546which seems to be undefined. Please make sure it is defined" >&5 13547printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13548which seems to be undefined. Please make sure it is defined" >&2;} 13549 13550 rm -f "$ac_tmp/stdin" 13551 case $ac_file in 13552 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13553 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13554 esac \ 13555 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13556 ;; 13557 :H) 13558 # 13559 # CONFIG_HEADER 13560 # 13561 if test x"$ac_file" != x-; then 13562 { 13563 printf "%s\n" "/* $configure_input */" >&1 \ 13564 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13565 } >"$ac_tmp/config.h" \ 13566 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13567 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13569printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13570 else 13571 rm -f "$ac_file" 13572 mv "$ac_tmp/config.h" "$ac_file" \ 13573 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13574 fi 13575 else 13576 printf "%s\n" "/* $configure_input */" >&1 \ 13577 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13578 || as_fn_error $? "could not create -" "$LINENO" 5 13579 fi 13580# Compute "$ac_file"'s index in $config_headers. 13581_am_arg="$ac_file" 13582_am_stamp_count=1 13583for _am_header in $config_headers :; do 13584 case $_am_header in 13585 $_am_arg | $_am_arg:* ) 13586 break ;; 13587 * ) 13588 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13589 esac 13590done 13591echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13592$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13593 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13594 X"$_am_arg" : 'X\(//\)$' \| \ 13595 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13596printf "%s\n" X"$_am_arg" | 13597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13598 s//\1/ 13599 q 13600 } 13601 /^X\(\/\/\)[^/].*/{ 13602 s//\1/ 13603 q 13604 } 13605 /^X\(\/\/\)$/{ 13606 s//\1/ 13607 q 13608 } 13609 /^X\(\/\).*/{ 13610 s//\1/ 13611 q 13612 } 13613 s/.*/./; q'`/stamp-h$_am_stamp_count 13614 ;; 13615 13616 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13617printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13618 ;; 13619 esac 13620 13621 13622 case $ac_file$ac_mode in 13623 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13624 # Older Autoconf quotes --file arguments for eval, but not when files 13625 # are listed without --file. Let's play safe and only enable the eval 13626 # if we detect the quoting. 13627 # TODO: see whether this extra hack can be removed once we start 13628 # requiring Autoconf 2.70 or later. 13629 case $CONFIG_FILES in #( 13630 *\'*) : 13631 eval set x "$CONFIG_FILES" ;; #( 13632 *) : 13633 set x $CONFIG_FILES ;; #( 13634 *) : 13635 ;; 13636esac 13637 shift 13638 # Used to flag and report bootstrapping failures. 13639 am_rc=0 13640 for am_mf 13641 do 13642 # Strip MF so we end up with the name of the file. 13643 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13644 # Check whether this is an Automake generated Makefile which includes 13645 # dependency-tracking related rules and includes. 13646 # Grep'ing the whole file directly is not great: AIX grep has a line 13647 # limit of 2048, but all sed's we know have understand at least 4000. 13648 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13649 || continue 13650 am_dirpart=`$as_dirname -- "$am_mf" || 13651$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13652 X"$am_mf" : 'X\(//\)[^/]' \| \ 13653 X"$am_mf" : 'X\(//\)$' \| \ 13654 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13655printf "%s\n" X"$am_mf" | 13656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13657 s//\1/ 13658 q 13659 } 13660 /^X\(\/\/\)[^/].*/{ 13661 s//\1/ 13662 q 13663 } 13664 /^X\(\/\/\)$/{ 13665 s//\1/ 13666 q 13667 } 13668 /^X\(\/\).*/{ 13669 s//\1/ 13670 q 13671 } 13672 s/.*/./; q'` 13673 am_filepart=`$as_basename -- "$am_mf" || 13674$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13675 X"$am_mf" : 'X\(//\)$' \| \ 13676 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13677printf "%s\n" X/"$am_mf" | 13678 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13679 s//\1/ 13680 q 13681 } 13682 /^X\/\(\/\/\)$/{ 13683 s//\1/ 13684 q 13685 } 13686 /^X\/\(\/\).*/{ 13687 s//\1/ 13688 q 13689 } 13690 s/.*/./; q'` 13691 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13692 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13693 | $MAKE -f - am--depfiles" >&5 13694 (cd "$am_dirpart" \ 13695 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13696 | $MAKE -f - am--depfiles) >&5 2>&5 13697 ac_status=$? 13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13699 (exit $ac_status); } || am_rc=$? 13700 done 13701 if test $am_rc -ne 0; then 13702 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13703printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13704as_fn_error $? "Something went wrong bootstrapping makefile fragments 13705 for automatic dependency tracking. If GNU make was not used, consider 13706 re-running the configure script with MAKE=\"gmake\" (or whatever is 13707 necessary). You can also try re-running configure with the 13708 '--disable-dependency-tracking' option to at least be able to build 13709 the package (albeit without support for automatic dependency tracking). 13710See 'config.log' for more details" "$LINENO" 5; } 13711 fi 13712 { am_dirpart=; unset am_dirpart;} 13713 { am_filepart=; unset am_filepart;} 13714 { am_mf=; unset am_mf;} 13715 { am_rc=; unset am_rc;} 13716 rm -f conftest-deps.mk 13717} 13718 ;; 13719 13720 esac 13721done # for ac_tag 13722 13723 13724as_fn_exit 0 13725_ACEOF 13726ac_clean_files=$ac_clean_files_save 13727 13728test $ac_write_fail = 0 || 13729 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13730 13731 13732# configure is writing to config.log, and then calls config.status. 13733# config.status does its own redirection, appending to config.log. 13734# Unfortunately, on DOS this fails, as config.log is still kept open 13735# by configure, so config.status won't be able to write to it; its 13736# output is simply discarded. So we exec the FD to /dev/null, 13737# effectively closing config.log, so it can be properly (re)opened and 13738# appended to by config.status. When coming back to configure, we 13739# need to make the FD available again. 13740if test "$no_create" != yes; then 13741 ac_cs_success=: 13742 ac_config_status_args= 13743 test "$silent" = yes && 13744 ac_config_status_args="$ac_config_status_args --quiet" 13745 exec 5>/dev/null 13746 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13747 exec 5>>config.log 13748 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13749 # would make configure fail if this is the last instruction. 13750 $ac_cs_success || as_fn_exit 1 13751fi 13752if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13754printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13755fi 13756 13757 13758