configure revision 19d64aee
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xcalc 1.0.6. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 271$0: about your system, including any error possibly output 272$0: before this message. Then install a modern shell, or 273$0: manually run the script under such a shell if you do 274$0: have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315 316# as_fn_mkdir_p 317# ------------- 318# Create "$as_dir" as a directory, including parents if necessary. 319as_fn_mkdir_p () 320{ 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338$as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362} # as_fn_mkdir_p 363 364# as_fn_executable_p FILE 365# ----------------------- 366# Test if FILE is an executable regular file. 367as_fn_executable_p () 368{ 369 test -f "$1" && test -x "$1" 370} # as_fn_executable_p 371# as_fn_append VAR VALUE 372# ---------------------- 373# Append the text in VALUE to the end of the definition contained in VAR. Take 374# advantage of any shell optimizations that allow amortized linear growth over 375# repeated appends, instead of the typical quadratic growth present in naive 376# implementations. 377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387fi # as_fn_append 388 389# as_fn_arith ARG... 390# ------------------ 391# Perform arithmetic evaluation on the ARGs, and store the result in the 392# global $as_val. Take advantage of shells that can avoid forks. The arguments 393# must be portable across $(()) and expr. 394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404fi # as_fn_arith 405 406 407# as_fn_error STATUS ERROR [LINENO LOG_FD] 408# ---------------------------------------- 409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411# script with STATUS, using 1 if that was 0. 412as_fn_error () 413{ 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421} # as_fn_error 422 423if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426else 427 as_expr=false 428fi 429 430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432else 433 as_basename=false 434fi 435 436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438else 439 as_dirname=false 440fi 441 442as_me=`$as_basename -- "$0" || 443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446$as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461# Avoid depending upon Character Ranges. 462as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465as_cr_digits='0123456789' 466as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502} 503 504ECHO_C= ECHO_N= ECHO_T= 505case `echo -n x` in #((((( 506-n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513*) 514 ECHO_N='-n';; 515esac 516 517rm -f conf$$ conf$$.exe conf$$.file 518if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523fi 524if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538else 539 as_ln_s='cp -pR' 540fi 541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542rmdir conf$$.dir 2>/dev/null 543 544if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549fi 550 551as_test_x='test -x' 552as_executable_p=as_fn_executable_p 553 554# Sed expression to map a string onto a valid CPP name. 555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557# Sed expression to map a string onto a valid variable name. 558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560 561test -n "$DJDIR" || exec 7<&0 </dev/null 562exec 6>&1 563 564# Name of the host. 565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566# so uname gets run too. 567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569# 570# Initializations. 571# 572ac_default_prefix=/usr/local 573ac_clean_files= 574ac_config_libobj_dir=. 575LIBOBJS= 576cross_compiling=no 577subdirs= 578MFLAGS= 579MAKEFLAGS= 580 581# Identity of this package. 582PACKAGE_NAME='xcalc' 583PACKAGE_TARNAME='xcalc' 584PACKAGE_VERSION='1.0.6' 585PACKAGE_STRING='xcalc 1.0.6' 586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 587PACKAGE_URL='' 588 589ac_unique_file="Makefile.am" 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626ac_subst_vars='am__EXEEXT_FALSE 627am__EXEEXT_TRUE 628LTLIBOBJS 629LIBOBJS 630appdefaultdir 631APPDEFS_LIBS 632APPDEFS_CFLAGS 633XCALC_LIBS 634XCALC_CFLAGS 635MAN_SUBSTS 636XORG_MAN_PAGE 637ADMIN_MAN_DIR 638DRIVER_MAN_DIR 639MISC_MAN_DIR 640FILE_MAN_DIR 641LIB_MAN_DIR 642APP_MAN_DIR 643ADMIN_MAN_SUFFIX 644DRIVER_MAN_SUFFIX 645MISC_MAN_SUFFIX 646FILE_MAN_SUFFIX 647LIB_MAN_SUFFIX 648APP_MAN_SUFFIX 649SED 650host_os 651host_vendor 652host_cpu 653host 654build_os 655build_vendor 656build_cpu 657build 658INSTALL_CMD 659PKG_CONFIG 660CHANGELOG_CMD 661STRICT_CFLAGS 662CWARNFLAGS 663BASE_CFLAGS 664EGREP 665GREP 666CPP 667am__fastdepCC_FALSE 668am__fastdepCC_TRUE 669CCDEPMODE 670am__nodep 671AMDEPBACKSLASH 672AMDEP_FALSE 673AMDEP_TRUE 674am__quote 675am__include 676DEPDIR 677OBJEXT 678EXEEXT 679ac_ct_CC 680CPPFLAGS 681LDFLAGS 682CFLAGS 683CC 684AM_BACKSLASH 685AM_DEFAULT_VERBOSITY 686AM_DEFAULT_V 687AM_V 688am__untar 689am__tar 690AMTAR 691am__leading_dot 692SET_MAKE 693AWK 694mkdir_p 695MKDIR_P 696INSTALL_STRIP_PROGRAM 697STRIP 698install_sh 699MAKEINFO 700AUTOHEADER 701AUTOMAKE 702AUTOCONF 703ACLOCAL 704VERSION 705PACKAGE 706CYGPATH_W 707am__isrc 708INSTALL_DATA 709INSTALL_SCRIPT 710INSTALL_PROGRAM 711target_alias 712host_alias 713build_alias 714LIBS 715ECHO_T 716ECHO_N 717ECHO_C 718DEFS 719mandir 720localedir 721libdir 722psdir 723pdfdir 724dvidir 725htmldir 726infodir 727docdir 728oldincludedir 729includedir 730localstatedir 731sharedstatedir 732sysconfdir 733datadir 734datarootdir 735libexecdir 736sbindir 737bindir 738program_transform_name 739prefix 740exec_prefix 741PACKAGE_URL 742PACKAGE_BUGREPORT 743PACKAGE_STRING 744PACKAGE_VERSION 745PACKAGE_TARNAME 746PACKAGE_NAME 747PATH_SEPARATOR 748SHELL' 749ac_subst_files='' 750ac_user_opts=' 751enable_option_checking 752enable_silent_rules 753enable_dependency_tracking 754enable_selective_werror 755enable_strict_compilation 756with_appdefaultdir 757' 758 ac_precious_vars='build_alias 759host_alias 760target_alias 761CC 762CFLAGS 763LDFLAGS 764LIBS 765CPPFLAGS 766CPP 767PKG_CONFIG 768XCALC_CFLAGS 769XCALC_LIBS 770APPDEFS_CFLAGS 771APPDEFS_LIBS' 772 773 774# Initialize some variables set by options. 775ac_init_help= 776ac_init_version=false 777ac_unrecognized_opts= 778ac_unrecognized_sep= 779# The variables have the same names as the options, with 780# dashes changed to underlines. 781cache_file=/dev/null 782exec_prefix=NONE 783no_create= 784no_recursion= 785prefix=NONE 786program_prefix=NONE 787program_suffix=NONE 788program_transform_name=s,x,x, 789silent= 790site= 791srcdir= 792verbose= 793x_includes=NONE 794x_libraries=NONE 795 796# Installation directory options. 797# These are left unexpanded so users can "make install exec_prefix=/foo" 798# and all the variables that are supposed to be based on exec_prefix 799# by default will actually change. 800# Use braces instead of parens because sh, perl, etc. also accept them. 801# (The list follows the same order as the GNU Coding Standards.) 802bindir='${exec_prefix}/bin' 803sbindir='${exec_prefix}/sbin' 804libexecdir='${exec_prefix}/libexec' 805datarootdir='${prefix}/share' 806datadir='${datarootdir}' 807sysconfdir='${prefix}/etc' 808sharedstatedir='${prefix}/com' 809localstatedir='${prefix}/var' 810includedir='${prefix}/include' 811oldincludedir='/usr/include' 812docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 813infodir='${datarootdir}/info' 814htmldir='${docdir}' 815dvidir='${docdir}' 816pdfdir='${docdir}' 817psdir='${docdir}' 818libdir='${exec_prefix}/lib' 819localedir='${datarootdir}/locale' 820mandir='${datarootdir}/man' 821 822ac_prev= 823ac_dashdash= 824for ac_option 825do 826 # If the previous option needs an argument, assign it. 827 if test -n "$ac_prev"; then 828 eval $ac_prev=\$ac_option 829 ac_prev= 830 continue 831 fi 832 833 case $ac_option in 834 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 835 *=) ac_optarg= ;; 836 *) ac_optarg=yes ;; 837 esac 838 839 # Accept the important Cygnus configure options, so we can diagnose typos. 840 841 case $ac_dashdash$ac_option in 842 --) 843 ac_dashdash=yes ;; 844 845 -bindir | --bindir | --bindi | --bind | --bin | --bi) 846 ac_prev=bindir ;; 847 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 848 bindir=$ac_optarg ;; 849 850 -build | --build | --buil | --bui | --bu) 851 ac_prev=build_alias ;; 852 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 853 build_alias=$ac_optarg ;; 854 855 -cache-file | --cache-file | --cache-fil | --cache-fi \ 856 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 857 ac_prev=cache_file ;; 858 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 859 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 860 cache_file=$ac_optarg ;; 861 862 --config-cache | -C) 863 cache_file=config.cache ;; 864 865 -datadir | --datadir | --datadi | --datad) 866 ac_prev=datadir ;; 867 -datadir=* | --datadir=* | --datadi=* | --datad=*) 868 datadir=$ac_optarg ;; 869 870 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 871 | --dataroo | --dataro | --datar) 872 ac_prev=datarootdir ;; 873 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 874 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 875 datarootdir=$ac_optarg ;; 876 877 -disable-* | --disable-*) 878 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 879 # Reject names that are not valid shell variable names. 880 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 881 as_fn_error $? "invalid feature name: $ac_useropt" 882 ac_useropt_orig=$ac_useropt 883 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 884 case $ac_user_opts in 885 *" 886"enable_$ac_useropt" 887"*) ;; 888 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 889 ac_unrecognized_sep=', ';; 890 esac 891 eval enable_$ac_useropt=no ;; 892 893 -docdir | --docdir | --docdi | --doc | --do) 894 ac_prev=docdir ;; 895 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 896 docdir=$ac_optarg ;; 897 898 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 899 ac_prev=dvidir ;; 900 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 901 dvidir=$ac_optarg ;; 902 903 -enable-* | --enable-*) 904 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 905 # Reject names that are not valid shell variable names. 906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 907 as_fn_error $? "invalid feature name: $ac_useropt" 908 ac_useropt_orig=$ac_useropt 909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 910 case $ac_user_opts in 911 *" 912"enable_$ac_useropt" 913"*) ;; 914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 915 ac_unrecognized_sep=', ';; 916 esac 917 eval enable_$ac_useropt=\$ac_optarg ;; 918 919 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 920 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 921 | --exec | --exe | --ex) 922 ac_prev=exec_prefix ;; 923 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 924 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 925 | --exec=* | --exe=* | --ex=*) 926 exec_prefix=$ac_optarg ;; 927 928 -gas | --gas | --ga | --g) 929 # Obsolete; use --with-gas. 930 with_gas=yes ;; 931 932 -help | --help | --hel | --he | -h) 933 ac_init_help=long ;; 934 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 935 ac_init_help=recursive ;; 936 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 937 ac_init_help=short ;; 938 939 -host | --host | --hos | --ho) 940 ac_prev=host_alias ;; 941 -host=* | --host=* | --hos=* | --ho=*) 942 host_alias=$ac_optarg ;; 943 944 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 945 ac_prev=htmldir ;; 946 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 947 | --ht=*) 948 htmldir=$ac_optarg ;; 949 950 -includedir | --includedir | --includedi | --included | --include \ 951 | --includ | --inclu | --incl | --inc) 952 ac_prev=includedir ;; 953 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 954 | --includ=* | --inclu=* | --incl=* | --inc=*) 955 includedir=$ac_optarg ;; 956 957 -infodir | --infodir | --infodi | --infod | --info | --inf) 958 ac_prev=infodir ;; 959 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 960 infodir=$ac_optarg ;; 961 962 -libdir | --libdir | --libdi | --libd) 963 ac_prev=libdir ;; 964 -libdir=* | --libdir=* | --libdi=* | --libd=*) 965 libdir=$ac_optarg ;; 966 967 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 968 | --libexe | --libex | --libe) 969 ac_prev=libexecdir ;; 970 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 971 | --libexe=* | --libex=* | --libe=*) 972 libexecdir=$ac_optarg ;; 973 974 -localedir | --localedir | --localedi | --localed | --locale) 975 ac_prev=localedir ;; 976 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 977 localedir=$ac_optarg ;; 978 979 -localstatedir | --localstatedir | --localstatedi | --localstated \ 980 | --localstate | --localstat | --localsta | --localst | --locals) 981 ac_prev=localstatedir ;; 982 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 983 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 984 localstatedir=$ac_optarg ;; 985 986 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 987 ac_prev=mandir ;; 988 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 989 mandir=$ac_optarg ;; 990 991 -nfp | --nfp | --nf) 992 # Obsolete; use --without-fp. 993 with_fp=no ;; 994 995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 996 | --no-cr | --no-c | -n) 997 no_create=yes ;; 998 999 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1000 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1001 no_recursion=yes ;; 1002 1003 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1004 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1005 | --oldin | --oldi | --old | --ol | --o) 1006 ac_prev=oldincludedir ;; 1007 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1008 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1009 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1010 oldincludedir=$ac_optarg ;; 1011 1012 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1013 ac_prev=prefix ;; 1014 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1015 prefix=$ac_optarg ;; 1016 1017 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1018 | --program-pre | --program-pr | --program-p) 1019 ac_prev=program_prefix ;; 1020 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1021 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1022 program_prefix=$ac_optarg ;; 1023 1024 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1025 | --program-suf | --program-su | --program-s) 1026 ac_prev=program_suffix ;; 1027 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1028 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1029 program_suffix=$ac_optarg ;; 1030 1031 -program-transform-name | --program-transform-name \ 1032 | --program-transform-nam | --program-transform-na \ 1033 | --program-transform-n | --program-transform- \ 1034 | --program-transform | --program-transfor \ 1035 | --program-transfo | --program-transf \ 1036 | --program-trans | --program-tran \ 1037 | --progr-tra | --program-tr | --program-t) 1038 ac_prev=program_transform_name ;; 1039 -program-transform-name=* | --program-transform-name=* \ 1040 | --program-transform-nam=* | --program-transform-na=* \ 1041 | --program-transform-n=* | --program-transform-=* \ 1042 | --program-transform=* | --program-transfor=* \ 1043 | --program-transfo=* | --program-transf=* \ 1044 | --program-trans=* | --program-tran=* \ 1045 | --progr-tra=* | --program-tr=* | --program-t=*) 1046 program_transform_name=$ac_optarg ;; 1047 1048 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1049 ac_prev=pdfdir ;; 1050 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1051 pdfdir=$ac_optarg ;; 1052 1053 -psdir | --psdir | --psdi | --psd | --ps) 1054 ac_prev=psdir ;; 1055 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1056 psdir=$ac_optarg ;; 1057 1058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1059 | -silent | --silent | --silen | --sile | --sil) 1060 silent=yes ;; 1061 1062 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1063 ac_prev=sbindir ;; 1064 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1065 | --sbi=* | --sb=*) 1066 sbindir=$ac_optarg ;; 1067 1068 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1069 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1070 | --sharedst | --shareds | --shared | --share | --shar \ 1071 | --sha | --sh) 1072 ac_prev=sharedstatedir ;; 1073 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1074 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1075 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1076 | --sha=* | --sh=*) 1077 sharedstatedir=$ac_optarg ;; 1078 1079 -site | --site | --sit) 1080 ac_prev=site ;; 1081 -site=* | --site=* | --sit=*) 1082 site=$ac_optarg ;; 1083 1084 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1085 ac_prev=srcdir ;; 1086 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1087 srcdir=$ac_optarg ;; 1088 1089 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1090 | --syscon | --sysco | --sysc | --sys | --sy) 1091 ac_prev=sysconfdir ;; 1092 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1093 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1094 sysconfdir=$ac_optarg ;; 1095 1096 -target | --target | --targe | --targ | --tar | --ta | --t) 1097 ac_prev=target_alias ;; 1098 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1099 target_alias=$ac_optarg ;; 1100 1101 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1102 verbose=yes ;; 1103 1104 -version | --version | --versio | --versi | --vers | -V) 1105 ac_init_version=: ;; 1106 1107 -with-* | --with-*) 1108 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1109 # Reject names that are not valid shell variable names. 1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1111 as_fn_error $? "invalid package name: $ac_useropt" 1112 ac_useropt_orig=$ac_useropt 1113 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1114 case $ac_user_opts in 1115 *" 1116"with_$ac_useropt" 1117"*) ;; 1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1119 ac_unrecognized_sep=', ';; 1120 esac 1121 eval with_$ac_useropt=\$ac_optarg ;; 1122 1123 -without-* | --without-*) 1124 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1125 # Reject names that are not valid shell variable names. 1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1127 as_fn_error $? "invalid package name: $ac_useropt" 1128 ac_useropt_orig=$ac_useropt 1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1130 case $ac_user_opts in 1131 *" 1132"with_$ac_useropt" 1133"*) ;; 1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1135 ac_unrecognized_sep=', ';; 1136 esac 1137 eval with_$ac_useropt=no ;; 1138 1139 --x) 1140 # Obsolete; use --with-x. 1141 with_x=yes ;; 1142 1143 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1144 | --x-incl | --x-inc | --x-in | --x-i) 1145 ac_prev=x_includes ;; 1146 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1147 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1148 x_includes=$ac_optarg ;; 1149 1150 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1151 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1152 ac_prev=x_libraries ;; 1153 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1154 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1155 x_libraries=$ac_optarg ;; 1156 1157 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1158Try \`$0 --help' for more information" 1159 ;; 1160 1161 *=*) 1162 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1163 # Reject names that are not valid shell variable names. 1164 case $ac_envvar in #( 1165 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1166 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1167 esac 1168 eval $ac_envvar=\$ac_optarg 1169 export $ac_envvar ;; 1170 1171 *) 1172 # FIXME: should be removed in autoconf 3.0. 1173 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1174 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1175 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1176 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1177 ;; 1178 1179 esac 1180done 1181 1182if test -n "$ac_prev"; then 1183 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1184 as_fn_error $? "missing argument to $ac_option" 1185fi 1186 1187if test -n "$ac_unrecognized_opts"; then 1188 case $enable_option_checking in 1189 no) ;; 1190 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1191 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1192 esac 1193fi 1194 1195# Check all directory arguments for consistency. 1196for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1197 datadir sysconfdir sharedstatedir localstatedir includedir \ 1198 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1199 libdir localedir mandir 1200do 1201 eval ac_val=\$$ac_var 1202 # Remove trailing slashes. 1203 case $ac_val in 1204 */ ) 1205 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1206 eval $ac_var=\$ac_val;; 1207 esac 1208 # Be sure to have absolute directory names. 1209 case $ac_val in 1210 [\\/$]* | ?:[\\/]* ) continue;; 1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1212 esac 1213 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1214done 1215 1216# There might be people who depend on the old broken behavior: `$host' 1217# used to hold the argument of --host etc. 1218# FIXME: To remove some day. 1219build=$build_alias 1220host=$host_alias 1221target=$target_alias 1222 1223# FIXME: To remove some day. 1224if test "x$host_alias" != x; then 1225 if test "x$build_alias" = x; then 1226 cross_compiling=maybe 1227 elif test "x$build_alias" != "x$host_alias"; then 1228 cross_compiling=yes 1229 fi 1230fi 1231 1232ac_tool_prefix= 1233test -n "$host_alias" && ac_tool_prefix=$host_alias- 1234 1235test "$silent" = yes && exec 6>/dev/null 1236 1237 1238ac_pwd=`pwd` && test -n "$ac_pwd" && 1239ac_ls_di=`ls -di .` && 1240ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1241 as_fn_error $? "working directory cannot be determined" 1242test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1243 as_fn_error $? "pwd does not report name of working directory" 1244 1245 1246# Find the source files, if location was not specified. 1247if test -z "$srcdir"; then 1248 ac_srcdir_defaulted=yes 1249 # Try the directory containing this script, then the parent directory. 1250 ac_confdir=`$as_dirname -- "$as_myself" || 1251$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1252 X"$as_myself" : 'X\(//\)[^/]' \| \ 1253 X"$as_myself" : 'X\(//\)$' \| \ 1254 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1255$as_echo X"$as_myself" | 1256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1257 s//\1/ 1258 q 1259 } 1260 /^X\(\/\/\)[^/].*/{ 1261 s//\1/ 1262 q 1263 } 1264 /^X\(\/\/\)$/{ 1265 s//\1/ 1266 q 1267 } 1268 /^X\(\/\).*/{ 1269 s//\1/ 1270 q 1271 } 1272 s/.*/./; q'` 1273 srcdir=$ac_confdir 1274 if test ! -r "$srcdir/$ac_unique_file"; then 1275 srcdir=.. 1276 fi 1277else 1278 ac_srcdir_defaulted=no 1279fi 1280if test ! -r "$srcdir/$ac_unique_file"; then 1281 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1282 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1283fi 1284ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1285ac_abs_confdir=`( 1286 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1287 pwd)` 1288# When building in place, set srcdir=. 1289if test "$ac_abs_confdir" = "$ac_pwd"; then 1290 srcdir=. 1291fi 1292# Remove unnecessary trailing slashes from srcdir. 1293# Double slashes in file names in object file debugging info 1294# mess up M-x gdb in Emacs. 1295case $srcdir in 1296*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1297esac 1298for ac_var in $ac_precious_vars; do 1299 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1300 eval ac_env_${ac_var}_value=\$${ac_var} 1301 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1302 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1303done 1304 1305# 1306# Report the --help message. 1307# 1308if test "$ac_init_help" = "long"; then 1309 # Omit some internal or obsolete options to make the list less imposing. 1310 # This message is too long to be a string in the A/UX 3.1 sh. 1311 cat <<_ACEOF 1312\`configure' configures xcalc 1.0.6 to adapt to many kinds of systems. 1313 1314Usage: $0 [OPTION]... [VAR=VALUE]... 1315 1316To assign environment variables (e.g., CC, CFLAGS...), specify them as 1317VAR=VALUE. See below for descriptions of some of the useful variables. 1318 1319Defaults for the options are specified in brackets. 1320 1321Configuration: 1322 -h, --help display this help and exit 1323 --help=short display options specific to this package 1324 --help=recursive display the short help of all the included packages 1325 -V, --version display version information and exit 1326 -q, --quiet, --silent do not print \`checking ...' messages 1327 --cache-file=FILE cache test results in FILE [disabled] 1328 -C, --config-cache alias for \`--cache-file=config.cache' 1329 -n, --no-create do not create output files 1330 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1331 1332Installation directories: 1333 --prefix=PREFIX install architecture-independent files in PREFIX 1334 [$ac_default_prefix] 1335 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1336 [PREFIX] 1337 1338By default, \`make install' will install all the files in 1339\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1340an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1341for instance \`--prefix=\$HOME'. 1342 1343For better control, use the options below. 1344 1345Fine tuning of the installation directories: 1346 --bindir=DIR user executables [EPREFIX/bin] 1347 --sbindir=DIR system admin executables [EPREFIX/sbin] 1348 --libexecdir=DIR program executables [EPREFIX/libexec] 1349 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1350 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1351 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1352 --libdir=DIR object code libraries [EPREFIX/lib] 1353 --includedir=DIR C header files [PREFIX/include] 1354 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1355 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1356 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1357 --infodir=DIR info documentation [DATAROOTDIR/info] 1358 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1359 --mandir=DIR man documentation [DATAROOTDIR/man] 1360 --docdir=DIR documentation root [DATAROOTDIR/doc/xcalc] 1361 --htmldir=DIR html documentation [DOCDIR] 1362 --dvidir=DIR dvi documentation [DOCDIR] 1363 --pdfdir=DIR pdf documentation [DOCDIR] 1364 --psdir=DIR ps documentation [DOCDIR] 1365_ACEOF 1366 1367 cat <<\_ACEOF 1368 1369Program names: 1370 --program-prefix=PREFIX prepend PREFIX to installed program names 1371 --program-suffix=SUFFIX append SUFFIX to installed program names 1372 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1373 1374System types: 1375 --build=BUILD configure for building on BUILD [guessed] 1376 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1377_ACEOF 1378fi 1379 1380if test -n "$ac_init_help"; then 1381 case $ac_init_help in 1382 short | recursive ) echo "Configuration of xcalc 1.0.6:";; 1383 esac 1384 cat <<\_ACEOF 1385 1386Optional Features: 1387 --disable-option-checking ignore unrecognized --enable/--with options 1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1390 --enable-silent-rules less verbose build output (undo: "make V=1") 1391 --disable-silent-rules verbose build output (undo: "make V=0") 1392 --enable-dependency-tracking 1393 do not reject slow dependency extractors 1394 --disable-dependency-tracking 1395 speeds up one-time build 1396 --disable-selective-werror 1397 Turn off selective compiler errors. (default: 1398 enabled) 1399 --enable-strict-compilation 1400 Enable all warnings from compiler and make them 1401 errors (default: disabled) 1402 1403Optional Packages: 1404 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1405 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1406 --with-appdefaultdir=<pathname> 1407 specify directory for app-defaults files (default is 1408 autodetected) 1409 1410Some influential environment variables: 1411 CC C compiler command 1412 CFLAGS C compiler flags 1413 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1414 nonstandard directory <lib dir> 1415 LIBS libraries to pass to the linker, e.g. -l<library> 1416 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1417 you have headers in a nonstandard directory <include dir> 1418 CPP C preprocessor 1419 PKG_CONFIG path to pkg-config utility 1420 XCALC_CFLAGS 1421 C compiler flags for XCALC, overriding pkg-config 1422 XCALC_LIBS linker flags for XCALC, overriding pkg-config 1423 APPDEFS_CFLAGS 1424 C compiler flags for APPDEFS, overriding pkg-config 1425 APPDEFS_LIBS 1426 linker flags for APPDEFS, overriding pkg-config 1427 1428Use these variables to override the choices made by `configure' or to help 1429it to find libraries and programs with nonstandard names/locations. 1430 1431Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1432_ACEOF 1433ac_status=$? 1434fi 1435 1436if test "$ac_init_help" = "recursive"; then 1437 # If there are subdirs, report their specific --help. 1438 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1439 test -d "$ac_dir" || 1440 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1441 continue 1442 ac_builddir=. 1443 1444case "$ac_dir" in 1445.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1446*) 1447 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1448 # A ".." for each directory in $ac_dir_suffix. 1449 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1450 case $ac_top_builddir_sub in 1451 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1452 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1453 esac ;; 1454esac 1455ac_abs_top_builddir=$ac_pwd 1456ac_abs_builddir=$ac_pwd$ac_dir_suffix 1457# for backward compatibility: 1458ac_top_builddir=$ac_top_build_prefix 1459 1460case $srcdir in 1461 .) # We are building in place. 1462 ac_srcdir=. 1463 ac_top_srcdir=$ac_top_builddir_sub 1464 ac_abs_top_srcdir=$ac_pwd ;; 1465 [\\/]* | ?:[\\/]* ) # Absolute name. 1466 ac_srcdir=$srcdir$ac_dir_suffix; 1467 ac_top_srcdir=$srcdir 1468 ac_abs_top_srcdir=$srcdir ;; 1469 *) # Relative name. 1470 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1471 ac_top_srcdir=$ac_top_build_prefix$srcdir 1472 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1473esac 1474ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1475 1476 cd "$ac_dir" || { ac_status=$?; continue; } 1477 # Check for guested configure. 1478 if test -f "$ac_srcdir/configure.gnu"; then 1479 echo && 1480 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1481 elif test -f "$ac_srcdir/configure"; then 1482 echo && 1483 $SHELL "$ac_srcdir/configure" --help=recursive 1484 else 1485 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1486 fi || ac_status=$? 1487 cd "$ac_pwd" || { ac_status=$?; break; } 1488 done 1489fi 1490 1491test -n "$ac_init_help" && exit $ac_status 1492if $ac_init_version; then 1493 cat <<\_ACEOF 1494xcalc configure 1.0.6 1495generated by GNU Autoconf 2.69 1496 1497Copyright (C) 2012 Free Software Foundation, Inc. 1498This configure script is free software; the Free Software Foundation 1499gives unlimited permission to copy, distribute and modify it. 1500_ACEOF 1501 exit 1502fi 1503 1504## ------------------------ ## 1505## Autoconf initialization. ## 1506## ------------------------ ## 1507 1508# ac_fn_c_try_compile LINENO 1509# -------------------------- 1510# Try to compile conftest.$ac_ext, and return whether this succeeded. 1511ac_fn_c_try_compile () 1512{ 1513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1514 rm -f conftest.$ac_objext 1515 if { { ac_try="$ac_compile" 1516case "(($ac_try" in 1517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1518 *) ac_try_echo=$ac_try;; 1519esac 1520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1521$as_echo "$ac_try_echo"; } >&5 1522 (eval "$ac_compile") 2>conftest.err 1523 ac_status=$? 1524 if test -s conftest.err; then 1525 grep -v '^ *+' conftest.err >conftest.er1 1526 cat conftest.er1 >&5 1527 mv -f conftest.er1 conftest.err 1528 fi 1529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1530 test $ac_status = 0; } && { 1531 test -z "$ac_c_werror_flag" || 1532 test ! -s conftest.err 1533 } && test -s conftest.$ac_objext; then : 1534 ac_retval=0 1535else 1536 $as_echo "$as_me: failed program was:" >&5 1537sed 's/^/| /' conftest.$ac_ext >&5 1538 1539 ac_retval=1 1540fi 1541 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1542 as_fn_set_status $ac_retval 1543 1544} # ac_fn_c_try_compile 1545 1546# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1547# --------------------------------------------- 1548# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1549# accordingly. 1550ac_fn_c_check_decl () 1551{ 1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1553 as_decl_name=`echo $2|sed 's/ *(.*//'` 1554 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1556$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1557if eval \${$3+:} false; then : 1558 $as_echo_n "(cached) " >&6 1559else 1560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1561/* end confdefs.h. */ 1562$4 1563int 1564main () 1565{ 1566#ifndef $as_decl_name 1567#ifdef __cplusplus 1568 (void) $as_decl_use; 1569#else 1570 (void) $as_decl_name; 1571#endif 1572#endif 1573 1574 ; 1575 return 0; 1576} 1577_ACEOF 1578if ac_fn_c_try_compile "$LINENO"; then : 1579 eval "$3=yes" 1580else 1581 eval "$3=no" 1582fi 1583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1584fi 1585eval ac_res=\$$3 1586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1587$as_echo "$ac_res" >&6; } 1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1589 1590} # ac_fn_c_check_decl 1591 1592# ac_fn_c_try_cpp LINENO 1593# ---------------------- 1594# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1595ac_fn_c_try_cpp () 1596{ 1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1598 if { { ac_try="$ac_cpp conftest.$ac_ext" 1599case "(($ac_try" in 1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1601 *) ac_try_echo=$ac_try;; 1602esac 1603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1604$as_echo "$ac_try_echo"; } >&5 1605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1606 ac_status=$? 1607 if test -s conftest.err; then 1608 grep -v '^ *+' conftest.err >conftest.er1 1609 cat conftest.er1 >&5 1610 mv -f conftest.er1 conftest.err 1611 fi 1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1613 test $ac_status = 0; } > conftest.i && { 1614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1615 test ! -s conftest.err 1616 }; then : 1617 ac_retval=0 1618else 1619 $as_echo "$as_me: failed program was:" >&5 1620sed 's/^/| /' conftest.$ac_ext >&5 1621 1622 ac_retval=1 1623fi 1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1625 as_fn_set_status $ac_retval 1626 1627} # ac_fn_c_try_cpp 1628 1629# ac_fn_c_try_run LINENO 1630# ---------------------- 1631# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1632# that executables *can* be run. 1633ac_fn_c_try_run () 1634{ 1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1636 if { { ac_try="$ac_link" 1637case "(($ac_try" in 1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1639 *) ac_try_echo=$ac_try;; 1640esac 1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1642$as_echo "$ac_try_echo"; } >&5 1643 (eval "$ac_link") 2>&5 1644 ac_status=$? 1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1646 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1647 { { case "(($ac_try" in 1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1649 *) ac_try_echo=$ac_try;; 1650esac 1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1652$as_echo "$ac_try_echo"; } >&5 1653 (eval "$ac_try") 2>&5 1654 ac_status=$? 1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1656 test $ac_status = 0; }; }; then : 1657 ac_retval=0 1658else 1659 $as_echo "$as_me: program exited with status $ac_status" >&5 1660 $as_echo "$as_me: failed program was:" >&5 1661sed 's/^/| /' conftest.$ac_ext >&5 1662 1663 ac_retval=$ac_status 1664fi 1665 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1667 as_fn_set_status $ac_retval 1668 1669} # ac_fn_c_try_run 1670 1671# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1672# ------------------------------------------------------- 1673# Tests whether HEADER exists and can be compiled using the include files in 1674# INCLUDES, setting the cache variable VAR accordingly. 1675ac_fn_c_check_header_compile () 1676{ 1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1679$as_echo_n "checking for $2... " >&6; } 1680if eval \${$3+:} false; then : 1681 $as_echo_n "(cached) " >&6 1682else 1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1684/* end confdefs.h. */ 1685$4 1686#include <$2> 1687_ACEOF 1688if ac_fn_c_try_compile "$LINENO"; then : 1689 eval "$3=yes" 1690else 1691 eval "$3=no" 1692fi 1693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1694fi 1695eval ac_res=\$$3 1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1697$as_echo "$ac_res" >&6; } 1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1699 1700} # ac_fn_c_check_header_compile 1701 1702# ac_fn_c_try_link LINENO 1703# ----------------------- 1704# Try to link conftest.$ac_ext, and return whether this succeeded. 1705ac_fn_c_try_link () 1706{ 1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1708 rm -f conftest.$ac_objext conftest$ac_exeext 1709 if { { ac_try="$ac_link" 1710case "(($ac_try" in 1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1712 *) ac_try_echo=$ac_try;; 1713esac 1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1715$as_echo "$ac_try_echo"; } >&5 1716 (eval "$ac_link") 2>conftest.err 1717 ac_status=$? 1718 if test -s conftest.err; then 1719 grep -v '^ *+' conftest.err >conftest.er1 1720 cat conftest.er1 >&5 1721 mv -f conftest.er1 conftest.err 1722 fi 1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1724 test $ac_status = 0; } && { 1725 test -z "$ac_c_werror_flag" || 1726 test ! -s conftest.err 1727 } && test -s conftest$ac_exeext && { 1728 test "$cross_compiling" = yes || 1729 test -x conftest$ac_exeext 1730 }; then : 1731 ac_retval=0 1732else 1733 $as_echo "$as_me: failed program was:" >&5 1734sed 's/^/| /' conftest.$ac_ext >&5 1735 1736 ac_retval=1 1737fi 1738 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1739 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1740 # interfere with the next link command; also delete a directory that is 1741 # left behind by Apple's compiler. We do this before executing the actions. 1742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1744 as_fn_set_status $ac_retval 1745 1746} # ac_fn_c_try_link 1747 1748# ac_fn_c_check_func LINENO FUNC VAR 1749# ---------------------------------- 1750# Tests whether FUNC exists, setting the cache variable VAR accordingly 1751ac_fn_c_check_func () 1752{ 1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1755$as_echo_n "checking for $2... " >&6; } 1756if eval \${$3+:} false; then : 1757 $as_echo_n "(cached) " >&6 1758else 1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1760/* end confdefs.h. */ 1761/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1762 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1763#define $2 innocuous_$2 1764 1765/* System header to define __stub macros and hopefully few prototypes, 1766 which can conflict with char $2 (); below. 1767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1768 <limits.h> exists even on freestanding compilers. */ 1769 1770#ifdef __STDC__ 1771# include <limits.h> 1772#else 1773# include <assert.h> 1774#endif 1775 1776#undef $2 1777 1778/* Override any GCC internal prototype to avoid an error. 1779 Use char because int might match the return type of a GCC 1780 builtin and then its argument prototype would still apply. */ 1781#ifdef __cplusplus 1782extern "C" 1783#endif 1784char $2 (); 1785/* The GNU C library defines this for functions which it implements 1786 to always fail with ENOSYS. Some functions are actually named 1787 something starting with __ and the normal name is an alias. */ 1788#if defined __stub_$2 || defined __stub___$2 1789choke me 1790#endif 1791 1792int 1793main () 1794{ 1795return $2 (); 1796 ; 1797 return 0; 1798} 1799_ACEOF 1800if ac_fn_c_try_link "$LINENO"; then : 1801 eval "$3=yes" 1802else 1803 eval "$3=no" 1804fi 1805rm -f core conftest.err conftest.$ac_objext \ 1806 conftest$ac_exeext conftest.$ac_ext 1807fi 1808eval ac_res=\$$3 1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1810$as_echo "$ac_res" >&6; } 1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1812 1813} # ac_fn_c_check_func 1814cat >config.log <<_ACEOF 1815This file contains any messages produced by compilers while 1816running configure, to aid debugging if configure makes a mistake. 1817 1818It was created by xcalc $as_me 1.0.6, which was 1819generated by GNU Autoconf 2.69. Invocation command line was 1820 1821 $ $0 $@ 1822 1823_ACEOF 1824exec 5>>config.log 1825{ 1826cat <<_ASUNAME 1827## --------- ## 1828## Platform. ## 1829## --------- ## 1830 1831hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1832uname -m = `(uname -m) 2>/dev/null || echo unknown` 1833uname -r = `(uname -r) 2>/dev/null || echo unknown` 1834uname -s = `(uname -s) 2>/dev/null || echo unknown` 1835uname -v = `(uname -v) 2>/dev/null || echo unknown` 1836 1837/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1838/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1839 1840/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1841/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1842/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1843/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1844/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1845/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1846/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1847 1848_ASUNAME 1849 1850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1851for as_dir in $PATH 1852do 1853 IFS=$as_save_IFS 1854 test -z "$as_dir" && as_dir=. 1855 $as_echo "PATH: $as_dir" 1856 done 1857IFS=$as_save_IFS 1858 1859} >&5 1860 1861cat >&5 <<_ACEOF 1862 1863 1864## ----------- ## 1865## Core tests. ## 1866## ----------- ## 1867 1868_ACEOF 1869 1870 1871# Keep a trace of the command line. 1872# Strip out --no-create and --no-recursion so they do not pile up. 1873# Strip out --silent because we don't want to record it for future runs. 1874# Also quote any args containing shell meta-characters. 1875# Make two passes to allow for proper duplicate-argument suppression. 1876ac_configure_args= 1877ac_configure_args0= 1878ac_configure_args1= 1879ac_must_keep_next=false 1880for ac_pass in 1 2 1881do 1882 for ac_arg 1883 do 1884 case $ac_arg in 1885 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1886 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1887 | -silent | --silent | --silen | --sile | --sil) 1888 continue ;; 1889 *\'*) 1890 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1891 esac 1892 case $ac_pass in 1893 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1894 2) 1895 as_fn_append ac_configure_args1 " '$ac_arg'" 1896 if test $ac_must_keep_next = true; then 1897 ac_must_keep_next=false # Got value, back to normal. 1898 else 1899 case $ac_arg in 1900 *=* | --config-cache | -C | -disable-* | --disable-* \ 1901 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1902 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1903 | -with-* | --with-* | -without-* | --without-* | --x) 1904 case "$ac_configure_args0 " in 1905 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1906 esac 1907 ;; 1908 -* ) ac_must_keep_next=true ;; 1909 esac 1910 fi 1911 as_fn_append ac_configure_args " '$ac_arg'" 1912 ;; 1913 esac 1914 done 1915done 1916{ ac_configure_args0=; unset ac_configure_args0;} 1917{ ac_configure_args1=; unset ac_configure_args1;} 1918 1919# When interrupted or exit'd, cleanup temporary files, and complete 1920# config.log. We remove comments because anyway the quotes in there 1921# would cause problems or look ugly. 1922# WARNING: Use '\'' to represent an apostrophe within the trap. 1923# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1924trap 'exit_status=$? 1925 # Save into config.log some information that might help in debugging. 1926 { 1927 echo 1928 1929 $as_echo "## ---------------- ## 1930## Cache variables. ## 1931## ---------------- ##" 1932 echo 1933 # The following way of writing the cache mishandles newlines in values, 1934( 1935 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1936 eval ac_val=\$$ac_var 1937 case $ac_val in #( 1938 *${as_nl}*) 1939 case $ac_var in #( 1940 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1941$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1942 esac 1943 case $ac_var in #( 1944 _ | IFS | as_nl) ;; #( 1945 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1946 *) { eval $ac_var=; unset $ac_var;} ;; 1947 esac ;; 1948 esac 1949 done 1950 (set) 2>&1 | 1951 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1952 *${as_nl}ac_space=\ *) 1953 sed -n \ 1954 "s/'\''/'\''\\\\'\'''\''/g; 1955 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1956 ;; #( 1957 *) 1958 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1959 ;; 1960 esac | 1961 sort 1962) 1963 echo 1964 1965 $as_echo "## ----------------- ## 1966## Output variables. ## 1967## ----------------- ##" 1968 echo 1969 for ac_var in $ac_subst_vars 1970 do 1971 eval ac_val=\$$ac_var 1972 case $ac_val in 1973 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1974 esac 1975 $as_echo "$ac_var='\''$ac_val'\''" 1976 done | sort 1977 echo 1978 1979 if test -n "$ac_subst_files"; then 1980 $as_echo "## ------------------- ## 1981## File substitutions. ## 1982## ------------------- ##" 1983 echo 1984 for ac_var in $ac_subst_files 1985 do 1986 eval ac_val=\$$ac_var 1987 case $ac_val in 1988 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1989 esac 1990 $as_echo "$ac_var='\''$ac_val'\''" 1991 done | sort 1992 echo 1993 fi 1994 1995 if test -s confdefs.h; then 1996 $as_echo "## ----------- ## 1997## confdefs.h. ## 1998## ----------- ##" 1999 echo 2000 cat confdefs.h 2001 echo 2002 fi 2003 test "$ac_signal" != 0 && 2004 $as_echo "$as_me: caught signal $ac_signal" 2005 $as_echo "$as_me: exit $exit_status" 2006 } >&5 2007 rm -f core *.core core.conftest.* && 2008 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2009 exit $exit_status 2010' 0 2011for ac_signal in 1 2 13 15; do 2012 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2013done 2014ac_signal=0 2015 2016# confdefs.h avoids OS command line length limits that DEFS can exceed. 2017rm -f -r conftest* confdefs.h 2018 2019$as_echo "/* confdefs.h */" > confdefs.h 2020 2021# Predefined preprocessor variables. 2022 2023cat >>confdefs.h <<_ACEOF 2024#define PACKAGE_NAME "$PACKAGE_NAME" 2025_ACEOF 2026 2027cat >>confdefs.h <<_ACEOF 2028#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2029_ACEOF 2030 2031cat >>confdefs.h <<_ACEOF 2032#define PACKAGE_VERSION "$PACKAGE_VERSION" 2033_ACEOF 2034 2035cat >>confdefs.h <<_ACEOF 2036#define PACKAGE_STRING "$PACKAGE_STRING" 2037_ACEOF 2038 2039cat >>confdefs.h <<_ACEOF 2040#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2041_ACEOF 2042 2043cat >>confdefs.h <<_ACEOF 2044#define PACKAGE_URL "$PACKAGE_URL" 2045_ACEOF 2046 2047 2048# Let the site file select an alternate cache file if it wants to. 2049# Prefer an explicitly selected file to automatically selected ones. 2050ac_site_file1=NONE 2051ac_site_file2=NONE 2052if test -n "$CONFIG_SITE"; then 2053 # We do not want a PATH search for config.site. 2054 case $CONFIG_SITE in #(( 2055 -*) ac_site_file1=./$CONFIG_SITE;; 2056 */*) ac_site_file1=$CONFIG_SITE;; 2057 *) ac_site_file1=./$CONFIG_SITE;; 2058 esac 2059elif test "x$prefix" != xNONE; then 2060 ac_site_file1=$prefix/share/config.site 2061 ac_site_file2=$prefix/etc/config.site 2062else 2063 ac_site_file1=$ac_default_prefix/share/config.site 2064 ac_site_file2=$ac_default_prefix/etc/config.site 2065fi 2066for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2067do 2068 test "x$ac_site_file" = xNONE && continue 2069 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2070 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2071$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2072 sed 's/^/| /' "$ac_site_file" >&5 2073 . "$ac_site_file" \ 2074 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2076as_fn_error $? "failed to load site script $ac_site_file 2077See \`config.log' for more details" "$LINENO" 5; } 2078 fi 2079done 2080 2081if test -r "$cache_file"; then 2082 # Some versions of bash will fail to source /dev/null (special files 2083 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2084 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2085 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2086$as_echo "$as_me: loading cache $cache_file" >&6;} 2087 case $cache_file in 2088 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2089 *) . "./$cache_file";; 2090 esac 2091 fi 2092else 2093 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2094$as_echo "$as_me: creating cache $cache_file" >&6;} 2095 >$cache_file 2096fi 2097 2098# Check that the precious variables saved in the cache have kept the same 2099# value. 2100ac_cache_corrupted=false 2101for ac_var in $ac_precious_vars; do 2102 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2103 eval ac_new_set=\$ac_env_${ac_var}_set 2104 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2105 eval ac_new_val=\$ac_env_${ac_var}_value 2106 case $ac_old_set,$ac_new_set in 2107 set,) 2108 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2109$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2110 ac_cache_corrupted=: ;; 2111 ,set) 2112 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2113$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2114 ac_cache_corrupted=: ;; 2115 ,);; 2116 *) 2117 if test "x$ac_old_val" != "x$ac_new_val"; then 2118 # differences in whitespace do not lead to failure. 2119 ac_old_val_w=`echo x $ac_old_val` 2120 ac_new_val_w=`echo x $ac_new_val` 2121 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2123$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2124 ac_cache_corrupted=: 2125 else 2126 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2127$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2128 eval $ac_var=\$ac_old_val 2129 fi 2130 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2131$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2133$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2134 fi;; 2135 esac 2136 # Pass precious variables to config.status. 2137 if test "$ac_new_set" = set; then 2138 case $ac_new_val in 2139 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2140 *) ac_arg=$ac_var=$ac_new_val ;; 2141 esac 2142 case " $ac_configure_args " in 2143 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2144 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2145 esac 2146 fi 2147done 2148if $ac_cache_corrupted; then 2149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2152$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2153 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2154fi 2155## -------------------- ## 2156## Main body of script. ## 2157## -------------------- ## 2158 2159ac_ext=c 2160ac_cpp='$CPP $CPPFLAGS' 2161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2163ac_compiler_gnu=$ac_cv_c_compiler_gnu 2164 2165 2166 2167ac_config_headers="$ac_config_headers config.h" 2168 2169 2170# Initialize Automake 2171am__api_version='1.15' 2172 2173ac_aux_dir= 2174for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2175 if test -f "$ac_dir/install-sh"; then 2176 ac_aux_dir=$ac_dir 2177 ac_install_sh="$ac_aux_dir/install-sh -c" 2178 break 2179 elif test -f "$ac_dir/install.sh"; then 2180 ac_aux_dir=$ac_dir 2181 ac_install_sh="$ac_aux_dir/install.sh -c" 2182 break 2183 elif test -f "$ac_dir/shtool"; then 2184 ac_aux_dir=$ac_dir 2185 ac_install_sh="$ac_aux_dir/shtool install -c" 2186 break 2187 fi 2188done 2189if test -z "$ac_aux_dir"; then 2190 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2191fi 2192 2193# These three variables are undocumented and unsupported, 2194# and are intended to be withdrawn in a future Autoconf release. 2195# They can cause serious problems if a builder's source tree is in a directory 2196# whose full name contains unusual characters. 2197ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2198ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2199ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2200 2201 2202# Find a good install program. We prefer a C program (faster), 2203# so one script is as good as another. But avoid the broken or 2204# incompatible versions: 2205# SysV /etc/install, /usr/sbin/install 2206# SunOS /usr/etc/install 2207# IRIX /sbin/install 2208# AIX /bin/install 2209# AmigaOS /C/install, which installs bootblocks on floppy discs 2210# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2211# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2212# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2213# OS/2's system install, which has a completely different semantic 2214# ./install, which can be erroneously created by make from ./install.sh. 2215# Reject install programs that cannot install multiple files. 2216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2217$as_echo_n "checking for a BSD-compatible install... " >&6; } 2218if test -z "$INSTALL"; then 2219if ${ac_cv_path_install+:} false; then : 2220 $as_echo_n "(cached) " >&6 2221else 2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2223for as_dir in $PATH 2224do 2225 IFS=$as_save_IFS 2226 test -z "$as_dir" && as_dir=. 2227 # Account for people who put trailing slashes in PATH elements. 2228case $as_dir/ in #(( 2229 ./ | .// | /[cC]/* | \ 2230 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2231 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2232 /usr/ucb/* ) ;; 2233 *) 2234 # OSF1 and SCO ODT 3.0 have their own names for install. 2235 # Don't use installbsd from OSF since it installs stuff as root 2236 # by default. 2237 for ac_prog in ginstall scoinst install; do 2238 for ac_exec_ext in '' $ac_executable_extensions; do 2239 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2240 if test $ac_prog = install && 2241 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2242 # AIX install. It has an incompatible calling convention. 2243 : 2244 elif test $ac_prog = install && 2245 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2246 # program-specific install script used by HP pwplus--don't use. 2247 : 2248 else 2249 rm -rf conftest.one conftest.two conftest.dir 2250 echo one > conftest.one 2251 echo two > conftest.two 2252 mkdir conftest.dir 2253 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2254 test -s conftest.one && test -s conftest.two && 2255 test -s conftest.dir/conftest.one && 2256 test -s conftest.dir/conftest.two 2257 then 2258 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2259 break 3 2260 fi 2261 fi 2262 fi 2263 done 2264 done 2265 ;; 2266esac 2267 2268 done 2269IFS=$as_save_IFS 2270 2271rm -rf conftest.one conftest.two conftest.dir 2272 2273fi 2274 if test "${ac_cv_path_install+set}" = set; then 2275 INSTALL=$ac_cv_path_install 2276 else 2277 # As a last resort, use the slow shell script. Don't cache a 2278 # value for INSTALL within a source directory, because that will 2279 # break other packages using the cache if that directory is 2280 # removed, or if the value is a relative name. 2281 INSTALL=$ac_install_sh 2282 fi 2283fi 2284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2285$as_echo "$INSTALL" >&6; } 2286 2287# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2288# It thinks the first close brace ends the variable substitution. 2289test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2290 2291test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2292 2293test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2294 2295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2296$as_echo_n "checking whether build environment is sane... " >&6; } 2297# Reject unsafe characters in $srcdir or the absolute working directory 2298# name. Accept space and tab only in the latter. 2299am_lf=' 2300' 2301case `pwd` in 2302 *[\\\"\#\$\&\'\`$am_lf]*) 2303 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2304esac 2305case $srcdir in 2306 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2307 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2308esac 2309 2310# Do 'set' in a subshell so we don't clobber the current shell's 2311# arguments. Must try -L first in case configure is actually a 2312# symlink; some systems play weird games with the mod time of symlinks 2313# (eg FreeBSD returns the mod time of the symlink's containing 2314# directory). 2315if ( 2316 am_has_slept=no 2317 for am_try in 1 2; do 2318 echo "timestamp, slept: $am_has_slept" > conftest.file 2319 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2320 if test "$*" = "X"; then 2321 # -L didn't work. 2322 set X `ls -t "$srcdir/configure" conftest.file` 2323 fi 2324 if test "$*" != "X $srcdir/configure conftest.file" \ 2325 && test "$*" != "X conftest.file $srcdir/configure"; then 2326 2327 # If neither matched, then we have a broken ls. This can happen 2328 # if, for instance, CONFIG_SHELL is bash and it inherits a 2329 # broken ls alias from the environment. This has actually 2330 # happened. Such a system could not be considered "sane". 2331 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2332 alias in your environment" "$LINENO" 5 2333 fi 2334 if test "$2" = conftest.file || test $am_try -eq 2; then 2335 break 2336 fi 2337 # Just in case. 2338 sleep 1 2339 am_has_slept=yes 2340 done 2341 test "$2" = conftest.file 2342 ) 2343then 2344 # Ok. 2345 : 2346else 2347 as_fn_error $? "newly created file is older than distributed files! 2348Check your system clock" "$LINENO" 5 2349fi 2350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2351$as_echo "yes" >&6; } 2352# If we didn't sleep, we still need to ensure time stamps of config.status and 2353# generated files are strictly newer. 2354am_sleep_pid= 2355if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2356 ( sleep 1 ) & 2357 am_sleep_pid=$! 2358fi 2359 2360rm -f conftest.file 2361 2362test "$program_prefix" != NONE && 2363 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2364# Use a double $ so make ignores it. 2365test "$program_suffix" != NONE && 2366 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2367# Double any \ or $. 2368# By default was `s,x,x', remove it if useless. 2369ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2370program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2371 2372# Expand $ac_aux_dir to an absolute path. 2373am_aux_dir=`cd "$ac_aux_dir" && pwd` 2374 2375if test x"${MISSING+set}" != xset; then 2376 case $am_aux_dir in 2377 *\ * | *\ *) 2378 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2379 *) 2380 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2381 esac 2382fi 2383# Use eval to expand $SHELL 2384if eval "$MISSING --is-lightweight"; then 2385 am_missing_run="$MISSING " 2386else 2387 am_missing_run= 2388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2389$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2390fi 2391 2392if test x"${install_sh+set}" != xset; then 2393 case $am_aux_dir in 2394 *\ * | *\ *) 2395 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2396 *) 2397 install_sh="\${SHELL} $am_aux_dir/install-sh" 2398 esac 2399fi 2400 2401# Installed binaries are usually stripped using 'strip' when the user 2402# run "make install-strip". However 'strip' might not be the right 2403# tool to use in cross-compilation environments, therefore Automake 2404# will honor the 'STRIP' environment variable to overrule this program. 2405if test "$cross_compiling" != no; then 2406 if test -n "$ac_tool_prefix"; then 2407 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2408set dummy ${ac_tool_prefix}strip; ac_word=$2 2409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2410$as_echo_n "checking for $ac_word... " >&6; } 2411if ${ac_cv_prog_STRIP+:} false; then : 2412 $as_echo_n "(cached) " >&6 2413else 2414 if test -n "$STRIP"; then 2415 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2416else 2417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2418for as_dir in $PATH 2419do 2420 IFS=$as_save_IFS 2421 test -z "$as_dir" && as_dir=. 2422 for ac_exec_ext in '' $ac_executable_extensions; do 2423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2424 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2426 break 2 2427 fi 2428done 2429 done 2430IFS=$as_save_IFS 2431 2432fi 2433fi 2434STRIP=$ac_cv_prog_STRIP 2435if test -n "$STRIP"; then 2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2437$as_echo "$STRIP" >&6; } 2438else 2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2440$as_echo "no" >&6; } 2441fi 2442 2443 2444fi 2445if test -z "$ac_cv_prog_STRIP"; then 2446 ac_ct_STRIP=$STRIP 2447 # Extract the first word of "strip", so it can be a program name with args. 2448set dummy strip; ac_word=$2 2449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2450$as_echo_n "checking for $ac_word... " >&6; } 2451if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2452 $as_echo_n "(cached) " >&6 2453else 2454 if test -n "$ac_ct_STRIP"; then 2455 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2456else 2457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2458for as_dir in $PATH 2459do 2460 IFS=$as_save_IFS 2461 test -z "$as_dir" && as_dir=. 2462 for ac_exec_ext in '' $ac_executable_extensions; do 2463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2464 ac_cv_prog_ac_ct_STRIP="strip" 2465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2466 break 2 2467 fi 2468done 2469 done 2470IFS=$as_save_IFS 2471 2472fi 2473fi 2474ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2475if test -n "$ac_ct_STRIP"; then 2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2477$as_echo "$ac_ct_STRIP" >&6; } 2478else 2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2480$as_echo "no" >&6; } 2481fi 2482 2483 if test "x$ac_ct_STRIP" = x; then 2484 STRIP=":" 2485 else 2486 case $cross_compiling:$ac_tool_warned in 2487yes:) 2488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2490ac_tool_warned=yes ;; 2491esac 2492 STRIP=$ac_ct_STRIP 2493 fi 2494else 2495 STRIP="$ac_cv_prog_STRIP" 2496fi 2497 2498fi 2499INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2500 2501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2502$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2503if test -z "$MKDIR_P"; then 2504 if ${ac_cv_path_mkdir+:} false; then : 2505 $as_echo_n "(cached) " >&6 2506else 2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2508for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2509do 2510 IFS=$as_save_IFS 2511 test -z "$as_dir" && as_dir=. 2512 for ac_prog in mkdir gmkdir; do 2513 for ac_exec_ext in '' $ac_executable_extensions; do 2514 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2515 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2516 'mkdir (GNU coreutils) '* | \ 2517 'mkdir (coreutils) '* | \ 2518 'mkdir (fileutils) '4.1*) 2519 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2520 break 3;; 2521 esac 2522 done 2523 done 2524 done 2525IFS=$as_save_IFS 2526 2527fi 2528 2529 test -d ./--version && rmdir ./--version 2530 if test "${ac_cv_path_mkdir+set}" = set; then 2531 MKDIR_P="$ac_cv_path_mkdir -p" 2532 else 2533 # As a last resort, use the slow shell script. Don't cache a 2534 # value for MKDIR_P within a source directory, because that will 2535 # break other packages using the cache if that directory is 2536 # removed, or if the value is a relative name. 2537 MKDIR_P="$ac_install_sh -d" 2538 fi 2539fi 2540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2541$as_echo "$MKDIR_P" >&6; } 2542 2543for ac_prog in gawk mawk nawk awk 2544do 2545 # Extract the first word of "$ac_prog", so it can be a program name with args. 2546set dummy $ac_prog; ac_word=$2 2547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2548$as_echo_n "checking for $ac_word... " >&6; } 2549if ${ac_cv_prog_AWK+:} false; then : 2550 $as_echo_n "(cached) " >&6 2551else 2552 if test -n "$AWK"; then 2553 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2554else 2555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2556for as_dir in $PATH 2557do 2558 IFS=$as_save_IFS 2559 test -z "$as_dir" && as_dir=. 2560 for ac_exec_ext in '' $ac_executable_extensions; do 2561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2562 ac_cv_prog_AWK="$ac_prog" 2563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2564 break 2 2565 fi 2566done 2567 done 2568IFS=$as_save_IFS 2569 2570fi 2571fi 2572AWK=$ac_cv_prog_AWK 2573if test -n "$AWK"; then 2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2575$as_echo "$AWK" >&6; } 2576else 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2578$as_echo "no" >&6; } 2579fi 2580 2581 2582 test -n "$AWK" && break 2583done 2584 2585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2586$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2587set x ${MAKE-make} 2588ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2589if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2590 $as_echo_n "(cached) " >&6 2591else 2592 cat >conftest.make <<\_ACEOF 2593SHELL = /bin/sh 2594all: 2595 @echo '@@@%%%=$(MAKE)=@@@%%%' 2596_ACEOF 2597# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2598case `${MAKE-make} -f conftest.make 2>/dev/null` in 2599 *@@@%%%=?*=@@@%%%*) 2600 eval ac_cv_prog_make_${ac_make}_set=yes;; 2601 *) 2602 eval ac_cv_prog_make_${ac_make}_set=no;; 2603esac 2604rm -f conftest.make 2605fi 2606if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2608$as_echo "yes" >&6; } 2609 SET_MAKE= 2610else 2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2612$as_echo "no" >&6; } 2613 SET_MAKE="MAKE=${MAKE-make}" 2614fi 2615 2616rm -rf .tst 2>/dev/null 2617mkdir .tst 2>/dev/null 2618if test -d .tst; then 2619 am__leading_dot=. 2620else 2621 am__leading_dot=_ 2622fi 2623rmdir .tst 2>/dev/null 2624 2625# Check whether --enable-silent-rules was given. 2626if test "${enable_silent_rules+set}" = set; then : 2627 enableval=$enable_silent_rules; 2628fi 2629 2630case $enable_silent_rules in # ((( 2631 yes) AM_DEFAULT_VERBOSITY=0;; 2632 no) AM_DEFAULT_VERBOSITY=1;; 2633 *) AM_DEFAULT_VERBOSITY=1;; 2634esac 2635am_make=${MAKE-make} 2636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2637$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2638if ${am_cv_make_support_nested_variables+:} false; then : 2639 $as_echo_n "(cached) " >&6 2640else 2641 if $as_echo 'TRUE=$(BAR$(V)) 2642BAR0=false 2643BAR1=true 2644V=1 2645am__doit: 2646 @$(TRUE) 2647.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2648 am_cv_make_support_nested_variables=yes 2649else 2650 am_cv_make_support_nested_variables=no 2651fi 2652fi 2653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2654$as_echo "$am_cv_make_support_nested_variables" >&6; } 2655if test $am_cv_make_support_nested_variables = yes; then 2656 AM_V='$(V)' 2657 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2658else 2659 AM_V=$AM_DEFAULT_VERBOSITY 2660 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2661fi 2662AM_BACKSLASH='\' 2663 2664if test "`cd $srcdir && pwd`" != "`pwd`"; then 2665 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2666 # is not polluted with repeated "-I." 2667 am__isrc=' -I$(srcdir)' 2668 # test to see if srcdir already configured 2669 if test -f $srcdir/config.status; then 2670 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2671 fi 2672fi 2673 2674# test whether we have cygpath 2675if test -z "$CYGPATH_W"; then 2676 if (cygpath --version) >/dev/null 2>/dev/null; then 2677 CYGPATH_W='cygpath -w' 2678 else 2679 CYGPATH_W=echo 2680 fi 2681fi 2682 2683 2684# Define the identity of the package. 2685 PACKAGE='xcalc' 2686 VERSION='1.0.6' 2687 2688 2689cat >>confdefs.h <<_ACEOF 2690#define PACKAGE "$PACKAGE" 2691_ACEOF 2692 2693 2694cat >>confdefs.h <<_ACEOF 2695#define VERSION "$VERSION" 2696_ACEOF 2697 2698# Some tools Automake needs. 2699 2700ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2701 2702 2703AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2704 2705 2706AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2707 2708 2709AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2710 2711 2712MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2713 2714# For better backward compatibility. To be removed once Automake 1.9.x 2715# dies out for good. For more background, see: 2716# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2717# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2718mkdir_p='$(MKDIR_P)' 2719 2720# We need awk for the "check" target (and possibly the TAP driver). The 2721# system "awk" is bad on some platforms. 2722# Always define AMTAR for backward compatibility. Yes, it's still used 2723# in the wild :-( We should find a proper way to deprecate it ... 2724AMTAR='$${TAR-tar}' 2725 2726 2727# We'll loop over all known methods to create a tar archive until one works. 2728_am_tools='gnutar pax cpio none' 2729 2730am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2731 2732 2733 2734 2735 2736 2737# POSIX will say in a future version that running "rm -f" with no argument 2738# is OK; and we want to be able to make that assumption in our Makefile 2739# recipes. So use an aggressive probe to check that the usage we want is 2740# actually supported "in the wild" to an acceptable degree. 2741# See automake bug#10828. 2742# To make any issue more visible, cause the running configure to be aborted 2743# by default if the 'rm' program in use doesn't match our expectations; the 2744# user can still override this though. 2745if rm -f && rm -fr && rm -rf; then : OK; else 2746 cat >&2 <<'END' 2747Oops! 2748 2749Your 'rm' program seems unable to run without file operands specified 2750on the command line, even when the '-f' option is present. This is contrary 2751to the behaviour of most rm programs out there, and not conforming with 2752the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2753 2754Please tell bug-automake@gnu.org about your system, including the value 2755of your $PATH and any error possibly output before this message. This 2756can help us improve future automake versions. 2757 2758END 2759 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2760 echo 'Configuration will proceed anyway, since you have set the' >&2 2761 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2762 echo >&2 2763 else 2764 cat >&2 <<'END' 2765Aborting the configuration process, to ensure you take notice of the issue. 2766 2767You can download and install GNU coreutils to get an 'rm' implementation 2768that behaves properly: <http://www.gnu.org/software/coreutils/>. 2769 2770If you want to complete the configuration process using your problematic 2771'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2772to "yes", and re-run configure. 2773 2774END 2775 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2776 fi 2777fi 2778 2779 2780# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792DEPDIR="${am__leading_dot}deps" 2793 2794ac_config_commands="$ac_config_commands depfiles" 2795 2796 2797am_make=${MAKE-make} 2798cat > confinc << 'END' 2799am__doit: 2800 @echo this is the am__doit target 2801.PHONY: am__doit 2802END 2803# If we don't find an include directive, just comment out the code. 2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2805$as_echo_n "checking for style of include used by $am_make... " >&6; } 2806am__include="#" 2807am__quote= 2808_am_result=none 2809# First try GNU make style include. 2810echo "include confinc" > confmf 2811# Ignore all kinds of additional output from 'make'. 2812case `$am_make -s -f confmf 2> /dev/null` in #( 2813*the\ am__doit\ target*) 2814 am__include=include 2815 am__quote= 2816 _am_result=GNU 2817 ;; 2818esac 2819# Now try BSD make style include. 2820if test "$am__include" = "#"; then 2821 echo '.include "confinc"' > confmf 2822 case `$am_make -s -f confmf 2> /dev/null` in #( 2823 *the\ am__doit\ target*) 2824 am__include=.include 2825 am__quote="\"" 2826 _am_result=BSD 2827 ;; 2828 esac 2829fi 2830 2831 2832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2833$as_echo "$_am_result" >&6; } 2834rm -f confinc confmf 2835 2836# Check whether --enable-dependency-tracking was given. 2837if test "${enable_dependency_tracking+set}" = set; then : 2838 enableval=$enable_dependency_tracking; 2839fi 2840 2841if test "x$enable_dependency_tracking" != xno; then 2842 am_depcomp="$ac_aux_dir/depcomp" 2843 AMDEPBACKSLASH='\' 2844 am__nodep='_no' 2845fi 2846 if test "x$enable_dependency_tracking" != xno; then 2847 AMDEP_TRUE= 2848 AMDEP_FALSE='#' 2849else 2850 AMDEP_TRUE='#' 2851 AMDEP_FALSE= 2852fi 2853 2854 2855ac_ext=c 2856ac_cpp='$CPP $CPPFLAGS' 2857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2859ac_compiler_gnu=$ac_cv_c_compiler_gnu 2860if test -n "$ac_tool_prefix"; then 2861 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2862set dummy ${ac_tool_prefix}gcc; ac_word=$2 2863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2864$as_echo_n "checking for $ac_word... " >&6; } 2865if ${ac_cv_prog_CC+:} false; then : 2866 $as_echo_n "(cached) " >&6 2867else 2868 if test -n "$CC"; then 2869 ac_cv_prog_CC="$CC" # Let the user override the test. 2870else 2871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2872for as_dir in $PATH 2873do 2874 IFS=$as_save_IFS 2875 test -z "$as_dir" && as_dir=. 2876 for ac_exec_ext in '' $ac_executable_extensions; do 2877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2878 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2880 break 2 2881 fi 2882done 2883 done 2884IFS=$as_save_IFS 2885 2886fi 2887fi 2888CC=$ac_cv_prog_CC 2889if test -n "$CC"; then 2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2891$as_echo "$CC" >&6; } 2892else 2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2894$as_echo "no" >&6; } 2895fi 2896 2897 2898fi 2899if test -z "$ac_cv_prog_CC"; then 2900 ac_ct_CC=$CC 2901 # Extract the first word of "gcc", so it can be a program name with args. 2902set dummy gcc; ac_word=$2 2903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2904$as_echo_n "checking for $ac_word... " >&6; } 2905if ${ac_cv_prog_ac_ct_CC+:} false; then : 2906 $as_echo_n "(cached) " >&6 2907else 2908 if test -n "$ac_ct_CC"; then 2909 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2910else 2911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2912for as_dir in $PATH 2913do 2914 IFS=$as_save_IFS 2915 test -z "$as_dir" && as_dir=. 2916 for ac_exec_ext in '' $ac_executable_extensions; do 2917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2918 ac_cv_prog_ac_ct_CC="gcc" 2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2920 break 2 2921 fi 2922done 2923 done 2924IFS=$as_save_IFS 2925 2926fi 2927fi 2928ac_ct_CC=$ac_cv_prog_ac_ct_CC 2929if test -n "$ac_ct_CC"; then 2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2931$as_echo "$ac_ct_CC" >&6; } 2932else 2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2934$as_echo "no" >&6; } 2935fi 2936 2937 if test "x$ac_ct_CC" = x; then 2938 CC="" 2939 else 2940 case $cross_compiling:$ac_tool_warned in 2941yes:) 2942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2944ac_tool_warned=yes ;; 2945esac 2946 CC=$ac_ct_CC 2947 fi 2948else 2949 CC="$ac_cv_prog_CC" 2950fi 2951 2952if test -z "$CC"; then 2953 if test -n "$ac_tool_prefix"; then 2954 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2955set dummy ${ac_tool_prefix}cc; ac_word=$2 2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2957$as_echo_n "checking for $ac_word... " >&6; } 2958if ${ac_cv_prog_CC+:} false; then : 2959 $as_echo_n "(cached) " >&6 2960else 2961 if test -n "$CC"; then 2962 ac_cv_prog_CC="$CC" # Let the user override the test. 2963else 2964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2965for as_dir in $PATH 2966do 2967 IFS=$as_save_IFS 2968 test -z "$as_dir" && as_dir=. 2969 for ac_exec_ext in '' $ac_executable_extensions; do 2970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2971 ac_cv_prog_CC="${ac_tool_prefix}cc" 2972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2973 break 2 2974 fi 2975done 2976 done 2977IFS=$as_save_IFS 2978 2979fi 2980fi 2981CC=$ac_cv_prog_CC 2982if test -n "$CC"; then 2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2984$as_echo "$CC" >&6; } 2985else 2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2987$as_echo "no" >&6; } 2988fi 2989 2990 2991 fi 2992fi 2993if test -z "$CC"; then 2994 # Extract the first word of "cc", so it can be a program name with args. 2995set dummy cc; ac_word=$2 2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2997$as_echo_n "checking for $ac_word... " >&6; } 2998if ${ac_cv_prog_CC+:} false; then : 2999 $as_echo_n "(cached) " >&6 3000else 3001 if test -n "$CC"; then 3002 ac_cv_prog_CC="$CC" # Let the user override the test. 3003else 3004 ac_prog_rejected=no 3005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3006for as_dir in $PATH 3007do 3008 IFS=$as_save_IFS 3009 test -z "$as_dir" && as_dir=. 3010 for ac_exec_ext in '' $ac_executable_extensions; do 3011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3012 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3013 ac_prog_rejected=yes 3014 continue 3015 fi 3016 ac_cv_prog_CC="cc" 3017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3018 break 2 3019 fi 3020done 3021 done 3022IFS=$as_save_IFS 3023 3024if test $ac_prog_rejected = yes; then 3025 # We found a bogon in the path, so make sure we never use it. 3026 set dummy $ac_cv_prog_CC 3027 shift 3028 if test $# != 0; then 3029 # We chose a different compiler from the bogus one. 3030 # However, it has the same basename, so the bogon will be chosen 3031 # first if we set CC to just the basename; use the full file name. 3032 shift 3033 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3034 fi 3035fi 3036fi 3037fi 3038CC=$ac_cv_prog_CC 3039if test -n "$CC"; then 3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3041$as_echo "$CC" >&6; } 3042else 3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3044$as_echo "no" >&6; } 3045fi 3046 3047 3048fi 3049if test -z "$CC"; then 3050 if test -n "$ac_tool_prefix"; then 3051 for ac_prog in cl.exe 3052 do 3053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3054set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3056$as_echo_n "checking for $ac_word... " >&6; } 3057if ${ac_cv_prog_CC+:} false; then : 3058 $as_echo_n "(cached) " >&6 3059else 3060 if test -n "$CC"; then 3061 ac_cv_prog_CC="$CC" # Let the user override the test. 3062else 3063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3064for as_dir in $PATH 3065do 3066 IFS=$as_save_IFS 3067 test -z "$as_dir" && as_dir=. 3068 for ac_exec_ext in '' $ac_executable_extensions; do 3069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3070 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3072 break 2 3073 fi 3074done 3075 done 3076IFS=$as_save_IFS 3077 3078fi 3079fi 3080CC=$ac_cv_prog_CC 3081if test -n "$CC"; then 3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3083$as_echo "$CC" >&6; } 3084else 3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3086$as_echo "no" >&6; } 3087fi 3088 3089 3090 test -n "$CC" && break 3091 done 3092fi 3093if test -z "$CC"; then 3094 ac_ct_CC=$CC 3095 for ac_prog in cl.exe 3096do 3097 # Extract the first word of "$ac_prog", so it can be a program name with args. 3098set dummy $ac_prog; ac_word=$2 3099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3100$as_echo_n "checking for $ac_word... " >&6; } 3101if ${ac_cv_prog_ac_ct_CC+:} false; then : 3102 $as_echo_n "(cached) " >&6 3103else 3104 if test -n "$ac_ct_CC"; then 3105 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3106else 3107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3108for as_dir in $PATH 3109do 3110 IFS=$as_save_IFS 3111 test -z "$as_dir" && as_dir=. 3112 for ac_exec_ext in '' $ac_executable_extensions; do 3113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3114 ac_cv_prog_ac_ct_CC="$ac_prog" 3115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3116 break 2 3117 fi 3118done 3119 done 3120IFS=$as_save_IFS 3121 3122fi 3123fi 3124ac_ct_CC=$ac_cv_prog_ac_ct_CC 3125if test -n "$ac_ct_CC"; then 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3127$as_echo "$ac_ct_CC" >&6; } 3128else 3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3130$as_echo "no" >&6; } 3131fi 3132 3133 3134 test -n "$ac_ct_CC" && break 3135done 3136 3137 if test "x$ac_ct_CC" = x; then 3138 CC="" 3139 else 3140 case $cross_compiling:$ac_tool_warned in 3141yes:) 3142{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3143$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3144ac_tool_warned=yes ;; 3145esac 3146 CC=$ac_ct_CC 3147 fi 3148fi 3149 3150fi 3151 3152 3153test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3155as_fn_error $? "no acceptable C compiler found in \$PATH 3156See \`config.log' for more details" "$LINENO" 5; } 3157 3158# Provide some information about the compiler. 3159$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3160set X $ac_compile 3161ac_compiler=$2 3162for ac_option in --version -v -V -qversion; do 3163 { { ac_try="$ac_compiler $ac_option >&5" 3164case "(($ac_try" in 3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3166 *) ac_try_echo=$ac_try;; 3167esac 3168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3169$as_echo "$ac_try_echo"; } >&5 3170 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3171 ac_status=$? 3172 if test -s conftest.err; then 3173 sed '10a\ 3174... rest of stderr output deleted ... 3175 10q' conftest.err >conftest.er1 3176 cat conftest.er1 >&5 3177 fi 3178 rm -f conftest.er1 conftest.err 3179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3180 test $ac_status = 0; } 3181done 3182 3183cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3184/* end confdefs.h. */ 3185 3186int 3187main () 3188{ 3189 3190 ; 3191 return 0; 3192} 3193_ACEOF 3194ac_clean_files_save=$ac_clean_files 3195ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3196# Try to create an executable without -o first, disregard a.out. 3197# It will help us diagnose broken compilers, and finding out an intuition 3198# of exeext. 3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3200$as_echo_n "checking whether the C compiler works... " >&6; } 3201ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3202 3203# The possible output files: 3204ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3205 3206ac_rmfiles= 3207for ac_file in $ac_files 3208do 3209 case $ac_file in 3210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3211 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3212 esac 3213done 3214rm -f $ac_rmfiles 3215 3216if { { ac_try="$ac_link_default" 3217case "(($ac_try" in 3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3219 *) ac_try_echo=$ac_try;; 3220esac 3221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3222$as_echo "$ac_try_echo"; } >&5 3223 (eval "$ac_link_default") 2>&5 3224 ac_status=$? 3225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3226 test $ac_status = 0; }; then : 3227 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3228# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3229# in a Makefile. We should not override ac_cv_exeext if it was cached, 3230# so that the user can short-circuit this test for compilers unknown to 3231# Autoconf. 3232for ac_file in $ac_files '' 3233do 3234 test -f "$ac_file" || continue 3235 case $ac_file in 3236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3237 ;; 3238 [ab].out ) 3239 # We found the default executable, but exeext='' is most 3240 # certainly right. 3241 break;; 3242 *.* ) 3243 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3244 then :; else 3245 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3246 fi 3247 # We set ac_cv_exeext here because the later test for it is not 3248 # safe: cross compilers may not add the suffix if given an `-o' 3249 # argument, so we may need to know it at that point already. 3250 # Even if this section looks crufty: it has the advantage of 3251 # actually working. 3252 break;; 3253 * ) 3254 break;; 3255 esac 3256done 3257test "$ac_cv_exeext" = no && ac_cv_exeext= 3258 3259else 3260 ac_file='' 3261fi 3262if test -z "$ac_file"; then : 3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3264$as_echo "no" >&6; } 3265$as_echo "$as_me: failed program was:" >&5 3266sed 's/^/| /' conftest.$ac_ext >&5 3267 3268{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3269$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3270as_fn_error 77 "C compiler cannot create executables 3271See \`config.log' for more details" "$LINENO" 5; } 3272else 3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3274$as_echo "yes" >&6; } 3275fi 3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3277$as_echo_n "checking for C compiler default output file name... " >&6; } 3278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3279$as_echo "$ac_file" >&6; } 3280ac_exeext=$ac_cv_exeext 3281 3282rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3283ac_clean_files=$ac_clean_files_save 3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3285$as_echo_n "checking for suffix of executables... " >&6; } 3286if { { ac_try="$ac_link" 3287case "(($ac_try" in 3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3289 *) ac_try_echo=$ac_try;; 3290esac 3291eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3292$as_echo "$ac_try_echo"; } >&5 3293 (eval "$ac_link") 2>&5 3294 ac_status=$? 3295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3296 test $ac_status = 0; }; then : 3297 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3298# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3299# work properly (i.e., refer to `conftest.exe'), while it won't with 3300# `rm'. 3301for ac_file in conftest.exe conftest conftest.*; do 3302 test -f "$ac_file" || continue 3303 case $ac_file in 3304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3305 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3306 break;; 3307 * ) break;; 3308 esac 3309done 3310else 3311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3313as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3314See \`config.log' for more details" "$LINENO" 5; } 3315fi 3316rm -f conftest conftest$ac_cv_exeext 3317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3318$as_echo "$ac_cv_exeext" >&6; } 3319 3320rm -f conftest.$ac_ext 3321EXEEXT=$ac_cv_exeext 3322ac_exeext=$EXEEXT 3323cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3324/* end confdefs.h. */ 3325#include <stdio.h> 3326int 3327main () 3328{ 3329FILE *f = fopen ("conftest.out", "w"); 3330 return ferror (f) || fclose (f) != 0; 3331 3332 ; 3333 return 0; 3334} 3335_ACEOF 3336ac_clean_files="$ac_clean_files conftest.out" 3337# Check that the compiler produces executables we can run. If not, either 3338# the compiler is broken, or we cross compile. 3339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3340$as_echo_n "checking whether we are cross compiling... " >&6; } 3341if test "$cross_compiling" != yes; then 3342 { { ac_try="$ac_link" 3343case "(($ac_try" in 3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3345 *) ac_try_echo=$ac_try;; 3346esac 3347eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3348$as_echo "$ac_try_echo"; } >&5 3349 (eval "$ac_link") 2>&5 3350 ac_status=$? 3351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3352 test $ac_status = 0; } 3353 if { ac_try='./conftest$ac_cv_exeext' 3354 { { case "(($ac_try" in 3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3356 *) ac_try_echo=$ac_try;; 3357esac 3358eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3359$as_echo "$ac_try_echo"; } >&5 3360 (eval "$ac_try") 2>&5 3361 ac_status=$? 3362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3363 test $ac_status = 0; }; }; then 3364 cross_compiling=no 3365 else 3366 if test "$cross_compiling" = maybe; then 3367 cross_compiling=yes 3368 else 3369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3370$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3371as_fn_error $? "cannot run C compiled programs. 3372If you meant to cross compile, use \`--host'. 3373See \`config.log' for more details" "$LINENO" 5; } 3374 fi 3375 fi 3376fi 3377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3378$as_echo "$cross_compiling" >&6; } 3379 3380rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3381ac_clean_files=$ac_clean_files_save 3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3383$as_echo_n "checking for suffix of object files... " >&6; } 3384if ${ac_cv_objext+:} false; then : 3385 $as_echo_n "(cached) " >&6 3386else 3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3388/* end confdefs.h. */ 3389 3390int 3391main () 3392{ 3393 3394 ; 3395 return 0; 3396} 3397_ACEOF 3398rm -f conftest.o conftest.obj 3399if { { ac_try="$ac_compile" 3400case "(($ac_try" in 3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3402 *) ac_try_echo=$ac_try;; 3403esac 3404eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3405$as_echo "$ac_try_echo"; } >&5 3406 (eval "$ac_compile") 2>&5 3407 ac_status=$? 3408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3409 test $ac_status = 0; }; then : 3410 for ac_file in conftest.o conftest.obj conftest.*; do 3411 test -f "$ac_file" || continue; 3412 case $ac_file in 3413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3414 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3415 break;; 3416 esac 3417done 3418else 3419 $as_echo "$as_me: failed program was:" >&5 3420sed 's/^/| /' conftest.$ac_ext >&5 3421 3422{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3424as_fn_error $? "cannot compute suffix of object files: cannot compile 3425See \`config.log' for more details" "$LINENO" 5; } 3426fi 3427rm -f conftest.$ac_cv_objext conftest.$ac_ext 3428fi 3429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3430$as_echo "$ac_cv_objext" >&6; } 3431OBJEXT=$ac_cv_objext 3432ac_objext=$OBJEXT 3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3434$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3435if ${ac_cv_c_compiler_gnu+:} false; then : 3436 $as_echo_n "(cached) " >&6 3437else 3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3439/* end confdefs.h. */ 3440 3441int 3442main () 3443{ 3444#ifndef __GNUC__ 3445 choke me 3446#endif 3447 3448 ; 3449 return 0; 3450} 3451_ACEOF 3452if ac_fn_c_try_compile "$LINENO"; then : 3453 ac_compiler_gnu=yes 3454else 3455 ac_compiler_gnu=no 3456fi 3457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3458ac_cv_c_compiler_gnu=$ac_compiler_gnu 3459 3460fi 3461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3462$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3463if test $ac_compiler_gnu = yes; then 3464 GCC=yes 3465else 3466 GCC= 3467fi 3468ac_test_CFLAGS=${CFLAGS+set} 3469ac_save_CFLAGS=$CFLAGS 3470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3471$as_echo_n "checking whether $CC accepts -g... " >&6; } 3472if ${ac_cv_prog_cc_g+:} false; then : 3473 $as_echo_n "(cached) " >&6 3474else 3475 ac_save_c_werror_flag=$ac_c_werror_flag 3476 ac_c_werror_flag=yes 3477 ac_cv_prog_cc_g=no 3478 CFLAGS="-g" 3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3480/* end confdefs.h. */ 3481 3482int 3483main () 3484{ 3485 3486 ; 3487 return 0; 3488} 3489_ACEOF 3490if ac_fn_c_try_compile "$LINENO"; then : 3491 ac_cv_prog_cc_g=yes 3492else 3493 CFLAGS="" 3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3495/* end confdefs.h. */ 3496 3497int 3498main () 3499{ 3500 3501 ; 3502 return 0; 3503} 3504_ACEOF 3505if ac_fn_c_try_compile "$LINENO"; then : 3506 3507else 3508 ac_c_werror_flag=$ac_save_c_werror_flag 3509 CFLAGS="-g" 3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3511/* end confdefs.h. */ 3512 3513int 3514main () 3515{ 3516 3517 ; 3518 return 0; 3519} 3520_ACEOF 3521if ac_fn_c_try_compile "$LINENO"; then : 3522 ac_cv_prog_cc_g=yes 3523fi 3524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3525fi 3526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3527fi 3528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3529 ac_c_werror_flag=$ac_save_c_werror_flag 3530fi 3531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3532$as_echo "$ac_cv_prog_cc_g" >&6; } 3533if test "$ac_test_CFLAGS" = set; then 3534 CFLAGS=$ac_save_CFLAGS 3535elif test $ac_cv_prog_cc_g = yes; then 3536 if test "$GCC" = yes; then 3537 CFLAGS="-g -O2" 3538 else 3539 CFLAGS="-g" 3540 fi 3541else 3542 if test "$GCC" = yes; then 3543 CFLAGS="-O2" 3544 else 3545 CFLAGS= 3546 fi 3547fi 3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3549$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3550if ${ac_cv_prog_cc_c89+:} false; then : 3551 $as_echo_n "(cached) " >&6 3552else 3553 ac_cv_prog_cc_c89=no 3554ac_save_CC=$CC 3555cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3556/* end confdefs.h. */ 3557#include <stdarg.h> 3558#include <stdio.h> 3559struct stat; 3560/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3561struct buf { int x; }; 3562FILE * (*rcsopen) (struct buf *, struct stat *, int); 3563static char *e (p, i) 3564 char **p; 3565 int i; 3566{ 3567 return p[i]; 3568} 3569static char *f (char * (*g) (char **, int), char **p, ...) 3570{ 3571 char *s; 3572 va_list v; 3573 va_start (v,p); 3574 s = g (p, va_arg (v,int)); 3575 va_end (v); 3576 return s; 3577} 3578 3579/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3580 function prototypes and stuff, but not '\xHH' hex character constants. 3581 These don't provoke an error unfortunately, instead are silently treated 3582 as 'x'. The following induces an error, until -std is added to get 3583 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3584 array size at least. It's necessary to write '\x00'==0 to get something 3585 that's true only with -std. */ 3586int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3587 3588/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3589 inside strings and character constants. */ 3590#define FOO(x) 'x' 3591int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3592 3593int test (int i, double x); 3594struct s1 {int (*f) (int a);}; 3595struct s2 {int (*f) (double a);}; 3596int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3597int argc; 3598char **argv; 3599int 3600main () 3601{ 3602return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3603 ; 3604 return 0; 3605} 3606_ACEOF 3607for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3608 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3609do 3610 CC="$ac_save_CC $ac_arg" 3611 if ac_fn_c_try_compile "$LINENO"; then : 3612 ac_cv_prog_cc_c89=$ac_arg 3613fi 3614rm -f core conftest.err conftest.$ac_objext 3615 test "x$ac_cv_prog_cc_c89" != "xno" && break 3616done 3617rm -f conftest.$ac_ext 3618CC=$ac_save_CC 3619 3620fi 3621# AC_CACHE_VAL 3622case "x$ac_cv_prog_cc_c89" in 3623 x) 3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3625$as_echo "none needed" >&6; } ;; 3626 xno) 3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3628$as_echo "unsupported" >&6; } ;; 3629 *) 3630 CC="$CC $ac_cv_prog_cc_c89" 3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3632$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3633esac 3634if test "x$ac_cv_prog_cc_c89" != xno; then : 3635 3636fi 3637 3638ac_ext=c 3639ac_cpp='$CPP $CPPFLAGS' 3640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3642ac_compiler_gnu=$ac_cv_c_compiler_gnu 3643 3644ac_ext=c 3645ac_cpp='$CPP $CPPFLAGS' 3646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3648ac_compiler_gnu=$ac_cv_c_compiler_gnu 3649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3650$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3651if ${am_cv_prog_cc_c_o+:} false; then : 3652 $as_echo_n "(cached) " >&6 3653else 3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3655/* end confdefs.h. */ 3656 3657int 3658main () 3659{ 3660 3661 ; 3662 return 0; 3663} 3664_ACEOF 3665 # Make sure it works both with $CC and with simple cc. 3666 # Following AC_PROG_CC_C_O, we do the test twice because some 3667 # compilers refuse to overwrite an existing .o file with -o, 3668 # though they will create one. 3669 am_cv_prog_cc_c_o=yes 3670 for am_i in 1 2; do 3671 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3672 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3673 ac_status=$? 3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3675 (exit $ac_status); } \ 3676 && test -f conftest2.$ac_objext; then 3677 : OK 3678 else 3679 am_cv_prog_cc_c_o=no 3680 break 3681 fi 3682 done 3683 rm -f core conftest* 3684 unset am_i 3685fi 3686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3687$as_echo "$am_cv_prog_cc_c_o" >&6; } 3688if test "$am_cv_prog_cc_c_o" != yes; then 3689 # Losing compiler, so override with the script. 3690 # FIXME: It is wrong to rewrite CC. 3691 # But if we don't then we get into trouble of one sort or another. 3692 # A longer-term fix would be to have automake use am__CC in this case, 3693 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3694 CC="$am_aux_dir/compile $CC" 3695fi 3696ac_ext=c 3697ac_cpp='$CPP $CPPFLAGS' 3698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3700ac_compiler_gnu=$ac_cv_c_compiler_gnu 3701 3702 3703depcc="$CC" am_compiler_list= 3704 3705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3706$as_echo_n "checking dependency style of $depcc... " >&6; } 3707if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3708 $as_echo_n "(cached) " >&6 3709else 3710 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3711 # We make a subdir and do the tests there. Otherwise we can end up 3712 # making bogus files that we don't know about and never remove. For 3713 # instance it was reported that on HP-UX the gcc test will end up 3714 # making a dummy file named 'D' -- because '-MD' means "put the output 3715 # in D". 3716 rm -rf conftest.dir 3717 mkdir conftest.dir 3718 # Copy depcomp to subdir because otherwise we won't find it if we're 3719 # using a relative directory. 3720 cp "$am_depcomp" conftest.dir 3721 cd conftest.dir 3722 # We will build objects and dependencies in a subdirectory because 3723 # it helps to detect inapplicable dependency modes. For instance 3724 # both Tru64's cc and ICC support -MD to output dependencies as a 3725 # side effect of compilation, but ICC will put the dependencies in 3726 # the current directory while Tru64 will put them in the object 3727 # directory. 3728 mkdir sub 3729 3730 am_cv_CC_dependencies_compiler_type=none 3731 if test "$am_compiler_list" = ""; then 3732 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3733 fi 3734 am__universal=false 3735 case " $depcc " in #( 3736 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3737 esac 3738 3739 for depmode in $am_compiler_list; do 3740 # Setup a source with many dependencies, because some compilers 3741 # like to wrap large dependency lists on column 80 (with \), and 3742 # we should not choose a depcomp mode which is confused by this. 3743 # 3744 # We need to recreate these files for each test, as the compiler may 3745 # overwrite some of them when testing with obscure command lines. 3746 # This happens at least with the AIX C compiler. 3747 : > sub/conftest.c 3748 for i in 1 2 3 4 5 6; do 3749 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3750 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3751 # Solaris 10 /bin/sh. 3752 echo '/* dummy */' > sub/conftst$i.h 3753 done 3754 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3755 3756 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3757 # mode. It turns out that the SunPro C++ compiler does not properly 3758 # handle '-M -o', and we need to detect this. Also, some Intel 3759 # versions had trouble with output in subdirs. 3760 am__obj=sub/conftest.${OBJEXT-o} 3761 am__minus_obj="-o $am__obj" 3762 case $depmode in 3763 gcc) 3764 # This depmode causes a compiler race in universal mode. 3765 test "$am__universal" = false || continue 3766 ;; 3767 nosideeffect) 3768 # After this tag, mechanisms are not by side-effect, so they'll 3769 # only be used when explicitly requested. 3770 if test "x$enable_dependency_tracking" = xyes; then 3771 continue 3772 else 3773 break 3774 fi 3775 ;; 3776 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3777 # This compiler won't grok '-c -o', but also, the minuso test has 3778 # not run yet. These depmodes are late enough in the game, and 3779 # so weak that their functioning should not be impacted. 3780 am__obj=conftest.${OBJEXT-o} 3781 am__minus_obj= 3782 ;; 3783 none) break ;; 3784 esac 3785 if depmode=$depmode \ 3786 source=sub/conftest.c object=$am__obj \ 3787 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3788 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3789 >/dev/null 2>conftest.err && 3790 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3791 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3792 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3793 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3794 # icc doesn't choke on unknown options, it will just issue warnings 3795 # or remarks (even with -Werror). So we grep stderr for any message 3796 # that says an option was ignored or not supported. 3797 # When given -MP, icc 7.0 and 7.1 complain thusly: 3798 # icc: Command line warning: ignoring option '-M'; no argument required 3799 # The diagnosis changed in icc 8.0: 3800 # icc: Command line remark: option '-MP' not supported 3801 if (grep 'ignoring option' conftest.err || 3802 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3803 am_cv_CC_dependencies_compiler_type=$depmode 3804 break 3805 fi 3806 fi 3807 done 3808 3809 cd .. 3810 rm -rf conftest.dir 3811else 3812 am_cv_CC_dependencies_compiler_type=none 3813fi 3814 3815fi 3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3817$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3818CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3819 3820 if 3821 test "x$enable_dependency_tracking" != xno \ 3822 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3823 am__fastdepCC_TRUE= 3824 am__fastdepCC_FALSE='#' 3825else 3826 am__fastdepCC_TRUE='#' 3827 am__fastdepCC_FALSE= 3828fi 3829 3830 3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3832$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3833if ${ac_cv_prog_cc_c99+:} false; then : 3834 $as_echo_n "(cached) " >&6 3835else 3836 ac_cv_prog_cc_c99=no 3837ac_save_CC=$CC 3838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3839/* end confdefs.h. */ 3840#include <stdarg.h> 3841#include <stdbool.h> 3842#include <stdlib.h> 3843#include <wchar.h> 3844#include <stdio.h> 3845 3846// Check varargs macros. These examples are taken from C99 6.10.3.5. 3847#define debug(...) fprintf (stderr, __VA_ARGS__) 3848#define showlist(...) puts (#__VA_ARGS__) 3849#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3850static void 3851test_varargs_macros (void) 3852{ 3853 int x = 1234; 3854 int y = 5678; 3855 debug ("Flag"); 3856 debug ("X = %d\n", x); 3857 showlist (The first, second, and third items.); 3858 report (x>y, "x is %d but y is %d", x, y); 3859} 3860 3861// Check long long types. 3862#define BIG64 18446744073709551615ull 3863#define BIG32 4294967295ul 3864#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3865#if !BIG_OK 3866 your preprocessor is broken; 3867#endif 3868#if BIG_OK 3869#else 3870 your preprocessor is broken; 3871#endif 3872static long long int bignum = -9223372036854775807LL; 3873static unsigned long long int ubignum = BIG64; 3874 3875struct incomplete_array 3876{ 3877 int datasize; 3878 double data[]; 3879}; 3880 3881struct named_init { 3882 int number; 3883 const wchar_t *name; 3884 double average; 3885}; 3886 3887typedef const char *ccp; 3888 3889static inline int 3890test_restrict (ccp restrict text) 3891{ 3892 // See if C++-style comments work. 3893 // Iterate through items via the restricted pointer. 3894 // Also check for declarations in for loops. 3895 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3896 continue; 3897 return 0; 3898} 3899 3900// Check varargs and va_copy. 3901static void 3902test_varargs (const char *format, ...) 3903{ 3904 va_list args; 3905 va_start (args, format); 3906 va_list args_copy; 3907 va_copy (args_copy, args); 3908 3909 const char *str; 3910 int number; 3911 float fnumber; 3912 3913 while (*format) 3914 { 3915 switch (*format++) 3916 { 3917 case 's': // string 3918 str = va_arg (args_copy, const char *); 3919 break; 3920 case 'd': // int 3921 number = va_arg (args_copy, int); 3922 break; 3923 case 'f': // float 3924 fnumber = va_arg (args_copy, double); 3925 break; 3926 default: 3927 break; 3928 } 3929 } 3930 va_end (args_copy); 3931 va_end (args); 3932} 3933 3934int 3935main () 3936{ 3937 3938 // Check bool. 3939 _Bool success = false; 3940 3941 // Check restrict. 3942 if (test_restrict ("String literal") == 0) 3943 success = true; 3944 char *restrict newvar = "Another string"; 3945 3946 // Check varargs. 3947 test_varargs ("s, d' f .", "string", 65, 34.234); 3948 test_varargs_macros (); 3949 3950 // Check flexible array members. 3951 struct incomplete_array *ia = 3952 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3953 ia->datasize = 10; 3954 for (int i = 0; i < ia->datasize; ++i) 3955 ia->data[i] = i * 1.234; 3956 3957 // Check named initializers. 3958 struct named_init ni = { 3959 .number = 34, 3960 .name = L"Test wide string", 3961 .average = 543.34343, 3962 }; 3963 3964 ni.number = 58; 3965 3966 int dynamic_array[ni.number]; 3967 dynamic_array[ni.number - 1] = 543; 3968 3969 // work around unused variable warnings 3970 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3971 || dynamic_array[ni.number - 1] != 543); 3972 3973 ; 3974 return 0; 3975} 3976_ACEOF 3977for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3978do 3979 CC="$ac_save_CC $ac_arg" 3980 if ac_fn_c_try_compile "$LINENO"; then : 3981 ac_cv_prog_cc_c99=$ac_arg 3982fi 3983rm -f core conftest.err conftest.$ac_objext 3984 test "x$ac_cv_prog_cc_c99" != "xno" && break 3985done 3986rm -f conftest.$ac_ext 3987CC=$ac_save_CC 3988 3989fi 3990# AC_CACHE_VAL 3991case "x$ac_cv_prog_cc_c99" in 3992 x) 3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3994$as_echo "none needed" >&6; } ;; 3995 xno) 3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3997$as_echo "unsupported" >&6; } ;; 3998 *) 3999 CC="$CC $ac_cv_prog_cc_c99" 4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4001$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4002esac 4003if test "x$ac_cv_prog_cc_c99" != xno; then : 4004 4005fi 4006 4007 4008 4009ac_ext=c 4010ac_cpp='$CPP $CPPFLAGS' 4011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4013ac_compiler_gnu=$ac_cv_c_compiler_gnu 4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4015$as_echo_n "checking how to run the C preprocessor... " >&6; } 4016# On Suns, sometimes $CPP names a directory. 4017if test -n "$CPP" && test -d "$CPP"; then 4018 CPP= 4019fi 4020if test -z "$CPP"; then 4021 if ${ac_cv_prog_CPP+:} false; then : 4022 $as_echo_n "(cached) " >&6 4023else 4024 # Double quotes because CPP needs to be expanded 4025 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4026 do 4027 ac_preproc_ok=false 4028for ac_c_preproc_warn_flag in '' yes 4029do 4030 # Use a header file that comes with gcc, so configuring glibc 4031 # with a fresh cross-compiler works. 4032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4033 # <limits.h> exists even on freestanding compilers. 4034 # On the NeXT, cc -E runs the code through the compiler's parser, 4035 # not just through cpp. "Syntax error" is here to catch this case. 4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4037/* end confdefs.h. */ 4038#ifdef __STDC__ 4039# include <limits.h> 4040#else 4041# include <assert.h> 4042#endif 4043 Syntax error 4044_ACEOF 4045if ac_fn_c_try_cpp "$LINENO"; then : 4046 4047else 4048 # Broken: fails on valid input. 4049continue 4050fi 4051rm -f conftest.err conftest.i conftest.$ac_ext 4052 4053 # OK, works on sane cases. Now check whether nonexistent headers 4054 # can be detected and how. 4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4056/* end confdefs.h. */ 4057#include <ac_nonexistent.h> 4058_ACEOF 4059if ac_fn_c_try_cpp "$LINENO"; then : 4060 # Broken: success on invalid input. 4061continue 4062else 4063 # Passes both tests. 4064ac_preproc_ok=: 4065break 4066fi 4067rm -f conftest.err conftest.i conftest.$ac_ext 4068 4069done 4070# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4071rm -f conftest.i conftest.err conftest.$ac_ext 4072if $ac_preproc_ok; then : 4073 break 4074fi 4075 4076 done 4077 ac_cv_prog_CPP=$CPP 4078 4079fi 4080 CPP=$ac_cv_prog_CPP 4081else 4082 ac_cv_prog_CPP=$CPP 4083fi 4084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4085$as_echo "$CPP" >&6; } 4086ac_preproc_ok=false 4087for ac_c_preproc_warn_flag in '' yes 4088do 4089 # Use a header file that comes with gcc, so configuring glibc 4090 # with a fresh cross-compiler works. 4091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4092 # <limits.h> exists even on freestanding compilers. 4093 # On the NeXT, cc -E runs the code through the compiler's parser, 4094 # not just through cpp. "Syntax error" is here to catch this case. 4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4096/* end confdefs.h. */ 4097#ifdef __STDC__ 4098# include <limits.h> 4099#else 4100# include <assert.h> 4101#endif 4102 Syntax error 4103_ACEOF 4104if ac_fn_c_try_cpp "$LINENO"; then : 4105 4106else 4107 # Broken: fails on valid input. 4108continue 4109fi 4110rm -f conftest.err conftest.i conftest.$ac_ext 4111 4112 # OK, works on sane cases. Now check whether nonexistent headers 4113 # can be detected and how. 4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4115/* end confdefs.h. */ 4116#include <ac_nonexistent.h> 4117_ACEOF 4118if ac_fn_c_try_cpp "$LINENO"; then : 4119 # Broken: success on invalid input. 4120continue 4121else 4122 # Passes both tests. 4123ac_preproc_ok=: 4124break 4125fi 4126rm -f conftest.err conftest.i conftest.$ac_ext 4127 4128done 4129# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4130rm -f conftest.i conftest.err conftest.$ac_ext 4131if $ac_preproc_ok; then : 4132 4133else 4134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4136as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4137See \`config.log' for more details" "$LINENO" 5; } 4138fi 4139 4140ac_ext=c 4141ac_cpp='$CPP $CPPFLAGS' 4142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4144ac_compiler_gnu=$ac_cv_c_compiler_gnu 4145 4146 4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4148$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4149if ${ac_cv_path_GREP+:} false; then : 4150 $as_echo_n "(cached) " >&6 4151else 4152 if test -z "$GREP"; then 4153 ac_path_GREP_found=false 4154 # Loop through the user's path and test for each of PROGNAME-LIST 4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4156for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4157do 4158 IFS=$as_save_IFS 4159 test -z "$as_dir" && as_dir=. 4160 for ac_prog in grep ggrep; do 4161 for ac_exec_ext in '' $ac_executable_extensions; do 4162 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4163 as_fn_executable_p "$ac_path_GREP" || continue 4164# Check for GNU ac_path_GREP and select it if it is found. 4165 # Check for GNU $ac_path_GREP 4166case `"$ac_path_GREP" --version 2>&1` in 4167*GNU*) 4168 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4169*) 4170 ac_count=0 4171 $as_echo_n 0123456789 >"conftest.in" 4172 while : 4173 do 4174 cat "conftest.in" "conftest.in" >"conftest.tmp" 4175 mv "conftest.tmp" "conftest.in" 4176 cp "conftest.in" "conftest.nl" 4177 $as_echo 'GREP' >> "conftest.nl" 4178 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4180 as_fn_arith $ac_count + 1 && ac_count=$as_val 4181 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4182 # Best one so far, save it but keep looking for a better one 4183 ac_cv_path_GREP="$ac_path_GREP" 4184 ac_path_GREP_max=$ac_count 4185 fi 4186 # 10*(2^10) chars as input seems more than enough 4187 test $ac_count -gt 10 && break 4188 done 4189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4190esac 4191 4192 $ac_path_GREP_found && break 3 4193 done 4194 done 4195 done 4196IFS=$as_save_IFS 4197 if test -z "$ac_cv_path_GREP"; then 4198 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4199 fi 4200else 4201 ac_cv_path_GREP=$GREP 4202fi 4203 4204fi 4205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4206$as_echo "$ac_cv_path_GREP" >&6; } 4207 GREP="$ac_cv_path_GREP" 4208 4209 4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4211$as_echo_n "checking for egrep... " >&6; } 4212if ${ac_cv_path_EGREP+:} false; then : 4213 $as_echo_n "(cached) " >&6 4214else 4215 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4216 then ac_cv_path_EGREP="$GREP -E" 4217 else 4218 if test -z "$EGREP"; then 4219 ac_path_EGREP_found=false 4220 # Loop through the user's path and test for each of PROGNAME-LIST 4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4222for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4223do 4224 IFS=$as_save_IFS 4225 test -z "$as_dir" && as_dir=. 4226 for ac_prog in egrep; do 4227 for ac_exec_ext in '' $ac_executable_extensions; do 4228 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4229 as_fn_executable_p "$ac_path_EGREP" || continue 4230# Check for GNU ac_path_EGREP and select it if it is found. 4231 # Check for GNU $ac_path_EGREP 4232case `"$ac_path_EGREP" --version 2>&1` in 4233*GNU*) 4234 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4235*) 4236 ac_count=0 4237 $as_echo_n 0123456789 >"conftest.in" 4238 while : 4239 do 4240 cat "conftest.in" "conftest.in" >"conftest.tmp" 4241 mv "conftest.tmp" "conftest.in" 4242 cp "conftest.in" "conftest.nl" 4243 $as_echo 'EGREP' >> "conftest.nl" 4244 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4246 as_fn_arith $ac_count + 1 && ac_count=$as_val 4247 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4248 # Best one so far, save it but keep looking for a better one 4249 ac_cv_path_EGREP="$ac_path_EGREP" 4250 ac_path_EGREP_max=$ac_count 4251 fi 4252 # 10*(2^10) chars as input seems more than enough 4253 test $ac_count -gt 10 && break 4254 done 4255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4256esac 4257 4258 $ac_path_EGREP_found && break 3 4259 done 4260 done 4261 done 4262IFS=$as_save_IFS 4263 if test -z "$ac_cv_path_EGREP"; then 4264 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4265 fi 4266else 4267 ac_cv_path_EGREP=$EGREP 4268fi 4269 4270 fi 4271fi 4272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4273$as_echo "$ac_cv_path_EGREP" >&6; } 4274 EGREP="$ac_cv_path_EGREP" 4275 4276 4277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4278$as_echo_n "checking for ANSI C header files... " >&6; } 4279if ${ac_cv_header_stdc+:} false; then : 4280 $as_echo_n "(cached) " >&6 4281else 4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4283/* end confdefs.h. */ 4284#include <stdlib.h> 4285#include <stdarg.h> 4286#include <string.h> 4287#include <float.h> 4288 4289int 4290main () 4291{ 4292 4293 ; 4294 return 0; 4295} 4296_ACEOF 4297if ac_fn_c_try_compile "$LINENO"; then : 4298 ac_cv_header_stdc=yes 4299else 4300 ac_cv_header_stdc=no 4301fi 4302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4303 4304if test $ac_cv_header_stdc = yes; then 4305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4307/* end confdefs.h. */ 4308#include <string.h> 4309 4310_ACEOF 4311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4312 $EGREP "memchr" >/dev/null 2>&1; then : 4313 4314else 4315 ac_cv_header_stdc=no 4316fi 4317rm -f conftest* 4318 4319fi 4320 4321if test $ac_cv_header_stdc = yes; then 4322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4324/* end confdefs.h. */ 4325#include <stdlib.h> 4326 4327_ACEOF 4328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4329 $EGREP "free" >/dev/null 2>&1; then : 4330 4331else 4332 ac_cv_header_stdc=no 4333fi 4334rm -f conftest* 4335 4336fi 4337 4338if test $ac_cv_header_stdc = yes; then 4339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4340 if test "$cross_compiling" = yes; then : 4341 : 4342else 4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4344/* end confdefs.h. */ 4345#include <ctype.h> 4346#include <stdlib.h> 4347#if ((' ' & 0x0FF) == 0x020) 4348# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4349# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4350#else 4351# define ISLOWER(c) \ 4352 (('a' <= (c) && (c) <= 'i') \ 4353 || ('j' <= (c) && (c) <= 'r') \ 4354 || ('s' <= (c) && (c) <= 'z')) 4355# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4356#endif 4357 4358#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4359int 4360main () 4361{ 4362 int i; 4363 for (i = 0; i < 256; i++) 4364 if (XOR (islower (i), ISLOWER (i)) 4365 || toupper (i) != TOUPPER (i)) 4366 return 2; 4367 return 0; 4368} 4369_ACEOF 4370if ac_fn_c_try_run "$LINENO"; then : 4371 4372else 4373 ac_cv_header_stdc=no 4374fi 4375rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4376 conftest.$ac_objext conftest.beam conftest.$ac_ext 4377fi 4378 4379fi 4380fi 4381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4382$as_echo "$ac_cv_header_stdc" >&6; } 4383if test $ac_cv_header_stdc = yes; then 4384 4385$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4386 4387fi 4388 4389# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4390for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4391 inttypes.h stdint.h unistd.h 4392do : 4393 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4394ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4395" 4396if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4397 cat >>confdefs.h <<_ACEOF 4398#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4399_ACEOF 4400 4401fi 4402 4403done 4404 4405 4406 4407 4408 4409 4410ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4411if test "x$ac_cv_have_decl___clang__" = xyes; then : 4412 CLANGCC="yes" 4413else 4414 CLANGCC="no" 4415fi 4416 4417ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4418if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4419 INTELCC="yes" 4420else 4421 INTELCC="no" 4422fi 4423 4424ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4425if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4426 SUNCC="yes" 4427else 4428 SUNCC="no" 4429fi 4430 4431 4432 4433 4434if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4435 if test -n "$ac_tool_prefix"; then 4436 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4437set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4439$as_echo_n "checking for $ac_word... " >&6; } 4440if ${ac_cv_path_PKG_CONFIG+:} false; then : 4441 $as_echo_n "(cached) " >&6 4442else 4443 case $PKG_CONFIG in 4444 [\\/]* | ?:[\\/]*) 4445 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4446 ;; 4447 *) 4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4449for as_dir in $PATH 4450do 4451 IFS=$as_save_IFS 4452 test -z "$as_dir" && as_dir=. 4453 for ac_exec_ext in '' $ac_executable_extensions; do 4454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4455 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4457 break 2 4458 fi 4459done 4460 done 4461IFS=$as_save_IFS 4462 4463 ;; 4464esac 4465fi 4466PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4467if test -n "$PKG_CONFIG"; then 4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4469$as_echo "$PKG_CONFIG" >&6; } 4470else 4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4472$as_echo "no" >&6; } 4473fi 4474 4475 4476fi 4477if test -z "$ac_cv_path_PKG_CONFIG"; then 4478 ac_pt_PKG_CONFIG=$PKG_CONFIG 4479 # Extract the first word of "pkg-config", so it can be a program name with args. 4480set dummy pkg-config; ac_word=$2 4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4482$as_echo_n "checking for $ac_word... " >&6; } 4483if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4484 $as_echo_n "(cached) " >&6 4485else 4486 case $ac_pt_PKG_CONFIG in 4487 [\\/]* | ?:[\\/]*) 4488 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4489 ;; 4490 *) 4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4492for as_dir in $PATH 4493do 4494 IFS=$as_save_IFS 4495 test -z "$as_dir" && as_dir=. 4496 for ac_exec_ext in '' $ac_executable_extensions; do 4497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4498 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4500 break 2 4501 fi 4502done 4503 done 4504IFS=$as_save_IFS 4505 4506 ;; 4507esac 4508fi 4509ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4510if test -n "$ac_pt_PKG_CONFIG"; then 4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4512$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4513else 4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4515$as_echo "no" >&6; } 4516fi 4517 4518 if test "x$ac_pt_PKG_CONFIG" = x; then 4519 PKG_CONFIG="" 4520 else 4521 case $cross_compiling:$ac_tool_warned in 4522yes:) 4523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4525ac_tool_warned=yes ;; 4526esac 4527 PKG_CONFIG=$ac_pt_PKG_CONFIG 4528 fi 4529else 4530 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4531fi 4532 4533fi 4534if test -n "$PKG_CONFIG"; then 4535 _pkg_min_version=0.9.0 4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4537$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4538 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4540$as_echo "yes" >&6; } 4541 else 4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4543$as_echo "no" >&6; } 4544 PKG_CONFIG="" 4545 fi 4546 4547fi 4548# Make sure we can run config.sub. 4549$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4550 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4551 4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4553$as_echo_n "checking build system type... " >&6; } 4554if ${ac_cv_build+:} false; then : 4555 $as_echo_n "(cached) " >&6 4556else 4557 ac_build_alias=$build_alias 4558test "x$ac_build_alias" = x && 4559 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4560test "x$ac_build_alias" = x && 4561 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4562ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4563 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4564 4565fi 4566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4567$as_echo "$ac_cv_build" >&6; } 4568case $ac_cv_build in 4569*-*-*) ;; 4570*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4571esac 4572build=$ac_cv_build 4573ac_save_IFS=$IFS; IFS='-' 4574set x $ac_cv_build 4575shift 4576build_cpu=$1 4577build_vendor=$2 4578shift; shift 4579# Remember, the first character of IFS is used to create $*, 4580# except with old shells: 4581build_os=$* 4582IFS=$ac_save_IFS 4583case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4584 4585 4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4587$as_echo_n "checking host system type... " >&6; } 4588if ${ac_cv_host+:} false; then : 4589 $as_echo_n "(cached) " >&6 4590else 4591 if test "x$host_alias" = x; then 4592 ac_cv_host=$ac_cv_build 4593else 4594 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4595 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4596fi 4597 4598fi 4599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4600$as_echo "$ac_cv_host" >&6; } 4601case $ac_cv_host in 4602*-*-*) ;; 4603*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4604esac 4605host=$ac_cv_host 4606ac_save_IFS=$IFS; IFS='-' 4607set x $ac_cv_host 4608shift 4609host_cpu=$1 4610host_vendor=$2 4611shift; shift 4612# Remember, the first character of IFS is used to create $*, 4613# except with old shells: 4614host_os=$* 4615IFS=$ac_save_IFS 4616case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4617 4618 4619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4620$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4621if ${ac_cv_path_SED+:} false; then : 4622 $as_echo_n "(cached) " >&6 4623else 4624 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4625 for ac_i in 1 2 3 4 5 6 7; do 4626 ac_script="$ac_script$as_nl$ac_script" 4627 done 4628 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4629 { ac_script=; unset ac_script;} 4630 if test -z "$SED"; then 4631 ac_path_SED_found=false 4632 # Loop through the user's path and test for each of PROGNAME-LIST 4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4634for as_dir in $PATH 4635do 4636 IFS=$as_save_IFS 4637 test -z "$as_dir" && as_dir=. 4638 for ac_prog in sed gsed; do 4639 for ac_exec_ext in '' $ac_executable_extensions; do 4640 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4641 as_fn_executable_p "$ac_path_SED" || continue 4642# Check for GNU ac_path_SED and select it if it is found. 4643 # Check for GNU $ac_path_SED 4644case `"$ac_path_SED" --version 2>&1` in 4645*GNU*) 4646 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4647*) 4648 ac_count=0 4649 $as_echo_n 0123456789 >"conftest.in" 4650 while : 4651 do 4652 cat "conftest.in" "conftest.in" >"conftest.tmp" 4653 mv "conftest.tmp" "conftest.in" 4654 cp "conftest.in" "conftest.nl" 4655 $as_echo '' >> "conftest.nl" 4656 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4658 as_fn_arith $ac_count + 1 && ac_count=$as_val 4659 if test $ac_count -gt ${ac_path_SED_max-0}; then 4660 # Best one so far, save it but keep looking for a better one 4661 ac_cv_path_SED="$ac_path_SED" 4662 ac_path_SED_max=$ac_count 4663 fi 4664 # 10*(2^10) chars as input seems more than enough 4665 test $ac_count -gt 10 && break 4666 done 4667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4668esac 4669 4670 $ac_path_SED_found && break 3 4671 done 4672 done 4673 done 4674IFS=$as_save_IFS 4675 if test -z "$ac_cv_path_SED"; then 4676 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4677 fi 4678else 4679 ac_cv_path_SED=$SED 4680fi 4681 4682fi 4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4684$as_echo "$ac_cv_path_SED" >&6; } 4685 SED="$ac_cv_path_SED" 4686 rm -f conftest.sed 4687 4688 4689 4690 4691 4692 4693# Check whether --enable-selective-werror was given. 4694if test "${enable_selective_werror+set}" = set; then : 4695 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4696else 4697 SELECTIVE_WERROR=yes 4698fi 4699 4700 4701 4702 4703 4704# -v is too short to test reliably with XORG_TESTSET_CFLAG 4705if test "x$SUNCC" = "xyes"; then 4706 BASE_CFLAGS="-v" 4707else 4708 BASE_CFLAGS="" 4709fi 4710 4711# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725xorg_testset_save_CFLAGS="$CFLAGS" 4726 4727if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4730$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4731if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4732 $as_echo_n "(cached) " >&6 4733else 4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4735/* end confdefs.h. */ 4736int i; 4737_ACEOF 4738if ac_fn_c_try_compile "$LINENO"; then : 4739 xorg_cv_cc_flag_unknown_warning_option=yes 4740else 4741 xorg_cv_cc_flag_unknown_warning_option=no 4742fi 4743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4744fi 4745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4746$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4748 CFLAGS="$xorg_testset_save_CFLAGS" 4749fi 4750 4751if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4754 fi 4755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4757$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4758if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4759 $as_echo_n "(cached) " >&6 4760else 4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4762/* end confdefs.h. */ 4763int i; 4764_ACEOF 4765if ac_fn_c_try_compile "$LINENO"; then : 4766 xorg_cv_cc_flag_unused_command_line_argument=yes 4767else 4768 xorg_cv_cc_flag_unused_command_line_argument=no 4769fi 4770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4771fi 4772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4773$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4775 CFLAGS="$xorg_testset_save_CFLAGS" 4776fi 4777 4778found="no" 4779 4780 if test $found = "no" ; then 4781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4783 fi 4784 4785 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4787 fi 4788 4789 CFLAGS="$CFLAGS -Wall" 4790 4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4792$as_echo_n "checking if $CC supports -Wall... " >&6; } 4793 cacheid=xorg_cv_cc_flag__Wall 4794 if eval \${$cacheid+:} false; then : 4795 $as_echo_n "(cached) " >&6 4796else 4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4798/* end confdefs.h. */ 4799int i; 4800int 4801main () 4802{ 4803 4804 ; 4805 return 0; 4806} 4807_ACEOF 4808if ac_fn_c_try_link "$LINENO"; then : 4809 eval $cacheid=yes 4810else 4811 eval $cacheid=no 4812fi 4813rm -f core conftest.err conftest.$ac_objext \ 4814 conftest$ac_exeext conftest.$ac_ext 4815fi 4816 4817 4818 CFLAGS="$xorg_testset_save_CFLAGS" 4819 4820 eval supported=\$$cacheid 4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4822$as_echo "$supported" >&6; } 4823 if test "$supported" = "yes" ; then 4824 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4825 found="yes" 4826 fi 4827 fi 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843xorg_testset_save_CFLAGS="$CFLAGS" 4844 4845if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4848$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4849if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4850 $as_echo_n "(cached) " >&6 4851else 4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4853/* end confdefs.h. */ 4854int i; 4855_ACEOF 4856if ac_fn_c_try_compile "$LINENO"; then : 4857 xorg_cv_cc_flag_unknown_warning_option=yes 4858else 4859 xorg_cv_cc_flag_unknown_warning_option=no 4860fi 4861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4862fi 4863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4864$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4866 CFLAGS="$xorg_testset_save_CFLAGS" 4867fi 4868 4869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4872 fi 4873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4875$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4876if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4877 $as_echo_n "(cached) " >&6 4878else 4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4880/* end confdefs.h. */ 4881int i; 4882_ACEOF 4883if ac_fn_c_try_compile "$LINENO"; then : 4884 xorg_cv_cc_flag_unused_command_line_argument=yes 4885else 4886 xorg_cv_cc_flag_unused_command_line_argument=no 4887fi 4888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4889fi 4890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4891$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4893 CFLAGS="$xorg_testset_save_CFLAGS" 4894fi 4895 4896found="no" 4897 4898 if test $found = "no" ; then 4899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4901 fi 4902 4903 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4905 fi 4906 4907 CFLAGS="$CFLAGS -Wpointer-arith" 4908 4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4910$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4911 cacheid=xorg_cv_cc_flag__Wpointer_arith 4912 if eval \${$cacheid+:} false; then : 4913 $as_echo_n "(cached) " >&6 4914else 4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4916/* end confdefs.h. */ 4917int i; 4918int 4919main () 4920{ 4921 4922 ; 4923 return 0; 4924} 4925_ACEOF 4926if ac_fn_c_try_link "$LINENO"; then : 4927 eval $cacheid=yes 4928else 4929 eval $cacheid=no 4930fi 4931rm -f core conftest.err conftest.$ac_objext \ 4932 conftest$ac_exeext conftest.$ac_ext 4933fi 4934 4935 4936 CFLAGS="$xorg_testset_save_CFLAGS" 4937 4938 eval supported=\$$cacheid 4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4940$as_echo "$supported" >&6; } 4941 if test "$supported" = "yes" ; then 4942 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4943 found="yes" 4944 fi 4945 fi 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961xorg_testset_save_CFLAGS="$CFLAGS" 4962 4963if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4966$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4967if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4968 $as_echo_n "(cached) " >&6 4969else 4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4971/* end confdefs.h. */ 4972int i; 4973_ACEOF 4974if ac_fn_c_try_compile "$LINENO"; then : 4975 xorg_cv_cc_flag_unknown_warning_option=yes 4976else 4977 xorg_cv_cc_flag_unknown_warning_option=no 4978fi 4979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4980fi 4981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4982$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4984 CFLAGS="$xorg_testset_save_CFLAGS" 4985fi 4986 4987if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4990 fi 4991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4993$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4994if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4995 $as_echo_n "(cached) " >&6 4996else 4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4998/* end confdefs.h. */ 4999int i; 5000_ACEOF 5001if ac_fn_c_try_compile "$LINENO"; then : 5002 xorg_cv_cc_flag_unused_command_line_argument=yes 5003else 5004 xorg_cv_cc_flag_unused_command_line_argument=no 5005fi 5006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5007fi 5008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5009$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5011 CFLAGS="$xorg_testset_save_CFLAGS" 5012fi 5013 5014found="no" 5015 5016 if test $found = "no" ; then 5017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5019 fi 5020 5021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5023 fi 5024 5025 CFLAGS="$CFLAGS -Wmissing-declarations" 5026 5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5028$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5029 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5030 if eval \${$cacheid+:} false; then : 5031 $as_echo_n "(cached) " >&6 5032else 5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5034/* end confdefs.h. */ 5035int i; 5036int 5037main () 5038{ 5039 5040 ; 5041 return 0; 5042} 5043_ACEOF 5044if ac_fn_c_try_link "$LINENO"; then : 5045 eval $cacheid=yes 5046else 5047 eval $cacheid=no 5048fi 5049rm -f core conftest.err conftest.$ac_objext \ 5050 conftest$ac_exeext conftest.$ac_ext 5051fi 5052 5053 5054 CFLAGS="$xorg_testset_save_CFLAGS" 5055 5056 eval supported=\$$cacheid 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5058$as_echo "$supported" >&6; } 5059 if test "$supported" = "yes" ; then 5060 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5061 found="yes" 5062 fi 5063 fi 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079xorg_testset_save_CFLAGS="$CFLAGS" 5080 5081if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5084$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5085if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5086 $as_echo_n "(cached) " >&6 5087else 5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5089/* end confdefs.h. */ 5090int i; 5091_ACEOF 5092if ac_fn_c_try_compile "$LINENO"; then : 5093 xorg_cv_cc_flag_unknown_warning_option=yes 5094else 5095 xorg_cv_cc_flag_unknown_warning_option=no 5096fi 5097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5098fi 5099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5100$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5102 CFLAGS="$xorg_testset_save_CFLAGS" 5103fi 5104 5105if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5108 fi 5109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5111$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5112if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5113 $as_echo_n "(cached) " >&6 5114else 5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5116/* end confdefs.h. */ 5117int i; 5118_ACEOF 5119if ac_fn_c_try_compile "$LINENO"; then : 5120 xorg_cv_cc_flag_unused_command_line_argument=yes 5121else 5122 xorg_cv_cc_flag_unused_command_line_argument=no 5123fi 5124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5125fi 5126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5127$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5129 CFLAGS="$xorg_testset_save_CFLAGS" 5130fi 5131 5132found="no" 5133 5134 if test $found = "no" ; then 5135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5137 fi 5138 5139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5141 fi 5142 5143 CFLAGS="$CFLAGS -Wformat=2" 5144 5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5146$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5147 cacheid=xorg_cv_cc_flag__Wformat_2 5148 if eval \${$cacheid+:} false; then : 5149 $as_echo_n "(cached) " >&6 5150else 5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5152/* end confdefs.h. */ 5153int i; 5154int 5155main () 5156{ 5157 5158 ; 5159 return 0; 5160} 5161_ACEOF 5162if ac_fn_c_try_link "$LINENO"; then : 5163 eval $cacheid=yes 5164else 5165 eval $cacheid=no 5166fi 5167rm -f core conftest.err conftest.$ac_objext \ 5168 conftest$ac_exeext conftest.$ac_ext 5169fi 5170 5171 5172 CFLAGS="$xorg_testset_save_CFLAGS" 5173 5174 eval supported=\$$cacheid 5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5176$as_echo "$supported" >&6; } 5177 if test "$supported" = "yes" ; then 5178 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5179 found="yes" 5180 fi 5181 fi 5182 5183 if test $found = "no" ; then 5184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5186 fi 5187 5188 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5190 fi 5191 5192 CFLAGS="$CFLAGS -Wformat" 5193 5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5195$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5196 cacheid=xorg_cv_cc_flag__Wformat 5197 if eval \${$cacheid+:} false; then : 5198 $as_echo_n "(cached) " >&6 5199else 5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5201/* end confdefs.h. */ 5202int i; 5203int 5204main () 5205{ 5206 5207 ; 5208 return 0; 5209} 5210_ACEOF 5211if ac_fn_c_try_link "$LINENO"; then : 5212 eval $cacheid=yes 5213else 5214 eval $cacheid=no 5215fi 5216rm -f core conftest.err conftest.$ac_objext \ 5217 conftest$ac_exeext conftest.$ac_ext 5218fi 5219 5220 5221 CFLAGS="$xorg_testset_save_CFLAGS" 5222 5223 eval supported=\$$cacheid 5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5225$as_echo "$supported" >&6; } 5226 if test "$supported" = "yes" ; then 5227 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5228 found="yes" 5229 fi 5230 fi 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248xorg_testset_save_CFLAGS="$CFLAGS" 5249 5250if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5253$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5254if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5255 $as_echo_n "(cached) " >&6 5256else 5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5258/* end confdefs.h. */ 5259int i; 5260_ACEOF 5261if ac_fn_c_try_compile "$LINENO"; then : 5262 xorg_cv_cc_flag_unknown_warning_option=yes 5263else 5264 xorg_cv_cc_flag_unknown_warning_option=no 5265fi 5266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5267fi 5268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5269$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5270 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5271 CFLAGS="$xorg_testset_save_CFLAGS" 5272fi 5273 5274if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5277 fi 5278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5280$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5281if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5282 $as_echo_n "(cached) " >&6 5283else 5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5285/* end confdefs.h. */ 5286int i; 5287_ACEOF 5288if ac_fn_c_try_compile "$LINENO"; then : 5289 xorg_cv_cc_flag_unused_command_line_argument=yes 5290else 5291 xorg_cv_cc_flag_unused_command_line_argument=no 5292fi 5293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5294fi 5295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5296$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5297 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5298 CFLAGS="$xorg_testset_save_CFLAGS" 5299fi 5300 5301found="no" 5302 5303 if test $found = "no" ; then 5304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5306 fi 5307 5308 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5310 fi 5311 5312 CFLAGS="$CFLAGS -Wstrict-prototypes" 5313 5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5315$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5316 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5317 if eval \${$cacheid+:} false; then : 5318 $as_echo_n "(cached) " >&6 5319else 5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5321/* end confdefs.h. */ 5322int i; 5323int 5324main () 5325{ 5326 5327 ; 5328 return 0; 5329} 5330_ACEOF 5331if ac_fn_c_try_link "$LINENO"; then : 5332 eval $cacheid=yes 5333else 5334 eval $cacheid=no 5335fi 5336rm -f core conftest.err conftest.$ac_objext \ 5337 conftest$ac_exeext conftest.$ac_ext 5338fi 5339 5340 5341 CFLAGS="$xorg_testset_save_CFLAGS" 5342 5343 eval supported=\$$cacheid 5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5345$as_echo "$supported" >&6; } 5346 if test "$supported" = "yes" ; then 5347 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5371$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5372if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5373 $as_echo_n "(cached) " >&6 5374else 5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5376/* end confdefs.h. */ 5377int i; 5378_ACEOF 5379if ac_fn_c_try_compile "$LINENO"; then : 5380 xorg_cv_cc_flag_unknown_warning_option=yes 5381else 5382 xorg_cv_cc_flag_unknown_warning_option=no 5383fi 5384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5385fi 5386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5387$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5388 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5389 CFLAGS="$xorg_testset_save_CFLAGS" 5390fi 5391 5392if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5395 fi 5396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5398$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5399if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5400 $as_echo_n "(cached) " >&6 5401else 5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5403/* end confdefs.h. */ 5404int i; 5405_ACEOF 5406if ac_fn_c_try_compile "$LINENO"; then : 5407 xorg_cv_cc_flag_unused_command_line_argument=yes 5408else 5409 xorg_cv_cc_flag_unused_command_line_argument=no 5410fi 5411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5412fi 5413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5414$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5416 CFLAGS="$xorg_testset_save_CFLAGS" 5417fi 5418 5419found="no" 5420 5421 if test $found = "no" ; then 5422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5424 fi 5425 5426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5428 fi 5429 5430 CFLAGS="$CFLAGS -Wmissing-prototypes" 5431 5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5433$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5434 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5435 if eval \${$cacheid+:} false; then : 5436 $as_echo_n "(cached) " >&6 5437else 5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5439/* end confdefs.h. */ 5440int i; 5441int 5442main () 5443{ 5444 5445 ; 5446 return 0; 5447} 5448_ACEOF 5449if ac_fn_c_try_link "$LINENO"; then : 5450 eval $cacheid=yes 5451else 5452 eval $cacheid=no 5453fi 5454rm -f core conftest.err conftest.$ac_objext \ 5455 conftest$ac_exeext conftest.$ac_ext 5456fi 5457 5458 5459 CFLAGS="$xorg_testset_save_CFLAGS" 5460 5461 eval supported=\$$cacheid 5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5463$as_echo "$supported" >&6; } 5464 if test "$supported" = "yes" ; then 5465 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5466 found="yes" 5467 fi 5468 fi 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484xorg_testset_save_CFLAGS="$CFLAGS" 5485 5486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5489$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5490if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5491 $as_echo_n "(cached) " >&6 5492else 5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5494/* end confdefs.h. */ 5495int i; 5496_ACEOF 5497if ac_fn_c_try_compile "$LINENO"; then : 5498 xorg_cv_cc_flag_unknown_warning_option=yes 5499else 5500 xorg_cv_cc_flag_unknown_warning_option=no 5501fi 5502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5503fi 5504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5505$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5507 CFLAGS="$xorg_testset_save_CFLAGS" 5508fi 5509 5510if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5513 fi 5514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5516$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5517if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5518 $as_echo_n "(cached) " >&6 5519else 5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5521/* end confdefs.h. */ 5522int i; 5523_ACEOF 5524if ac_fn_c_try_compile "$LINENO"; then : 5525 xorg_cv_cc_flag_unused_command_line_argument=yes 5526else 5527 xorg_cv_cc_flag_unused_command_line_argument=no 5528fi 5529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5530fi 5531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5532$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5534 CFLAGS="$xorg_testset_save_CFLAGS" 5535fi 5536 5537found="no" 5538 5539 if test $found = "no" ; then 5540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5542 fi 5543 5544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5546 fi 5547 5548 CFLAGS="$CFLAGS -Wnested-externs" 5549 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5551$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5552 cacheid=xorg_cv_cc_flag__Wnested_externs 5553 if eval \${$cacheid+:} false; then : 5554 $as_echo_n "(cached) " >&6 5555else 5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5557/* end confdefs.h. */ 5558int i; 5559int 5560main () 5561{ 5562 5563 ; 5564 return 0; 5565} 5566_ACEOF 5567if ac_fn_c_try_link "$LINENO"; then : 5568 eval $cacheid=yes 5569else 5570 eval $cacheid=no 5571fi 5572rm -f core conftest.err conftest.$ac_objext \ 5573 conftest$ac_exeext conftest.$ac_ext 5574fi 5575 5576 5577 CFLAGS="$xorg_testset_save_CFLAGS" 5578 5579 eval supported=\$$cacheid 5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5581$as_echo "$supported" >&6; } 5582 if test "$supported" = "yes" ; then 5583 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5584 found="yes" 5585 fi 5586 fi 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602xorg_testset_save_CFLAGS="$CFLAGS" 5603 5604if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5607$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5608if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5609 $as_echo_n "(cached) " >&6 5610else 5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5612/* end confdefs.h. */ 5613int i; 5614_ACEOF 5615if ac_fn_c_try_compile "$LINENO"; then : 5616 xorg_cv_cc_flag_unknown_warning_option=yes 5617else 5618 xorg_cv_cc_flag_unknown_warning_option=no 5619fi 5620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5621fi 5622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5623$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5625 CFLAGS="$xorg_testset_save_CFLAGS" 5626fi 5627 5628if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5631 fi 5632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5634$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5635if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5636 $as_echo_n "(cached) " >&6 5637else 5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5639/* end confdefs.h. */ 5640int i; 5641_ACEOF 5642if ac_fn_c_try_compile "$LINENO"; then : 5643 xorg_cv_cc_flag_unused_command_line_argument=yes 5644else 5645 xorg_cv_cc_flag_unused_command_line_argument=no 5646fi 5647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5648fi 5649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5650$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5652 CFLAGS="$xorg_testset_save_CFLAGS" 5653fi 5654 5655found="no" 5656 5657 if test $found = "no" ; then 5658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5660 fi 5661 5662 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5664 fi 5665 5666 CFLAGS="$CFLAGS -Wbad-function-cast" 5667 5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5669$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5670 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5671 if eval \${$cacheid+:} false; then : 5672 $as_echo_n "(cached) " >&6 5673else 5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5675/* end confdefs.h. */ 5676int i; 5677int 5678main () 5679{ 5680 5681 ; 5682 return 0; 5683} 5684_ACEOF 5685if ac_fn_c_try_link "$LINENO"; then : 5686 eval $cacheid=yes 5687else 5688 eval $cacheid=no 5689fi 5690rm -f core conftest.err conftest.$ac_objext \ 5691 conftest$ac_exeext conftest.$ac_ext 5692fi 5693 5694 5695 CFLAGS="$xorg_testset_save_CFLAGS" 5696 5697 eval supported=\$$cacheid 5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5699$as_echo "$supported" >&6; } 5700 if test "$supported" = "yes" ; then 5701 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5702 found="yes" 5703 fi 5704 fi 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720xorg_testset_save_CFLAGS="$CFLAGS" 5721 5722if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5725$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5726if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5727 $as_echo_n "(cached) " >&6 5728else 5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5730/* end confdefs.h. */ 5731int i; 5732_ACEOF 5733if ac_fn_c_try_compile "$LINENO"; then : 5734 xorg_cv_cc_flag_unknown_warning_option=yes 5735else 5736 xorg_cv_cc_flag_unknown_warning_option=no 5737fi 5738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5739fi 5740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5741$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5743 CFLAGS="$xorg_testset_save_CFLAGS" 5744fi 5745 5746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5749 fi 5750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5752$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5753if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5754 $as_echo_n "(cached) " >&6 5755else 5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5757/* end confdefs.h. */ 5758int i; 5759_ACEOF 5760if ac_fn_c_try_compile "$LINENO"; then : 5761 xorg_cv_cc_flag_unused_command_line_argument=yes 5762else 5763 xorg_cv_cc_flag_unused_command_line_argument=no 5764fi 5765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5766fi 5767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5768$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5770 CFLAGS="$xorg_testset_save_CFLAGS" 5771fi 5772 5773found="no" 5774 5775 if test $found = "no" ; then 5776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5778 fi 5779 5780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5782 fi 5783 5784 CFLAGS="$CFLAGS -Wold-style-definition" 5785 5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5787$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5788 cacheid=xorg_cv_cc_flag__Wold_style_definition 5789 if eval \${$cacheid+:} false; then : 5790 $as_echo_n "(cached) " >&6 5791else 5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5793/* end confdefs.h. */ 5794int i; 5795int 5796main () 5797{ 5798 5799 ; 5800 return 0; 5801} 5802_ACEOF 5803if ac_fn_c_try_link "$LINENO"; then : 5804 eval $cacheid=yes 5805else 5806 eval $cacheid=no 5807fi 5808rm -f core conftest.err conftest.$ac_objext \ 5809 conftest$ac_exeext conftest.$ac_ext 5810fi 5811 5812 5813 CFLAGS="$xorg_testset_save_CFLAGS" 5814 5815 eval supported=\$$cacheid 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5817$as_echo "$supported" >&6; } 5818 if test "$supported" = "yes" ; then 5819 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5820 found="yes" 5821 fi 5822 fi 5823 5824 if test $found = "no" ; then 5825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5827 fi 5828 5829 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5831 fi 5832 5833 CFLAGS="$CFLAGS -fd" 5834 5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5836$as_echo_n "checking if $CC supports -fd... " >&6; } 5837 cacheid=xorg_cv_cc_flag__fd 5838 if eval \${$cacheid+:} false; then : 5839 $as_echo_n "(cached) " >&6 5840else 5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5842/* end confdefs.h. */ 5843int i; 5844int 5845main () 5846{ 5847 5848 ; 5849 return 0; 5850} 5851_ACEOF 5852if ac_fn_c_try_link "$LINENO"; then : 5853 eval $cacheid=yes 5854else 5855 eval $cacheid=no 5856fi 5857rm -f core conftest.err conftest.$ac_objext \ 5858 conftest$ac_exeext conftest.$ac_ext 5859fi 5860 5861 5862 CFLAGS="$xorg_testset_save_CFLAGS" 5863 5864 eval supported=\$$cacheid 5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5866$as_echo "$supported" >&6; } 5867 if test "$supported" = "yes" ; then 5868 BASE_CFLAGS="$BASE_CFLAGS -fd" 5869 found="yes" 5870 fi 5871 fi 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887xorg_testset_save_CFLAGS="$CFLAGS" 5888 5889if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5892$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5893if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5894 $as_echo_n "(cached) " >&6 5895else 5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5897/* end confdefs.h. */ 5898int i; 5899_ACEOF 5900if ac_fn_c_try_compile "$LINENO"; then : 5901 xorg_cv_cc_flag_unknown_warning_option=yes 5902else 5903 xorg_cv_cc_flag_unknown_warning_option=no 5904fi 5905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5906fi 5907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5908$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5909 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5910 CFLAGS="$xorg_testset_save_CFLAGS" 5911fi 5912 5913if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5916 fi 5917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5919$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5920if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5921 $as_echo_n "(cached) " >&6 5922else 5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5924/* end confdefs.h. */ 5925int i; 5926_ACEOF 5927if ac_fn_c_try_compile "$LINENO"; then : 5928 xorg_cv_cc_flag_unused_command_line_argument=yes 5929else 5930 xorg_cv_cc_flag_unused_command_line_argument=no 5931fi 5932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5933fi 5934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5935$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5936 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5937 CFLAGS="$xorg_testset_save_CFLAGS" 5938fi 5939 5940found="no" 5941 5942 if test $found = "no" ; then 5943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5945 fi 5946 5947 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5949 fi 5950 5951 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5952 5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5954$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5955 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5956 if eval \${$cacheid+:} false; then : 5957 $as_echo_n "(cached) " >&6 5958else 5959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5960/* end confdefs.h. */ 5961int i; 5962int 5963main () 5964{ 5965 5966 ; 5967 return 0; 5968} 5969_ACEOF 5970if ac_fn_c_try_link "$LINENO"; then : 5971 eval $cacheid=yes 5972else 5973 eval $cacheid=no 5974fi 5975rm -f core conftest.err conftest.$ac_objext \ 5976 conftest$ac_exeext conftest.$ac_ext 5977fi 5978 5979 5980 CFLAGS="$xorg_testset_save_CFLAGS" 5981 5982 eval supported=\$$cacheid 5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5984$as_echo "$supported" >&6; } 5985 if test "$supported" = "yes" ; then 5986 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5987 found="yes" 5988 fi 5989 fi 5990 5991 5992 5993 5994 5995# This chunk adds additional warnings that could catch undesired effects. 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009xorg_testset_save_CFLAGS="$CFLAGS" 6010 6011if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6014$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6015if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6016 $as_echo_n "(cached) " >&6 6017else 6018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6019/* end confdefs.h. */ 6020int i; 6021_ACEOF 6022if ac_fn_c_try_compile "$LINENO"; then : 6023 xorg_cv_cc_flag_unknown_warning_option=yes 6024else 6025 xorg_cv_cc_flag_unknown_warning_option=no 6026fi 6027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6028fi 6029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6030$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6032 CFLAGS="$xorg_testset_save_CFLAGS" 6033fi 6034 6035if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6038 fi 6039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6041$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6042if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6043 $as_echo_n "(cached) " >&6 6044else 6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6046/* end confdefs.h. */ 6047int i; 6048_ACEOF 6049if ac_fn_c_try_compile "$LINENO"; then : 6050 xorg_cv_cc_flag_unused_command_line_argument=yes 6051else 6052 xorg_cv_cc_flag_unused_command_line_argument=no 6053fi 6054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6055fi 6056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6057$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6059 CFLAGS="$xorg_testset_save_CFLAGS" 6060fi 6061 6062found="no" 6063 6064 if test $found = "no" ; then 6065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6067 fi 6068 6069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6071 fi 6072 6073 CFLAGS="$CFLAGS -Wunused" 6074 6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6076$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6077 cacheid=xorg_cv_cc_flag__Wunused 6078 if eval \${$cacheid+:} false; then : 6079 $as_echo_n "(cached) " >&6 6080else 6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6082/* end confdefs.h. */ 6083int i; 6084int 6085main () 6086{ 6087 6088 ; 6089 return 0; 6090} 6091_ACEOF 6092if ac_fn_c_try_link "$LINENO"; then : 6093 eval $cacheid=yes 6094else 6095 eval $cacheid=no 6096fi 6097rm -f core conftest.err conftest.$ac_objext \ 6098 conftest$ac_exeext conftest.$ac_ext 6099fi 6100 6101 6102 CFLAGS="$xorg_testset_save_CFLAGS" 6103 6104 eval supported=\$$cacheid 6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6106$as_echo "$supported" >&6; } 6107 if test "$supported" = "yes" ; then 6108 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6109 found="yes" 6110 fi 6111 fi 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127xorg_testset_save_CFLAGS="$CFLAGS" 6128 6129if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6132$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6133if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6134 $as_echo_n "(cached) " >&6 6135else 6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6137/* end confdefs.h. */ 6138int i; 6139_ACEOF 6140if ac_fn_c_try_compile "$LINENO"; then : 6141 xorg_cv_cc_flag_unknown_warning_option=yes 6142else 6143 xorg_cv_cc_flag_unknown_warning_option=no 6144fi 6145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6146fi 6147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6148$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6149 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6150 CFLAGS="$xorg_testset_save_CFLAGS" 6151fi 6152 6153if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6156 fi 6157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6159$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6160if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6161 $as_echo_n "(cached) " >&6 6162else 6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6164/* end confdefs.h. */ 6165int i; 6166_ACEOF 6167if ac_fn_c_try_compile "$LINENO"; then : 6168 xorg_cv_cc_flag_unused_command_line_argument=yes 6169else 6170 xorg_cv_cc_flag_unused_command_line_argument=no 6171fi 6172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6173fi 6174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6175$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6177 CFLAGS="$xorg_testset_save_CFLAGS" 6178fi 6179 6180found="no" 6181 6182 if test $found = "no" ; then 6183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6185 fi 6186 6187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6189 fi 6190 6191 CFLAGS="$CFLAGS -Wuninitialized" 6192 6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6194$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6195 cacheid=xorg_cv_cc_flag__Wuninitialized 6196 if eval \${$cacheid+:} false; then : 6197 $as_echo_n "(cached) " >&6 6198else 6199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6200/* end confdefs.h. */ 6201int i; 6202int 6203main () 6204{ 6205 6206 ; 6207 return 0; 6208} 6209_ACEOF 6210if ac_fn_c_try_link "$LINENO"; then : 6211 eval $cacheid=yes 6212else 6213 eval $cacheid=no 6214fi 6215rm -f core conftest.err conftest.$ac_objext \ 6216 conftest$ac_exeext conftest.$ac_ext 6217fi 6218 6219 6220 CFLAGS="$xorg_testset_save_CFLAGS" 6221 6222 eval supported=\$$cacheid 6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6224$as_echo "$supported" >&6; } 6225 if test "$supported" = "yes" ; then 6226 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6227 found="yes" 6228 fi 6229 fi 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245xorg_testset_save_CFLAGS="$CFLAGS" 6246 6247if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6250$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6251if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6252 $as_echo_n "(cached) " >&6 6253else 6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6255/* end confdefs.h. */ 6256int i; 6257_ACEOF 6258if ac_fn_c_try_compile "$LINENO"; then : 6259 xorg_cv_cc_flag_unknown_warning_option=yes 6260else 6261 xorg_cv_cc_flag_unknown_warning_option=no 6262fi 6263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6264fi 6265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6266$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6267 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6268 CFLAGS="$xorg_testset_save_CFLAGS" 6269fi 6270 6271if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6274 fi 6275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6277$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6278if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6279 $as_echo_n "(cached) " >&6 6280else 6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6282/* end confdefs.h. */ 6283int i; 6284_ACEOF 6285if ac_fn_c_try_compile "$LINENO"; then : 6286 xorg_cv_cc_flag_unused_command_line_argument=yes 6287else 6288 xorg_cv_cc_flag_unused_command_line_argument=no 6289fi 6290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6291fi 6292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6293$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6294 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6295 CFLAGS="$xorg_testset_save_CFLAGS" 6296fi 6297 6298found="no" 6299 6300 if test $found = "no" ; then 6301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6303 fi 6304 6305 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6307 fi 6308 6309 CFLAGS="$CFLAGS -Wshadow" 6310 6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6312$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6313 cacheid=xorg_cv_cc_flag__Wshadow 6314 if eval \${$cacheid+:} false; then : 6315 $as_echo_n "(cached) " >&6 6316else 6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6318/* end confdefs.h. */ 6319int i; 6320int 6321main () 6322{ 6323 6324 ; 6325 return 0; 6326} 6327_ACEOF 6328if ac_fn_c_try_link "$LINENO"; then : 6329 eval $cacheid=yes 6330else 6331 eval $cacheid=no 6332fi 6333rm -f core conftest.err conftest.$ac_objext \ 6334 conftest$ac_exeext conftest.$ac_ext 6335fi 6336 6337 6338 CFLAGS="$xorg_testset_save_CFLAGS" 6339 6340 eval supported=\$$cacheid 6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6342$as_echo "$supported" >&6; } 6343 if test "$supported" = "yes" ; then 6344 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6345 found="yes" 6346 fi 6347 fi 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363xorg_testset_save_CFLAGS="$CFLAGS" 6364 6365if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6368$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6369if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6370 $as_echo_n "(cached) " >&6 6371else 6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6373/* end confdefs.h. */ 6374int i; 6375_ACEOF 6376if ac_fn_c_try_compile "$LINENO"; then : 6377 xorg_cv_cc_flag_unknown_warning_option=yes 6378else 6379 xorg_cv_cc_flag_unknown_warning_option=no 6380fi 6381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6382fi 6383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6384$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6385 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6386 CFLAGS="$xorg_testset_save_CFLAGS" 6387fi 6388 6389if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6392 fi 6393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6395$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6396if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6397 $as_echo_n "(cached) " >&6 6398else 6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6400/* end confdefs.h. */ 6401int i; 6402_ACEOF 6403if ac_fn_c_try_compile "$LINENO"; then : 6404 xorg_cv_cc_flag_unused_command_line_argument=yes 6405else 6406 xorg_cv_cc_flag_unused_command_line_argument=no 6407fi 6408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6409fi 6410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6411$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6412 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6413 CFLAGS="$xorg_testset_save_CFLAGS" 6414fi 6415 6416found="no" 6417 6418 if test $found = "no" ; then 6419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6421 fi 6422 6423 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6425 fi 6426 6427 CFLAGS="$CFLAGS -Wmissing-noreturn" 6428 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6430$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6431 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6432 if eval \${$cacheid+:} false; then : 6433 $as_echo_n "(cached) " >&6 6434else 6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6436/* end confdefs.h. */ 6437int i; 6438int 6439main () 6440{ 6441 6442 ; 6443 return 0; 6444} 6445_ACEOF 6446if ac_fn_c_try_link "$LINENO"; then : 6447 eval $cacheid=yes 6448else 6449 eval $cacheid=no 6450fi 6451rm -f core conftest.err conftest.$ac_objext \ 6452 conftest$ac_exeext conftest.$ac_ext 6453fi 6454 6455 6456 CFLAGS="$xorg_testset_save_CFLAGS" 6457 6458 eval supported=\$$cacheid 6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6460$as_echo "$supported" >&6; } 6461 if test "$supported" = "yes" ; then 6462 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6463 found="yes" 6464 fi 6465 fi 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481xorg_testset_save_CFLAGS="$CFLAGS" 6482 6483if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6486$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6487if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6488 $as_echo_n "(cached) " >&6 6489else 6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6491/* end confdefs.h. */ 6492int i; 6493_ACEOF 6494if ac_fn_c_try_compile "$LINENO"; then : 6495 xorg_cv_cc_flag_unknown_warning_option=yes 6496else 6497 xorg_cv_cc_flag_unknown_warning_option=no 6498fi 6499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6500fi 6501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6502$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6503 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6504 CFLAGS="$xorg_testset_save_CFLAGS" 6505fi 6506 6507if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6510 fi 6511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6513$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6514if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6515 $as_echo_n "(cached) " >&6 6516else 6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6518/* end confdefs.h. */ 6519int i; 6520_ACEOF 6521if ac_fn_c_try_compile "$LINENO"; then : 6522 xorg_cv_cc_flag_unused_command_line_argument=yes 6523else 6524 xorg_cv_cc_flag_unused_command_line_argument=no 6525fi 6526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6527fi 6528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6529$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6530 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6531 CFLAGS="$xorg_testset_save_CFLAGS" 6532fi 6533 6534found="no" 6535 6536 if test $found = "no" ; then 6537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6539 fi 6540 6541 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6543 fi 6544 6545 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6546 6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6548$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6549 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6550 if eval \${$cacheid+:} false; then : 6551 $as_echo_n "(cached) " >&6 6552else 6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6554/* end confdefs.h. */ 6555int i; 6556int 6557main () 6558{ 6559 6560 ; 6561 return 0; 6562} 6563_ACEOF 6564if ac_fn_c_try_link "$LINENO"; then : 6565 eval $cacheid=yes 6566else 6567 eval $cacheid=no 6568fi 6569rm -f core conftest.err conftest.$ac_objext \ 6570 conftest$ac_exeext conftest.$ac_ext 6571fi 6572 6573 6574 CFLAGS="$xorg_testset_save_CFLAGS" 6575 6576 eval supported=\$$cacheid 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6578$as_echo "$supported" >&6; } 6579 if test "$supported" = "yes" ; then 6580 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6581 found="yes" 6582 fi 6583 fi 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599xorg_testset_save_CFLAGS="$CFLAGS" 6600 6601if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6604$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6605if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6606 $as_echo_n "(cached) " >&6 6607else 6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6609/* end confdefs.h. */ 6610int i; 6611_ACEOF 6612if ac_fn_c_try_compile "$LINENO"; then : 6613 xorg_cv_cc_flag_unknown_warning_option=yes 6614else 6615 xorg_cv_cc_flag_unknown_warning_option=no 6616fi 6617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6618fi 6619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6620$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6622 CFLAGS="$xorg_testset_save_CFLAGS" 6623fi 6624 6625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6628 fi 6629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6631$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6632if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6633 $as_echo_n "(cached) " >&6 6634else 6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6636/* end confdefs.h. */ 6637int i; 6638_ACEOF 6639if ac_fn_c_try_compile "$LINENO"; then : 6640 xorg_cv_cc_flag_unused_command_line_argument=yes 6641else 6642 xorg_cv_cc_flag_unused_command_line_argument=no 6643fi 6644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6645fi 6646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6647$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6648 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6649 CFLAGS="$xorg_testset_save_CFLAGS" 6650fi 6651 6652found="no" 6653 6654 if test $found = "no" ; then 6655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6657 fi 6658 6659 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6661 fi 6662 6663 CFLAGS="$CFLAGS -Wredundant-decls" 6664 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6666$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6667 cacheid=xorg_cv_cc_flag__Wredundant_decls 6668 if eval \${$cacheid+:} false; then : 6669 $as_echo_n "(cached) " >&6 6670else 6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6672/* end confdefs.h. */ 6673int i; 6674int 6675main () 6676{ 6677 6678 ; 6679 return 0; 6680} 6681_ACEOF 6682if ac_fn_c_try_link "$LINENO"; then : 6683 eval $cacheid=yes 6684else 6685 eval $cacheid=no 6686fi 6687rm -f core conftest.err conftest.$ac_objext \ 6688 conftest$ac_exeext conftest.$ac_ext 6689fi 6690 6691 6692 CFLAGS="$xorg_testset_save_CFLAGS" 6693 6694 eval supported=\$$cacheid 6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6696$as_echo "$supported" >&6; } 6697 if test "$supported" = "yes" ; then 6698 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6699 found="yes" 6700 fi 6701 fi 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717xorg_testset_save_CFLAGS="$CFLAGS" 6718 6719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6722$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6723if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6724 $as_echo_n "(cached) " >&6 6725else 6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6727/* end confdefs.h. */ 6728int i; 6729_ACEOF 6730if ac_fn_c_try_compile "$LINENO"; then : 6731 xorg_cv_cc_flag_unknown_warning_option=yes 6732else 6733 xorg_cv_cc_flag_unknown_warning_option=no 6734fi 6735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6736fi 6737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6738$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6739 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6740 CFLAGS="$xorg_testset_save_CFLAGS" 6741fi 6742 6743if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6746 fi 6747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6749$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6750if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6751 $as_echo_n "(cached) " >&6 6752else 6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6754/* end confdefs.h. */ 6755int i; 6756_ACEOF 6757if ac_fn_c_try_compile "$LINENO"; then : 6758 xorg_cv_cc_flag_unused_command_line_argument=yes 6759else 6760 xorg_cv_cc_flag_unused_command_line_argument=no 6761fi 6762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6763fi 6764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6765$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6766 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6767 CFLAGS="$xorg_testset_save_CFLAGS" 6768fi 6769 6770found="no" 6771 6772 if test $found = "no" ; then 6773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6775 fi 6776 6777 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6779 fi 6780 6781 CFLAGS="$CFLAGS -Wlogical-op" 6782 6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6784$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6785 cacheid=xorg_cv_cc_flag__Wlogical_op 6786 if eval \${$cacheid+:} false; then : 6787 $as_echo_n "(cached) " >&6 6788else 6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6790/* end confdefs.h. */ 6791int i; 6792int 6793main () 6794{ 6795 6796 ; 6797 return 0; 6798} 6799_ACEOF 6800if ac_fn_c_try_link "$LINENO"; then : 6801 eval $cacheid=yes 6802else 6803 eval $cacheid=no 6804fi 6805rm -f core conftest.err conftest.$ac_objext \ 6806 conftest$ac_exeext conftest.$ac_ext 6807fi 6808 6809 6810 CFLAGS="$xorg_testset_save_CFLAGS" 6811 6812 eval supported=\$$cacheid 6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6814$as_echo "$supported" >&6; } 6815 if test "$supported" = "yes" ; then 6816 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6817 found="yes" 6818 fi 6819 fi 6820 6821 6822 6823# These are currently disabled because they are noisy. They will be enabled 6824# in the future once the codebase is sufficiently modernized to silence 6825# them. For now, I don't want them to drown out the other warnings. 6826# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6827# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6828# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6829 6830# Turn some warnings into errors, so we don't accidently get successful builds 6831# when there are problems that should be fixed. 6832 6833if test "x$SELECTIVE_WERROR" = "xyes" ; then 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847xorg_testset_save_CFLAGS="$CFLAGS" 6848 6849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6852$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6853if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6854 $as_echo_n "(cached) " >&6 6855else 6856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6857/* end confdefs.h. */ 6858int i; 6859_ACEOF 6860if ac_fn_c_try_compile "$LINENO"; then : 6861 xorg_cv_cc_flag_unknown_warning_option=yes 6862else 6863 xorg_cv_cc_flag_unknown_warning_option=no 6864fi 6865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6866fi 6867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6868$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6870 CFLAGS="$xorg_testset_save_CFLAGS" 6871fi 6872 6873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6876 fi 6877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6879$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6880if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6881 $as_echo_n "(cached) " >&6 6882else 6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6884/* end confdefs.h. */ 6885int i; 6886_ACEOF 6887if ac_fn_c_try_compile "$LINENO"; then : 6888 xorg_cv_cc_flag_unused_command_line_argument=yes 6889else 6890 xorg_cv_cc_flag_unused_command_line_argument=no 6891fi 6892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6893fi 6894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6895$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6897 CFLAGS="$xorg_testset_save_CFLAGS" 6898fi 6899 6900found="no" 6901 6902 if test $found = "no" ; then 6903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6905 fi 6906 6907 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6909 fi 6910 6911 CFLAGS="$CFLAGS -Werror=implicit" 6912 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6914$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6915 cacheid=xorg_cv_cc_flag__Werror_implicit 6916 if eval \${$cacheid+:} false; then : 6917 $as_echo_n "(cached) " >&6 6918else 6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6920/* end confdefs.h. */ 6921int i; 6922int 6923main () 6924{ 6925 6926 ; 6927 return 0; 6928} 6929_ACEOF 6930if ac_fn_c_try_link "$LINENO"; then : 6931 eval $cacheid=yes 6932else 6933 eval $cacheid=no 6934fi 6935rm -f core conftest.err conftest.$ac_objext \ 6936 conftest$ac_exeext conftest.$ac_ext 6937fi 6938 6939 6940 CFLAGS="$xorg_testset_save_CFLAGS" 6941 6942 eval supported=\$$cacheid 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6944$as_echo "$supported" >&6; } 6945 if test "$supported" = "yes" ; then 6946 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6947 found="yes" 6948 fi 6949 fi 6950 6951 if test $found = "no" ; then 6952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6954 fi 6955 6956 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6958 fi 6959 6960 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6961 6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6963$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6964 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6965 if eval \${$cacheid+:} false; then : 6966 $as_echo_n "(cached) " >&6 6967else 6968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6969/* end confdefs.h. */ 6970int i; 6971int 6972main () 6973{ 6974 6975 ; 6976 return 0; 6977} 6978_ACEOF 6979if ac_fn_c_try_link "$LINENO"; then : 6980 eval $cacheid=yes 6981else 6982 eval $cacheid=no 6983fi 6984rm -f core conftest.err conftest.$ac_objext \ 6985 conftest$ac_exeext conftest.$ac_ext 6986fi 6987 6988 6989 CFLAGS="$xorg_testset_save_CFLAGS" 6990 6991 eval supported=\$$cacheid 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6993$as_echo "$supported" >&6; } 6994 if test "$supported" = "yes" ; then 6995 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6996 found="yes" 6997 fi 6998 fi 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014xorg_testset_save_CFLAGS="$CFLAGS" 7015 7016if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7019$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7020if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7021 $as_echo_n "(cached) " >&6 7022else 7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7024/* end confdefs.h. */ 7025int i; 7026_ACEOF 7027if ac_fn_c_try_compile "$LINENO"; then : 7028 xorg_cv_cc_flag_unknown_warning_option=yes 7029else 7030 xorg_cv_cc_flag_unknown_warning_option=no 7031fi 7032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7033fi 7034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7035$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7037 CFLAGS="$xorg_testset_save_CFLAGS" 7038fi 7039 7040if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7043 fi 7044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7046$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7047if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7048 $as_echo_n "(cached) " >&6 7049else 7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7051/* end confdefs.h. */ 7052int i; 7053_ACEOF 7054if ac_fn_c_try_compile "$LINENO"; then : 7055 xorg_cv_cc_flag_unused_command_line_argument=yes 7056else 7057 xorg_cv_cc_flag_unused_command_line_argument=no 7058fi 7059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7060fi 7061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7062$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7064 CFLAGS="$xorg_testset_save_CFLAGS" 7065fi 7066 7067found="no" 7068 7069 if test $found = "no" ; then 7070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7072 fi 7073 7074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7076 fi 7077 7078 CFLAGS="$CFLAGS -Werror=nonnull" 7079 7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7081$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7082 cacheid=xorg_cv_cc_flag__Werror_nonnull 7083 if eval \${$cacheid+:} false; then : 7084 $as_echo_n "(cached) " >&6 7085else 7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7087/* end confdefs.h. */ 7088int i; 7089int 7090main () 7091{ 7092 7093 ; 7094 return 0; 7095} 7096_ACEOF 7097if ac_fn_c_try_link "$LINENO"; then : 7098 eval $cacheid=yes 7099else 7100 eval $cacheid=no 7101fi 7102rm -f core conftest.err conftest.$ac_objext \ 7103 conftest$ac_exeext conftest.$ac_ext 7104fi 7105 7106 7107 CFLAGS="$xorg_testset_save_CFLAGS" 7108 7109 eval supported=\$$cacheid 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7111$as_echo "$supported" >&6; } 7112 if test "$supported" = "yes" ; then 7113 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7114 found="yes" 7115 fi 7116 fi 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132xorg_testset_save_CFLAGS="$CFLAGS" 7133 7134if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7137$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7138if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7139 $as_echo_n "(cached) " >&6 7140else 7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7142/* end confdefs.h. */ 7143int i; 7144_ACEOF 7145if ac_fn_c_try_compile "$LINENO"; then : 7146 xorg_cv_cc_flag_unknown_warning_option=yes 7147else 7148 xorg_cv_cc_flag_unknown_warning_option=no 7149fi 7150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7151fi 7152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7153$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7155 CFLAGS="$xorg_testset_save_CFLAGS" 7156fi 7157 7158if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7161 fi 7162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7164$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7165if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7166 $as_echo_n "(cached) " >&6 7167else 7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7169/* end confdefs.h. */ 7170int i; 7171_ACEOF 7172if ac_fn_c_try_compile "$LINENO"; then : 7173 xorg_cv_cc_flag_unused_command_line_argument=yes 7174else 7175 xorg_cv_cc_flag_unused_command_line_argument=no 7176fi 7177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7178fi 7179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7180$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7181 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7182 CFLAGS="$xorg_testset_save_CFLAGS" 7183fi 7184 7185found="no" 7186 7187 if test $found = "no" ; then 7188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7190 fi 7191 7192 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7194 fi 7195 7196 CFLAGS="$CFLAGS -Werror=init-self" 7197 7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7199$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7200 cacheid=xorg_cv_cc_flag__Werror_init_self 7201 if eval \${$cacheid+:} false; then : 7202 $as_echo_n "(cached) " >&6 7203else 7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7205/* end confdefs.h. */ 7206int i; 7207int 7208main () 7209{ 7210 7211 ; 7212 return 0; 7213} 7214_ACEOF 7215if ac_fn_c_try_link "$LINENO"; then : 7216 eval $cacheid=yes 7217else 7218 eval $cacheid=no 7219fi 7220rm -f core conftest.err conftest.$ac_objext \ 7221 conftest$ac_exeext conftest.$ac_ext 7222fi 7223 7224 7225 CFLAGS="$xorg_testset_save_CFLAGS" 7226 7227 eval supported=\$$cacheid 7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7229$as_echo "$supported" >&6; } 7230 if test "$supported" = "yes" ; then 7231 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7232 found="yes" 7233 fi 7234 fi 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250xorg_testset_save_CFLAGS="$CFLAGS" 7251 7252if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7255$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7256if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7257 $as_echo_n "(cached) " >&6 7258else 7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7260/* end confdefs.h. */ 7261int i; 7262_ACEOF 7263if ac_fn_c_try_compile "$LINENO"; then : 7264 xorg_cv_cc_flag_unknown_warning_option=yes 7265else 7266 xorg_cv_cc_flag_unknown_warning_option=no 7267fi 7268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7269fi 7270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7271$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7272 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7273 CFLAGS="$xorg_testset_save_CFLAGS" 7274fi 7275 7276if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7279 fi 7280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7282$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7283if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7284 $as_echo_n "(cached) " >&6 7285else 7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7287/* end confdefs.h. */ 7288int i; 7289_ACEOF 7290if ac_fn_c_try_compile "$LINENO"; then : 7291 xorg_cv_cc_flag_unused_command_line_argument=yes 7292else 7293 xorg_cv_cc_flag_unused_command_line_argument=no 7294fi 7295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7296fi 7297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7298$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7299 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7300 CFLAGS="$xorg_testset_save_CFLAGS" 7301fi 7302 7303found="no" 7304 7305 if test $found = "no" ; then 7306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7308 fi 7309 7310 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7312 fi 7313 7314 CFLAGS="$CFLAGS -Werror=main" 7315 7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7317$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7318 cacheid=xorg_cv_cc_flag__Werror_main 7319 if eval \${$cacheid+:} false; then : 7320 $as_echo_n "(cached) " >&6 7321else 7322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7323/* end confdefs.h. */ 7324int i; 7325int 7326main () 7327{ 7328 7329 ; 7330 return 0; 7331} 7332_ACEOF 7333if ac_fn_c_try_link "$LINENO"; then : 7334 eval $cacheid=yes 7335else 7336 eval $cacheid=no 7337fi 7338rm -f core conftest.err conftest.$ac_objext \ 7339 conftest$ac_exeext conftest.$ac_ext 7340fi 7341 7342 7343 CFLAGS="$xorg_testset_save_CFLAGS" 7344 7345 eval supported=\$$cacheid 7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7347$as_echo "$supported" >&6; } 7348 if test "$supported" = "yes" ; then 7349 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7350 found="yes" 7351 fi 7352 fi 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368xorg_testset_save_CFLAGS="$CFLAGS" 7369 7370if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7373$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7374if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7375 $as_echo_n "(cached) " >&6 7376else 7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7378/* end confdefs.h. */ 7379int i; 7380_ACEOF 7381if ac_fn_c_try_compile "$LINENO"; then : 7382 xorg_cv_cc_flag_unknown_warning_option=yes 7383else 7384 xorg_cv_cc_flag_unknown_warning_option=no 7385fi 7386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7387fi 7388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7389$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7391 CFLAGS="$xorg_testset_save_CFLAGS" 7392fi 7393 7394if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7397 fi 7398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7400$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7401if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7402 $as_echo_n "(cached) " >&6 7403else 7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7405/* end confdefs.h. */ 7406int i; 7407_ACEOF 7408if ac_fn_c_try_compile "$LINENO"; then : 7409 xorg_cv_cc_flag_unused_command_line_argument=yes 7410else 7411 xorg_cv_cc_flag_unused_command_line_argument=no 7412fi 7413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7414fi 7415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7416$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7417 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7418 CFLAGS="$xorg_testset_save_CFLAGS" 7419fi 7420 7421found="no" 7422 7423 if test $found = "no" ; then 7424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7426 fi 7427 7428 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7430 fi 7431 7432 CFLAGS="$CFLAGS -Werror=missing-braces" 7433 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7435$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7436 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7437 if eval \${$cacheid+:} false; then : 7438 $as_echo_n "(cached) " >&6 7439else 7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7441/* end confdefs.h. */ 7442int i; 7443int 7444main () 7445{ 7446 7447 ; 7448 return 0; 7449} 7450_ACEOF 7451if ac_fn_c_try_link "$LINENO"; then : 7452 eval $cacheid=yes 7453else 7454 eval $cacheid=no 7455fi 7456rm -f core conftest.err conftest.$ac_objext \ 7457 conftest$ac_exeext conftest.$ac_ext 7458fi 7459 7460 7461 CFLAGS="$xorg_testset_save_CFLAGS" 7462 7463 eval supported=\$$cacheid 7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7465$as_echo "$supported" >&6; } 7466 if test "$supported" = "yes" ; then 7467 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7468 found="yes" 7469 fi 7470 fi 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486xorg_testset_save_CFLAGS="$CFLAGS" 7487 7488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7491$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7492if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7493 $as_echo_n "(cached) " >&6 7494else 7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7496/* end confdefs.h. */ 7497int i; 7498_ACEOF 7499if ac_fn_c_try_compile "$LINENO"; then : 7500 xorg_cv_cc_flag_unknown_warning_option=yes 7501else 7502 xorg_cv_cc_flag_unknown_warning_option=no 7503fi 7504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7505fi 7506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7507$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7509 CFLAGS="$xorg_testset_save_CFLAGS" 7510fi 7511 7512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7515 fi 7516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7518$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7519if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7520 $as_echo_n "(cached) " >&6 7521else 7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7523/* end confdefs.h. */ 7524int i; 7525_ACEOF 7526if ac_fn_c_try_compile "$LINENO"; then : 7527 xorg_cv_cc_flag_unused_command_line_argument=yes 7528else 7529 xorg_cv_cc_flag_unused_command_line_argument=no 7530fi 7531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7532fi 7533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7534$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7536 CFLAGS="$xorg_testset_save_CFLAGS" 7537fi 7538 7539found="no" 7540 7541 if test $found = "no" ; then 7542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7544 fi 7545 7546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7548 fi 7549 7550 CFLAGS="$CFLAGS -Werror=sequence-point" 7551 7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7553$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7554 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7555 if eval \${$cacheid+:} false; then : 7556 $as_echo_n "(cached) " >&6 7557else 7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7559/* end confdefs.h. */ 7560int i; 7561int 7562main () 7563{ 7564 7565 ; 7566 return 0; 7567} 7568_ACEOF 7569if ac_fn_c_try_link "$LINENO"; then : 7570 eval $cacheid=yes 7571else 7572 eval $cacheid=no 7573fi 7574rm -f core conftest.err conftest.$ac_objext \ 7575 conftest$ac_exeext conftest.$ac_ext 7576fi 7577 7578 7579 CFLAGS="$xorg_testset_save_CFLAGS" 7580 7581 eval supported=\$$cacheid 7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7583$as_echo "$supported" >&6; } 7584 if test "$supported" = "yes" ; then 7585 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7586 found="yes" 7587 fi 7588 fi 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604xorg_testset_save_CFLAGS="$CFLAGS" 7605 7606if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7609$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7610if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7611 $as_echo_n "(cached) " >&6 7612else 7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7614/* end confdefs.h. */ 7615int i; 7616_ACEOF 7617if ac_fn_c_try_compile "$LINENO"; then : 7618 xorg_cv_cc_flag_unknown_warning_option=yes 7619else 7620 xorg_cv_cc_flag_unknown_warning_option=no 7621fi 7622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7623fi 7624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7625$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7627 CFLAGS="$xorg_testset_save_CFLAGS" 7628fi 7629 7630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7633 fi 7634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7636$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7637if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7638 $as_echo_n "(cached) " >&6 7639else 7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7641/* end confdefs.h. */ 7642int i; 7643_ACEOF 7644if ac_fn_c_try_compile "$LINENO"; then : 7645 xorg_cv_cc_flag_unused_command_line_argument=yes 7646else 7647 xorg_cv_cc_flag_unused_command_line_argument=no 7648fi 7649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7650fi 7651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7652$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7654 CFLAGS="$xorg_testset_save_CFLAGS" 7655fi 7656 7657found="no" 7658 7659 if test $found = "no" ; then 7660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7662 fi 7663 7664 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7666 fi 7667 7668 CFLAGS="$CFLAGS -Werror=return-type" 7669 7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7671$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7672 cacheid=xorg_cv_cc_flag__Werror_return_type 7673 if eval \${$cacheid+:} false; then : 7674 $as_echo_n "(cached) " >&6 7675else 7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7677/* end confdefs.h. */ 7678int i; 7679int 7680main () 7681{ 7682 7683 ; 7684 return 0; 7685} 7686_ACEOF 7687if ac_fn_c_try_link "$LINENO"; then : 7688 eval $cacheid=yes 7689else 7690 eval $cacheid=no 7691fi 7692rm -f core conftest.err conftest.$ac_objext \ 7693 conftest$ac_exeext conftest.$ac_ext 7694fi 7695 7696 7697 CFLAGS="$xorg_testset_save_CFLAGS" 7698 7699 eval supported=\$$cacheid 7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7701$as_echo "$supported" >&6; } 7702 if test "$supported" = "yes" ; then 7703 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7704 found="yes" 7705 fi 7706 fi 7707 7708 if test $found = "no" ; then 7709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7711 fi 7712 7713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7715 fi 7716 7717 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7718 7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7720$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7721 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7722 if eval \${$cacheid+:} false; then : 7723 $as_echo_n "(cached) " >&6 7724else 7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7726/* end confdefs.h. */ 7727int i; 7728int 7729main () 7730{ 7731 7732 ; 7733 return 0; 7734} 7735_ACEOF 7736if ac_fn_c_try_link "$LINENO"; then : 7737 eval $cacheid=yes 7738else 7739 eval $cacheid=no 7740fi 7741rm -f core conftest.err conftest.$ac_objext \ 7742 conftest$ac_exeext conftest.$ac_ext 7743fi 7744 7745 7746 CFLAGS="$xorg_testset_save_CFLAGS" 7747 7748 eval supported=\$$cacheid 7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7750$as_echo "$supported" >&6; } 7751 if test "$supported" = "yes" ; then 7752 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7753 found="yes" 7754 fi 7755 fi 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771xorg_testset_save_CFLAGS="$CFLAGS" 7772 7773if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7776$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7777if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7778 $as_echo_n "(cached) " >&6 7779else 7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7781/* end confdefs.h. */ 7782int i; 7783_ACEOF 7784if ac_fn_c_try_compile "$LINENO"; then : 7785 xorg_cv_cc_flag_unknown_warning_option=yes 7786else 7787 xorg_cv_cc_flag_unknown_warning_option=no 7788fi 7789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7790fi 7791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7792$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7794 CFLAGS="$xorg_testset_save_CFLAGS" 7795fi 7796 7797if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7800 fi 7801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7803$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7804if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7805 $as_echo_n "(cached) " >&6 7806else 7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7808/* end confdefs.h. */ 7809int i; 7810_ACEOF 7811if ac_fn_c_try_compile "$LINENO"; then : 7812 xorg_cv_cc_flag_unused_command_line_argument=yes 7813else 7814 xorg_cv_cc_flag_unused_command_line_argument=no 7815fi 7816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7817fi 7818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7819$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7820 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7821 CFLAGS="$xorg_testset_save_CFLAGS" 7822fi 7823 7824found="no" 7825 7826 if test $found = "no" ; then 7827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7829 fi 7830 7831 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7833 fi 7834 7835 CFLAGS="$CFLAGS -Werror=trigraphs" 7836 7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7838$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7839 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7840 if eval \${$cacheid+:} false; then : 7841 $as_echo_n "(cached) " >&6 7842else 7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7844/* end confdefs.h. */ 7845int i; 7846int 7847main () 7848{ 7849 7850 ; 7851 return 0; 7852} 7853_ACEOF 7854if ac_fn_c_try_link "$LINENO"; then : 7855 eval $cacheid=yes 7856else 7857 eval $cacheid=no 7858fi 7859rm -f core conftest.err conftest.$ac_objext \ 7860 conftest$ac_exeext conftest.$ac_ext 7861fi 7862 7863 7864 CFLAGS="$xorg_testset_save_CFLAGS" 7865 7866 eval supported=\$$cacheid 7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7868$as_echo "$supported" >&6; } 7869 if test "$supported" = "yes" ; then 7870 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7871 found="yes" 7872 fi 7873 fi 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889xorg_testset_save_CFLAGS="$CFLAGS" 7890 7891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7894$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7895if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7896 $as_echo_n "(cached) " >&6 7897else 7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7899/* end confdefs.h. */ 7900int i; 7901_ACEOF 7902if ac_fn_c_try_compile "$LINENO"; then : 7903 xorg_cv_cc_flag_unknown_warning_option=yes 7904else 7905 xorg_cv_cc_flag_unknown_warning_option=no 7906fi 7907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7908fi 7909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7910$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7912 CFLAGS="$xorg_testset_save_CFLAGS" 7913fi 7914 7915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7918 fi 7919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7921$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7922if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7923 $as_echo_n "(cached) " >&6 7924else 7925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7926/* end confdefs.h. */ 7927int i; 7928_ACEOF 7929if ac_fn_c_try_compile "$LINENO"; then : 7930 xorg_cv_cc_flag_unused_command_line_argument=yes 7931else 7932 xorg_cv_cc_flag_unused_command_line_argument=no 7933fi 7934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7935fi 7936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7937$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7939 CFLAGS="$xorg_testset_save_CFLAGS" 7940fi 7941 7942found="no" 7943 7944 if test $found = "no" ; then 7945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7947 fi 7948 7949 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7951 fi 7952 7953 CFLAGS="$CFLAGS -Werror=array-bounds" 7954 7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7956$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7957 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7958 if eval \${$cacheid+:} false; then : 7959 $as_echo_n "(cached) " >&6 7960else 7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7962/* end confdefs.h. */ 7963int i; 7964int 7965main () 7966{ 7967 7968 ; 7969 return 0; 7970} 7971_ACEOF 7972if ac_fn_c_try_link "$LINENO"; then : 7973 eval $cacheid=yes 7974else 7975 eval $cacheid=no 7976fi 7977rm -f core conftest.err conftest.$ac_objext \ 7978 conftest$ac_exeext conftest.$ac_ext 7979fi 7980 7981 7982 CFLAGS="$xorg_testset_save_CFLAGS" 7983 7984 eval supported=\$$cacheid 7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7986$as_echo "$supported" >&6; } 7987 if test "$supported" = "yes" ; then 7988 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7989 found="yes" 7990 fi 7991 fi 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007xorg_testset_save_CFLAGS="$CFLAGS" 8008 8009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8012$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8013if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8014 $as_echo_n "(cached) " >&6 8015else 8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8017/* end confdefs.h. */ 8018int i; 8019_ACEOF 8020if ac_fn_c_try_compile "$LINENO"; then : 8021 xorg_cv_cc_flag_unknown_warning_option=yes 8022else 8023 xorg_cv_cc_flag_unknown_warning_option=no 8024fi 8025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8026fi 8027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8028$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8030 CFLAGS="$xorg_testset_save_CFLAGS" 8031fi 8032 8033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8036 fi 8037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8039$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8040if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8041 $as_echo_n "(cached) " >&6 8042else 8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8044/* end confdefs.h. */ 8045int i; 8046_ACEOF 8047if ac_fn_c_try_compile "$LINENO"; then : 8048 xorg_cv_cc_flag_unused_command_line_argument=yes 8049else 8050 xorg_cv_cc_flag_unused_command_line_argument=no 8051fi 8052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8053fi 8054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8055$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8057 CFLAGS="$xorg_testset_save_CFLAGS" 8058fi 8059 8060found="no" 8061 8062 if test $found = "no" ; then 8063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8065 fi 8066 8067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8069 fi 8070 8071 CFLAGS="$CFLAGS -Werror=write-strings" 8072 8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8074$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8075 cacheid=xorg_cv_cc_flag__Werror_write_strings 8076 if eval \${$cacheid+:} false; then : 8077 $as_echo_n "(cached) " >&6 8078else 8079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8080/* end confdefs.h. */ 8081int i; 8082int 8083main () 8084{ 8085 8086 ; 8087 return 0; 8088} 8089_ACEOF 8090if ac_fn_c_try_link "$LINENO"; then : 8091 eval $cacheid=yes 8092else 8093 eval $cacheid=no 8094fi 8095rm -f core conftest.err conftest.$ac_objext \ 8096 conftest$ac_exeext conftest.$ac_ext 8097fi 8098 8099 8100 CFLAGS="$xorg_testset_save_CFLAGS" 8101 8102 eval supported=\$$cacheid 8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8104$as_echo "$supported" >&6; } 8105 if test "$supported" = "yes" ; then 8106 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8107 found="yes" 8108 fi 8109 fi 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125xorg_testset_save_CFLAGS="$CFLAGS" 8126 8127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8130$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8131if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8132 $as_echo_n "(cached) " >&6 8133else 8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8135/* end confdefs.h. */ 8136int i; 8137_ACEOF 8138if ac_fn_c_try_compile "$LINENO"; then : 8139 xorg_cv_cc_flag_unknown_warning_option=yes 8140else 8141 xorg_cv_cc_flag_unknown_warning_option=no 8142fi 8143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8144fi 8145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8146$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8148 CFLAGS="$xorg_testset_save_CFLAGS" 8149fi 8150 8151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8154 fi 8155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8157$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8158if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8159 $as_echo_n "(cached) " >&6 8160else 8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8162/* end confdefs.h. */ 8163int i; 8164_ACEOF 8165if ac_fn_c_try_compile "$LINENO"; then : 8166 xorg_cv_cc_flag_unused_command_line_argument=yes 8167else 8168 xorg_cv_cc_flag_unused_command_line_argument=no 8169fi 8170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8171fi 8172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8173$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8175 CFLAGS="$xorg_testset_save_CFLAGS" 8176fi 8177 8178found="no" 8179 8180 if test $found = "no" ; then 8181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8183 fi 8184 8185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8187 fi 8188 8189 CFLAGS="$CFLAGS -Werror=address" 8190 8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8192$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8193 cacheid=xorg_cv_cc_flag__Werror_address 8194 if eval \${$cacheid+:} false; then : 8195 $as_echo_n "(cached) " >&6 8196else 8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8198/* end confdefs.h. */ 8199int i; 8200int 8201main () 8202{ 8203 8204 ; 8205 return 0; 8206} 8207_ACEOF 8208if ac_fn_c_try_link "$LINENO"; then : 8209 eval $cacheid=yes 8210else 8211 eval $cacheid=no 8212fi 8213rm -f core conftest.err conftest.$ac_objext \ 8214 conftest$ac_exeext conftest.$ac_ext 8215fi 8216 8217 8218 CFLAGS="$xorg_testset_save_CFLAGS" 8219 8220 eval supported=\$$cacheid 8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8222$as_echo "$supported" >&6; } 8223 if test "$supported" = "yes" ; then 8224 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8225 found="yes" 8226 fi 8227 fi 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243xorg_testset_save_CFLAGS="$CFLAGS" 8244 8245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8248$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8249if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8250 $as_echo_n "(cached) " >&6 8251else 8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8253/* end confdefs.h. */ 8254int i; 8255_ACEOF 8256if ac_fn_c_try_compile "$LINENO"; then : 8257 xorg_cv_cc_flag_unknown_warning_option=yes 8258else 8259 xorg_cv_cc_flag_unknown_warning_option=no 8260fi 8261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8262fi 8263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8264$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8266 CFLAGS="$xorg_testset_save_CFLAGS" 8267fi 8268 8269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8272 fi 8273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8275$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8276if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8277 $as_echo_n "(cached) " >&6 8278else 8279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8280/* end confdefs.h. */ 8281int i; 8282_ACEOF 8283if ac_fn_c_try_compile "$LINENO"; then : 8284 xorg_cv_cc_flag_unused_command_line_argument=yes 8285else 8286 xorg_cv_cc_flag_unused_command_line_argument=no 8287fi 8288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8289fi 8290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8291$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8293 CFLAGS="$xorg_testset_save_CFLAGS" 8294fi 8295 8296found="no" 8297 8298 if test $found = "no" ; then 8299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8301 fi 8302 8303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8305 fi 8306 8307 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8308 8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8310$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8311 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8312 if eval \${$cacheid+:} false; then : 8313 $as_echo_n "(cached) " >&6 8314else 8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8316/* end confdefs.h. */ 8317int i; 8318int 8319main () 8320{ 8321 8322 ; 8323 return 0; 8324} 8325_ACEOF 8326if ac_fn_c_try_link "$LINENO"; then : 8327 eval $cacheid=yes 8328else 8329 eval $cacheid=no 8330fi 8331rm -f core conftest.err conftest.$ac_objext \ 8332 conftest$ac_exeext conftest.$ac_ext 8333fi 8334 8335 8336 CFLAGS="$xorg_testset_save_CFLAGS" 8337 8338 eval supported=\$$cacheid 8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8340$as_echo "$supported" >&6; } 8341 if test "$supported" = "yes" ; then 8342 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8343 found="yes" 8344 fi 8345 fi 8346 8347 if test $found = "no" ; then 8348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8350 fi 8351 8352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8354 fi 8355 8356 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8357 8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8359$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8360 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8361 if eval \${$cacheid+:} false; then : 8362 $as_echo_n "(cached) " >&6 8363else 8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8365/* end confdefs.h. */ 8366int i; 8367int 8368main () 8369{ 8370 8371 ; 8372 return 0; 8373} 8374_ACEOF 8375if ac_fn_c_try_link "$LINENO"; then : 8376 eval $cacheid=yes 8377else 8378 eval $cacheid=no 8379fi 8380rm -f core conftest.err conftest.$ac_objext \ 8381 conftest$ac_exeext conftest.$ac_ext 8382fi 8383 8384 8385 CFLAGS="$xorg_testset_save_CFLAGS" 8386 8387 eval supported=\$$cacheid 8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8389$as_echo "$supported" >&6; } 8390 if test "$supported" = "yes" ; then 8391 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8392 found="yes" 8393 fi 8394 fi 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410xorg_testset_save_CFLAGS="$CFLAGS" 8411 8412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8415$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8416if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8417 $as_echo_n "(cached) " >&6 8418else 8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8420/* end confdefs.h. */ 8421int i; 8422_ACEOF 8423if ac_fn_c_try_compile "$LINENO"; then : 8424 xorg_cv_cc_flag_unknown_warning_option=yes 8425else 8426 xorg_cv_cc_flag_unknown_warning_option=no 8427fi 8428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8429fi 8430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8431$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8433 CFLAGS="$xorg_testset_save_CFLAGS" 8434fi 8435 8436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8439 fi 8440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8442$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8443if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8444 $as_echo_n "(cached) " >&6 8445else 8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8447/* end confdefs.h. */ 8448int i; 8449_ACEOF 8450if ac_fn_c_try_compile "$LINENO"; then : 8451 xorg_cv_cc_flag_unused_command_line_argument=yes 8452else 8453 xorg_cv_cc_flag_unused_command_line_argument=no 8454fi 8455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8456fi 8457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8458$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8460 CFLAGS="$xorg_testset_save_CFLAGS" 8461fi 8462 8463found="no" 8464 8465 if test $found = "no" ; then 8466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8468 fi 8469 8470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8472 fi 8473 8474 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8475 8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8477$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8478 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8479 if eval \${$cacheid+:} false; then : 8480 $as_echo_n "(cached) " >&6 8481else 8482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8483/* end confdefs.h. */ 8484int i; 8485int 8486main () 8487{ 8488 8489 ; 8490 return 0; 8491} 8492_ACEOF 8493if ac_fn_c_try_link "$LINENO"; then : 8494 eval $cacheid=yes 8495else 8496 eval $cacheid=no 8497fi 8498rm -f core conftest.err conftest.$ac_objext \ 8499 conftest$ac_exeext conftest.$ac_ext 8500fi 8501 8502 8503 CFLAGS="$xorg_testset_save_CFLAGS" 8504 8505 eval supported=\$$cacheid 8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8507$as_echo "$supported" >&6; } 8508 if test "$supported" = "yes" ; then 8509 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8510 found="yes" 8511 fi 8512 fi 8513 8514 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8515else 8516{ $as_echo "$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 8517$as_echo "$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;} 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531xorg_testset_save_CFLAGS="$CFLAGS" 8532 8533if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8536$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8537if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8538 $as_echo_n "(cached) " >&6 8539else 8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8541/* end confdefs.h. */ 8542int i; 8543_ACEOF 8544if ac_fn_c_try_compile "$LINENO"; then : 8545 xorg_cv_cc_flag_unknown_warning_option=yes 8546else 8547 xorg_cv_cc_flag_unknown_warning_option=no 8548fi 8549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8550fi 8551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8552$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8554 CFLAGS="$xorg_testset_save_CFLAGS" 8555fi 8556 8557if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8560 fi 8561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8563$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8564if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8565 $as_echo_n "(cached) " >&6 8566else 8567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8568/* end confdefs.h. */ 8569int i; 8570_ACEOF 8571if ac_fn_c_try_compile "$LINENO"; then : 8572 xorg_cv_cc_flag_unused_command_line_argument=yes 8573else 8574 xorg_cv_cc_flag_unused_command_line_argument=no 8575fi 8576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8577fi 8578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8579$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8581 CFLAGS="$xorg_testset_save_CFLAGS" 8582fi 8583 8584found="no" 8585 8586 if test $found = "no" ; then 8587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8589 fi 8590 8591 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8593 fi 8594 8595 CFLAGS="$CFLAGS -Wimplicit" 8596 8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8598$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8599 cacheid=xorg_cv_cc_flag__Wimplicit 8600 if eval \${$cacheid+:} false; then : 8601 $as_echo_n "(cached) " >&6 8602else 8603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8604/* end confdefs.h. */ 8605int i; 8606int 8607main () 8608{ 8609 8610 ; 8611 return 0; 8612} 8613_ACEOF 8614if ac_fn_c_try_link "$LINENO"; then : 8615 eval $cacheid=yes 8616else 8617 eval $cacheid=no 8618fi 8619rm -f core conftest.err conftest.$ac_objext \ 8620 conftest$ac_exeext conftest.$ac_ext 8621fi 8622 8623 8624 CFLAGS="$xorg_testset_save_CFLAGS" 8625 8626 eval supported=\$$cacheid 8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8628$as_echo "$supported" >&6; } 8629 if test "$supported" = "yes" ; then 8630 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8631 found="yes" 8632 fi 8633 fi 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649xorg_testset_save_CFLAGS="$CFLAGS" 8650 8651if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8654$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8655if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8656 $as_echo_n "(cached) " >&6 8657else 8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8659/* end confdefs.h. */ 8660int i; 8661_ACEOF 8662if ac_fn_c_try_compile "$LINENO"; then : 8663 xorg_cv_cc_flag_unknown_warning_option=yes 8664else 8665 xorg_cv_cc_flag_unknown_warning_option=no 8666fi 8667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8668fi 8669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8670$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8671 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8672 CFLAGS="$xorg_testset_save_CFLAGS" 8673fi 8674 8675if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8678 fi 8679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8681$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8682if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8683 $as_echo_n "(cached) " >&6 8684else 8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8686/* end confdefs.h. */ 8687int i; 8688_ACEOF 8689if ac_fn_c_try_compile "$LINENO"; then : 8690 xorg_cv_cc_flag_unused_command_line_argument=yes 8691else 8692 xorg_cv_cc_flag_unused_command_line_argument=no 8693fi 8694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8695fi 8696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8697$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8699 CFLAGS="$xorg_testset_save_CFLAGS" 8700fi 8701 8702found="no" 8703 8704 if test $found = "no" ; then 8705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8707 fi 8708 8709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8711 fi 8712 8713 CFLAGS="$CFLAGS -Wnonnull" 8714 8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8716$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8717 cacheid=xorg_cv_cc_flag__Wnonnull 8718 if eval \${$cacheid+:} false; then : 8719 $as_echo_n "(cached) " >&6 8720else 8721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8722/* end confdefs.h. */ 8723int i; 8724int 8725main () 8726{ 8727 8728 ; 8729 return 0; 8730} 8731_ACEOF 8732if ac_fn_c_try_link "$LINENO"; then : 8733 eval $cacheid=yes 8734else 8735 eval $cacheid=no 8736fi 8737rm -f core conftest.err conftest.$ac_objext \ 8738 conftest$ac_exeext conftest.$ac_ext 8739fi 8740 8741 8742 CFLAGS="$xorg_testset_save_CFLAGS" 8743 8744 eval supported=\$$cacheid 8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8746$as_echo "$supported" >&6; } 8747 if test "$supported" = "yes" ; then 8748 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8749 found="yes" 8750 fi 8751 fi 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767xorg_testset_save_CFLAGS="$CFLAGS" 8768 8769if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8772$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8773if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8774 $as_echo_n "(cached) " >&6 8775else 8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8777/* end confdefs.h. */ 8778int i; 8779_ACEOF 8780if ac_fn_c_try_compile "$LINENO"; then : 8781 xorg_cv_cc_flag_unknown_warning_option=yes 8782else 8783 xorg_cv_cc_flag_unknown_warning_option=no 8784fi 8785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8786fi 8787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8788$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8789 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8790 CFLAGS="$xorg_testset_save_CFLAGS" 8791fi 8792 8793if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8796 fi 8797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8799$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8800if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8801 $as_echo_n "(cached) " >&6 8802else 8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8804/* end confdefs.h. */ 8805int i; 8806_ACEOF 8807if ac_fn_c_try_compile "$LINENO"; then : 8808 xorg_cv_cc_flag_unused_command_line_argument=yes 8809else 8810 xorg_cv_cc_flag_unused_command_line_argument=no 8811fi 8812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8813fi 8814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8815$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8817 CFLAGS="$xorg_testset_save_CFLAGS" 8818fi 8819 8820found="no" 8821 8822 if test $found = "no" ; then 8823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8825 fi 8826 8827 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8829 fi 8830 8831 CFLAGS="$CFLAGS -Winit-self" 8832 8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8834$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8835 cacheid=xorg_cv_cc_flag__Winit_self 8836 if eval \${$cacheid+:} false; then : 8837 $as_echo_n "(cached) " >&6 8838else 8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8840/* end confdefs.h. */ 8841int i; 8842int 8843main () 8844{ 8845 8846 ; 8847 return 0; 8848} 8849_ACEOF 8850if ac_fn_c_try_link "$LINENO"; then : 8851 eval $cacheid=yes 8852else 8853 eval $cacheid=no 8854fi 8855rm -f core conftest.err conftest.$ac_objext \ 8856 conftest$ac_exeext conftest.$ac_ext 8857fi 8858 8859 8860 CFLAGS="$xorg_testset_save_CFLAGS" 8861 8862 eval supported=\$$cacheid 8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8864$as_echo "$supported" >&6; } 8865 if test "$supported" = "yes" ; then 8866 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8867 found="yes" 8868 fi 8869 fi 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885xorg_testset_save_CFLAGS="$CFLAGS" 8886 8887if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8890$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8891if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8892 $as_echo_n "(cached) " >&6 8893else 8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8895/* end confdefs.h. */ 8896int i; 8897_ACEOF 8898if ac_fn_c_try_compile "$LINENO"; then : 8899 xorg_cv_cc_flag_unknown_warning_option=yes 8900else 8901 xorg_cv_cc_flag_unknown_warning_option=no 8902fi 8903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8904fi 8905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8906$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8907 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8908 CFLAGS="$xorg_testset_save_CFLAGS" 8909fi 8910 8911if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8914 fi 8915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8917$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8918if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8919 $as_echo_n "(cached) " >&6 8920else 8921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8922/* end confdefs.h. */ 8923int i; 8924_ACEOF 8925if ac_fn_c_try_compile "$LINENO"; then : 8926 xorg_cv_cc_flag_unused_command_line_argument=yes 8927else 8928 xorg_cv_cc_flag_unused_command_line_argument=no 8929fi 8930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8931fi 8932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8933$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8934 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8935 CFLAGS="$xorg_testset_save_CFLAGS" 8936fi 8937 8938found="no" 8939 8940 if test $found = "no" ; then 8941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8943 fi 8944 8945 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8947 fi 8948 8949 CFLAGS="$CFLAGS -Wmain" 8950 8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8952$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8953 cacheid=xorg_cv_cc_flag__Wmain 8954 if eval \${$cacheid+:} false; then : 8955 $as_echo_n "(cached) " >&6 8956else 8957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8958/* end confdefs.h. */ 8959int i; 8960int 8961main () 8962{ 8963 8964 ; 8965 return 0; 8966} 8967_ACEOF 8968if ac_fn_c_try_link "$LINENO"; then : 8969 eval $cacheid=yes 8970else 8971 eval $cacheid=no 8972fi 8973rm -f core conftest.err conftest.$ac_objext \ 8974 conftest$ac_exeext conftest.$ac_ext 8975fi 8976 8977 8978 CFLAGS="$xorg_testset_save_CFLAGS" 8979 8980 eval supported=\$$cacheid 8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8982$as_echo "$supported" >&6; } 8983 if test "$supported" = "yes" ; then 8984 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8985 found="yes" 8986 fi 8987 fi 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003xorg_testset_save_CFLAGS="$CFLAGS" 9004 9005if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9008$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9009if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9010 $as_echo_n "(cached) " >&6 9011else 9012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9013/* end confdefs.h. */ 9014int i; 9015_ACEOF 9016if ac_fn_c_try_compile "$LINENO"; then : 9017 xorg_cv_cc_flag_unknown_warning_option=yes 9018else 9019 xorg_cv_cc_flag_unknown_warning_option=no 9020fi 9021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9022fi 9023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9024$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9025 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9026 CFLAGS="$xorg_testset_save_CFLAGS" 9027fi 9028 9029if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9032 fi 9033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9035$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9036if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9037 $as_echo_n "(cached) " >&6 9038else 9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9040/* end confdefs.h. */ 9041int i; 9042_ACEOF 9043if ac_fn_c_try_compile "$LINENO"; then : 9044 xorg_cv_cc_flag_unused_command_line_argument=yes 9045else 9046 xorg_cv_cc_flag_unused_command_line_argument=no 9047fi 9048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9049fi 9050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9051$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9052 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9053 CFLAGS="$xorg_testset_save_CFLAGS" 9054fi 9055 9056found="no" 9057 9058 if test $found = "no" ; then 9059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9061 fi 9062 9063 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9065 fi 9066 9067 CFLAGS="$CFLAGS -Wmissing-braces" 9068 9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9070$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9071 cacheid=xorg_cv_cc_flag__Wmissing_braces 9072 if eval \${$cacheid+:} false; then : 9073 $as_echo_n "(cached) " >&6 9074else 9075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9076/* end confdefs.h. */ 9077int i; 9078int 9079main () 9080{ 9081 9082 ; 9083 return 0; 9084} 9085_ACEOF 9086if ac_fn_c_try_link "$LINENO"; then : 9087 eval $cacheid=yes 9088else 9089 eval $cacheid=no 9090fi 9091rm -f core conftest.err conftest.$ac_objext \ 9092 conftest$ac_exeext conftest.$ac_ext 9093fi 9094 9095 9096 CFLAGS="$xorg_testset_save_CFLAGS" 9097 9098 eval supported=\$$cacheid 9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9100$as_echo "$supported" >&6; } 9101 if test "$supported" = "yes" ; then 9102 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9103 found="yes" 9104 fi 9105 fi 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121xorg_testset_save_CFLAGS="$CFLAGS" 9122 9123if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9126$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9127if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9128 $as_echo_n "(cached) " >&6 9129else 9130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9131/* end confdefs.h. */ 9132int i; 9133_ACEOF 9134if ac_fn_c_try_compile "$LINENO"; then : 9135 xorg_cv_cc_flag_unknown_warning_option=yes 9136else 9137 xorg_cv_cc_flag_unknown_warning_option=no 9138fi 9139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9140fi 9141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9142$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9143 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9144 CFLAGS="$xorg_testset_save_CFLAGS" 9145fi 9146 9147if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9150 fi 9151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9153$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9154if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9155 $as_echo_n "(cached) " >&6 9156else 9157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9158/* end confdefs.h. */ 9159int i; 9160_ACEOF 9161if ac_fn_c_try_compile "$LINENO"; then : 9162 xorg_cv_cc_flag_unused_command_line_argument=yes 9163else 9164 xorg_cv_cc_flag_unused_command_line_argument=no 9165fi 9166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9167fi 9168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9169$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9170 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9171 CFLAGS="$xorg_testset_save_CFLAGS" 9172fi 9173 9174found="no" 9175 9176 if test $found = "no" ; then 9177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9179 fi 9180 9181 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9183 fi 9184 9185 CFLAGS="$CFLAGS -Wsequence-point" 9186 9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9188$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9189 cacheid=xorg_cv_cc_flag__Wsequence_point 9190 if eval \${$cacheid+:} false; then : 9191 $as_echo_n "(cached) " >&6 9192else 9193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9194/* end confdefs.h. */ 9195int i; 9196int 9197main () 9198{ 9199 9200 ; 9201 return 0; 9202} 9203_ACEOF 9204if ac_fn_c_try_link "$LINENO"; then : 9205 eval $cacheid=yes 9206else 9207 eval $cacheid=no 9208fi 9209rm -f core conftest.err conftest.$ac_objext \ 9210 conftest$ac_exeext conftest.$ac_ext 9211fi 9212 9213 9214 CFLAGS="$xorg_testset_save_CFLAGS" 9215 9216 eval supported=\$$cacheid 9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9218$as_echo "$supported" >&6; } 9219 if test "$supported" = "yes" ; then 9220 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9221 found="yes" 9222 fi 9223 fi 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239xorg_testset_save_CFLAGS="$CFLAGS" 9240 9241if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9244$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9245if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9246 $as_echo_n "(cached) " >&6 9247else 9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9249/* end confdefs.h. */ 9250int i; 9251_ACEOF 9252if ac_fn_c_try_compile "$LINENO"; then : 9253 xorg_cv_cc_flag_unknown_warning_option=yes 9254else 9255 xorg_cv_cc_flag_unknown_warning_option=no 9256fi 9257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9258fi 9259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9260$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9262 CFLAGS="$xorg_testset_save_CFLAGS" 9263fi 9264 9265if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9268 fi 9269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9271$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9272if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9273 $as_echo_n "(cached) " >&6 9274else 9275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9276/* end confdefs.h. */ 9277int i; 9278_ACEOF 9279if ac_fn_c_try_compile "$LINENO"; then : 9280 xorg_cv_cc_flag_unused_command_line_argument=yes 9281else 9282 xorg_cv_cc_flag_unused_command_line_argument=no 9283fi 9284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9285fi 9286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9287$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9289 CFLAGS="$xorg_testset_save_CFLAGS" 9290fi 9291 9292found="no" 9293 9294 if test $found = "no" ; then 9295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9297 fi 9298 9299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9301 fi 9302 9303 CFLAGS="$CFLAGS -Wreturn-type" 9304 9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9306$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9307 cacheid=xorg_cv_cc_flag__Wreturn_type 9308 if eval \${$cacheid+:} false; then : 9309 $as_echo_n "(cached) " >&6 9310else 9311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9312/* end confdefs.h. */ 9313int i; 9314int 9315main () 9316{ 9317 9318 ; 9319 return 0; 9320} 9321_ACEOF 9322if ac_fn_c_try_link "$LINENO"; then : 9323 eval $cacheid=yes 9324else 9325 eval $cacheid=no 9326fi 9327rm -f core conftest.err conftest.$ac_objext \ 9328 conftest$ac_exeext conftest.$ac_ext 9329fi 9330 9331 9332 CFLAGS="$xorg_testset_save_CFLAGS" 9333 9334 eval supported=\$$cacheid 9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9336$as_echo "$supported" >&6; } 9337 if test "$supported" = "yes" ; then 9338 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9339 found="yes" 9340 fi 9341 fi 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357xorg_testset_save_CFLAGS="$CFLAGS" 9358 9359if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9362$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9363if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9364 $as_echo_n "(cached) " >&6 9365else 9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9367/* end confdefs.h. */ 9368int i; 9369_ACEOF 9370if ac_fn_c_try_compile "$LINENO"; then : 9371 xorg_cv_cc_flag_unknown_warning_option=yes 9372else 9373 xorg_cv_cc_flag_unknown_warning_option=no 9374fi 9375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9376fi 9377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9378$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9380 CFLAGS="$xorg_testset_save_CFLAGS" 9381fi 9382 9383if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9386 fi 9387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9389$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9390if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9391 $as_echo_n "(cached) " >&6 9392else 9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9394/* end confdefs.h. */ 9395int i; 9396_ACEOF 9397if ac_fn_c_try_compile "$LINENO"; then : 9398 xorg_cv_cc_flag_unused_command_line_argument=yes 9399else 9400 xorg_cv_cc_flag_unused_command_line_argument=no 9401fi 9402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9403fi 9404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9405$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9406 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9407 CFLAGS="$xorg_testset_save_CFLAGS" 9408fi 9409 9410found="no" 9411 9412 if test $found = "no" ; then 9413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9415 fi 9416 9417 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9419 fi 9420 9421 CFLAGS="$CFLAGS -Wtrigraphs" 9422 9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9424$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9425 cacheid=xorg_cv_cc_flag__Wtrigraphs 9426 if eval \${$cacheid+:} false; then : 9427 $as_echo_n "(cached) " >&6 9428else 9429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9430/* end confdefs.h. */ 9431int i; 9432int 9433main () 9434{ 9435 9436 ; 9437 return 0; 9438} 9439_ACEOF 9440if ac_fn_c_try_link "$LINENO"; then : 9441 eval $cacheid=yes 9442else 9443 eval $cacheid=no 9444fi 9445rm -f core conftest.err conftest.$ac_objext \ 9446 conftest$ac_exeext conftest.$ac_ext 9447fi 9448 9449 9450 CFLAGS="$xorg_testset_save_CFLAGS" 9451 9452 eval supported=\$$cacheid 9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9454$as_echo "$supported" >&6; } 9455 if test "$supported" = "yes" ; then 9456 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9457 found="yes" 9458 fi 9459 fi 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475xorg_testset_save_CFLAGS="$CFLAGS" 9476 9477if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9480$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9481if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9482 $as_echo_n "(cached) " >&6 9483else 9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9485/* end confdefs.h. */ 9486int i; 9487_ACEOF 9488if ac_fn_c_try_compile "$LINENO"; then : 9489 xorg_cv_cc_flag_unknown_warning_option=yes 9490else 9491 xorg_cv_cc_flag_unknown_warning_option=no 9492fi 9493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9494fi 9495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9496$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9498 CFLAGS="$xorg_testset_save_CFLAGS" 9499fi 9500 9501if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9504 fi 9505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9507$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9508if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9509 $as_echo_n "(cached) " >&6 9510else 9511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9512/* end confdefs.h. */ 9513int i; 9514_ACEOF 9515if ac_fn_c_try_compile "$LINENO"; then : 9516 xorg_cv_cc_flag_unused_command_line_argument=yes 9517else 9518 xorg_cv_cc_flag_unused_command_line_argument=no 9519fi 9520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9521fi 9522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9523$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9524 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9525 CFLAGS="$xorg_testset_save_CFLAGS" 9526fi 9527 9528found="no" 9529 9530 if test $found = "no" ; then 9531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9533 fi 9534 9535 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9537 fi 9538 9539 CFLAGS="$CFLAGS -Warray-bounds" 9540 9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9542$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9543 cacheid=xorg_cv_cc_flag__Warray_bounds 9544 if eval \${$cacheid+:} false; then : 9545 $as_echo_n "(cached) " >&6 9546else 9547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9548/* end confdefs.h. */ 9549int i; 9550int 9551main () 9552{ 9553 9554 ; 9555 return 0; 9556} 9557_ACEOF 9558if ac_fn_c_try_link "$LINENO"; then : 9559 eval $cacheid=yes 9560else 9561 eval $cacheid=no 9562fi 9563rm -f core conftest.err conftest.$ac_objext \ 9564 conftest$ac_exeext conftest.$ac_ext 9565fi 9566 9567 9568 CFLAGS="$xorg_testset_save_CFLAGS" 9569 9570 eval supported=\$$cacheid 9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9572$as_echo "$supported" >&6; } 9573 if test "$supported" = "yes" ; then 9574 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9575 found="yes" 9576 fi 9577 fi 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593xorg_testset_save_CFLAGS="$CFLAGS" 9594 9595if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9598$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9599if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9600 $as_echo_n "(cached) " >&6 9601else 9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9603/* end confdefs.h. */ 9604int i; 9605_ACEOF 9606if ac_fn_c_try_compile "$LINENO"; then : 9607 xorg_cv_cc_flag_unknown_warning_option=yes 9608else 9609 xorg_cv_cc_flag_unknown_warning_option=no 9610fi 9611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9612fi 9613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9614$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9615 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9616 CFLAGS="$xorg_testset_save_CFLAGS" 9617fi 9618 9619if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9622 fi 9623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9625$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9626if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9627 $as_echo_n "(cached) " >&6 9628else 9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9630/* end confdefs.h. */ 9631int i; 9632_ACEOF 9633if ac_fn_c_try_compile "$LINENO"; then : 9634 xorg_cv_cc_flag_unused_command_line_argument=yes 9635else 9636 xorg_cv_cc_flag_unused_command_line_argument=no 9637fi 9638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9639fi 9640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9641$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9642 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9643 CFLAGS="$xorg_testset_save_CFLAGS" 9644fi 9645 9646found="no" 9647 9648 if test $found = "no" ; then 9649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9651 fi 9652 9653 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9655 fi 9656 9657 CFLAGS="$CFLAGS -Wwrite-strings" 9658 9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9660$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9661 cacheid=xorg_cv_cc_flag__Wwrite_strings 9662 if eval \${$cacheid+:} false; then : 9663 $as_echo_n "(cached) " >&6 9664else 9665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9666/* end confdefs.h. */ 9667int i; 9668int 9669main () 9670{ 9671 9672 ; 9673 return 0; 9674} 9675_ACEOF 9676if ac_fn_c_try_link "$LINENO"; then : 9677 eval $cacheid=yes 9678else 9679 eval $cacheid=no 9680fi 9681rm -f core conftest.err conftest.$ac_objext \ 9682 conftest$ac_exeext conftest.$ac_ext 9683fi 9684 9685 9686 CFLAGS="$xorg_testset_save_CFLAGS" 9687 9688 eval supported=\$$cacheid 9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9690$as_echo "$supported" >&6; } 9691 if test "$supported" = "yes" ; then 9692 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9693 found="yes" 9694 fi 9695 fi 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711xorg_testset_save_CFLAGS="$CFLAGS" 9712 9713if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9716$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9717if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9718 $as_echo_n "(cached) " >&6 9719else 9720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9721/* end confdefs.h. */ 9722int i; 9723_ACEOF 9724if ac_fn_c_try_compile "$LINENO"; then : 9725 xorg_cv_cc_flag_unknown_warning_option=yes 9726else 9727 xorg_cv_cc_flag_unknown_warning_option=no 9728fi 9729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9730fi 9731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9732$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9733 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9734 CFLAGS="$xorg_testset_save_CFLAGS" 9735fi 9736 9737if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9740 fi 9741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9743$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9744if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9745 $as_echo_n "(cached) " >&6 9746else 9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9748/* end confdefs.h. */ 9749int i; 9750_ACEOF 9751if ac_fn_c_try_compile "$LINENO"; then : 9752 xorg_cv_cc_flag_unused_command_line_argument=yes 9753else 9754 xorg_cv_cc_flag_unused_command_line_argument=no 9755fi 9756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9757fi 9758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9759$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9760 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9761 CFLAGS="$xorg_testset_save_CFLAGS" 9762fi 9763 9764found="no" 9765 9766 if test $found = "no" ; then 9767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9769 fi 9770 9771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9773 fi 9774 9775 CFLAGS="$CFLAGS -Waddress" 9776 9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9778$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9779 cacheid=xorg_cv_cc_flag__Waddress 9780 if eval \${$cacheid+:} false; then : 9781 $as_echo_n "(cached) " >&6 9782else 9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9784/* end confdefs.h. */ 9785int i; 9786int 9787main () 9788{ 9789 9790 ; 9791 return 0; 9792} 9793_ACEOF 9794if ac_fn_c_try_link "$LINENO"; then : 9795 eval $cacheid=yes 9796else 9797 eval $cacheid=no 9798fi 9799rm -f core conftest.err conftest.$ac_objext \ 9800 conftest$ac_exeext conftest.$ac_ext 9801fi 9802 9803 9804 CFLAGS="$xorg_testset_save_CFLAGS" 9805 9806 eval supported=\$$cacheid 9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9808$as_echo "$supported" >&6; } 9809 if test "$supported" = "yes" ; then 9810 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9811 found="yes" 9812 fi 9813 fi 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829xorg_testset_save_CFLAGS="$CFLAGS" 9830 9831if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9834$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9835if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9836 $as_echo_n "(cached) " >&6 9837else 9838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9839/* end confdefs.h. */ 9840int i; 9841_ACEOF 9842if ac_fn_c_try_compile "$LINENO"; then : 9843 xorg_cv_cc_flag_unknown_warning_option=yes 9844else 9845 xorg_cv_cc_flag_unknown_warning_option=no 9846fi 9847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9848fi 9849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9850$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9852 CFLAGS="$xorg_testset_save_CFLAGS" 9853fi 9854 9855if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9858 fi 9859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9861$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9862if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9863 $as_echo_n "(cached) " >&6 9864else 9865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9866/* end confdefs.h. */ 9867int i; 9868_ACEOF 9869if ac_fn_c_try_compile "$LINENO"; then : 9870 xorg_cv_cc_flag_unused_command_line_argument=yes 9871else 9872 xorg_cv_cc_flag_unused_command_line_argument=no 9873fi 9874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9875fi 9876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9877$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9878 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9879 CFLAGS="$xorg_testset_save_CFLAGS" 9880fi 9881 9882found="no" 9883 9884 if test $found = "no" ; then 9885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9887 fi 9888 9889 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9891 fi 9892 9893 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9894 9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9896$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9897 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9898 if eval \${$cacheid+:} false; then : 9899 $as_echo_n "(cached) " >&6 9900else 9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9902/* end confdefs.h. */ 9903int i; 9904int 9905main () 9906{ 9907 9908 ; 9909 return 0; 9910} 9911_ACEOF 9912if ac_fn_c_try_link "$LINENO"; then : 9913 eval $cacheid=yes 9914else 9915 eval $cacheid=no 9916fi 9917rm -f core conftest.err conftest.$ac_objext \ 9918 conftest$ac_exeext conftest.$ac_ext 9919fi 9920 9921 9922 CFLAGS="$xorg_testset_save_CFLAGS" 9923 9924 eval supported=\$$cacheid 9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9926$as_echo "$supported" >&6; } 9927 if test "$supported" = "yes" ; then 9928 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9929 found="yes" 9930 fi 9931 fi 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947xorg_testset_save_CFLAGS="$CFLAGS" 9948 9949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9952$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9953if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9954 $as_echo_n "(cached) " >&6 9955else 9956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9957/* end confdefs.h. */ 9958int i; 9959_ACEOF 9960if ac_fn_c_try_compile "$LINENO"; then : 9961 xorg_cv_cc_flag_unknown_warning_option=yes 9962else 9963 xorg_cv_cc_flag_unknown_warning_option=no 9964fi 9965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9966fi 9967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9968$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9970 CFLAGS="$xorg_testset_save_CFLAGS" 9971fi 9972 9973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9976 fi 9977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9979$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9980if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9981 $as_echo_n "(cached) " >&6 9982else 9983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9984/* end confdefs.h. */ 9985int i; 9986_ACEOF 9987if ac_fn_c_try_compile "$LINENO"; then : 9988 xorg_cv_cc_flag_unused_command_line_argument=yes 9989else 9990 xorg_cv_cc_flag_unused_command_line_argument=no 9991fi 9992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9993fi 9994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9995$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9997 CFLAGS="$xorg_testset_save_CFLAGS" 9998fi 9999 10000found="no" 10001 10002 if test $found = "no" ; then 10003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10005 fi 10006 10007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10009 fi 10010 10011 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10012 10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10014$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10015 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10016 if eval \${$cacheid+:} false; then : 10017 $as_echo_n "(cached) " >&6 10018else 10019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10020/* end confdefs.h. */ 10021int i; 10022int 10023main () 10024{ 10025 10026 ; 10027 return 0; 10028} 10029_ACEOF 10030if ac_fn_c_try_link "$LINENO"; then : 10031 eval $cacheid=yes 10032else 10033 eval $cacheid=no 10034fi 10035rm -f core conftest.err conftest.$ac_objext \ 10036 conftest$ac_exeext conftest.$ac_ext 10037fi 10038 10039 10040 CFLAGS="$xorg_testset_save_CFLAGS" 10041 10042 eval supported=\$$cacheid 10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10044$as_echo "$supported" >&6; } 10045 if test "$supported" = "yes" ; then 10046 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10047 found="yes" 10048 fi 10049 fi 10050 10051 10052fi 10053 10054 10055 10056 10057 10058 10059 10060 CWARNFLAGS="$BASE_CFLAGS" 10061 if test "x$GCC" = xyes ; then 10062 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10063 fi 10064 10065 10066 10067 10068 10069 10070 10071 10072# Check whether --enable-strict-compilation was given. 10073if test "${enable_strict_compilation+set}" = set; then : 10074 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10075else 10076 STRICT_COMPILE=no 10077fi 10078 10079 10080 10081 10082 10083 10084STRICT_CFLAGS="" 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098xorg_testset_save_CFLAGS="$CFLAGS" 10099 10100if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10103$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10104if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10105 $as_echo_n "(cached) " >&6 10106else 10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10108/* end confdefs.h. */ 10109int i; 10110_ACEOF 10111if ac_fn_c_try_compile "$LINENO"; then : 10112 xorg_cv_cc_flag_unknown_warning_option=yes 10113else 10114 xorg_cv_cc_flag_unknown_warning_option=no 10115fi 10116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10117fi 10118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10119$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10121 CFLAGS="$xorg_testset_save_CFLAGS" 10122fi 10123 10124if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10127 fi 10128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10130$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10131if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10132 $as_echo_n "(cached) " >&6 10133else 10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10135/* end confdefs.h. */ 10136int i; 10137_ACEOF 10138if ac_fn_c_try_compile "$LINENO"; then : 10139 xorg_cv_cc_flag_unused_command_line_argument=yes 10140else 10141 xorg_cv_cc_flag_unused_command_line_argument=no 10142fi 10143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10144fi 10145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10146$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10148 CFLAGS="$xorg_testset_save_CFLAGS" 10149fi 10150 10151found="no" 10152 10153 if test $found = "no" ; then 10154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10156 fi 10157 10158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10160 fi 10161 10162 CFLAGS="$CFLAGS -pedantic" 10163 10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10165$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10166 cacheid=xorg_cv_cc_flag__pedantic 10167 if eval \${$cacheid+:} false; then : 10168 $as_echo_n "(cached) " >&6 10169else 10170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10171/* end confdefs.h. */ 10172int i; 10173int 10174main () 10175{ 10176 10177 ; 10178 return 0; 10179} 10180_ACEOF 10181if ac_fn_c_try_link "$LINENO"; then : 10182 eval $cacheid=yes 10183else 10184 eval $cacheid=no 10185fi 10186rm -f core conftest.err conftest.$ac_objext \ 10187 conftest$ac_exeext conftest.$ac_ext 10188fi 10189 10190 10191 CFLAGS="$xorg_testset_save_CFLAGS" 10192 10193 eval supported=\$$cacheid 10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10195$as_echo "$supported" >&6; } 10196 if test "$supported" = "yes" ; then 10197 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10198 found="yes" 10199 fi 10200 fi 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216xorg_testset_save_CFLAGS="$CFLAGS" 10217 10218if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10221$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10222if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10223 $as_echo_n "(cached) " >&6 10224else 10225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10226/* end confdefs.h. */ 10227int i; 10228_ACEOF 10229if ac_fn_c_try_compile "$LINENO"; then : 10230 xorg_cv_cc_flag_unknown_warning_option=yes 10231else 10232 xorg_cv_cc_flag_unknown_warning_option=no 10233fi 10234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10235fi 10236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10237$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10239 CFLAGS="$xorg_testset_save_CFLAGS" 10240fi 10241 10242if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10245 fi 10246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10248$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10249if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10250 $as_echo_n "(cached) " >&6 10251else 10252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10253/* end confdefs.h. */ 10254int i; 10255_ACEOF 10256if ac_fn_c_try_compile "$LINENO"; then : 10257 xorg_cv_cc_flag_unused_command_line_argument=yes 10258else 10259 xorg_cv_cc_flag_unused_command_line_argument=no 10260fi 10261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10262fi 10263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10264$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10265 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10266 CFLAGS="$xorg_testset_save_CFLAGS" 10267fi 10268 10269found="no" 10270 10271 if test $found = "no" ; then 10272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10274 fi 10275 10276 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10278 fi 10279 10280 CFLAGS="$CFLAGS -Werror" 10281 10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10283$as_echo_n "checking if $CC supports -Werror... " >&6; } 10284 cacheid=xorg_cv_cc_flag__Werror 10285 if eval \${$cacheid+:} false; then : 10286 $as_echo_n "(cached) " >&6 10287else 10288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10289/* end confdefs.h. */ 10290int i; 10291int 10292main () 10293{ 10294 10295 ; 10296 return 0; 10297} 10298_ACEOF 10299if ac_fn_c_try_link "$LINENO"; then : 10300 eval $cacheid=yes 10301else 10302 eval $cacheid=no 10303fi 10304rm -f core conftest.err conftest.$ac_objext \ 10305 conftest$ac_exeext conftest.$ac_ext 10306fi 10307 10308 10309 CFLAGS="$xorg_testset_save_CFLAGS" 10310 10311 eval supported=\$$cacheid 10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10313$as_echo "$supported" >&6; } 10314 if test "$supported" = "yes" ; then 10315 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10316 found="yes" 10317 fi 10318 fi 10319 10320 if test $found = "no" ; then 10321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10323 fi 10324 10325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10327 fi 10328 10329 CFLAGS="$CFLAGS -errwarn" 10330 10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10332$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10333 cacheid=xorg_cv_cc_flag__errwarn 10334 if eval \${$cacheid+:} false; then : 10335 $as_echo_n "(cached) " >&6 10336else 10337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10338/* end confdefs.h. */ 10339int i; 10340int 10341main () 10342{ 10343 10344 ; 10345 return 0; 10346} 10347_ACEOF 10348if ac_fn_c_try_link "$LINENO"; then : 10349 eval $cacheid=yes 10350else 10351 eval $cacheid=no 10352fi 10353rm -f core conftest.err conftest.$ac_objext \ 10354 conftest$ac_exeext conftest.$ac_ext 10355fi 10356 10357 10358 CFLAGS="$xorg_testset_save_CFLAGS" 10359 10360 eval supported=\$$cacheid 10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10362$as_echo "$supported" >&6; } 10363 if test "$supported" = "yes" ; then 10364 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10365 found="yes" 10366 fi 10367 fi 10368 10369 10370 10371# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10372# activate it with -Werror, so we add it here explicitly. 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386xorg_testset_save_CFLAGS="$CFLAGS" 10387 10388if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10391$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10392if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10393 $as_echo_n "(cached) " >&6 10394else 10395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10396/* end confdefs.h. */ 10397int i; 10398_ACEOF 10399if ac_fn_c_try_compile "$LINENO"; then : 10400 xorg_cv_cc_flag_unknown_warning_option=yes 10401else 10402 xorg_cv_cc_flag_unknown_warning_option=no 10403fi 10404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10405fi 10406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10407$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10408 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10409 CFLAGS="$xorg_testset_save_CFLAGS" 10410fi 10411 10412if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10415 fi 10416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10418$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10419if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10420 $as_echo_n "(cached) " >&6 10421else 10422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10423/* end confdefs.h. */ 10424int i; 10425_ACEOF 10426if ac_fn_c_try_compile "$LINENO"; then : 10427 xorg_cv_cc_flag_unused_command_line_argument=yes 10428else 10429 xorg_cv_cc_flag_unused_command_line_argument=no 10430fi 10431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10432fi 10433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10434$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10436 CFLAGS="$xorg_testset_save_CFLAGS" 10437fi 10438 10439found="no" 10440 10441 if test $found = "no" ; then 10442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10444 fi 10445 10446 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10448 fi 10449 10450 CFLAGS="$CFLAGS -Werror=attributes" 10451 10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10453$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10454 cacheid=xorg_cv_cc_flag__Werror_attributes 10455 if eval \${$cacheid+:} false; then : 10456 $as_echo_n "(cached) " >&6 10457else 10458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10459/* end confdefs.h. */ 10460int i; 10461int 10462main () 10463{ 10464 10465 ; 10466 return 0; 10467} 10468_ACEOF 10469if ac_fn_c_try_link "$LINENO"; then : 10470 eval $cacheid=yes 10471else 10472 eval $cacheid=no 10473fi 10474rm -f core conftest.err conftest.$ac_objext \ 10475 conftest$ac_exeext conftest.$ac_ext 10476fi 10477 10478 10479 CFLAGS="$xorg_testset_save_CFLAGS" 10480 10481 eval supported=\$$cacheid 10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10483$as_echo "$supported" >&6; } 10484 if test "$supported" = "yes" ; then 10485 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10486 found="yes" 10487 fi 10488 fi 10489 10490 10491 10492if test "x$STRICT_COMPILE" = "xyes"; then 10493 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10494 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10495fi 10496 10497 10498 10499 10500 10501 10502cat >>confdefs.h <<_ACEOF 10503#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10504_ACEOF 10505 10506 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10507 if test "x$PVM" = "x"; then 10508 PVM="0" 10509 fi 10510 10511cat >>confdefs.h <<_ACEOF 10512#define PACKAGE_VERSION_MINOR $PVM 10513_ACEOF 10514 10515 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10516 if test "x$PVP" = "x"; then 10517 PVP="0" 10518 fi 10519 10520cat >>confdefs.h <<_ACEOF 10521#define PACKAGE_VERSION_PATCHLEVEL $PVP 10522_ACEOF 10523 10524 10525 10526CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10527mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10528|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10529echo 'git directory not found: installing possibly empty changelog.' >&2)" 10530 10531 10532 10533 10534macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10535INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10536mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10537|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10538echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10539 10540 10541 10542 10543 10544 10545if test x$APP_MAN_SUFFIX = x ; then 10546 APP_MAN_SUFFIX=1 10547fi 10548if test x$APP_MAN_DIR = x ; then 10549 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10550fi 10551 10552if test x$LIB_MAN_SUFFIX = x ; then 10553 LIB_MAN_SUFFIX=3 10554fi 10555if test x$LIB_MAN_DIR = x ; then 10556 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10557fi 10558 10559if test x$FILE_MAN_SUFFIX = x ; then 10560 case $host_os in 10561 solaris*) FILE_MAN_SUFFIX=4 ;; 10562 *) FILE_MAN_SUFFIX=5 ;; 10563 esac 10564fi 10565if test x$FILE_MAN_DIR = x ; then 10566 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10567fi 10568 10569if test x$MISC_MAN_SUFFIX = x ; then 10570 case $host_os in 10571 solaris*) MISC_MAN_SUFFIX=5 ;; 10572 *) MISC_MAN_SUFFIX=7 ;; 10573 esac 10574fi 10575if test x$MISC_MAN_DIR = x ; then 10576 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10577fi 10578 10579if test x$DRIVER_MAN_SUFFIX = x ; then 10580 case $host_os in 10581 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10582 *) DRIVER_MAN_SUFFIX=4 ;; 10583 esac 10584fi 10585if test x$DRIVER_MAN_DIR = x ; then 10586 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10587fi 10588 10589if test x$ADMIN_MAN_SUFFIX = x ; then 10590 case $host_os in 10591 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10592 *) ADMIN_MAN_SUFFIX=8 ;; 10593 esac 10594fi 10595if test x$ADMIN_MAN_DIR = x ; then 10596 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10597fi 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613XORG_MAN_PAGE="X Version 11" 10614 10615MAN_SUBSTS="\ 10616 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10617 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10618 -e 's|__xservername__|Xorg|g' \ 10619 -e 's|__xconfigfile__|xorg.conf|g' \ 10620 -e 's|__projectroot__|\$(prefix)|g' \ 10621 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10622 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10623 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10624 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10625 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10626 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10627 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10628 10629 10630 10631# Check whether --enable-silent-rules was given. 10632if test "${enable_silent_rules+set}" = set; then : 10633 enableval=$enable_silent_rules; 10634fi 10635 10636case $enable_silent_rules in # ((( 10637 yes) AM_DEFAULT_VERBOSITY=0;; 10638 no) AM_DEFAULT_VERBOSITY=1;; 10639 *) AM_DEFAULT_VERBOSITY=0;; 10640esac 10641am_make=${MAKE-make} 10642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10643$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10644if ${am_cv_make_support_nested_variables+:} false; then : 10645 $as_echo_n "(cached) " >&6 10646else 10647 if $as_echo 'TRUE=$(BAR$(V)) 10648BAR0=false 10649BAR1=true 10650V=1 10651am__doit: 10652 @$(TRUE) 10653.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10654 am_cv_make_support_nested_variables=yes 10655else 10656 am_cv_make_support_nested_variables=no 10657fi 10658fi 10659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10660$as_echo "$am_cv_make_support_nested_variables" >&6; } 10661if test $am_cv_make_support_nested_variables = yes; then 10662 AM_V='$(V)' 10663 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10664else 10665 AM_V=$AM_DEFAULT_VERBOSITY 10666 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10667fi 10668AM_BACKSLASH='\' 10669 10670 10671 10672for ac_func in strlcpy 10673do : 10674 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 10675if test "x$ac_cv_func_strlcpy" = xyes; then : 10676 cat >>confdefs.h <<_ACEOF 10677#define HAVE_STRLCPY 1 10678_ACEOF 10679 10680fi 10681done 10682 10683 10684# Checks for pkg-config packages 10685 10686pkg_failed=no 10687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCALC" >&5 10688$as_echo_n "checking for XCALC... " >&6; } 10689 10690if test -n "$XCALC_CFLAGS"; then 10691 pkg_cv_XCALC_CFLAGS="$XCALC_CFLAGS" 10692 elif test -n "$PKG_CONFIG"; then 10693 if test -n "$PKG_CONFIG" && \ 10694 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xt x11 xproto >= 7.0.17\""; } >&5 10695 ($PKG_CONFIG --exists --print-errors "xaw7 xt x11 xproto >= 7.0.17") 2>&5 10696 ac_status=$? 10697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10698 test $ac_status = 0; }; then 10699 pkg_cv_XCALC_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xt x11 xproto >= 7.0.17" 2>/dev/null` 10700else 10701 pkg_failed=yes 10702fi 10703 else 10704 pkg_failed=untried 10705fi 10706if test -n "$XCALC_LIBS"; then 10707 pkg_cv_XCALC_LIBS="$XCALC_LIBS" 10708 elif test -n "$PKG_CONFIG"; then 10709 if test -n "$PKG_CONFIG" && \ 10710 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xt x11 xproto >= 7.0.17\""; } >&5 10711 ($PKG_CONFIG --exists --print-errors "xaw7 xt x11 xproto >= 7.0.17") 2>&5 10712 ac_status=$? 10713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10714 test $ac_status = 0; }; then 10715 pkg_cv_XCALC_LIBS=`$PKG_CONFIG --libs "xaw7 xt x11 xproto >= 7.0.17" 2>/dev/null` 10716else 10717 pkg_failed=yes 10718fi 10719 else 10720 pkg_failed=untried 10721fi 10722 10723 10724 10725if test $pkg_failed = yes; then 10726 10727if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10728 _pkg_short_errors_supported=yes 10729else 10730 _pkg_short_errors_supported=no 10731fi 10732 if test $_pkg_short_errors_supported = yes; then 10733 XCALC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xt x11 xproto >= 7.0.17" 2>&1` 10734 else 10735 XCALC_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xt x11 xproto >= 7.0.17" 2>&1` 10736 fi 10737 # Put the nasty error message in config.log where it belongs 10738 echo "$XCALC_PKG_ERRORS" >&5 10739 10740 as_fn_error $? "Package requirements (xaw7 xt x11 xproto >= 7.0.17) were not met: 10741 10742$XCALC_PKG_ERRORS 10743 10744Consider adjusting the PKG_CONFIG_PATH environment variable if you 10745installed software in a non-standard prefix. 10746 10747Alternatively, you may set the environment variables XCALC_CFLAGS 10748and XCALC_LIBS to avoid the need to call pkg-config. 10749See the pkg-config man page for more details. 10750" "$LINENO" 5 10751elif test $pkg_failed = untried; then 10752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10753$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10754as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10755is in your PATH or set the PKG_CONFIG environment variable to the full 10756path to pkg-config. 10757 10758Alternatively, you may set the environment variables XCALC_CFLAGS 10759and XCALC_LIBS to avoid the need to call pkg-config. 10760See the pkg-config man page for more details. 10761 10762To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10763See \`config.log' for more details" "$LINENO" 5; } 10764else 10765 XCALC_CFLAGS=$pkg_cv_XCALC_CFLAGS 10766 XCALC_LIBS=$pkg_cv_XCALC_LIBS 10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10768$as_echo "yes" >&6; } 10769 : 10770fi 10771 10772 10773pkg_failed=no 10774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 10775$as_echo_n "checking for APPDEFS... " >&6; } 10776 10777if test -n "$APPDEFS_CFLAGS"; then 10778 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 10779 elif test -n "$PKG_CONFIG"; then 10780 if test -n "$PKG_CONFIG" && \ 10781 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 10782 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 10783 ac_status=$? 10784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10785 test $ac_status = 0; }; then 10786 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 10787else 10788 pkg_failed=yes 10789fi 10790 else 10791 pkg_failed=untried 10792fi 10793if test -n "$APPDEFS_LIBS"; then 10794 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 10795 elif test -n "$PKG_CONFIG"; then 10796 if test -n "$PKG_CONFIG" && \ 10797 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 10798 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 10799 ac_status=$? 10800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10801 test $ac_status = 0; }; then 10802 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 10803else 10804 pkg_failed=yes 10805fi 10806 else 10807 pkg_failed=untried 10808fi 10809 10810 10811 10812if test $pkg_failed = yes; then 10813 10814if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10815 _pkg_short_errors_supported=yes 10816else 10817 _pkg_short_errors_supported=no 10818fi 10819 if test $_pkg_short_errors_supported = yes; then 10820 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1` 10821 else 10822 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1` 10823 fi 10824 # Put the nasty error message in config.log where it belongs 10825 echo "$APPDEFS_PKG_ERRORS" >&5 10826 10827 as_fn_error $? "Package requirements (xt) were not met: 10828 10829$APPDEFS_PKG_ERRORS 10830 10831Consider adjusting the PKG_CONFIG_PATH environment variable if you 10832installed software in a non-standard prefix. 10833 10834Alternatively, you may set the environment variables APPDEFS_CFLAGS 10835and APPDEFS_LIBS to avoid the need to call pkg-config. 10836See the pkg-config man page for more details. 10837" "$LINENO" 5 10838elif test $pkg_failed = untried; then 10839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10840$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10841as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10842is in your PATH or set the PKG_CONFIG environment variable to the full 10843path to pkg-config. 10844 10845Alternatively, you may set the environment variables APPDEFS_CFLAGS 10846and APPDEFS_LIBS to avoid the need to call pkg-config. 10847See the pkg-config man page for more details. 10848 10849To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10850See \`config.log' for more details" "$LINENO" 5; } 10851else 10852 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 10853 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10855$as_echo "yes" >&6; } 10856 : 10857fi 10858xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 10859 10860# Check whether --with-appdefaultdir was given. 10861if test "${with_appdefaultdir+set}" = set; then : 10862 withval=$with_appdefaultdir; appdefaultdir="$withval" 10863else 10864 appdefaultdir="${xt_appdefaultdir}" 10865fi 10866 10867 10868 10869 10870ac_config_files="$ac_config_files Makefile man/Makefile" 10871 10872cat >confcache <<\_ACEOF 10873# This file is a shell script that caches the results of configure 10874# tests run on this system so they can be shared between configure 10875# scripts and configure runs, see configure's option --config-cache. 10876# It is not useful on other systems. If it contains results you don't 10877# want to keep, you may remove or edit it. 10878# 10879# config.status only pays attention to the cache file if you give it 10880# the --recheck option to rerun configure. 10881# 10882# `ac_cv_env_foo' variables (set or unset) will be overridden when 10883# loading this file, other *unset* `ac_cv_foo' will be assigned the 10884# following values. 10885 10886_ACEOF 10887 10888# The following way of writing the cache mishandles newlines in values, 10889# but we know of no workaround that is simple, portable, and efficient. 10890# So, we kill variables containing newlines. 10891# Ultrix sh set writes to stderr and can't be redirected directly, 10892# and sets the high bit in the cache file unless we assign to the vars. 10893( 10894 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10895 eval ac_val=\$$ac_var 10896 case $ac_val in #( 10897 *${as_nl}*) 10898 case $ac_var in #( 10899 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10900$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10901 esac 10902 case $ac_var in #( 10903 _ | IFS | as_nl) ;; #( 10904 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10905 *) { eval $ac_var=; unset $ac_var;} ;; 10906 esac ;; 10907 esac 10908 done 10909 10910 (set) 2>&1 | 10911 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10912 *${as_nl}ac_space=\ *) 10913 # `set' does not quote correctly, so add quotes: double-quote 10914 # substitution turns \\\\ into \\, and sed turns \\ into \. 10915 sed -n \ 10916 "s/'/'\\\\''/g; 10917 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10918 ;; #( 10919 *) 10920 # `set' quotes correctly as required by POSIX, so do not add quotes. 10921 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10922 ;; 10923 esac | 10924 sort 10925) | 10926 sed ' 10927 /^ac_cv_env_/b end 10928 t clear 10929 :clear 10930 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10931 t end 10932 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10933 :end' >>confcache 10934if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10935 if test -w "$cache_file"; then 10936 if test "x$cache_file" != "x/dev/null"; then 10937 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10938$as_echo "$as_me: updating cache $cache_file" >&6;} 10939 if test ! -f "$cache_file" || test -h "$cache_file"; then 10940 cat confcache >"$cache_file" 10941 else 10942 case $cache_file in #( 10943 */* | ?:*) 10944 mv -f confcache "$cache_file"$$ && 10945 mv -f "$cache_file"$$ "$cache_file" ;; #( 10946 *) 10947 mv -f confcache "$cache_file" ;; 10948 esac 10949 fi 10950 fi 10951 else 10952 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10953$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10954 fi 10955fi 10956rm -f confcache 10957 10958test "x$prefix" = xNONE && prefix=$ac_default_prefix 10959# Let make expand exec_prefix. 10960test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10961 10962DEFS=-DHAVE_CONFIG_H 10963 10964ac_libobjs= 10965ac_ltlibobjs= 10966U= 10967for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10968 # 1. Remove the extension, and $U if already installed. 10969 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10970 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10971 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10972 # will be set to the directory where LIBOBJS objects are built. 10973 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10974 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10975done 10976LIBOBJS=$ac_libobjs 10977 10978LTLIBOBJS=$ac_ltlibobjs 10979 10980 10981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10982$as_echo_n "checking that generated files are newer than configure... " >&6; } 10983 if test -n "$am_sleep_pid"; then 10984 # Hide warnings about reused PIDs. 10985 wait $am_sleep_pid 2>/dev/null 10986 fi 10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10988$as_echo "done" >&6; } 10989 if test -n "$EXEEXT"; then 10990 am__EXEEXT_TRUE= 10991 am__EXEEXT_FALSE='#' 10992else 10993 am__EXEEXT_TRUE='#' 10994 am__EXEEXT_FALSE= 10995fi 10996 10997if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10998 as_fn_error $? "conditional \"AMDEP\" was never defined. 10999Usually this means the macro was only invoked conditionally." "$LINENO" 5 11000fi 11001if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11002 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11003Usually this means the macro was only invoked conditionally." "$LINENO" 5 11004fi 11005 11006: "${CONFIG_STATUS=./config.status}" 11007ac_write_fail=0 11008ac_clean_files_save=$ac_clean_files 11009ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11010{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11011$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11012as_write_fail=0 11013cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11014#! $SHELL 11015# Generated by $as_me. 11016# Run this file to recreate the current configuration. 11017# Compiler output produced by configure, useful for debugging 11018# configure, is in config.log if it exists. 11019 11020debug=false 11021ac_cs_recheck=false 11022ac_cs_silent=false 11023 11024SHELL=\${CONFIG_SHELL-$SHELL} 11025export SHELL 11026_ASEOF 11027cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11028## -------------------- ## 11029## M4sh Initialization. ## 11030## -------------------- ## 11031 11032# Be more Bourne compatible 11033DUALCASE=1; export DUALCASE # for MKS sh 11034if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11035 emulate sh 11036 NULLCMD=: 11037 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11038 # is contrary to our usage. Disable this feature. 11039 alias -g '${1+"$@"}'='"$@"' 11040 setopt NO_GLOB_SUBST 11041else 11042 case `(set -o) 2>/dev/null` in #( 11043 *posix*) : 11044 set -o posix ;; #( 11045 *) : 11046 ;; 11047esac 11048fi 11049 11050 11051as_nl=' 11052' 11053export as_nl 11054# Printing a long string crashes Solaris 7 /usr/bin/printf. 11055as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11056as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11057as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11058# Prefer a ksh shell builtin over an external printf program on Solaris, 11059# but without wasting forks for bash or zsh. 11060if test -z "$BASH_VERSION$ZSH_VERSION" \ 11061 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11062 as_echo='print -r --' 11063 as_echo_n='print -rn --' 11064elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11065 as_echo='printf %s\n' 11066 as_echo_n='printf %s' 11067else 11068 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11069 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11070 as_echo_n='/usr/ucb/echo -n' 11071 else 11072 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11073 as_echo_n_body='eval 11074 arg=$1; 11075 case $arg in #( 11076 *"$as_nl"*) 11077 expr "X$arg" : "X\\(.*\\)$as_nl"; 11078 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11079 esac; 11080 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11081 ' 11082 export as_echo_n_body 11083 as_echo_n='sh -c $as_echo_n_body as_echo' 11084 fi 11085 export as_echo_body 11086 as_echo='sh -c $as_echo_body as_echo' 11087fi 11088 11089# The user is always right. 11090if test "${PATH_SEPARATOR+set}" != set; then 11091 PATH_SEPARATOR=: 11092 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11093 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11094 PATH_SEPARATOR=';' 11095 } 11096fi 11097 11098 11099# IFS 11100# We need space, tab and new line, in precisely that order. Quoting is 11101# there to prevent editors from complaining about space-tab. 11102# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11103# splitting by setting IFS to empty value.) 11104IFS=" "" $as_nl" 11105 11106# Find who we are. Look in the path if we contain no directory separator. 11107as_myself= 11108case $0 in #(( 11109 *[\\/]* ) as_myself=$0 ;; 11110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11111for as_dir in $PATH 11112do 11113 IFS=$as_save_IFS 11114 test -z "$as_dir" && as_dir=. 11115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11116 done 11117IFS=$as_save_IFS 11118 11119 ;; 11120esac 11121# We did not find ourselves, most probably we were run as `sh COMMAND' 11122# in which case we are not to be found in the path. 11123if test "x$as_myself" = x; then 11124 as_myself=$0 11125fi 11126if test ! -f "$as_myself"; then 11127 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11128 exit 1 11129fi 11130 11131# Unset variables that we do not need and which cause bugs (e.g. in 11132# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11133# suppresses any "Segmentation fault" message there. '((' could 11134# trigger a bug in pdksh 5.2.14. 11135for as_var in BASH_ENV ENV MAIL MAILPATH 11136do eval test x\${$as_var+set} = xset \ 11137 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11138done 11139PS1='$ ' 11140PS2='> ' 11141PS4='+ ' 11142 11143# NLS nuisances. 11144LC_ALL=C 11145export LC_ALL 11146LANGUAGE=C 11147export LANGUAGE 11148 11149# CDPATH. 11150(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11151 11152 11153# as_fn_error STATUS ERROR [LINENO LOG_FD] 11154# ---------------------------------------- 11155# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11156# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11157# script with STATUS, using 1 if that was 0. 11158as_fn_error () 11159{ 11160 as_status=$1; test $as_status -eq 0 && as_status=1 11161 if test "$4"; then 11162 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11163 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11164 fi 11165 $as_echo "$as_me: error: $2" >&2 11166 as_fn_exit $as_status 11167} # as_fn_error 11168 11169 11170# as_fn_set_status STATUS 11171# ----------------------- 11172# Set $? to STATUS, without forking. 11173as_fn_set_status () 11174{ 11175 return $1 11176} # as_fn_set_status 11177 11178# as_fn_exit STATUS 11179# ----------------- 11180# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11181as_fn_exit () 11182{ 11183 set +e 11184 as_fn_set_status $1 11185 exit $1 11186} # as_fn_exit 11187 11188# as_fn_unset VAR 11189# --------------- 11190# Portably unset VAR. 11191as_fn_unset () 11192{ 11193 { eval $1=; unset $1;} 11194} 11195as_unset=as_fn_unset 11196# as_fn_append VAR VALUE 11197# ---------------------- 11198# Append the text in VALUE to the end of the definition contained in VAR. Take 11199# advantage of any shell optimizations that allow amortized linear growth over 11200# repeated appends, instead of the typical quadratic growth present in naive 11201# implementations. 11202if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11203 eval 'as_fn_append () 11204 { 11205 eval $1+=\$2 11206 }' 11207else 11208 as_fn_append () 11209 { 11210 eval $1=\$$1\$2 11211 } 11212fi # as_fn_append 11213 11214# as_fn_arith ARG... 11215# ------------------ 11216# Perform arithmetic evaluation on the ARGs, and store the result in the 11217# global $as_val. Take advantage of shells that can avoid forks. The arguments 11218# must be portable across $(()) and expr. 11219if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11220 eval 'as_fn_arith () 11221 { 11222 as_val=$(( $* )) 11223 }' 11224else 11225 as_fn_arith () 11226 { 11227 as_val=`expr "$@" || test $? -eq 1` 11228 } 11229fi # as_fn_arith 11230 11231 11232if expr a : '\(a\)' >/dev/null 2>&1 && 11233 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11234 as_expr=expr 11235else 11236 as_expr=false 11237fi 11238 11239if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11240 as_basename=basename 11241else 11242 as_basename=false 11243fi 11244 11245if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11246 as_dirname=dirname 11247else 11248 as_dirname=false 11249fi 11250 11251as_me=`$as_basename -- "$0" || 11252$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11253 X"$0" : 'X\(//\)$' \| \ 11254 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11255$as_echo X/"$0" | 11256 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11257 s//\1/ 11258 q 11259 } 11260 /^X\/\(\/\/\)$/{ 11261 s//\1/ 11262 q 11263 } 11264 /^X\/\(\/\).*/{ 11265 s//\1/ 11266 q 11267 } 11268 s/.*/./; q'` 11269 11270# Avoid depending upon Character Ranges. 11271as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11272as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11273as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11274as_cr_digits='0123456789' 11275as_cr_alnum=$as_cr_Letters$as_cr_digits 11276 11277ECHO_C= ECHO_N= ECHO_T= 11278case `echo -n x` in #((((( 11279-n*) 11280 case `echo 'xy\c'` in 11281 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11282 xy) ECHO_C='\c';; 11283 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11284 ECHO_T=' ';; 11285 esac;; 11286*) 11287 ECHO_N='-n';; 11288esac 11289 11290rm -f conf$$ conf$$.exe conf$$.file 11291if test -d conf$$.dir; then 11292 rm -f conf$$.dir/conf$$.file 11293else 11294 rm -f conf$$.dir 11295 mkdir conf$$.dir 2>/dev/null 11296fi 11297if (echo >conf$$.file) 2>/dev/null; then 11298 if ln -s conf$$.file conf$$ 2>/dev/null; then 11299 as_ln_s='ln -s' 11300 # ... but there are two gotchas: 11301 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11302 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11303 # In both cases, we have to default to `cp -pR'. 11304 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11305 as_ln_s='cp -pR' 11306 elif ln conf$$.file conf$$ 2>/dev/null; then 11307 as_ln_s=ln 11308 else 11309 as_ln_s='cp -pR' 11310 fi 11311else 11312 as_ln_s='cp -pR' 11313fi 11314rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11315rmdir conf$$.dir 2>/dev/null 11316 11317 11318# as_fn_mkdir_p 11319# ------------- 11320# Create "$as_dir" as a directory, including parents if necessary. 11321as_fn_mkdir_p () 11322{ 11323 11324 case $as_dir in #( 11325 -*) as_dir=./$as_dir;; 11326 esac 11327 test -d "$as_dir" || eval $as_mkdir_p || { 11328 as_dirs= 11329 while :; do 11330 case $as_dir in #( 11331 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11332 *) as_qdir=$as_dir;; 11333 esac 11334 as_dirs="'$as_qdir' $as_dirs" 11335 as_dir=`$as_dirname -- "$as_dir" || 11336$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11337 X"$as_dir" : 'X\(//\)[^/]' \| \ 11338 X"$as_dir" : 'X\(//\)$' \| \ 11339 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11340$as_echo X"$as_dir" | 11341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11342 s//\1/ 11343 q 11344 } 11345 /^X\(\/\/\)[^/].*/{ 11346 s//\1/ 11347 q 11348 } 11349 /^X\(\/\/\)$/{ 11350 s//\1/ 11351 q 11352 } 11353 /^X\(\/\).*/{ 11354 s//\1/ 11355 q 11356 } 11357 s/.*/./; q'` 11358 test -d "$as_dir" && break 11359 done 11360 test -z "$as_dirs" || eval "mkdir $as_dirs" 11361 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11362 11363 11364} # as_fn_mkdir_p 11365if mkdir -p . 2>/dev/null; then 11366 as_mkdir_p='mkdir -p "$as_dir"' 11367else 11368 test -d ./-p && rmdir ./-p 11369 as_mkdir_p=false 11370fi 11371 11372 11373# as_fn_executable_p FILE 11374# ----------------------- 11375# Test if FILE is an executable regular file. 11376as_fn_executable_p () 11377{ 11378 test -f "$1" && test -x "$1" 11379} # as_fn_executable_p 11380as_test_x='test -x' 11381as_executable_p=as_fn_executable_p 11382 11383# Sed expression to map a string onto a valid CPP name. 11384as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11385 11386# Sed expression to map a string onto a valid variable name. 11387as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11388 11389 11390exec 6>&1 11391## ----------------------------------- ## 11392## Main body of $CONFIG_STATUS script. ## 11393## ----------------------------------- ## 11394_ASEOF 11395test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11396 11397cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11398# Save the log message, to keep $0 and so on meaningful, and to 11399# report actual input values of CONFIG_FILES etc. instead of their 11400# values after options handling. 11401ac_log=" 11402This file was extended by xcalc $as_me 1.0.6, which was 11403generated by GNU Autoconf 2.69. Invocation command line was 11404 11405 CONFIG_FILES = $CONFIG_FILES 11406 CONFIG_HEADERS = $CONFIG_HEADERS 11407 CONFIG_LINKS = $CONFIG_LINKS 11408 CONFIG_COMMANDS = $CONFIG_COMMANDS 11409 $ $0 $@ 11410 11411on `(hostname || uname -n) 2>/dev/null | sed 1q` 11412" 11413 11414_ACEOF 11415 11416case $ac_config_files in *" 11417"*) set x $ac_config_files; shift; ac_config_files=$*;; 11418esac 11419 11420case $ac_config_headers in *" 11421"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11422esac 11423 11424 11425cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11426# Files that config.status was made for. 11427config_files="$ac_config_files" 11428config_headers="$ac_config_headers" 11429config_commands="$ac_config_commands" 11430 11431_ACEOF 11432 11433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11434ac_cs_usage="\ 11435\`$as_me' instantiates files and other configuration actions 11436from templates according to the current configuration. Unless the files 11437and actions are specified as TAGs, all are instantiated by default. 11438 11439Usage: $0 [OPTION]... [TAG]... 11440 11441 -h, --help print this help, then exit 11442 -V, --version print version number and configuration settings, then exit 11443 --config print configuration, then exit 11444 -q, --quiet, --silent 11445 do not print progress messages 11446 -d, --debug don't remove temporary files 11447 --recheck update $as_me by reconfiguring in the same conditions 11448 --file=FILE[:TEMPLATE] 11449 instantiate the configuration file FILE 11450 --header=FILE[:TEMPLATE] 11451 instantiate the configuration header FILE 11452 11453Configuration files: 11454$config_files 11455 11456Configuration headers: 11457$config_headers 11458 11459Configuration commands: 11460$config_commands 11461 11462Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11463 11464_ACEOF 11465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11466ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11467ac_cs_version="\\ 11468xcalc config.status 1.0.6 11469configured by $0, generated by GNU Autoconf 2.69, 11470 with options \\"\$ac_cs_config\\" 11471 11472Copyright (C) 2012 Free Software Foundation, Inc. 11473This config.status script is free software; the Free Software Foundation 11474gives unlimited permission to copy, distribute and modify it." 11475 11476ac_pwd='$ac_pwd' 11477srcdir='$srcdir' 11478INSTALL='$INSTALL' 11479MKDIR_P='$MKDIR_P' 11480AWK='$AWK' 11481test -n "\$AWK" || AWK=awk 11482_ACEOF 11483 11484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11485# The default lists apply if the user does not specify any file. 11486ac_need_defaults=: 11487while test $# != 0 11488do 11489 case $1 in 11490 --*=?*) 11491 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11492 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11493 ac_shift=: 11494 ;; 11495 --*=) 11496 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11497 ac_optarg= 11498 ac_shift=: 11499 ;; 11500 *) 11501 ac_option=$1 11502 ac_optarg=$2 11503 ac_shift=shift 11504 ;; 11505 esac 11506 11507 case $ac_option in 11508 # Handling of the options. 11509 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11510 ac_cs_recheck=: ;; 11511 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11512 $as_echo "$ac_cs_version"; exit ;; 11513 --config | --confi | --conf | --con | --co | --c ) 11514 $as_echo "$ac_cs_config"; exit ;; 11515 --debug | --debu | --deb | --de | --d | -d ) 11516 debug=: ;; 11517 --file | --fil | --fi | --f ) 11518 $ac_shift 11519 case $ac_optarg in 11520 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11521 '') as_fn_error $? "missing file argument" ;; 11522 esac 11523 as_fn_append CONFIG_FILES " '$ac_optarg'" 11524 ac_need_defaults=false;; 11525 --header | --heade | --head | --hea ) 11526 $ac_shift 11527 case $ac_optarg in 11528 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11529 esac 11530 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11531 ac_need_defaults=false;; 11532 --he | --h) 11533 # Conflict between --help and --header 11534 as_fn_error $? "ambiguous option: \`$1' 11535Try \`$0 --help' for more information.";; 11536 --help | --hel | -h ) 11537 $as_echo "$ac_cs_usage"; exit ;; 11538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11539 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11540 ac_cs_silent=: ;; 11541 11542 # This is an error. 11543 -*) as_fn_error $? "unrecognized option: \`$1' 11544Try \`$0 --help' for more information." ;; 11545 11546 *) as_fn_append ac_config_targets " $1" 11547 ac_need_defaults=false ;; 11548 11549 esac 11550 shift 11551done 11552 11553ac_configure_extra_args= 11554 11555if $ac_cs_silent; then 11556 exec 6>/dev/null 11557 ac_configure_extra_args="$ac_configure_extra_args --silent" 11558fi 11559 11560_ACEOF 11561cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11562if \$ac_cs_recheck; then 11563 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11564 shift 11565 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11566 CONFIG_SHELL='$SHELL' 11567 export CONFIG_SHELL 11568 exec "\$@" 11569fi 11570 11571_ACEOF 11572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11573exec 5>>config.log 11574{ 11575 echo 11576 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11577## Running $as_me. ## 11578_ASBOX 11579 $as_echo "$ac_log" 11580} >&5 11581 11582_ACEOF 11583cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11584# 11585# INIT-COMMANDS 11586# 11587AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11588 11589_ACEOF 11590 11591cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11592 11593# Handling of arguments. 11594for ac_config_target in $ac_config_targets 11595do 11596 case $ac_config_target in 11597 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11598 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11599 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11600 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11601 11602 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11603 esac 11604done 11605 11606 11607# If the user did not use the arguments to specify the items to instantiate, 11608# then the envvar interface is used. Set only those that are not. 11609# We use the long form for the default assignment because of an extremely 11610# bizarre bug on SunOS 4.1.3. 11611if $ac_need_defaults; then 11612 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11613 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11614 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11615fi 11616 11617# Have a temporary directory for convenience. Make it in the build tree 11618# simply because there is no reason against having it here, and in addition, 11619# creating and moving files from /tmp can sometimes cause problems. 11620# Hook for its removal unless debugging. 11621# Note that there is a small window in which the directory will not be cleaned: 11622# after its creation but before its name has been assigned to `$tmp'. 11623$debug || 11624{ 11625 tmp= ac_tmp= 11626 trap 'exit_status=$? 11627 : "${ac_tmp:=$tmp}" 11628 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11629' 0 11630 trap 'as_fn_exit 1' 1 2 13 15 11631} 11632# Create a (secure) tmp directory for tmp files. 11633 11634{ 11635 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11636 test -d "$tmp" 11637} || 11638{ 11639 tmp=./conf$$-$RANDOM 11640 (umask 077 && mkdir "$tmp") 11641} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11642ac_tmp=$tmp 11643 11644# Set up the scripts for CONFIG_FILES section. 11645# No need to generate them if there are no CONFIG_FILES. 11646# This happens for instance with `./config.status config.h'. 11647if test -n "$CONFIG_FILES"; then 11648 11649 11650ac_cr=`echo X | tr X '\015'` 11651# On cygwin, bash can eat \r inside `` if the user requested igncr. 11652# But we know of no other shell where ac_cr would be empty at this 11653# point, so we can use a bashism as a fallback. 11654if test "x$ac_cr" = x; then 11655 eval ac_cr=\$\'\\r\' 11656fi 11657ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11658if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11659 ac_cs_awk_cr='\\r' 11660else 11661 ac_cs_awk_cr=$ac_cr 11662fi 11663 11664echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11665_ACEOF 11666 11667 11668{ 11669 echo "cat >conf$$subs.awk <<_ACEOF" && 11670 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11671 echo "_ACEOF" 11672} >conf$$subs.sh || 11673 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11674ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11675ac_delim='%!_!# ' 11676for ac_last_try in false false false false false :; do 11677 . ./conf$$subs.sh || 11678 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11679 11680 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11681 if test $ac_delim_n = $ac_delim_num; then 11682 break 11683 elif $ac_last_try; then 11684 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11685 else 11686 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11687 fi 11688done 11689rm -f conf$$subs.sh 11690 11691cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11692cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11693_ACEOF 11694sed -n ' 11695h 11696s/^/S["/; s/!.*/"]=/ 11697p 11698g 11699s/^[^!]*!// 11700:repl 11701t repl 11702s/'"$ac_delim"'$// 11703t delim 11704:nl 11705h 11706s/\(.\{148\}\)..*/\1/ 11707t more1 11708s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11709p 11710n 11711b repl 11712:more1 11713s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11714p 11715g 11716s/.\{148\}// 11717t nl 11718:delim 11719h 11720s/\(.\{148\}\)..*/\1/ 11721t more2 11722s/["\\]/\\&/g; s/^/"/; s/$/"/ 11723p 11724b 11725:more2 11726s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11727p 11728g 11729s/.\{148\}// 11730t delim 11731' <conf$$subs.awk | sed ' 11732/^[^""]/{ 11733 N 11734 s/\n// 11735} 11736' >>$CONFIG_STATUS || ac_write_fail=1 11737rm -f conf$$subs.awk 11738cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11739_ACAWK 11740cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11741 for (key in S) S_is_set[key] = 1 11742 FS = "" 11743 11744} 11745{ 11746 line = $ 0 11747 nfields = split(line, field, "@") 11748 substed = 0 11749 len = length(field[1]) 11750 for (i = 2; i < nfields; i++) { 11751 key = field[i] 11752 keylen = length(key) 11753 if (S_is_set[key]) { 11754 value = S[key] 11755 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11756 len += length(value) + length(field[++i]) 11757 substed = 1 11758 } else 11759 len += 1 + keylen 11760 } 11761 11762 print line 11763} 11764 11765_ACAWK 11766_ACEOF 11767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11768if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11769 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11770else 11771 cat 11772fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11773 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11774_ACEOF 11775 11776# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11777# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11778# trailing colons and then remove the whole line if VPATH becomes empty 11779# (actually we leave an empty line to preserve line numbers). 11780if test "x$srcdir" = x.; then 11781 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11782h 11783s/// 11784s/^/:/ 11785s/[ ]*$/:/ 11786s/:\$(srcdir):/:/g 11787s/:\${srcdir}:/:/g 11788s/:@srcdir@:/:/g 11789s/^:*// 11790s/:*$// 11791x 11792s/\(=[ ]*\).*/\1/ 11793G 11794s/\n// 11795s/^[^=]*=[ ]*$// 11796}' 11797fi 11798 11799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11800fi # test -n "$CONFIG_FILES" 11801 11802# Set up the scripts for CONFIG_HEADERS section. 11803# No need to generate them if there are no CONFIG_HEADERS. 11804# This happens for instance with `./config.status Makefile'. 11805if test -n "$CONFIG_HEADERS"; then 11806cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11807BEGIN { 11808_ACEOF 11809 11810# Transform confdefs.h into an awk script `defines.awk', embedded as 11811# here-document in config.status, that substitutes the proper values into 11812# config.h.in to produce config.h. 11813 11814# Create a delimiter string that does not exist in confdefs.h, to ease 11815# handling of long lines. 11816ac_delim='%!_!# ' 11817for ac_last_try in false false :; do 11818 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11819 if test -z "$ac_tt"; then 11820 break 11821 elif $ac_last_try; then 11822 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11823 else 11824 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11825 fi 11826done 11827 11828# For the awk script, D is an array of macro values keyed by name, 11829# likewise P contains macro parameters if any. Preserve backslash 11830# newline sequences. 11831 11832ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11833sed -n ' 11834s/.\{148\}/&'"$ac_delim"'/g 11835t rset 11836:rset 11837s/^[ ]*#[ ]*define[ ][ ]*/ / 11838t def 11839d 11840:def 11841s/\\$// 11842t bsnl 11843s/["\\]/\\&/g 11844s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11845D["\1"]=" \3"/p 11846s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11847d 11848:bsnl 11849s/["\\]/\\&/g 11850s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11851D["\1"]=" \3\\\\\\n"\\/p 11852t cont 11853s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11854t cont 11855d 11856:cont 11857n 11858s/.\{148\}/&'"$ac_delim"'/g 11859t clear 11860:clear 11861s/\\$// 11862t bsnlc 11863s/["\\]/\\&/g; s/^/"/; s/$/"/p 11864d 11865:bsnlc 11866s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11867b cont 11868' <confdefs.h | sed ' 11869s/'"$ac_delim"'/"\\\ 11870"/g' >>$CONFIG_STATUS || ac_write_fail=1 11871 11872cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11873 for (key in D) D_is_set[key] = 1 11874 FS = "" 11875} 11876/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11877 line = \$ 0 11878 split(line, arg, " ") 11879 if (arg[1] == "#") { 11880 defundef = arg[2] 11881 mac1 = arg[3] 11882 } else { 11883 defundef = substr(arg[1], 2) 11884 mac1 = arg[2] 11885 } 11886 split(mac1, mac2, "(") #) 11887 macro = mac2[1] 11888 prefix = substr(line, 1, index(line, defundef) - 1) 11889 if (D_is_set[macro]) { 11890 # Preserve the white space surrounding the "#". 11891 print prefix "define", macro P[macro] D[macro] 11892 next 11893 } else { 11894 # Replace #undef with comments. This is necessary, for example, 11895 # in the case of _POSIX_SOURCE, which is predefined and required 11896 # on some systems where configure will not decide to define it. 11897 if (defundef == "undef") { 11898 print "/*", prefix defundef, macro, "*/" 11899 next 11900 } 11901 } 11902} 11903{ print } 11904_ACAWK 11905_ACEOF 11906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11907 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11908fi # test -n "$CONFIG_HEADERS" 11909 11910 11911eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11912shift 11913for ac_tag 11914do 11915 case $ac_tag in 11916 :[FHLC]) ac_mode=$ac_tag; continue;; 11917 esac 11918 case $ac_mode$ac_tag in 11919 :[FHL]*:*);; 11920 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11921 :[FH]-) ac_tag=-:-;; 11922 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11923 esac 11924 ac_save_IFS=$IFS 11925 IFS=: 11926 set x $ac_tag 11927 IFS=$ac_save_IFS 11928 shift 11929 ac_file=$1 11930 shift 11931 11932 case $ac_mode in 11933 :L) ac_source=$1;; 11934 :[FH]) 11935 ac_file_inputs= 11936 for ac_f 11937 do 11938 case $ac_f in 11939 -) ac_f="$ac_tmp/stdin";; 11940 *) # Look for the file first in the build tree, then in the source tree 11941 # (if the path is not absolute). The absolute path cannot be DOS-style, 11942 # because $ac_f cannot contain `:'. 11943 test -f "$ac_f" || 11944 case $ac_f in 11945 [\\/$]*) false;; 11946 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11947 esac || 11948 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11949 esac 11950 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11951 as_fn_append ac_file_inputs " '$ac_f'" 11952 done 11953 11954 # Let's still pretend it is `configure' which instantiates (i.e., don't 11955 # use $as_me), people would be surprised to read: 11956 # /* config.h. Generated by config.status. */ 11957 configure_input='Generated from '` 11958 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11959 `' by configure.' 11960 if test x"$ac_file" != x-; then 11961 configure_input="$ac_file. $configure_input" 11962 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11963$as_echo "$as_me: creating $ac_file" >&6;} 11964 fi 11965 # Neutralize special characters interpreted by sed in replacement strings. 11966 case $configure_input in #( 11967 *\&* | *\|* | *\\* ) 11968 ac_sed_conf_input=`$as_echo "$configure_input" | 11969 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11970 *) ac_sed_conf_input=$configure_input;; 11971 esac 11972 11973 case $ac_tag in 11974 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11975 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11976 esac 11977 ;; 11978 esac 11979 11980 ac_dir=`$as_dirname -- "$ac_file" || 11981$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11982 X"$ac_file" : 'X\(//\)[^/]' \| \ 11983 X"$ac_file" : 'X\(//\)$' \| \ 11984 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11985$as_echo X"$ac_file" | 11986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11987 s//\1/ 11988 q 11989 } 11990 /^X\(\/\/\)[^/].*/{ 11991 s//\1/ 11992 q 11993 } 11994 /^X\(\/\/\)$/{ 11995 s//\1/ 11996 q 11997 } 11998 /^X\(\/\).*/{ 11999 s//\1/ 12000 q 12001 } 12002 s/.*/./; q'` 12003 as_dir="$ac_dir"; as_fn_mkdir_p 12004 ac_builddir=. 12005 12006case "$ac_dir" in 12007.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12008*) 12009 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12010 # A ".." for each directory in $ac_dir_suffix. 12011 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12012 case $ac_top_builddir_sub in 12013 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12014 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12015 esac ;; 12016esac 12017ac_abs_top_builddir=$ac_pwd 12018ac_abs_builddir=$ac_pwd$ac_dir_suffix 12019# for backward compatibility: 12020ac_top_builddir=$ac_top_build_prefix 12021 12022case $srcdir in 12023 .) # We are building in place. 12024 ac_srcdir=. 12025 ac_top_srcdir=$ac_top_builddir_sub 12026 ac_abs_top_srcdir=$ac_pwd ;; 12027 [\\/]* | ?:[\\/]* ) # Absolute name. 12028 ac_srcdir=$srcdir$ac_dir_suffix; 12029 ac_top_srcdir=$srcdir 12030 ac_abs_top_srcdir=$srcdir ;; 12031 *) # Relative name. 12032 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12033 ac_top_srcdir=$ac_top_build_prefix$srcdir 12034 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12035esac 12036ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12037 12038 12039 case $ac_mode in 12040 :F) 12041 # 12042 # CONFIG_FILE 12043 # 12044 12045 case $INSTALL in 12046 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12047 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12048 esac 12049 ac_MKDIR_P=$MKDIR_P 12050 case $MKDIR_P in 12051 [\\/$]* | ?:[\\/]* ) ;; 12052 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12053 esac 12054_ACEOF 12055 12056cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12057# If the template does not know about datarootdir, expand it. 12058# FIXME: This hack should be removed a few years after 2.60. 12059ac_datarootdir_hack=; ac_datarootdir_seen= 12060ac_sed_dataroot=' 12061/datarootdir/ { 12062 p 12063 q 12064} 12065/@datadir@/p 12066/@docdir@/p 12067/@infodir@/p 12068/@localedir@/p 12069/@mandir@/p' 12070case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12071*datarootdir*) ac_datarootdir_seen=yes;; 12072*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12074$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12075_ACEOF 12076cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12077 ac_datarootdir_hack=' 12078 s&@datadir@&$datadir&g 12079 s&@docdir@&$docdir&g 12080 s&@infodir@&$infodir&g 12081 s&@localedir@&$localedir&g 12082 s&@mandir@&$mandir&g 12083 s&\\\${datarootdir}&$datarootdir&g' ;; 12084esac 12085_ACEOF 12086 12087# Neutralize VPATH when `$srcdir' = `.'. 12088# Shell code in configure.ac might set extrasub. 12089# FIXME: do we really want to maintain this feature? 12090cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12091ac_sed_extra="$ac_vpsub 12092$extrasub 12093_ACEOF 12094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12095:t 12096/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12097s|@configure_input@|$ac_sed_conf_input|;t t 12098s&@top_builddir@&$ac_top_builddir_sub&;t t 12099s&@top_build_prefix@&$ac_top_build_prefix&;t t 12100s&@srcdir@&$ac_srcdir&;t t 12101s&@abs_srcdir@&$ac_abs_srcdir&;t t 12102s&@top_srcdir@&$ac_top_srcdir&;t t 12103s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12104s&@builddir@&$ac_builddir&;t t 12105s&@abs_builddir@&$ac_abs_builddir&;t t 12106s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12107s&@INSTALL@&$ac_INSTALL&;t t 12108s&@MKDIR_P@&$ac_MKDIR_P&;t t 12109$ac_datarootdir_hack 12110" 12111eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12112 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12113 12114test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12115 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12116 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12117 "$ac_tmp/out"`; test -z "$ac_out"; } && 12118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12119which seems to be undefined. Please make sure it is defined" >&5 12120$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12121which seems to be undefined. Please make sure it is defined" >&2;} 12122 12123 rm -f "$ac_tmp/stdin" 12124 case $ac_file in 12125 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12126 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12127 esac \ 12128 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12129 ;; 12130 :H) 12131 # 12132 # CONFIG_HEADER 12133 # 12134 if test x"$ac_file" != x-; then 12135 { 12136 $as_echo "/* $configure_input */" \ 12137 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12138 } >"$ac_tmp/config.h" \ 12139 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12140 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12141 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12142$as_echo "$as_me: $ac_file is unchanged" >&6;} 12143 else 12144 rm -f "$ac_file" 12145 mv "$ac_tmp/config.h" "$ac_file" \ 12146 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12147 fi 12148 else 12149 $as_echo "/* $configure_input */" \ 12150 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12151 || as_fn_error $? "could not create -" "$LINENO" 5 12152 fi 12153# Compute "$ac_file"'s index in $config_headers. 12154_am_arg="$ac_file" 12155_am_stamp_count=1 12156for _am_header in $config_headers :; do 12157 case $_am_header in 12158 $_am_arg | $_am_arg:* ) 12159 break ;; 12160 * ) 12161 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12162 esac 12163done 12164echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12165$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12166 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12167 X"$_am_arg" : 'X\(//\)$' \| \ 12168 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12169$as_echo X"$_am_arg" | 12170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12171 s//\1/ 12172 q 12173 } 12174 /^X\(\/\/\)[^/].*/{ 12175 s//\1/ 12176 q 12177 } 12178 /^X\(\/\/\)$/{ 12179 s//\1/ 12180 q 12181 } 12182 /^X\(\/\).*/{ 12183 s//\1/ 12184 q 12185 } 12186 s/.*/./; q'`/stamp-h$_am_stamp_count 12187 ;; 12188 12189 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12190$as_echo "$as_me: executing $ac_file commands" >&6;} 12191 ;; 12192 esac 12193 12194 12195 case $ac_file$ac_mode in 12196 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12197 # Older Autoconf quotes --file arguments for eval, but not when files 12198 # are listed without --file. Let's play safe and only enable the eval 12199 # if we detect the quoting. 12200 case $CONFIG_FILES in 12201 *\'*) eval set x "$CONFIG_FILES" ;; 12202 *) set x $CONFIG_FILES ;; 12203 esac 12204 shift 12205 for mf 12206 do 12207 # Strip MF so we end up with the name of the file. 12208 mf=`echo "$mf" | sed -e 's/:.*$//'` 12209 # Check whether this is an Automake generated Makefile or not. 12210 # We used to match only the files named 'Makefile.in', but 12211 # some people rename them; so instead we look at the file content. 12212 # Grep'ing the first line is not enough: some people post-process 12213 # each Makefile.in and add a new line on top of each file to say so. 12214 # Grep'ing the whole file is not good either: AIX grep has a line 12215 # limit of 2048, but all sed's we know have understand at least 4000. 12216 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12217 dirpart=`$as_dirname -- "$mf" || 12218$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12219 X"$mf" : 'X\(//\)[^/]' \| \ 12220 X"$mf" : 'X\(//\)$' \| \ 12221 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12222$as_echo X"$mf" | 12223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12224 s//\1/ 12225 q 12226 } 12227 /^X\(\/\/\)[^/].*/{ 12228 s//\1/ 12229 q 12230 } 12231 /^X\(\/\/\)$/{ 12232 s//\1/ 12233 q 12234 } 12235 /^X\(\/\).*/{ 12236 s//\1/ 12237 q 12238 } 12239 s/.*/./; q'` 12240 else 12241 continue 12242 fi 12243 # Extract the definition of DEPDIR, am__include, and am__quote 12244 # from the Makefile without running 'make'. 12245 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12246 test -z "$DEPDIR" && continue 12247 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12248 test -z "$am__include" && continue 12249 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12250 # Find all dependency output files, they are included files with 12251 # $(DEPDIR) in their names. We invoke sed twice because it is the 12252 # simplest approach to changing $(DEPDIR) to its actual value in the 12253 # expansion. 12254 for file in `sed -n " 12255 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12256 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12257 # Make sure the directory exists. 12258 test -f "$dirpart/$file" && continue 12259 fdir=`$as_dirname -- "$file" || 12260$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12261 X"$file" : 'X\(//\)[^/]' \| \ 12262 X"$file" : 'X\(//\)$' \| \ 12263 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12264$as_echo X"$file" | 12265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12266 s//\1/ 12267 q 12268 } 12269 /^X\(\/\/\)[^/].*/{ 12270 s//\1/ 12271 q 12272 } 12273 /^X\(\/\/\)$/{ 12274 s//\1/ 12275 q 12276 } 12277 /^X\(\/\).*/{ 12278 s//\1/ 12279 q 12280 } 12281 s/.*/./; q'` 12282 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12283 # echo "creating $dirpart/$file" 12284 echo '# dummy' > "$dirpart/$file" 12285 done 12286 done 12287} 12288 ;; 12289 12290 esac 12291done # for ac_tag 12292 12293 12294as_fn_exit 0 12295_ACEOF 12296ac_clean_files=$ac_clean_files_save 12297 12298test $ac_write_fail = 0 || 12299 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12300 12301 12302# configure is writing to config.log, and then calls config.status. 12303# config.status does its own redirection, appending to config.log. 12304# Unfortunately, on DOS this fails, as config.log is still kept open 12305# by configure, so config.status won't be able to write to it; its 12306# output is simply discarded. So we exec the FD to /dev/null, 12307# effectively closing config.log, so it can be properly (re)opened and 12308# appended to by config.status. When coming back to configure, we 12309# need to make the FD available again. 12310if test "$no_create" != yes; then 12311 ac_cs_success=: 12312 ac_config_status_args= 12313 test "$silent" = yes && 12314 ac_config_status_args="$ac_config_status_args --quiet" 12315 exec 5>/dev/null 12316 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12317 exec 5>>config.log 12318 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12319 # would make configure fail if this is the last instruction. 12320 $ac_cs_success || as_fn_exit 1 12321fi 12322if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12324$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12325fi 12326 12327