configure revision 46374b8d
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for xmag 1.0.8. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmag/-/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/xmag/-/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='xmag' 607PACKAGE_TARNAME='xmag' 608PACKAGE_VERSION='1.0.8' 609PACKAGE_STRING='xmag 1.0.8' 610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xmag/-/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_subst_vars='am__EXEEXT_FALSE 647am__EXEEXT_TRUE 648LTLIBOBJS 649LIBOBJS 650appdefaultdir 651XMAG_LIBS 652XMAG_CFLAGS 653MAN_SUBSTS 654XORG_MAN_PAGE 655ADMIN_MAN_DIR 656DRIVER_MAN_DIR 657MISC_MAN_DIR 658FILE_MAN_DIR 659LIB_MAN_DIR 660APP_MAN_DIR 661ADMIN_MAN_SUFFIX 662DRIVER_MAN_SUFFIX 663MISC_MAN_SUFFIX 664FILE_MAN_SUFFIX 665LIB_MAN_SUFFIX 666APP_MAN_SUFFIX 667SED 668host_os 669host_vendor 670host_cpu 671host 672build_os 673build_vendor 674build_cpu 675build 676INSTALL_CMD 677PKG_CONFIG_LIBDIR 678PKG_CONFIG_PATH 679PKG_CONFIG 680CHANGELOG_CMD 681STRICT_CFLAGS 682CWARNFLAGS 683BASE_CFLAGS 684am__fastdepCC_FALSE 685am__fastdepCC_TRUE 686CCDEPMODE 687am__nodep 688AMDEPBACKSLASH 689AMDEP_FALSE 690AMDEP_TRUE 691am__include 692DEPDIR 693OBJEXT 694EXEEXT 695ac_ct_CC 696CPPFLAGS 697LDFLAGS 698CFLAGS 699CC 700am__xargs_n 701am__rm_f_notfound 702AM_BACKSLASH 703AM_DEFAULT_VERBOSITY 704AM_DEFAULT_V 705AM_V 706CSCOPE 707ETAGS 708CTAGS 709am__untar 710am__tar 711AMTAR 712am__leading_dot 713SET_MAKE 714AWK 715mkdir_p 716MKDIR_P 717INSTALL_STRIP_PROGRAM 718STRIP 719install_sh 720MAKEINFO 721AUTOHEADER 722AUTOMAKE 723AUTOCONF 724ACLOCAL 725VERSION 726PACKAGE 727CYGPATH_W 728am__isrc 729INSTALL_DATA 730INSTALL_SCRIPT 731INSTALL_PROGRAM 732target_alias 733host_alias 734build_alias 735LIBS 736ECHO_T 737ECHO_N 738ECHO_C 739DEFS 740mandir 741localedir 742libdir 743psdir 744pdfdir 745dvidir 746htmldir 747infodir 748docdir 749oldincludedir 750includedir 751runstatedir 752localstatedir 753sharedstatedir 754sysconfdir 755datadir 756datarootdir 757libexecdir 758sbindir 759bindir 760program_transform_name 761prefix 762exec_prefix 763PACKAGE_URL 764PACKAGE_BUGREPORT 765PACKAGE_STRING 766PACKAGE_VERSION 767PACKAGE_TARNAME 768PACKAGE_NAME 769PATH_SEPARATOR 770SHELL 771am__quote' 772ac_subst_files='' 773ac_user_opts=' 774enable_option_checking 775enable_silent_rules 776enable_dependency_tracking 777enable_selective_werror 778enable_strict_compilation 779with_appdefaultdir 780' 781 ac_precious_vars='build_alias 782host_alias 783target_alias 784CC 785CFLAGS 786LDFLAGS 787LIBS 788CPPFLAGS 789PKG_CONFIG 790PKG_CONFIG_PATH 791PKG_CONFIG_LIBDIR 792XMAG_CFLAGS 793XMAG_LIBS' 794 795 796# Initialize some variables set by options. 797ac_init_help= 798ac_init_version=false 799ac_unrecognized_opts= 800ac_unrecognized_sep= 801# The variables have the same names as the options, with 802# dashes changed to underlines. 803cache_file=/dev/null 804exec_prefix=NONE 805no_create= 806no_recursion= 807prefix=NONE 808program_prefix=NONE 809program_suffix=NONE 810program_transform_name=s,x,x, 811silent= 812site= 813srcdir= 814verbose= 815x_includes=NONE 816x_libraries=NONE 817 818# Installation directory options. 819# These are left unexpanded so users can "make install exec_prefix=/foo" 820# and all the variables that are supposed to be based on exec_prefix 821# by default will actually change. 822# Use braces instead of parens because sh, perl, etc. also accept them. 823# (The list follows the same order as the GNU Coding Standards.) 824bindir='${exec_prefix}/bin' 825sbindir='${exec_prefix}/sbin' 826libexecdir='${exec_prefix}/libexec' 827datarootdir='${prefix}/share' 828datadir='${datarootdir}' 829sysconfdir='${prefix}/etc' 830sharedstatedir='${prefix}/com' 831localstatedir='${prefix}/var' 832runstatedir='${localstatedir}/run' 833includedir='${prefix}/include' 834oldincludedir='/usr/include' 835docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 836infodir='${datarootdir}/info' 837htmldir='${docdir}' 838dvidir='${docdir}' 839pdfdir='${docdir}' 840psdir='${docdir}' 841libdir='${exec_prefix}/lib' 842localedir='${datarootdir}/locale' 843mandir='${datarootdir}/man' 844 845ac_prev= 846ac_dashdash= 847for ac_option 848do 849 # If the previous option needs an argument, assign it. 850 if test -n "$ac_prev"; then 851 eval $ac_prev=\$ac_option 852 ac_prev= 853 continue 854 fi 855 856 case $ac_option in 857 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 858 *=) ac_optarg= ;; 859 *) ac_optarg=yes ;; 860 esac 861 862 case $ac_dashdash$ac_option in 863 --) 864 ac_dashdash=yes ;; 865 866 -bindir | --bindir | --bindi | --bind | --bin | --bi) 867 ac_prev=bindir ;; 868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 869 bindir=$ac_optarg ;; 870 871 -build | --build | --buil | --bui | --bu) 872 ac_prev=build_alias ;; 873 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 874 build_alias=$ac_optarg ;; 875 876 -cache-file | --cache-file | --cache-fil | --cache-fi \ 877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 878 ac_prev=cache_file ;; 879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 881 cache_file=$ac_optarg ;; 882 883 --config-cache | -C) 884 cache_file=config.cache ;; 885 886 -datadir | --datadir | --datadi | --datad) 887 ac_prev=datadir ;; 888 -datadir=* | --datadir=* | --datadi=* | --datad=*) 889 datadir=$ac_optarg ;; 890 891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 892 | --dataroo | --dataro | --datar) 893 ac_prev=datarootdir ;; 894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 896 datarootdir=$ac_optarg ;; 897 898 -disable-* | --disable-*) 899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 900 # Reject names that are not valid shell variable names. 901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 902 as_fn_error $? "invalid feature name: '$ac_useropt'" 903 ac_useropt_orig=$ac_useropt 904 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 905 case $ac_user_opts in 906 *" 907"enable_$ac_useropt" 908"*) ;; 909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 910 ac_unrecognized_sep=', ';; 911 esac 912 eval enable_$ac_useropt=no ;; 913 914 -docdir | --docdir | --docdi | --doc | --do) 915 ac_prev=docdir ;; 916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 917 docdir=$ac_optarg ;; 918 919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 920 ac_prev=dvidir ;; 921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 922 dvidir=$ac_optarg ;; 923 924 -enable-* | --enable-*) 925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 926 # Reject names that are not valid shell variable names. 927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 928 as_fn_error $? "invalid feature name: '$ac_useropt'" 929 ac_useropt_orig=$ac_useropt 930 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 931 case $ac_user_opts in 932 *" 933"enable_$ac_useropt" 934"*) ;; 935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 936 ac_unrecognized_sep=', ';; 937 esac 938 eval enable_$ac_useropt=\$ac_optarg ;; 939 940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 942 | --exec | --exe | --ex) 943 ac_prev=exec_prefix ;; 944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 946 | --exec=* | --exe=* | --ex=*) 947 exec_prefix=$ac_optarg ;; 948 949 -gas | --gas | --ga | --g) 950 # Obsolete; use --with-gas. 951 with_gas=yes ;; 952 953 -help | --help | --hel | --he | -h) 954 ac_init_help=long ;; 955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 956 ac_init_help=recursive ;; 957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 958 ac_init_help=short ;; 959 960 -host | --host | --hos | --ho) 961 ac_prev=host_alias ;; 962 -host=* | --host=* | --hos=* | --ho=*) 963 host_alias=$ac_optarg ;; 964 965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 966 ac_prev=htmldir ;; 967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 968 | --ht=*) 969 htmldir=$ac_optarg ;; 970 971 -includedir | --includedir | --includedi | --included | --include \ 972 | --includ | --inclu | --incl | --inc) 973 ac_prev=includedir ;; 974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 975 | --includ=* | --inclu=* | --incl=* | --inc=*) 976 includedir=$ac_optarg ;; 977 978 -infodir | --infodir | --infodi | --infod | --info | --inf) 979 ac_prev=infodir ;; 980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 981 infodir=$ac_optarg ;; 982 983 -libdir | --libdir | --libdi | --libd) 984 ac_prev=libdir ;; 985 -libdir=* | --libdir=* | --libdi=* | --libd=*) 986 libdir=$ac_optarg ;; 987 988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 989 | --libexe | --libex | --libe) 990 ac_prev=libexecdir ;; 991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 992 | --libexe=* | --libex=* | --libe=*) 993 libexecdir=$ac_optarg ;; 994 995 -localedir | --localedir | --localedi | --localed | --locale) 996 ac_prev=localedir ;; 997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 998 localedir=$ac_optarg ;; 999 1000 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1001 | --localstate | --localstat | --localsta | --localst | --locals) 1002 ac_prev=localstatedir ;; 1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1005 localstatedir=$ac_optarg ;; 1006 1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1008 ac_prev=mandir ;; 1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1010 mandir=$ac_optarg ;; 1011 1012 -nfp | --nfp | --nf) 1013 # Obsolete; use --without-fp. 1014 with_fp=no ;; 1015 1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1017 | --no-cr | --no-c | -n) 1018 no_create=yes ;; 1019 1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1022 no_recursion=yes ;; 1023 1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1026 | --oldin | --oldi | --old | --ol | --o) 1027 ac_prev=oldincludedir ;; 1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1031 oldincludedir=$ac_optarg ;; 1032 1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1034 ac_prev=prefix ;; 1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1036 prefix=$ac_optarg ;; 1037 1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1039 | --program-pre | --program-pr | --program-p) 1040 ac_prev=program_prefix ;; 1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1043 program_prefix=$ac_optarg ;; 1044 1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1046 | --program-suf | --program-su | --program-s) 1047 ac_prev=program_suffix ;; 1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1050 program_suffix=$ac_optarg ;; 1051 1052 -program-transform-name | --program-transform-name \ 1053 | --program-transform-nam | --program-transform-na \ 1054 | --program-transform-n | --program-transform- \ 1055 | --program-transform | --program-transfor \ 1056 | --program-transfo | --program-transf \ 1057 | --program-trans | --program-tran \ 1058 | --progr-tra | --program-tr | --program-t) 1059 ac_prev=program_transform_name ;; 1060 -program-transform-name=* | --program-transform-name=* \ 1061 | --program-transform-nam=* | --program-transform-na=* \ 1062 | --program-transform-n=* | --program-transform-=* \ 1063 | --program-transform=* | --program-transfor=* \ 1064 | --program-transfo=* | --program-transf=* \ 1065 | --program-trans=* | --program-tran=* \ 1066 | --progr-tra=* | --program-tr=* | --program-t=*) 1067 program_transform_name=$ac_optarg ;; 1068 1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1070 ac_prev=pdfdir ;; 1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1072 pdfdir=$ac_optarg ;; 1073 1074 -psdir | --psdir | --psdi | --psd | --ps) 1075 ac_prev=psdir ;; 1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1077 psdir=$ac_optarg ;; 1078 1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1080 | -silent | --silent | --silen | --sile | --sil) 1081 silent=yes ;; 1082 1083 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1084 | --runstate | --runstat | --runsta | --runst | --runs \ 1085 | --run | --ru | --r) 1086 ac_prev=runstatedir ;; 1087 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1088 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1089 | --run=* | --ru=* | --r=*) 1090 runstatedir=$ac_optarg ;; 1091 1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1093 ac_prev=sbindir ;; 1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1095 | --sbi=* | --sb=*) 1096 sbindir=$ac_optarg ;; 1097 1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1100 | --sharedst | --shareds | --shared | --share | --shar \ 1101 | --sha | --sh) 1102 ac_prev=sharedstatedir ;; 1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1106 | --sha=* | --sh=*) 1107 sharedstatedir=$ac_optarg ;; 1108 1109 -site | --site | --sit) 1110 ac_prev=site ;; 1111 -site=* | --site=* | --sit=*) 1112 site=$ac_optarg ;; 1113 1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1115 ac_prev=srcdir ;; 1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1117 srcdir=$ac_optarg ;; 1118 1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1120 | --syscon | --sysco | --sysc | --sys | --sy) 1121 ac_prev=sysconfdir ;; 1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1124 sysconfdir=$ac_optarg ;; 1125 1126 -target | --target | --targe | --targ | --tar | --ta | --t) 1127 ac_prev=target_alias ;; 1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1129 target_alias=$ac_optarg ;; 1130 1131 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1132 verbose=yes ;; 1133 1134 -version | --version | --versio | --versi | --vers | -V) 1135 ac_init_version=: ;; 1136 1137 -with-* | --with-*) 1138 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1139 # Reject names that are not valid shell variable names. 1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1141 as_fn_error $? "invalid package name: '$ac_useropt'" 1142 ac_useropt_orig=$ac_useropt 1143 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1144 case $ac_user_opts in 1145 *" 1146"with_$ac_useropt" 1147"*) ;; 1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1149 ac_unrecognized_sep=', ';; 1150 esac 1151 eval with_$ac_useropt=\$ac_optarg ;; 1152 1153 -without-* | --without-*) 1154 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1155 # Reject names that are not valid shell variable names. 1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1157 as_fn_error $? "invalid package name: '$ac_useropt'" 1158 ac_useropt_orig=$ac_useropt 1159 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1160 case $ac_user_opts in 1161 *" 1162"with_$ac_useropt" 1163"*) ;; 1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1165 ac_unrecognized_sep=', ';; 1166 esac 1167 eval with_$ac_useropt=no ;; 1168 1169 --x) 1170 # Obsolete; use --with-x. 1171 with_x=yes ;; 1172 1173 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1174 | --x-incl | --x-inc | --x-in | --x-i) 1175 ac_prev=x_includes ;; 1176 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1177 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1178 x_includes=$ac_optarg ;; 1179 1180 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1181 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1182 ac_prev=x_libraries ;; 1183 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1184 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1185 x_libraries=$ac_optarg ;; 1186 1187 -*) as_fn_error $? "unrecognized option: '$ac_option' 1188Try '$0 --help' for more information" 1189 ;; 1190 1191 *=*) 1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1193 # Reject names that are not valid shell variable names. 1194 case $ac_envvar in #( 1195 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1196 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1197 esac 1198 eval $ac_envvar=\$ac_optarg 1199 export $ac_envvar ;; 1200 1201 *) 1202 # FIXME: should be removed in autoconf 3.0. 1203 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1204 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1205 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1206 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1207 ;; 1208 1209 esac 1210done 1211 1212if test -n "$ac_prev"; then 1213 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1214 as_fn_error $? "missing argument to $ac_option" 1215fi 1216 1217if test -n "$ac_unrecognized_opts"; then 1218 case $enable_option_checking in 1219 no) ;; 1220 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1221 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1222 esac 1223fi 1224 1225# Check all directory arguments for consistency. 1226for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1227 datadir sysconfdir sharedstatedir localstatedir includedir \ 1228 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1229 libdir localedir mandir runstatedir 1230do 1231 eval ac_val=\$$ac_var 1232 # Remove trailing slashes. 1233 case $ac_val in 1234 */ ) 1235 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1236 eval $ac_var=\$ac_val;; 1237 esac 1238 # Be sure to have absolute directory names. 1239 case $ac_val in 1240 [\\/$]* | ?:[\\/]* ) continue;; 1241 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1242 esac 1243 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1244done 1245 1246# There might be people who depend on the old broken behavior: '$host' 1247# used to hold the argument of --host etc. 1248# FIXME: To remove some day. 1249build=$build_alias 1250host=$host_alias 1251target=$target_alias 1252 1253# FIXME: To remove some day. 1254if test "x$host_alias" != x; then 1255 if test "x$build_alias" = x; then 1256 cross_compiling=maybe 1257 elif test "x$build_alias" != "x$host_alias"; then 1258 cross_compiling=yes 1259 fi 1260fi 1261 1262ac_tool_prefix= 1263test -n "$host_alias" && ac_tool_prefix=$host_alias- 1264 1265test "$silent" = yes && exec 6>/dev/null 1266 1267 1268ac_pwd=`pwd` && test -n "$ac_pwd" && 1269ac_ls_di=`ls -di .` && 1270ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1271 as_fn_error $? "working directory cannot be determined" 1272test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1273 as_fn_error $? "pwd does not report name of working directory" 1274 1275 1276# Find the source files, if location was not specified. 1277if test -z "$srcdir"; then 1278 ac_srcdir_defaulted=yes 1279 # Try the directory containing this script, then the parent directory. 1280 ac_confdir=`$as_dirname -- "$as_myself" || 1281$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1282 X"$as_myself" : 'X\(//\)[^/]' \| \ 1283 X"$as_myself" : 'X\(//\)$' \| \ 1284 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1285printf "%s\n" X"$as_myself" | 1286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1287 s//\1/ 1288 q 1289 } 1290 /^X\(\/\/\)[^/].*/{ 1291 s//\1/ 1292 q 1293 } 1294 /^X\(\/\/\)$/{ 1295 s//\1/ 1296 q 1297 } 1298 /^X\(\/\).*/{ 1299 s//\1/ 1300 q 1301 } 1302 s/.*/./; q'` 1303 srcdir=$ac_confdir 1304 if test ! -r "$srcdir/$ac_unique_file"; then 1305 srcdir=.. 1306 fi 1307else 1308 ac_srcdir_defaulted=no 1309fi 1310if test ! -r "$srcdir/$ac_unique_file"; then 1311 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1312 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1313fi 1314ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1315ac_abs_confdir=`( 1316 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1317 pwd)` 1318# When building in place, set srcdir=. 1319if test "$ac_abs_confdir" = "$ac_pwd"; then 1320 srcdir=. 1321fi 1322# Remove unnecessary trailing slashes from srcdir. 1323# Double slashes in file names in object file debugging info 1324# mess up M-x gdb in Emacs. 1325case $srcdir in 1326*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1327esac 1328for ac_var in $ac_precious_vars; do 1329 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1330 eval ac_env_${ac_var}_value=\$${ac_var} 1331 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1332 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1333done 1334 1335# 1336# Report the --help message. 1337# 1338if test "$ac_init_help" = "long"; then 1339 # Omit some internal or obsolete options to make the list less imposing. 1340 # This message is too long to be a string in the A/UX 3.1 sh. 1341 cat <<_ACEOF 1342'configure' configures xmag 1.0.8 to adapt to many kinds of systems. 1343 1344Usage: $0 [OPTION]... [VAR=VALUE]... 1345 1346To assign environment variables (e.g., CC, CFLAGS...), specify them as 1347VAR=VALUE. See below for descriptions of some of the useful variables. 1348 1349Defaults for the options are specified in brackets. 1350 1351Configuration: 1352 -h, --help display this help and exit 1353 --help=short display options specific to this package 1354 --help=recursive display the short help of all the included packages 1355 -V, --version display version information and exit 1356 -q, --quiet, --silent do not print 'checking ...' messages 1357 --cache-file=FILE cache test results in FILE [disabled] 1358 -C, --config-cache alias for '--cache-file=config.cache' 1359 -n, --no-create do not create output files 1360 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1361 1362Installation directories: 1363 --prefix=PREFIX install architecture-independent files in PREFIX 1364 [$ac_default_prefix] 1365 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1366 [PREFIX] 1367 1368By default, 'make install' will install all the files in 1369'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1370an installation prefix other than '$ac_default_prefix' using '--prefix', 1371for instance '--prefix=\$HOME'. 1372 1373For better control, use the options below. 1374 1375Fine tuning of the installation directories: 1376 --bindir=DIR user executables [EPREFIX/bin] 1377 --sbindir=DIR system admin executables [EPREFIX/sbin] 1378 --libexecdir=DIR program executables [EPREFIX/libexec] 1379 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1380 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1381 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1382 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1383 --libdir=DIR object code libraries [EPREFIX/lib] 1384 --includedir=DIR C header files [PREFIX/include] 1385 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1388 --infodir=DIR info documentation [DATAROOTDIR/info] 1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1390 --mandir=DIR man documentation [DATAROOTDIR/man] 1391 --docdir=DIR documentation root [DATAROOTDIR/doc/xmag] 1392 --htmldir=DIR html documentation [DOCDIR] 1393 --dvidir=DIR dvi documentation [DOCDIR] 1394 --pdfdir=DIR pdf documentation [DOCDIR] 1395 --psdir=DIR ps documentation [DOCDIR] 1396_ACEOF 1397 1398 cat <<\_ACEOF 1399 1400Program names: 1401 --program-prefix=PREFIX prepend PREFIX to installed program names 1402 --program-suffix=SUFFIX append SUFFIX to installed program names 1403 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1404 1405System types: 1406 --build=BUILD configure for building on BUILD [guessed] 1407 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1408_ACEOF 1409fi 1410 1411if test -n "$ac_init_help"; then 1412 case $ac_init_help in 1413 short | recursive ) echo "Configuration of xmag 1.0.8:";; 1414 esac 1415 cat <<\_ACEOF 1416 1417Optional Features: 1418 --disable-option-checking ignore unrecognized --enable/--with options 1419 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1420 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1421 --enable-silent-rules less verbose build output (undo: "make V=1") 1422 --disable-silent-rules verbose build output (undo: "make V=0") 1423 --enable-dependency-tracking 1424 do not reject slow dependency extractors 1425 --disable-dependency-tracking 1426 speeds up one-time build 1427 --disable-selective-werror 1428 Turn off selective compiler errors. (default: 1429 enabled) 1430 --enable-strict-compilation 1431 Enable all warnings from compiler and make them 1432 errors (default: disabled) 1433 1434Optional Packages: 1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1437 --with-appdefaultdir=<pathname> 1438 specify directory for app-defaults files (default is 1439 autodetected) 1440 1441Some influential environment variables: 1442 CC C compiler command 1443 CFLAGS C compiler flags 1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1445 nonstandard directory <lib dir> 1446 LIBS libraries to pass to the linker, e.g. -l<library> 1447 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1448 you have headers in a nonstandard directory <include dir> 1449 PKG_CONFIG path to pkg-config utility 1450 PKG_CONFIG_PATH 1451 directories to add to pkg-config's search path 1452 PKG_CONFIG_LIBDIR 1453 path overriding pkg-config's built-in search path 1454 XMAG_CFLAGS C compiler flags for XMAG, overriding pkg-config 1455 XMAG_LIBS linker flags for XMAG, overriding pkg-config 1456 1457Use these variables to override the choices made by 'configure' or to help 1458it to find libraries and programs with nonstandard names/locations. 1459 1460Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmag/-/issues>. 1461_ACEOF 1462ac_status=$? 1463fi 1464 1465if test "$ac_init_help" = "recursive"; then 1466 # If there are subdirs, report their specific --help. 1467 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1468 test -d "$ac_dir" || 1469 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1470 continue 1471 ac_builddir=. 1472 1473case "$ac_dir" in 1474.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1475*) 1476 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1477 # A ".." for each directory in $ac_dir_suffix. 1478 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1479 case $ac_top_builddir_sub in 1480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1482 esac ;; 1483esac 1484ac_abs_top_builddir=$ac_pwd 1485ac_abs_builddir=$ac_pwd$ac_dir_suffix 1486# for backward compatibility: 1487ac_top_builddir=$ac_top_build_prefix 1488 1489case $srcdir in 1490 .) # We are building in place. 1491 ac_srcdir=. 1492 ac_top_srcdir=$ac_top_builddir_sub 1493 ac_abs_top_srcdir=$ac_pwd ;; 1494 [\\/]* | ?:[\\/]* ) # Absolute name. 1495 ac_srcdir=$srcdir$ac_dir_suffix; 1496 ac_top_srcdir=$srcdir 1497 ac_abs_top_srcdir=$srcdir ;; 1498 *) # Relative name. 1499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1500 ac_top_srcdir=$ac_top_build_prefix$srcdir 1501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1502esac 1503ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1504 1505 cd "$ac_dir" || { ac_status=$?; continue; } 1506 # Check for configure.gnu first; this name is used for a wrapper for 1507 # Metaconfig's "Configure" on case-insensitive file systems. 1508 if test -f "$ac_srcdir/configure.gnu"; then 1509 echo && 1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1511 elif test -f "$ac_srcdir/configure"; then 1512 echo && 1513 $SHELL "$ac_srcdir/configure" --help=recursive 1514 else 1515 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1516 fi || ac_status=$? 1517 cd "$ac_pwd" || { ac_status=$?; break; } 1518 done 1519fi 1520 1521test -n "$ac_init_help" && exit $ac_status 1522if $ac_init_version; then 1523 cat <<\_ACEOF 1524xmag configure 1.0.8 1525generated by GNU Autoconf 2.72 1526 1527Copyright (C) 2023 Free Software Foundation, Inc. 1528This configure script is free software; the Free Software Foundation 1529gives unlimited permission to copy, distribute and modify it. 1530_ACEOF 1531 exit 1532fi 1533 1534## ------------------------ ## 1535## Autoconf initialization. ## 1536## ------------------------ ## 1537 1538# ac_fn_c_try_compile LINENO 1539# -------------------------- 1540# Try to compile conftest.$ac_ext, and return whether this succeeded. 1541ac_fn_c_try_compile () 1542{ 1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1544 rm -f conftest.$ac_objext conftest.beam 1545 if { { ac_try="$ac_compile" 1546case "(($ac_try" in 1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1548 *) ac_try_echo=$ac_try;; 1549esac 1550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1551printf "%s\n" "$ac_try_echo"; } >&5 1552 (eval "$ac_compile") 2>conftest.err 1553 ac_status=$? 1554 if test -s conftest.err; then 1555 grep -v '^ *+' conftest.err >conftest.er1 1556 cat conftest.er1 >&5 1557 mv -f conftest.er1 conftest.err 1558 fi 1559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1560 test $ac_status = 0; } && { 1561 test -z "$ac_c_werror_flag" || 1562 test ! -s conftest.err 1563 } && test -s conftest.$ac_objext 1564then : 1565 ac_retval=0 1566else case e in #( 1567 e) printf "%s\n" "$as_me: failed program was:" >&5 1568sed 's/^/| /' conftest.$ac_ext >&5 1569 1570 ac_retval=1 ;; 1571esac 1572fi 1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1574 as_fn_set_status $ac_retval 1575 1576} # ac_fn_c_try_compile 1577 1578# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1579# ------------------------------------------------------------------ 1580# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1581# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1582ac_fn_check_decl () 1583{ 1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1585 as_decl_name=`echo $2|sed 's/ *(.*//'` 1586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1587printf %s "checking whether $as_decl_name is declared... " >&6; } 1588if eval test \${$3+y} 1589then : 1590 printf %s "(cached) " >&6 1591else case e in #( 1592 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1593 eval ac_save_FLAGS=\$$6 1594 as_fn_append $6 " $5" 1595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1596/* end confdefs.h. */ 1597$4 1598int 1599main (void) 1600{ 1601#ifndef $as_decl_name 1602#ifdef __cplusplus 1603 (void) $as_decl_use; 1604#else 1605 (void) $as_decl_name; 1606#endif 1607#endif 1608 1609 ; 1610 return 0; 1611} 1612_ACEOF 1613if ac_fn_c_try_compile "$LINENO" 1614then : 1615 eval "$3=yes" 1616else case e in #( 1617 e) eval "$3=no" ;; 1618esac 1619fi 1620rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1621 eval $6=\$ac_save_FLAGS 1622 ;; 1623esac 1624fi 1625eval ac_res=\$$3 1626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1627printf "%s\n" "$ac_res" >&6; } 1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1629 1630} # ac_fn_check_decl 1631 1632# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1633# ------------------------------------------------------- 1634# Tests whether HEADER exists and can be compiled using the include files in 1635# INCLUDES, setting the cache variable VAR accordingly. 1636ac_fn_c_check_header_compile () 1637{ 1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1640printf %s "checking for $2... " >&6; } 1641if eval test \${$3+y} 1642then : 1643 printf %s "(cached) " >&6 1644else case e in #( 1645 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1646/* end confdefs.h. */ 1647$4 1648#include <$2> 1649_ACEOF 1650if ac_fn_c_try_compile "$LINENO" 1651then : 1652 eval "$3=yes" 1653else case e in #( 1654 e) eval "$3=no" ;; 1655esac 1656fi 1657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1658esac 1659fi 1660eval ac_res=\$$3 1661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1662printf "%s\n" "$ac_res" >&6; } 1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1664 1665} # ac_fn_c_check_header_compile 1666 1667# ac_fn_c_try_link LINENO 1668# ----------------------- 1669# Try to link conftest.$ac_ext, and return whether this succeeded. 1670ac_fn_c_try_link () 1671{ 1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1673 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1674 if { { ac_try="$ac_link" 1675case "(($ac_try" in 1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1677 *) ac_try_echo=$ac_try;; 1678esac 1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1680printf "%s\n" "$ac_try_echo"; } >&5 1681 (eval "$ac_link") 2>conftest.err 1682 ac_status=$? 1683 if test -s conftest.err; then 1684 grep -v '^ *+' conftest.err >conftest.er1 1685 cat conftest.er1 >&5 1686 mv -f conftest.er1 conftest.err 1687 fi 1688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1689 test $ac_status = 0; } && { 1690 test -z "$ac_c_werror_flag" || 1691 test ! -s conftest.err 1692 } && test -s conftest$ac_exeext && { 1693 test "$cross_compiling" = yes || 1694 test -x conftest$ac_exeext 1695 } 1696then : 1697 ac_retval=0 1698else case e in #( 1699 e) printf "%s\n" "$as_me: failed program was:" >&5 1700sed 's/^/| /' conftest.$ac_ext >&5 1701 1702 ac_retval=1 ;; 1703esac 1704fi 1705 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1706 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1707 # interfere with the next link command; also delete a directory that is 1708 # left behind by Apple's compiler. We do this before executing the actions. 1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1711 as_fn_set_status $ac_retval 1712 1713} # ac_fn_c_try_link 1714 1715# ac_fn_c_check_func LINENO FUNC VAR 1716# ---------------------------------- 1717# Tests whether FUNC exists, setting the cache variable VAR accordingly 1718ac_fn_c_check_func () 1719{ 1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1722printf %s "checking for $2... " >&6; } 1723if eval test \${$3+y} 1724then : 1725 printf %s "(cached) " >&6 1726else case e in #( 1727 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1728/* end confdefs.h. */ 1729/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1730 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1731#define $2 innocuous_$2 1732 1733/* System header to define __stub macros and hopefully few prototypes, 1734 which can conflict with char $2 (void); below. */ 1735 1736#include <limits.h> 1737#undef $2 1738 1739/* Override any GCC internal prototype to avoid an error. 1740 Use char because int might match the return type of a GCC 1741 builtin and then its argument prototype would still apply. */ 1742#ifdef __cplusplus 1743extern "C" 1744#endif 1745char $2 (void); 1746/* The GNU C library defines this for functions which it implements 1747 to always fail with ENOSYS. Some functions are actually named 1748 something starting with __ and the normal name is an alias. */ 1749#if defined __stub_$2 || defined __stub___$2 1750choke me 1751#endif 1752 1753int 1754main (void) 1755{ 1756return $2 (); 1757 ; 1758 return 0; 1759} 1760_ACEOF 1761if ac_fn_c_try_link "$LINENO" 1762then : 1763 eval "$3=yes" 1764else case e in #( 1765 e) eval "$3=no" ;; 1766esac 1767fi 1768rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1769 conftest$ac_exeext conftest.$ac_ext ;; 1770esac 1771fi 1772eval ac_res=\$$3 1773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1774printf "%s\n" "$ac_res" >&6; } 1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1776 1777} # ac_fn_c_check_func 1778ac_configure_args_raw= 1779for ac_arg 1780do 1781 case $ac_arg in 1782 *\'*) 1783 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1784 esac 1785 as_fn_append ac_configure_args_raw " '$ac_arg'" 1786done 1787 1788case $ac_configure_args_raw in 1789 *$as_nl*) 1790 ac_safe_unquote= ;; 1791 *) 1792 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1793 ac_unsafe_a="$ac_unsafe_z#~" 1794 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1795 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1796esac 1797 1798cat >config.log <<_ACEOF 1799This file contains any messages produced by compilers while 1800running configure, to aid debugging if configure makes a mistake. 1801 1802It was created by xmag $as_me 1.0.8, which was 1803generated by GNU Autoconf 2.72. Invocation command line was 1804 1805 $ $0$ac_configure_args_raw 1806 1807_ACEOF 1808exec 5>>config.log 1809{ 1810cat <<_ASUNAME 1811## --------- ## 1812## Platform. ## 1813## --------- ## 1814 1815hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1816uname -m = `(uname -m) 2>/dev/null || echo unknown` 1817uname -r = `(uname -r) 2>/dev/null || echo unknown` 1818uname -s = `(uname -s) 2>/dev/null || echo unknown` 1819uname -v = `(uname -v) 2>/dev/null || echo unknown` 1820 1821/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1822/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1823 1824/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1825/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1826/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1827/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1828/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1829/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1830/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1831 1832_ASUNAME 1833 1834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1835for as_dir in $PATH 1836do 1837 IFS=$as_save_IFS 1838 case $as_dir in #((( 1839 '') as_dir=./ ;; 1840 */) ;; 1841 *) as_dir=$as_dir/ ;; 1842 esac 1843 printf "%s\n" "PATH: $as_dir" 1844 done 1845IFS=$as_save_IFS 1846 1847} >&5 1848 1849cat >&5 <<_ACEOF 1850 1851 1852## ----------- ## 1853## Core tests. ## 1854## ----------- ## 1855 1856_ACEOF 1857 1858 1859# Keep a trace of the command line. 1860# Strip out --no-create and --no-recursion so they do not pile up. 1861# Strip out --silent because we don't want to record it for future runs. 1862# Also quote any args containing shell meta-characters. 1863# Make two passes to allow for proper duplicate-argument suppression. 1864ac_configure_args= 1865ac_configure_args0= 1866ac_configure_args1= 1867ac_must_keep_next=false 1868for ac_pass in 1 2 1869do 1870 for ac_arg 1871 do 1872 case $ac_arg in 1873 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1874 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1875 | -silent | --silent | --silen | --sile | --sil) 1876 continue ;; 1877 *\'*) 1878 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1879 esac 1880 case $ac_pass in 1881 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1882 2) 1883 as_fn_append ac_configure_args1 " '$ac_arg'" 1884 if test $ac_must_keep_next = true; then 1885 ac_must_keep_next=false # Got value, back to normal. 1886 else 1887 case $ac_arg in 1888 *=* | --config-cache | -C | -disable-* | --disable-* \ 1889 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1890 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1891 | -with-* | --with-* | -without-* | --without-* | --x) 1892 case "$ac_configure_args0 " in 1893 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1894 esac 1895 ;; 1896 -* ) ac_must_keep_next=true ;; 1897 esac 1898 fi 1899 as_fn_append ac_configure_args " '$ac_arg'" 1900 ;; 1901 esac 1902 done 1903done 1904{ ac_configure_args0=; unset ac_configure_args0;} 1905{ ac_configure_args1=; unset ac_configure_args1;} 1906 1907# When interrupted or exit'd, cleanup temporary files, and complete 1908# config.log. We remove comments because anyway the quotes in there 1909# would cause problems or look ugly. 1910# WARNING: Use '\'' to represent an apostrophe within the trap. 1911# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1912trap 'exit_status=$? 1913 # Sanitize IFS. 1914 IFS=" "" $as_nl" 1915 # Save into config.log some information that might help in debugging. 1916 { 1917 echo 1918 1919 printf "%s\n" "## ---------------- ## 1920## Cache variables. ## 1921## ---------------- ##" 1922 echo 1923 # The following way of writing the cache mishandles newlines in values, 1924( 1925 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1926 eval ac_val=\$$ac_var 1927 case $ac_val in #( 1928 *${as_nl}*) 1929 case $ac_var in #( 1930 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1931printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1932 esac 1933 case $ac_var in #( 1934 _ | IFS | as_nl) ;; #( 1935 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1936 *) { eval $ac_var=; unset $ac_var;} ;; 1937 esac ;; 1938 esac 1939 done 1940 (set) 2>&1 | 1941 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1942 *${as_nl}ac_space=\ *) 1943 sed -n \ 1944 "s/'\''/'\''\\\\'\'''\''/g; 1945 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1946 ;; #( 1947 *) 1948 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1949 ;; 1950 esac | 1951 sort 1952) 1953 echo 1954 1955 printf "%s\n" "## ----------------- ## 1956## Output variables. ## 1957## ----------------- ##" 1958 echo 1959 for ac_var in $ac_subst_vars 1960 do 1961 eval ac_val=\$$ac_var 1962 case $ac_val in 1963 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1964 esac 1965 printf "%s\n" "$ac_var='\''$ac_val'\''" 1966 done | sort 1967 echo 1968 1969 if test -n "$ac_subst_files"; then 1970 printf "%s\n" "## ------------------- ## 1971## File substitutions. ## 1972## ------------------- ##" 1973 echo 1974 for ac_var in $ac_subst_files 1975 do 1976 eval ac_val=\$$ac_var 1977 case $ac_val in 1978 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1979 esac 1980 printf "%s\n" "$ac_var='\''$ac_val'\''" 1981 done | sort 1982 echo 1983 fi 1984 1985 if test -s confdefs.h; then 1986 printf "%s\n" "## ----------- ## 1987## confdefs.h. ## 1988## ----------- ##" 1989 echo 1990 cat confdefs.h 1991 echo 1992 fi 1993 test "$ac_signal" != 0 && 1994 printf "%s\n" "$as_me: caught signal $ac_signal" 1995 printf "%s\n" "$as_me: exit $exit_status" 1996 } >&5 1997 rm -f core *.core core.conftest.* && 1998 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1999 exit $exit_status 2000' 0 2001for ac_signal in 1 2 13 15; do 2002 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2003done 2004ac_signal=0 2005 2006# confdefs.h avoids OS command line length limits that DEFS can exceed. 2007rm -f -r conftest* confdefs.h 2008 2009printf "%s\n" "/* confdefs.h */" > confdefs.h 2010 2011# Predefined preprocessor variables. 2012 2013printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2014 2015printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2016 2017printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2018 2019printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2020 2021printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2022 2023printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2024 2025 2026# Let the site file select an alternate cache file if it wants to. 2027# Prefer an explicitly selected file to automatically selected ones. 2028if test -n "$CONFIG_SITE"; then 2029 ac_site_files="$CONFIG_SITE" 2030elif test "x$prefix" != xNONE; then 2031 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2032else 2033 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2034fi 2035 2036for ac_site_file in $ac_site_files 2037do 2038 case $ac_site_file in #( 2039 */*) : 2040 ;; #( 2041 *) : 2042 ac_site_file=./$ac_site_file ;; 2043esac 2044 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2046printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2047 sed 's/^/| /' "$ac_site_file" >&5 2048 . "$ac_site_file" \ 2049 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2050printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2051as_fn_error $? "failed to load site script $ac_site_file 2052See 'config.log' for more details" "$LINENO" 5; } 2053 fi 2054done 2055 2056if test -r "$cache_file"; then 2057 # Some versions of bash will fail to source /dev/null (special files 2058 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2059 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2061printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2062 case $cache_file in 2063 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2064 *) . "./$cache_file";; 2065 esac 2066 fi 2067else 2068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2069printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2070 >$cache_file 2071fi 2072 2073# Test code for whether the C compiler supports C89 (global declarations) 2074ac_c_conftest_c89_globals=' 2075/* Does the compiler advertise C89 conformance? 2076 Do not test the value of __STDC__, because some compilers set it to 0 2077 while being otherwise adequately conformant. */ 2078#if !defined __STDC__ 2079# error "Compiler does not advertise C89 conformance" 2080#endif 2081 2082#include <stddef.h> 2083#include <stdarg.h> 2084struct stat; 2085/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2086struct buf { int x; }; 2087struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2088static char *e (char **p, int i) 2089{ 2090 return p[i]; 2091} 2092static char *f (char * (*g) (char **, int), char **p, ...) 2093{ 2094 char *s; 2095 va_list v; 2096 va_start (v,p); 2097 s = g (p, va_arg (v,int)); 2098 va_end (v); 2099 return s; 2100} 2101 2102/* C89 style stringification. */ 2103#define noexpand_stringify(a) #a 2104const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2105 2106/* C89 style token pasting. Exercises some of the corner cases that 2107 e.g. old MSVC gets wrong, but not very hard. */ 2108#define noexpand_concat(a,b) a##b 2109#define expand_concat(a,b) noexpand_concat(a,b) 2110extern int vA; 2111extern int vbee; 2112#define aye A 2113#define bee B 2114int *pvA = &expand_concat(v,aye); 2115int *pvbee = &noexpand_concat(v,bee); 2116 2117/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2118 function prototypes and stuff, but not \xHH hex character constants. 2119 These do not provoke an error unfortunately, instead are silently treated 2120 as an "x". The following induces an error, until -std is added to get 2121 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2122 array size at least. It is necessary to write \x00 == 0 to get something 2123 that is true only with -std. */ 2124int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2125 2126/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2127 inside strings and character constants. */ 2128#define FOO(x) '\''x'\'' 2129int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2130 2131int test (int i, double x); 2132struct s1 {int (*f) (int a);}; 2133struct s2 {int (*f) (double a);}; 2134int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2135 int, int);' 2136 2137# Test code for whether the C compiler supports C89 (body of main). 2138ac_c_conftest_c89_main=' 2139ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2140' 2141 2142# Test code for whether the C compiler supports C99 (global declarations) 2143ac_c_conftest_c99_globals=' 2144/* Does the compiler advertise C99 conformance? */ 2145#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2146# error "Compiler does not advertise C99 conformance" 2147#endif 2148 2149// See if C++-style comments work. 2150 2151#include <stdbool.h> 2152extern int puts (const char *); 2153extern int printf (const char *, ...); 2154extern int dprintf (int, const char *, ...); 2155extern void *malloc (size_t); 2156extern void free (void *); 2157 2158// Check varargs macros. These examples are taken from C99 6.10.3.5. 2159// dprintf is used instead of fprintf to avoid needing to declare 2160// FILE and stderr. 2161#define debug(...) dprintf (2, __VA_ARGS__) 2162#define showlist(...) puts (#__VA_ARGS__) 2163#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2164static void 2165test_varargs_macros (void) 2166{ 2167 int x = 1234; 2168 int y = 5678; 2169 debug ("Flag"); 2170 debug ("X = %d\n", x); 2171 showlist (The first, second, and third items.); 2172 report (x>y, "x is %d but y is %d", x, y); 2173} 2174 2175// Check long long types. 2176#define BIG64 18446744073709551615ull 2177#define BIG32 4294967295ul 2178#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2179#if !BIG_OK 2180 #error "your preprocessor is broken" 2181#endif 2182#if BIG_OK 2183#else 2184 #error "your preprocessor is broken" 2185#endif 2186static long long int bignum = -9223372036854775807LL; 2187static unsigned long long int ubignum = BIG64; 2188 2189struct incomplete_array 2190{ 2191 int datasize; 2192 double data[]; 2193}; 2194 2195struct named_init { 2196 int number; 2197 const wchar_t *name; 2198 double average; 2199}; 2200 2201typedef const char *ccp; 2202 2203static inline int 2204test_restrict (ccp restrict text) 2205{ 2206 // Iterate through items via the restricted pointer. 2207 // Also check for declarations in for loops. 2208 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2209 continue; 2210 return 0; 2211} 2212 2213// Check varargs and va_copy. 2214static bool 2215test_varargs (const char *format, ...) 2216{ 2217 va_list args; 2218 va_start (args, format); 2219 va_list args_copy; 2220 va_copy (args_copy, args); 2221 2222 const char *str = ""; 2223 int number = 0; 2224 float fnumber = 0; 2225 2226 while (*format) 2227 { 2228 switch (*format++) 2229 { 2230 case '\''s'\'': // string 2231 str = va_arg (args_copy, const char *); 2232 break; 2233 case '\''d'\'': // int 2234 number = va_arg (args_copy, int); 2235 break; 2236 case '\''f'\'': // float 2237 fnumber = va_arg (args_copy, double); 2238 break; 2239 default: 2240 break; 2241 } 2242 } 2243 va_end (args_copy); 2244 va_end (args); 2245 2246 return *str && number && fnumber; 2247} 2248' 2249 2250# Test code for whether the C compiler supports C99 (body of main). 2251ac_c_conftest_c99_main=' 2252 // Check bool. 2253 _Bool success = false; 2254 success |= (argc != 0); 2255 2256 // Check restrict. 2257 if (test_restrict ("String literal") == 0) 2258 success = true; 2259 char *restrict newvar = "Another string"; 2260 2261 // Check varargs. 2262 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2263 test_varargs_macros (); 2264 2265 // Check flexible array members. 2266 struct incomplete_array *ia = 2267 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2268 ia->datasize = 10; 2269 for (int i = 0; i < ia->datasize; ++i) 2270 ia->data[i] = i * 1.234; 2271 // Work around memory leak warnings. 2272 free (ia); 2273 2274 // Check named initializers. 2275 struct named_init ni = { 2276 .number = 34, 2277 .name = L"Test wide string", 2278 .average = 543.34343, 2279 }; 2280 2281 ni.number = 58; 2282 2283 int dynamic_array[ni.number]; 2284 dynamic_array[0] = argv[0][0]; 2285 dynamic_array[ni.number - 1] = 543; 2286 2287 // work around unused variable warnings 2288 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2289 || dynamic_array[ni.number - 1] != 543); 2290' 2291 2292# Test code for whether the C compiler supports C11 (global declarations) 2293ac_c_conftest_c11_globals=' 2294/* Does the compiler advertise C11 conformance? */ 2295#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2296# error "Compiler does not advertise C11 conformance" 2297#endif 2298 2299// Check _Alignas. 2300char _Alignas (double) aligned_as_double; 2301char _Alignas (0) no_special_alignment; 2302extern char aligned_as_int; 2303char _Alignas (0) _Alignas (int) aligned_as_int; 2304 2305// Check _Alignof. 2306enum 2307{ 2308 int_alignment = _Alignof (int), 2309 int_array_alignment = _Alignof (int[100]), 2310 char_alignment = _Alignof (char) 2311}; 2312_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2313 2314// Check _Noreturn. 2315int _Noreturn does_not_return (void) { for (;;) continue; } 2316 2317// Check _Static_assert. 2318struct test_static_assert 2319{ 2320 int x; 2321 _Static_assert (sizeof (int) <= sizeof (long int), 2322 "_Static_assert does not work in struct"); 2323 long int y; 2324}; 2325 2326// Check UTF-8 literals. 2327#define u8 syntax error! 2328char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2329 2330// Check duplicate typedefs. 2331typedef long *long_ptr; 2332typedef long int *long_ptr; 2333typedef long_ptr long_ptr; 2334 2335// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2336struct anonymous 2337{ 2338 union { 2339 struct { int i; int j; }; 2340 struct { int k; long int l; } w; 2341 }; 2342 int m; 2343} v1; 2344' 2345 2346# Test code for whether the C compiler supports C11 (body of main). 2347ac_c_conftest_c11_main=' 2348 _Static_assert ((offsetof (struct anonymous, i) 2349 == offsetof (struct anonymous, w.k)), 2350 "Anonymous union alignment botch"); 2351 v1.i = 2; 2352 v1.w.k = 5; 2353 ok |= v1.i != 5; 2354' 2355 2356# Test code for whether the C compiler supports C11 (complete). 2357ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2358${ac_c_conftest_c99_globals} 2359${ac_c_conftest_c11_globals} 2360 2361int 2362main (int argc, char **argv) 2363{ 2364 int ok = 0; 2365 ${ac_c_conftest_c89_main} 2366 ${ac_c_conftest_c99_main} 2367 ${ac_c_conftest_c11_main} 2368 return ok; 2369} 2370" 2371 2372# Test code for whether the C compiler supports C99 (complete). 2373ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2374${ac_c_conftest_c99_globals} 2375 2376int 2377main (int argc, char **argv) 2378{ 2379 int ok = 0; 2380 ${ac_c_conftest_c89_main} 2381 ${ac_c_conftest_c99_main} 2382 return ok; 2383} 2384" 2385 2386# Test code for whether the C compiler supports C89 (complete). 2387ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2388 2389int 2390main (int argc, char **argv) 2391{ 2392 int ok = 0; 2393 ${ac_c_conftest_c89_main} 2394 return ok; 2395} 2396" 2397 2398as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2399as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2400as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2401as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2402as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2403as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2404as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2405as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2406as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2407 2408# Auxiliary files required by this configure script. 2409ac_aux_files="config.guess config.sub compile missing install-sh" 2410 2411# Locations in which to look for auxiliary files. 2412ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2413 2414# Search for a directory containing all of the required auxiliary files, 2415# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2416# If we don't find one directory that contains all the files we need, 2417# we report the set of missing files from the *first* directory in 2418# $ac_aux_dir_candidates and give up. 2419ac_missing_aux_files="" 2420ac_first_candidate=: 2421printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2423as_found=false 2424for as_dir in $ac_aux_dir_candidates 2425do 2426 IFS=$as_save_IFS 2427 case $as_dir in #((( 2428 '') as_dir=./ ;; 2429 */) ;; 2430 *) as_dir=$as_dir/ ;; 2431 esac 2432 as_found=: 2433 2434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2435 ac_aux_dir_found=yes 2436 ac_install_sh= 2437 for ac_aux in $ac_aux_files 2438 do 2439 # As a special case, if "install-sh" is required, that requirement 2440 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2441 # and $ac_install_sh is set appropriately for whichever one is found. 2442 if test x"$ac_aux" = x"install-sh" 2443 then 2444 if test -f "${as_dir}install-sh"; then 2445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2446 ac_install_sh="${as_dir}install-sh -c" 2447 elif test -f "${as_dir}install.sh"; then 2448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2449 ac_install_sh="${as_dir}install.sh -c" 2450 elif test -f "${as_dir}shtool"; then 2451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2452 ac_install_sh="${as_dir}shtool install -c" 2453 else 2454 ac_aux_dir_found=no 2455 if $ac_first_candidate; then 2456 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2457 else 2458 break 2459 fi 2460 fi 2461 else 2462 if test -f "${as_dir}${ac_aux}"; then 2463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2464 else 2465 ac_aux_dir_found=no 2466 if $ac_first_candidate; then 2467 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2468 else 2469 break 2470 fi 2471 fi 2472 fi 2473 done 2474 if test "$ac_aux_dir_found" = yes; then 2475 ac_aux_dir="$as_dir" 2476 break 2477 fi 2478 ac_first_candidate=false 2479 2480 as_found=false 2481done 2482IFS=$as_save_IFS 2483if $as_found 2484then : 2485 2486else case e in #( 2487 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2488esac 2489fi 2490 2491 2492# These three variables are undocumented and unsupported, 2493# and are intended to be withdrawn in a future Autoconf release. 2494# They can cause serious problems if a builder's source tree is in a directory 2495# whose full name contains unusual characters. 2496if test -f "${ac_aux_dir}config.guess"; then 2497 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2498fi 2499if test -f "${ac_aux_dir}config.sub"; then 2500 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2501fi 2502if test -f "$ac_aux_dir/configure"; then 2503 ac_configure="$SHELL ${ac_aux_dir}configure" 2504fi 2505 2506# Check that the precious variables saved in the cache have kept the same 2507# value. 2508ac_cache_corrupted=false 2509for ac_var in $ac_precious_vars; do 2510 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2511 eval ac_new_set=\$ac_env_${ac_var}_set 2512 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2513 eval ac_new_val=\$ac_env_${ac_var}_value 2514 case $ac_old_set,$ac_new_set in 2515 set,) 2516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2517printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2518 ac_cache_corrupted=: ;; 2519 ,set) 2520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2521printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2522 ac_cache_corrupted=: ;; 2523 ,);; 2524 *) 2525 if test "x$ac_old_val" != "x$ac_new_val"; then 2526 # differences in whitespace do not lead to failure. 2527 ac_old_val_w=`echo x $ac_old_val` 2528 ac_new_val_w=`echo x $ac_new_val` 2529 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2531printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2532 ac_cache_corrupted=: 2533 else 2534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2535printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2536 eval $ac_var=\$ac_old_val 2537 fi 2538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2539printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2541printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2542 fi;; 2543 esac 2544 # Pass precious variables to config.status. 2545 if test "$ac_new_set" = set; then 2546 case $ac_new_val in 2547 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2548 *) ac_arg=$ac_var=$ac_new_val ;; 2549 esac 2550 case " $ac_configure_args " in 2551 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2552 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2553 esac 2554 fi 2555done 2556if $ac_cache_corrupted; then 2557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2558printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2560printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2561 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2562 and start over" "$LINENO" 5 2563fi 2564## -------------------- ## 2565## Main body of script. ## 2566## -------------------- ## 2567 2568ac_ext=c 2569ac_cpp='$CPP $CPPFLAGS' 2570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2572ac_compiler_gnu=$ac_cv_c_compiler_gnu 2573 2574 2575 2576ac_config_headers="$ac_config_headers config.h" 2577 2578 2579# Initialize Automake 2580am__api_version='1.17' 2581 2582 2583 2584 # Find a good install program. We prefer a C program (faster), 2585# so one script is as good as another. But avoid the broken or 2586# incompatible versions: 2587# SysV /etc/install, /usr/sbin/install 2588# SunOS /usr/etc/install 2589# IRIX /sbin/install 2590# AIX /bin/install 2591# AmigaOS /C/install, which installs bootblocks on floppy discs 2592# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2593# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2594# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2595# OS/2's system install, which has a completely different semantic 2596# ./install, which can be erroneously created by make from ./install.sh. 2597# Reject install programs that cannot install multiple files. 2598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2599printf %s "checking for a BSD-compatible install... " >&6; } 2600if test -z "$INSTALL"; then 2601if test ${ac_cv_path_install+y} 2602then : 2603 printf %s "(cached) " >&6 2604else case e in #( 2605 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2606for as_dir in $PATH 2607do 2608 IFS=$as_save_IFS 2609 case $as_dir in #((( 2610 '') as_dir=./ ;; 2611 */) ;; 2612 *) as_dir=$as_dir/ ;; 2613 esac 2614 # Account for fact that we put trailing slashes in our PATH walk. 2615case $as_dir in #(( 2616 ./ | /[cC]/* | \ 2617 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2618 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2619 /usr/ucb/* ) ;; 2620 *) 2621 # OSF1 and SCO ODT 3.0 have their own names for install. 2622 # Don't use installbsd from OSF since it installs stuff as root 2623 # by default. 2624 for ac_prog in ginstall scoinst install; do 2625 for ac_exec_ext in '' $ac_executable_extensions; do 2626 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2627 if test $ac_prog = install && 2628 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2629 # AIX install. It has an incompatible calling convention. 2630 : 2631 elif test $ac_prog = install && 2632 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2633 # program-specific install script used by HP pwplus--don't use. 2634 : 2635 else 2636 rm -rf conftest.one conftest.two conftest.dir 2637 echo one > conftest.one 2638 echo two > conftest.two 2639 mkdir conftest.dir 2640 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2641 test -s conftest.one && test -s conftest.two && 2642 test -s conftest.dir/conftest.one && 2643 test -s conftest.dir/conftest.two 2644 then 2645 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2646 break 3 2647 fi 2648 fi 2649 fi 2650 done 2651 done 2652 ;; 2653esac 2654 2655 done 2656IFS=$as_save_IFS 2657 2658rm -rf conftest.one conftest.two conftest.dir 2659 ;; 2660esac 2661fi 2662 if test ${ac_cv_path_install+y}; then 2663 INSTALL=$ac_cv_path_install 2664 else 2665 # As a last resort, use the slow shell script. Don't cache a 2666 # value for INSTALL within a source directory, because that will 2667 # break other packages using the cache if that directory is 2668 # removed, or if the value is a relative name. 2669 INSTALL=$ac_install_sh 2670 fi 2671fi 2672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2673printf "%s\n" "$INSTALL" >&6; } 2674 2675# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2676# It thinks the first close brace ends the variable substitution. 2677test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2678 2679test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2680 2681test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2682 2683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2684printf %s "checking whether sleep supports fractional seconds... " >&6; } 2685if test ${am_cv_sleep_fractional_seconds+y} 2686then : 2687 printf %s "(cached) " >&6 2688else case e in #( 2689 e) if sleep 0.001 2>/dev/null 2690then : 2691 am_cv_sleep_fractional_seconds=yes 2692else case e in #( 2693 e) am_cv_sleep_fractional_seconds=no ;; 2694esac 2695fi 2696 ;; 2697esac 2698fi 2699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2700printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2701 2702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2703printf %s "checking filesystem timestamp resolution... " >&6; } 2704if test ${am_cv_filesystem_timestamp_resolution+y} 2705then : 2706 printf %s "(cached) " >&6 2707else case e in #( 2708 e) # Default to the worst case. 2709am_cv_filesystem_timestamp_resolution=2 2710 2711# Only try to go finer than 1 sec if sleep can do it. 2712# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2713# - 1 sec is not much of a win compared to 2 sec, and 2714# - it takes 2 seconds to perform the test whether 1 sec works. 2715# 2716# Instead, just use the default 2s on platforms that have 1s resolution, 2717# accept the extra 1s delay when using $sleep in the Automake tests, in 2718# exchange for not incurring the 2s delay for running the test for all 2719# packages. 2720# 2721am_try_resolutions= 2722if test "$am_cv_sleep_fractional_seconds" = yes; then 2723 # Even a millisecond often causes a bunch of false positives, 2724 # so just try a hundredth of a second. The time saved between .001 and 2725 # .01 is not terribly consequential. 2726 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2727fi 2728 2729# In order to catch current-generation FAT out, we must *modify* files 2730# that already exist; the *creation* timestamp is finer. Use names 2731# that make ls -t sort them differently when they have equal 2732# timestamps than when they have distinct timestamps, keeping 2733# in mind that ls -t prints the *newest* file first. 2734rm -f conftest.ts? 2735: > conftest.ts1 2736: > conftest.ts2 2737: > conftest.ts3 2738 2739# Make sure ls -t actually works. Do 'set' in a subshell so we don't 2740# clobber the current shell's arguments. (Outer-level square brackets 2741# are removed by m4; they're present so that m4 does not expand 2742# <dollar><star>; be careful, easy to get confused.) 2743if ( 2744 set X `ls -t conftest.ts[12]` && 2745 { 2746 test "$*" != "X conftest.ts1 conftest.ts2" || 2747 test "$*" != "X conftest.ts2 conftest.ts1"; 2748 } 2749); then :; else 2750 # If neither matched, then we have a broken ls. This can happen 2751 # if, for instance, CONFIG_SHELL is bash and it inherits a 2752 # broken ls alias from the environment. This has actually 2753 # happened. Such a system could not be considered "sane". 2754 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2755 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2756printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2757as_fn_error $? "ls -t produces unexpected output. 2758Make sure there is not a broken ls alias in your environment. 2759See 'config.log' for more details" "$LINENO" 5; } 2760fi 2761 2762for am_try_res in $am_try_resolutions; do 2763 # Any one fine-grained sleep might happen to cross the boundary 2764 # between two values of a coarser actual resolution, but if we do 2765 # two fine-grained sleeps in a row, at least one of them will fall 2766 # entirely within a coarse interval. 2767 echo alpha > conftest.ts1 2768 sleep $am_try_res 2769 echo beta > conftest.ts2 2770 sleep $am_try_res 2771 echo gamma > conftest.ts3 2772 2773 # We assume that 'ls -t' will make use of high-resolution 2774 # timestamps if the operating system supports them at all. 2775 if (set X `ls -t conftest.ts?` && 2776 test "$2" = conftest.ts3 && 2777 test "$3" = conftest.ts2 && 2778 test "$4" = conftest.ts1); then 2779 # 2780 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2781 # because we don't need to test make. 2782 make_ok=true 2783 if test $am_try_res != 1; then 2784 # But if we've succeeded so far with a subsecond resolution, we 2785 # have one more thing to check: make. It can happen that 2786 # everything else supports the subsecond mtimes, but make doesn't; 2787 # notably on macOS, which ships make 3.81 from 2006 (the last one 2788 # released under GPLv2). https://bugs.gnu.org/68808 2789 # 2790 # We test $MAKE if it is defined in the environment, else "make". 2791 # It might get overridden later, but our hope is that in practice 2792 # it does not matter: it is the system "make" which is (by far) 2793 # the most likely to be broken, whereas if the user overrides it, 2794 # probably they did so with a better, or at least not worse, make. 2795 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2796 # 2797 # Create a Makefile (real tab character here): 2798 rm -f conftest.mk 2799 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2800 echo ' touch conftest.ts2' >>conftest.mk 2801 # 2802 # Now, running 2803 # touch conftest.ts1; touch conftest.ts2; make 2804 # should touch ts1 because ts2 is newer. This could happen by luck, 2805 # but most often, it will fail if make's support is insufficient. So 2806 # test for several consecutive successes. 2807 # 2808 # (We reuse conftest.ts[12] because we still want to modify existing 2809 # files, not create new ones, per above.) 2810 n=0 2811 make=${MAKE-make} 2812 until test $n -eq 3; do 2813 echo one > conftest.ts1 2814 sleep $am_try_res 2815 echo two > conftest.ts2 # ts2 should now be newer than ts1 2816 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2817 make_ok=false 2818 break # out of $n loop 2819 fi 2820 n=`expr $n + 1` 2821 done 2822 fi 2823 # 2824 if $make_ok; then 2825 # Everything we know to check worked out, so call this resolution good. 2826 am_cv_filesystem_timestamp_resolution=$am_try_res 2827 break # out of $am_try_res loop 2828 fi 2829 # Otherwise, we'll go on to check the next resolution. 2830 fi 2831done 2832rm -f conftest.ts? 2833# (end _am_filesystem_timestamp_resolution) 2834 ;; 2835esac 2836fi 2837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2838printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 2839 2840# This check should not be cached, as it may vary across builds of 2841# different projects. 2842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2843printf %s "checking whether build environment is sane... " >&6; } 2844# Reject unsafe characters in $srcdir or the absolute working directory 2845# name. Accept space and tab only in the latter. 2846am_lf=' 2847' 2848case `pwd` in 2849 *[\\\"\#\$\&\'\`$am_lf]*) 2850 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2851esac 2852case $srcdir in 2853 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2854 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2855esac 2856 2857# Do 'set' in a subshell so we don't clobber the current shell's 2858# arguments. Must try -L first in case configure is actually a 2859# symlink; some systems play weird games with the mod time of symlinks 2860# (eg FreeBSD returns the mod time of the symlink's containing 2861# directory). 2862am_build_env_is_sane=no 2863am_has_slept=no 2864rm -f conftest.file 2865for am_try in 1 2; do 2866 echo "timestamp, slept: $am_has_slept" > conftest.file 2867 if ( 2868 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2869 if test "$*" = "X"; then 2870 # -L didn't work. 2871 set X `ls -t "$srcdir/configure" conftest.file` 2872 fi 2873 test "$2" = conftest.file 2874 ); then 2875 am_build_env_is_sane=yes 2876 break 2877 fi 2878 # Just in case. 2879 sleep "$am_cv_filesystem_timestamp_resolution" 2880 am_has_slept=yes 2881done 2882 2883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 2884printf "%s\n" "$am_build_env_is_sane" >&6; } 2885if test "$am_build_env_is_sane" = no; then 2886 as_fn_error $? "newly created file is older than distributed files! 2887Check your system clock" "$LINENO" 5 2888fi 2889 2890# If we didn't sleep, we still need to ensure time stamps of config.status and 2891# generated files are strictly newer. 2892am_sleep_pid= 2893if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 2894then : 2895 2896else case e in #( 2897 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 2898 am_sleep_pid=$! 2899 ;; 2900esac 2901fi 2902 2903rm -f conftest.file 2904 2905test "$program_prefix" != NONE && 2906 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2907# Use a double $ so make ignores it. 2908test "$program_suffix" != NONE && 2909 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2910# Double any \ or $. 2911# By default was 's,x,x', remove it if useless. 2912ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2913program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2914 2915 2916# Expand $ac_aux_dir to an absolute path. 2917am_aux_dir=`cd "$ac_aux_dir" && pwd` 2918 2919 2920 if test x"${MISSING+set}" != xset; then 2921 MISSING="\${SHELL} '$am_aux_dir/missing'" 2922fi 2923# Use eval to expand $SHELL 2924if eval "$MISSING --is-lightweight"; then 2925 am_missing_run="$MISSING " 2926else 2927 am_missing_run= 2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2929printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2930fi 2931 2932if test x"${install_sh+set}" != xset; then 2933 case $am_aux_dir in 2934 *\ * | *\ *) 2935 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2936 *) 2937 install_sh="\${SHELL} $am_aux_dir/install-sh" 2938 esac 2939fi 2940 2941# Installed binaries are usually stripped using 'strip' when the user 2942# run "make install-strip". However 'strip' might not be the right 2943# tool to use in cross-compilation environments, therefore Automake 2944# will honor the 'STRIP' environment variable to overrule this program. 2945if test "$cross_compiling" != no; then 2946 if test -n "$ac_tool_prefix"; then 2947 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2948set dummy ${ac_tool_prefix}strip; ac_word=$2 2949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2950printf %s "checking for $ac_word... " >&6; } 2951if test ${ac_cv_prog_STRIP+y} 2952then : 2953 printf %s "(cached) " >&6 2954else case e in #( 2955 e) if test -n "$STRIP"; then 2956 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2957else 2958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2959for as_dir in $PATH 2960do 2961 IFS=$as_save_IFS 2962 case $as_dir in #((( 2963 '') as_dir=./ ;; 2964 */) ;; 2965 *) as_dir=$as_dir/ ;; 2966 esac 2967 for ac_exec_ext in '' $ac_executable_extensions; do 2968 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2969 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2971 break 2 2972 fi 2973done 2974 done 2975IFS=$as_save_IFS 2976 2977fi ;; 2978esac 2979fi 2980STRIP=$ac_cv_prog_STRIP 2981if test -n "$STRIP"; then 2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2983printf "%s\n" "$STRIP" >&6; } 2984else 2985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2986printf "%s\n" "no" >&6; } 2987fi 2988 2989 2990fi 2991if test -z "$ac_cv_prog_STRIP"; then 2992 ac_ct_STRIP=$STRIP 2993 # Extract the first word of "strip", so it can be a program name with args. 2994set dummy strip; ac_word=$2 2995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2996printf %s "checking for $ac_word... " >&6; } 2997if test ${ac_cv_prog_ac_ct_STRIP+y} 2998then : 2999 printf %s "(cached) " >&6 3000else case e in #( 3001 e) if test -n "$ac_ct_STRIP"; then 3002 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3003else 3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3005for as_dir in $PATH 3006do 3007 IFS=$as_save_IFS 3008 case $as_dir in #((( 3009 '') as_dir=./ ;; 3010 */) ;; 3011 *) as_dir=$as_dir/ ;; 3012 esac 3013 for ac_exec_ext in '' $ac_executable_extensions; do 3014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3015 ac_cv_prog_ac_ct_STRIP="strip" 3016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3017 break 2 3018 fi 3019done 3020 done 3021IFS=$as_save_IFS 3022 3023fi ;; 3024esac 3025fi 3026ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3027if test -n "$ac_ct_STRIP"; then 3028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3029printf "%s\n" "$ac_ct_STRIP" >&6; } 3030else 3031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3032printf "%s\n" "no" >&6; } 3033fi 3034 3035 if test "x$ac_ct_STRIP" = x; then 3036 STRIP=":" 3037 else 3038 case $cross_compiling:$ac_tool_warned in 3039yes:) 3040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3041printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3042ac_tool_warned=yes ;; 3043esac 3044 STRIP=$ac_ct_STRIP 3045 fi 3046else 3047 STRIP="$ac_cv_prog_STRIP" 3048fi 3049 3050fi 3051INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3052 3053 3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3055printf %s "checking for a race-free mkdir -p... " >&6; } 3056if test -z "$MKDIR_P"; then 3057 if test ${ac_cv_path_mkdir+y} 3058then : 3059 printf %s "(cached) " >&6 3060else case e in #( 3061 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3062for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3063do 3064 IFS=$as_save_IFS 3065 case $as_dir in #((( 3066 '') as_dir=./ ;; 3067 */) ;; 3068 *) as_dir=$as_dir/ ;; 3069 esac 3070 for ac_prog in mkdir gmkdir; do 3071 for ac_exec_ext in '' $ac_executable_extensions; do 3072 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3073 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3074 'mkdir ('*'coreutils) '* | \ 3075 *'BusyBox '* | \ 3076 'mkdir (fileutils) '4.1*) 3077 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3078 break 3;; 3079 esac 3080 done 3081 done 3082 done 3083IFS=$as_save_IFS 3084 ;; 3085esac 3086fi 3087 3088 test -d ./--version && rmdir ./--version 3089 if test ${ac_cv_path_mkdir+y}; then 3090 MKDIR_P="$ac_cv_path_mkdir -p" 3091 else 3092 # As a last resort, use plain mkdir -p, 3093 # in the hope it doesn't have the bugs of ancient mkdir. 3094 MKDIR_P='mkdir -p' 3095 fi 3096fi 3097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3098printf "%s\n" "$MKDIR_P" >&6; } 3099 3100for ac_prog in gawk mawk nawk awk 3101do 3102 # Extract the first word of "$ac_prog", so it can be a program name with args. 3103set dummy $ac_prog; ac_word=$2 3104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3105printf %s "checking for $ac_word... " >&6; } 3106if test ${ac_cv_prog_AWK+y} 3107then : 3108 printf %s "(cached) " >&6 3109else case e in #( 3110 e) if test -n "$AWK"; then 3111 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3112else 3113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3114for as_dir in $PATH 3115do 3116 IFS=$as_save_IFS 3117 case $as_dir in #((( 3118 '') as_dir=./ ;; 3119 */) ;; 3120 *) as_dir=$as_dir/ ;; 3121 esac 3122 for ac_exec_ext in '' $ac_executable_extensions; do 3123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3124 ac_cv_prog_AWK="$ac_prog" 3125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3126 break 2 3127 fi 3128done 3129 done 3130IFS=$as_save_IFS 3131 3132fi ;; 3133esac 3134fi 3135AWK=$ac_cv_prog_AWK 3136if test -n "$AWK"; then 3137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3138printf "%s\n" "$AWK" >&6; } 3139else 3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3141printf "%s\n" "no" >&6; } 3142fi 3143 3144 3145 test -n "$AWK" && break 3146done 3147 3148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3149printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3150set x ${MAKE-make} 3151ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3152if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3153then : 3154 printf %s "(cached) " >&6 3155else case e in #( 3156 e) cat >conftest.make <<\_ACEOF 3157SHELL = /bin/sh 3158all: 3159 @echo '@@@%%%=$(MAKE)=@@@%%%' 3160_ACEOF 3161# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3162case `${MAKE-make} -f conftest.make 2>/dev/null` in 3163 *@@@%%%=?*=@@@%%%*) 3164 eval ac_cv_prog_make_${ac_make}_set=yes;; 3165 *) 3166 eval ac_cv_prog_make_${ac_make}_set=no;; 3167esac 3168rm -f conftest.make ;; 3169esac 3170fi 3171if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3173printf "%s\n" "yes" >&6; } 3174 SET_MAKE= 3175else 3176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3177printf "%s\n" "no" >&6; } 3178 SET_MAKE="MAKE=${MAKE-make}" 3179fi 3180 3181rm -rf .tst 2>/dev/null 3182mkdir .tst 2>/dev/null 3183if test -d .tst; then 3184 am__leading_dot=. 3185else 3186 am__leading_dot=_ 3187fi 3188rmdir .tst 2>/dev/null 3189 3190AM_DEFAULT_VERBOSITY=1 3191# Check whether --enable-silent-rules was given. 3192if test ${enable_silent_rules+y} 3193then : 3194 enableval=$enable_silent_rules; 3195fi 3196 3197am_make=${MAKE-make} 3198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3199printf %s "checking whether $am_make supports nested variables... " >&6; } 3200if test ${am_cv_make_support_nested_variables+y} 3201then : 3202 printf %s "(cached) " >&6 3203else case e in #( 3204 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3205BAR0=false 3206BAR1=true 3207V=1 3208am__doit: 3209 @$(TRUE) 3210.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3211 am_cv_make_support_nested_variables=yes 3212else 3213 am_cv_make_support_nested_variables=no 3214fi ;; 3215esac 3216fi 3217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3218printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3219AM_BACKSLASH='\' 3220 3221am__rm_f_notfound= 3222if (rm -f && rm -fr && rm -rf) 2>/dev/null 3223then : 3224 3225else case e in #( 3226 e) am__rm_f_notfound='""' ;; 3227esac 3228fi 3229 3230 3231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3232printf %s "checking xargs -n works... " >&6; } 3233if test ${am_cv_xargs_n_works+y} 3234then : 3235 printf %s "(cached) " >&6 3236else case e in #( 3237 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 32383" 3239then : 3240 am_cv_xargs_n_works=yes 3241else case e in #( 3242 e) am_cv_xargs_n_works=no ;; 3243esac 3244fi ;; 3245esac 3246fi 3247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3248printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3249if test "$am_cv_xargs_n_works" = yes 3250then : 3251 am__xargs_n='xargs -n' 3252else case e in #( 3253 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3254 ;; 3255esac 3256fi 3257 3258if test "`cd $srcdir && pwd`" != "`pwd`"; then 3259 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3260 # is not polluted with repeated "-I." 3261 am__isrc=' -I$(srcdir)' 3262 # test to see if srcdir already configured 3263 if test -f $srcdir/config.status; then 3264 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3265 fi 3266fi 3267 3268# test whether we have cygpath 3269if test -z "$CYGPATH_W"; then 3270 if (cygpath --version) >/dev/null 2>/dev/null; then 3271 CYGPATH_W='cygpath -w' 3272 else 3273 CYGPATH_W=echo 3274 fi 3275fi 3276 3277 3278# Define the identity of the package. 3279 PACKAGE='xmag' 3280 VERSION='1.0.8' 3281 3282 3283printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3284 3285 3286printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3287 3288# Some tools Automake needs. 3289 3290ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3291 3292 3293AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3294 3295 3296AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3297 3298 3299AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3300 3301 3302MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3303 3304# For better backward compatibility. To be removed once Automake 1.9.x 3305# dies out for good. For more background, see: 3306# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3307# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3308mkdir_p='$(MKDIR_P)' 3309 3310# We need awk for the "check" target (and possibly the TAP driver). The 3311# system "awk" is bad on some platforms. 3312# Always define AMTAR for backward compatibility. Yes, it's still used 3313# in the wild :-( We should find a proper way to deprecate it ... 3314AMTAR='$${TAR-tar}' 3315 3316 3317# We'll loop over all known methods to create a tar archive until one works. 3318_am_tools='gnutar pax cpio none' 3319 3320am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3321 3322 3323 3324 3325 3326# Variables for tags utilities; see am/tags.am 3327if test -z "$CTAGS"; then 3328 CTAGS=ctags 3329fi 3330 3331if test -z "$ETAGS"; then 3332 ETAGS=etags 3333fi 3334 3335if test -z "$CSCOPE"; then 3336 CSCOPE=cscope 3337fi 3338 3339 3340 3341 3342 3343 3344 3345 3346# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367DEPDIR="${am__leading_dot}deps" 3368 3369ac_config_commands="$ac_config_commands depfiles" 3370 3371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3372printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3373cat > confinc.mk << 'END' 3374am__doit: 3375 @echo this is the am__doit target >confinc.out 3376.PHONY: am__doit 3377END 3378am__include="#" 3379am__quote= 3380# BSD make does it like this. 3381echo '.include "confinc.mk" # ignored' > confmf.BSD 3382# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3383echo 'include confinc.mk # ignored' > confmf.GNU 3384_am_result=no 3385for s in GNU BSD; do 3386 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3387 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3388 ac_status=$? 3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3390 (exit $ac_status); } 3391 case $?:`cat confinc.out 2>/dev/null` in #( 3392 '0:this is the am__doit target') : 3393 case $s in #( 3394 BSD) : 3395 am__include='.include' am__quote='"' ;; #( 3396 *) : 3397 am__include='include' am__quote='' ;; 3398esac ;; #( 3399 *) : 3400 ;; 3401esac 3402 if test "$am__include" != "#"; then 3403 _am_result="yes ($s style)" 3404 break 3405 fi 3406done 3407rm -f confinc.* confmf.* 3408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3409printf "%s\n" "${_am_result}" >&6; } 3410 3411# Check whether --enable-dependency-tracking was given. 3412if test ${enable_dependency_tracking+y} 3413then : 3414 enableval=$enable_dependency_tracking; 3415fi 3416 3417if test "x$enable_dependency_tracking" != xno; then 3418 am_depcomp="$ac_aux_dir/depcomp" 3419 AMDEPBACKSLASH='\' 3420 am__nodep='_no' 3421fi 3422 if test "x$enable_dependency_tracking" != xno; then 3423 AMDEP_TRUE= 3424 AMDEP_FALSE='#' 3425else 3426 AMDEP_TRUE='#' 3427 AMDEP_FALSE= 3428fi 3429 3430 3431ac_ext=c 3432ac_cpp='$CPP $CPPFLAGS' 3433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3435ac_compiler_gnu=$ac_cv_c_compiler_gnu 3436if test -n "$ac_tool_prefix"; then 3437 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3438set dummy ${ac_tool_prefix}gcc; ac_word=$2 3439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3440printf %s "checking for $ac_word... " >&6; } 3441if test ${ac_cv_prog_CC+y} 3442then : 3443 printf %s "(cached) " >&6 3444else case e in #( 3445 e) if test -n "$CC"; then 3446 ac_cv_prog_CC="$CC" # Let the user override the test. 3447else 3448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3449for as_dir in $PATH 3450do 3451 IFS=$as_save_IFS 3452 case $as_dir in #((( 3453 '') as_dir=./ ;; 3454 */) ;; 3455 *) as_dir=$as_dir/ ;; 3456 esac 3457 for ac_exec_ext in '' $ac_executable_extensions; do 3458 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3459 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3461 break 2 3462 fi 3463done 3464 done 3465IFS=$as_save_IFS 3466 3467fi ;; 3468esac 3469fi 3470CC=$ac_cv_prog_CC 3471if test -n "$CC"; then 3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3473printf "%s\n" "$CC" >&6; } 3474else 3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3476printf "%s\n" "no" >&6; } 3477fi 3478 3479 3480fi 3481if test -z "$ac_cv_prog_CC"; then 3482 ac_ct_CC=$CC 3483 # Extract the first word of "gcc", so it can be a program name with args. 3484set dummy gcc; ac_word=$2 3485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3486printf %s "checking for $ac_word... " >&6; } 3487if test ${ac_cv_prog_ac_ct_CC+y} 3488then : 3489 printf %s "(cached) " >&6 3490else case e in #( 3491 e) if test -n "$ac_ct_CC"; then 3492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3493else 3494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3495for as_dir in $PATH 3496do 3497 IFS=$as_save_IFS 3498 case $as_dir in #((( 3499 '') as_dir=./ ;; 3500 */) ;; 3501 *) as_dir=$as_dir/ ;; 3502 esac 3503 for ac_exec_ext in '' $ac_executable_extensions; do 3504 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3505 ac_cv_prog_ac_ct_CC="gcc" 3506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3507 break 2 3508 fi 3509done 3510 done 3511IFS=$as_save_IFS 3512 3513fi ;; 3514esac 3515fi 3516ac_ct_CC=$ac_cv_prog_ac_ct_CC 3517if test -n "$ac_ct_CC"; then 3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3519printf "%s\n" "$ac_ct_CC" >&6; } 3520else 3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3522printf "%s\n" "no" >&6; } 3523fi 3524 3525 if test "x$ac_ct_CC" = x; then 3526 CC="" 3527 else 3528 case $cross_compiling:$ac_tool_warned in 3529yes:) 3530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3531printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3532ac_tool_warned=yes ;; 3533esac 3534 CC=$ac_ct_CC 3535 fi 3536else 3537 CC="$ac_cv_prog_CC" 3538fi 3539 3540if test -z "$CC"; then 3541 if test -n "$ac_tool_prefix"; then 3542 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3543set dummy ${ac_tool_prefix}cc; ac_word=$2 3544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3545printf %s "checking for $ac_word... " >&6; } 3546if test ${ac_cv_prog_CC+y} 3547then : 3548 printf %s "(cached) " >&6 3549else case e in #( 3550 e) if test -n "$CC"; then 3551 ac_cv_prog_CC="$CC" # Let the user override the test. 3552else 3553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3554for as_dir in $PATH 3555do 3556 IFS=$as_save_IFS 3557 case $as_dir in #((( 3558 '') as_dir=./ ;; 3559 */) ;; 3560 *) as_dir=$as_dir/ ;; 3561 esac 3562 for ac_exec_ext in '' $ac_executable_extensions; do 3563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3564 ac_cv_prog_CC="${ac_tool_prefix}cc" 3565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3566 break 2 3567 fi 3568done 3569 done 3570IFS=$as_save_IFS 3571 3572fi ;; 3573esac 3574fi 3575CC=$ac_cv_prog_CC 3576if test -n "$CC"; then 3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3578printf "%s\n" "$CC" >&6; } 3579else 3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3581printf "%s\n" "no" >&6; } 3582fi 3583 3584 3585 fi 3586fi 3587if test -z "$CC"; then 3588 # Extract the first word of "cc", so it can be a program name with args. 3589set dummy cc; ac_word=$2 3590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3591printf %s "checking for $ac_word... " >&6; } 3592if test ${ac_cv_prog_CC+y} 3593then : 3594 printf %s "(cached) " >&6 3595else case e in #( 3596 e) if test -n "$CC"; then 3597 ac_cv_prog_CC="$CC" # Let the user override the test. 3598else 3599 ac_prog_rejected=no 3600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3601for as_dir in $PATH 3602do 3603 IFS=$as_save_IFS 3604 case $as_dir in #((( 3605 '') as_dir=./ ;; 3606 */) ;; 3607 *) as_dir=$as_dir/ ;; 3608 esac 3609 for ac_exec_ext in '' $ac_executable_extensions; do 3610 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3611 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3612 ac_prog_rejected=yes 3613 continue 3614 fi 3615 ac_cv_prog_CC="cc" 3616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3617 break 2 3618 fi 3619done 3620 done 3621IFS=$as_save_IFS 3622 3623if test $ac_prog_rejected = yes; then 3624 # We found a bogon in the path, so make sure we never use it. 3625 set dummy $ac_cv_prog_CC 3626 shift 3627 if test $# != 0; then 3628 # We chose a different compiler from the bogus one. 3629 # However, it has the same basename, so the bogon will be chosen 3630 # first if we set CC to just the basename; use the full file name. 3631 shift 3632 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3633 fi 3634fi 3635fi ;; 3636esac 3637fi 3638CC=$ac_cv_prog_CC 3639if test -n "$CC"; then 3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3641printf "%s\n" "$CC" >&6; } 3642else 3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3644printf "%s\n" "no" >&6; } 3645fi 3646 3647 3648fi 3649if test -z "$CC"; then 3650 if test -n "$ac_tool_prefix"; then 3651 for ac_prog in cl.exe 3652 do 3653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3654set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3656printf %s "checking for $ac_word... " >&6; } 3657if test ${ac_cv_prog_CC+y} 3658then : 3659 printf %s "(cached) " >&6 3660else case e in #( 3661 e) if test -n "$CC"; then 3662 ac_cv_prog_CC="$CC" # Let the user override the test. 3663else 3664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3665for as_dir in $PATH 3666do 3667 IFS=$as_save_IFS 3668 case $as_dir in #((( 3669 '') as_dir=./ ;; 3670 */) ;; 3671 *) as_dir=$as_dir/ ;; 3672 esac 3673 for ac_exec_ext in '' $ac_executable_extensions; do 3674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3677 break 2 3678 fi 3679done 3680 done 3681IFS=$as_save_IFS 3682 3683fi ;; 3684esac 3685fi 3686CC=$ac_cv_prog_CC 3687if test -n "$CC"; then 3688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3689printf "%s\n" "$CC" >&6; } 3690else 3691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3692printf "%s\n" "no" >&6; } 3693fi 3694 3695 3696 test -n "$CC" && break 3697 done 3698fi 3699if test -z "$CC"; then 3700 ac_ct_CC=$CC 3701 for ac_prog in cl.exe 3702do 3703 # Extract the first word of "$ac_prog", so it can be a program name with args. 3704set dummy $ac_prog; ac_word=$2 3705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3706printf %s "checking for $ac_word... " >&6; } 3707if test ${ac_cv_prog_ac_ct_CC+y} 3708then : 3709 printf %s "(cached) " >&6 3710else case e in #( 3711 e) if test -n "$ac_ct_CC"; then 3712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3713else 3714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3715for as_dir in $PATH 3716do 3717 IFS=$as_save_IFS 3718 case $as_dir in #((( 3719 '') as_dir=./ ;; 3720 */) ;; 3721 *) as_dir=$as_dir/ ;; 3722 esac 3723 for ac_exec_ext in '' $ac_executable_extensions; do 3724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3725 ac_cv_prog_ac_ct_CC="$ac_prog" 3726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3727 break 2 3728 fi 3729done 3730 done 3731IFS=$as_save_IFS 3732 3733fi ;; 3734esac 3735fi 3736ac_ct_CC=$ac_cv_prog_ac_ct_CC 3737if test -n "$ac_ct_CC"; then 3738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3739printf "%s\n" "$ac_ct_CC" >&6; } 3740else 3741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3742printf "%s\n" "no" >&6; } 3743fi 3744 3745 3746 test -n "$ac_ct_CC" && break 3747done 3748 3749 if test "x$ac_ct_CC" = x; then 3750 CC="" 3751 else 3752 case $cross_compiling:$ac_tool_warned in 3753yes:) 3754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3755printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3756ac_tool_warned=yes ;; 3757esac 3758 CC=$ac_ct_CC 3759 fi 3760fi 3761 3762fi 3763if test -z "$CC"; then 3764 if test -n "$ac_tool_prefix"; then 3765 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3766set dummy ${ac_tool_prefix}clang; ac_word=$2 3767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3768printf %s "checking for $ac_word... " >&6; } 3769if test ${ac_cv_prog_CC+y} 3770then : 3771 printf %s "(cached) " >&6 3772else case e in #( 3773 e) if test -n "$CC"; then 3774 ac_cv_prog_CC="$CC" # Let the user override the test. 3775else 3776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3777for as_dir in $PATH 3778do 3779 IFS=$as_save_IFS 3780 case $as_dir in #((( 3781 '') as_dir=./ ;; 3782 */) ;; 3783 *) as_dir=$as_dir/ ;; 3784 esac 3785 for ac_exec_ext in '' $ac_executable_extensions; do 3786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3787 ac_cv_prog_CC="${ac_tool_prefix}clang" 3788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3789 break 2 3790 fi 3791done 3792 done 3793IFS=$as_save_IFS 3794 3795fi ;; 3796esac 3797fi 3798CC=$ac_cv_prog_CC 3799if test -n "$CC"; then 3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3801printf "%s\n" "$CC" >&6; } 3802else 3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3804printf "%s\n" "no" >&6; } 3805fi 3806 3807 3808fi 3809if test -z "$ac_cv_prog_CC"; then 3810 ac_ct_CC=$CC 3811 # Extract the first word of "clang", so it can be a program name with args. 3812set dummy clang; ac_word=$2 3813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3814printf %s "checking for $ac_word... " >&6; } 3815if test ${ac_cv_prog_ac_ct_CC+y} 3816then : 3817 printf %s "(cached) " >&6 3818else case e in #( 3819 e) if test -n "$ac_ct_CC"; then 3820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3821else 3822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3823for as_dir in $PATH 3824do 3825 IFS=$as_save_IFS 3826 case $as_dir in #((( 3827 '') as_dir=./ ;; 3828 */) ;; 3829 *) as_dir=$as_dir/ ;; 3830 esac 3831 for ac_exec_ext in '' $ac_executable_extensions; do 3832 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3833 ac_cv_prog_ac_ct_CC="clang" 3834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3835 break 2 3836 fi 3837done 3838 done 3839IFS=$as_save_IFS 3840 3841fi ;; 3842esac 3843fi 3844ac_ct_CC=$ac_cv_prog_ac_ct_CC 3845if test -n "$ac_ct_CC"; then 3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3847printf "%s\n" "$ac_ct_CC" >&6; } 3848else 3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3850printf "%s\n" "no" >&6; } 3851fi 3852 3853 if test "x$ac_ct_CC" = x; then 3854 CC="" 3855 else 3856 case $cross_compiling:$ac_tool_warned in 3857yes:) 3858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3859printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3860ac_tool_warned=yes ;; 3861esac 3862 CC=$ac_ct_CC 3863 fi 3864else 3865 CC="$ac_cv_prog_CC" 3866fi 3867 3868fi 3869 3870 3871test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3872printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3873as_fn_error $? "no acceptable C compiler found in \$PATH 3874See 'config.log' for more details" "$LINENO" 5; } 3875 3876# Provide some information about the compiler. 3877printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3878set X $ac_compile 3879ac_compiler=$2 3880for ac_option in --version -v -V -qversion -version; do 3881 { { ac_try="$ac_compiler $ac_option >&5" 3882case "(($ac_try" in 3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3884 *) ac_try_echo=$ac_try;; 3885esac 3886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3887printf "%s\n" "$ac_try_echo"; } >&5 3888 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3889 ac_status=$? 3890 if test -s conftest.err; then 3891 sed '10a\ 3892... rest of stderr output deleted ... 3893 10q' conftest.err >conftest.er1 3894 cat conftest.er1 >&5 3895 fi 3896 rm -f conftest.er1 conftest.err 3897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3898 test $ac_status = 0; } 3899done 3900 3901cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3902/* end confdefs.h. */ 3903 3904int 3905main (void) 3906{ 3907 3908 ; 3909 return 0; 3910} 3911_ACEOF 3912ac_clean_files_save=$ac_clean_files 3913ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3914# Try to create an executable without -o first, disregard a.out. 3915# It will help us diagnose broken compilers, and finding out an intuition 3916# of exeext. 3917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3918printf %s "checking whether the C compiler works... " >&6; } 3919ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3920 3921# The possible output files: 3922ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3923 3924ac_rmfiles= 3925for ac_file in $ac_files 3926do 3927 case $ac_file in 3928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3929 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3930 esac 3931done 3932rm -f $ac_rmfiles 3933 3934if { { ac_try="$ac_link_default" 3935case "(($ac_try" in 3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3937 *) ac_try_echo=$ac_try;; 3938esac 3939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3940printf "%s\n" "$ac_try_echo"; } >&5 3941 (eval "$ac_link_default") 2>&5 3942 ac_status=$? 3943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3944 test $ac_status = 0; } 3945then : 3946 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3947# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3948# in a Makefile. We should not override ac_cv_exeext if it was cached, 3949# so that the user can short-circuit this test for compilers unknown to 3950# Autoconf. 3951for ac_file in $ac_files '' 3952do 3953 test -f "$ac_file" || continue 3954 case $ac_file in 3955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3956 ;; 3957 [ab].out ) 3958 # We found the default executable, but exeext='' is most 3959 # certainly right. 3960 break;; 3961 *.* ) 3962 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3963 then :; else 3964 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3965 fi 3966 # We set ac_cv_exeext here because the later test for it is not 3967 # safe: cross compilers may not add the suffix if given an '-o' 3968 # argument, so we may need to know it at that point already. 3969 # Even if this section looks crufty: it has the advantage of 3970 # actually working. 3971 break;; 3972 * ) 3973 break;; 3974 esac 3975done 3976test "$ac_cv_exeext" = no && ac_cv_exeext= 3977 3978else case e in #( 3979 e) ac_file='' ;; 3980esac 3981fi 3982if test -z "$ac_file" 3983then : 3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3985printf "%s\n" "no" >&6; } 3986printf "%s\n" "$as_me: failed program was:" >&5 3987sed 's/^/| /' conftest.$ac_ext >&5 3988 3989{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3990printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3991as_fn_error 77 "C compiler cannot create executables 3992See 'config.log' for more details" "$LINENO" 5; } 3993else case e in #( 3994 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3995printf "%s\n" "yes" >&6; } ;; 3996esac 3997fi 3998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3999printf %s "checking for C compiler default output file name... " >&6; } 4000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4001printf "%s\n" "$ac_file" >&6; } 4002ac_exeext=$ac_cv_exeext 4003 4004rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4005ac_clean_files=$ac_clean_files_save 4006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4007printf %s "checking for suffix of executables... " >&6; } 4008if { { ac_try="$ac_link" 4009case "(($ac_try" in 4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4011 *) ac_try_echo=$ac_try;; 4012esac 4013eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4014printf "%s\n" "$ac_try_echo"; } >&5 4015 (eval "$ac_link") 2>&5 4016 ac_status=$? 4017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4018 test $ac_status = 0; } 4019then : 4020 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4021# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4022# work properly (i.e., refer to 'conftest.exe'), while it won't with 4023# 'rm'. 4024for ac_file in conftest.exe conftest conftest.*; do 4025 test -f "$ac_file" || continue 4026 case $ac_file in 4027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4028 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4029 break;; 4030 * ) break;; 4031 esac 4032done 4033else case e in #( 4034 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4035printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4036as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4037See 'config.log' for more details" "$LINENO" 5; } ;; 4038esac 4039fi 4040rm -f conftest conftest$ac_cv_exeext 4041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4042printf "%s\n" "$ac_cv_exeext" >&6; } 4043 4044rm -f conftest.$ac_ext 4045EXEEXT=$ac_cv_exeext 4046ac_exeext=$EXEEXT 4047cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4048/* end confdefs.h. */ 4049#include <stdio.h> 4050int 4051main (void) 4052{ 4053FILE *f = fopen ("conftest.out", "w"); 4054 if (!f) 4055 return 1; 4056 return ferror (f) || fclose (f) != 0; 4057 4058 ; 4059 return 0; 4060} 4061_ACEOF 4062ac_clean_files="$ac_clean_files conftest.out" 4063# Check that the compiler produces executables we can run. If not, either 4064# the compiler is broken, or we cross compile. 4065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4066printf %s "checking whether we are cross compiling... " >&6; } 4067if test "$cross_compiling" != yes; then 4068 { { ac_try="$ac_link" 4069case "(($ac_try" in 4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4071 *) ac_try_echo=$ac_try;; 4072esac 4073eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4074printf "%s\n" "$ac_try_echo"; } >&5 4075 (eval "$ac_link") 2>&5 4076 ac_status=$? 4077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4078 test $ac_status = 0; } 4079 if { ac_try='./conftest$ac_cv_exeext' 4080 { { case "(($ac_try" in 4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4082 *) ac_try_echo=$ac_try;; 4083esac 4084eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4085printf "%s\n" "$ac_try_echo"; } >&5 4086 (eval "$ac_try") 2>&5 4087 ac_status=$? 4088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4089 test $ac_status = 0; }; }; then 4090 cross_compiling=no 4091 else 4092 if test "$cross_compiling" = maybe; then 4093 cross_compiling=yes 4094 else 4095 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4096printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4097as_fn_error 77 "cannot run C compiled programs. 4098If you meant to cross compile, use '--host'. 4099See 'config.log' for more details" "$LINENO" 5; } 4100 fi 4101 fi 4102fi 4103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4104printf "%s\n" "$cross_compiling" >&6; } 4105 4106rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4107 conftest.o conftest.obj conftest.out 4108ac_clean_files=$ac_clean_files_save 4109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4110printf %s "checking for suffix of object files... " >&6; } 4111if test ${ac_cv_objext+y} 4112then : 4113 printf %s "(cached) " >&6 4114else case e in #( 4115 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4116/* end confdefs.h. */ 4117 4118int 4119main (void) 4120{ 4121 4122 ; 4123 return 0; 4124} 4125_ACEOF 4126rm -f conftest.o conftest.obj 4127if { { ac_try="$ac_compile" 4128case "(($ac_try" in 4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4130 *) ac_try_echo=$ac_try;; 4131esac 4132eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4133printf "%s\n" "$ac_try_echo"; } >&5 4134 (eval "$ac_compile") 2>&5 4135 ac_status=$? 4136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4137 test $ac_status = 0; } 4138then : 4139 for ac_file in conftest.o conftest.obj conftest.*; do 4140 test -f "$ac_file" || continue; 4141 case $ac_file in 4142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4143 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4144 break;; 4145 esac 4146done 4147else case e in #( 4148 e) printf "%s\n" "$as_me: failed program was:" >&5 4149sed 's/^/| /' conftest.$ac_ext >&5 4150 4151{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4152printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4153as_fn_error $? "cannot compute suffix of object files: cannot compile 4154See 'config.log' for more details" "$LINENO" 5; } ;; 4155esac 4156fi 4157rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4158esac 4159fi 4160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4161printf "%s\n" "$ac_cv_objext" >&6; } 4162OBJEXT=$ac_cv_objext 4163ac_objext=$OBJEXT 4164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4165printf %s "checking whether the compiler supports GNU C... " >&6; } 4166if test ${ac_cv_c_compiler_gnu+y} 4167then : 4168 printf %s "(cached) " >&6 4169else case e in #( 4170 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4171/* end confdefs.h. */ 4172 4173int 4174main (void) 4175{ 4176#ifndef __GNUC__ 4177 choke me 4178#endif 4179 4180 ; 4181 return 0; 4182} 4183_ACEOF 4184if ac_fn_c_try_compile "$LINENO" 4185then : 4186 ac_compiler_gnu=yes 4187else case e in #( 4188 e) ac_compiler_gnu=no ;; 4189esac 4190fi 4191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4192ac_cv_c_compiler_gnu=$ac_compiler_gnu 4193 ;; 4194esac 4195fi 4196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4197printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4198ac_compiler_gnu=$ac_cv_c_compiler_gnu 4199 4200if test $ac_compiler_gnu = yes; then 4201 GCC=yes 4202else 4203 GCC= 4204fi 4205ac_test_CFLAGS=${CFLAGS+y} 4206ac_save_CFLAGS=$CFLAGS 4207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4208printf %s "checking whether $CC accepts -g... " >&6; } 4209if test ${ac_cv_prog_cc_g+y} 4210then : 4211 printf %s "(cached) " >&6 4212else case e in #( 4213 e) ac_save_c_werror_flag=$ac_c_werror_flag 4214 ac_c_werror_flag=yes 4215 ac_cv_prog_cc_g=no 4216 CFLAGS="-g" 4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4218/* end confdefs.h. */ 4219 4220int 4221main (void) 4222{ 4223 4224 ; 4225 return 0; 4226} 4227_ACEOF 4228if ac_fn_c_try_compile "$LINENO" 4229then : 4230 ac_cv_prog_cc_g=yes 4231else case e in #( 4232 e) CFLAGS="" 4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4234/* end confdefs.h. */ 4235 4236int 4237main (void) 4238{ 4239 4240 ; 4241 return 0; 4242} 4243_ACEOF 4244if ac_fn_c_try_compile "$LINENO" 4245then : 4246 4247else case e in #( 4248 e) ac_c_werror_flag=$ac_save_c_werror_flag 4249 CFLAGS="-g" 4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4251/* end confdefs.h. */ 4252 4253int 4254main (void) 4255{ 4256 4257 ; 4258 return 0; 4259} 4260_ACEOF 4261if ac_fn_c_try_compile "$LINENO" 4262then : 4263 ac_cv_prog_cc_g=yes 4264fi 4265rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4266esac 4267fi 4268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4269esac 4270fi 4271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4272 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4273esac 4274fi 4275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4276printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4277if test $ac_test_CFLAGS; then 4278 CFLAGS=$ac_save_CFLAGS 4279elif test $ac_cv_prog_cc_g = yes; then 4280 if test "$GCC" = yes; then 4281 CFLAGS="-g -O2" 4282 else 4283 CFLAGS="-g" 4284 fi 4285else 4286 if test "$GCC" = yes; then 4287 CFLAGS="-O2" 4288 else 4289 CFLAGS= 4290 fi 4291fi 4292ac_prog_cc_stdc=no 4293if test x$ac_prog_cc_stdc = xno 4294then : 4295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4296printf %s "checking for $CC option to enable C11 features... " >&6; } 4297if test ${ac_cv_prog_cc_c11+y} 4298then : 4299 printf %s "(cached) " >&6 4300else case e in #( 4301 e) ac_cv_prog_cc_c11=no 4302ac_save_CC=$CC 4303cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4304/* end confdefs.h. */ 4305$ac_c_conftest_c11_program 4306_ACEOF 4307for ac_arg in '' -std=gnu11 4308do 4309 CC="$ac_save_CC $ac_arg" 4310 if ac_fn_c_try_compile "$LINENO" 4311then : 4312 ac_cv_prog_cc_c11=$ac_arg 4313fi 4314rm -f core conftest.err conftest.$ac_objext conftest.beam 4315 test "x$ac_cv_prog_cc_c11" != "xno" && break 4316done 4317rm -f conftest.$ac_ext 4318CC=$ac_save_CC ;; 4319esac 4320fi 4321 4322if test "x$ac_cv_prog_cc_c11" = xno 4323then : 4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4325printf "%s\n" "unsupported" >&6; } 4326else case e in #( 4327 e) if test "x$ac_cv_prog_cc_c11" = x 4328then : 4329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4330printf "%s\n" "none needed" >&6; } 4331else case e in #( 4332 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4333printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4334 CC="$CC $ac_cv_prog_cc_c11" ;; 4335esac 4336fi 4337 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4338 ac_prog_cc_stdc=c11 ;; 4339esac 4340fi 4341fi 4342if test x$ac_prog_cc_stdc = xno 4343then : 4344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4345printf %s "checking for $CC option to enable C99 features... " >&6; } 4346if test ${ac_cv_prog_cc_c99+y} 4347then : 4348 printf %s "(cached) " >&6 4349else case e in #( 4350 e) ac_cv_prog_cc_c99=no 4351ac_save_CC=$CC 4352cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4353/* end confdefs.h. */ 4354$ac_c_conftest_c99_program 4355_ACEOF 4356for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4357do 4358 CC="$ac_save_CC $ac_arg" 4359 if ac_fn_c_try_compile "$LINENO" 4360then : 4361 ac_cv_prog_cc_c99=$ac_arg 4362fi 4363rm -f core conftest.err conftest.$ac_objext conftest.beam 4364 test "x$ac_cv_prog_cc_c99" != "xno" && break 4365done 4366rm -f conftest.$ac_ext 4367CC=$ac_save_CC ;; 4368esac 4369fi 4370 4371if test "x$ac_cv_prog_cc_c99" = xno 4372then : 4373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4374printf "%s\n" "unsupported" >&6; } 4375else case e in #( 4376 e) if test "x$ac_cv_prog_cc_c99" = x 4377then : 4378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4379printf "%s\n" "none needed" >&6; } 4380else case e in #( 4381 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4382printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4383 CC="$CC $ac_cv_prog_cc_c99" ;; 4384esac 4385fi 4386 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4387 ac_prog_cc_stdc=c99 ;; 4388esac 4389fi 4390fi 4391if test x$ac_prog_cc_stdc = xno 4392then : 4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4394printf %s "checking for $CC option to enable C89 features... " >&6; } 4395if test ${ac_cv_prog_cc_c89+y} 4396then : 4397 printf %s "(cached) " >&6 4398else case e in #( 4399 e) ac_cv_prog_cc_c89=no 4400ac_save_CC=$CC 4401cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4402/* end confdefs.h. */ 4403$ac_c_conftest_c89_program 4404_ACEOF 4405for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4406do 4407 CC="$ac_save_CC $ac_arg" 4408 if ac_fn_c_try_compile "$LINENO" 4409then : 4410 ac_cv_prog_cc_c89=$ac_arg 4411fi 4412rm -f core conftest.err conftest.$ac_objext conftest.beam 4413 test "x$ac_cv_prog_cc_c89" != "xno" && break 4414done 4415rm -f conftest.$ac_ext 4416CC=$ac_save_CC ;; 4417esac 4418fi 4419 4420if test "x$ac_cv_prog_cc_c89" = xno 4421then : 4422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4423printf "%s\n" "unsupported" >&6; } 4424else case e in #( 4425 e) if test "x$ac_cv_prog_cc_c89" = x 4426then : 4427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4428printf "%s\n" "none needed" >&6; } 4429else case e in #( 4430 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4431printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4432 CC="$CC $ac_cv_prog_cc_c89" ;; 4433esac 4434fi 4435 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4436 ac_prog_cc_stdc=c89 ;; 4437esac 4438fi 4439fi 4440 4441ac_ext=c 4442ac_cpp='$CPP $CPPFLAGS' 4443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4445ac_compiler_gnu=$ac_cv_c_compiler_gnu 4446 4447 4448 ac_ext=c 4449ac_cpp='$CPP $CPPFLAGS' 4450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4452ac_compiler_gnu=$ac_cv_c_compiler_gnu 4453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4454printf %s "checking whether $CC understands -c and -o together... " >&6; } 4455if test ${am_cv_prog_cc_c_o+y} 4456then : 4457 printf %s "(cached) " >&6 4458else case e in #( 4459 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4460/* end confdefs.h. */ 4461 4462int 4463main (void) 4464{ 4465 4466 ; 4467 return 0; 4468} 4469_ACEOF 4470 # Make sure it works both with $CC and with simple cc. 4471 # Following AC_PROG_CC_C_O, we do the test twice because some 4472 # compilers refuse to overwrite an existing .o file with -o, 4473 # though they will create one. 4474 am_cv_prog_cc_c_o=yes 4475 for am_i in 1 2; do 4476 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4477 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4478 ac_status=$? 4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4480 (exit $ac_status); } \ 4481 && test -f conftest2.$ac_objext; then 4482 : OK 4483 else 4484 am_cv_prog_cc_c_o=no 4485 break 4486 fi 4487 done 4488 rm -f core conftest* 4489 unset am_i ;; 4490esac 4491fi 4492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4493printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4494if test "$am_cv_prog_cc_c_o" != yes; then 4495 # Losing compiler, so override with the script. 4496 # FIXME: It is wrong to rewrite CC. 4497 # But if we don't then we get into trouble of one sort or another. 4498 # A longer-term fix would be to have automake use am__CC in this case, 4499 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4500 CC="$am_aux_dir/compile $CC" 4501fi 4502ac_ext=c 4503ac_cpp='$CPP $CPPFLAGS' 4504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4506ac_compiler_gnu=$ac_cv_c_compiler_gnu 4507 4508 4509depcc="$CC" am_compiler_list= 4510 4511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4512printf %s "checking dependency style of $depcc... " >&6; } 4513if test ${am_cv_CC_dependencies_compiler_type+y} 4514then : 4515 printf %s "(cached) " >&6 4516else case e in #( 4517 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4518 # We make a subdir and do the tests there. Otherwise we can end up 4519 # making bogus files that we don't know about and never remove. For 4520 # instance it was reported that on HP-UX the gcc test will end up 4521 # making a dummy file named 'D' -- because '-MD' means "put the output 4522 # in D". 4523 rm -rf conftest.dir 4524 mkdir conftest.dir 4525 # Copy depcomp to subdir because otherwise we won't find it if we're 4526 # using a relative directory. 4527 cp "$am_depcomp" conftest.dir 4528 cd conftest.dir 4529 # We will build objects and dependencies in a subdirectory because 4530 # it helps to detect inapplicable dependency modes. For instance 4531 # both Tru64's cc and ICC support -MD to output dependencies as a 4532 # side effect of compilation, but ICC will put the dependencies in 4533 # the current directory while Tru64 will put them in the object 4534 # directory. 4535 mkdir sub 4536 4537 am_cv_CC_dependencies_compiler_type=none 4538 if test "$am_compiler_list" = ""; then 4539 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4540 fi 4541 am__universal=false 4542 case " $depcc " in #( 4543 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4544 esac 4545 4546 for depmode in $am_compiler_list; do 4547 # Setup a source with many dependencies, because some compilers 4548 # like to wrap large dependency lists on column 80 (with \), and 4549 # we should not choose a depcomp mode which is confused by this. 4550 # 4551 # We need to recreate these files for each test, as the compiler may 4552 # overwrite some of them when testing with obscure command lines. 4553 # This happens at least with the AIX C compiler. 4554 : > sub/conftest.c 4555 for i in 1 2 3 4 5 6; do 4556 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4557 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4558 # Solaris 10 /bin/sh. 4559 echo '/* dummy */' > sub/conftst$i.h 4560 done 4561 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4562 4563 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4564 # mode. It turns out that the SunPro C++ compiler does not properly 4565 # handle '-M -o', and we need to detect this. Also, some Intel 4566 # versions had trouble with output in subdirs. 4567 am__obj=sub/conftest.${OBJEXT-o} 4568 am__minus_obj="-o $am__obj" 4569 case $depmode in 4570 gcc) 4571 # This depmode causes a compiler race in universal mode. 4572 test "$am__universal" = false || continue 4573 ;; 4574 nosideeffect) 4575 # After this tag, mechanisms are not by side-effect, so they'll 4576 # only be used when explicitly requested. 4577 if test "x$enable_dependency_tracking" = xyes; then 4578 continue 4579 else 4580 break 4581 fi 4582 ;; 4583 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4584 # This compiler won't grok '-c -o', but also, the minuso test has 4585 # not run yet. These depmodes are late enough in the game, and 4586 # so weak that their functioning should not be impacted. 4587 am__obj=conftest.${OBJEXT-o} 4588 am__minus_obj= 4589 ;; 4590 none) break ;; 4591 esac 4592 if depmode=$depmode \ 4593 source=sub/conftest.c object=$am__obj \ 4594 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4595 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4596 >/dev/null 2>conftest.err && 4597 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4598 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4599 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4600 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4601 # icc doesn't choke on unknown options, it will just issue warnings 4602 # or remarks (even with -Werror). So we grep stderr for any message 4603 # that says an option was ignored or not supported. 4604 # When given -MP, icc 7.0 and 7.1 complain thus: 4605 # icc: Command line warning: ignoring option '-M'; no argument required 4606 # The diagnosis changed in icc 8.0: 4607 # icc: Command line remark: option '-MP' not supported 4608 if (grep 'ignoring option' conftest.err || 4609 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4610 am_cv_CC_dependencies_compiler_type=$depmode 4611 break 4612 fi 4613 fi 4614 done 4615 4616 cd .. 4617 rm -rf conftest.dir 4618else 4619 am_cv_CC_dependencies_compiler_type=none 4620fi 4621 ;; 4622esac 4623fi 4624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4625printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4626CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4627 4628 if 4629 test "x$enable_dependency_tracking" != xno \ 4630 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4631 am__fastdepCC_TRUE= 4632 am__fastdepCC_FALSE='#' 4633else 4634 am__fastdepCC_TRUE='#' 4635 am__fastdepCC_FALSE= 4636fi 4637 4638 4639 4640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4641printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4642if test ${ac_cv_c_undeclared_builtin_options+y} 4643then : 4644 printf %s "(cached) " >&6 4645else case e in #( 4646 e) ac_save_CFLAGS=$CFLAGS 4647 ac_cv_c_undeclared_builtin_options='cannot detect' 4648 for ac_arg in '' -fno-builtin; do 4649 CFLAGS="$ac_save_CFLAGS $ac_arg" 4650 # This test program should *not* compile successfully. 4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4652/* end confdefs.h. */ 4653 4654int 4655main (void) 4656{ 4657(void) strchr; 4658 ; 4659 return 0; 4660} 4661_ACEOF 4662if ac_fn_c_try_compile "$LINENO" 4663then : 4664 4665else case e in #( 4666 e) # This test program should compile successfully. 4667 # No library function is consistently available on 4668 # freestanding implementations, so test against a dummy 4669 # declaration. Include always-available headers on the 4670 # off chance that they somehow elicit warnings. 4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4672/* end confdefs.h. */ 4673#include <float.h> 4674#include <limits.h> 4675#include <stdarg.h> 4676#include <stddef.h> 4677extern void ac_decl (int, char *); 4678 4679int 4680main (void) 4681{ 4682(void) ac_decl (0, (char *) 0); 4683 (void) ac_decl; 4684 4685 ; 4686 return 0; 4687} 4688_ACEOF 4689if ac_fn_c_try_compile "$LINENO" 4690then : 4691 if test x"$ac_arg" = x 4692then : 4693 ac_cv_c_undeclared_builtin_options='none needed' 4694else case e in #( 4695 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4696esac 4697fi 4698 break 4699fi 4700rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4701esac 4702fi 4703rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4704 done 4705 CFLAGS=$ac_save_CFLAGS 4706 ;; 4707esac 4708fi 4709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4710printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4711 case $ac_cv_c_undeclared_builtin_options in #( 4712 'cannot detect') : 4713 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4714printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4715as_fn_error $? "cannot make $CC report undeclared builtins 4716See 'config.log' for more details" "$LINENO" 5; } ;; #( 4717 'none needed') : 4718 ac_c_undeclared_builtin_options='' ;; #( 4719 *) : 4720 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4721esac 4722 4723ac_header= ac_cache= 4724for ac_item in $ac_header_c_list 4725do 4726 if test $ac_cache; then 4727 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4728 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4729 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4730 fi 4731 ac_header= ac_cache= 4732 elif test $ac_header; then 4733 ac_cache=$ac_item 4734 else 4735 ac_header=$ac_item 4736 fi 4737done 4738 4739 4740 4741 4742 4743 4744 4745 4746if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4747then : 4748 4749printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4750 4751fi 4752 4753 4754 4755 4756ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4757if test "x$ac_cv_have_decl___clang__" = xyes 4758then : 4759 CLANGCC="yes" 4760else case e in #( 4761 e) CLANGCC="no" ;; 4762esac 4763fi 4764ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4765if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4766then : 4767 INTELCC="yes" 4768else case e in #( 4769 e) INTELCC="no" ;; 4770esac 4771fi 4772ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4773if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4774then : 4775 SUNCC="yes" 4776else case e in #( 4777 e) SUNCC="no" ;; 4778esac 4779fi 4780 4781 4782 4783 4784 4785 4786 4787 4788if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4789 if test -n "$ac_tool_prefix"; then 4790 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4791set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4793printf %s "checking for $ac_word... " >&6; } 4794if test ${ac_cv_path_PKG_CONFIG+y} 4795then : 4796 printf %s "(cached) " >&6 4797else case e in #( 4798 e) case $PKG_CONFIG in 4799 [\\/]* | ?:[\\/]*) 4800 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4801 ;; 4802 *) 4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4804for as_dir in $PATH 4805do 4806 IFS=$as_save_IFS 4807 case $as_dir in #((( 4808 '') as_dir=./ ;; 4809 */) ;; 4810 *) as_dir=$as_dir/ ;; 4811 esac 4812 for ac_exec_ext in '' $ac_executable_extensions; do 4813 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4814 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4816 break 2 4817 fi 4818done 4819 done 4820IFS=$as_save_IFS 4821 4822 ;; 4823esac ;; 4824esac 4825fi 4826PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4827if test -n "$PKG_CONFIG"; then 4828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4829printf "%s\n" "$PKG_CONFIG" >&6; } 4830else 4831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4832printf "%s\n" "no" >&6; } 4833fi 4834 4835 4836fi 4837if test -z "$ac_cv_path_PKG_CONFIG"; then 4838 ac_pt_PKG_CONFIG=$PKG_CONFIG 4839 # Extract the first word of "pkg-config", so it can be a program name with args. 4840set dummy pkg-config; ac_word=$2 4841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4842printf %s "checking for $ac_word... " >&6; } 4843if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4844then : 4845 printf %s "(cached) " >&6 4846else case e in #( 4847 e) case $ac_pt_PKG_CONFIG in 4848 [\\/]* | ?:[\\/]*) 4849 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4850 ;; 4851 *) 4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4853for as_dir in $PATH 4854do 4855 IFS=$as_save_IFS 4856 case $as_dir in #((( 4857 '') as_dir=./ ;; 4858 */) ;; 4859 *) as_dir=$as_dir/ ;; 4860 esac 4861 for ac_exec_ext in '' $ac_executable_extensions; do 4862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4863 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4865 break 2 4866 fi 4867done 4868 done 4869IFS=$as_save_IFS 4870 4871 ;; 4872esac ;; 4873esac 4874fi 4875ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4876if test -n "$ac_pt_PKG_CONFIG"; then 4877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4878printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4879else 4880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4881printf "%s\n" "no" >&6; } 4882fi 4883 4884 if test "x$ac_pt_PKG_CONFIG" = x; then 4885 PKG_CONFIG="" 4886 else 4887 case $cross_compiling:$ac_tool_warned in 4888yes:) 4889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4890printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4891ac_tool_warned=yes ;; 4892esac 4893 PKG_CONFIG=$ac_pt_PKG_CONFIG 4894 fi 4895else 4896 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4897fi 4898 4899fi 4900if test -n "$PKG_CONFIG"; then 4901 _pkg_min_version=0.9.0 4902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4903printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4904 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4906printf "%s\n" "yes" >&6; } 4907 else 4908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4909printf "%s\n" "no" >&6; } 4910 PKG_CONFIG="" 4911 fi 4912fi 4913 4914 4915 # Make sure we can run config.sub. 4916$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4917 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4918 4919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4920printf %s "checking build system type... " >&6; } 4921if test ${ac_cv_build+y} 4922then : 4923 printf %s "(cached) " >&6 4924else case e in #( 4925 e) ac_build_alias=$build_alias 4926test "x$ac_build_alias" = x && 4927 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4928test "x$ac_build_alias" = x && 4929 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4930ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4931 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4932 ;; 4933esac 4934fi 4935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4936printf "%s\n" "$ac_cv_build" >&6; } 4937case $ac_cv_build in 4938*-*-*) ;; 4939*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4940esac 4941build=$ac_cv_build 4942ac_save_IFS=$IFS; IFS='-' 4943set x $ac_cv_build 4944shift 4945build_cpu=$1 4946build_vendor=$2 4947shift; shift 4948# Remember, the first character of IFS is used to create $*, 4949# except with old shells: 4950build_os=$* 4951IFS=$ac_save_IFS 4952case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4953 4954 4955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4956printf %s "checking host system type... " >&6; } 4957if test ${ac_cv_host+y} 4958then : 4959 printf %s "(cached) " >&6 4960else case e in #( 4961 e) if test "x$host_alias" = x; then 4962 ac_cv_host=$ac_cv_build 4963else 4964 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4965 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4966fi 4967 ;; 4968esac 4969fi 4970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4971printf "%s\n" "$ac_cv_host" >&6; } 4972case $ac_cv_host in 4973*-*-*) ;; 4974*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4975esac 4976host=$ac_cv_host 4977ac_save_IFS=$IFS; IFS='-' 4978set x $ac_cv_host 4979shift 4980host_cpu=$1 4981host_vendor=$2 4982shift; shift 4983# Remember, the first character of IFS is used to create $*, 4984# except with old shells: 4985host_os=$* 4986IFS=$ac_save_IFS 4987case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4988 4989 4990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4991printf %s "checking for a sed that does not truncate output... " >&6; } 4992if test ${ac_cv_path_SED+y} 4993then : 4994 printf %s "(cached) " >&6 4995else case e in #( 4996 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4997 for ac_i in 1 2 3 4 5 6 7; do 4998 ac_script="$ac_script$as_nl$ac_script" 4999 done 5000 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5001 { ac_script=; unset ac_script;} 5002 if test -z "$SED"; then 5003 ac_path_SED_found=false 5004 # Loop through the user's path and test for each of PROGNAME-LIST 5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5006for as_dir in $PATH 5007do 5008 IFS=$as_save_IFS 5009 case $as_dir in #((( 5010 '') as_dir=./ ;; 5011 */) ;; 5012 *) as_dir=$as_dir/ ;; 5013 esac 5014 for ac_prog in sed gsed 5015 do 5016 for ac_exec_ext in '' $ac_executable_extensions; do 5017 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5018 as_fn_executable_p "$ac_path_SED" || continue 5019# Check for GNU ac_path_SED and select it if it is found. 5020 # Check for GNU $ac_path_SED 5021case `"$ac_path_SED" --version 2>&1` in #( 5022*GNU*) 5023 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5024#( 5025*) 5026 ac_count=0 5027 printf %s 0123456789 >"conftest.in" 5028 while : 5029 do 5030 cat "conftest.in" "conftest.in" >"conftest.tmp" 5031 mv "conftest.tmp" "conftest.in" 5032 cp "conftest.in" "conftest.nl" 5033 printf "%s\n" '' >> "conftest.nl" 5034 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5035 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5036 as_fn_arith $ac_count + 1 && ac_count=$as_val 5037 if test $ac_count -gt ${ac_path_SED_max-0}; then 5038 # Best one so far, save it but keep looking for a better one 5039 ac_cv_path_SED="$ac_path_SED" 5040 ac_path_SED_max=$ac_count 5041 fi 5042 # 10*(2^10) chars as input seems more than enough 5043 test $ac_count -gt 10 && break 5044 done 5045 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5046esac 5047 5048 $ac_path_SED_found && break 3 5049 done 5050 done 5051 done 5052IFS=$as_save_IFS 5053 if test -z "$ac_cv_path_SED"; then 5054 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5055 fi 5056else 5057 ac_cv_path_SED=$SED 5058fi 5059 ;; 5060esac 5061fi 5062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5063printf "%s\n" "$ac_cv_path_SED" >&6; } 5064 SED="$ac_cv_path_SED" 5065 rm -f conftest.sed 5066 5067 5068 5069 5070 5071 5072# Check whether --enable-selective-werror was given. 5073if test ${enable_selective_werror+y} 5074then : 5075 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5076else case e in #( 5077 e) SELECTIVE_WERROR=yes ;; 5078esac 5079fi 5080 5081 5082 5083 5084 5085# -v is too short to test reliably with XORG_TESTSET_CFLAG 5086if test "x$SUNCC" = "xyes"; then 5087 BASE_CFLAGS="-v" 5088else 5089 BASE_CFLAGS="" 5090fi 5091 5092# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106xorg_testset_save_CFLAGS="$CFLAGS" 5107 5108if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5111printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5112if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5113then : 5114 printf %s "(cached) " >&6 5115else case e in #( 5116 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5117/* end confdefs.h. */ 5118int i; 5119_ACEOF 5120if ac_fn_c_try_compile "$LINENO" 5121then : 5122 xorg_cv_cc_flag_unknown_warning_option=yes 5123else case e in #( 5124 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5125esac 5126fi 5127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5128esac 5129fi 5130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5131printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5133 CFLAGS="$xorg_testset_save_CFLAGS" 5134fi 5135 5136if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5139 fi 5140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5142printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5143if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5144then : 5145 printf %s "(cached) " >&6 5146else case e in #( 5147 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5148/* end confdefs.h. */ 5149int i; 5150_ACEOF 5151if ac_fn_c_try_compile "$LINENO" 5152then : 5153 xorg_cv_cc_flag_unused_command_line_argument=yes 5154else case e in #( 5155 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5156esac 5157fi 5158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5159esac 5160fi 5161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5162printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5163 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5164 CFLAGS="$xorg_testset_save_CFLAGS" 5165fi 5166 5167found="no" 5168 5169 if test $found = "no" ; then 5170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5172 fi 5173 5174 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5176 fi 5177 5178 CFLAGS="$CFLAGS -Wall" 5179 5180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5181printf %s "checking if $CC supports -Wall... " >&6; } 5182 cacheid=xorg_cv_cc_flag__Wall 5183 if eval test \${$cacheid+y} 5184then : 5185 printf %s "(cached) " >&6 5186else case e in #( 5187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5188/* end confdefs.h. */ 5189int i; 5190int 5191main (void) 5192{ 5193 5194 ; 5195 return 0; 5196} 5197_ACEOF 5198if ac_fn_c_try_link "$LINENO" 5199then : 5200 eval $cacheid=yes 5201else case e in #( 5202 e) eval $cacheid=no ;; 5203esac 5204fi 5205rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5206 conftest$ac_exeext conftest.$ac_ext ;; 5207esac 5208fi 5209 5210 5211 CFLAGS="$xorg_testset_save_CFLAGS" 5212 5213 eval supported=\$$cacheid 5214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5215printf "%s\n" "$supported" >&6; } 5216 if test "$supported" = "yes" ; then 5217 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5218 found="yes" 5219 fi 5220 fi 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236xorg_testset_save_CFLAGS="$CFLAGS" 5237 5238if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5241printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5242if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5243then : 5244 printf %s "(cached) " >&6 5245else case e in #( 5246 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5247/* end confdefs.h. */ 5248int i; 5249_ACEOF 5250if ac_fn_c_try_compile "$LINENO" 5251then : 5252 xorg_cv_cc_flag_unknown_warning_option=yes 5253else case e in #( 5254 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5255esac 5256fi 5257rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5258esac 5259fi 5260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5261printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5263 CFLAGS="$xorg_testset_save_CFLAGS" 5264fi 5265 5266if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5269 fi 5270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5272printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5273if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5274then : 5275 printf %s "(cached) " >&6 5276else case e in #( 5277 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5278/* end confdefs.h. */ 5279int i; 5280_ACEOF 5281if ac_fn_c_try_compile "$LINENO" 5282then : 5283 xorg_cv_cc_flag_unused_command_line_argument=yes 5284else case e in #( 5285 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5286esac 5287fi 5288rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5289esac 5290fi 5291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5292printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5293 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5294 CFLAGS="$xorg_testset_save_CFLAGS" 5295fi 5296 5297found="no" 5298 5299 if test $found = "no" ; then 5300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5302 fi 5303 5304 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5306 fi 5307 5308 CFLAGS="$CFLAGS -Wpointer-arith" 5309 5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5311printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5312 cacheid=xorg_cv_cc_flag__Wpointer_arith 5313 if eval test \${$cacheid+y} 5314then : 5315 printf %s "(cached) " >&6 5316else case e in #( 5317 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5318/* end confdefs.h. */ 5319int i; 5320int 5321main (void) 5322{ 5323 5324 ; 5325 return 0; 5326} 5327_ACEOF 5328if ac_fn_c_try_link "$LINENO" 5329then : 5330 eval $cacheid=yes 5331else case e in #( 5332 e) eval $cacheid=no ;; 5333esac 5334fi 5335rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5336 conftest$ac_exeext conftest.$ac_ext ;; 5337esac 5338fi 5339 5340 5341 CFLAGS="$xorg_testset_save_CFLAGS" 5342 5343 eval supported=\$$cacheid 5344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5345printf "%s\n" "$supported" >&6; } 5346 if test "$supported" = "yes" ; then 5347 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5348 found="yes" 5349 fi 5350 fi 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366xorg_testset_save_CFLAGS="$CFLAGS" 5367 5368if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5371printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5372if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5373then : 5374 printf %s "(cached) " >&6 5375else case e in #( 5376 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5377/* end confdefs.h. */ 5378int i; 5379_ACEOF 5380if ac_fn_c_try_compile "$LINENO" 5381then : 5382 xorg_cv_cc_flag_unknown_warning_option=yes 5383else case e in #( 5384 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5385esac 5386fi 5387rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5388esac 5389fi 5390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5391printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5392 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5393 CFLAGS="$xorg_testset_save_CFLAGS" 5394fi 5395 5396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5399 fi 5400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5402printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5403if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5404then : 5405 printf %s "(cached) " >&6 5406else case e in #( 5407 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5408/* end confdefs.h. */ 5409int i; 5410_ACEOF 5411if ac_fn_c_try_compile "$LINENO" 5412then : 5413 xorg_cv_cc_flag_unused_command_line_argument=yes 5414else case e in #( 5415 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5416esac 5417fi 5418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5419esac 5420fi 5421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5422printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5424 CFLAGS="$xorg_testset_save_CFLAGS" 5425fi 5426 5427found="no" 5428 5429 if test $found = "no" ; then 5430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5432 fi 5433 5434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5436 fi 5437 5438 CFLAGS="$CFLAGS -Wmissing-declarations" 5439 5440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5441printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5442 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5443 if eval test \${$cacheid+y} 5444then : 5445 printf %s "(cached) " >&6 5446else case e in #( 5447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5448/* end confdefs.h. */ 5449int i; 5450int 5451main (void) 5452{ 5453 5454 ; 5455 return 0; 5456} 5457_ACEOF 5458if ac_fn_c_try_link "$LINENO" 5459then : 5460 eval $cacheid=yes 5461else case e in #( 5462 e) eval $cacheid=no ;; 5463esac 5464fi 5465rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5466 conftest$ac_exeext conftest.$ac_ext ;; 5467esac 5468fi 5469 5470 5471 CFLAGS="$xorg_testset_save_CFLAGS" 5472 5473 eval supported=\$$cacheid 5474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5475printf "%s\n" "$supported" >&6; } 5476 if test "$supported" = "yes" ; then 5477 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5478 found="yes" 5479 fi 5480 fi 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496xorg_testset_save_CFLAGS="$CFLAGS" 5497 5498if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5501printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5502if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5503then : 5504 printf %s "(cached) " >&6 5505else case e in #( 5506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5507/* end confdefs.h. */ 5508int i; 5509_ACEOF 5510if ac_fn_c_try_compile "$LINENO" 5511then : 5512 xorg_cv_cc_flag_unknown_warning_option=yes 5513else case e in #( 5514 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5515esac 5516fi 5517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5518esac 5519fi 5520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5521printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5522 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5523 CFLAGS="$xorg_testset_save_CFLAGS" 5524fi 5525 5526if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5529 fi 5530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5532printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5533if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5534then : 5535 printf %s "(cached) " >&6 5536else case e in #( 5537 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5538/* end confdefs.h. */ 5539int i; 5540_ACEOF 5541if ac_fn_c_try_compile "$LINENO" 5542then : 5543 xorg_cv_cc_flag_unused_command_line_argument=yes 5544else case e in #( 5545 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5546esac 5547fi 5548rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5549esac 5550fi 5551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5552printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5553 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5554 CFLAGS="$xorg_testset_save_CFLAGS" 5555fi 5556 5557found="no" 5558 5559 if test $found = "no" ; then 5560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5562 fi 5563 5564 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5566 fi 5567 5568 CFLAGS="$CFLAGS -Wformat=2" 5569 5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5571printf %s "checking if $CC supports -Wformat=2... " >&6; } 5572 cacheid=xorg_cv_cc_flag__Wformat_2 5573 if eval test \${$cacheid+y} 5574then : 5575 printf %s "(cached) " >&6 5576else case e in #( 5577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5578/* end confdefs.h. */ 5579int i; 5580int 5581main (void) 5582{ 5583 5584 ; 5585 return 0; 5586} 5587_ACEOF 5588if ac_fn_c_try_link "$LINENO" 5589then : 5590 eval $cacheid=yes 5591else case e in #( 5592 e) eval $cacheid=no ;; 5593esac 5594fi 5595rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5596 conftest$ac_exeext conftest.$ac_ext ;; 5597esac 5598fi 5599 5600 5601 CFLAGS="$xorg_testset_save_CFLAGS" 5602 5603 eval supported=\$$cacheid 5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5605printf "%s\n" "$supported" >&6; } 5606 if test "$supported" = "yes" ; then 5607 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5608 found="yes" 5609 fi 5610 fi 5611 5612 if test $found = "no" ; then 5613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5615 fi 5616 5617 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5619 fi 5620 5621 CFLAGS="$CFLAGS -Wformat" 5622 5623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5624printf %s "checking if $CC supports -Wformat... " >&6; } 5625 cacheid=xorg_cv_cc_flag__Wformat 5626 if eval test \${$cacheid+y} 5627then : 5628 printf %s "(cached) " >&6 5629else case e in #( 5630 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5631/* end confdefs.h. */ 5632int i; 5633int 5634main (void) 5635{ 5636 5637 ; 5638 return 0; 5639} 5640_ACEOF 5641if ac_fn_c_try_link "$LINENO" 5642then : 5643 eval $cacheid=yes 5644else case e in #( 5645 e) eval $cacheid=no ;; 5646esac 5647fi 5648rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5649 conftest$ac_exeext conftest.$ac_ext ;; 5650esac 5651fi 5652 5653 5654 CFLAGS="$xorg_testset_save_CFLAGS" 5655 5656 eval supported=\$$cacheid 5657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5658printf "%s\n" "$supported" >&6; } 5659 if test "$supported" = "yes" ; then 5660 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5661 found="yes" 5662 fi 5663 fi 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681xorg_testset_save_CFLAGS="$CFLAGS" 5682 5683if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5686printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5687if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5688then : 5689 printf %s "(cached) " >&6 5690else case e in #( 5691 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5692/* end confdefs.h. */ 5693int i; 5694_ACEOF 5695if ac_fn_c_try_compile "$LINENO" 5696then : 5697 xorg_cv_cc_flag_unknown_warning_option=yes 5698else case e in #( 5699 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5700esac 5701fi 5702rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5703esac 5704fi 5705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5706printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5708 CFLAGS="$xorg_testset_save_CFLAGS" 5709fi 5710 5711if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5714 fi 5715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5717printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5718if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5719then : 5720 printf %s "(cached) " >&6 5721else case e in #( 5722 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5723/* end confdefs.h. */ 5724int i; 5725_ACEOF 5726if ac_fn_c_try_compile "$LINENO" 5727then : 5728 xorg_cv_cc_flag_unused_command_line_argument=yes 5729else case e in #( 5730 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5731esac 5732fi 5733rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5734esac 5735fi 5736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5737printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5738 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5739 CFLAGS="$xorg_testset_save_CFLAGS" 5740fi 5741 5742found="no" 5743 5744 if test $found = "no" ; then 5745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5747 fi 5748 5749 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5751 fi 5752 5753 CFLAGS="$CFLAGS -Wstrict-prototypes" 5754 5755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5756printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5757 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5758 if eval test \${$cacheid+y} 5759then : 5760 printf %s "(cached) " >&6 5761else case e in #( 5762 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5763/* end confdefs.h. */ 5764int i; 5765int 5766main (void) 5767{ 5768 5769 ; 5770 return 0; 5771} 5772_ACEOF 5773if ac_fn_c_try_link "$LINENO" 5774then : 5775 eval $cacheid=yes 5776else case e in #( 5777 e) eval $cacheid=no ;; 5778esac 5779fi 5780rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5781 conftest$ac_exeext conftest.$ac_ext ;; 5782esac 5783fi 5784 5785 5786 CFLAGS="$xorg_testset_save_CFLAGS" 5787 5788 eval supported=\$$cacheid 5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5790printf "%s\n" "$supported" >&6; } 5791 if test "$supported" = "yes" ; then 5792 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5793 found="yes" 5794 fi 5795 fi 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811xorg_testset_save_CFLAGS="$CFLAGS" 5812 5813if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5816printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5817if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5818then : 5819 printf %s "(cached) " >&6 5820else case e in #( 5821 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5822/* end confdefs.h. */ 5823int i; 5824_ACEOF 5825if ac_fn_c_try_compile "$LINENO" 5826then : 5827 xorg_cv_cc_flag_unknown_warning_option=yes 5828else case e in #( 5829 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5830esac 5831fi 5832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5833esac 5834fi 5835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5836printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5838 CFLAGS="$xorg_testset_save_CFLAGS" 5839fi 5840 5841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5844 fi 5845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5847printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5848if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5849then : 5850 printf %s "(cached) " >&6 5851else case e in #( 5852 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5853/* end confdefs.h. */ 5854int i; 5855_ACEOF 5856if ac_fn_c_try_compile "$LINENO" 5857then : 5858 xorg_cv_cc_flag_unused_command_line_argument=yes 5859else case e in #( 5860 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5861esac 5862fi 5863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5864esac 5865fi 5866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5867printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5868 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5869 CFLAGS="$xorg_testset_save_CFLAGS" 5870fi 5871 5872found="no" 5873 5874 if test $found = "no" ; then 5875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5877 fi 5878 5879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5881 fi 5882 5883 CFLAGS="$CFLAGS -Wmissing-prototypes" 5884 5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5886printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5887 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5888 if eval test \${$cacheid+y} 5889then : 5890 printf %s "(cached) " >&6 5891else case e in #( 5892 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5893/* end confdefs.h. */ 5894int i; 5895int 5896main (void) 5897{ 5898 5899 ; 5900 return 0; 5901} 5902_ACEOF 5903if ac_fn_c_try_link "$LINENO" 5904then : 5905 eval $cacheid=yes 5906else case e in #( 5907 e) eval $cacheid=no ;; 5908esac 5909fi 5910rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5911 conftest$ac_exeext conftest.$ac_ext ;; 5912esac 5913fi 5914 5915 5916 CFLAGS="$xorg_testset_save_CFLAGS" 5917 5918 eval supported=\$$cacheid 5919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5920printf "%s\n" "$supported" >&6; } 5921 if test "$supported" = "yes" ; then 5922 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5923 found="yes" 5924 fi 5925 fi 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941xorg_testset_save_CFLAGS="$CFLAGS" 5942 5943if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5946printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5947if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5948then : 5949 printf %s "(cached) " >&6 5950else case e in #( 5951 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5952/* end confdefs.h. */ 5953int i; 5954_ACEOF 5955if ac_fn_c_try_compile "$LINENO" 5956then : 5957 xorg_cv_cc_flag_unknown_warning_option=yes 5958else case e in #( 5959 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5960esac 5961fi 5962rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5963esac 5964fi 5965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5966printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5967 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5968 CFLAGS="$xorg_testset_save_CFLAGS" 5969fi 5970 5971if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5974 fi 5975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5977printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5978if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5979then : 5980 printf %s "(cached) " >&6 5981else case e in #( 5982 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5983/* end confdefs.h. */ 5984int i; 5985_ACEOF 5986if ac_fn_c_try_compile "$LINENO" 5987then : 5988 xorg_cv_cc_flag_unused_command_line_argument=yes 5989else case e in #( 5990 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5991esac 5992fi 5993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5994esac 5995fi 5996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5997printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5999 CFLAGS="$xorg_testset_save_CFLAGS" 6000fi 6001 6002found="no" 6003 6004 if test $found = "no" ; then 6005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6007 fi 6008 6009 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6011 fi 6012 6013 CFLAGS="$CFLAGS -Wnested-externs" 6014 6015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6016printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6017 cacheid=xorg_cv_cc_flag__Wnested_externs 6018 if eval test \${$cacheid+y} 6019then : 6020 printf %s "(cached) " >&6 6021else case e in #( 6022 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6023/* end confdefs.h. */ 6024int i; 6025int 6026main (void) 6027{ 6028 6029 ; 6030 return 0; 6031} 6032_ACEOF 6033if ac_fn_c_try_link "$LINENO" 6034then : 6035 eval $cacheid=yes 6036else case e in #( 6037 e) eval $cacheid=no ;; 6038esac 6039fi 6040rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6041 conftest$ac_exeext conftest.$ac_ext ;; 6042esac 6043fi 6044 6045 6046 CFLAGS="$xorg_testset_save_CFLAGS" 6047 6048 eval supported=\$$cacheid 6049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6050printf "%s\n" "$supported" >&6; } 6051 if test "$supported" = "yes" ; then 6052 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6053 found="yes" 6054 fi 6055 fi 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071xorg_testset_save_CFLAGS="$CFLAGS" 6072 6073if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6076printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6077if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6078then : 6079 printf %s "(cached) " >&6 6080else case e in #( 6081 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6082/* end confdefs.h. */ 6083int i; 6084_ACEOF 6085if ac_fn_c_try_compile "$LINENO" 6086then : 6087 xorg_cv_cc_flag_unknown_warning_option=yes 6088else case e in #( 6089 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6090esac 6091fi 6092rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6093esac 6094fi 6095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6096printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6097 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6098 CFLAGS="$xorg_testset_save_CFLAGS" 6099fi 6100 6101if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6104 fi 6105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6107printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6108if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6109then : 6110 printf %s "(cached) " >&6 6111else case e in #( 6112 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6113/* end confdefs.h. */ 6114int i; 6115_ACEOF 6116if ac_fn_c_try_compile "$LINENO" 6117then : 6118 xorg_cv_cc_flag_unused_command_line_argument=yes 6119else case e in #( 6120 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6121esac 6122fi 6123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6124esac 6125fi 6126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6127printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6129 CFLAGS="$xorg_testset_save_CFLAGS" 6130fi 6131 6132found="no" 6133 6134 if test $found = "no" ; then 6135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6137 fi 6138 6139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6141 fi 6142 6143 CFLAGS="$CFLAGS -Wbad-function-cast" 6144 6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6146printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6147 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6148 if eval test \${$cacheid+y} 6149then : 6150 printf %s "(cached) " >&6 6151else case e in #( 6152 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6153/* end confdefs.h. */ 6154int i; 6155int 6156main (void) 6157{ 6158 6159 ; 6160 return 0; 6161} 6162_ACEOF 6163if ac_fn_c_try_link "$LINENO" 6164then : 6165 eval $cacheid=yes 6166else case e in #( 6167 e) eval $cacheid=no ;; 6168esac 6169fi 6170rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6171 conftest$ac_exeext conftest.$ac_ext ;; 6172esac 6173fi 6174 6175 6176 CFLAGS="$xorg_testset_save_CFLAGS" 6177 6178 eval supported=\$$cacheid 6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6180printf "%s\n" "$supported" >&6; } 6181 if test "$supported" = "yes" ; then 6182 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6183 found="yes" 6184 fi 6185 fi 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201xorg_testset_save_CFLAGS="$CFLAGS" 6202 6203if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6206printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6207if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6208then : 6209 printf %s "(cached) " >&6 6210else case e in #( 6211 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6212/* end confdefs.h. */ 6213int i; 6214_ACEOF 6215if ac_fn_c_try_compile "$LINENO" 6216then : 6217 xorg_cv_cc_flag_unknown_warning_option=yes 6218else case e in #( 6219 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6220esac 6221fi 6222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6223esac 6224fi 6225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6226printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6227 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6228 CFLAGS="$xorg_testset_save_CFLAGS" 6229fi 6230 6231if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6234 fi 6235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6237printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6238if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6239then : 6240 printf %s "(cached) " >&6 6241else case e in #( 6242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6243/* end confdefs.h. */ 6244int i; 6245_ACEOF 6246if ac_fn_c_try_compile "$LINENO" 6247then : 6248 xorg_cv_cc_flag_unused_command_line_argument=yes 6249else case e in #( 6250 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6251esac 6252fi 6253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6254esac 6255fi 6256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6257printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6258 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6259 CFLAGS="$xorg_testset_save_CFLAGS" 6260fi 6261 6262found="no" 6263 6264 if test $found = "no" ; then 6265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6267 fi 6268 6269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6271 fi 6272 6273 CFLAGS="$CFLAGS -Wold-style-definition" 6274 6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6276printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6277 cacheid=xorg_cv_cc_flag__Wold_style_definition 6278 if eval test \${$cacheid+y} 6279then : 6280 printf %s "(cached) " >&6 6281else case e in #( 6282 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6283/* end confdefs.h. */ 6284int i; 6285int 6286main (void) 6287{ 6288 6289 ; 6290 return 0; 6291} 6292_ACEOF 6293if ac_fn_c_try_link "$LINENO" 6294then : 6295 eval $cacheid=yes 6296else case e in #( 6297 e) eval $cacheid=no ;; 6298esac 6299fi 6300rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6301 conftest$ac_exeext conftest.$ac_ext ;; 6302esac 6303fi 6304 6305 6306 CFLAGS="$xorg_testset_save_CFLAGS" 6307 6308 eval supported=\$$cacheid 6309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6310printf "%s\n" "$supported" >&6; } 6311 if test "$supported" = "yes" ; then 6312 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6313 found="yes" 6314 fi 6315 fi 6316 6317 if test $found = "no" ; then 6318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6320 fi 6321 6322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6324 fi 6325 6326 CFLAGS="$CFLAGS -fd" 6327 6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6329printf %s "checking if $CC supports -fd... " >&6; } 6330 cacheid=xorg_cv_cc_flag__fd 6331 if eval test \${$cacheid+y} 6332then : 6333 printf %s "(cached) " >&6 6334else case e in #( 6335 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6336/* end confdefs.h. */ 6337int i; 6338int 6339main (void) 6340{ 6341 6342 ; 6343 return 0; 6344} 6345_ACEOF 6346if ac_fn_c_try_link "$LINENO" 6347then : 6348 eval $cacheid=yes 6349else case e in #( 6350 e) eval $cacheid=no ;; 6351esac 6352fi 6353rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6354 conftest$ac_exeext conftest.$ac_ext ;; 6355esac 6356fi 6357 6358 6359 CFLAGS="$xorg_testset_save_CFLAGS" 6360 6361 eval supported=\$$cacheid 6362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6363printf "%s\n" "$supported" >&6; } 6364 if test "$supported" = "yes" ; then 6365 BASE_CFLAGS="$BASE_CFLAGS -fd" 6366 found="yes" 6367 fi 6368 fi 6369 6370 6371 6372 6373 6374# This chunk adds additional warnings that could catch undesired effects. 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388xorg_testset_save_CFLAGS="$CFLAGS" 6389 6390if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6393printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6394if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6395then : 6396 printf %s "(cached) " >&6 6397else case e in #( 6398 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6399/* end confdefs.h. */ 6400int i; 6401_ACEOF 6402if ac_fn_c_try_compile "$LINENO" 6403then : 6404 xorg_cv_cc_flag_unknown_warning_option=yes 6405else case e in #( 6406 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6407esac 6408fi 6409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6410esac 6411fi 6412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6413printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6415 CFLAGS="$xorg_testset_save_CFLAGS" 6416fi 6417 6418if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6421 fi 6422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6424printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6425if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6426then : 6427 printf %s "(cached) " >&6 6428else case e in #( 6429 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6430/* end confdefs.h. */ 6431int i; 6432_ACEOF 6433if ac_fn_c_try_compile "$LINENO" 6434then : 6435 xorg_cv_cc_flag_unused_command_line_argument=yes 6436else case e in #( 6437 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6438esac 6439fi 6440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6441esac 6442fi 6443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6444printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6445 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6446 CFLAGS="$xorg_testset_save_CFLAGS" 6447fi 6448 6449found="no" 6450 6451 if test $found = "no" ; then 6452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6454 fi 6455 6456 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6458 fi 6459 6460 CFLAGS="$CFLAGS -Wunused" 6461 6462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6463printf %s "checking if $CC supports -Wunused... " >&6; } 6464 cacheid=xorg_cv_cc_flag__Wunused 6465 if eval test \${$cacheid+y} 6466then : 6467 printf %s "(cached) " >&6 6468else case e in #( 6469 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6470/* end confdefs.h. */ 6471int i; 6472int 6473main (void) 6474{ 6475 6476 ; 6477 return 0; 6478} 6479_ACEOF 6480if ac_fn_c_try_link "$LINENO" 6481then : 6482 eval $cacheid=yes 6483else case e in #( 6484 e) eval $cacheid=no ;; 6485esac 6486fi 6487rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6488 conftest$ac_exeext conftest.$ac_ext ;; 6489esac 6490fi 6491 6492 6493 CFLAGS="$xorg_testset_save_CFLAGS" 6494 6495 eval supported=\$$cacheid 6496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6497printf "%s\n" "$supported" >&6; } 6498 if test "$supported" = "yes" ; then 6499 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6500 found="yes" 6501 fi 6502 fi 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518xorg_testset_save_CFLAGS="$CFLAGS" 6519 6520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6523printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6524if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6525then : 6526 printf %s "(cached) " >&6 6527else case e in #( 6528 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6529/* end confdefs.h. */ 6530int i; 6531_ACEOF 6532if ac_fn_c_try_compile "$LINENO" 6533then : 6534 xorg_cv_cc_flag_unknown_warning_option=yes 6535else case e in #( 6536 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6537esac 6538fi 6539rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6540esac 6541fi 6542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6543printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6544 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6545 CFLAGS="$xorg_testset_save_CFLAGS" 6546fi 6547 6548if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6551 fi 6552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6554printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6555if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6556then : 6557 printf %s "(cached) " >&6 6558else case e in #( 6559 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6560/* end confdefs.h. */ 6561int i; 6562_ACEOF 6563if ac_fn_c_try_compile "$LINENO" 6564then : 6565 xorg_cv_cc_flag_unused_command_line_argument=yes 6566else case e in #( 6567 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6568esac 6569fi 6570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6571esac 6572fi 6573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6574printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6575 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6576 CFLAGS="$xorg_testset_save_CFLAGS" 6577fi 6578 6579found="no" 6580 6581 if test $found = "no" ; then 6582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6584 fi 6585 6586 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6588 fi 6589 6590 CFLAGS="$CFLAGS -Wuninitialized" 6591 6592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6593printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6594 cacheid=xorg_cv_cc_flag__Wuninitialized 6595 if eval test \${$cacheid+y} 6596then : 6597 printf %s "(cached) " >&6 6598else case e in #( 6599 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6600/* end confdefs.h. */ 6601int i; 6602int 6603main (void) 6604{ 6605 6606 ; 6607 return 0; 6608} 6609_ACEOF 6610if ac_fn_c_try_link "$LINENO" 6611then : 6612 eval $cacheid=yes 6613else case e in #( 6614 e) eval $cacheid=no ;; 6615esac 6616fi 6617rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6618 conftest$ac_exeext conftest.$ac_ext ;; 6619esac 6620fi 6621 6622 6623 CFLAGS="$xorg_testset_save_CFLAGS" 6624 6625 eval supported=\$$cacheid 6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6627printf "%s\n" "$supported" >&6; } 6628 if test "$supported" = "yes" ; then 6629 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6630 found="yes" 6631 fi 6632 fi 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648xorg_testset_save_CFLAGS="$CFLAGS" 6649 6650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6653printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6654if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6655then : 6656 printf %s "(cached) " >&6 6657else case e in #( 6658 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6659/* end confdefs.h. */ 6660int i; 6661_ACEOF 6662if ac_fn_c_try_compile "$LINENO" 6663then : 6664 xorg_cv_cc_flag_unknown_warning_option=yes 6665else case e in #( 6666 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6667esac 6668fi 6669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6670esac 6671fi 6672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6673printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6675 CFLAGS="$xorg_testset_save_CFLAGS" 6676fi 6677 6678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6681 fi 6682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6684printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6685if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6686then : 6687 printf %s "(cached) " >&6 6688else case e in #( 6689 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6690/* end confdefs.h. */ 6691int i; 6692_ACEOF 6693if ac_fn_c_try_compile "$LINENO" 6694then : 6695 xorg_cv_cc_flag_unused_command_line_argument=yes 6696else case e in #( 6697 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6698esac 6699fi 6700rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6701esac 6702fi 6703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6704printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6705 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6706 CFLAGS="$xorg_testset_save_CFLAGS" 6707fi 6708 6709found="no" 6710 6711 if test $found = "no" ; then 6712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6714 fi 6715 6716 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6718 fi 6719 6720 CFLAGS="$CFLAGS -Wshadow" 6721 6722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6723printf %s "checking if $CC supports -Wshadow... " >&6; } 6724 cacheid=xorg_cv_cc_flag__Wshadow 6725 if eval test \${$cacheid+y} 6726then : 6727 printf %s "(cached) " >&6 6728else case e in #( 6729 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6730/* end confdefs.h. */ 6731int i; 6732int 6733main (void) 6734{ 6735 6736 ; 6737 return 0; 6738} 6739_ACEOF 6740if ac_fn_c_try_link "$LINENO" 6741then : 6742 eval $cacheid=yes 6743else case e in #( 6744 e) eval $cacheid=no ;; 6745esac 6746fi 6747rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6748 conftest$ac_exeext conftest.$ac_ext ;; 6749esac 6750fi 6751 6752 6753 CFLAGS="$xorg_testset_save_CFLAGS" 6754 6755 eval supported=\$$cacheid 6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6757printf "%s\n" "$supported" >&6; } 6758 if test "$supported" = "yes" ; then 6759 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6760 found="yes" 6761 fi 6762 fi 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778xorg_testset_save_CFLAGS="$CFLAGS" 6779 6780if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6783printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6784if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6785then : 6786 printf %s "(cached) " >&6 6787else case e in #( 6788 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6789/* end confdefs.h. */ 6790int i; 6791_ACEOF 6792if ac_fn_c_try_compile "$LINENO" 6793then : 6794 xorg_cv_cc_flag_unknown_warning_option=yes 6795else case e in #( 6796 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6797esac 6798fi 6799rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6800esac 6801fi 6802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6803printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6804 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6805 CFLAGS="$xorg_testset_save_CFLAGS" 6806fi 6807 6808if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6811 fi 6812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6814printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6815if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6816then : 6817 printf %s "(cached) " >&6 6818else case e in #( 6819 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6820/* end confdefs.h. */ 6821int i; 6822_ACEOF 6823if ac_fn_c_try_compile "$LINENO" 6824then : 6825 xorg_cv_cc_flag_unused_command_line_argument=yes 6826else case e in #( 6827 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6828esac 6829fi 6830rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6831esac 6832fi 6833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6834printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6835 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6836 CFLAGS="$xorg_testset_save_CFLAGS" 6837fi 6838 6839found="no" 6840 6841 if test $found = "no" ; then 6842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6844 fi 6845 6846 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6848 fi 6849 6850 CFLAGS="$CFLAGS -Wmissing-noreturn" 6851 6852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6853printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6854 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6855 if eval test \${$cacheid+y} 6856then : 6857 printf %s "(cached) " >&6 6858else case e in #( 6859 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6860/* end confdefs.h. */ 6861int i; 6862int 6863main (void) 6864{ 6865 6866 ; 6867 return 0; 6868} 6869_ACEOF 6870if ac_fn_c_try_link "$LINENO" 6871then : 6872 eval $cacheid=yes 6873else case e in #( 6874 e) eval $cacheid=no ;; 6875esac 6876fi 6877rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6878 conftest$ac_exeext conftest.$ac_ext ;; 6879esac 6880fi 6881 6882 6883 CFLAGS="$xorg_testset_save_CFLAGS" 6884 6885 eval supported=\$$cacheid 6886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6887printf "%s\n" "$supported" >&6; } 6888 if test "$supported" = "yes" ; then 6889 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6890 found="yes" 6891 fi 6892 fi 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908xorg_testset_save_CFLAGS="$CFLAGS" 6909 6910if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6913printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6914if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6915then : 6916 printf %s "(cached) " >&6 6917else case e in #( 6918 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6919/* end confdefs.h. */ 6920int i; 6921_ACEOF 6922if ac_fn_c_try_compile "$LINENO" 6923then : 6924 xorg_cv_cc_flag_unknown_warning_option=yes 6925else case e in #( 6926 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6927esac 6928fi 6929rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6930esac 6931fi 6932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6933printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6935 CFLAGS="$xorg_testset_save_CFLAGS" 6936fi 6937 6938if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6941 fi 6942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6944printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6945if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6946then : 6947 printf %s "(cached) " >&6 6948else case e in #( 6949 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6950/* end confdefs.h. */ 6951int i; 6952_ACEOF 6953if ac_fn_c_try_compile "$LINENO" 6954then : 6955 xorg_cv_cc_flag_unused_command_line_argument=yes 6956else case e in #( 6957 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6958esac 6959fi 6960rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6961esac 6962fi 6963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6964printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6966 CFLAGS="$xorg_testset_save_CFLAGS" 6967fi 6968 6969found="no" 6970 6971 if test $found = "no" ; then 6972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6974 fi 6975 6976 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6978 fi 6979 6980 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6981 6982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6983printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6984 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6985 if eval test \${$cacheid+y} 6986then : 6987 printf %s "(cached) " >&6 6988else case e in #( 6989 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6990/* end confdefs.h. */ 6991int i; 6992int 6993main (void) 6994{ 6995 6996 ; 6997 return 0; 6998} 6999_ACEOF 7000if ac_fn_c_try_link "$LINENO" 7001then : 7002 eval $cacheid=yes 7003else case e in #( 7004 e) eval $cacheid=no ;; 7005esac 7006fi 7007rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7008 conftest$ac_exeext conftest.$ac_ext ;; 7009esac 7010fi 7011 7012 7013 CFLAGS="$xorg_testset_save_CFLAGS" 7014 7015 eval supported=\$$cacheid 7016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7017printf "%s\n" "$supported" >&6; } 7018 if test "$supported" = "yes" ; then 7019 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7020 found="yes" 7021 fi 7022 fi 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038xorg_testset_save_CFLAGS="$CFLAGS" 7039 7040if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7043printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7044if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7045then : 7046 printf %s "(cached) " >&6 7047else case e in #( 7048 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7049/* end confdefs.h. */ 7050int i; 7051_ACEOF 7052if ac_fn_c_try_compile "$LINENO" 7053then : 7054 xorg_cv_cc_flag_unknown_warning_option=yes 7055else case e in #( 7056 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7057esac 7058fi 7059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7060esac 7061fi 7062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7063printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7064 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7065 CFLAGS="$xorg_testset_save_CFLAGS" 7066fi 7067 7068if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7071 fi 7072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7074printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7075if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7076then : 7077 printf %s "(cached) " >&6 7078else case e in #( 7079 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7080/* end confdefs.h. */ 7081int i; 7082_ACEOF 7083if ac_fn_c_try_compile "$LINENO" 7084then : 7085 xorg_cv_cc_flag_unused_command_line_argument=yes 7086else case e in #( 7087 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7088esac 7089fi 7090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7091esac 7092fi 7093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7094printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7095 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7096 CFLAGS="$xorg_testset_save_CFLAGS" 7097fi 7098 7099found="no" 7100 7101 if test $found = "no" ; then 7102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7104 fi 7105 7106 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7108 fi 7109 7110 CFLAGS="$CFLAGS -Wredundant-decls" 7111 7112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7113printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7114 cacheid=xorg_cv_cc_flag__Wredundant_decls 7115 if eval test \${$cacheid+y} 7116then : 7117 printf %s "(cached) " >&6 7118else case e in #( 7119 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7120/* end confdefs.h. */ 7121int i; 7122int 7123main (void) 7124{ 7125 7126 ; 7127 return 0; 7128} 7129_ACEOF 7130if ac_fn_c_try_link "$LINENO" 7131then : 7132 eval $cacheid=yes 7133else case e in #( 7134 e) eval $cacheid=no ;; 7135esac 7136fi 7137rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7138 conftest$ac_exeext conftest.$ac_ext ;; 7139esac 7140fi 7141 7142 7143 CFLAGS="$xorg_testset_save_CFLAGS" 7144 7145 eval supported=\$$cacheid 7146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7147printf "%s\n" "$supported" >&6; } 7148 if test "$supported" = "yes" ; then 7149 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7150 found="yes" 7151 fi 7152 fi 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168xorg_testset_save_CFLAGS="$CFLAGS" 7169 7170if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7173printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7174if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7175then : 7176 printf %s "(cached) " >&6 7177else case e in #( 7178 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7179/* end confdefs.h. */ 7180int i; 7181_ACEOF 7182if ac_fn_c_try_compile "$LINENO" 7183then : 7184 xorg_cv_cc_flag_unknown_warning_option=yes 7185else case e in #( 7186 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7187esac 7188fi 7189rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7190esac 7191fi 7192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7193printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7194 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7195 CFLAGS="$xorg_testset_save_CFLAGS" 7196fi 7197 7198if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7201 fi 7202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7204printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7205if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7206then : 7207 printf %s "(cached) " >&6 7208else case e in #( 7209 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7210/* end confdefs.h. */ 7211int i; 7212_ACEOF 7213if ac_fn_c_try_compile "$LINENO" 7214then : 7215 xorg_cv_cc_flag_unused_command_line_argument=yes 7216else case e in #( 7217 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7218esac 7219fi 7220rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7221esac 7222fi 7223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7224printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7226 CFLAGS="$xorg_testset_save_CFLAGS" 7227fi 7228 7229found="no" 7230 7231 if test $found = "no" ; then 7232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7234 fi 7235 7236 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7238 fi 7239 7240 CFLAGS="$CFLAGS -Wlogical-op" 7241 7242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7243printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7244 cacheid=xorg_cv_cc_flag__Wlogical_op 7245 if eval test \${$cacheid+y} 7246then : 7247 printf %s "(cached) " >&6 7248else case e in #( 7249 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7250/* end confdefs.h. */ 7251int i; 7252int 7253main (void) 7254{ 7255 7256 ; 7257 return 0; 7258} 7259_ACEOF 7260if ac_fn_c_try_link "$LINENO" 7261then : 7262 eval $cacheid=yes 7263else case e in #( 7264 e) eval $cacheid=no ;; 7265esac 7266fi 7267rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7268 conftest$ac_exeext conftest.$ac_ext ;; 7269esac 7270fi 7271 7272 7273 CFLAGS="$xorg_testset_save_CFLAGS" 7274 7275 eval supported=\$$cacheid 7276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7277printf "%s\n" "$supported" >&6; } 7278 if test "$supported" = "yes" ; then 7279 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7280 found="yes" 7281 fi 7282 fi 7283 7284 7285 7286# These are currently disabled because they are noisy. They will be enabled 7287# in the future once the codebase is sufficiently modernized to silence 7288# them. For now, I don't want them to drown out the other warnings. 7289# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7290# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7291# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7292 7293# Turn some warnings into errors, so we don't accidentally get successful builds 7294# when there are problems that should be fixed. 7295 7296if test "x$SELECTIVE_WERROR" = "xyes" ; then 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310xorg_testset_save_CFLAGS="$CFLAGS" 7311 7312if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7315printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7316if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7317then : 7318 printf %s "(cached) " >&6 7319else case e in #( 7320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7321/* end confdefs.h. */ 7322int i; 7323_ACEOF 7324if ac_fn_c_try_compile "$LINENO" 7325then : 7326 xorg_cv_cc_flag_unknown_warning_option=yes 7327else case e in #( 7328 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7329esac 7330fi 7331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7332esac 7333fi 7334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7335printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7337 CFLAGS="$xorg_testset_save_CFLAGS" 7338fi 7339 7340if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7343 fi 7344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7346printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7347if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7348then : 7349 printf %s "(cached) " >&6 7350else case e in #( 7351 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7352/* end confdefs.h. */ 7353int i; 7354_ACEOF 7355if ac_fn_c_try_compile "$LINENO" 7356then : 7357 xorg_cv_cc_flag_unused_command_line_argument=yes 7358else case e in #( 7359 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7360esac 7361fi 7362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7363esac 7364fi 7365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7366printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7368 CFLAGS="$xorg_testset_save_CFLAGS" 7369fi 7370 7371found="no" 7372 7373 if test $found = "no" ; then 7374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7376 fi 7377 7378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7380 fi 7381 7382 CFLAGS="$CFLAGS -Werror=implicit" 7383 7384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7385printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7386 cacheid=xorg_cv_cc_flag__Werror_implicit 7387 if eval test \${$cacheid+y} 7388then : 7389 printf %s "(cached) " >&6 7390else case e in #( 7391 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7392/* end confdefs.h. */ 7393int i; 7394int 7395main (void) 7396{ 7397 7398 ; 7399 return 0; 7400} 7401_ACEOF 7402if ac_fn_c_try_link "$LINENO" 7403then : 7404 eval $cacheid=yes 7405else case e in #( 7406 e) eval $cacheid=no ;; 7407esac 7408fi 7409rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7410 conftest$ac_exeext conftest.$ac_ext ;; 7411esac 7412fi 7413 7414 7415 CFLAGS="$xorg_testset_save_CFLAGS" 7416 7417 eval supported=\$$cacheid 7418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7419printf "%s\n" "$supported" >&6; } 7420 if test "$supported" = "yes" ; then 7421 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7422 found="yes" 7423 fi 7424 fi 7425 7426 if test $found = "no" ; then 7427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7429 fi 7430 7431 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7433 fi 7434 7435 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7436 7437 { 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 7438printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7439 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7440 if eval test \${$cacheid+y} 7441then : 7442 printf %s "(cached) " >&6 7443else case e in #( 7444 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7445/* end confdefs.h. */ 7446int i; 7447int 7448main (void) 7449{ 7450 7451 ; 7452 return 0; 7453} 7454_ACEOF 7455if ac_fn_c_try_link "$LINENO" 7456then : 7457 eval $cacheid=yes 7458else case e in #( 7459 e) eval $cacheid=no ;; 7460esac 7461fi 7462rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7463 conftest$ac_exeext conftest.$ac_ext ;; 7464esac 7465fi 7466 7467 7468 CFLAGS="$xorg_testset_save_CFLAGS" 7469 7470 eval supported=\$$cacheid 7471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7472printf "%s\n" "$supported" >&6; } 7473 if test "$supported" = "yes" ; then 7474 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7475 found="yes" 7476 fi 7477 fi 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493xorg_testset_save_CFLAGS="$CFLAGS" 7494 7495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7498printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7499if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7500then : 7501 printf %s "(cached) " >&6 7502else case e in #( 7503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7504/* end confdefs.h. */ 7505int i; 7506_ACEOF 7507if ac_fn_c_try_compile "$LINENO" 7508then : 7509 xorg_cv_cc_flag_unknown_warning_option=yes 7510else case e in #( 7511 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7512esac 7513fi 7514rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7515esac 7516fi 7517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7518printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7519 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7520 CFLAGS="$xorg_testset_save_CFLAGS" 7521fi 7522 7523if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7526 fi 7527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7529printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7530if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7531then : 7532 printf %s "(cached) " >&6 7533else case e in #( 7534 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7535/* end confdefs.h. */ 7536int i; 7537_ACEOF 7538if ac_fn_c_try_compile "$LINENO" 7539then : 7540 xorg_cv_cc_flag_unused_command_line_argument=yes 7541else case e in #( 7542 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7543esac 7544fi 7545rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7546esac 7547fi 7548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7549printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7551 CFLAGS="$xorg_testset_save_CFLAGS" 7552fi 7553 7554found="no" 7555 7556 if test $found = "no" ; then 7557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7559 fi 7560 7561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7563 fi 7564 7565 CFLAGS="$CFLAGS -Werror=nonnull" 7566 7567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7568printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7569 cacheid=xorg_cv_cc_flag__Werror_nonnull 7570 if eval test \${$cacheid+y} 7571then : 7572 printf %s "(cached) " >&6 7573else case e in #( 7574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7575/* end confdefs.h. */ 7576int i; 7577int 7578main (void) 7579{ 7580 7581 ; 7582 return 0; 7583} 7584_ACEOF 7585if ac_fn_c_try_link "$LINENO" 7586then : 7587 eval $cacheid=yes 7588else case e in #( 7589 e) eval $cacheid=no ;; 7590esac 7591fi 7592rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7593 conftest$ac_exeext conftest.$ac_ext ;; 7594esac 7595fi 7596 7597 7598 CFLAGS="$xorg_testset_save_CFLAGS" 7599 7600 eval supported=\$$cacheid 7601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7602printf "%s\n" "$supported" >&6; } 7603 if test "$supported" = "yes" ; then 7604 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7605 found="yes" 7606 fi 7607 fi 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623xorg_testset_save_CFLAGS="$CFLAGS" 7624 7625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7628printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7629if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7630then : 7631 printf %s "(cached) " >&6 7632else case e in #( 7633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7634/* end confdefs.h. */ 7635int i; 7636_ACEOF 7637if ac_fn_c_try_compile "$LINENO" 7638then : 7639 xorg_cv_cc_flag_unknown_warning_option=yes 7640else case e in #( 7641 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7642esac 7643fi 7644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7645esac 7646fi 7647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7648printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7650 CFLAGS="$xorg_testset_save_CFLAGS" 7651fi 7652 7653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7656 fi 7657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7659printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7660if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7661then : 7662 printf %s "(cached) " >&6 7663else case e in #( 7664 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7665/* end confdefs.h. */ 7666int i; 7667_ACEOF 7668if ac_fn_c_try_compile "$LINENO" 7669then : 7670 xorg_cv_cc_flag_unused_command_line_argument=yes 7671else case e in #( 7672 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7673esac 7674fi 7675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7676esac 7677fi 7678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7679printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7680 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7681 CFLAGS="$xorg_testset_save_CFLAGS" 7682fi 7683 7684found="no" 7685 7686 if test $found = "no" ; then 7687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7689 fi 7690 7691 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7693 fi 7694 7695 CFLAGS="$CFLAGS -Werror=init-self" 7696 7697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7698printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7699 cacheid=xorg_cv_cc_flag__Werror_init_self 7700 if eval test \${$cacheid+y} 7701then : 7702 printf %s "(cached) " >&6 7703else case e in #( 7704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7705/* end confdefs.h. */ 7706int i; 7707int 7708main (void) 7709{ 7710 7711 ; 7712 return 0; 7713} 7714_ACEOF 7715if ac_fn_c_try_link "$LINENO" 7716then : 7717 eval $cacheid=yes 7718else case e in #( 7719 e) eval $cacheid=no ;; 7720esac 7721fi 7722rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7723 conftest$ac_exeext conftest.$ac_ext ;; 7724esac 7725fi 7726 7727 7728 CFLAGS="$xorg_testset_save_CFLAGS" 7729 7730 eval supported=\$$cacheid 7731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7732printf "%s\n" "$supported" >&6; } 7733 if test "$supported" = "yes" ; then 7734 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7735 found="yes" 7736 fi 7737 fi 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753xorg_testset_save_CFLAGS="$CFLAGS" 7754 7755if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7758printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7759if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7760then : 7761 printf %s "(cached) " >&6 7762else case e in #( 7763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7764/* end confdefs.h. */ 7765int i; 7766_ACEOF 7767if ac_fn_c_try_compile "$LINENO" 7768then : 7769 xorg_cv_cc_flag_unknown_warning_option=yes 7770else case e in #( 7771 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7772esac 7773fi 7774rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7775esac 7776fi 7777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7778printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7779 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7780 CFLAGS="$xorg_testset_save_CFLAGS" 7781fi 7782 7783if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7786 fi 7787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7789printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7790if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7791then : 7792 printf %s "(cached) " >&6 7793else case e in #( 7794 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7795/* end confdefs.h. */ 7796int i; 7797_ACEOF 7798if ac_fn_c_try_compile "$LINENO" 7799then : 7800 xorg_cv_cc_flag_unused_command_line_argument=yes 7801else case e in #( 7802 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7803esac 7804fi 7805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7806esac 7807fi 7808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7809printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7811 CFLAGS="$xorg_testset_save_CFLAGS" 7812fi 7813 7814found="no" 7815 7816 if test $found = "no" ; then 7817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7819 fi 7820 7821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7823 fi 7824 7825 CFLAGS="$CFLAGS -Werror=main" 7826 7827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7828printf %s "checking if $CC supports -Werror=main... " >&6; } 7829 cacheid=xorg_cv_cc_flag__Werror_main 7830 if eval test \${$cacheid+y} 7831then : 7832 printf %s "(cached) " >&6 7833else case e in #( 7834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7835/* end confdefs.h. */ 7836int i; 7837int 7838main (void) 7839{ 7840 7841 ; 7842 return 0; 7843} 7844_ACEOF 7845if ac_fn_c_try_link "$LINENO" 7846then : 7847 eval $cacheid=yes 7848else case e in #( 7849 e) eval $cacheid=no ;; 7850esac 7851fi 7852rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7853 conftest$ac_exeext conftest.$ac_ext ;; 7854esac 7855fi 7856 7857 7858 CFLAGS="$xorg_testset_save_CFLAGS" 7859 7860 eval supported=\$$cacheid 7861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7862printf "%s\n" "$supported" >&6; } 7863 if test "$supported" = "yes" ; then 7864 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7865 found="yes" 7866 fi 7867 fi 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883xorg_testset_save_CFLAGS="$CFLAGS" 7884 7885if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7888printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7889if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7890then : 7891 printf %s "(cached) " >&6 7892else case e in #( 7893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7894/* end confdefs.h. */ 7895int i; 7896_ACEOF 7897if ac_fn_c_try_compile "$LINENO" 7898then : 7899 xorg_cv_cc_flag_unknown_warning_option=yes 7900else case e in #( 7901 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7902esac 7903fi 7904rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7905esac 7906fi 7907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7908printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7909 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7910 CFLAGS="$xorg_testset_save_CFLAGS" 7911fi 7912 7913if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7916 fi 7917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7919printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7920if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7921then : 7922 printf %s "(cached) " >&6 7923else case e in #( 7924 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7925/* end confdefs.h. */ 7926int i; 7927_ACEOF 7928if ac_fn_c_try_compile "$LINENO" 7929then : 7930 xorg_cv_cc_flag_unused_command_line_argument=yes 7931else case e in #( 7932 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7933esac 7934fi 7935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7936esac 7937fi 7938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7939printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7941 CFLAGS="$xorg_testset_save_CFLAGS" 7942fi 7943 7944found="no" 7945 7946 if test $found = "no" ; then 7947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7949 fi 7950 7951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7953 fi 7954 7955 CFLAGS="$CFLAGS -Werror=missing-braces" 7956 7957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7958printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7959 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7960 if eval test \${$cacheid+y} 7961then : 7962 printf %s "(cached) " >&6 7963else case e in #( 7964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7965/* end confdefs.h. */ 7966int i; 7967int 7968main (void) 7969{ 7970 7971 ; 7972 return 0; 7973} 7974_ACEOF 7975if ac_fn_c_try_link "$LINENO" 7976then : 7977 eval $cacheid=yes 7978else case e in #( 7979 e) eval $cacheid=no ;; 7980esac 7981fi 7982rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7983 conftest$ac_exeext conftest.$ac_ext ;; 7984esac 7985fi 7986 7987 7988 CFLAGS="$xorg_testset_save_CFLAGS" 7989 7990 eval supported=\$$cacheid 7991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7992printf "%s\n" "$supported" >&6; } 7993 if test "$supported" = "yes" ; then 7994 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7995 found="yes" 7996 fi 7997 fi 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013xorg_testset_save_CFLAGS="$CFLAGS" 8014 8015if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8018printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8019if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8020then : 8021 printf %s "(cached) " >&6 8022else case e in #( 8023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8024/* end confdefs.h. */ 8025int i; 8026_ACEOF 8027if ac_fn_c_try_compile "$LINENO" 8028then : 8029 xorg_cv_cc_flag_unknown_warning_option=yes 8030else case e in #( 8031 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8032esac 8033fi 8034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8035esac 8036fi 8037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8038printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8040 CFLAGS="$xorg_testset_save_CFLAGS" 8041fi 8042 8043if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8046 fi 8047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8049printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8050if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8051then : 8052 printf %s "(cached) " >&6 8053else case e in #( 8054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8055/* end confdefs.h. */ 8056int i; 8057_ACEOF 8058if ac_fn_c_try_compile "$LINENO" 8059then : 8060 xorg_cv_cc_flag_unused_command_line_argument=yes 8061else case e in #( 8062 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8063esac 8064fi 8065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8066esac 8067fi 8068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8069printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8071 CFLAGS="$xorg_testset_save_CFLAGS" 8072fi 8073 8074found="no" 8075 8076 if test $found = "no" ; then 8077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8079 fi 8080 8081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8083 fi 8084 8085 CFLAGS="$CFLAGS -Werror=sequence-point" 8086 8087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8088printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8089 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8090 if eval test \${$cacheid+y} 8091then : 8092 printf %s "(cached) " >&6 8093else case e in #( 8094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8095/* end confdefs.h. */ 8096int i; 8097int 8098main (void) 8099{ 8100 8101 ; 8102 return 0; 8103} 8104_ACEOF 8105if ac_fn_c_try_link "$LINENO" 8106then : 8107 eval $cacheid=yes 8108else case e in #( 8109 e) eval $cacheid=no ;; 8110esac 8111fi 8112rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8113 conftest$ac_exeext conftest.$ac_ext ;; 8114esac 8115fi 8116 8117 8118 CFLAGS="$xorg_testset_save_CFLAGS" 8119 8120 eval supported=\$$cacheid 8121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8122printf "%s\n" "$supported" >&6; } 8123 if test "$supported" = "yes" ; then 8124 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8125 found="yes" 8126 fi 8127 fi 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143xorg_testset_save_CFLAGS="$CFLAGS" 8144 8145if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8148printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8149if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8150then : 8151 printf %s "(cached) " >&6 8152else case e in #( 8153 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8154/* end confdefs.h. */ 8155int i; 8156_ACEOF 8157if ac_fn_c_try_compile "$LINENO" 8158then : 8159 xorg_cv_cc_flag_unknown_warning_option=yes 8160else case e in #( 8161 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8162esac 8163fi 8164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8165esac 8166fi 8167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8168printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8170 CFLAGS="$xorg_testset_save_CFLAGS" 8171fi 8172 8173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8176 fi 8177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8179printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8180if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8181then : 8182 printf %s "(cached) " >&6 8183else case e in #( 8184 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8185/* end confdefs.h. */ 8186int i; 8187_ACEOF 8188if ac_fn_c_try_compile "$LINENO" 8189then : 8190 xorg_cv_cc_flag_unused_command_line_argument=yes 8191else case e in #( 8192 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8193esac 8194fi 8195rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8196esac 8197fi 8198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8199printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8201 CFLAGS="$xorg_testset_save_CFLAGS" 8202fi 8203 8204found="no" 8205 8206 if test $found = "no" ; then 8207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8209 fi 8210 8211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8213 fi 8214 8215 CFLAGS="$CFLAGS -Werror=return-type" 8216 8217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8218printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8219 cacheid=xorg_cv_cc_flag__Werror_return_type 8220 if eval test \${$cacheid+y} 8221then : 8222 printf %s "(cached) " >&6 8223else case e in #( 8224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8225/* end confdefs.h. */ 8226int i; 8227int 8228main (void) 8229{ 8230 8231 ; 8232 return 0; 8233} 8234_ACEOF 8235if ac_fn_c_try_link "$LINENO" 8236then : 8237 eval $cacheid=yes 8238else case e in #( 8239 e) eval $cacheid=no ;; 8240esac 8241fi 8242rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8243 conftest$ac_exeext conftest.$ac_ext ;; 8244esac 8245fi 8246 8247 8248 CFLAGS="$xorg_testset_save_CFLAGS" 8249 8250 eval supported=\$$cacheid 8251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8252printf "%s\n" "$supported" >&6; } 8253 if test "$supported" = "yes" ; then 8254 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8255 found="yes" 8256 fi 8257 fi 8258 8259 if test $found = "no" ; then 8260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8262 fi 8263 8264 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8266 fi 8267 8268 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8269 8270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8271printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8272 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8273 if eval test \${$cacheid+y} 8274then : 8275 printf %s "(cached) " >&6 8276else case e in #( 8277 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8278/* end confdefs.h. */ 8279int i; 8280int 8281main (void) 8282{ 8283 8284 ; 8285 return 0; 8286} 8287_ACEOF 8288if ac_fn_c_try_link "$LINENO" 8289then : 8290 eval $cacheid=yes 8291else case e in #( 8292 e) eval $cacheid=no ;; 8293esac 8294fi 8295rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8296 conftest$ac_exeext conftest.$ac_ext ;; 8297esac 8298fi 8299 8300 8301 CFLAGS="$xorg_testset_save_CFLAGS" 8302 8303 eval supported=\$$cacheid 8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8305printf "%s\n" "$supported" >&6; } 8306 if test "$supported" = "yes" ; then 8307 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8308 found="yes" 8309 fi 8310 fi 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326xorg_testset_save_CFLAGS="$CFLAGS" 8327 8328if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8331printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8332if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8333then : 8334 printf %s "(cached) " >&6 8335else case e in #( 8336 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8337/* end confdefs.h. */ 8338int i; 8339_ACEOF 8340if ac_fn_c_try_compile "$LINENO" 8341then : 8342 xorg_cv_cc_flag_unknown_warning_option=yes 8343else case e in #( 8344 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8345esac 8346fi 8347rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8348esac 8349fi 8350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8351printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8352 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8353 CFLAGS="$xorg_testset_save_CFLAGS" 8354fi 8355 8356if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8359 fi 8360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8362printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8363if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8364then : 8365 printf %s "(cached) " >&6 8366else case e in #( 8367 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8368/* end confdefs.h. */ 8369int i; 8370_ACEOF 8371if ac_fn_c_try_compile "$LINENO" 8372then : 8373 xorg_cv_cc_flag_unused_command_line_argument=yes 8374else case e in #( 8375 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8376esac 8377fi 8378rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8379esac 8380fi 8381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8382printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8383 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8384 CFLAGS="$xorg_testset_save_CFLAGS" 8385fi 8386 8387found="no" 8388 8389 if test $found = "no" ; then 8390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8392 fi 8393 8394 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8396 fi 8397 8398 CFLAGS="$CFLAGS -Werror=trigraphs" 8399 8400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8401printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8402 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8403 if eval test \${$cacheid+y} 8404then : 8405 printf %s "(cached) " >&6 8406else case e in #( 8407 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8408/* end confdefs.h. */ 8409int i; 8410int 8411main (void) 8412{ 8413 8414 ; 8415 return 0; 8416} 8417_ACEOF 8418if ac_fn_c_try_link "$LINENO" 8419then : 8420 eval $cacheid=yes 8421else case e in #( 8422 e) eval $cacheid=no ;; 8423esac 8424fi 8425rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8426 conftest$ac_exeext conftest.$ac_ext ;; 8427esac 8428fi 8429 8430 8431 CFLAGS="$xorg_testset_save_CFLAGS" 8432 8433 eval supported=\$$cacheid 8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8435printf "%s\n" "$supported" >&6; } 8436 if test "$supported" = "yes" ; then 8437 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8438 found="yes" 8439 fi 8440 fi 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456xorg_testset_save_CFLAGS="$CFLAGS" 8457 8458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8461printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8462if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8463then : 8464 printf %s "(cached) " >&6 8465else case e in #( 8466 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8467/* end confdefs.h. */ 8468int i; 8469_ACEOF 8470if ac_fn_c_try_compile "$LINENO" 8471then : 8472 xorg_cv_cc_flag_unknown_warning_option=yes 8473else case e in #( 8474 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8475esac 8476fi 8477rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8478esac 8479fi 8480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8481printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8482 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8483 CFLAGS="$xorg_testset_save_CFLAGS" 8484fi 8485 8486if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8489 fi 8490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8492printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8493if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8494then : 8495 printf %s "(cached) " >&6 8496else case e in #( 8497 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8498/* end confdefs.h. */ 8499int i; 8500_ACEOF 8501if ac_fn_c_try_compile "$LINENO" 8502then : 8503 xorg_cv_cc_flag_unused_command_line_argument=yes 8504else case e in #( 8505 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8506esac 8507fi 8508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8509esac 8510fi 8511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8512printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8513 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8514 CFLAGS="$xorg_testset_save_CFLAGS" 8515fi 8516 8517found="no" 8518 8519 if test $found = "no" ; then 8520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8522 fi 8523 8524 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8526 fi 8527 8528 CFLAGS="$CFLAGS -Werror=array-bounds" 8529 8530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8531printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8532 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8533 if eval test \${$cacheid+y} 8534then : 8535 printf %s "(cached) " >&6 8536else case e in #( 8537 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8538/* end confdefs.h. */ 8539int i; 8540int 8541main (void) 8542{ 8543 8544 ; 8545 return 0; 8546} 8547_ACEOF 8548if ac_fn_c_try_link "$LINENO" 8549then : 8550 eval $cacheid=yes 8551else case e in #( 8552 e) eval $cacheid=no ;; 8553esac 8554fi 8555rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8556 conftest$ac_exeext conftest.$ac_ext ;; 8557esac 8558fi 8559 8560 8561 CFLAGS="$xorg_testset_save_CFLAGS" 8562 8563 eval supported=\$$cacheid 8564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8565printf "%s\n" "$supported" >&6; } 8566 if test "$supported" = "yes" ; then 8567 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8568 found="yes" 8569 fi 8570 fi 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586xorg_testset_save_CFLAGS="$CFLAGS" 8587 8588if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8591printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8592if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8593then : 8594 printf %s "(cached) " >&6 8595else case e in #( 8596 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8597/* end confdefs.h. */ 8598int i; 8599_ACEOF 8600if ac_fn_c_try_compile "$LINENO" 8601then : 8602 xorg_cv_cc_flag_unknown_warning_option=yes 8603else case e in #( 8604 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8605esac 8606fi 8607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8608esac 8609fi 8610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8611printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8612 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8613 CFLAGS="$xorg_testset_save_CFLAGS" 8614fi 8615 8616if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8619 fi 8620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8622printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8623if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8624then : 8625 printf %s "(cached) " >&6 8626else case e in #( 8627 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8628/* end confdefs.h. */ 8629int i; 8630_ACEOF 8631if ac_fn_c_try_compile "$LINENO" 8632then : 8633 xorg_cv_cc_flag_unused_command_line_argument=yes 8634else case e in #( 8635 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8636esac 8637fi 8638rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8639esac 8640fi 8641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8642printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8643 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8644 CFLAGS="$xorg_testset_save_CFLAGS" 8645fi 8646 8647found="no" 8648 8649 if test $found = "no" ; then 8650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8652 fi 8653 8654 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8656 fi 8657 8658 CFLAGS="$CFLAGS -Werror=write-strings" 8659 8660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8661printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8662 cacheid=xorg_cv_cc_flag__Werror_write_strings 8663 if eval test \${$cacheid+y} 8664then : 8665 printf %s "(cached) " >&6 8666else case e in #( 8667 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8668/* end confdefs.h. */ 8669int i; 8670int 8671main (void) 8672{ 8673 8674 ; 8675 return 0; 8676} 8677_ACEOF 8678if ac_fn_c_try_link "$LINENO" 8679then : 8680 eval $cacheid=yes 8681else case e in #( 8682 e) eval $cacheid=no ;; 8683esac 8684fi 8685rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8686 conftest$ac_exeext conftest.$ac_ext ;; 8687esac 8688fi 8689 8690 8691 CFLAGS="$xorg_testset_save_CFLAGS" 8692 8693 eval supported=\$$cacheid 8694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8695printf "%s\n" "$supported" >&6; } 8696 if test "$supported" = "yes" ; then 8697 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8698 found="yes" 8699 fi 8700 fi 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716xorg_testset_save_CFLAGS="$CFLAGS" 8717 8718if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8721printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8722if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8723then : 8724 printf %s "(cached) " >&6 8725else case e in #( 8726 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8727/* end confdefs.h. */ 8728int i; 8729_ACEOF 8730if ac_fn_c_try_compile "$LINENO" 8731then : 8732 xorg_cv_cc_flag_unknown_warning_option=yes 8733else case e in #( 8734 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8735esac 8736fi 8737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8738esac 8739fi 8740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8741printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8743 CFLAGS="$xorg_testset_save_CFLAGS" 8744fi 8745 8746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8749 fi 8750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8752printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8753if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8754then : 8755 printf %s "(cached) " >&6 8756else case e in #( 8757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8758/* end confdefs.h. */ 8759int i; 8760_ACEOF 8761if ac_fn_c_try_compile "$LINENO" 8762then : 8763 xorg_cv_cc_flag_unused_command_line_argument=yes 8764else case e in #( 8765 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8766esac 8767fi 8768rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8769esac 8770fi 8771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8772printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8774 CFLAGS="$xorg_testset_save_CFLAGS" 8775fi 8776 8777found="no" 8778 8779 if test $found = "no" ; then 8780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8782 fi 8783 8784 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8786 fi 8787 8788 CFLAGS="$CFLAGS -Werror=address" 8789 8790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8791printf %s "checking if $CC supports -Werror=address... " >&6; } 8792 cacheid=xorg_cv_cc_flag__Werror_address 8793 if eval test \${$cacheid+y} 8794then : 8795 printf %s "(cached) " >&6 8796else case e in #( 8797 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8798/* end confdefs.h. */ 8799int i; 8800int 8801main (void) 8802{ 8803 8804 ; 8805 return 0; 8806} 8807_ACEOF 8808if ac_fn_c_try_link "$LINENO" 8809then : 8810 eval $cacheid=yes 8811else case e in #( 8812 e) eval $cacheid=no ;; 8813esac 8814fi 8815rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8816 conftest$ac_exeext conftest.$ac_ext ;; 8817esac 8818fi 8819 8820 8821 CFLAGS="$xorg_testset_save_CFLAGS" 8822 8823 eval supported=\$$cacheid 8824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8825printf "%s\n" "$supported" >&6; } 8826 if test "$supported" = "yes" ; then 8827 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8828 found="yes" 8829 fi 8830 fi 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846xorg_testset_save_CFLAGS="$CFLAGS" 8847 8848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8851printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8852if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8853then : 8854 printf %s "(cached) " >&6 8855else case e in #( 8856 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8857/* end confdefs.h. */ 8858int i; 8859_ACEOF 8860if ac_fn_c_try_compile "$LINENO" 8861then : 8862 xorg_cv_cc_flag_unknown_warning_option=yes 8863else case e in #( 8864 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8865esac 8866fi 8867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8868esac 8869fi 8870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8871printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8872 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8873 CFLAGS="$xorg_testset_save_CFLAGS" 8874fi 8875 8876if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8879 fi 8880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8882printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8883if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8884then : 8885 printf %s "(cached) " >&6 8886else case e in #( 8887 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8888/* end confdefs.h. */ 8889int i; 8890_ACEOF 8891if ac_fn_c_try_compile "$LINENO" 8892then : 8893 xorg_cv_cc_flag_unused_command_line_argument=yes 8894else case e in #( 8895 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8896esac 8897fi 8898rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8899esac 8900fi 8901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8902printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8903 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8904 CFLAGS="$xorg_testset_save_CFLAGS" 8905fi 8906 8907found="no" 8908 8909 if test $found = "no" ; then 8910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8912 fi 8913 8914 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8916 fi 8917 8918 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8919 8920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8921printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8922 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8923 if eval test \${$cacheid+y} 8924then : 8925 printf %s "(cached) " >&6 8926else case e in #( 8927 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8928/* end confdefs.h. */ 8929int i; 8930int 8931main (void) 8932{ 8933 8934 ; 8935 return 0; 8936} 8937_ACEOF 8938if ac_fn_c_try_link "$LINENO" 8939then : 8940 eval $cacheid=yes 8941else case e in #( 8942 e) eval $cacheid=no ;; 8943esac 8944fi 8945rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8946 conftest$ac_exeext conftest.$ac_ext ;; 8947esac 8948fi 8949 8950 8951 CFLAGS="$xorg_testset_save_CFLAGS" 8952 8953 eval supported=\$$cacheid 8954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8955printf "%s\n" "$supported" >&6; } 8956 if test "$supported" = "yes" ; then 8957 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8958 found="yes" 8959 fi 8960 fi 8961 8962 if test $found = "no" ; then 8963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8965 fi 8966 8967 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8969 fi 8970 8971 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8972 8973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8974printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8975 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8976 if eval test \${$cacheid+y} 8977then : 8978 printf %s "(cached) " >&6 8979else case e in #( 8980 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8981/* end confdefs.h. */ 8982int i; 8983int 8984main (void) 8985{ 8986 8987 ; 8988 return 0; 8989} 8990_ACEOF 8991if ac_fn_c_try_link "$LINENO" 8992then : 8993 eval $cacheid=yes 8994else case e in #( 8995 e) eval $cacheid=no ;; 8996esac 8997fi 8998rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8999 conftest$ac_exeext conftest.$ac_ext ;; 9000esac 9001fi 9002 9003 9004 CFLAGS="$xorg_testset_save_CFLAGS" 9005 9006 eval supported=\$$cacheid 9007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9008printf "%s\n" "$supported" >&6; } 9009 if test "$supported" = "yes" ; then 9010 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9011 found="yes" 9012 fi 9013 fi 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029xorg_testset_save_CFLAGS="$CFLAGS" 9030 9031if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9034printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9035if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9036then : 9037 printf %s "(cached) " >&6 9038else case e in #( 9039 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9040/* end confdefs.h. */ 9041int i; 9042_ACEOF 9043if ac_fn_c_try_compile "$LINENO" 9044then : 9045 xorg_cv_cc_flag_unknown_warning_option=yes 9046else case e in #( 9047 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9048esac 9049fi 9050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9051esac 9052fi 9053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9054printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9056 CFLAGS="$xorg_testset_save_CFLAGS" 9057fi 9058 9059if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9062 fi 9063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9065printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9066if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9067then : 9068 printf %s "(cached) " >&6 9069else case e in #( 9070 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9071/* end confdefs.h. */ 9072int i; 9073_ACEOF 9074if ac_fn_c_try_compile "$LINENO" 9075then : 9076 xorg_cv_cc_flag_unused_command_line_argument=yes 9077else case e in #( 9078 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9079esac 9080fi 9081rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9082esac 9083fi 9084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9085printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9086 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9087 CFLAGS="$xorg_testset_save_CFLAGS" 9088fi 9089 9090found="no" 9091 9092 if test $found = "no" ; then 9093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9095 fi 9096 9097 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9099 fi 9100 9101 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9102 9103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9104printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9105 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9106 if eval test \${$cacheid+y} 9107then : 9108 printf %s "(cached) " >&6 9109else case e in #( 9110 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9111/* end confdefs.h. */ 9112int i; 9113int 9114main (void) 9115{ 9116 9117 ; 9118 return 0; 9119} 9120_ACEOF 9121if ac_fn_c_try_link "$LINENO" 9122then : 9123 eval $cacheid=yes 9124else case e in #( 9125 e) eval $cacheid=no ;; 9126esac 9127fi 9128rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9129 conftest$ac_exeext conftest.$ac_ext ;; 9130esac 9131fi 9132 9133 9134 CFLAGS="$xorg_testset_save_CFLAGS" 9135 9136 eval supported=\$$cacheid 9137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9138printf "%s\n" "$supported" >&6; } 9139 if test "$supported" = "yes" ; then 9140 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9141 found="yes" 9142 fi 9143 fi 9144 9145 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9146else 9147{ 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 9148printf "%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;} 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162xorg_testset_save_CFLAGS="$CFLAGS" 9163 9164if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9167printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9168if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9169then : 9170 printf %s "(cached) " >&6 9171else case e in #( 9172 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9173/* end confdefs.h. */ 9174int i; 9175_ACEOF 9176if ac_fn_c_try_compile "$LINENO" 9177then : 9178 xorg_cv_cc_flag_unknown_warning_option=yes 9179else case e in #( 9180 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9181esac 9182fi 9183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9184esac 9185fi 9186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9187printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9189 CFLAGS="$xorg_testset_save_CFLAGS" 9190fi 9191 9192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9195 fi 9196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9198printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9199if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9200then : 9201 printf %s "(cached) " >&6 9202else case e in #( 9203 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9204/* end confdefs.h. */ 9205int i; 9206_ACEOF 9207if ac_fn_c_try_compile "$LINENO" 9208then : 9209 xorg_cv_cc_flag_unused_command_line_argument=yes 9210else case e in #( 9211 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9212esac 9213fi 9214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9215esac 9216fi 9217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9218printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9220 CFLAGS="$xorg_testset_save_CFLAGS" 9221fi 9222 9223found="no" 9224 9225 if test $found = "no" ; then 9226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9228 fi 9229 9230 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9232 fi 9233 9234 CFLAGS="$CFLAGS -Wimplicit" 9235 9236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9237printf %s "checking if $CC supports -Wimplicit... " >&6; } 9238 cacheid=xorg_cv_cc_flag__Wimplicit 9239 if eval test \${$cacheid+y} 9240then : 9241 printf %s "(cached) " >&6 9242else case e in #( 9243 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9244/* end confdefs.h. */ 9245int i; 9246int 9247main (void) 9248{ 9249 9250 ; 9251 return 0; 9252} 9253_ACEOF 9254if ac_fn_c_try_link "$LINENO" 9255then : 9256 eval $cacheid=yes 9257else case e in #( 9258 e) eval $cacheid=no ;; 9259esac 9260fi 9261rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9262 conftest$ac_exeext conftest.$ac_ext ;; 9263esac 9264fi 9265 9266 9267 CFLAGS="$xorg_testset_save_CFLAGS" 9268 9269 eval supported=\$$cacheid 9270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9271printf "%s\n" "$supported" >&6; } 9272 if test "$supported" = "yes" ; then 9273 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9274 found="yes" 9275 fi 9276 fi 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292xorg_testset_save_CFLAGS="$CFLAGS" 9293 9294if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9297printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9298if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9299then : 9300 printf %s "(cached) " >&6 9301else case e in #( 9302 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9303/* end confdefs.h. */ 9304int i; 9305_ACEOF 9306if ac_fn_c_try_compile "$LINENO" 9307then : 9308 xorg_cv_cc_flag_unknown_warning_option=yes 9309else case e in #( 9310 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9311esac 9312fi 9313rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9314esac 9315fi 9316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9317printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9319 CFLAGS="$xorg_testset_save_CFLAGS" 9320fi 9321 9322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9325 fi 9326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9328printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9329if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9330then : 9331 printf %s "(cached) " >&6 9332else case e in #( 9333 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9334/* end confdefs.h. */ 9335int i; 9336_ACEOF 9337if ac_fn_c_try_compile "$LINENO" 9338then : 9339 xorg_cv_cc_flag_unused_command_line_argument=yes 9340else case e in #( 9341 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9342esac 9343fi 9344rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9345esac 9346fi 9347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9348printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9350 CFLAGS="$xorg_testset_save_CFLAGS" 9351fi 9352 9353found="no" 9354 9355 if test $found = "no" ; then 9356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9358 fi 9359 9360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9362 fi 9363 9364 CFLAGS="$CFLAGS -Wnonnull" 9365 9366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9367printf %s "checking if $CC supports -Wnonnull... " >&6; } 9368 cacheid=xorg_cv_cc_flag__Wnonnull 9369 if eval test \${$cacheid+y} 9370then : 9371 printf %s "(cached) " >&6 9372else case e in #( 9373 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9374/* end confdefs.h. */ 9375int i; 9376int 9377main (void) 9378{ 9379 9380 ; 9381 return 0; 9382} 9383_ACEOF 9384if ac_fn_c_try_link "$LINENO" 9385then : 9386 eval $cacheid=yes 9387else case e in #( 9388 e) eval $cacheid=no ;; 9389esac 9390fi 9391rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9392 conftest$ac_exeext conftest.$ac_ext ;; 9393esac 9394fi 9395 9396 9397 CFLAGS="$xorg_testset_save_CFLAGS" 9398 9399 eval supported=\$$cacheid 9400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9401printf "%s\n" "$supported" >&6; } 9402 if test "$supported" = "yes" ; then 9403 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9404 found="yes" 9405 fi 9406 fi 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422xorg_testset_save_CFLAGS="$CFLAGS" 9423 9424if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9427printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9428if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9429then : 9430 printf %s "(cached) " >&6 9431else case e in #( 9432 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9433/* end confdefs.h. */ 9434int i; 9435_ACEOF 9436if ac_fn_c_try_compile "$LINENO" 9437then : 9438 xorg_cv_cc_flag_unknown_warning_option=yes 9439else case e in #( 9440 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9441esac 9442fi 9443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9444esac 9445fi 9446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9447printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9448 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9449 CFLAGS="$xorg_testset_save_CFLAGS" 9450fi 9451 9452if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9455 fi 9456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9458printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9459if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9460then : 9461 printf %s "(cached) " >&6 9462else case e in #( 9463 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9464/* end confdefs.h. */ 9465int i; 9466_ACEOF 9467if ac_fn_c_try_compile "$LINENO" 9468then : 9469 xorg_cv_cc_flag_unused_command_line_argument=yes 9470else case e in #( 9471 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9472esac 9473fi 9474rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9475esac 9476fi 9477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9478printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9479 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9480 CFLAGS="$xorg_testset_save_CFLAGS" 9481fi 9482 9483found="no" 9484 9485 if test $found = "no" ; then 9486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9488 fi 9489 9490 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9492 fi 9493 9494 CFLAGS="$CFLAGS -Winit-self" 9495 9496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9497printf %s "checking if $CC supports -Winit-self... " >&6; } 9498 cacheid=xorg_cv_cc_flag__Winit_self 9499 if eval test \${$cacheid+y} 9500then : 9501 printf %s "(cached) " >&6 9502else case e in #( 9503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9504/* end confdefs.h. */ 9505int i; 9506int 9507main (void) 9508{ 9509 9510 ; 9511 return 0; 9512} 9513_ACEOF 9514if ac_fn_c_try_link "$LINENO" 9515then : 9516 eval $cacheid=yes 9517else case e in #( 9518 e) eval $cacheid=no ;; 9519esac 9520fi 9521rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9522 conftest$ac_exeext conftest.$ac_ext ;; 9523esac 9524fi 9525 9526 9527 CFLAGS="$xorg_testset_save_CFLAGS" 9528 9529 eval supported=\$$cacheid 9530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9531printf "%s\n" "$supported" >&6; } 9532 if test "$supported" = "yes" ; then 9533 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9534 found="yes" 9535 fi 9536 fi 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552xorg_testset_save_CFLAGS="$CFLAGS" 9553 9554if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9557printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9558if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9559then : 9560 printf %s "(cached) " >&6 9561else case e in #( 9562 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9563/* end confdefs.h. */ 9564int i; 9565_ACEOF 9566if ac_fn_c_try_compile "$LINENO" 9567then : 9568 xorg_cv_cc_flag_unknown_warning_option=yes 9569else case e in #( 9570 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9571esac 9572fi 9573rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9574esac 9575fi 9576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9577printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9578 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9579 CFLAGS="$xorg_testset_save_CFLAGS" 9580fi 9581 9582if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9585 fi 9586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9588printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9589if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9590then : 9591 printf %s "(cached) " >&6 9592else case e in #( 9593 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9594/* end confdefs.h. */ 9595int i; 9596_ACEOF 9597if ac_fn_c_try_compile "$LINENO" 9598then : 9599 xorg_cv_cc_flag_unused_command_line_argument=yes 9600else case e in #( 9601 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9602esac 9603fi 9604rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9605esac 9606fi 9607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9608printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9610 CFLAGS="$xorg_testset_save_CFLAGS" 9611fi 9612 9613found="no" 9614 9615 if test $found = "no" ; then 9616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9618 fi 9619 9620 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9622 fi 9623 9624 CFLAGS="$CFLAGS -Wmain" 9625 9626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9627printf %s "checking if $CC supports -Wmain... " >&6; } 9628 cacheid=xorg_cv_cc_flag__Wmain 9629 if eval test \${$cacheid+y} 9630then : 9631 printf %s "(cached) " >&6 9632else case e in #( 9633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9634/* end confdefs.h. */ 9635int i; 9636int 9637main (void) 9638{ 9639 9640 ; 9641 return 0; 9642} 9643_ACEOF 9644if ac_fn_c_try_link "$LINENO" 9645then : 9646 eval $cacheid=yes 9647else case e in #( 9648 e) eval $cacheid=no ;; 9649esac 9650fi 9651rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9652 conftest$ac_exeext conftest.$ac_ext ;; 9653esac 9654fi 9655 9656 9657 CFLAGS="$xorg_testset_save_CFLAGS" 9658 9659 eval supported=\$$cacheid 9660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9661printf "%s\n" "$supported" >&6; } 9662 if test "$supported" = "yes" ; then 9663 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9664 found="yes" 9665 fi 9666 fi 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682xorg_testset_save_CFLAGS="$CFLAGS" 9683 9684if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9687printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9688if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9689then : 9690 printf %s "(cached) " >&6 9691else case e in #( 9692 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9693/* end confdefs.h. */ 9694int i; 9695_ACEOF 9696if ac_fn_c_try_compile "$LINENO" 9697then : 9698 xorg_cv_cc_flag_unknown_warning_option=yes 9699else case e in #( 9700 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9701esac 9702fi 9703rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9704esac 9705fi 9706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9707printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9709 CFLAGS="$xorg_testset_save_CFLAGS" 9710fi 9711 9712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9715 fi 9716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9718printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9719if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9720then : 9721 printf %s "(cached) " >&6 9722else case e in #( 9723 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9724/* end confdefs.h. */ 9725int i; 9726_ACEOF 9727if ac_fn_c_try_compile "$LINENO" 9728then : 9729 xorg_cv_cc_flag_unused_command_line_argument=yes 9730else case e in #( 9731 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9732esac 9733fi 9734rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9735esac 9736fi 9737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9738printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9739 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9740 CFLAGS="$xorg_testset_save_CFLAGS" 9741fi 9742 9743found="no" 9744 9745 if test $found = "no" ; then 9746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9748 fi 9749 9750 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9752 fi 9753 9754 CFLAGS="$CFLAGS -Wmissing-braces" 9755 9756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9757printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9758 cacheid=xorg_cv_cc_flag__Wmissing_braces 9759 if eval test \${$cacheid+y} 9760then : 9761 printf %s "(cached) " >&6 9762else case e in #( 9763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9764/* end confdefs.h. */ 9765int i; 9766int 9767main (void) 9768{ 9769 9770 ; 9771 return 0; 9772} 9773_ACEOF 9774if ac_fn_c_try_link "$LINENO" 9775then : 9776 eval $cacheid=yes 9777else case e in #( 9778 e) eval $cacheid=no ;; 9779esac 9780fi 9781rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9782 conftest$ac_exeext conftest.$ac_ext ;; 9783esac 9784fi 9785 9786 9787 CFLAGS="$xorg_testset_save_CFLAGS" 9788 9789 eval supported=\$$cacheid 9790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9791printf "%s\n" "$supported" >&6; } 9792 if test "$supported" = "yes" ; then 9793 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9794 found="yes" 9795 fi 9796 fi 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812xorg_testset_save_CFLAGS="$CFLAGS" 9813 9814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9817printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9818if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9819then : 9820 printf %s "(cached) " >&6 9821else case e in #( 9822 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9823/* end confdefs.h. */ 9824int i; 9825_ACEOF 9826if ac_fn_c_try_compile "$LINENO" 9827then : 9828 xorg_cv_cc_flag_unknown_warning_option=yes 9829else case e in #( 9830 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9831esac 9832fi 9833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9834esac 9835fi 9836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9837printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9839 CFLAGS="$xorg_testset_save_CFLAGS" 9840fi 9841 9842if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9845 fi 9846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9848printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9849if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9850then : 9851 printf %s "(cached) " >&6 9852else case e in #( 9853 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9854/* end confdefs.h. */ 9855int i; 9856_ACEOF 9857if ac_fn_c_try_compile "$LINENO" 9858then : 9859 xorg_cv_cc_flag_unused_command_line_argument=yes 9860else case e in #( 9861 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9862esac 9863fi 9864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9865esac 9866fi 9867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9868printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9870 CFLAGS="$xorg_testset_save_CFLAGS" 9871fi 9872 9873found="no" 9874 9875 if test $found = "no" ; then 9876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9878 fi 9879 9880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9882 fi 9883 9884 CFLAGS="$CFLAGS -Wsequence-point" 9885 9886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9887printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9888 cacheid=xorg_cv_cc_flag__Wsequence_point 9889 if eval test \${$cacheid+y} 9890then : 9891 printf %s "(cached) " >&6 9892else case e in #( 9893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9894/* end confdefs.h. */ 9895int i; 9896int 9897main (void) 9898{ 9899 9900 ; 9901 return 0; 9902} 9903_ACEOF 9904if ac_fn_c_try_link "$LINENO" 9905then : 9906 eval $cacheid=yes 9907else case e in #( 9908 e) eval $cacheid=no ;; 9909esac 9910fi 9911rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9912 conftest$ac_exeext conftest.$ac_ext ;; 9913esac 9914fi 9915 9916 9917 CFLAGS="$xorg_testset_save_CFLAGS" 9918 9919 eval supported=\$$cacheid 9920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9921printf "%s\n" "$supported" >&6; } 9922 if test "$supported" = "yes" ; then 9923 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9924 found="yes" 9925 fi 9926 fi 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942xorg_testset_save_CFLAGS="$CFLAGS" 9943 9944if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9947printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9948if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9949then : 9950 printf %s "(cached) " >&6 9951else case e in #( 9952 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9953/* end confdefs.h. */ 9954int i; 9955_ACEOF 9956if ac_fn_c_try_compile "$LINENO" 9957then : 9958 xorg_cv_cc_flag_unknown_warning_option=yes 9959else case e in #( 9960 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9961esac 9962fi 9963rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9964esac 9965fi 9966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9967printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9969 CFLAGS="$xorg_testset_save_CFLAGS" 9970fi 9971 9972if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9975 fi 9976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9978printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9979if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9980then : 9981 printf %s "(cached) " >&6 9982else case e in #( 9983 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9984/* end confdefs.h. */ 9985int i; 9986_ACEOF 9987if ac_fn_c_try_compile "$LINENO" 9988then : 9989 xorg_cv_cc_flag_unused_command_line_argument=yes 9990else case e in #( 9991 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9992esac 9993fi 9994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9995esac 9996fi 9997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9998printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10000 CFLAGS="$xorg_testset_save_CFLAGS" 10001fi 10002 10003found="no" 10004 10005 if test $found = "no" ; then 10006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10008 fi 10009 10010 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10012 fi 10013 10014 CFLAGS="$CFLAGS -Wreturn-type" 10015 10016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10017printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10018 cacheid=xorg_cv_cc_flag__Wreturn_type 10019 if eval test \${$cacheid+y} 10020then : 10021 printf %s "(cached) " >&6 10022else case e in #( 10023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10024/* end confdefs.h. */ 10025int i; 10026int 10027main (void) 10028{ 10029 10030 ; 10031 return 0; 10032} 10033_ACEOF 10034if ac_fn_c_try_link "$LINENO" 10035then : 10036 eval $cacheid=yes 10037else case e in #( 10038 e) eval $cacheid=no ;; 10039esac 10040fi 10041rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10042 conftest$ac_exeext conftest.$ac_ext ;; 10043esac 10044fi 10045 10046 10047 CFLAGS="$xorg_testset_save_CFLAGS" 10048 10049 eval supported=\$$cacheid 10050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10051printf "%s\n" "$supported" >&6; } 10052 if test "$supported" = "yes" ; then 10053 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10054 found="yes" 10055 fi 10056 fi 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072xorg_testset_save_CFLAGS="$CFLAGS" 10073 10074if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10077printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10078if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10079then : 10080 printf %s "(cached) " >&6 10081else case e in #( 10082 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10083/* end confdefs.h. */ 10084int i; 10085_ACEOF 10086if ac_fn_c_try_compile "$LINENO" 10087then : 10088 xorg_cv_cc_flag_unknown_warning_option=yes 10089else case e in #( 10090 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10091esac 10092fi 10093rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10094esac 10095fi 10096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10097printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10099 CFLAGS="$xorg_testset_save_CFLAGS" 10100fi 10101 10102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10105 fi 10106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10108printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10109if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10110then : 10111 printf %s "(cached) " >&6 10112else case e in #( 10113 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10114/* end confdefs.h. */ 10115int i; 10116_ACEOF 10117if ac_fn_c_try_compile "$LINENO" 10118then : 10119 xorg_cv_cc_flag_unused_command_line_argument=yes 10120else case e in #( 10121 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10122esac 10123fi 10124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10125esac 10126fi 10127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10128printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10130 CFLAGS="$xorg_testset_save_CFLAGS" 10131fi 10132 10133found="no" 10134 10135 if test $found = "no" ; then 10136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10138 fi 10139 10140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10142 fi 10143 10144 CFLAGS="$CFLAGS -Wtrigraphs" 10145 10146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10147printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10148 cacheid=xorg_cv_cc_flag__Wtrigraphs 10149 if eval test \${$cacheid+y} 10150then : 10151 printf %s "(cached) " >&6 10152else case e in #( 10153 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10154/* end confdefs.h. */ 10155int i; 10156int 10157main (void) 10158{ 10159 10160 ; 10161 return 0; 10162} 10163_ACEOF 10164if ac_fn_c_try_link "$LINENO" 10165then : 10166 eval $cacheid=yes 10167else case e in #( 10168 e) eval $cacheid=no ;; 10169esac 10170fi 10171rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10172 conftest$ac_exeext conftest.$ac_ext ;; 10173esac 10174fi 10175 10176 10177 CFLAGS="$xorg_testset_save_CFLAGS" 10178 10179 eval supported=\$$cacheid 10180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10181printf "%s\n" "$supported" >&6; } 10182 if test "$supported" = "yes" ; then 10183 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10184 found="yes" 10185 fi 10186 fi 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202xorg_testset_save_CFLAGS="$CFLAGS" 10203 10204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10207printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10208if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10209then : 10210 printf %s "(cached) " >&6 10211else case e in #( 10212 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10213/* end confdefs.h. */ 10214int i; 10215_ACEOF 10216if ac_fn_c_try_compile "$LINENO" 10217then : 10218 xorg_cv_cc_flag_unknown_warning_option=yes 10219else case e in #( 10220 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10221esac 10222fi 10223rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10224esac 10225fi 10226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10227printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10229 CFLAGS="$xorg_testset_save_CFLAGS" 10230fi 10231 10232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10235 fi 10236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10238printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10239if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10240then : 10241 printf %s "(cached) " >&6 10242else case e in #( 10243 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10244/* end confdefs.h. */ 10245int i; 10246_ACEOF 10247if ac_fn_c_try_compile "$LINENO" 10248then : 10249 xorg_cv_cc_flag_unused_command_line_argument=yes 10250else case e in #( 10251 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10252esac 10253fi 10254rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10255esac 10256fi 10257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10258printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10259 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10260 CFLAGS="$xorg_testset_save_CFLAGS" 10261fi 10262 10263found="no" 10264 10265 if test $found = "no" ; then 10266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10268 fi 10269 10270 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10272 fi 10273 10274 CFLAGS="$CFLAGS -Warray-bounds" 10275 10276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10277printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10278 cacheid=xorg_cv_cc_flag__Warray_bounds 10279 if eval test \${$cacheid+y} 10280then : 10281 printf %s "(cached) " >&6 10282else case e in #( 10283 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10284/* end confdefs.h. */ 10285int i; 10286int 10287main (void) 10288{ 10289 10290 ; 10291 return 0; 10292} 10293_ACEOF 10294if ac_fn_c_try_link "$LINENO" 10295then : 10296 eval $cacheid=yes 10297else case e in #( 10298 e) eval $cacheid=no ;; 10299esac 10300fi 10301rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10302 conftest$ac_exeext conftest.$ac_ext ;; 10303esac 10304fi 10305 10306 10307 CFLAGS="$xorg_testset_save_CFLAGS" 10308 10309 eval supported=\$$cacheid 10310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10311printf "%s\n" "$supported" >&6; } 10312 if test "$supported" = "yes" ; then 10313 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10314 found="yes" 10315 fi 10316 fi 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332xorg_testset_save_CFLAGS="$CFLAGS" 10333 10334if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10337printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10338if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10339then : 10340 printf %s "(cached) " >&6 10341else case e in #( 10342 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10343/* end confdefs.h. */ 10344int i; 10345_ACEOF 10346if ac_fn_c_try_compile "$LINENO" 10347then : 10348 xorg_cv_cc_flag_unknown_warning_option=yes 10349else case e in #( 10350 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10351esac 10352fi 10353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10354esac 10355fi 10356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10357printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10359 CFLAGS="$xorg_testset_save_CFLAGS" 10360fi 10361 10362if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10365 fi 10366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10368printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10369if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10370then : 10371 printf %s "(cached) " >&6 10372else case e in #( 10373 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10374/* end confdefs.h. */ 10375int i; 10376_ACEOF 10377if ac_fn_c_try_compile "$LINENO" 10378then : 10379 xorg_cv_cc_flag_unused_command_line_argument=yes 10380else case e in #( 10381 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10382esac 10383fi 10384rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10385esac 10386fi 10387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10388printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10389 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10390 CFLAGS="$xorg_testset_save_CFLAGS" 10391fi 10392 10393found="no" 10394 10395 if test $found = "no" ; then 10396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10398 fi 10399 10400 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10402 fi 10403 10404 CFLAGS="$CFLAGS -Wwrite-strings" 10405 10406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10407printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10408 cacheid=xorg_cv_cc_flag__Wwrite_strings 10409 if eval test \${$cacheid+y} 10410then : 10411 printf %s "(cached) " >&6 10412else case e in #( 10413 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10414/* end confdefs.h. */ 10415int i; 10416int 10417main (void) 10418{ 10419 10420 ; 10421 return 0; 10422} 10423_ACEOF 10424if ac_fn_c_try_link "$LINENO" 10425then : 10426 eval $cacheid=yes 10427else case e in #( 10428 e) eval $cacheid=no ;; 10429esac 10430fi 10431rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10432 conftest$ac_exeext conftest.$ac_ext ;; 10433esac 10434fi 10435 10436 10437 CFLAGS="$xorg_testset_save_CFLAGS" 10438 10439 eval supported=\$$cacheid 10440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10441printf "%s\n" "$supported" >&6; } 10442 if test "$supported" = "yes" ; then 10443 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10444 found="yes" 10445 fi 10446 fi 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462xorg_testset_save_CFLAGS="$CFLAGS" 10463 10464if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10467printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10468if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10469then : 10470 printf %s "(cached) " >&6 10471else case e in #( 10472 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10473/* end confdefs.h. */ 10474int i; 10475_ACEOF 10476if ac_fn_c_try_compile "$LINENO" 10477then : 10478 xorg_cv_cc_flag_unknown_warning_option=yes 10479else case e in #( 10480 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10481esac 10482fi 10483rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10484esac 10485fi 10486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10487printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10489 CFLAGS="$xorg_testset_save_CFLAGS" 10490fi 10491 10492if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10495 fi 10496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10498printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10499if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10500then : 10501 printf %s "(cached) " >&6 10502else case e in #( 10503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10504/* end confdefs.h. */ 10505int i; 10506_ACEOF 10507if ac_fn_c_try_compile "$LINENO" 10508then : 10509 xorg_cv_cc_flag_unused_command_line_argument=yes 10510else case e in #( 10511 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10512esac 10513fi 10514rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10515esac 10516fi 10517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10518printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10520 CFLAGS="$xorg_testset_save_CFLAGS" 10521fi 10522 10523found="no" 10524 10525 if test $found = "no" ; then 10526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10528 fi 10529 10530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10532 fi 10533 10534 CFLAGS="$CFLAGS -Waddress" 10535 10536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10537printf %s "checking if $CC supports -Waddress... " >&6; } 10538 cacheid=xorg_cv_cc_flag__Waddress 10539 if eval test \${$cacheid+y} 10540then : 10541 printf %s "(cached) " >&6 10542else case e in #( 10543 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10544/* end confdefs.h. */ 10545int i; 10546int 10547main (void) 10548{ 10549 10550 ; 10551 return 0; 10552} 10553_ACEOF 10554if ac_fn_c_try_link "$LINENO" 10555then : 10556 eval $cacheid=yes 10557else case e in #( 10558 e) eval $cacheid=no ;; 10559esac 10560fi 10561rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10562 conftest$ac_exeext conftest.$ac_ext ;; 10563esac 10564fi 10565 10566 10567 CFLAGS="$xorg_testset_save_CFLAGS" 10568 10569 eval supported=\$$cacheid 10570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10571printf "%s\n" "$supported" >&6; } 10572 if test "$supported" = "yes" ; then 10573 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10574 found="yes" 10575 fi 10576 fi 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592xorg_testset_save_CFLAGS="$CFLAGS" 10593 10594if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10597printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10598if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10599then : 10600 printf %s "(cached) " >&6 10601else case e in #( 10602 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10603/* end confdefs.h. */ 10604int i; 10605_ACEOF 10606if ac_fn_c_try_compile "$LINENO" 10607then : 10608 xorg_cv_cc_flag_unknown_warning_option=yes 10609else case e in #( 10610 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10611esac 10612fi 10613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10614esac 10615fi 10616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10617printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10619 CFLAGS="$xorg_testset_save_CFLAGS" 10620fi 10621 10622if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10625 fi 10626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10628printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10629if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10630then : 10631 printf %s "(cached) " >&6 10632else case e in #( 10633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10634/* end confdefs.h. */ 10635int i; 10636_ACEOF 10637if ac_fn_c_try_compile "$LINENO" 10638then : 10639 xorg_cv_cc_flag_unused_command_line_argument=yes 10640else case e in #( 10641 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10642esac 10643fi 10644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10645esac 10646fi 10647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10648printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10649 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10650 CFLAGS="$xorg_testset_save_CFLAGS" 10651fi 10652 10653found="no" 10654 10655 if test $found = "no" ; then 10656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10658 fi 10659 10660 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10662 fi 10663 10664 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10665 10666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10667printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10668 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10669 if eval test \${$cacheid+y} 10670then : 10671 printf %s "(cached) " >&6 10672else case e in #( 10673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10674/* end confdefs.h. */ 10675int i; 10676int 10677main (void) 10678{ 10679 10680 ; 10681 return 0; 10682} 10683_ACEOF 10684if ac_fn_c_try_link "$LINENO" 10685then : 10686 eval $cacheid=yes 10687else case e in #( 10688 e) eval $cacheid=no ;; 10689esac 10690fi 10691rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10692 conftest$ac_exeext conftest.$ac_ext ;; 10693esac 10694fi 10695 10696 10697 CFLAGS="$xorg_testset_save_CFLAGS" 10698 10699 eval supported=\$$cacheid 10700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10701printf "%s\n" "$supported" >&6; } 10702 if test "$supported" = "yes" ; then 10703 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10704 found="yes" 10705 fi 10706 fi 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722xorg_testset_save_CFLAGS="$CFLAGS" 10723 10724if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10727printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10728if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10729then : 10730 printf %s "(cached) " >&6 10731else case e in #( 10732 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10733/* end confdefs.h. */ 10734int i; 10735_ACEOF 10736if ac_fn_c_try_compile "$LINENO" 10737then : 10738 xorg_cv_cc_flag_unknown_warning_option=yes 10739else case e in #( 10740 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10741esac 10742fi 10743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10744esac 10745fi 10746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10747printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10748 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10749 CFLAGS="$xorg_testset_save_CFLAGS" 10750fi 10751 10752if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10755 fi 10756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10758printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10759if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10760then : 10761 printf %s "(cached) " >&6 10762else case e in #( 10763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10764/* end confdefs.h. */ 10765int i; 10766_ACEOF 10767if ac_fn_c_try_compile "$LINENO" 10768then : 10769 xorg_cv_cc_flag_unused_command_line_argument=yes 10770else case e in #( 10771 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10772esac 10773fi 10774rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10775esac 10776fi 10777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10778printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10779 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10780 CFLAGS="$xorg_testset_save_CFLAGS" 10781fi 10782 10783found="no" 10784 10785 if test $found = "no" ; then 10786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10788 fi 10789 10790 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10792 fi 10793 10794 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10795 10796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10797printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10798 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10799 if eval test \${$cacheid+y} 10800then : 10801 printf %s "(cached) " >&6 10802else case e in #( 10803 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10804/* end confdefs.h. */ 10805int i; 10806int 10807main (void) 10808{ 10809 10810 ; 10811 return 0; 10812} 10813_ACEOF 10814if ac_fn_c_try_link "$LINENO" 10815then : 10816 eval $cacheid=yes 10817else case e in #( 10818 e) eval $cacheid=no ;; 10819esac 10820fi 10821rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10822 conftest$ac_exeext conftest.$ac_ext ;; 10823esac 10824fi 10825 10826 10827 CFLAGS="$xorg_testset_save_CFLAGS" 10828 10829 eval supported=\$$cacheid 10830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10831printf "%s\n" "$supported" >&6; } 10832 if test "$supported" = "yes" ; then 10833 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10834 found="yes" 10835 fi 10836 fi 10837 10838 10839fi 10840 10841 10842 10843 10844 10845 10846 10847 CWARNFLAGS="$BASE_CFLAGS" 10848 if test "x$GCC" = xyes ; then 10849 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10850 fi 10851 10852 10853 10854 10855 10856 10857 10858 10859# Check whether --enable-strict-compilation was given. 10860if test ${enable_strict_compilation+y} 10861then : 10862 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10863else case e in #( 10864 e) STRICT_COMPILE=no ;; 10865esac 10866fi 10867 10868 10869 10870 10871 10872 10873STRICT_CFLAGS="" 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887xorg_testset_save_CFLAGS="$CFLAGS" 10888 10889if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10892printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10893if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10894then : 10895 printf %s "(cached) " >&6 10896else case e in #( 10897 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10898/* end confdefs.h. */ 10899int i; 10900_ACEOF 10901if ac_fn_c_try_compile "$LINENO" 10902then : 10903 xorg_cv_cc_flag_unknown_warning_option=yes 10904else case e in #( 10905 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10906esac 10907fi 10908rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10909esac 10910fi 10911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10912printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10913 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10914 CFLAGS="$xorg_testset_save_CFLAGS" 10915fi 10916 10917if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10920 fi 10921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10923printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10924if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10925then : 10926 printf %s "(cached) " >&6 10927else case e in #( 10928 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10929/* end confdefs.h. */ 10930int i; 10931_ACEOF 10932if ac_fn_c_try_compile "$LINENO" 10933then : 10934 xorg_cv_cc_flag_unused_command_line_argument=yes 10935else case e in #( 10936 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10937esac 10938fi 10939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10940esac 10941fi 10942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10943printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10944 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10945 CFLAGS="$xorg_testset_save_CFLAGS" 10946fi 10947 10948found="no" 10949 10950 if test $found = "no" ; then 10951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10953 fi 10954 10955 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10957 fi 10958 10959 CFLAGS="$CFLAGS -pedantic" 10960 10961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10962printf %s "checking if $CC supports -pedantic... " >&6; } 10963 cacheid=xorg_cv_cc_flag__pedantic 10964 if eval test \${$cacheid+y} 10965then : 10966 printf %s "(cached) " >&6 10967else case e in #( 10968 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10969/* end confdefs.h. */ 10970int i; 10971int 10972main (void) 10973{ 10974 10975 ; 10976 return 0; 10977} 10978_ACEOF 10979if ac_fn_c_try_link "$LINENO" 10980then : 10981 eval $cacheid=yes 10982else case e in #( 10983 e) eval $cacheid=no ;; 10984esac 10985fi 10986rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10987 conftest$ac_exeext conftest.$ac_ext ;; 10988esac 10989fi 10990 10991 10992 CFLAGS="$xorg_testset_save_CFLAGS" 10993 10994 eval supported=\$$cacheid 10995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10996printf "%s\n" "$supported" >&6; } 10997 if test "$supported" = "yes" ; then 10998 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10999 found="yes" 11000 fi 11001 fi 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017xorg_testset_save_CFLAGS="$CFLAGS" 11018 11019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11022printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11023if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11024then : 11025 printf %s "(cached) " >&6 11026else case e in #( 11027 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11028/* end confdefs.h. */ 11029int i; 11030_ACEOF 11031if ac_fn_c_try_compile "$LINENO" 11032then : 11033 xorg_cv_cc_flag_unknown_warning_option=yes 11034else case e in #( 11035 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11036esac 11037fi 11038rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11039esac 11040fi 11041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11042printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11043 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11044 CFLAGS="$xorg_testset_save_CFLAGS" 11045fi 11046 11047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11050 fi 11051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11053printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11054if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11055then : 11056 printf %s "(cached) " >&6 11057else case e in #( 11058 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11059/* end confdefs.h. */ 11060int i; 11061_ACEOF 11062if ac_fn_c_try_compile "$LINENO" 11063then : 11064 xorg_cv_cc_flag_unused_command_line_argument=yes 11065else case e in #( 11066 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11067esac 11068fi 11069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11070esac 11071fi 11072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11073printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11075 CFLAGS="$xorg_testset_save_CFLAGS" 11076fi 11077 11078found="no" 11079 11080 if test $found = "no" ; then 11081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11083 fi 11084 11085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11087 fi 11088 11089 CFLAGS="$CFLAGS -Werror" 11090 11091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11092printf %s "checking if $CC supports -Werror... " >&6; } 11093 cacheid=xorg_cv_cc_flag__Werror 11094 if eval test \${$cacheid+y} 11095then : 11096 printf %s "(cached) " >&6 11097else case e in #( 11098 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11099/* end confdefs.h. */ 11100int i; 11101int 11102main (void) 11103{ 11104 11105 ; 11106 return 0; 11107} 11108_ACEOF 11109if ac_fn_c_try_link "$LINENO" 11110then : 11111 eval $cacheid=yes 11112else case e in #( 11113 e) eval $cacheid=no ;; 11114esac 11115fi 11116rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11117 conftest$ac_exeext conftest.$ac_ext ;; 11118esac 11119fi 11120 11121 11122 CFLAGS="$xorg_testset_save_CFLAGS" 11123 11124 eval supported=\$$cacheid 11125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11126printf "%s\n" "$supported" >&6; } 11127 if test "$supported" = "yes" ; then 11128 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11129 found="yes" 11130 fi 11131 fi 11132 11133 if test $found = "no" ; then 11134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11136 fi 11137 11138 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11140 fi 11141 11142 CFLAGS="$CFLAGS -errwarn" 11143 11144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11145printf %s "checking if $CC supports -errwarn... " >&6; } 11146 cacheid=xorg_cv_cc_flag__errwarn 11147 if eval test \${$cacheid+y} 11148then : 11149 printf %s "(cached) " >&6 11150else case e in #( 11151 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11152/* end confdefs.h. */ 11153int i; 11154int 11155main (void) 11156{ 11157 11158 ; 11159 return 0; 11160} 11161_ACEOF 11162if ac_fn_c_try_link "$LINENO" 11163then : 11164 eval $cacheid=yes 11165else case e in #( 11166 e) eval $cacheid=no ;; 11167esac 11168fi 11169rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11170 conftest$ac_exeext conftest.$ac_ext ;; 11171esac 11172fi 11173 11174 11175 CFLAGS="$xorg_testset_save_CFLAGS" 11176 11177 eval supported=\$$cacheid 11178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11179printf "%s\n" "$supported" >&6; } 11180 if test "$supported" = "yes" ; then 11181 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11182 found="yes" 11183 fi 11184 fi 11185 11186 11187 11188# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11189# activate it with -Werror, so we add it here explicitly. 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203xorg_testset_save_CFLAGS="$CFLAGS" 11204 11205if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11208printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11209if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11210then : 11211 printf %s "(cached) " >&6 11212else case e in #( 11213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11214/* end confdefs.h. */ 11215int i; 11216_ACEOF 11217if ac_fn_c_try_compile "$LINENO" 11218then : 11219 xorg_cv_cc_flag_unknown_warning_option=yes 11220else case e in #( 11221 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11222esac 11223fi 11224rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11225esac 11226fi 11227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11228printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11229 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11230 CFLAGS="$xorg_testset_save_CFLAGS" 11231fi 11232 11233if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11236 fi 11237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11239printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11240if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11241then : 11242 printf %s "(cached) " >&6 11243else case e in #( 11244 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11245/* end confdefs.h. */ 11246int i; 11247_ACEOF 11248if ac_fn_c_try_compile "$LINENO" 11249then : 11250 xorg_cv_cc_flag_unused_command_line_argument=yes 11251else case e in #( 11252 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11253esac 11254fi 11255rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11256esac 11257fi 11258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11259printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11261 CFLAGS="$xorg_testset_save_CFLAGS" 11262fi 11263 11264found="no" 11265 11266 if test $found = "no" ; then 11267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11269 fi 11270 11271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11273 fi 11274 11275 CFLAGS="$CFLAGS -Werror=attributes" 11276 11277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11278printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11279 cacheid=xorg_cv_cc_flag__Werror_attributes 11280 if eval test \${$cacheid+y} 11281then : 11282 printf %s "(cached) " >&6 11283else case e in #( 11284 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11285/* end confdefs.h. */ 11286int i; 11287int 11288main (void) 11289{ 11290 11291 ; 11292 return 0; 11293} 11294_ACEOF 11295if ac_fn_c_try_link "$LINENO" 11296then : 11297 eval $cacheid=yes 11298else case e in #( 11299 e) eval $cacheid=no ;; 11300esac 11301fi 11302rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11303 conftest$ac_exeext conftest.$ac_ext ;; 11304esac 11305fi 11306 11307 11308 CFLAGS="$xorg_testset_save_CFLAGS" 11309 11310 eval supported=\$$cacheid 11311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11312printf "%s\n" "$supported" >&6; } 11313 if test "$supported" = "yes" ; then 11314 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11315 found="yes" 11316 fi 11317 fi 11318 11319 11320 11321if test "x$STRICT_COMPILE" = "xyes"; then 11322 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11323 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11324fi 11325 11326 11327 11328 11329 11330 11331 11332 11333cat >>confdefs.h <<_ACEOF 11334#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11335_ACEOF 11336 11337 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11338 if test "x$PVM" = "x"; then 11339 PVM="0" 11340 fi 11341 11342printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11343 11344 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11345 if test "x$PVP" = "x"; then 11346 PVP="0" 11347 fi 11348 11349printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11350 11351 11352 11353CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11354mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11355|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11356touch \$(top_srcdir)/ChangeLog; \ 11357echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11358 11359 11360 11361 11362macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11363INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11364mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11365|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11366touch \$(top_srcdir)/INSTALL; \ 11367echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11368 11369 11370 11371 11372 11373 11374case $host_os in 11375 solaris*) 11376 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11377 # check for a man page file found in later versions that use 11378 # traditional section numbers instead 11379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11380printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11381if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11382then : 11383 printf %s "(cached) " >&6 11384else case e in #( 11385 e) test "$cross_compiling" = yes && 11386 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11387if test -r "/usr/share/man/man7/attributes.7"; then 11388 ac_cv_file__usr_share_man_man7_attributes_7=yes 11389else 11390 ac_cv_file__usr_share_man_man7_attributes_7=no 11391fi ;; 11392esac 11393fi 11394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11395printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11396if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11397then : 11398 SYSV_MAN_SECTIONS=false 11399else case e in #( 11400 e) SYSV_MAN_SECTIONS=true ;; 11401esac 11402fi 11403 11404 ;; 11405 *) SYSV_MAN_SECTIONS=false ;; 11406esac 11407 11408if test x$APP_MAN_SUFFIX = x ; then 11409 APP_MAN_SUFFIX=1 11410fi 11411if test x$APP_MAN_DIR = x ; then 11412 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11413fi 11414 11415if test x$LIB_MAN_SUFFIX = x ; then 11416 LIB_MAN_SUFFIX=3 11417fi 11418if test x$LIB_MAN_DIR = x ; then 11419 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11420fi 11421 11422if test x$FILE_MAN_SUFFIX = x ; then 11423 case $SYSV_MAN_SECTIONS in 11424 true) FILE_MAN_SUFFIX=4 ;; 11425 *) FILE_MAN_SUFFIX=5 ;; 11426 esac 11427fi 11428if test x$FILE_MAN_DIR = x ; then 11429 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11430fi 11431 11432if test x$MISC_MAN_SUFFIX = x ; then 11433 case $SYSV_MAN_SECTIONS in 11434 true) MISC_MAN_SUFFIX=5 ;; 11435 *) MISC_MAN_SUFFIX=7 ;; 11436 esac 11437fi 11438if test x$MISC_MAN_DIR = x ; then 11439 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11440fi 11441 11442if test x$DRIVER_MAN_SUFFIX = x ; then 11443 case $SYSV_MAN_SECTIONS in 11444 true) DRIVER_MAN_SUFFIX=7 ;; 11445 *) DRIVER_MAN_SUFFIX=4 ;; 11446 esac 11447fi 11448if test x$DRIVER_MAN_DIR = x ; then 11449 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11450fi 11451 11452if test x$ADMIN_MAN_SUFFIX = x ; then 11453 case $SYSV_MAN_SECTIONS in 11454 true) ADMIN_MAN_SUFFIX=1m ;; 11455 *) ADMIN_MAN_SUFFIX=8 ;; 11456 esac 11457fi 11458if test x$ADMIN_MAN_DIR = x ; then 11459 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11460fi 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476XORG_MAN_PAGE="X Version 11" 11477 11478MAN_SUBSTS="\ 11479 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11480 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11481 -e 's|__xservername__|Xorg|g' \ 11482 -e 's|__xconfigfile__|xorg.conf|g' \ 11483 -e 's|__projectroot__|\$(prefix)|g' \ 11484 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11485 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11486 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11487 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11488 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11489 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11490 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11491 11492 11493 11494 11495AM_DEFAULT_VERBOSITY=0 11496 11497 11498 11499ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 11500if test "x$ac_cv_func_nanosleep" = xyes 11501then : 11502 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h 11503 11504fi 11505ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 11506if test "x$ac_cv_func_poll" = xyes 11507then : 11508 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h 11509 11510fi 11511ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" 11512if test "x$ac_cv_func_select" = xyes 11513then : 11514 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h 11515 11516fi 11517 11518 11519# Math libraries & functions 11520# - some compilers use builtin inlines for floor 11521# - lrint() is a C99 addition not found on some older systems 11522# - must do the libm check first so that the lrint check will have it in $LIBS 11523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 11524printf %s "checking for library containing floor... " >&6; } 11525if test ${ac_cv_search_floor+y} 11526then : 11527 printf %s "(cached) " >&6 11528else case e in #( 11529 e) ac_func_search_save_LIBS=$LIBS 11530cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11531/* end confdefs.h. */ 11532 11533/* Override any GCC internal prototype to avoid an error. 11534 Use char because int might match the return type of a GCC 11535 builtin and then its argument prototype would still apply. 11536 The 'extern "C"' is for builds by C++ compilers; 11537 although this is not generally supported in C code supporting it here 11538 has little cost and some practical benefit (sr 110532). */ 11539#ifdef __cplusplus 11540extern "C" 11541#endif 11542char floor (void); 11543int 11544main (void) 11545{ 11546return floor (); 11547 ; 11548 return 0; 11549} 11550_ACEOF 11551for ac_lib in '' m 11552do 11553 if test -z "$ac_lib"; then 11554 ac_res="none required" 11555 else 11556 ac_res=-l$ac_lib 11557 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11558 fi 11559 if ac_fn_c_try_link "$LINENO" 11560then : 11561 ac_cv_search_floor=$ac_res 11562fi 11563rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11564 conftest$ac_exeext 11565 if test ${ac_cv_search_floor+y} 11566then : 11567 break 11568fi 11569done 11570if test ${ac_cv_search_floor+y} 11571then : 11572 11573else case e in #( 11574 e) ac_cv_search_floor=no ;; 11575esac 11576fi 11577rm conftest.$ac_ext 11578LIBS=$ac_func_search_save_LIBS ;; 11579esac 11580fi 11581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5 11582printf "%s\n" "$ac_cv_search_floor" >&6; } 11583ac_res=$ac_cv_search_floor 11584if test "$ac_res" != no 11585then : 11586 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11587 11588fi 11589 11590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing lrint" >&5 11591printf %s "checking for library containing lrint... " >&6; } 11592if test ${ac_cv_search_lrint+y} 11593then : 11594 printf %s "(cached) " >&6 11595else case e in #( 11596 e) ac_func_search_save_LIBS=$LIBS 11597cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11598/* end confdefs.h. */ 11599 11600/* Override any GCC internal prototype to avoid an error. 11601 Use char because int might match the return type of a GCC 11602 builtin and then its argument prototype would still apply. 11603 The 'extern "C"' is for builds by C++ compilers; 11604 although this is not generally supported in C code supporting it here 11605 has little cost and some practical benefit (sr 110532). */ 11606#ifdef __cplusplus 11607extern "C" 11608#endif 11609char lrint (void); 11610int 11611main (void) 11612{ 11613return lrint (); 11614 ; 11615 return 0; 11616} 11617_ACEOF 11618for ac_lib in '' m 11619do 11620 if test -z "$ac_lib"; then 11621 ac_res="none required" 11622 else 11623 ac_res=-l$ac_lib 11624 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11625 fi 11626 if ac_fn_c_try_link "$LINENO" 11627then : 11628 ac_cv_search_lrint=$ac_res 11629fi 11630rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11631 conftest$ac_exeext 11632 if test ${ac_cv_search_lrint+y} 11633then : 11634 break 11635fi 11636done 11637if test ${ac_cv_search_lrint+y} 11638then : 11639 11640else case e in #( 11641 e) ac_cv_search_lrint=no ;; 11642esac 11643fi 11644rm conftest.$ac_ext 11645LIBS=$ac_func_search_save_LIBS ;; 11646esac 11647fi 11648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lrint" >&5 11649printf "%s\n" "$ac_cv_search_lrint" >&6; } 11650ac_res=$ac_cv_search_lrint 11651if test "$ac_res" != no 11652then : 11653 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11654 11655fi 11656 11657ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint" 11658if test "x$ac_cv_func_lrint" = xyes 11659then : 11660 printf "%s\n" "#define HAVE_LRINT 1" >>confdefs.h 11661 11662fi 11663 11664 11665# Checks for pkg-config packages 11666 11667pkg_failed=no 11668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XMAG" >&5 11669printf %s "checking for XMAG... " >&6; } 11670 11671if test -n "$XMAG_CFLAGS"; then 11672 pkg_cv_XMAG_CFLAGS="$XMAG_CFLAGS" 11673 elif test -n "$PKG_CONFIG"; then 11674 if test -n "$PKG_CONFIG" && \ 11675 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xproto >= 7.0.22\""; } >&5 11676 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xproto >= 7.0.22") 2>&5 11677 ac_status=$? 11678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11679 test $ac_status = 0; }; then 11680 pkg_cv_XMAG_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11 xproto >= 7.0.22" 2>/dev/null` 11681 test "x$?" != "x0" && pkg_failed=yes 11682else 11683 pkg_failed=yes 11684fi 11685 else 11686 pkg_failed=untried 11687fi 11688if test -n "$XMAG_LIBS"; then 11689 pkg_cv_XMAG_LIBS="$XMAG_LIBS" 11690 elif test -n "$PKG_CONFIG"; then 11691 if test -n "$PKG_CONFIG" && \ 11692 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xproto >= 7.0.22\""; } >&5 11693 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xproto >= 7.0.22") 2>&5 11694 ac_status=$? 11695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11696 test $ac_status = 0; }; then 11697 pkg_cv_XMAG_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11 xproto >= 7.0.22" 2>/dev/null` 11698 test "x$?" != "x0" && pkg_failed=yes 11699else 11700 pkg_failed=yes 11701fi 11702 else 11703 pkg_failed=untried 11704fi 11705 11706 11707 11708if test $pkg_failed = yes; then 11709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11710printf "%s\n" "no" >&6; } 11711 11712if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11713 _pkg_short_errors_supported=yes 11714else 11715 _pkg_short_errors_supported=no 11716fi 11717 if test $_pkg_short_errors_supported = yes; then 11718 XMAG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt x11 xproto >= 7.0.22" 2>&1` 11719 else 11720 XMAG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt x11 xproto >= 7.0.22" 2>&1` 11721 fi 11722 # Put the nasty error message in config.log where it belongs 11723 echo "$XMAG_PKG_ERRORS" >&5 11724 11725 as_fn_error $? "Package requirements (xaw7 xmu xt x11 xproto >= 7.0.22) were not met: 11726 11727$XMAG_PKG_ERRORS 11728 11729Consider adjusting the PKG_CONFIG_PATH environment variable if you 11730installed software in a non-standard prefix. 11731 11732Alternatively, you may set the environment variables XMAG_CFLAGS 11733and XMAG_LIBS to avoid the need to call pkg-config. 11734See the pkg-config man page for more details." "$LINENO" 5 11735elif test $pkg_failed = untried; then 11736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11737printf "%s\n" "no" >&6; } 11738 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11739printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11740as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11741is in your PATH or set the PKG_CONFIG environment variable to the full 11742path to pkg-config. 11743 11744Alternatively, you may set the environment variables XMAG_CFLAGS 11745and XMAG_LIBS to avoid the need to call pkg-config. 11746See the pkg-config man page for more details. 11747 11748To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11749See 'config.log' for more details" "$LINENO" 5; } 11750else 11751 XMAG_CFLAGS=$pkg_cv_XMAG_CFLAGS 11752 XMAG_LIBS=$pkg_cv_XMAG_LIBS 11753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11754printf "%s\n" "yes" >&6; } 11755 11756fi 11757 11758xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 11759 11760# Check whether --with-appdefaultdir was given. 11761if test ${with_appdefaultdir+y} 11762then : 11763 withval=$with_appdefaultdir; appdefaultdir="$withval" 11764else case e in #( 11765 e) appdefaultdir="${xt_appdefaultdir}" ;; 11766esac 11767fi 11768 11769 11770 11771 11772ac_config_files="$ac_config_files Makefile man/Makefile" 11773 11774cat >confcache <<\_ACEOF 11775# This file is a shell script that caches the results of configure 11776# tests run on this system so they can be shared between configure 11777# scripts and configure runs, see configure's option --config-cache. 11778# It is not useful on other systems. If it contains results you don't 11779# want to keep, you may remove or edit it. 11780# 11781# config.status only pays attention to the cache file if you give it 11782# the --recheck option to rerun configure. 11783# 11784# 'ac_cv_env_foo' variables (set or unset) will be overridden when 11785# loading this file, other *unset* 'ac_cv_foo' will be assigned the 11786# following values. 11787 11788_ACEOF 11789 11790# The following way of writing the cache mishandles newlines in values, 11791# but we know of no workaround that is simple, portable, and efficient. 11792# So, we kill variables containing newlines. 11793# Ultrix sh set writes to stderr and can't be redirected directly, 11794# and sets the high bit in the cache file unless we assign to the vars. 11795( 11796 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11797 eval ac_val=\$$ac_var 11798 case $ac_val in #( 11799 *${as_nl}*) 11800 case $ac_var in #( 11801 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11802printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11803 esac 11804 case $ac_var in #( 11805 _ | IFS | as_nl) ;; #( 11806 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11807 *) { eval $ac_var=; unset $ac_var;} ;; 11808 esac ;; 11809 esac 11810 done 11811 11812 (set) 2>&1 | 11813 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11814 *${as_nl}ac_space=\ *) 11815 # 'set' does not quote correctly, so add quotes: double-quote 11816 # substitution turns \\\\ into \\, and sed turns \\ into \. 11817 sed -n \ 11818 "s/'/'\\\\''/g; 11819 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11820 ;; #( 11821 *) 11822 # 'set' quotes correctly as required by POSIX, so do not add quotes. 11823 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11824 ;; 11825 esac | 11826 sort 11827) | 11828 sed ' 11829 /^ac_cv_env_/b end 11830 t clear 11831 :clear 11832 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11833 t end 11834 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11835 :end' >>confcache 11836if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11837 if test -w "$cache_file"; then 11838 if test "x$cache_file" != "x/dev/null"; then 11839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11840printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11841 if test ! -f "$cache_file" || test -h "$cache_file"; then 11842 cat confcache >"$cache_file" 11843 else 11844 case $cache_file in #( 11845 */* | ?:*) 11846 mv -f confcache "$cache_file"$$ && 11847 mv -f "$cache_file"$$ "$cache_file" ;; #( 11848 *) 11849 mv -f confcache "$cache_file" ;; 11850 esac 11851 fi 11852 fi 11853 else 11854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11855printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11856 fi 11857fi 11858rm -f confcache 11859 11860test "x$prefix" = xNONE && prefix=$ac_default_prefix 11861# Let make expand exec_prefix. 11862test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11863 11864DEFS=-DHAVE_CONFIG_H 11865 11866ac_libobjs= 11867ac_ltlibobjs= 11868U= 11869for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11870 # 1. Remove the extension, and $U if already installed. 11871 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11872 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11873 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11874 # will be set to the directory where LIBOBJS objects are built. 11875 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11876 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11877done 11878LIBOBJS=$ac_libobjs 11879 11880LTLIBOBJS=$ac_ltlibobjs 11881 11882 11883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11884printf %s "checking that generated files are newer than configure... " >&6; } 11885 if test -n "$am_sleep_pid"; then 11886 # Hide warnings about reused PIDs. 11887 wait $am_sleep_pid 2>/dev/null 11888 fi 11889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11890printf "%s\n" "done" >&6; } 11891case $enable_silent_rules in # ((( 11892 yes) AM_DEFAULT_VERBOSITY=0;; 11893 no) AM_DEFAULT_VERBOSITY=1;; 11894esac 11895if test $am_cv_make_support_nested_variables = yes; then 11896 AM_V='$(V)' 11897 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11898else 11899 AM_V=$AM_DEFAULT_VERBOSITY 11900 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11901fi 11902 11903 if test -n "$EXEEXT"; then 11904 am__EXEEXT_TRUE= 11905 am__EXEEXT_FALSE='#' 11906else 11907 am__EXEEXT_TRUE='#' 11908 am__EXEEXT_FALSE= 11909fi 11910 11911if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11912 as_fn_error $? "conditional \"AMDEP\" was never defined. 11913Usually this means the macro was only invoked conditionally." "$LINENO" 5 11914fi 11915if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11916 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11917Usually this means the macro was only invoked conditionally." "$LINENO" 5 11918fi 11919 11920: "${CONFIG_STATUS=./config.status}" 11921ac_write_fail=0 11922ac_clean_files_save=$ac_clean_files 11923ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11925printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11926as_write_fail=0 11927cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11928#! $SHELL 11929# Generated by $as_me. 11930# Run this file to recreate the current configuration. 11931# Compiler output produced by configure, useful for debugging 11932# configure, is in config.log if it exists. 11933 11934debug=false 11935ac_cs_recheck=false 11936ac_cs_silent=false 11937 11938SHELL=\${CONFIG_SHELL-$SHELL} 11939export SHELL 11940_ASEOF 11941cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11942## -------------------- ## 11943## M4sh Initialization. ## 11944## -------------------- ## 11945 11946# Be more Bourne compatible 11947DUALCASE=1; export DUALCASE # for MKS sh 11948if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11949then : 11950 emulate sh 11951 NULLCMD=: 11952 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11953 # is contrary to our usage. Disable this feature. 11954 alias -g '${1+"$@"}'='"$@"' 11955 setopt NO_GLOB_SUBST 11956else case e in #( 11957 e) case `(set -o) 2>/dev/null` in #( 11958 *posix*) : 11959 set -o posix ;; #( 11960 *) : 11961 ;; 11962esac ;; 11963esac 11964fi 11965 11966 11967 11968# Reset variables that may have inherited troublesome values from 11969# the environment. 11970 11971# IFS needs to be set, to space, tab, and newline, in precisely that order. 11972# (If _AS_PATH_WALK were called with IFS unset, it would have the 11973# side effect of setting IFS to empty, thus disabling word splitting.) 11974# Quoting is to prevent editors from complaining about space-tab. 11975as_nl=' 11976' 11977export as_nl 11978IFS=" "" $as_nl" 11979 11980PS1='$ ' 11981PS2='> ' 11982PS4='+ ' 11983 11984# Ensure predictable behavior from utilities with locale-dependent output. 11985LC_ALL=C 11986export LC_ALL 11987LANGUAGE=C 11988export LANGUAGE 11989 11990# We cannot yet rely on "unset" to work, but we need these variables 11991# to be unset--not just set to an empty or harmless value--now, to 11992# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11993# also avoids known problems related to "unset" and subshell syntax 11994# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11995for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11996do eval test \${$as_var+y} \ 11997 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11998done 11999 12000# Ensure that fds 0, 1, and 2 are open. 12001if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12002if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12003if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12004 12005# The user is always right. 12006if ${PATH_SEPARATOR+false} :; then 12007 PATH_SEPARATOR=: 12008 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12009 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12010 PATH_SEPARATOR=';' 12011 } 12012fi 12013 12014 12015# Find who we are. Look in the path if we contain no directory separator. 12016as_myself= 12017case $0 in #(( 12018 *[\\/]* ) as_myself=$0 ;; 12019 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12020for as_dir in $PATH 12021do 12022 IFS=$as_save_IFS 12023 case $as_dir in #((( 12024 '') as_dir=./ ;; 12025 */) ;; 12026 *) as_dir=$as_dir/ ;; 12027 esac 12028 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12029 done 12030IFS=$as_save_IFS 12031 12032 ;; 12033esac 12034# We did not find ourselves, most probably we were run as 'sh COMMAND' 12035# in which case we are not to be found in the path. 12036if test "x$as_myself" = x; then 12037 as_myself=$0 12038fi 12039if test ! -f "$as_myself"; then 12040 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12041 exit 1 12042fi 12043 12044 12045 12046# as_fn_error STATUS ERROR [LINENO LOG_FD] 12047# ---------------------------------------- 12048# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12049# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12050# script with STATUS, using 1 if that was 0. 12051as_fn_error () 12052{ 12053 as_status=$1; test $as_status -eq 0 && as_status=1 12054 if test "$4"; then 12055 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12057 fi 12058 printf "%s\n" "$as_me: error: $2" >&2 12059 as_fn_exit $as_status 12060} # as_fn_error 12061 12062 12063# as_fn_set_status STATUS 12064# ----------------------- 12065# Set $? to STATUS, without forking. 12066as_fn_set_status () 12067{ 12068 return $1 12069} # as_fn_set_status 12070 12071# as_fn_exit STATUS 12072# ----------------- 12073# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12074as_fn_exit () 12075{ 12076 set +e 12077 as_fn_set_status $1 12078 exit $1 12079} # as_fn_exit 12080 12081# as_fn_unset VAR 12082# --------------- 12083# Portably unset VAR. 12084as_fn_unset () 12085{ 12086 { eval $1=; unset $1;} 12087} 12088as_unset=as_fn_unset 12089 12090# as_fn_append VAR VALUE 12091# ---------------------- 12092# Append the text in VALUE to the end of the definition contained in VAR. Take 12093# advantage of any shell optimizations that allow amortized linear growth over 12094# repeated appends, instead of the typical quadratic growth present in naive 12095# implementations. 12096if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12097then : 12098 eval 'as_fn_append () 12099 { 12100 eval $1+=\$2 12101 }' 12102else case e in #( 12103 e) as_fn_append () 12104 { 12105 eval $1=\$$1\$2 12106 } ;; 12107esac 12108fi # as_fn_append 12109 12110# as_fn_arith ARG... 12111# ------------------ 12112# Perform arithmetic evaluation on the ARGs, and store the result in the 12113# global $as_val. Take advantage of shells that can avoid forks. The arguments 12114# must be portable across $(()) and expr. 12115if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12116then : 12117 eval 'as_fn_arith () 12118 { 12119 as_val=$(( $* )) 12120 }' 12121else case e in #( 12122 e) as_fn_arith () 12123 { 12124 as_val=`expr "$@" || test $? -eq 1` 12125 } ;; 12126esac 12127fi # as_fn_arith 12128 12129 12130if expr a : '\(a\)' >/dev/null 2>&1 && 12131 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12132 as_expr=expr 12133else 12134 as_expr=false 12135fi 12136 12137if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12138 as_basename=basename 12139else 12140 as_basename=false 12141fi 12142 12143if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12144 as_dirname=dirname 12145else 12146 as_dirname=false 12147fi 12148 12149as_me=`$as_basename -- "$0" || 12150$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12151 X"$0" : 'X\(//\)$' \| \ 12152 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12153printf "%s\n" X/"$0" | 12154 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12155 s//\1/ 12156 q 12157 } 12158 /^X\/\(\/\/\)$/{ 12159 s//\1/ 12160 q 12161 } 12162 /^X\/\(\/\).*/{ 12163 s//\1/ 12164 q 12165 } 12166 s/.*/./; q'` 12167 12168# Avoid depending upon Character Ranges. 12169as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12170as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12171as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12172as_cr_digits='0123456789' 12173as_cr_alnum=$as_cr_Letters$as_cr_digits 12174 12175 12176# Determine whether it's possible to make 'echo' print without a newline. 12177# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12178# for compatibility with existing Makefiles. 12179ECHO_C= ECHO_N= ECHO_T= 12180case `echo -n x` in #((((( 12181-n*) 12182 case `echo 'xy\c'` in 12183 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12184 xy) ECHO_C='\c';; 12185 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12186 ECHO_T=' ';; 12187 esac;; 12188*) 12189 ECHO_N='-n';; 12190esac 12191 12192# For backward compatibility with old third-party macros, we provide 12193# the shell variables $as_echo and $as_echo_n. New code should use 12194# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12195as_echo='printf %s\n' 12196as_echo_n='printf %s' 12197 12198rm -f conf$$ conf$$.exe conf$$.file 12199if test -d conf$$.dir; then 12200 rm -f conf$$.dir/conf$$.file 12201else 12202 rm -f conf$$.dir 12203 mkdir conf$$.dir 2>/dev/null 12204fi 12205if (echo >conf$$.file) 2>/dev/null; then 12206 if ln -s conf$$.file conf$$ 2>/dev/null; then 12207 as_ln_s='ln -s' 12208 # ... but there are two gotchas: 12209 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12210 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12211 # In both cases, we have to default to 'cp -pR'. 12212 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12213 as_ln_s='cp -pR' 12214 elif ln conf$$.file conf$$ 2>/dev/null; then 12215 as_ln_s=ln 12216 else 12217 as_ln_s='cp -pR' 12218 fi 12219else 12220 as_ln_s='cp -pR' 12221fi 12222rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12223rmdir conf$$.dir 2>/dev/null 12224 12225 12226# as_fn_mkdir_p 12227# ------------- 12228# Create "$as_dir" as a directory, including parents if necessary. 12229as_fn_mkdir_p () 12230{ 12231 12232 case $as_dir in #( 12233 -*) as_dir=./$as_dir;; 12234 esac 12235 test -d "$as_dir" || eval $as_mkdir_p || { 12236 as_dirs= 12237 while :; do 12238 case $as_dir in #( 12239 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12240 *) as_qdir=$as_dir;; 12241 esac 12242 as_dirs="'$as_qdir' $as_dirs" 12243 as_dir=`$as_dirname -- "$as_dir" || 12244$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12245 X"$as_dir" : 'X\(//\)[^/]' \| \ 12246 X"$as_dir" : 'X\(//\)$' \| \ 12247 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12248printf "%s\n" X"$as_dir" | 12249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12250 s//\1/ 12251 q 12252 } 12253 /^X\(\/\/\)[^/].*/{ 12254 s//\1/ 12255 q 12256 } 12257 /^X\(\/\/\)$/{ 12258 s//\1/ 12259 q 12260 } 12261 /^X\(\/\).*/{ 12262 s//\1/ 12263 q 12264 } 12265 s/.*/./; q'` 12266 test -d "$as_dir" && break 12267 done 12268 test -z "$as_dirs" || eval "mkdir $as_dirs" 12269 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12270 12271 12272} # as_fn_mkdir_p 12273if mkdir -p . 2>/dev/null; then 12274 as_mkdir_p='mkdir -p "$as_dir"' 12275else 12276 test -d ./-p && rmdir ./-p 12277 as_mkdir_p=false 12278fi 12279 12280 12281# as_fn_executable_p FILE 12282# ----------------------- 12283# Test if FILE is an executable regular file. 12284as_fn_executable_p () 12285{ 12286 test -f "$1" && test -x "$1" 12287} # as_fn_executable_p 12288as_test_x='test -x' 12289as_executable_p=as_fn_executable_p 12290 12291# Sed expression to map a string onto a valid CPP name. 12292as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12293as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12294 12295# Sed expression to map a string onto a valid variable name. 12296as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12297as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12298 12299 12300exec 6>&1 12301## ----------------------------------- ## 12302## Main body of $CONFIG_STATUS script. ## 12303## ----------------------------------- ## 12304_ASEOF 12305test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12306 12307cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12308# Save the log message, to keep $0 and so on meaningful, and to 12309# report actual input values of CONFIG_FILES etc. instead of their 12310# values after options handling. 12311ac_log=" 12312This file was extended by xmag $as_me 1.0.8, which was 12313generated by GNU Autoconf 2.72. Invocation command line was 12314 12315 CONFIG_FILES = $CONFIG_FILES 12316 CONFIG_HEADERS = $CONFIG_HEADERS 12317 CONFIG_LINKS = $CONFIG_LINKS 12318 CONFIG_COMMANDS = $CONFIG_COMMANDS 12319 $ $0 $@ 12320 12321on `(hostname || uname -n) 2>/dev/null | sed 1q` 12322" 12323 12324_ACEOF 12325 12326case $ac_config_files in *" 12327"*) set x $ac_config_files; shift; ac_config_files=$*;; 12328esac 12329 12330case $ac_config_headers in *" 12331"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12332esac 12333 12334 12335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12336# Files that config.status was made for. 12337config_files="$ac_config_files" 12338config_headers="$ac_config_headers" 12339config_commands="$ac_config_commands" 12340 12341_ACEOF 12342 12343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12344ac_cs_usage="\ 12345'$as_me' instantiates files and other configuration actions 12346from templates according to the current configuration. Unless the files 12347and actions are specified as TAGs, all are instantiated by default. 12348 12349Usage: $0 [OPTION]... [TAG]... 12350 12351 -h, --help print this help, then exit 12352 -V, --version print version number and configuration settings, then exit 12353 --config print configuration, then exit 12354 -q, --quiet, --silent 12355 do not print progress messages 12356 -d, --debug don't remove temporary files 12357 --recheck update $as_me by reconfiguring in the same conditions 12358 --file=FILE[:TEMPLATE] 12359 instantiate the configuration file FILE 12360 --header=FILE[:TEMPLATE] 12361 instantiate the configuration header FILE 12362 12363Configuration files: 12364$config_files 12365 12366Configuration headers: 12367$config_headers 12368 12369Configuration commands: 12370$config_commands 12371 12372Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmag/-/issues>." 12373 12374_ACEOF 12375ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12376ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12377cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12378ac_cs_config='$ac_cs_config_escaped' 12379ac_cs_version="\\ 12380xmag config.status 1.0.8 12381configured by $0, generated by GNU Autoconf 2.72, 12382 with options \\"\$ac_cs_config\\" 12383 12384Copyright (C) 2023 Free Software Foundation, Inc. 12385This config.status script is free software; the Free Software Foundation 12386gives unlimited permission to copy, distribute and modify it." 12387 12388ac_pwd='$ac_pwd' 12389srcdir='$srcdir' 12390INSTALL='$INSTALL' 12391MKDIR_P='$MKDIR_P' 12392AWK='$AWK' 12393test -n "\$AWK" || AWK=awk 12394_ACEOF 12395 12396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12397# The default lists apply if the user does not specify any file. 12398ac_need_defaults=: 12399while test $# != 0 12400do 12401 case $1 in 12402 --*=?*) 12403 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12404 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12405 ac_shift=: 12406 ;; 12407 --*=) 12408 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12409 ac_optarg= 12410 ac_shift=: 12411 ;; 12412 *) 12413 ac_option=$1 12414 ac_optarg=$2 12415 ac_shift=shift 12416 ;; 12417 esac 12418 12419 case $ac_option in 12420 # Handling of the options. 12421 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12422 ac_cs_recheck=: ;; 12423 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12424 printf "%s\n" "$ac_cs_version"; exit ;; 12425 --config | --confi | --conf | --con | --co | --c ) 12426 printf "%s\n" "$ac_cs_config"; exit ;; 12427 --debug | --debu | --deb | --de | --d | -d ) 12428 debug=: ;; 12429 --file | --fil | --fi | --f ) 12430 $ac_shift 12431 case $ac_optarg in 12432 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12433 '') as_fn_error $? "missing file argument" ;; 12434 esac 12435 as_fn_append CONFIG_FILES " '$ac_optarg'" 12436 ac_need_defaults=false;; 12437 --header | --heade | --head | --hea ) 12438 $ac_shift 12439 case $ac_optarg in 12440 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12441 esac 12442 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12443 ac_need_defaults=false;; 12444 --he | --h) 12445 # Conflict between --help and --header 12446 as_fn_error $? "ambiguous option: '$1' 12447Try '$0 --help' for more information.";; 12448 --help | --hel | -h ) 12449 printf "%s\n" "$ac_cs_usage"; exit ;; 12450 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12451 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12452 ac_cs_silent=: ;; 12453 12454 # This is an error. 12455 -*) as_fn_error $? "unrecognized option: '$1' 12456Try '$0 --help' for more information." ;; 12457 12458 *) as_fn_append ac_config_targets " $1" 12459 ac_need_defaults=false ;; 12460 12461 esac 12462 shift 12463done 12464 12465ac_configure_extra_args= 12466 12467if $ac_cs_silent; then 12468 exec 6>/dev/null 12469 ac_configure_extra_args="$ac_configure_extra_args --silent" 12470fi 12471 12472_ACEOF 12473cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12474if \$ac_cs_recheck; then 12475 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12476 shift 12477 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12478 CONFIG_SHELL='$SHELL' 12479 export CONFIG_SHELL 12480 exec "\$@" 12481fi 12482 12483_ACEOF 12484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12485exec 5>>config.log 12486{ 12487 echo 12488 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12489## Running $as_me. ## 12490_ASBOX 12491 printf "%s\n" "$ac_log" 12492} >&5 12493 12494_ACEOF 12495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12496# 12497# INIT-COMMANDS 12498# 12499AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12500 12501_ACEOF 12502 12503cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12504 12505# Handling of arguments. 12506for ac_config_target in $ac_config_targets 12507do 12508 case $ac_config_target in 12509 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12510 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12511 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12512 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12513 12514 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12515 esac 12516done 12517 12518 12519# If the user did not use the arguments to specify the items to instantiate, 12520# then the envvar interface is used. Set only those that are not. 12521# We use the long form for the default assignment because of an extremely 12522# bizarre bug on SunOS 4.1.3. 12523if $ac_need_defaults; then 12524 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12525 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12526 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12527fi 12528 12529# Have a temporary directory for convenience. Make it in the build tree 12530# simply because there is no reason against having it here, and in addition, 12531# creating and moving files from /tmp can sometimes cause problems. 12532# Hook for its removal unless debugging. 12533# Note that there is a small window in which the directory will not be cleaned: 12534# after its creation but before its name has been assigned to '$tmp'. 12535$debug || 12536{ 12537 tmp= ac_tmp= 12538 trap 'exit_status=$? 12539 : "${ac_tmp:=$tmp}" 12540 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12541' 0 12542 trap 'as_fn_exit 1' 1 2 13 15 12543} 12544# Create a (secure) tmp directory for tmp files. 12545 12546{ 12547 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12548 test -d "$tmp" 12549} || 12550{ 12551 tmp=./conf$$-$RANDOM 12552 (umask 077 && mkdir "$tmp") 12553} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12554ac_tmp=$tmp 12555 12556# Set up the scripts for CONFIG_FILES section. 12557# No need to generate them if there are no CONFIG_FILES. 12558# This happens for instance with './config.status config.h'. 12559if test -n "$CONFIG_FILES"; then 12560 12561 12562ac_cr=`echo X | tr X '\015'` 12563# On cygwin, bash can eat \r inside `` if the user requested igncr. 12564# But we know of no other shell where ac_cr would be empty at this 12565# point, so we can use a bashism as a fallback. 12566if test "x$ac_cr" = x; then 12567 eval ac_cr=\$\'\\r\' 12568fi 12569ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12570if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12571 ac_cs_awk_cr='\\r' 12572else 12573 ac_cs_awk_cr=$ac_cr 12574fi 12575 12576echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12577_ACEOF 12578 12579 12580{ 12581 echo "cat >conf$$subs.awk <<_ACEOF" && 12582 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12583 echo "_ACEOF" 12584} >conf$$subs.sh || 12585 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12586ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12587ac_delim='%!_!# ' 12588for ac_last_try in false false false false false :; do 12589 . ./conf$$subs.sh || 12590 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12591 12592 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12593 if test $ac_delim_n = $ac_delim_num; then 12594 break 12595 elif $ac_last_try; then 12596 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12597 else 12598 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12599 fi 12600done 12601rm -f conf$$subs.sh 12602 12603cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12604cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12605_ACEOF 12606sed -n ' 12607h 12608s/^/S["/; s/!.*/"]=/ 12609p 12610g 12611s/^[^!]*!// 12612:repl 12613t repl 12614s/'"$ac_delim"'$// 12615t delim 12616:nl 12617h 12618s/\(.\{148\}\)..*/\1/ 12619t more1 12620s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12621p 12622n 12623b repl 12624:more1 12625s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12626p 12627g 12628s/.\{148\}// 12629t nl 12630:delim 12631h 12632s/\(.\{148\}\)..*/\1/ 12633t more2 12634s/["\\]/\\&/g; s/^/"/; s/$/"/ 12635p 12636b 12637:more2 12638s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12639p 12640g 12641s/.\{148\}// 12642t delim 12643' <conf$$subs.awk | sed ' 12644/^[^""]/{ 12645 N 12646 s/\n// 12647} 12648' >>$CONFIG_STATUS || ac_write_fail=1 12649rm -f conf$$subs.awk 12650cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12651_ACAWK 12652cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12653 for (key in S) S_is_set[key] = 1 12654 FS = "" 12655 12656} 12657{ 12658 line = $ 0 12659 nfields = split(line, field, "@") 12660 substed = 0 12661 len = length(field[1]) 12662 for (i = 2; i < nfields; i++) { 12663 key = field[i] 12664 keylen = length(key) 12665 if (S_is_set[key]) { 12666 value = S[key] 12667 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12668 len += length(value) + length(field[++i]) 12669 substed = 1 12670 } else 12671 len += 1 + keylen 12672 } 12673 12674 print line 12675} 12676 12677_ACAWK 12678_ACEOF 12679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12680if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12681 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12682else 12683 cat 12684fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12685 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12686_ACEOF 12687 12688# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12689# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12690# trailing colons and then remove the whole line if VPATH becomes empty 12691# (actually we leave an empty line to preserve line numbers). 12692if test "x$srcdir" = x.; then 12693 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12694h 12695s/// 12696s/^/:/ 12697s/[ ]*$/:/ 12698s/:\$(srcdir):/:/g 12699s/:\${srcdir}:/:/g 12700s/:@srcdir@:/:/g 12701s/^:*// 12702s/:*$// 12703x 12704s/\(=[ ]*\).*/\1/ 12705G 12706s/\n// 12707s/^[^=]*=[ ]*$// 12708}' 12709fi 12710 12711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12712fi # test -n "$CONFIG_FILES" 12713 12714# Set up the scripts for CONFIG_HEADERS section. 12715# No need to generate them if there are no CONFIG_HEADERS. 12716# This happens for instance with './config.status Makefile'. 12717if test -n "$CONFIG_HEADERS"; then 12718cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12719BEGIN { 12720_ACEOF 12721 12722# Transform confdefs.h into an awk script 'defines.awk', embedded as 12723# here-document in config.status, that substitutes the proper values into 12724# config.h.in to produce config.h. 12725 12726# Create a delimiter string that does not exist in confdefs.h, to ease 12727# handling of long lines. 12728ac_delim='%!_!# ' 12729for ac_last_try in false false :; do 12730 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12731 if test -z "$ac_tt"; then 12732 break 12733 elif $ac_last_try; then 12734 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12735 else 12736 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12737 fi 12738done 12739 12740# For the awk script, D is an array of macro values keyed by name, 12741# likewise P contains macro parameters if any. Preserve backslash 12742# newline sequences. 12743 12744ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12745sed -n ' 12746s/.\{148\}/&'"$ac_delim"'/g 12747t rset 12748:rset 12749s/^[ ]*#[ ]*define[ ][ ]*/ / 12750t def 12751d 12752:def 12753s/\\$// 12754t bsnl 12755s/["\\]/\\&/g 12756s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12757D["\1"]=" \3"/p 12758s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12759d 12760:bsnl 12761s/["\\]/\\&/g 12762s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12763D["\1"]=" \3\\\\\\n"\\/p 12764t cont 12765s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12766t cont 12767d 12768:cont 12769n 12770s/.\{148\}/&'"$ac_delim"'/g 12771t clear 12772:clear 12773s/\\$// 12774t bsnlc 12775s/["\\]/\\&/g; s/^/"/; s/$/"/p 12776d 12777:bsnlc 12778s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12779b cont 12780' <confdefs.h | sed ' 12781s/'"$ac_delim"'/"\\\ 12782"/g' >>$CONFIG_STATUS || ac_write_fail=1 12783 12784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12785 for (key in D) D_is_set[key] = 1 12786 FS = "" 12787} 12788/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12789 line = \$ 0 12790 split(line, arg, " ") 12791 if (arg[1] == "#") { 12792 defundef = arg[2] 12793 mac1 = arg[3] 12794 } else { 12795 defundef = substr(arg[1], 2) 12796 mac1 = arg[2] 12797 } 12798 split(mac1, mac2, "(") #) 12799 macro = mac2[1] 12800 prefix = substr(line, 1, index(line, defundef) - 1) 12801 if (D_is_set[macro]) { 12802 # Preserve the white space surrounding the "#". 12803 print prefix "define", macro P[macro] D[macro] 12804 next 12805 } else { 12806 # Replace #undef with comments. This is necessary, for example, 12807 # in the case of _POSIX_SOURCE, which is predefined and required 12808 # on some systems where configure will not decide to define it. 12809 if (defundef == "undef") { 12810 print "/*", prefix defundef, macro, "*/" 12811 next 12812 } 12813 } 12814} 12815{ print } 12816_ACAWK 12817_ACEOF 12818cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12819 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12820fi # test -n "$CONFIG_HEADERS" 12821 12822 12823eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12824shift 12825for ac_tag 12826do 12827 case $ac_tag in 12828 :[FHLC]) ac_mode=$ac_tag; continue;; 12829 esac 12830 case $ac_mode$ac_tag in 12831 :[FHL]*:*);; 12832 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 12833 :[FH]-) ac_tag=-:-;; 12834 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12835 esac 12836 ac_save_IFS=$IFS 12837 IFS=: 12838 set x $ac_tag 12839 IFS=$ac_save_IFS 12840 shift 12841 ac_file=$1 12842 shift 12843 12844 case $ac_mode in 12845 :L) ac_source=$1;; 12846 :[FH]) 12847 ac_file_inputs= 12848 for ac_f 12849 do 12850 case $ac_f in 12851 -) ac_f="$ac_tmp/stdin";; 12852 *) # Look for the file first in the build tree, then in the source tree 12853 # (if the path is not absolute). The absolute path cannot be DOS-style, 12854 # because $ac_f cannot contain ':'. 12855 test -f "$ac_f" || 12856 case $ac_f in 12857 [\\/$]*) false;; 12858 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12859 esac || 12860 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 12861 esac 12862 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12863 as_fn_append ac_file_inputs " '$ac_f'" 12864 done 12865 12866 # Let's still pretend it is 'configure' which instantiates (i.e., don't 12867 # use $as_me), people would be surprised to read: 12868 # /* config.h. Generated by config.status. */ 12869 configure_input='Generated from '` 12870 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12871 `' by configure.' 12872 if test x"$ac_file" != x-; then 12873 configure_input="$ac_file. $configure_input" 12874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12875printf "%s\n" "$as_me: creating $ac_file" >&6;} 12876 fi 12877 # Neutralize special characters interpreted by sed in replacement strings. 12878 case $configure_input in #( 12879 *\&* | *\|* | *\\* ) 12880 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12881 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12882 *) ac_sed_conf_input=$configure_input;; 12883 esac 12884 12885 case $ac_tag in 12886 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12887 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12888 esac 12889 ;; 12890 esac 12891 12892 ac_dir=`$as_dirname -- "$ac_file" || 12893$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12894 X"$ac_file" : 'X\(//\)[^/]' \| \ 12895 X"$ac_file" : 'X\(//\)$' \| \ 12896 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12897printf "%s\n" X"$ac_file" | 12898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12899 s//\1/ 12900 q 12901 } 12902 /^X\(\/\/\)[^/].*/{ 12903 s//\1/ 12904 q 12905 } 12906 /^X\(\/\/\)$/{ 12907 s//\1/ 12908 q 12909 } 12910 /^X\(\/\).*/{ 12911 s//\1/ 12912 q 12913 } 12914 s/.*/./; q'` 12915 as_dir="$ac_dir"; as_fn_mkdir_p 12916 ac_builddir=. 12917 12918case "$ac_dir" in 12919.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12920*) 12921 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12922 # A ".." for each directory in $ac_dir_suffix. 12923 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12924 case $ac_top_builddir_sub in 12925 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12926 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12927 esac ;; 12928esac 12929ac_abs_top_builddir=$ac_pwd 12930ac_abs_builddir=$ac_pwd$ac_dir_suffix 12931# for backward compatibility: 12932ac_top_builddir=$ac_top_build_prefix 12933 12934case $srcdir in 12935 .) # We are building in place. 12936 ac_srcdir=. 12937 ac_top_srcdir=$ac_top_builddir_sub 12938 ac_abs_top_srcdir=$ac_pwd ;; 12939 [\\/]* | ?:[\\/]* ) # Absolute name. 12940 ac_srcdir=$srcdir$ac_dir_suffix; 12941 ac_top_srcdir=$srcdir 12942 ac_abs_top_srcdir=$srcdir ;; 12943 *) # Relative name. 12944 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12945 ac_top_srcdir=$ac_top_build_prefix$srcdir 12946 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12947esac 12948ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12949 12950 12951 case $ac_mode in 12952 :F) 12953 # 12954 # CONFIG_FILE 12955 # 12956 12957 case $INSTALL in 12958 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12959 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12960 esac 12961 ac_MKDIR_P=$MKDIR_P 12962 case $MKDIR_P in 12963 [\\/$]* | ?:[\\/]* ) ;; 12964 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12965 esac 12966_ACEOF 12967 12968cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12969# If the template does not know about datarootdir, expand it. 12970# FIXME: This hack should be removed a few years after 2.60. 12971ac_datarootdir_hack=; ac_datarootdir_seen= 12972ac_sed_dataroot=' 12973/datarootdir/ { 12974 p 12975 q 12976} 12977/@datadir@/p 12978/@docdir@/p 12979/@infodir@/p 12980/@localedir@/p 12981/@mandir@/p' 12982case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12983*datarootdir*) ac_datarootdir_seen=yes;; 12984*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12986printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12987_ACEOF 12988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12989 ac_datarootdir_hack=' 12990 s&@datadir@&$datadir&g 12991 s&@docdir@&$docdir&g 12992 s&@infodir@&$infodir&g 12993 s&@localedir@&$localedir&g 12994 s&@mandir@&$mandir&g 12995 s&\\\${datarootdir}&$datarootdir&g' ;; 12996esac 12997_ACEOF 12998 12999# Neutralize VPATH when '$srcdir' = '.'. 13000# Shell code in configure.ac might set extrasub. 13001# FIXME: do we really want to maintain this feature? 13002cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13003ac_sed_extra="$ac_vpsub 13004$extrasub 13005_ACEOF 13006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13007:t 13008/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13009s|@configure_input@|$ac_sed_conf_input|;t t 13010s&@top_builddir@&$ac_top_builddir_sub&;t t 13011s&@top_build_prefix@&$ac_top_build_prefix&;t t 13012s&@srcdir@&$ac_srcdir&;t t 13013s&@abs_srcdir@&$ac_abs_srcdir&;t t 13014s&@top_srcdir@&$ac_top_srcdir&;t t 13015s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13016s&@builddir@&$ac_builddir&;t t 13017s&@abs_builddir@&$ac_abs_builddir&;t t 13018s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13019s&@INSTALL@&$ac_INSTALL&;t t 13020s&@MKDIR_P@&$ac_MKDIR_P&;t t 13021$ac_datarootdir_hack 13022" 13023eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13024 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13025 13026test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13027 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13028 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13029 "$ac_tmp/out"`; test -z "$ac_out"; } && 13030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13031which seems to be undefined. Please make sure it is defined" >&5 13032printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13033which seems to be undefined. Please make sure it is defined" >&2;} 13034 13035 rm -f "$ac_tmp/stdin" 13036 case $ac_file in 13037 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13038 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13039 esac \ 13040 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13041 ;; 13042 :H) 13043 # 13044 # CONFIG_HEADER 13045 # 13046 if test x"$ac_file" != x-; then 13047 { 13048 printf "%s\n" "/* $configure_input */" >&1 \ 13049 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13050 } >"$ac_tmp/config.h" \ 13051 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13052 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13054printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13055 else 13056 rm -f "$ac_file" 13057 mv "$ac_tmp/config.h" "$ac_file" \ 13058 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13059 fi 13060 else 13061 printf "%s\n" "/* $configure_input */" >&1 \ 13062 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13063 || as_fn_error $? "could not create -" "$LINENO" 5 13064 fi 13065# Compute "$ac_file"'s index in $config_headers. 13066_am_arg="$ac_file" 13067_am_stamp_count=1 13068for _am_header in $config_headers :; do 13069 case $_am_header in 13070 $_am_arg | $_am_arg:* ) 13071 break ;; 13072 * ) 13073 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13074 esac 13075done 13076echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13077$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13078 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13079 X"$_am_arg" : 'X\(//\)$' \| \ 13080 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13081printf "%s\n" X"$_am_arg" | 13082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13083 s//\1/ 13084 q 13085 } 13086 /^X\(\/\/\)[^/].*/{ 13087 s//\1/ 13088 q 13089 } 13090 /^X\(\/\/\)$/{ 13091 s//\1/ 13092 q 13093 } 13094 /^X\(\/\).*/{ 13095 s//\1/ 13096 q 13097 } 13098 s/.*/./; q'`/stamp-h$_am_stamp_count 13099 ;; 13100 13101 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13102printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13103 ;; 13104 esac 13105 13106 13107 case $ac_file$ac_mode in 13108 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13109 # Older Autoconf quotes --file arguments for eval, but not when files 13110 # are listed without --file. Let's play safe and only enable the eval 13111 # if we detect the quoting. 13112 # TODO: see whether this extra hack can be removed once we start 13113 # requiring Autoconf 2.70 or later. 13114 case $CONFIG_FILES in #( 13115 *\'*) : 13116 eval set x "$CONFIG_FILES" ;; #( 13117 *) : 13118 set x $CONFIG_FILES ;; #( 13119 *) : 13120 ;; 13121esac 13122 shift 13123 # Used to flag and report bootstrapping failures. 13124 am_rc=0 13125 for am_mf 13126 do 13127 # Strip MF so we end up with the name of the file. 13128 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13129 # Check whether this is an Automake generated Makefile which includes 13130 # dependency-tracking related rules and includes. 13131 # Grep'ing the whole file directly is not great: AIX grep has a line 13132 # limit of 2048, but all sed's we know have understand at least 4000. 13133 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13134 || continue 13135 am_dirpart=`$as_dirname -- "$am_mf" || 13136$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13137 X"$am_mf" : 'X\(//\)[^/]' \| \ 13138 X"$am_mf" : 'X\(//\)$' \| \ 13139 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13140printf "%s\n" X"$am_mf" | 13141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13142 s//\1/ 13143 q 13144 } 13145 /^X\(\/\/\)[^/].*/{ 13146 s//\1/ 13147 q 13148 } 13149 /^X\(\/\/\)$/{ 13150 s//\1/ 13151 q 13152 } 13153 /^X\(\/\).*/{ 13154 s//\1/ 13155 q 13156 } 13157 s/.*/./; q'` 13158 am_filepart=`$as_basename -- "$am_mf" || 13159$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13160 X"$am_mf" : 'X\(//\)$' \| \ 13161 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13162printf "%s\n" X/"$am_mf" | 13163 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13164 s//\1/ 13165 q 13166 } 13167 /^X\/\(\/\/\)$/{ 13168 s//\1/ 13169 q 13170 } 13171 /^X\/\(\/\).*/{ 13172 s//\1/ 13173 q 13174 } 13175 s/.*/./; q'` 13176 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13177 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13178 | $MAKE -f - am--depfiles" >&5 13179 (cd "$am_dirpart" \ 13180 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13181 | $MAKE -f - am--depfiles) >&5 2>&5 13182 ac_status=$? 13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13184 (exit $ac_status); } || am_rc=$? 13185 done 13186 if test $am_rc -ne 0; then 13187 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13188printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13189as_fn_error $? "Something went wrong bootstrapping makefile fragments 13190 for automatic dependency tracking. If GNU make was not used, consider 13191 re-running the configure script with MAKE=\"gmake\" (or whatever is 13192 necessary). You can also try re-running configure with the 13193 '--disable-dependency-tracking' option to at least be able to build 13194 the package (albeit without support for automatic dependency tracking). 13195See 'config.log' for more details" "$LINENO" 5; } 13196 fi 13197 { am_dirpart=; unset am_dirpart;} 13198 { am_filepart=; unset am_filepart;} 13199 { am_mf=; unset am_mf;} 13200 { am_rc=; unset am_rc;} 13201 rm -f conftest-deps.mk 13202} 13203 ;; 13204 13205 esac 13206done # for ac_tag 13207 13208 13209as_fn_exit 0 13210_ACEOF 13211ac_clean_files=$ac_clean_files_save 13212 13213test $ac_write_fail = 0 || 13214 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13215 13216 13217# configure is writing to config.log, and then calls config.status. 13218# config.status does its own redirection, appending to config.log. 13219# Unfortunately, on DOS this fails, as config.log is still kept open 13220# by configure, so config.status won't be able to write to it; its 13221# output is simply discarded. So we exec the FD to /dev/null, 13222# effectively closing config.log, so it can be properly (re)opened and 13223# appended to by config.status. When coming back to configure, we 13224# need to make the FD available again. 13225if test "$no_create" != yes; then 13226 ac_cs_success=: 13227 ac_config_status_args= 13228 test "$silent" = yes && 13229 ac_config_status_args="$ac_config_status_args --quiet" 13230 exec 5>/dev/null 13231 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13232 exec 5>>config.log 13233 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13234 # would make configure fail if this is the last instruction. 13235 $ac_cs_success || as_fn_exit 1 13236fi 13237if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13239printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13240fi 13241 13242 13243