configure revision e90eff46
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for viewres 1.0.5. 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='viewres' 583PACKAGE_TARNAME='viewres' 584PACKAGE_VERSION='1.0.5' 585PACKAGE_STRING='viewres 1.0.5' 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 631VIEWRES_LIBS 632VIEWRES_CFLAGS 633MAN_SUBSTS 634XORG_MAN_PAGE 635ADMIN_MAN_DIR 636DRIVER_MAN_DIR 637MISC_MAN_DIR 638FILE_MAN_DIR 639LIB_MAN_DIR 640APP_MAN_DIR 641ADMIN_MAN_SUFFIX 642DRIVER_MAN_SUFFIX 643MISC_MAN_SUFFIX 644FILE_MAN_SUFFIX 645LIB_MAN_SUFFIX 646APP_MAN_SUFFIX 647SED 648host_os 649host_vendor 650host_cpu 651host 652build_os 653build_vendor 654build_cpu 655build 656INSTALL_CMD 657PKG_CONFIG_LIBDIR 658PKG_CONFIG_PATH 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 768PKG_CONFIG_PATH 769PKG_CONFIG_LIBDIR 770VIEWRES_CFLAGS 771VIEWRES_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 viewres 1.0.5 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/viewres] 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 viewres 1.0.5:";; 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 PKG_CONFIG_PATH 1421 directories to add to pkg-config's search path 1422 PKG_CONFIG_LIBDIR 1423 path overriding pkg-config's built-in search path 1424 VIEWRES_CFLAGS 1425 C compiler flags for VIEWRES, overriding pkg-config 1426 VIEWRES_LIBS 1427 linker flags for VIEWRES, overriding pkg-config 1428 1429Use these variables to override the choices made by `configure' or to help 1430it to find libraries and programs with nonstandard names/locations. 1431 1432Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1433_ACEOF 1434ac_status=$? 1435fi 1436 1437if test "$ac_init_help" = "recursive"; then 1438 # If there are subdirs, report their specific --help. 1439 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1440 test -d "$ac_dir" || 1441 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1442 continue 1443 ac_builddir=. 1444 1445case "$ac_dir" in 1446.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1447*) 1448 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1449 # A ".." for each directory in $ac_dir_suffix. 1450 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1451 case $ac_top_builddir_sub in 1452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1454 esac ;; 1455esac 1456ac_abs_top_builddir=$ac_pwd 1457ac_abs_builddir=$ac_pwd$ac_dir_suffix 1458# for backward compatibility: 1459ac_top_builddir=$ac_top_build_prefix 1460 1461case $srcdir in 1462 .) # We are building in place. 1463 ac_srcdir=. 1464 ac_top_srcdir=$ac_top_builddir_sub 1465 ac_abs_top_srcdir=$ac_pwd ;; 1466 [\\/]* | ?:[\\/]* ) # Absolute name. 1467 ac_srcdir=$srcdir$ac_dir_suffix; 1468 ac_top_srcdir=$srcdir 1469 ac_abs_top_srcdir=$srcdir ;; 1470 *) # Relative name. 1471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1472 ac_top_srcdir=$ac_top_build_prefix$srcdir 1473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1474esac 1475ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1476 1477 cd "$ac_dir" || { ac_status=$?; continue; } 1478 # Check for guested configure. 1479 if test -f "$ac_srcdir/configure.gnu"; then 1480 echo && 1481 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1482 elif test -f "$ac_srcdir/configure"; then 1483 echo && 1484 $SHELL "$ac_srcdir/configure" --help=recursive 1485 else 1486 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1487 fi || ac_status=$? 1488 cd "$ac_pwd" || { ac_status=$?; break; } 1489 done 1490fi 1491 1492test -n "$ac_init_help" && exit $ac_status 1493if $ac_init_version; then 1494 cat <<\_ACEOF 1495viewres configure 1.0.5 1496generated by GNU Autoconf 2.69 1497 1498Copyright (C) 2012 Free Software Foundation, Inc. 1499This configure script is free software; the Free Software Foundation 1500gives unlimited permission to copy, distribute and modify it. 1501_ACEOF 1502 exit 1503fi 1504 1505## ------------------------ ## 1506## Autoconf initialization. ## 1507## ------------------------ ## 1508 1509# ac_fn_c_try_compile LINENO 1510# -------------------------- 1511# Try to compile conftest.$ac_ext, and return whether this succeeded. 1512ac_fn_c_try_compile () 1513{ 1514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1515 rm -f conftest.$ac_objext 1516 if { { ac_try="$ac_compile" 1517case "(($ac_try" in 1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1519 *) ac_try_echo=$ac_try;; 1520esac 1521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1522$as_echo "$ac_try_echo"; } >&5 1523 (eval "$ac_compile") 2>conftest.err 1524 ac_status=$? 1525 if test -s conftest.err; then 1526 grep -v '^ *+' conftest.err >conftest.er1 1527 cat conftest.er1 >&5 1528 mv -f conftest.er1 conftest.err 1529 fi 1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1531 test $ac_status = 0; } && { 1532 test -z "$ac_c_werror_flag" || 1533 test ! -s conftest.err 1534 } && test -s conftest.$ac_objext; then : 1535 ac_retval=0 1536else 1537 $as_echo "$as_me: failed program was:" >&5 1538sed 's/^/| /' conftest.$ac_ext >&5 1539 1540 ac_retval=1 1541fi 1542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1543 as_fn_set_status $ac_retval 1544 1545} # ac_fn_c_try_compile 1546 1547# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1548# --------------------------------------------- 1549# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1550# accordingly. 1551ac_fn_c_check_decl () 1552{ 1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1554 as_decl_name=`echo $2|sed 's/ *(.*//'` 1555 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1557$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1558if eval \${$3+:} false; then : 1559 $as_echo_n "(cached) " >&6 1560else 1561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1562/* end confdefs.h. */ 1563$4 1564int 1565main () 1566{ 1567#ifndef $as_decl_name 1568#ifdef __cplusplus 1569 (void) $as_decl_use; 1570#else 1571 (void) $as_decl_name; 1572#endif 1573#endif 1574 1575 ; 1576 return 0; 1577} 1578_ACEOF 1579if ac_fn_c_try_compile "$LINENO"; then : 1580 eval "$3=yes" 1581else 1582 eval "$3=no" 1583fi 1584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1585fi 1586eval ac_res=\$$3 1587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1588$as_echo "$ac_res" >&6; } 1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1590 1591} # ac_fn_c_check_decl 1592 1593# ac_fn_c_try_cpp LINENO 1594# ---------------------- 1595# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1596ac_fn_c_try_cpp () 1597{ 1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1599 if { { ac_try="$ac_cpp conftest.$ac_ext" 1600case "(($ac_try" in 1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1602 *) ac_try_echo=$ac_try;; 1603esac 1604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1605$as_echo "$ac_try_echo"; } >&5 1606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1607 ac_status=$? 1608 if test -s conftest.err; then 1609 grep -v '^ *+' conftest.err >conftest.er1 1610 cat conftest.er1 >&5 1611 mv -f conftest.er1 conftest.err 1612 fi 1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1614 test $ac_status = 0; } > conftest.i && { 1615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1616 test ! -s conftest.err 1617 }; then : 1618 ac_retval=0 1619else 1620 $as_echo "$as_me: failed program was:" >&5 1621sed 's/^/| /' conftest.$ac_ext >&5 1622 1623 ac_retval=1 1624fi 1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1626 as_fn_set_status $ac_retval 1627 1628} # ac_fn_c_try_cpp 1629 1630# ac_fn_c_try_run LINENO 1631# ---------------------- 1632# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1633# that executables *can* be run. 1634ac_fn_c_try_run () 1635{ 1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1637 if { { ac_try="$ac_link" 1638case "(($ac_try" in 1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1640 *) ac_try_echo=$ac_try;; 1641esac 1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1643$as_echo "$ac_try_echo"; } >&5 1644 (eval "$ac_link") 2>&5 1645 ac_status=$? 1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1647 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1648 { { case "(($ac_try" in 1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1650 *) ac_try_echo=$ac_try;; 1651esac 1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1653$as_echo "$ac_try_echo"; } >&5 1654 (eval "$ac_try") 2>&5 1655 ac_status=$? 1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1657 test $ac_status = 0; }; }; then : 1658 ac_retval=0 1659else 1660 $as_echo "$as_me: program exited with status $ac_status" >&5 1661 $as_echo "$as_me: failed program was:" >&5 1662sed 's/^/| /' conftest.$ac_ext >&5 1663 1664 ac_retval=$ac_status 1665fi 1666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1668 as_fn_set_status $ac_retval 1669 1670} # ac_fn_c_try_run 1671 1672# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1673# ------------------------------------------------------- 1674# Tests whether HEADER exists and can be compiled using the include files in 1675# INCLUDES, setting the cache variable VAR accordingly. 1676ac_fn_c_check_header_compile () 1677{ 1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1680$as_echo_n "checking for $2... " >&6; } 1681if eval \${$3+:} false; then : 1682 $as_echo_n "(cached) " >&6 1683else 1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1685/* end confdefs.h. */ 1686$4 1687#include <$2> 1688_ACEOF 1689if ac_fn_c_try_compile "$LINENO"; then : 1690 eval "$3=yes" 1691else 1692 eval "$3=no" 1693fi 1694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1695fi 1696eval ac_res=\$$3 1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1698$as_echo "$ac_res" >&6; } 1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1700 1701} # ac_fn_c_check_header_compile 1702 1703# ac_fn_c_try_link LINENO 1704# ----------------------- 1705# Try to link conftest.$ac_ext, and return whether this succeeded. 1706ac_fn_c_try_link () 1707{ 1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1709 rm -f conftest.$ac_objext conftest$ac_exeext 1710 if { { ac_try="$ac_link" 1711case "(($ac_try" in 1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1713 *) ac_try_echo=$ac_try;; 1714esac 1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1716$as_echo "$ac_try_echo"; } >&5 1717 (eval "$ac_link") 2>conftest.err 1718 ac_status=$? 1719 if test -s conftest.err; then 1720 grep -v '^ *+' conftest.err >conftest.er1 1721 cat conftest.er1 >&5 1722 mv -f conftest.er1 conftest.err 1723 fi 1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1725 test $ac_status = 0; } && { 1726 test -z "$ac_c_werror_flag" || 1727 test ! -s conftest.err 1728 } && test -s conftest$ac_exeext && { 1729 test "$cross_compiling" = yes || 1730 test -x conftest$ac_exeext 1731 }; then : 1732 ac_retval=0 1733else 1734 $as_echo "$as_me: failed program was:" >&5 1735sed 's/^/| /' conftest.$ac_ext >&5 1736 1737 ac_retval=1 1738fi 1739 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1740 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1741 # interfere with the next link command; also delete a directory that is 1742 # left behind by Apple's compiler. We do this before executing the actions. 1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1745 as_fn_set_status $ac_retval 1746 1747} # ac_fn_c_try_link 1748cat >config.log <<_ACEOF 1749This file contains any messages produced by compilers while 1750running configure, to aid debugging if configure makes a mistake. 1751 1752It was created by viewres $as_me 1.0.5, which was 1753generated by GNU Autoconf 2.69. Invocation command line was 1754 1755 $ $0 $@ 1756 1757_ACEOF 1758exec 5>>config.log 1759{ 1760cat <<_ASUNAME 1761## --------- ## 1762## Platform. ## 1763## --------- ## 1764 1765hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1766uname -m = `(uname -m) 2>/dev/null || echo unknown` 1767uname -r = `(uname -r) 2>/dev/null || echo unknown` 1768uname -s = `(uname -s) 2>/dev/null || echo unknown` 1769uname -v = `(uname -v) 2>/dev/null || echo unknown` 1770 1771/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1772/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1773 1774/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1775/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1776/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1777/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1778/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1779/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1780/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1781 1782_ASUNAME 1783 1784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1785for as_dir in $PATH 1786do 1787 IFS=$as_save_IFS 1788 test -z "$as_dir" && as_dir=. 1789 $as_echo "PATH: $as_dir" 1790 done 1791IFS=$as_save_IFS 1792 1793} >&5 1794 1795cat >&5 <<_ACEOF 1796 1797 1798## ----------- ## 1799## Core tests. ## 1800## ----------- ## 1801 1802_ACEOF 1803 1804 1805# Keep a trace of the command line. 1806# Strip out --no-create and --no-recursion so they do not pile up. 1807# Strip out --silent because we don't want to record it for future runs. 1808# Also quote any args containing shell meta-characters. 1809# Make two passes to allow for proper duplicate-argument suppression. 1810ac_configure_args= 1811ac_configure_args0= 1812ac_configure_args1= 1813ac_must_keep_next=false 1814for ac_pass in 1 2 1815do 1816 for ac_arg 1817 do 1818 case $ac_arg in 1819 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1820 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1821 | -silent | --silent | --silen | --sile | --sil) 1822 continue ;; 1823 *\'*) 1824 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1825 esac 1826 case $ac_pass in 1827 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1828 2) 1829 as_fn_append ac_configure_args1 " '$ac_arg'" 1830 if test $ac_must_keep_next = true; then 1831 ac_must_keep_next=false # Got value, back to normal. 1832 else 1833 case $ac_arg in 1834 *=* | --config-cache | -C | -disable-* | --disable-* \ 1835 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1836 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1837 | -with-* | --with-* | -without-* | --without-* | --x) 1838 case "$ac_configure_args0 " in 1839 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1840 esac 1841 ;; 1842 -* ) ac_must_keep_next=true ;; 1843 esac 1844 fi 1845 as_fn_append ac_configure_args " '$ac_arg'" 1846 ;; 1847 esac 1848 done 1849done 1850{ ac_configure_args0=; unset ac_configure_args0;} 1851{ ac_configure_args1=; unset ac_configure_args1;} 1852 1853# When interrupted or exit'd, cleanup temporary files, and complete 1854# config.log. We remove comments because anyway the quotes in there 1855# would cause problems or look ugly. 1856# WARNING: Use '\'' to represent an apostrophe within the trap. 1857# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1858trap 'exit_status=$? 1859 # Save into config.log some information that might help in debugging. 1860 { 1861 echo 1862 1863 $as_echo "## ---------------- ## 1864## Cache variables. ## 1865## ---------------- ##" 1866 echo 1867 # The following way of writing the cache mishandles newlines in values, 1868( 1869 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1870 eval ac_val=\$$ac_var 1871 case $ac_val in #( 1872 *${as_nl}*) 1873 case $ac_var in #( 1874 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1875$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1876 esac 1877 case $ac_var in #( 1878 _ | IFS | as_nl) ;; #( 1879 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1880 *) { eval $ac_var=; unset $ac_var;} ;; 1881 esac ;; 1882 esac 1883 done 1884 (set) 2>&1 | 1885 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1886 *${as_nl}ac_space=\ *) 1887 sed -n \ 1888 "s/'\''/'\''\\\\'\'''\''/g; 1889 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1890 ;; #( 1891 *) 1892 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1893 ;; 1894 esac | 1895 sort 1896) 1897 echo 1898 1899 $as_echo "## ----------------- ## 1900## Output variables. ## 1901## ----------------- ##" 1902 echo 1903 for ac_var in $ac_subst_vars 1904 do 1905 eval ac_val=\$$ac_var 1906 case $ac_val in 1907 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1908 esac 1909 $as_echo "$ac_var='\''$ac_val'\''" 1910 done | sort 1911 echo 1912 1913 if test -n "$ac_subst_files"; then 1914 $as_echo "## ------------------- ## 1915## File substitutions. ## 1916## ------------------- ##" 1917 echo 1918 for ac_var in $ac_subst_files 1919 do 1920 eval ac_val=\$$ac_var 1921 case $ac_val in 1922 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1923 esac 1924 $as_echo "$ac_var='\''$ac_val'\''" 1925 done | sort 1926 echo 1927 fi 1928 1929 if test -s confdefs.h; then 1930 $as_echo "## ----------- ## 1931## confdefs.h. ## 1932## ----------- ##" 1933 echo 1934 cat confdefs.h 1935 echo 1936 fi 1937 test "$ac_signal" != 0 && 1938 $as_echo "$as_me: caught signal $ac_signal" 1939 $as_echo "$as_me: exit $exit_status" 1940 } >&5 1941 rm -f core *.core core.conftest.* && 1942 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1943 exit $exit_status 1944' 0 1945for ac_signal in 1 2 13 15; do 1946 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1947done 1948ac_signal=0 1949 1950# confdefs.h avoids OS command line length limits that DEFS can exceed. 1951rm -f -r conftest* confdefs.h 1952 1953$as_echo "/* confdefs.h */" > confdefs.h 1954 1955# Predefined preprocessor variables. 1956 1957cat >>confdefs.h <<_ACEOF 1958#define PACKAGE_NAME "$PACKAGE_NAME" 1959_ACEOF 1960 1961cat >>confdefs.h <<_ACEOF 1962#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1963_ACEOF 1964 1965cat >>confdefs.h <<_ACEOF 1966#define PACKAGE_VERSION "$PACKAGE_VERSION" 1967_ACEOF 1968 1969cat >>confdefs.h <<_ACEOF 1970#define PACKAGE_STRING "$PACKAGE_STRING" 1971_ACEOF 1972 1973cat >>confdefs.h <<_ACEOF 1974#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1975_ACEOF 1976 1977cat >>confdefs.h <<_ACEOF 1978#define PACKAGE_URL "$PACKAGE_URL" 1979_ACEOF 1980 1981 1982# Let the site file select an alternate cache file if it wants to. 1983# Prefer an explicitly selected file to automatically selected ones. 1984ac_site_file1=NONE 1985ac_site_file2=NONE 1986if test -n "$CONFIG_SITE"; then 1987 # We do not want a PATH search for config.site. 1988 case $CONFIG_SITE in #(( 1989 -*) ac_site_file1=./$CONFIG_SITE;; 1990 */*) ac_site_file1=$CONFIG_SITE;; 1991 *) ac_site_file1=./$CONFIG_SITE;; 1992 esac 1993elif test "x$prefix" != xNONE; then 1994 ac_site_file1=$prefix/share/config.site 1995 ac_site_file2=$prefix/etc/config.site 1996else 1997 ac_site_file1=$ac_default_prefix/share/config.site 1998 ac_site_file2=$ac_default_prefix/etc/config.site 1999fi 2000for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2001do 2002 test "x$ac_site_file" = xNONE && continue 2003 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2004 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2005$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2006 sed 's/^/| /' "$ac_site_file" >&5 2007 . "$ac_site_file" \ 2008 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2009$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2010as_fn_error $? "failed to load site script $ac_site_file 2011See \`config.log' for more details" "$LINENO" 5; } 2012 fi 2013done 2014 2015if test -r "$cache_file"; then 2016 # Some versions of bash will fail to source /dev/null (special files 2017 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2018 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2019 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2020$as_echo "$as_me: loading cache $cache_file" >&6;} 2021 case $cache_file in 2022 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2023 *) . "./$cache_file";; 2024 esac 2025 fi 2026else 2027 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2028$as_echo "$as_me: creating cache $cache_file" >&6;} 2029 >$cache_file 2030fi 2031 2032# Check that the precious variables saved in the cache have kept the same 2033# value. 2034ac_cache_corrupted=false 2035for ac_var in $ac_precious_vars; do 2036 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2037 eval ac_new_set=\$ac_env_${ac_var}_set 2038 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2039 eval ac_new_val=\$ac_env_${ac_var}_value 2040 case $ac_old_set,$ac_new_set in 2041 set,) 2042 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2043$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2044 ac_cache_corrupted=: ;; 2045 ,set) 2046 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2047$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2048 ac_cache_corrupted=: ;; 2049 ,);; 2050 *) 2051 if test "x$ac_old_val" != "x$ac_new_val"; then 2052 # differences in whitespace do not lead to failure. 2053 ac_old_val_w=`echo x $ac_old_val` 2054 ac_new_val_w=`echo x $ac_new_val` 2055 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2056 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2057$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2058 ac_cache_corrupted=: 2059 else 2060 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2061$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2062 eval $ac_var=\$ac_old_val 2063 fi 2064 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2065$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2066 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2067$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2068 fi;; 2069 esac 2070 # Pass precious variables to config.status. 2071 if test "$ac_new_set" = set; then 2072 case $ac_new_val in 2073 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2074 *) ac_arg=$ac_var=$ac_new_val ;; 2075 esac 2076 case " $ac_configure_args " in 2077 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2078 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2079 esac 2080 fi 2081done 2082if $ac_cache_corrupted; then 2083 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2085 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2086$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2087 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2088fi 2089## -------------------- ## 2090## Main body of script. ## 2091## -------------------- ## 2092 2093ac_ext=c 2094ac_cpp='$CPP $CPPFLAGS' 2095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2097ac_compiler_gnu=$ac_cv_c_compiler_gnu 2098 2099 2100 2101ac_config_headers="$ac_config_headers config.h" 2102 2103 2104# Initialize Automake 2105am__api_version='1.15' 2106 2107ac_aux_dir= 2108for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2109 if test -f "$ac_dir/install-sh"; then 2110 ac_aux_dir=$ac_dir 2111 ac_install_sh="$ac_aux_dir/install-sh -c" 2112 break 2113 elif test -f "$ac_dir/install.sh"; then 2114 ac_aux_dir=$ac_dir 2115 ac_install_sh="$ac_aux_dir/install.sh -c" 2116 break 2117 elif test -f "$ac_dir/shtool"; then 2118 ac_aux_dir=$ac_dir 2119 ac_install_sh="$ac_aux_dir/shtool install -c" 2120 break 2121 fi 2122done 2123if test -z "$ac_aux_dir"; then 2124 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2125fi 2126 2127# These three variables are undocumented and unsupported, 2128# and are intended to be withdrawn in a future Autoconf release. 2129# They can cause serious problems if a builder's source tree is in a directory 2130# whose full name contains unusual characters. 2131ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2132ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2133ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2134 2135 2136# Find a good install program. We prefer a C program (faster), 2137# so one script is as good as another. But avoid the broken or 2138# incompatible versions: 2139# SysV /etc/install, /usr/sbin/install 2140# SunOS /usr/etc/install 2141# IRIX /sbin/install 2142# AIX /bin/install 2143# AmigaOS /C/install, which installs bootblocks on floppy discs 2144# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2145# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2146# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2147# OS/2's system install, which has a completely different semantic 2148# ./install, which can be erroneously created by make from ./install.sh. 2149# Reject install programs that cannot install multiple files. 2150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2151$as_echo_n "checking for a BSD-compatible install... " >&6; } 2152if test -z "$INSTALL"; then 2153if ${ac_cv_path_install+:} false; then : 2154 $as_echo_n "(cached) " >&6 2155else 2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2157for as_dir in $PATH 2158do 2159 IFS=$as_save_IFS 2160 test -z "$as_dir" && as_dir=. 2161 # Account for people who put trailing slashes in PATH elements. 2162case $as_dir/ in #(( 2163 ./ | .// | /[cC]/* | \ 2164 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2165 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2166 /usr/ucb/* ) ;; 2167 *) 2168 # OSF1 and SCO ODT 3.0 have their own names for install. 2169 # Don't use installbsd from OSF since it installs stuff as root 2170 # by default. 2171 for ac_prog in ginstall scoinst install; do 2172 for ac_exec_ext in '' $ac_executable_extensions; do 2173 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2174 if test $ac_prog = install && 2175 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2176 # AIX install. It has an incompatible calling convention. 2177 : 2178 elif test $ac_prog = install && 2179 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2180 # program-specific install script used by HP pwplus--don't use. 2181 : 2182 else 2183 rm -rf conftest.one conftest.two conftest.dir 2184 echo one > conftest.one 2185 echo two > conftest.two 2186 mkdir conftest.dir 2187 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2188 test -s conftest.one && test -s conftest.two && 2189 test -s conftest.dir/conftest.one && 2190 test -s conftest.dir/conftest.two 2191 then 2192 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2193 break 3 2194 fi 2195 fi 2196 fi 2197 done 2198 done 2199 ;; 2200esac 2201 2202 done 2203IFS=$as_save_IFS 2204 2205rm -rf conftest.one conftest.two conftest.dir 2206 2207fi 2208 if test "${ac_cv_path_install+set}" = set; then 2209 INSTALL=$ac_cv_path_install 2210 else 2211 # As a last resort, use the slow shell script. Don't cache a 2212 # value for INSTALL within a source directory, because that will 2213 # break other packages using the cache if that directory is 2214 # removed, or if the value is a relative name. 2215 INSTALL=$ac_install_sh 2216 fi 2217fi 2218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2219$as_echo "$INSTALL" >&6; } 2220 2221# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2222# It thinks the first close brace ends the variable substitution. 2223test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2224 2225test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2226 2227test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2228 2229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2230$as_echo_n "checking whether build environment is sane... " >&6; } 2231# Reject unsafe characters in $srcdir or the absolute working directory 2232# name. Accept space and tab only in the latter. 2233am_lf=' 2234' 2235case `pwd` in 2236 *[\\\"\#\$\&\'\`$am_lf]*) 2237 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2238esac 2239case $srcdir in 2240 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2241 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2242esac 2243 2244# Do 'set' in a subshell so we don't clobber the current shell's 2245# arguments. Must try -L first in case configure is actually a 2246# symlink; some systems play weird games with the mod time of symlinks 2247# (eg FreeBSD returns the mod time of the symlink's containing 2248# directory). 2249if ( 2250 am_has_slept=no 2251 for am_try in 1 2; do 2252 echo "timestamp, slept: $am_has_slept" > conftest.file 2253 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2254 if test "$*" = "X"; then 2255 # -L didn't work. 2256 set X `ls -t "$srcdir/configure" conftest.file` 2257 fi 2258 if test "$*" != "X $srcdir/configure conftest.file" \ 2259 && test "$*" != "X conftest.file $srcdir/configure"; then 2260 2261 # If neither matched, then we have a broken ls. This can happen 2262 # if, for instance, CONFIG_SHELL is bash and it inherits a 2263 # broken ls alias from the environment. This has actually 2264 # happened. Such a system could not be considered "sane". 2265 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2266 alias in your environment" "$LINENO" 5 2267 fi 2268 if test "$2" = conftest.file || test $am_try -eq 2; then 2269 break 2270 fi 2271 # Just in case. 2272 sleep 1 2273 am_has_slept=yes 2274 done 2275 test "$2" = conftest.file 2276 ) 2277then 2278 # Ok. 2279 : 2280else 2281 as_fn_error $? "newly created file is older than distributed files! 2282Check your system clock" "$LINENO" 5 2283fi 2284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2285$as_echo "yes" >&6; } 2286# If we didn't sleep, we still need to ensure time stamps of config.status and 2287# generated files are strictly newer. 2288am_sleep_pid= 2289if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2290 ( sleep 1 ) & 2291 am_sleep_pid=$! 2292fi 2293 2294rm -f conftest.file 2295 2296test "$program_prefix" != NONE && 2297 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2298# Use a double $ so make ignores it. 2299test "$program_suffix" != NONE && 2300 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2301# Double any \ or $. 2302# By default was `s,x,x', remove it if useless. 2303ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2304program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2305 2306# Expand $ac_aux_dir to an absolute path. 2307am_aux_dir=`cd "$ac_aux_dir" && pwd` 2308 2309if test x"${MISSING+set}" != xset; then 2310 case $am_aux_dir in 2311 *\ * | *\ *) 2312 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2313 *) 2314 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2315 esac 2316fi 2317# Use eval to expand $SHELL 2318if eval "$MISSING --is-lightweight"; then 2319 am_missing_run="$MISSING " 2320else 2321 am_missing_run= 2322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2323$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2324fi 2325 2326if test x"${install_sh+set}" != xset; then 2327 case $am_aux_dir in 2328 *\ * | *\ *) 2329 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2330 *) 2331 install_sh="\${SHELL} $am_aux_dir/install-sh" 2332 esac 2333fi 2334 2335# Installed binaries are usually stripped using 'strip' when the user 2336# run "make install-strip". However 'strip' might not be the right 2337# tool to use in cross-compilation environments, therefore Automake 2338# will honor the 'STRIP' environment variable to overrule this program. 2339if test "$cross_compiling" != no; then 2340 if test -n "$ac_tool_prefix"; then 2341 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2342set dummy ${ac_tool_prefix}strip; ac_word=$2 2343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2344$as_echo_n "checking for $ac_word... " >&6; } 2345if ${ac_cv_prog_STRIP+:} false; then : 2346 $as_echo_n "(cached) " >&6 2347else 2348 if test -n "$STRIP"; then 2349 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2350else 2351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2352for as_dir in $PATH 2353do 2354 IFS=$as_save_IFS 2355 test -z "$as_dir" && as_dir=. 2356 for ac_exec_ext in '' $ac_executable_extensions; do 2357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2358 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2360 break 2 2361 fi 2362done 2363 done 2364IFS=$as_save_IFS 2365 2366fi 2367fi 2368STRIP=$ac_cv_prog_STRIP 2369if test -n "$STRIP"; then 2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2371$as_echo "$STRIP" >&6; } 2372else 2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2374$as_echo "no" >&6; } 2375fi 2376 2377 2378fi 2379if test -z "$ac_cv_prog_STRIP"; then 2380 ac_ct_STRIP=$STRIP 2381 # Extract the first word of "strip", so it can be a program name with args. 2382set dummy strip; ac_word=$2 2383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2384$as_echo_n "checking for $ac_word... " >&6; } 2385if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2386 $as_echo_n "(cached) " >&6 2387else 2388 if test -n "$ac_ct_STRIP"; then 2389 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2390else 2391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2392for as_dir in $PATH 2393do 2394 IFS=$as_save_IFS 2395 test -z "$as_dir" && as_dir=. 2396 for ac_exec_ext in '' $ac_executable_extensions; do 2397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2398 ac_cv_prog_ac_ct_STRIP="strip" 2399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2400 break 2 2401 fi 2402done 2403 done 2404IFS=$as_save_IFS 2405 2406fi 2407fi 2408ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2409if test -n "$ac_ct_STRIP"; then 2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2411$as_echo "$ac_ct_STRIP" >&6; } 2412else 2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2414$as_echo "no" >&6; } 2415fi 2416 2417 if test "x$ac_ct_STRIP" = x; then 2418 STRIP=":" 2419 else 2420 case $cross_compiling:$ac_tool_warned in 2421yes:) 2422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2424ac_tool_warned=yes ;; 2425esac 2426 STRIP=$ac_ct_STRIP 2427 fi 2428else 2429 STRIP="$ac_cv_prog_STRIP" 2430fi 2431 2432fi 2433INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2434 2435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2436$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2437if test -z "$MKDIR_P"; then 2438 if ${ac_cv_path_mkdir+:} false; then : 2439 $as_echo_n "(cached) " >&6 2440else 2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2442for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2443do 2444 IFS=$as_save_IFS 2445 test -z "$as_dir" && as_dir=. 2446 for ac_prog in mkdir gmkdir; do 2447 for ac_exec_ext in '' $ac_executable_extensions; do 2448 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2449 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2450 'mkdir (GNU coreutils) '* | \ 2451 'mkdir (coreutils) '* | \ 2452 'mkdir (fileutils) '4.1*) 2453 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2454 break 3;; 2455 esac 2456 done 2457 done 2458 done 2459IFS=$as_save_IFS 2460 2461fi 2462 2463 test -d ./--version && rmdir ./--version 2464 if test "${ac_cv_path_mkdir+set}" = set; then 2465 MKDIR_P="$ac_cv_path_mkdir -p" 2466 else 2467 # As a last resort, use the slow shell script. Don't cache a 2468 # value for MKDIR_P within a source directory, because that will 2469 # break other packages using the cache if that directory is 2470 # removed, or if the value is a relative name. 2471 MKDIR_P="$ac_install_sh -d" 2472 fi 2473fi 2474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2475$as_echo "$MKDIR_P" >&6; } 2476 2477for ac_prog in gawk mawk nawk awk 2478do 2479 # Extract the first word of "$ac_prog", so it can be a program name with args. 2480set dummy $ac_prog; ac_word=$2 2481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2482$as_echo_n "checking for $ac_word... " >&6; } 2483if ${ac_cv_prog_AWK+:} false; then : 2484 $as_echo_n "(cached) " >&6 2485else 2486 if test -n "$AWK"; then 2487 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2488else 2489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2490for as_dir in $PATH 2491do 2492 IFS=$as_save_IFS 2493 test -z "$as_dir" && as_dir=. 2494 for ac_exec_ext in '' $ac_executable_extensions; do 2495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2496 ac_cv_prog_AWK="$ac_prog" 2497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2498 break 2 2499 fi 2500done 2501 done 2502IFS=$as_save_IFS 2503 2504fi 2505fi 2506AWK=$ac_cv_prog_AWK 2507if test -n "$AWK"; then 2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2509$as_echo "$AWK" >&6; } 2510else 2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2512$as_echo "no" >&6; } 2513fi 2514 2515 2516 test -n "$AWK" && break 2517done 2518 2519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2520$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2521set x ${MAKE-make} 2522ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2523if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2524 $as_echo_n "(cached) " >&6 2525else 2526 cat >conftest.make <<\_ACEOF 2527SHELL = /bin/sh 2528all: 2529 @echo '@@@%%%=$(MAKE)=@@@%%%' 2530_ACEOF 2531# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2532case `${MAKE-make} -f conftest.make 2>/dev/null` in 2533 *@@@%%%=?*=@@@%%%*) 2534 eval ac_cv_prog_make_${ac_make}_set=yes;; 2535 *) 2536 eval ac_cv_prog_make_${ac_make}_set=no;; 2537esac 2538rm -f conftest.make 2539fi 2540if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2542$as_echo "yes" >&6; } 2543 SET_MAKE= 2544else 2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2546$as_echo "no" >&6; } 2547 SET_MAKE="MAKE=${MAKE-make}" 2548fi 2549 2550rm -rf .tst 2>/dev/null 2551mkdir .tst 2>/dev/null 2552if test -d .tst; then 2553 am__leading_dot=. 2554else 2555 am__leading_dot=_ 2556fi 2557rmdir .tst 2>/dev/null 2558 2559# Check whether --enable-silent-rules was given. 2560if test "${enable_silent_rules+set}" = set; then : 2561 enableval=$enable_silent_rules; 2562fi 2563 2564case $enable_silent_rules in # ((( 2565 yes) AM_DEFAULT_VERBOSITY=0;; 2566 no) AM_DEFAULT_VERBOSITY=1;; 2567 *) AM_DEFAULT_VERBOSITY=1;; 2568esac 2569am_make=${MAKE-make} 2570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2571$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2572if ${am_cv_make_support_nested_variables+:} false; then : 2573 $as_echo_n "(cached) " >&6 2574else 2575 if $as_echo 'TRUE=$(BAR$(V)) 2576BAR0=false 2577BAR1=true 2578V=1 2579am__doit: 2580 @$(TRUE) 2581.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2582 am_cv_make_support_nested_variables=yes 2583else 2584 am_cv_make_support_nested_variables=no 2585fi 2586fi 2587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2588$as_echo "$am_cv_make_support_nested_variables" >&6; } 2589if test $am_cv_make_support_nested_variables = yes; then 2590 AM_V='$(V)' 2591 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2592else 2593 AM_V=$AM_DEFAULT_VERBOSITY 2594 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2595fi 2596AM_BACKSLASH='\' 2597 2598if test "`cd $srcdir && pwd`" != "`pwd`"; then 2599 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2600 # is not polluted with repeated "-I." 2601 am__isrc=' -I$(srcdir)' 2602 # test to see if srcdir already configured 2603 if test -f $srcdir/config.status; then 2604 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2605 fi 2606fi 2607 2608# test whether we have cygpath 2609if test -z "$CYGPATH_W"; then 2610 if (cygpath --version) >/dev/null 2>/dev/null; then 2611 CYGPATH_W='cygpath -w' 2612 else 2613 CYGPATH_W=echo 2614 fi 2615fi 2616 2617 2618# Define the identity of the package. 2619 PACKAGE='viewres' 2620 VERSION='1.0.5' 2621 2622 2623cat >>confdefs.h <<_ACEOF 2624#define PACKAGE "$PACKAGE" 2625_ACEOF 2626 2627 2628cat >>confdefs.h <<_ACEOF 2629#define VERSION "$VERSION" 2630_ACEOF 2631 2632# Some tools Automake needs. 2633 2634ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2635 2636 2637AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2638 2639 2640AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2641 2642 2643AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2644 2645 2646MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2647 2648# For better backward compatibility. To be removed once Automake 1.9.x 2649# dies out for good. For more background, see: 2650# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2651# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2652mkdir_p='$(MKDIR_P)' 2653 2654# We need awk for the "check" target (and possibly the TAP driver). The 2655# system "awk" is bad on some platforms. 2656# Always define AMTAR for backward compatibility. Yes, it's still used 2657# in the wild :-( We should find a proper way to deprecate it ... 2658AMTAR='$${TAR-tar}' 2659 2660 2661# We'll loop over all known methods to create a tar archive until one works. 2662_am_tools='gnutar pax cpio none' 2663 2664am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2665 2666 2667 2668 2669 2670 2671# POSIX will say in a future version that running "rm -f" with no argument 2672# is OK; and we want to be able to make that assumption in our Makefile 2673# recipes. So use an aggressive probe to check that the usage we want is 2674# actually supported "in the wild" to an acceptable degree. 2675# See automake bug#10828. 2676# To make any issue more visible, cause the running configure to be aborted 2677# by default if the 'rm' program in use doesn't match our expectations; the 2678# user can still override this though. 2679if rm -f && rm -fr && rm -rf; then : OK; else 2680 cat >&2 <<'END' 2681Oops! 2682 2683Your 'rm' program seems unable to run without file operands specified 2684on the command line, even when the '-f' option is present. This is contrary 2685to the behaviour of most rm programs out there, and not conforming with 2686the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2687 2688Please tell bug-automake@gnu.org about your system, including the value 2689of your $PATH and any error possibly output before this message. This 2690can help us improve future automake versions. 2691 2692END 2693 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2694 echo 'Configuration will proceed anyway, since you have set the' >&2 2695 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2696 echo >&2 2697 else 2698 cat >&2 <<'END' 2699Aborting the configuration process, to ensure you take notice of the issue. 2700 2701You can download and install GNU coreutils to get an 'rm' implementation 2702that behaves properly: <http://www.gnu.org/software/coreutils/>. 2703 2704If you want to complete the configuration process using your problematic 2705'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2706to "yes", and re-run configure. 2707 2708END 2709 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2710 fi 2711fi 2712 2713 2714# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726DEPDIR="${am__leading_dot}deps" 2727 2728ac_config_commands="$ac_config_commands depfiles" 2729 2730 2731am_make=${MAKE-make} 2732cat > confinc << 'END' 2733am__doit: 2734 @echo this is the am__doit target 2735.PHONY: am__doit 2736END 2737# If we don't find an include directive, just comment out the code. 2738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2739$as_echo_n "checking for style of include used by $am_make... " >&6; } 2740am__include="#" 2741am__quote= 2742_am_result=none 2743# First try GNU make style include. 2744echo "include confinc" > confmf 2745# Ignore all kinds of additional output from 'make'. 2746case `$am_make -s -f confmf 2> /dev/null` in #( 2747*the\ am__doit\ target*) 2748 am__include=include 2749 am__quote= 2750 _am_result=GNU 2751 ;; 2752esac 2753# Now try BSD make style include. 2754if test "$am__include" = "#"; then 2755 echo '.include "confinc"' > confmf 2756 case `$am_make -s -f confmf 2> /dev/null` in #( 2757 *the\ am__doit\ target*) 2758 am__include=.include 2759 am__quote="\"" 2760 _am_result=BSD 2761 ;; 2762 esac 2763fi 2764 2765 2766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2767$as_echo "$_am_result" >&6; } 2768rm -f confinc confmf 2769 2770# Check whether --enable-dependency-tracking was given. 2771if test "${enable_dependency_tracking+set}" = set; then : 2772 enableval=$enable_dependency_tracking; 2773fi 2774 2775if test "x$enable_dependency_tracking" != xno; then 2776 am_depcomp="$ac_aux_dir/depcomp" 2777 AMDEPBACKSLASH='\' 2778 am__nodep='_no' 2779fi 2780 if test "x$enable_dependency_tracking" != xno; then 2781 AMDEP_TRUE= 2782 AMDEP_FALSE='#' 2783else 2784 AMDEP_TRUE='#' 2785 AMDEP_FALSE= 2786fi 2787 2788 2789ac_ext=c 2790ac_cpp='$CPP $CPPFLAGS' 2791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2793ac_compiler_gnu=$ac_cv_c_compiler_gnu 2794if test -n "$ac_tool_prefix"; then 2795 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2796set dummy ${ac_tool_prefix}gcc; ac_word=$2 2797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2798$as_echo_n "checking for $ac_word... " >&6; } 2799if ${ac_cv_prog_CC+:} false; then : 2800 $as_echo_n "(cached) " >&6 2801else 2802 if test -n "$CC"; then 2803 ac_cv_prog_CC="$CC" # Let the user override the test. 2804else 2805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2806for as_dir in $PATH 2807do 2808 IFS=$as_save_IFS 2809 test -z "$as_dir" && as_dir=. 2810 for ac_exec_ext in '' $ac_executable_extensions; do 2811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2812 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2814 break 2 2815 fi 2816done 2817 done 2818IFS=$as_save_IFS 2819 2820fi 2821fi 2822CC=$ac_cv_prog_CC 2823if test -n "$CC"; then 2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2825$as_echo "$CC" >&6; } 2826else 2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2828$as_echo "no" >&6; } 2829fi 2830 2831 2832fi 2833if test -z "$ac_cv_prog_CC"; then 2834 ac_ct_CC=$CC 2835 # Extract the first word of "gcc", so it can be a program name with args. 2836set dummy gcc; ac_word=$2 2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2838$as_echo_n "checking for $ac_word... " >&6; } 2839if ${ac_cv_prog_ac_ct_CC+:} false; then : 2840 $as_echo_n "(cached) " >&6 2841else 2842 if test -n "$ac_ct_CC"; then 2843 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2844else 2845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2846for as_dir in $PATH 2847do 2848 IFS=$as_save_IFS 2849 test -z "$as_dir" && as_dir=. 2850 for ac_exec_ext in '' $ac_executable_extensions; do 2851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2852 ac_cv_prog_ac_ct_CC="gcc" 2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2854 break 2 2855 fi 2856done 2857 done 2858IFS=$as_save_IFS 2859 2860fi 2861fi 2862ac_ct_CC=$ac_cv_prog_ac_ct_CC 2863if test -n "$ac_ct_CC"; then 2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2865$as_echo "$ac_ct_CC" >&6; } 2866else 2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2868$as_echo "no" >&6; } 2869fi 2870 2871 if test "x$ac_ct_CC" = x; then 2872 CC="" 2873 else 2874 case $cross_compiling:$ac_tool_warned in 2875yes:) 2876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2878ac_tool_warned=yes ;; 2879esac 2880 CC=$ac_ct_CC 2881 fi 2882else 2883 CC="$ac_cv_prog_CC" 2884fi 2885 2886if test -z "$CC"; then 2887 if test -n "$ac_tool_prefix"; then 2888 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2889set dummy ${ac_tool_prefix}cc; ac_word=$2 2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2891$as_echo_n "checking for $ac_word... " >&6; } 2892if ${ac_cv_prog_CC+:} false; then : 2893 $as_echo_n "(cached) " >&6 2894else 2895 if test -n "$CC"; then 2896 ac_cv_prog_CC="$CC" # Let the user override the test. 2897else 2898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2899for as_dir in $PATH 2900do 2901 IFS=$as_save_IFS 2902 test -z "$as_dir" && as_dir=. 2903 for ac_exec_ext in '' $ac_executable_extensions; do 2904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2905 ac_cv_prog_CC="${ac_tool_prefix}cc" 2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2907 break 2 2908 fi 2909done 2910 done 2911IFS=$as_save_IFS 2912 2913fi 2914fi 2915CC=$ac_cv_prog_CC 2916if test -n "$CC"; then 2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2918$as_echo "$CC" >&6; } 2919else 2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2921$as_echo "no" >&6; } 2922fi 2923 2924 2925 fi 2926fi 2927if test -z "$CC"; then 2928 # Extract the first word of "cc", so it can be a program name with args. 2929set dummy cc; ac_word=$2 2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2931$as_echo_n "checking for $ac_word... " >&6; } 2932if ${ac_cv_prog_CC+:} false; then : 2933 $as_echo_n "(cached) " >&6 2934else 2935 if test -n "$CC"; then 2936 ac_cv_prog_CC="$CC" # Let the user override the test. 2937else 2938 ac_prog_rejected=no 2939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2940for as_dir in $PATH 2941do 2942 IFS=$as_save_IFS 2943 test -z "$as_dir" && as_dir=. 2944 for ac_exec_ext in '' $ac_executable_extensions; do 2945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2946 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2947 ac_prog_rejected=yes 2948 continue 2949 fi 2950 ac_cv_prog_CC="cc" 2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2952 break 2 2953 fi 2954done 2955 done 2956IFS=$as_save_IFS 2957 2958if test $ac_prog_rejected = yes; then 2959 # We found a bogon in the path, so make sure we never use it. 2960 set dummy $ac_cv_prog_CC 2961 shift 2962 if test $# != 0; then 2963 # We chose a different compiler from the bogus one. 2964 # However, it has the same basename, so the bogon will be chosen 2965 # first if we set CC to just the basename; use the full file name. 2966 shift 2967 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2968 fi 2969fi 2970fi 2971fi 2972CC=$ac_cv_prog_CC 2973if test -n "$CC"; then 2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2975$as_echo "$CC" >&6; } 2976else 2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2978$as_echo "no" >&6; } 2979fi 2980 2981 2982fi 2983if test -z "$CC"; then 2984 if test -n "$ac_tool_prefix"; then 2985 for ac_prog in cl.exe 2986 do 2987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2988set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2990$as_echo_n "checking for $ac_word... " >&6; } 2991if ${ac_cv_prog_CC+:} false; then : 2992 $as_echo_n "(cached) " >&6 2993else 2994 if test -n "$CC"; then 2995 ac_cv_prog_CC="$CC" # Let the user override the test. 2996else 2997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2998for as_dir in $PATH 2999do 3000 IFS=$as_save_IFS 3001 test -z "$as_dir" && as_dir=. 3002 for ac_exec_ext in '' $ac_executable_extensions; do 3003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3004 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3006 break 2 3007 fi 3008done 3009 done 3010IFS=$as_save_IFS 3011 3012fi 3013fi 3014CC=$ac_cv_prog_CC 3015if test -n "$CC"; then 3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3017$as_echo "$CC" >&6; } 3018else 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3020$as_echo "no" >&6; } 3021fi 3022 3023 3024 test -n "$CC" && break 3025 done 3026fi 3027if test -z "$CC"; then 3028 ac_ct_CC=$CC 3029 for ac_prog in cl.exe 3030do 3031 # Extract the first word of "$ac_prog", so it can be a program name with args. 3032set dummy $ac_prog; ac_word=$2 3033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3034$as_echo_n "checking for $ac_word... " >&6; } 3035if ${ac_cv_prog_ac_ct_CC+:} false; then : 3036 $as_echo_n "(cached) " >&6 3037else 3038 if test -n "$ac_ct_CC"; then 3039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3040else 3041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3042for as_dir in $PATH 3043do 3044 IFS=$as_save_IFS 3045 test -z "$as_dir" && as_dir=. 3046 for ac_exec_ext in '' $ac_executable_extensions; do 3047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3048 ac_cv_prog_ac_ct_CC="$ac_prog" 3049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3050 break 2 3051 fi 3052done 3053 done 3054IFS=$as_save_IFS 3055 3056fi 3057fi 3058ac_ct_CC=$ac_cv_prog_ac_ct_CC 3059if test -n "$ac_ct_CC"; then 3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3061$as_echo "$ac_ct_CC" >&6; } 3062else 3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3064$as_echo "no" >&6; } 3065fi 3066 3067 3068 test -n "$ac_ct_CC" && break 3069done 3070 3071 if test "x$ac_ct_CC" = x; then 3072 CC="" 3073 else 3074 case $cross_compiling:$ac_tool_warned in 3075yes:) 3076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3078ac_tool_warned=yes ;; 3079esac 3080 CC=$ac_ct_CC 3081 fi 3082fi 3083 3084fi 3085 3086 3087test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3089as_fn_error $? "no acceptable C compiler found in \$PATH 3090See \`config.log' for more details" "$LINENO" 5; } 3091 3092# Provide some information about the compiler. 3093$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3094set X $ac_compile 3095ac_compiler=$2 3096for ac_option in --version -v -V -qversion; do 3097 { { ac_try="$ac_compiler $ac_option >&5" 3098case "(($ac_try" in 3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3100 *) ac_try_echo=$ac_try;; 3101esac 3102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3103$as_echo "$ac_try_echo"; } >&5 3104 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3105 ac_status=$? 3106 if test -s conftest.err; then 3107 sed '10a\ 3108... rest of stderr output deleted ... 3109 10q' conftest.err >conftest.er1 3110 cat conftest.er1 >&5 3111 fi 3112 rm -f conftest.er1 conftest.err 3113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3114 test $ac_status = 0; } 3115done 3116 3117cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3118/* end confdefs.h. */ 3119 3120int 3121main () 3122{ 3123 3124 ; 3125 return 0; 3126} 3127_ACEOF 3128ac_clean_files_save=$ac_clean_files 3129ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3130# Try to create an executable without -o first, disregard a.out. 3131# It will help us diagnose broken compilers, and finding out an intuition 3132# of exeext. 3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3134$as_echo_n "checking whether the C compiler works... " >&6; } 3135ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3136 3137# The possible output files: 3138ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3139 3140ac_rmfiles= 3141for ac_file in $ac_files 3142do 3143 case $ac_file in 3144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3145 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3146 esac 3147done 3148rm -f $ac_rmfiles 3149 3150if { { ac_try="$ac_link_default" 3151case "(($ac_try" in 3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3153 *) ac_try_echo=$ac_try;; 3154esac 3155eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3156$as_echo "$ac_try_echo"; } >&5 3157 (eval "$ac_link_default") 2>&5 3158 ac_status=$? 3159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3160 test $ac_status = 0; }; then : 3161 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3162# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3163# in a Makefile. We should not override ac_cv_exeext if it was cached, 3164# so that the user can short-circuit this test for compilers unknown to 3165# Autoconf. 3166for ac_file in $ac_files '' 3167do 3168 test -f "$ac_file" || continue 3169 case $ac_file in 3170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3171 ;; 3172 [ab].out ) 3173 # We found the default executable, but exeext='' is most 3174 # certainly right. 3175 break;; 3176 *.* ) 3177 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3178 then :; else 3179 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3180 fi 3181 # We set ac_cv_exeext here because the later test for it is not 3182 # safe: cross compilers may not add the suffix if given an `-o' 3183 # argument, so we may need to know it at that point already. 3184 # Even if this section looks crufty: it has the advantage of 3185 # actually working. 3186 break;; 3187 * ) 3188 break;; 3189 esac 3190done 3191test "$ac_cv_exeext" = no && ac_cv_exeext= 3192 3193else 3194 ac_file='' 3195fi 3196if test -z "$ac_file"; then : 3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3198$as_echo "no" >&6; } 3199$as_echo "$as_me: failed program was:" >&5 3200sed 's/^/| /' conftest.$ac_ext >&5 3201 3202{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3204as_fn_error 77 "C compiler cannot create executables 3205See \`config.log' for more details" "$LINENO" 5; } 3206else 3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3208$as_echo "yes" >&6; } 3209fi 3210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3211$as_echo_n "checking for C compiler default output file name... " >&6; } 3212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3213$as_echo "$ac_file" >&6; } 3214ac_exeext=$ac_cv_exeext 3215 3216rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3217ac_clean_files=$ac_clean_files_save 3218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3219$as_echo_n "checking for suffix of executables... " >&6; } 3220if { { ac_try="$ac_link" 3221case "(($ac_try" in 3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3223 *) ac_try_echo=$ac_try;; 3224esac 3225eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3226$as_echo "$ac_try_echo"; } >&5 3227 (eval "$ac_link") 2>&5 3228 ac_status=$? 3229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3230 test $ac_status = 0; }; then : 3231 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3232# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3233# work properly (i.e., refer to `conftest.exe'), while it won't with 3234# `rm'. 3235for ac_file in conftest.exe conftest conftest.*; do 3236 test -f "$ac_file" || continue 3237 case $ac_file in 3238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3239 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3240 break;; 3241 * ) break;; 3242 esac 3243done 3244else 3245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3247as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3248See \`config.log' for more details" "$LINENO" 5; } 3249fi 3250rm -f conftest conftest$ac_cv_exeext 3251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3252$as_echo "$ac_cv_exeext" >&6; } 3253 3254rm -f conftest.$ac_ext 3255EXEEXT=$ac_cv_exeext 3256ac_exeext=$EXEEXT 3257cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3258/* end confdefs.h. */ 3259#include <stdio.h> 3260int 3261main () 3262{ 3263FILE *f = fopen ("conftest.out", "w"); 3264 return ferror (f) || fclose (f) != 0; 3265 3266 ; 3267 return 0; 3268} 3269_ACEOF 3270ac_clean_files="$ac_clean_files conftest.out" 3271# Check that the compiler produces executables we can run. If not, either 3272# the compiler is broken, or we cross compile. 3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3274$as_echo_n "checking whether we are cross compiling... " >&6; } 3275if test "$cross_compiling" != yes; then 3276 { { ac_try="$ac_link" 3277case "(($ac_try" in 3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3279 *) ac_try_echo=$ac_try;; 3280esac 3281eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3282$as_echo "$ac_try_echo"; } >&5 3283 (eval "$ac_link") 2>&5 3284 ac_status=$? 3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3286 test $ac_status = 0; } 3287 if { ac_try='./conftest$ac_cv_exeext' 3288 { { case "(($ac_try" in 3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3290 *) ac_try_echo=$ac_try;; 3291esac 3292eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3293$as_echo "$ac_try_echo"; } >&5 3294 (eval "$ac_try") 2>&5 3295 ac_status=$? 3296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3297 test $ac_status = 0; }; }; then 3298 cross_compiling=no 3299 else 3300 if test "$cross_compiling" = maybe; then 3301 cross_compiling=yes 3302 else 3303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3305as_fn_error $? "cannot run C compiled programs. 3306If you meant to cross compile, use \`--host'. 3307See \`config.log' for more details" "$LINENO" 5; } 3308 fi 3309 fi 3310fi 3311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3312$as_echo "$cross_compiling" >&6; } 3313 3314rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3315ac_clean_files=$ac_clean_files_save 3316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3317$as_echo_n "checking for suffix of object files... " >&6; } 3318if ${ac_cv_objext+:} false; then : 3319 $as_echo_n "(cached) " >&6 3320else 3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3322/* end confdefs.h. */ 3323 3324int 3325main () 3326{ 3327 3328 ; 3329 return 0; 3330} 3331_ACEOF 3332rm -f conftest.o conftest.obj 3333if { { ac_try="$ac_compile" 3334case "(($ac_try" in 3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3336 *) ac_try_echo=$ac_try;; 3337esac 3338eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3339$as_echo "$ac_try_echo"; } >&5 3340 (eval "$ac_compile") 2>&5 3341 ac_status=$? 3342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3343 test $ac_status = 0; }; then : 3344 for ac_file in conftest.o conftest.obj conftest.*; do 3345 test -f "$ac_file" || continue; 3346 case $ac_file in 3347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3348 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3349 break;; 3350 esac 3351done 3352else 3353 $as_echo "$as_me: failed program was:" >&5 3354sed 's/^/| /' conftest.$ac_ext >&5 3355 3356{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3357$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3358as_fn_error $? "cannot compute suffix of object files: cannot compile 3359See \`config.log' for more details" "$LINENO" 5; } 3360fi 3361rm -f conftest.$ac_cv_objext conftest.$ac_ext 3362fi 3363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3364$as_echo "$ac_cv_objext" >&6; } 3365OBJEXT=$ac_cv_objext 3366ac_objext=$OBJEXT 3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3368$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3369if ${ac_cv_c_compiler_gnu+:} false; then : 3370 $as_echo_n "(cached) " >&6 3371else 3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3373/* end confdefs.h. */ 3374 3375int 3376main () 3377{ 3378#ifndef __GNUC__ 3379 choke me 3380#endif 3381 3382 ; 3383 return 0; 3384} 3385_ACEOF 3386if ac_fn_c_try_compile "$LINENO"; then : 3387 ac_compiler_gnu=yes 3388else 3389 ac_compiler_gnu=no 3390fi 3391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3392ac_cv_c_compiler_gnu=$ac_compiler_gnu 3393 3394fi 3395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3396$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3397if test $ac_compiler_gnu = yes; then 3398 GCC=yes 3399else 3400 GCC= 3401fi 3402ac_test_CFLAGS=${CFLAGS+set} 3403ac_save_CFLAGS=$CFLAGS 3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3405$as_echo_n "checking whether $CC accepts -g... " >&6; } 3406if ${ac_cv_prog_cc_g+:} false; then : 3407 $as_echo_n "(cached) " >&6 3408else 3409 ac_save_c_werror_flag=$ac_c_werror_flag 3410 ac_c_werror_flag=yes 3411 ac_cv_prog_cc_g=no 3412 CFLAGS="-g" 3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3414/* end confdefs.h. */ 3415 3416int 3417main () 3418{ 3419 3420 ; 3421 return 0; 3422} 3423_ACEOF 3424if ac_fn_c_try_compile "$LINENO"; then : 3425 ac_cv_prog_cc_g=yes 3426else 3427 CFLAGS="" 3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3429/* end confdefs.h. */ 3430 3431int 3432main () 3433{ 3434 3435 ; 3436 return 0; 3437} 3438_ACEOF 3439if ac_fn_c_try_compile "$LINENO"; then : 3440 3441else 3442 ac_c_werror_flag=$ac_save_c_werror_flag 3443 CFLAGS="-g" 3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3445/* end confdefs.h. */ 3446 3447int 3448main () 3449{ 3450 3451 ; 3452 return 0; 3453} 3454_ACEOF 3455if ac_fn_c_try_compile "$LINENO"; then : 3456 ac_cv_prog_cc_g=yes 3457fi 3458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3459fi 3460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3461fi 3462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3463 ac_c_werror_flag=$ac_save_c_werror_flag 3464fi 3465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3466$as_echo "$ac_cv_prog_cc_g" >&6; } 3467if test "$ac_test_CFLAGS" = set; then 3468 CFLAGS=$ac_save_CFLAGS 3469elif test $ac_cv_prog_cc_g = yes; then 3470 if test "$GCC" = yes; then 3471 CFLAGS="-g -O2" 3472 else 3473 CFLAGS="-g" 3474 fi 3475else 3476 if test "$GCC" = yes; then 3477 CFLAGS="-O2" 3478 else 3479 CFLAGS= 3480 fi 3481fi 3482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3483$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3484if ${ac_cv_prog_cc_c89+:} false; then : 3485 $as_echo_n "(cached) " >&6 3486else 3487 ac_cv_prog_cc_c89=no 3488ac_save_CC=$CC 3489cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3490/* end confdefs.h. */ 3491#include <stdarg.h> 3492#include <stdio.h> 3493struct stat; 3494/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3495struct buf { int x; }; 3496FILE * (*rcsopen) (struct buf *, struct stat *, int); 3497static char *e (p, i) 3498 char **p; 3499 int i; 3500{ 3501 return p[i]; 3502} 3503static char *f (char * (*g) (char **, int), char **p, ...) 3504{ 3505 char *s; 3506 va_list v; 3507 va_start (v,p); 3508 s = g (p, va_arg (v,int)); 3509 va_end (v); 3510 return s; 3511} 3512 3513/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3514 function prototypes and stuff, but not '\xHH' hex character constants. 3515 These don't provoke an error unfortunately, instead are silently treated 3516 as 'x'. The following induces an error, until -std is added to get 3517 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3518 array size at least. It's necessary to write '\x00'==0 to get something 3519 that's true only with -std. */ 3520int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3521 3522/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3523 inside strings and character constants. */ 3524#define FOO(x) 'x' 3525int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3526 3527int test (int i, double x); 3528struct s1 {int (*f) (int a);}; 3529struct s2 {int (*f) (double a);}; 3530int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3531int argc; 3532char **argv; 3533int 3534main () 3535{ 3536return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3537 ; 3538 return 0; 3539} 3540_ACEOF 3541for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3542 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3543do 3544 CC="$ac_save_CC $ac_arg" 3545 if ac_fn_c_try_compile "$LINENO"; then : 3546 ac_cv_prog_cc_c89=$ac_arg 3547fi 3548rm -f core conftest.err conftest.$ac_objext 3549 test "x$ac_cv_prog_cc_c89" != "xno" && break 3550done 3551rm -f conftest.$ac_ext 3552CC=$ac_save_CC 3553 3554fi 3555# AC_CACHE_VAL 3556case "x$ac_cv_prog_cc_c89" in 3557 x) 3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3559$as_echo "none needed" >&6; } ;; 3560 xno) 3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3562$as_echo "unsupported" >&6; } ;; 3563 *) 3564 CC="$CC $ac_cv_prog_cc_c89" 3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3566$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3567esac 3568if test "x$ac_cv_prog_cc_c89" != xno; then : 3569 3570fi 3571 3572ac_ext=c 3573ac_cpp='$CPP $CPPFLAGS' 3574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3576ac_compiler_gnu=$ac_cv_c_compiler_gnu 3577 3578ac_ext=c 3579ac_cpp='$CPP $CPPFLAGS' 3580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3582ac_compiler_gnu=$ac_cv_c_compiler_gnu 3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3584$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3585if ${am_cv_prog_cc_c_o+:} false; then : 3586 $as_echo_n "(cached) " >&6 3587else 3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3589/* end confdefs.h. */ 3590 3591int 3592main () 3593{ 3594 3595 ; 3596 return 0; 3597} 3598_ACEOF 3599 # Make sure it works both with $CC and with simple cc. 3600 # Following AC_PROG_CC_C_O, we do the test twice because some 3601 # compilers refuse to overwrite an existing .o file with -o, 3602 # though they will create one. 3603 am_cv_prog_cc_c_o=yes 3604 for am_i in 1 2; do 3605 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3606 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3607 ac_status=$? 3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3609 (exit $ac_status); } \ 3610 && test -f conftest2.$ac_objext; then 3611 : OK 3612 else 3613 am_cv_prog_cc_c_o=no 3614 break 3615 fi 3616 done 3617 rm -f core conftest* 3618 unset am_i 3619fi 3620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3621$as_echo "$am_cv_prog_cc_c_o" >&6; } 3622if test "$am_cv_prog_cc_c_o" != yes; then 3623 # Losing compiler, so override with the script. 3624 # FIXME: It is wrong to rewrite CC. 3625 # But if we don't then we get into trouble of one sort or another. 3626 # A longer-term fix would be to have automake use am__CC in this case, 3627 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3628 CC="$am_aux_dir/compile $CC" 3629fi 3630ac_ext=c 3631ac_cpp='$CPP $CPPFLAGS' 3632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3634ac_compiler_gnu=$ac_cv_c_compiler_gnu 3635 3636 3637depcc="$CC" am_compiler_list= 3638 3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3640$as_echo_n "checking dependency style of $depcc... " >&6; } 3641if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3642 $as_echo_n "(cached) " >&6 3643else 3644 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3645 # We make a subdir and do the tests there. Otherwise we can end up 3646 # making bogus files that we don't know about and never remove. For 3647 # instance it was reported that on HP-UX the gcc test will end up 3648 # making a dummy file named 'D' -- because '-MD' means "put the output 3649 # in D". 3650 rm -rf conftest.dir 3651 mkdir conftest.dir 3652 # Copy depcomp to subdir because otherwise we won't find it if we're 3653 # using a relative directory. 3654 cp "$am_depcomp" conftest.dir 3655 cd conftest.dir 3656 # We will build objects and dependencies in a subdirectory because 3657 # it helps to detect inapplicable dependency modes. For instance 3658 # both Tru64's cc and ICC support -MD to output dependencies as a 3659 # side effect of compilation, but ICC will put the dependencies in 3660 # the current directory while Tru64 will put them in the object 3661 # directory. 3662 mkdir sub 3663 3664 am_cv_CC_dependencies_compiler_type=none 3665 if test "$am_compiler_list" = ""; then 3666 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3667 fi 3668 am__universal=false 3669 case " $depcc " in #( 3670 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3671 esac 3672 3673 for depmode in $am_compiler_list; do 3674 # Setup a source with many dependencies, because some compilers 3675 # like to wrap large dependency lists on column 80 (with \), and 3676 # we should not choose a depcomp mode which is confused by this. 3677 # 3678 # We need to recreate these files for each test, as the compiler may 3679 # overwrite some of them when testing with obscure command lines. 3680 # This happens at least with the AIX C compiler. 3681 : > sub/conftest.c 3682 for i in 1 2 3 4 5 6; do 3683 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3684 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3685 # Solaris 10 /bin/sh. 3686 echo '/* dummy */' > sub/conftst$i.h 3687 done 3688 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3689 3690 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3691 # mode. It turns out that the SunPro C++ compiler does not properly 3692 # handle '-M -o', and we need to detect this. Also, some Intel 3693 # versions had trouble with output in subdirs. 3694 am__obj=sub/conftest.${OBJEXT-o} 3695 am__minus_obj="-o $am__obj" 3696 case $depmode in 3697 gcc) 3698 # This depmode causes a compiler race in universal mode. 3699 test "$am__universal" = false || continue 3700 ;; 3701 nosideeffect) 3702 # After this tag, mechanisms are not by side-effect, so they'll 3703 # only be used when explicitly requested. 3704 if test "x$enable_dependency_tracking" = xyes; then 3705 continue 3706 else 3707 break 3708 fi 3709 ;; 3710 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3711 # This compiler won't grok '-c -o', but also, the minuso test has 3712 # not run yet. These depmodes are late enough in the game, and 3713 # so weak that their functioning should not be impacted. 3714 am__obj=conftest.${OBJEXT-o} 3715 am__minus_obj= 3716 ;; 3717 none) break ;; 3718 esac 3719 if depmode=$depmode \ 3720 source=sub/conftest.c object=$am__obj \ 3721 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3722 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3723 >/dev/null 2>conftest.err && 3724 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3725 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3726 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3727 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3728 # icc doesn't choke on unknown options, it will just issue warnings 3729 # or remarks (even with -Werror). So we grep stderr for any message 3730 # that says an option was ignored or not supported. 3731 # When given -MP, icc 7.0 and 7.1 complain thusly: 3732 # icc: Command line warning: ignoring option '-M'; no argument required 3733 # The diagnosis changed in icc 8.0: 3734 # icc: Command line remark: option '-MP' not supported 3735 if (grep 'ignoring option' conftest.err || 3736 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3737 am_cv_CC_dependencies_compiler_type=$depmode 3738 break 3739 fi 3740 fi 3741 done 3742 3743 cd .. 3744 rm -rf conftest.dir 3745else 3746 am_cv_CC_dependencies_compiler_type=none 3747fi 3748 3749fi 3750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3751$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3752CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3753 3754 if 3755 test "x$enable_dependency_tracking" != xno \ 3756 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3757 am__fastdepCC_TRUE= 3758 am__fastdepCC_FALSE='#' 3759else 3760 am__fastdepCC_TRUE='#' 3761 am__fastdepCC_FALSE= 3762fi 3763 3764 3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3766$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3767if ${ac_cv_prog_cc_c99+:} false; then : 3768 $as_echo_n "(cached) " >&6 3769else 3770 ac_cv_prog_cc_c99=no 3771ac_save_CC=$CC 3772cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3773/* end confdefs.h. */ 3774#include <stdarg.h> 3775#include <stdbool.h> 3776#include <stdlib.h> 3777#include <wchar.h> 3778#include <stdio.h> 3779 3780// Check varargs macros. These examples are taken from C99 6.10.3.5. 3781#define debug(...) fprintf (stderr, __VA_ARGS__) 3782#define showlist(...) puts (#__VA_ARGS__) 3783#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3784static void 3785test_varargs_macros (void) 3786{ 3787 int x = 1234; 3788 int y = 5678; 3789 debug ("Flag"); 3790 debug ("X = %d\n", x); 3791 showlist (The first, second, and third items.); 3792 report (x>y, "x is %d but y is %d", x, y); 3793} 3794 3795// Check long long types. 3796#define BIG64 18446744073709551615ull 3797#define BIG32 4294967295ul 3798#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3799#if !BIG_OK 3800 your preprocessor is broken; 3801#endif 3802#if BIG_OK 3803#else 3804 your preprocessor is broken; 3805#endif 3806static long long int bignum = -9223372036854775807LL; 3807static unsigned long long int ubignum = BIG64; 3808 3809struct incomplete_array 3810{ 3811 int datasize; 3812 double data[]; 3813}; 3814 3815struct named_init { 3816 int number; 3817 const wchar_t *name; 3818 double average; 3819}; 3820 3821typedef const char *ccp; 3822 3823static inline int 3824test_restrict (ccp restrict text) 3825{ 3826 // See if C++-style comments work. 3827 // Iterate through items via the restricted pointer. 3828 // Also check for declarations in for loops. 3829 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3830 continue; 3831 return 0; 3832} 3833 3834// Check varargs and va_copy. 3835static void 3836test_varargs (const char *format, ...) 3837{ 3838 va_list args; 3839 va_start (args, format); 3840 va_list args_copy; 3841 va_copy (args_copy, args); 3842 3843 const char *str; 3844 int number; 3845 float fnumber; 3846 3847 while (*format) 3848 { 3849 switch (*format++) 3850 { 3851 case 's': // string 3852 str = va_arg (args_copy, const char *); 3853 break; 3854 case 'd': // int 3855 number = va_arg (args_copy, int); 3856 break; 3857 case 'f': // float 3858 fnumber = va_arg (args_copy, double); 3859 break; 3860 default: 3861 break; 3862 } 3863 } 3864 va_end (args_copy); 3865 va_end (args); 3866} 3867 3868int 3869main () 3870{ 3871 3872 // Check bool. 3873 _Bool success = false; 3874 3875 // Check restrict. 3876 if (test_restrict ("String literal") == 0) 3877 success = true; 3878 char *restrict newvar = "Another string"; 3879 3880 // Check varargs. 3881 test_varargs ("s, d' f .", "string", 65, 34.234); 3882 test_varargs_macros (); 3883 3884 // Check flexible array members. 3885 struct incomplete_array *ia = 3886 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3887 ia->datasize = 10; 3888 for (int i = 0; i < ia->datasize; ++i) 3889 ia->data[i] = i * 1.234; 3890 3891 // Check named initializers. 3892 struct named_init ni = { 3893 .number = 34, 3894 .name = L"Test wide string", 3895 .average = 543.34343, 3896 }; 3897 3898 ni.number = 58; 3899 3900 int dynamic_array[ni.number]; 3901 dynamic_array[ni.number - 1] = 543; 3902 3903 // work around unused variable warnings 3904 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3905 || dynamic_array[ni.number - 1] != 543); 3906 3907 ; 3908 return 0; 3909} 3910_ACEOF 3911for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3912do 3913 CC="$ac_save_CC $ac_arg" 3914 if ac_fn_c_try_compile "$LINENO"; then : 3915 ac_cv_prog_cc_c99=$ac_arg 3916fi 3917rm -f core conftest.err conftest.$ac_objext 3918 test "x$ac_cv_prog_cc_c99" != "xno" && break 3919done 3920rm -f conftest.$ac_ext 3921CC=$ac_save_CC 3922 3923fi 3924# AC_CACHE_VAL 3925case "x$ac_cv_prog_cc_c99" in 3926 x) 3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3928$as_echo "none needed" >&6; } ;; 3929 xno) 3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3931$as_echo "unsupported" >&6; } ;; 3932 *) 3933 CC="$CC $ac_cv_prog_cc_c99" 3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3935$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3936esac 3937if test "x$ac_cv_prog_cc_c99" != xno; then : 3938 3939fi 3940 3941 3942 3943ac_ext=c 3944ac_cpp='$CPP $CPPFLAGS' 3945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3947ac_compiler_gnu=$ac_cv_c_compiler_gnu 3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3949$as_echo_n "checking how to run the C preprocessor... " >&6; } 3950# On Suns, sometimes $CPP names a directory. 3951if test -n "$CPP" && test -d "$CPP"; then 3952 CPP= 3953fi 3954if test -z "$CPP"; then 3955 if ${ac_cv_prog_CPP+:} false; then : 3956 $as_echo_n "(cached) " >&6 3957else 3958 # Double quotes because CPP needs to be expanded 3959 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3960 do 3961 ac_preproc_ok=false 3962for ac_c_preproc_warn_flag in '' yes 3963do 3964 # Use a header file that comes with gcc, so configuring glibc 3965 # with a fresh cross-compiler works. 3966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3967 # <limits.h> exists even on freestanding compilers. 3968 # On the NeXT, cc -E runs the code through the compiler's parser, 3969 # not just through cpp. "Syntax error" is here to catch this case. 3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3971/* end confdefs.h. */ 3972#ifdef __STDC__ 3973# include <limits.h> 3974#else 3975# include <assert.h> 3976#endif 3977 Syntax error 3978_ACEOF 3979if ac_fn_c_try_cpp "$LINENO"; then : 3980 3981else 3982 # Broken: fails on valid input. 3983continue 3984fi 3985rm -f conftest.err conftest.i conftest.$ac_ext 3986 3987 # OK, works on sane cases. Now check whether nonexistent headers 3988 # can be detected and how. 3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3990/* end confdefs.h. */ 3991#include <ac_nonexistent.h> 3992_ACEOF 3993if ac_fn_c_try_cpp "$LINENO"; then : 3994 # Broken: success on invalid input. 3995continue 3996else 3997 # Passes both tests. 3998ac_preproc_ok=: 3999break 4000fi 4001rm -f conftest.err conftest.i conftest.$ac_ext 4002 4003done 4004# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4005rm -f conftest.i conftest.err conftest.$ac_ext 4006if $ac_preproc_ok; then : 4007 break 4008fi 4009 4010 done 4011 ac_cv_prog_CPP=$CPP 4012 4013fi 4014 CPP=$ac_cv_prog_CPP 4015else 4016 ac_cv_prog_CPP=$CPP 4017fi 4018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4019$as_echo "$CPP" >&6; } 4020ac_preproc_ok=false 4021for ac_c_preproc_warn_flag in '' yes 4022do 4023 # Use a header file that comes with gcc, so configuring glibc 4024 # with a fresh cross-compiler works. 4025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4026 # <limits.h> exists even on freestanding compilers. 4027 # On the NeXT, cc -E runs the code through the compiler's parser, 4028 # not just through cpp. "Syntax error" is here to catch this case. 4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4030/* end confdefs.h. */ 4031#ifdef __STDC__ 4032# include <limits.h> 4033#else 4034# include <assert.h> 4035#endif 4036 Syntax error 4037_ACEOF 4038if ac_fn_c_try_cpp "$LINENO"; then : 4039 4040else 4041 # Broken: fails on valid input. 4042continue 4043fi 4044rm -f conftest.err conftest.i conftest.$ac_ext 4045 4046 # OK, works on sane cases. Now check whether nonexistent headers 4047 # can be detected and how. 4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4049/* end confdefs.h. */ 4050#include <ac_nonexistent.h> 4051_ACEOF 4052if ac_fn_c_try_cpp "$LINENO"; then : 4053 # Broken: success on invalid input. 4054continue 4055else 4056 # Passes both tests. 4057ac_preproc_ok=: 4058break 4059fi 4060rm -f conftest.err conftest.i conftest.$ac_ext 4061 4062done 4063# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4064rm -f conftest.i conftest.err conftest.$ac_ext 4065if $ac_preproc_ok; then : 4066 4067else 4068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4069$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4070as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4071See \`config.log' for more details" "$LINENO" 5; } 4072fi 4073 4074ac_ext=c 4075ac_cpp='$CPP $CPPFLAGS' 4076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4078ac_compiler_gnu=$ac_cv_c_compiler_gnu 4079 4080 4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4082$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4083if ${ac_cv_path_GREP+:} false; then : 4084 $as_echo_n "(cached) " >&6 4085else 4086 if test -z "$GREP"; then 4087 ac_path_GREP_found=false 4088 # Loop through the user's path and test for each of PROGNAME-LIST 4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4090for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4091do 4092 IFS=$as_save_IFS 4093 test -z "$as_dir" && as_dir=. 4094 for ac_prog in grep ggrep; do 4095 for ac_exec_ext in '' $ac_executable_extensions; do 4096 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4097 as_fn_executable_p "$ac_path_GREP" || continue 4098# Check for GNU ac_path_GREP and select it if it is found. 4099 # Check for GNU $ac_path_GREP 4100case `"$ac_path_GREP" --version 2>&1` in 4101*GNU*) 4102 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4103*) 4104 ac_count=0 4105 $as_echo_n 0123456789 >"conftest.in" 4106 while : 4107 do 4108 cat "conftest.in" "conftest.in" >"conftest.tmp" 4109 mv "conftest.tmp" "conftest.in" 4110 cp "conftest.in" "conftest.nl" 4111 $as_echo 'GREP' >> "conftest.nl" 4112 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4113 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4114 as_fn_arith $ac_count + 1 && ac_count=$as_val 4115 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4116 # Best one so far, save it but keep looking for a better one 4117 ac_cv_path_GREP="$ac_path_GREP" 4118 ac_path_GREP_max=$ac_count 4119 fi 4120 # 10*(2^10) chars as input seems more than enough 4121 test $ac_count -gt 10 && break 4122 done 4123 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4124esac 4125 4126 $ac_path_GREP_found && break 3 4127 done 4128 done 4129 done 4130IFS=$as_save_IFS 4131 if test -z "$ac_cv_path_GREP"; then 4132 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4133 fi 4134else 4135 ac_cv_path_GREP=$GREP 4136fi 4137 4138fi 4139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4140$as_echo "$ac_cv_path_GREP" >&6; } 4141 GREP="$ac_cv_path_GREP" 4142 4143 4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4145$as_echo_n "checking for egrep... " >&6; } 4146if ${ac_cv_path_EGREP+:} false; then : 4147 $as_echo_n "(cached) " >&6 4148else 4149 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4150 then ac_cv_path_EGREP="$GREP -E" 4151 else 4152 if test -z "$EGREP"; then 4153 ac_path_EGREP_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 egrep; do 4161 for ac_exec_ext in '' $ac_executable_extensions; do 4162 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4163 as_fn_executable_p "$ac_path_EGREP" || continue 4164# Check for GNU ac_path_EGREP and select it if it is found. 4165 # Check for GNU $ac_path_EGREP 4166case `"$ac_path_EGREP" --version 2>&1` in 4167*GNU*) 4168 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_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 'EGREP' >> "conftest.nl" 4178 "$ac_path_EGREP" 'EGREP$' < "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_EGREP_max-0}; then 4182 # Best one so far, save it but keep looking for a better one 4183 ac_cv_path_EGREP="$ac_path_EGREP" 4184 ac_path_EGREP_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_EGREP_found && break 3 4193 done 4194 done 4195 done 4196IFS=$as_save_IFS 4197 if test -z "$ac_cv_path_EGREP"; then 4198 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4199 fi 4200else 4201 ac_cv_path_EGREP=$EGREP 4202fi 4203 4204 fi 4205fi 4206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4207$as_echo "$ac_cv_path_EGREP" >&6; } 4208 EGREP="$ac_cv_path_EGREP" 4209 4210 4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4212$as_echo_n "checking for ANSI C header files... " >&6; } 4213if ${ac_cv_header_stdc+:} false; then : 4214 $as_echo_n "(cached) " >&6 4215else 4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4217/* end confdefs.h. */ 4218#include <stdlib.h> 4219#include <stdarg.h> 4220#include <string.h> 4221#include <float.h> 4222 4223int 4224main () 4225{ 4226 4227 ; 4228 return 0; 4229} 4230_ACEOF 4231if ac_fn_c_try_compile "$LINENO"; then : 4232 ac_cv_header_stdc=yes 4233else 4234 ac_cv_header_stdc=no 4235fi 4236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4237 4238if test $ac_cv_header_stdc = yes; then 4239 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4241/* end confdefs.h. */ 4242#include <string.h> 4243 4244_ACEOF 4245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4246 $EGREP "memchr" >/dev/null 2>&1; then : 4247 4248else 4249 ac_cv_header_stdc=no 4250fi 4251rm -f conftest* 4252 4253fi 4254 4255if test $ac_cv_header_stdc = yes; then 4256 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4258/* end confdefs.h. */ 4259#include <stdlib.h> 4260 4261_ACEOF 4262if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4263 $EGREP "free" >/dev/null 2>&1; then : 4264 4265else 4266 ac_cv_header_stdc=no 4267fi 4268rm -f conftest* 4269 4270fi 4271 4272if test $ac_cv_header_stdc = yes; then 4273 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4274 if test "$cross_compiling" = yes; then : 4275 : 4276else 4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4278/* end confdefs.h. */ 4279#include <ctype.h> 4280#include <stdlib.h> 4281#if ((' ' & 0x0FF) == 0x020) 4282# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4283# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4284#else 4285# define ISLOWER(c) \ 4286 (('a' <= (c) && (c) <= 'i') \ 4287 || ('j' <= (c) && (c) <= 'r') \ 4288 || ('s' <= (c) && (c) <= 'z')) 4289# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4290#endif 4291 4292#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4293int 4294main () 4295{ 4296 int i; 4297 for (i = 0; i < 256; i++) 4298 if (XOR (islower (i), ISLOWER (i)) 4299 || toupper (i) != TOUPPER (i)) 4300 return 2; 4301 return 0; 4302} 4303_ACEOF 4304if ac_fn_c_try_run "$LINENO"; then : 4305 4306else 4307 ac_cv_header_stdc=no 4308fi 4309rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4310 conftest.$ac_objext conftest.beam conftest.$ac_ext 4311fi 4312 4313fi 4314fi 4315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4316$as_echo "$ac_cv_header_stdc" >&6; } 4317if test $ac_cv_header_stdc = yes; then 4318 4319$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4320 4321fi 4322 4323# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4324for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4325 inttypes.h stdint.h unistd.h 4326do : 4327 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4328ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4329" 4330if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4331 cat >>confdefs.h <<_ACEOF 4332#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4333_ACEOF 4334 4335fi 4336 4337done 4338 4339 4340 4341 4342 4343 4344ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4345if test "x$ac_cv_have_decl___clang__" = xyes; then : 4346 CLANGCC="yes" 4347else 4348 CLANGCC="no" 4349fi 4350 4351ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4352if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4353 INTELCC="yes" 4354else 4355 INTELCC="no" 4356fi 4357 4358ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4359if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4360 SUNCC="yes" 4361else 4362 SUNCC="no" 4363fi 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4374 if test -n "$ac_tool_prefix"; then 4375 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4376set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4378$as_echo_n "checking for $ac_word... " >&6; } 4379if ${ac_cv_path_PKG_CONFIG+:} false; then : 4380 $as_echo_n "(cached) " >&6 4381else 4382 case $PKG_CONFIG in 4383 [\\/]* | ?:[\\/]*) 4384 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4385 ;; 4386 *) 4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4388for as_dir in $PATH 4389do 4390 IFS=$as_save_IFS 4391 test -z "$as_dir" && as_dir=. 4392 for ac_exec_ext in '' $ac_executable_extensions; do 4393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4394 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4396 break 2 4397 fi 4398done 4399 done 4400IFS=$as_save_IFS 4401 4402 ;; 4403esac 4404fi 4405PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4406if test -n "$PKG_CONFIG"; then 4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4408$as_echo "$PKG_CONFIG" >&6; } 4409else 4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4411$as_echo "no" >&6; } 4412fi 4413 4414 4415fi 4416if test -z "$ac_cv_path_PKG_CONFIG"; then 4417 ac_pt_PKG_CONFIG=$PKG_CONFIG 4418 # Extract the first word of "pkg-config", so it can be a program name with args. 4419set dummy pkg-config; ac_word=$2 4420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4421$as_echo_n "checking for $ac_word... " >&6; } 4422if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4423 $as_echo_n "(cached) " >&6 4424else 4425 case $ac_pt_PKG_CONFIG in 4426 [\\/]* | ?:[\\/]*) 4427 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4428 ;; 4429 *) 4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4431for as_dir in $PATH 4432do 4433 IFS=$as_save_IFS 4434 test -z "$as_dir" && as_dir=. 4435 for ac_exec_ext in '' $ac_executable_extensions; do 4436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4437 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4439 break 2 4440 fi 4441done 4442 done 4443IFS=$as_save_IFS 4444 4445 ;; 4446esac 4447fi 4448ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4449if test -n "$ac_pt_PKG_CONFIG"; then 4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4451$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4452else 4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4454$as_echo "no" >&6; } 4455fi 4456 4457 if test "x$ac_pt_PKG_CONFIG" = x; then 4458 PKG_CONFIG="" 4459 else 4460 case $cross_compiling:$ac_tool_warned in 4461yes:) 4462{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4463$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4464ac_tool_warned=yes ;; 4465esac 4466 PKG_CONFIG=$ac_pt_PKG_CONFIG 4467 fi 4468else 4469 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4470fi 4471 4472fi 4473if test -n "$PKG_CONFIG"; then 4474 _pkg_min_version=0.9.0 4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4476$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4477 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4479$as_echo "yes" >&6; } 4480 else 4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4482$as_echo "no" >&6; } 4483 PKG_CONFIG="" 4484 fi 4485fi 4486# Make sure we can run config.sub. 4487$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4488 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4489 4490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4491$as_echo_n "checking build system type... " >&6; } 4492if ${ac_cv_build+:} false; then : 4493 $as_echo_n "(cached) " >&6 4494else 4495 ac_build_alias=$build_alias 4496test "x$ac_build_alias" = x && 4497 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4498test "x$ac_build_alias" = x && 4499 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4500ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4501 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4502 4503fi 4504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4505$as_echo "$ac_cv_build" >&6; } 4506case $ac_cv_build in 4507*-*-*) ;; 4508*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4509esac 4510build=$ac_cv_build 4511ac_save_IFS=$IFS; IFS='-' 4512set x $ac_cv_build 4513shift 4514build_cpu=$1 4515build_vendor=$2 4516shift; shift 4517# Remember, the first character of IFS is used to create $*, 4518# except with old shells: 4519build_os=$* 4520IFS=$ac_save_IFS 4521case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4522 4523 4524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4525$as_echo_n "checking host system type... " >&6; } 4526if ${ac_cv_host+:} false; then : 4527 $as_echo_n "(cached) " >&6 4528else 4529 if test "x$host_alias" = x; then 4530 ac_cv_host=$ac_cv_build 4531else 4532 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4533 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4534fi 4535 4536fi 4537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4538$as_echo "$ac_cv_host" >&6; } 4539case $ac_cv_host in 4540*-*-*) ;; 4541*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4542esac 4543host=$ac_cv_host 4544ac_save_IFS=$IFS; IFS='-' 4545set x $ac_cv_host 4546shift 4547host_cpu=$1 4548host_vendor=$2 4549shift; shift 4550# Remember, the first character of IFS is used to create $*, 4551# except with old shells: 4552host_os=$* 4553IFS=$ac_save_IFS 4554case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4555 4556 4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4558$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4559if ${ac_cv_path_SED+:} false; then : 4560 $as_echo_n "(cached) " >&6 4561else 4562 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4563 for ac_i in 1 2 3 4 5 6 7; do 4564 ac_script="$ac_script$as_nl$ac_script" 4565 done 4566 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4567 { ac_script=; unset ac_script;} 4568 if test -z "$SED"; then 4569 ac_path_SED_found=false 4570 # Loop through the user's path and test for each of PROGNAME-LIST 4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4572for as_dir in $PATH 4573do 4574 IFS=$as_save_IFS 4575 test -z "$as_dir" && as_dir=. 4576 for ac_prog in sed gsed; do 4577 for ac_exec_ext in '' $ac_executable_extensions; do 4578 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4579 as_fn_executable_p "$ac_path_SED" || continue 4580# Check for GNU ac_path_SED and select it if it is found. 4581 # Check for GNU $ac_path_SED 4582case `"$ac_path_SED" --version 2>&1` in 4583*GNU*) 4584 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4585*) 4586 ac_count=0 4587 $as_echo_n 0123456789 >"conftest.in" 4588 while : 4589 do 4590 cat "conftest.in" "conftest.in" >"conftest.tmp" 4591 mv "conftest.tmp" "conftest.in" 4592 cp "conftest.in" "conftest.nl" 4593 $as_echo '' >> "conftest.nl" 4594 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4595 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4596 as_fn_arith $ac_count + 1 && ac_count=$as_val 4597 if test $ac_count -gt ${ac_path_SED_max-0}; then 4598 # Best one so far, save it but keep looking for a better one 4599 ac_cv_path_SED="$ac_path_SED" 4600 ac_path_SED_max=$ac_count 4601 fi 4602 # 10*(2^10) chars as input seems more than enough 4603 test $ac_count -gt 10 && break 4604 done 4605 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4606esac 4607 4608 $ac_path_SED_found && break 3 4609 done 4610 done 4611 done 4612IFS=$as_save_IFS 4613 if test -z "$ac_cv_path_SED"; then 4614 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4615 fi 4616else 4617 ac_cv_path_SED=$SED 4618fi 4619 4620fi 4621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4622$as_echo "$ac_cv_path_SED" >&6; } 4623 SED="$ac_cv_path_SED" 4624 rm -f conftest.sed 4625 4626 4627 4628 4629 4630 4631# Check whether --enable-selective-werror was given. 4632if test "${enable_selective_werror+set}" = set; then : 4633 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4634else 4635 SELECTIVE_WERROR=yes 4636fi 4637 4638 4639 4640 4641 4642# -v is too short to test reliably with XORG_TESTSET_CFLAG 4643if test "x$SUNCC" = "xyes"; then 4644 BASE_CFLAGS="-v" 4645else 4646 BASE_CFLAGS="" 4647fi 4648 4649# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663xorg_testset_save_CFLAGS="$CFLAGS" 4664 4665if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4668$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4669if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4670 $as_echo_n "(cached) " >&6 4671else 4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4673/* end confdefs.h. */ 4674int i; 4675_ACEOF 4676if ac_fn_c_try_compile "$LINENO"; then : 4677 xorg_cv_cc_flag_unknown_warning_option=yes 4678else 4679 xorg_cv_cc_flag_unknown_warning_option=no 4680fi 4681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4682fi 4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4684$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4685 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4686 CFLAGS="$xorg_testset_save_CFLAGS" 4687fi 4688 4689if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4692 fi 4693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4695$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4696if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4697 $as_echo_n "(cached) " >&6 4698else 4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4700/* end confdefs.h. */ 4701int i; 4702_ACEOF 4703if ac_fn_c_try_compile "$LINENO"; then : 4704 xorg_cv_cc_flag_unused_command_line_argument=yes 4705else 4706 xorg_cv_cc_flag_unused_command_line_argument=no 4707fi 4708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4709fi 4710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4711$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4712 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4713 CFLAGS="$xorg_testset_save_CFLAGS" 4714fi 4715 4716found="no" 4717 4718 if test $found = "no" ; then 4719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4721 fi 4722 4723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4725 fi 4726 4727 CFLAGS="$CFLAGS -Wall" 4728 4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4730$as_echo_n "checking if $CC supports -Wall... " >&6; } 4731 cacheid=xorg_cv_cc_flag__Wall 4732 if eval \${$cacheid+:} false; then : 4733 $as_echo_n "(cached) " >&6 4734else 4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4736/* end confdefs.h. */ 4737int i; 4738int 4739main () 4740{ 4741 4742 ; 4743 return 0; 4744} 4745_ACEOF 4746if ac_fn_c_try_link "$LINENO"; then : 4747 eval $cacheid=yes 4748else 4749 eval $cacheid=no 4750fi 4751rm -f core conftest.err conftest.$ac_objext \ 4752 conftest$ac_exeext conftest.$ac_ext 4753fi 4754 4755 4756 CFLAGS="$xorg_testset_save_CFLAGS" 4757 4758 eval supported=\$$cacheid 4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4760$as_echo "$supported" >&6; } 4761 if test "$supported" = "yes" ; then 4762 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4763 found="yes" 4764 fi 4765 fi 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781xorg_testset_save_CFLAGS="$CFLAGS" 4782 4783if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4786$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4787if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4788 $as_echo_n "(cached) " >&6 4789else 4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4791/* end confdefs.h. */ 4792int i; 4793_ACEOF 4794if ac_fn_c_try_compile "$LINENO"; then : 4795 xorg_cv_cc_flag_unknown_warning_option=yes 4796else 4797 xorg_cv_cc_flag_unknown_warning_option=no 4798fi 4799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4800fi 4801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4802$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4803 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4804 CFLAGS="$xorg_testset_save_CFLAGS" 4805fi 4806 4807if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4810 fi 4811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4813$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4814if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4815 $as_echo_n "(cached) " >&6 4816else 4817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4818/* end confdefs.h. */ 4819int i; 4820_ACEOF 4821if ac_fn_c_try_compile "$LINENO"; then : 4822 xorg_cv_cc_flag_unused_command_line_argument=yes 4823else 4824 xorg_cv_cc_flag_unused_command_line_argument=no 4825fi 4826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4827fi 4828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4829$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4830 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4831 CFLAGS="$xorg_testset_save_CFLAGS" 4832fi 4833 4834found="no" 4835 4836 if test $found = "no" ; then 4837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4839 fi 4840 4841 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4843 fi 4844 4845 CFLAGS="$CFLAGS -Wpointer-arith" 4846 4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4848$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4849 cacheid=xorg_cv_cc_flag__Wpointer_arith 4850 if eval \${$cacheid+:} false; then : 4851 $as_echo_n "(cached) " >&6 4852else 4853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4854/* end confdefs.h. */ 4855int i; 4856int 4857main () 4858{ 4859 4860 ; 4861 return 0; 4862} 4863_ACEOF 4864if ac_fn_c_try_link "$LINENO"; then : 4865 eval $cacheid=yes 4866else 4867 eval $cacheid=no 4868fi 4869rm -f core conftest.err conftest.$ac_objext \ 4870 conftest$ac_exeext conftest.$ac_ext 4871fi 4872 4873 4874 CFLAGS="$xorg_testset_save_CFLAGS" 4875 4876 eval supported=\$$cacheid 4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4878$as_echo "$supported" >&6; } 4879 if test "$supported" = "yes" ; then 4880 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4881 found="yes" 4882 fi 4883 fi 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899xorg_testset_save_CFLAGS="$CFLAGS" 4900 4901if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4904$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4905if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4906 $as_echo_n "(cached) " >&6 4907else 4908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4909/* end confdefs.h. */ 4910int i; 4911_ACEOF 4912if ac_fn_c_try_compile "$LINENO"; then : 4913 xorg_cv_cc_flag_unknown_warning_option=yes 4914else 4915 xorg_cv_cc_flag_unknown_warning_option=no 4916fi 4917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4918fi 4919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4920$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4922 CFLAGS="$xorg_testset_save_CFLAGS" 4923fi 4924 4925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4928 fi 4929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4931$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4932if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4933 $as_echo_n "(cached) " >&6 4934else 4935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4936/* end confdefs.h. */ 4937int i; 4938_ACEOF 4939if ac_fn_c_try_compile "$LINENO"; then : 4940 xorg_cv_cc_flag_unused_command_line_argument=yes 4941else 4942 xorg_cv_cc_flag_unused_command_line_argument=no 4943fi 4944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4945fi 4946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4947$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4948 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4949 CFLAGS="$xorg_testset_save_CFLAGS" 4950fi 4951 4952found="no" 4953 4954 if test $found = "no" ; then 4955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4957 fi 4958 4959 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4961 fi 4962 4963 CFLAGS="$CFLAGS -Wmissing-declarations" 4964 4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4966$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4967 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4968 if eval \${$cacheid+:} false; then : 4969 $as_echo_n "(cached) " >&6 4970else 4971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4972/* end confdefs.h. */ 4973int i; 4974int 4975main () 4976{ 4977 4978 ; 4979 return 0; 4980} 4981_ACEOF 4982if ac_fn_c_try_link "$LINENO"; then : 4983 eval $cacheid=yes 4984else 4985 eval $cacheid=no 4986fi 4987rm -f core conftest.err conftest.$ac_objext \ 4988 conftest$ac_exeext conftest.$ac_ext 4989fi 4990 4991 4992 CFLAGS="$xorg_testset_save_CFLAGS" 4993 4994 eval supported=\$$cacheid 4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4996$as_echo "$supported" >&6; } 4997 if test "$supported" = "yes" ; then 4998 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4999 found="yes" 5000 fi 5001 fi 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017xorg_testset_save_CFLAGS="$CFLAGS" 5018 5019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5022$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5023if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5024 $as_echo_n "(cached) " >&6 5025else 5026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5027/* end confdefs.h. */ 5028int i; 5029_ACEOF 5030if ac_fn_c_try_compile "$LINENO"; then : 5031 xorg_cv_cc_flag_unknown_warning_option=yes 5032else 5033 xorg_cv_cc_flag_unknown_warning_option=no 5034fi 5035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5036fi 5037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5038$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5040 CFLAGS="$xorg_testset_save_CFLAGS" 5041fi 5042 5043if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5046 fi 5047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5049$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5050if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5051 $as_echo_n "(cached) " >&6 5052else 5053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5054/* end confdefs.h. */ 5055int i; 5056_ACEOF 5057if ac_fn_c_try_compile "$LINENO"; then : 5058 xorg_cv_cc_flag_unused_command_line_argument=yes 5059else 5060 xorg_cv_cc_flag_unused_command_line_argument=no 5061fi 5062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5063fi 5064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5065$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5066 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5067 CFLAGS="$xorg_testset_save_CFLAGS" 5068fi 5069 5070found="no" 5071 5072 if test $found = "no" ; then 5073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5075 fi 5076 5077 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5079 fi 5080 5081 CFLAGS="$CFLAGS -Wformat=2" 5082 5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5084$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5085 cacheid=xorg_cv_cc_flag__Wformat_2 5086 if eval \${$cacheid+:} false; then : 5087 $as_echo_n "(cached) " >&6 5088else 5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5090/* end confdefs.h. */ 5091int i; 5092int 5093main () 5094{ 5095 5096 ; 5097 return 0; 5098} 5099_ACEOF 5100if ac_fn_c_try_link "$LINENO"; then : 5101 eval $cacheid=yes 5102else 5103 eval $cacheid=no 5104fi 5105rm -f core conftest.err conftest.$ac_objext \ 5106 conftest$ac_exeext conftest.$ac_ext 5107fi 5108 5109 5110 CFLAGS="$xorg_testset_save_CFLAGS" 5111 5112 eval supported=\$$cacheid 5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5114$as_echo "$supported" >&6; } 5115 if test "$supported" = "yes" ; then 5116 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5117 found="yes" 5118 fi 5119 fi 5120 5121 if test $found = "no" ; then 5122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5124 fi 5125 5126 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5128 fi 5129 5130 CFLAGS="$CFLAGS -Wformat" 5131 5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5133$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5134 cacheid=xorg_cv_cc_flag__Wformat 5135 if eval \${$cacheid+:} false; then : 5136 $as_echo_n "(cached) " >&6 5137else 5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5139/* end confdefs.h. */ 5140int i; 5141int 5142main () 5143{ 5144 5145 ; 5146 return 0; 5147} 5148_ACEOF 5149if ac_fn_c_try_link "$LINENO"; then : 5150 eval $cacheid=yes 5151else 5152 eval $cacheid=no 5153fi 5154rm -f core conftest.err conftest.$ac_objext \ 5155 conftest$ac_exeext conftest.$ac_ext 5156fi 5157 5158 5159 CFLAGS="$xorg_testset_save_CFLAGS" 5160 5161 eval supported=\$$cacheid 5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5163$as_echo "$supported" >&6; } 5164 if test "$supported" = "yes" ; then 5165 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5166 found="yes" 5167 fi 5168 fi 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186xorg_testset_save_CFLAGS="$CFLAGS" 5187 5188if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5191$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5192if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5193 $as_echo_n "(cached) " >&6 5194else 5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5196/* end confdefs.h. */ 5197int i; 5198_ACEOF 5199if ac_fn_c_try_compile "$LINENO"; then : 5200 xorg_cv_cc_flag_unknown_warning_option=yes 5201else 5202 xorg_cv_cc_flag_unknown_warning_option=no 5203fi 5204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5205fi 5206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5207$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5209 CFLAGS="$xorg_testset_save_CFLAGS" 5210fi 5211 5212if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5215 fi 5216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5218$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5219if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5220 $as_echo_n "(cached) " >&6 5221else 5222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5223/* end confdefs.h. */ 5224int i; 5225_ACEOF 5226if ac_fn_c_try_compile "$LINENO"; then : 5227 xorg_cv_cc_flag_unused_command_line_argument=yes 5228else 5229 xorg_cv_cc_flag_unused_command_line_argument=no 5230fi 5231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5232fi 5233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5234$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5235 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5236 CFLAGS="$xorg_testset_save_CFLAGS" 5237fi 5238 5239found="no" 5240 5241 if test $found = "no" ; then 5242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5244 fi 5245 5246 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5248 fi 5249 5250 CFLAGS="$CFLAGS -Wstrict-prototypes" 5251 5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5253$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5254 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5255 if eval \${$cacheid+:} false; then : 5256 $as_echo_n "(cached) " >&6 5257else 5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5259/* end confdefs.h. */ 5260int i; 5261int 5262main () 5263{ 5264 5265 ; 5266 return 0; 5267} 5268_ACEOF 5269if ac_fn_c_try_link "$LINENO"; then : 5270 eval $cacheid=yes 5271else 5272 eval $cacheid=no 5273fi 5274rm -f core conftest.err conftest.$ac_objext \ 5275 conftest$ac_exeext conftest.$ac_ext 5276fi 5277 5278 5279 CFLAGS="$xorg_testset_save_CFLAGS" 5280 5281 eval supported=\$$cacheid 5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5283$as_echo "$supported" >&6; } 5284 if test "$supported" = "yes" ; then 5285 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5286 found="yes" 5287 fi 5288 fi 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304xorg_testset_save_CFLAGS="$CFLAGS" 5305 5306if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5309$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5310if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5311 $as_echo_n "(cached) " >&6 5312else 5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5314/* end confdefs.h. */ 5315int i; 5316_ACEOF 5317if ac_fn_c_try_compile "$LINENO"; then : 5318 xorg_cv_cc_flag_unknown_warning_option=yes 5319else 5320 xorg_cv_cc_flag_unknown_warning_option=no 5321fi 5322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5323fi 5324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5325$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5326 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5327 CFLAGS="$xorg_testset_save_CFLAGS" 5328fi 5329 5330if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5333 fi 5334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5336$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5337if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5338 $as_echo_n "(cached) " >&6 5339else 5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5341/* end confdefs.h. */ 5342int i; 5343_ACEOF 5344if ac_fn_c_try_compile "$LINENO"; then : 5345 xorg_cv_cc_flag_unused_command_line_argument=yes 5346else 5347 xorg_cv_cc_flag_unused_command_line_argument=no 5348fi 5349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5350fi 5351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5352$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5353 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5354 CFLAGS="$xorg_testset_save_CFLAGS" 5355fi 5356 5357found="no" 5358 5359 if test $found = "no" ; then 5360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5362 fi 5363 5364 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5366 fi 5367 5368 CFLAGS="$CFLAGS -Wmissing-prototypes" 5369 5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5371$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5372 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5373 if eval \${$cacheid+:} false; then : 5374 $as_echo_n "(cached) " >&6 5375else 5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5377/* end confdefs.h. */ 5378int i; 5379int 5380main () 5381{ 5382 5383 ; 5384 return 0; 5385} 5386_ACEOF 5387if ac_fn_c_try_link "$LINENO"; then : 5388 eval $cacheid=yes 5389else 5390 eval $cacheid=no 5391fi 5392rm -f core conftest.err conftest.$ac_objext \ 5393 conftest$ac_exeext conftest.$ac_ext 5394fi 5395 5396 5397 CFLAGS="$xorg_testset_save_CFLAGS" 5398 5399 eval supported=\$$cacheid 5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5401$as_echo "$supported" >&6; } 5402 if test "$supported" = "yes" ; then 5403 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5404 found="yes" 5405 fi 5406 fi 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422xorg_testset_save_CFLAGS="$CFLAGS" 5423 5424if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5427$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5428if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5429 $as_echo_n "(cached) " >&6 5430else 5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5432/* end confdefs.h. */ 5433int i; 5434_ACEOF 5435if ac_fn_c_try_compile "$LINENO"; then : 5436 xorg_cv_cc_flag_unknown_warning_option=yes 5437else 5438 xorg_cv_cc_flag_unknown_warning_option=no 5439fi 5440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5441fi 5442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5443$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5444 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5445 CFLAGS="$xorg_testset_save_CFLAGS" 5446fi 5447 5448if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5451 fi 5452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5454$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5455if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5456 $as_echo_n "(cached) " >&6 5457else 5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5459/* end confdefs.h. */ 5460int i; 5461_ACEOF 5462if ac_fn_c_try_compile "$LINENO"; then : 5463 xorg_cv_cc_flag_unused_command_line_argument=yes 5464else 5465 xorg_cv_cc_flag_unused_command_line_argument=no 5466fi 5467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5468fi 5469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5470$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5471 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5472 CFLAGS="$xorg_testset_save_CFLAGS" 5473fi 5474 5475found="no" 5476 5477 if test $found = "no" ; then 5478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5480 fi 5481 5482 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5484 fi 5485 5486 CFLAGS="$CFLAGS -Wnested-externs" 5487 5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5489$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5490 cacheid=xorg_cv_cc_flag__Wnested_externs 5491 if eval \${$cacheid+:} false; then : 5492 $as_echo_n "(cached) " >&6 5493else 5494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5495/* end confdefs.h. */ 5496int i; 5497int 5498main () 5499{ 5500 5501 ; 5502 return 0; 5503} 5504_ACEOF 5505if ac_fn_c_try_link "$LINENO"; then : 5506 eval $cacheid=yes 5507else 5508 eval $cacheid=no 5509fi 5510rm -f core conftest.err conftest.$ac_objext \ 5511 conftest$ac_exeext conftest.$ac_ext 5512fi 5513 5514 5515 CFLAGS="$xorg_testset_save_CFLAGS" 5516 5517 eval supported=\$$cacheid 5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5519$as_echo "$supported" >&6; } 5520 if test "$supported" = "yes" ; then 5521 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5522 found="yes" 5523 fi 5524 fi 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540xorg_testset_save_CFLAGS="$CFLAGS" 5541 5542if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5545$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5546if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5547 $as_echo_n "(cached) " >&6 5548else 5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5550/* end confdefs.h. */ 5551int i; 5552_ACEOF 5553if ac_fn_c_try_compile "$LINENO"; then : 5554 xorg_cv_cc_flag_unknown_warning_option=yes 5555else 5556 xorg_cv_cc_flag_unknown_warning_option=no 5557fi 5558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5559fi 5560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5561$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5562 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5563 CFLAGS="$xorg_testset_save_CFLAGS" 5564fi 5565 5566if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5569 fi 5570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5572$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5573if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5574 $as_echo_n "(cached) " >&6 5575else 5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5577/* end confdefs.h. */ 5578int i; 5579_ACEOF 5580if ac_fn_c_try_compile "$LINENO"; then : 5581 xorg_cv_cc_flag_unused_command_line_argument=yes 5582else 5583 xorg_cv_cc_flag_unused_command_line_argument=no 5584fi 5585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5586fi 5587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5588$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5589 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5590 CFLAGS="$xorg_testset_save_CFLAGS" 5591fi 5592 5593found="no" 5594 5595 if test $found = "no" ; then 5596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5598 fi 5599 5600 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5602 fi 5603 5604 CFLAGS="$CFLAGS -Wbad-function-cast" 5605 5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5607$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5608 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5609 if eval \${$cacheid+:} false; then : 5610 $as_echo_n "(cached) " >&6 5611else 5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5613/* end confdefs.h. */ 5614int i; 5615int 5616main () 5617{ 5618 5619 ; 5620 return 0; 5621} 5622_ACEOF 5623if ac_fn_c_try_link "$LINENO"; then : 5624 eval $cacheid=yes 5625else 5626 eval $cacheid=no 5627fi 5628rm -f core conftest.err conftest.$ac_objext \ 5629 conftest$ac_exeext conftest.$ac_ext 5630fi 5631 5632 5633 CFLAGS="$xorg_testset_save_CFLAGS" 5634 5635 eval supported=\$$cacheid 5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5637$as_echo "$supported" >&6; } 5638 if test "$supported" = "yes" ; then 5639 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5640 found="yes" 5641 fi 5642 fi 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658xorg_testset_save_CFLAGS="$CFLAGS" 5659 5660if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5663$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5664if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5665 $as_echo_n "(cached) " >&6 5666else 5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5668/* end confdefs.h. */ 5669int i; 5670_ACEOF 5671if ac_fn_c_try_compile "$LINENO"; then : 5672 xorg_cv_cc_flag_unknown_warning_option=yes 5673else 5674 xorg_cv_cc_flag_unknown_warning_option=no 5675fi 5676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5677fi 5678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5679$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5680 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5681 CFLAGS="$xorg_testset_save_CFLAGS" 5682fi 5683 5684if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5687 fi 5688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5690$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5691if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5692 $as_echo_n "(cached) " >&6 5693else 5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5695/* end confdefs.h. */ 5696int i; 5697_ACEOF 5698if ac_fn_c_try_compile "$LINENO"; then : 5699 xorg_cv_cc_flag_unused_command_line_argument=yes 5700else 5701 xorg_cv_cc_flag_unused_command_line_argument=no 5702fi 5703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5704fi 5705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5706$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5707 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5708 CFLAGS="$xorg_testset_save_CFLAGS" 5709fi 5710 5711found="no" 5712 5713 if test $found = "no" ; then 5714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5716 fi 5717 5718 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5720 fi 5721 5722 CFLAGS="$CFLAGS -Wold-style-definition" 5723 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5725$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5726 cacheid=xorg_cv_cc_flag__Wold_style_definition 5727 if eval \${$cacheid+:} false; then : 5728 $as_echo_n "(cached) " >&6 5729else 5730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5731/* end confdefs.h. */ 5732int i; 5733int 5734main () 5735{ 5736 5737 ; 5738 return 0; 5739} 5740_ACEOF 5741if ac_fn_c_try_link "$LINENO"; then : 5742 eval $cacheid=yes 5743else 5744 eval $cacheid=no 5745fi 5746rm -f core conftest.err conftest.$ac_objext \ 5747 conftest$ac_exeext conftest.$ac_ext 5748fi 5749 5750 5751 CFLAGS="$xorg_testset_save_CFLAGS" 5752 5753 eval supported=\$$cacheid 5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5755$as_echo "$supported" >&6; } 5756 if test "$supported" = "yes" ; then 5757 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5758 found="yes" 5759 fi 5760 fi 5761 5762 if test $found = "no" ; then 5763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5765 fi 5766 5767 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5769 fi 5770 5771 CFLAGS="$CFLAGS -fd" 5772 5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5774$as_echo_n "checking if $CC supports -fd... " >&6; } 5775 cacheid=xorg_cv_cc_flag__fd 5776 if eval \${$cacheid+:} false; then : 5777 $as_echo_n "(cached) " >&6 5778else 5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5780/* end confdefs.h. */ 5781int i; 5782int 5783main () 5784{ 5785 5786 ; 5787 return 0; 5788} 5789_ACEOF 5790if ac_fn_c_try_link "$LINENO"; then : 5791 eval $cacheid=yes 5792else 5793 eval $cacheid=no 5794fi 5795rm -f core conftest.err conftest.$ac_objext \ 5796 conftest$ac_exeext conftest.$ac_ext 5797fi 5798 5799 5800 CFLAGS="$xorg_testset_save_CFLAGS" 5801 5802 eval supported=\$$cacheid 5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5804$as_echo "$supported" >&6; } 5805 if test "$supported" = "yes" ; then 5806 BASE_CFLAGS="$BASE_CFLAGS -fd" 5807 found="yes" 5808 fi 5809 fi 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825xorg_testset_save_CFLAGS="$CFLAGS" 5826 5827if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5830$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5831if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5832 $as_echo_n "(cached) " >&6 5833else 5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5835/* end confdefs.h. */ 5836int i; 5837_ACEOF 5838if ac_fn_c_try_compile "$LINENO"; then : 5839 xorg_cv_cc_flag_unknown_warning_option=yes 5840else 5841 xorg_cv_cc_flag_unknown_warning_option=no 5842fi 5843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5844fi 5845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5846$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5848 CFLAGS="$xorg_testset_save_CFLAGS" 5849fi 5850 5851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5854 fi 5855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5857$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5858if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5859 $as_echo_n "(cached) " >&6 5860else 5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5862/* end confdefs.h. */ 5863int i; 5864_ACEOF 5865if ac_fn_c_try_compile "$LINENO"; then : 5866 xorg_cv_cc_flag_unused_command_line_argument=yes 5867else 5868 xorg_cv_cc_flag_unused_command_line_argument=no 5869fi 5870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5871fi 5872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5873$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5874 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5875 CFLAGS="$xorg_testset_save_CFLAGS" 5876fi 5877 5878found="no" 5879 5880 if test $found = "no" ; then 5881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5883 fi 5884 5885 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5887 fi 5888 5889 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5890 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5892$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5893 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5894 if eval \${$cacheid+:} false; then : 5895 $as_echo_n "(cached) " >&6 5896else 5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5898/* end confdefs.h. */ 5899int i; 5900int 5901main () 5902{ 5903 5904 ; 5905 return 0; 5906} 5907_ACEOF 5908if ac_fn_c_try_link "$LINENO"; then : 5909 eval $cacheid=yes 5910else 5911 eval $cacheid=no 5912fi 5913rm -f core conftest.err conftest.$ac_objext \ 5914 conftest$ac_exeext conftest.$ac_ext 5915fi 5916 5917 5918 CFLAGS="$xorg_testset_save_CFLAGS" 5919 5920 eval supported=\$$cacheid 5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5922$as_echo "$supported" >&6; } 5923 if test "$supported" = "yes" ; then 5924 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5925 found="yes" 5926 fi 5927 fi 5928 5929 5930 5931 5932 5933# This chunk adds additional warnings that could catch undesired effects. 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947xorg_testset_save_CFLAGS="$CFLAGS" 5948 5949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5952$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5953if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5954 $as_echo_n "(cached) " >&6 5955else 5956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5957/* end confdefs.h. */ 5958int i; 5959_ACEOF 5960if ac_fn_c_try_compile "$LINENO"; then : 5961 xorg_cv_cc_flag_unknown_warning_option=yes 5962else 5963 xorg_cv_cc_flag_unknown_warning_option=no 5964fi 5965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5966fi 5967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5968$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5970 CFLAGS="$xorg_testset_save_CFLAGS" 5971fi 5972 5973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5976 fi 5977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5979$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5980if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5981 $as_echo_n "(cached) " >&6 5982else 5983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5984/* end confdefs.h. */ 5985int i; 5986_ACEOF 5987if ac_fn_c_try_compile "$LINENO"; then : 5988 xorg_cv_cc_flag_unused_command_line_argument=yes 5989else 5990 xorg_cv_cc_flag_unused_command_line_argument=no 5991fi 5992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5993fi 5994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5995$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5997 CFLAGS="$xorg_testset_save_CFLAGS" 5998fi 5999 6000found="no" 6001 6002 if test $found = "no" ; then 6003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6005 fi 6006 6007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6009 fi 6010 6011 CFLAGS="$CFLAGS -Wunused" 6012 6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6014$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6015 cacheid=xorg_cv_cc_flag__Wunused 6016 if eval \${$cacheid+:} false; then : 6017 $as_echo_n "(cached) " >&6 6018else 6019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6020/* end confdefs.h. */ 6021int i; 6022int 6023main () 6024{ 6025 6026 ; 6027 return 0; 6028} 6029_ACEOF 6030if ac_fn_c_try_link "$LINENO"; then : 6031 eval $cacheid=yes 6032else 6033 eval $cacheid=no 6034fi 6035rm -f core conftest.err conftest.$ac_objext \ 6036 conftest$ac_exeext conftest.$ac_ext 6037fi 6038 6039 6040 CFLAGS="$xorg_testset_save_CFLAGS" 6041 6042 eval supported=\$$cacheid 6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6044$as_echo "$supported" >&6; } 6045 if test "$supported" = "yes" ; then 6046 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6047 found="yes" 6048 fi 6049 fi 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065xorg_testset_save_CFLAGS="$CFLAGS" 6066 6067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6070$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6071if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6072 $as_echo_n "(cached) " >&6 6073else 6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6075/* end confdefs.h. */ 6076int i; 6077_ACEOF 6078if ac_fn_c_try_compile "$LINENO"; then : 6079 xorg_cv_cc_flag_unknown_warning_option=yes 6080else 6081 xorg_cv_cc_flag_unknown_warning_option=no 6082fi 6083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6084fi 6085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6086$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6087 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6088 CFLAGS="$xorg_testset_save_CFLAGS" 6089fi 6090 6091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6094 fi 6095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6097$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6098if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6099 $as_echo_n "(cached) " >&6 6100else 6101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6102/* end confdefs.h. */ 6103int i; 6104_ACEOF 6105if ac_fn_c_try_compile "$LINENO"; then : 6106 xorg_cv_cc_flag_unused_command_line_argument=yes 6107else 6108 xorg_cv_cc_flag_unused_command_line_argument=no 6109fi 6110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6111fi 6112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6113$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6114 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6115 CFLAGS="$xorg_testset_save_CFLAGS" 6116fi 6117 6118found="no" 6119 6120 if test $found = "no" ; then 6121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6123 fi 6124 6125 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6127 fi 6128 6129 CFLAGS="$CFLAGS -Wuninitialized" 6130 6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6132$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6133 cacheid=xorg_cv_cc_flag__Wuninitialized 6134 if eval \${$cacheid+:} false; then : 6135 $as_echo_n "(cached) " >&6 6136else 6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6138/* end confdefs.h. */ 6139int i; 6140int 6141main () 6142{ 6143 6144 ; 6145 return 0; 6146} 6147_ACEOF 6148if ac_fn_c_try_link "$LINENO"; then : 6149 eval $cacheid=yes 6150else 6151 eval $cacheid=no 6152fi 6153rm -f core conftest.err conftest.$ac_objext \ 6154 conftest$ac_exeext conftest.$ac_ext 6155fi 6156 6157 6158 CFLAGS="$xorg_testset_save_CFLAGS" 6159 6160 eval supported=\$$cacheid 6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6162$as_echo "$supported" >&6; } 6163 if test "$supported" = "yes" ; then 6164 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6165 found="yes" 6166 fi 6167 fi 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183xorg_testset_save_CFLAGS="$CFLAGS" 6184 6185if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6188$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6189if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6190 $as_echo_n "(cached) " >&6 6191else 6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6193/* end confdefs.h. */ 6194int i; 6195_ACEOF 6196if ac_fn_c_try_compile "$LINENO"; then : 6197 xorg_cv_cc_flag_unknown_warning_option=yes 6198else 6199 xorg_cv_cc_flag_unknown_warning_option=no 6200fi 6201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6202fi 6203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6204$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6206 CFLAGS="$xorg_testset_save_CFLAGS" 6207fi 6208 6209if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6212 fi 6213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6215$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6216if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6217 $as_echo_n "(cached) " >&6 6218else 6219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6220/* end confdefs.h. */ 6221int i; 6222_ACEOF 6223if ac_fn_c_try_compile "$LINENO"; then : 6224 xorg_cv_cc_flag_unused_command_line_argument=yes 6225else 6226 xorg_cv_cc_flag_unused_command_line_argument=no 6227fi 6228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6229fi 6230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6231$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6232 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6233 CFLAGS="$xorg_testset_save_CFLAGS" 6234fi 6235 6236found="no" 6237 6238 if test $found = "no" ; then 6239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6241 fi 6242 6243 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6245 fi 6246 6247 CFLAGS="$CFLAGS -Wshadow" 6248 6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6250$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6251 cacheid=xorg_cv_cc_flag__Wshadow 6252 if eval \${$cacheid+:} false; then : 6253 $as_echo_n "(cached) " >&6 6254else 6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6256/* end confdefs.h. */ 6257int i; 6258int 6259main () 6260{ 6261 6262 ; 6263 return 0; 6264} 6265_ACEOF 6266if ac_fn_c_try_link "$LINENO"; then : 6267 eval $cacheid=yes 6268else 6269 eval $cacheid=no 6270fi 6271rm -f core conftest.err conftest.$ac_objext \ 6272 conftest$ac_exeext conftest.$ac_ext 6273fi 6274 6275 6276 CFLAGS="$xorg_testset_save_CFLAGS" 6277 6278 eval supported=\$$cacheid 6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6280$as_echo "$supported" >&6; } 6281 if test "$supported" = "yes" ; then 6282 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6283 found="yes" 6284 fi 6285 fi 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301xorg_testset_save_CFLAGS="$CFLAGS" 6302 6303if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6306$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6307if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6308 $as_echo_n "(cached) " >&6 6309else 6310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6311/* end confdefs.h. */ 6312int i; 6313_ACEOF 6314if ac_fn_c_try_compile "$LINENO"; then : 6315 xorg_cv_cc_flag_unknown_warning_option=yes 6316else 6317 xorg_cv_cc_flag_unknown_warning_option=no 6318fi 6319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6320fi 6321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6322$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6323 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6324 CFLAGS="$xorg_testset_save_CFLAGS" 6325fi 6326 6327if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6330 fi 6331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6333$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6334if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6335 $as_echo_n "(cached) " >&6 6336else 6337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6338/* end confdefs.h. */ 6339int i; 6340_ACEOF 6341if ac_fn_c_try_compile "$LINENO"; then : 6342 xorg_cv_cc_flag_unused_command_line_argument=yes 6343else 6344 xorg_cv_cc_flag_unused_command_line_argument=no 6345fi 6346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6347fi 6348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6349$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6350 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6351 CFLAGS="$xorg_testset_save_CFLAGS" 6352fi 6353 6354found="no" 6355 6356 if test $found = "no" ; then 6357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6359 fi 6360 6361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6363 fi 6364 6365 CFLAGS="$CFLAGS -Wmissing-noreturn" 6366 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6368$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6369 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6370 if eval \${$cacheid+:} false; then : 6371 $as_echo_n "(cached) " >&6 6372else 6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6374/* end confdefs.h. */ 6375int i; 6376int 6377main () 6378{ 6379 6380 ; 6381 return 0; 6382} 6383_ACEOF 6384if ac_fn_c_try_link "$LINENO"; then : 6385 eval $cacheid=yes 6386else 6387 eval $cacheid=no 6388fi 6389rm -f core conftest.err conftest.$ac_objext \ 6390 conftest$ac_exeext conftest.$ac_ext 6391fi 6392 6393 6394 CFLAGS="$xorg_testset_save_CFLAGS" 6395 6396 eval supported=\$$cacheid 6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6398$as_echo "$supported" >&6; } 6399 if test "$supported" = "yes" ; then 6400 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6401 found="yes" 6402 fi 6403 fi 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419xorg_testset_save_CFLAGS="$CFLAGS" 6420 6421if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6424$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6425if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6426 $as_echo_n "(cached) " >&6 6427else 6428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6429/* end confdefs.h. */ 6430int i; 6431_ACEOF 6432if ac_fn_c_try_compile "$LINENO"; then : 6433 xorg_cv_cc_flag_unknown_warning_option=yes 6434else 6435 xorg_cv_cc_flag_unknown_warning_option=no 6436fi 6437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6438fi 6439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6440$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6441 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6442 CFLAGS="$xorg_testset_save_CFLAGS" 6443fi 6444 6445if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6448 fi 6449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6451$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6452if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6453 $as_echo_n "(cached) " >&6 6454else 6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6456/* end confdefs.h. */ 6457int i; 6458_ACEOF 6459if ac_fn_c_try_compile "$LINENO"; then : 6460 xorg_cv_cc_flag_unused_command_line_argument=yes 6461else 6462 xorg_cv_cc_flag_unused_command_line_argument=no 6463fi 6464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6465fi 6466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6467$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6468 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6469 CFLAGS="$xorg_testset_save_CFLAGS" 6470fi 6471 6472found="no" 6473 6474 if test $found = "no" ; then 6475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6477 fi 6478 6479 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6481 fi 6482 6483 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6484 6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6486$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6487 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6488 if eval \${$cacheid+:} false; then : 6489 $as_echo_n "(cached) " >&6 6490else 6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6492/* end confdefs.h. */ 6493int i; 6494int 6495main () 6496{ 6497 6498 ; 6499 return 0; 6500} 6501_ACEOF 6502if ac_fn_c_try_link "$LINENO"; then : 6503 eval $cacheid=yes 6504else 6505 eval $cacheid=no 6506fi 6507rm -f core conftest.err conftest.$ac_objext \ 6508 conftest$ac_exeext conftest.$ac_ext 6509fi 6510 6511 6512 CFLAGS="$xorg_testset_save_CFLAGS" 6513 6514 eval supported=\$$cacheid 6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6516$as_echo "$supported" >&6; } 6517 if test "$supported" = "yes" ; then 6518 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6519 found="yes" 6520 fi 6521 fi 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537xorg_testset_save_CFLAGS="$CFLAGS" 6538 6539if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6542$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6543if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6544 $as_echo_n "(cached) " >&6 6545else 6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6547/* end confdefs.h. */ 6548int i; 6549_ACEOF 6550if ac_fn_c_try_compile "$LINENO"; then : 6551 xorg_cv_cc_flag_unknown_warning_option=yes 6552else 6553 xorg_cv_cc_flag_unknown_warning_option=no 6554fi 6555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6556fi 6557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6558$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6560 CFLAGS="$xorg_testset_save_CFLAGS" 6561fi 6562 6563if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6566 fi 6567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6569$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6570if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6571 $as_echo_n "(cached) " >&6 6572else 6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6574/* end confdefs.h. */ 6575int i; 6576_ACEOF 6577if ac_fn_c_try_compile "$LINENO"; then : 6578 xorg_cv_cc_flag_unused_command_line_argument=yes 6579else 6580 xorg_cv_cc_flag_unused_command_line_argument=no 6581fi 6582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6583fi 6584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6585$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6587 CFLAGS="$xorg_testset_save_CFLAGS" 6588fi 6589 6590found="no" 6591 6592 if test $found = "no" ; then 6593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6595 fi 6596 6597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6599 fi 6600 6601 CFLAGS="$CFLAGS -Wredundant-decls" 6602 6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6604$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6605 cacheid=xorg_cv_cc_flag__Wredundant_decls 6606 if eval \${$cacheid+:} false; then : 6607 $as_echo_n "(cached) " >&6 6608else 6609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6610/* end confdefs.h. */ 6611int i; 6612int 6613main () 6614{ 6615 6616 ; 6617 return 0; 6618} 6619_ACEOF 6620if ac_fn_c_try_link "$LINENO"; then : 6621 eval $cacheid=yes 6622else 6623 eval $cacheid=no 6624fi 6625rm -f core conftest.err conftest.$ac_objext \ 6626 conftest$ac_exeext conftest.$ac_ext 6627fi 6628 6629 6630 CFLAGS="$xorg_testset_save_CFLAGS" 6631 6632 eval supported=\$$cacheid 6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6634$as_echo "$supported" >&6; } 6635 if test "$supported" = "yes" ; then 6636 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6637 found="yes" 6638 fi 6639 fi 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655xorg_testset_save_CFLAGS="$CFLAGS" 6656 6657if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6660$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6661if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6662 $as_echo_n "(cached) " >&6 6663else 6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6665/* end confdefs.h. */ 6666int i; 6667_ACEOF 6668if ac_fn_c_try_compile "$LINENO"; then : 6669 xorg_cv_cc_flag_unknown_warning_option=yes 6670else 6671 xorg_cv_cc_flag_unknown_warning_option=no 6672fi 6673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6674fi 6675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6676$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6677 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6678 CFLAGS="$xorg_testset_save_CFLAGS" 6679fi 6680 6681if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6684 fi 6685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6687$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6688if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6689 $as_echo_n "(cached) " >&6 6690else 6691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6692/* end confdefs.h. */ 6693int i; 6694_ACEOF 6695if ac_fn_c_try_compile "$LINENO"; then : 6696 xorg_cv_cc_flag_unused_command_line_argument=yes 6697else 6698 xorg_cv_cc_flag_unused_command_line_argument=no 6699fi 6700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6701fi 6702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6703$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6704 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6705 CFLAGS="$xorg_testset_save_CFLAGS" 6706fi 6707 6708found="no" 6709 6710 if test $found = "no" ; then 6711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6713 fi 6714 6715 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6717 fi 6718 6719 CFLAGS="$CFLAGS -Wlogical-op" 6720 6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6722$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6723 cacheid=xorg_cv_cc_flag__Wlogical_op 6724 if eval \${$cacheid+:} false; then : 6725 $as_echo_n "(cached) " >&6 6726else 6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6728/* end confdefs.h. */ 6729int i; 6730int 6731main () 6732{ 6733 6734 ; 6735 return 0; 6736} 6737_ACEOF 6738if ac_fn_c_try_link "$LINENO"; then : 6739 eval $cacheid=yes 6740else 6741 eval $cacheid=no 6742fi 6743rm -f core conftest.err conftest.$ac_objext \ 6744 conftest$ac_exeext conftest.$ac_ext 6745fi 6746 6747 6748 CFLAGS="$xorg_testset_save_CFLAGS" 6749 6750 eval supported=\$$cacheid 6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6752$as_echo "$supported" >&6; } 6753 if test "$supported" = "yes" ; then 6754 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6755 found="yes" 6756 fi 6757 fi 6758 6759 6760 6761# These are currently disabled because they are noisy. They will be enabled 6762# in the future once the codebase is sufficiently modernized to silence 6763# them. For now, I don't want them to drown out the other warnings. 6764# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6765# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6766# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6767 6768# Turn some warnings into errors, so we don't accidently get successful builds 6769# when there are problems that should be fixed. 6770 6771if test "x$SELECTIVE_WERROR" = "xyes" ; then 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785xorg_testset_save_CFLAGS="$CFLAGS" 6786 6787if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6790$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6791if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6792 $as_echo_n "(cached) " >&6 6793else 6794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6795/* end confdefs.h. */ 6796int i; 6797_ACEOF 6798if ac_fn_c_try_compile "$LINENO"; then : 6799 xorg_cv_cc_flag_unknown_warning_option=yes 6800else 6801 xorg_cv_cc_flag_unknown_warning_option=no 6802fi 6803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6804fi 6805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6806$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6807 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6808 CFLAGS="$xorg_testset_save_CFLAGS" 6809fi 6810 6811if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6814 fi 6815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6817$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6818if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6819 $as_echo_n "(cached) " >&6 6820else 6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6822/* end confdefs.h. */ 6823int i; 6824_ACEOF 6825if ac_fn_c_try_compile "$LINENO"; then : 6826 xorg_cv_cc_flag_unused_command_line_argument=yes 6827else 6828 xorg_cv_cc_flag_unused_command_line_argument=no 6829fi 6830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6831fi 6832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6833$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6834 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6835 CFLAGS="$xorg_testset_save_CFLAGS" 6836fi 6837 6838found="no" 6839 6840 if test $found = "no" ; then 6841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6843 fi 6844 6845 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6847 fi 6848 6849 CFLAGS="$CFLAGS -Werror=implicit" 6850 6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6852$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6853 cacheid=xorg_cv_cc_flag__Werror_implicit 6854 if eval \${$cacheid+:} false; then : 6855 $as_echo_n "(cached) " >&6 6856else 6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6858/* end confdefs.h. */ 6859int i; 6860int 6861main () 6862{ 6863 6864 ; 6865 return 0; 6866} 6867_ACEOF 6868if ac_fn_c_try_link "$LINENO"; then : 6869 eval $cacheid=yes 6870else 6871 eval $cacheid=no 6872fi 6873rm -f core conftest.err conftest.$ac_objext \ 6874 conftest$ac_exeext conftest.$ac_ext 6875fi 6876 6877 6878 CFLAGS="$xorg_testset_save_CFLAGS" 6879 6880 eval supported=\$$cacheid 6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6882$as_echo "$supported" >&6; } 6883 if test "$supported" = "yes" ; then 6884 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6885 found="yes" 6886 fi 6887 fi 6888 6889 if test $found = "no" ; then 6890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6892 fi 6893 6894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6896 fi 6897 6898 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6899 6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6901$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6902 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6903 if eval \${$cacheid+:} false; then : 6904 $as_echo_n "(cached) " >&6 6905else 6906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6907/* end confdefs.h. */ 6908int i; 6909int 6910main () 6911{ 6912 6913 ; 6914 return 0; 6915} 6916_ACEOF 6917if ac_fn_c_try_link "$LINENO"; then : 6918 eval $cacheid=yes 6919else 6920 eval $cacheid=no 6921fi 6922rm -f core conftest.err conftest.$ac_objext \ 6923 conftest$ac_exeext conftest.$ac_ext 6924fi 6925 6926 6927 CFLAGS="$xorg_testset_save_CFLAGS" 6928 6929 eval supported=\$$cacheid 6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6931$as_echo "$supported" >&6; } 6932 if test "$supported" = "yes" ; then 6933 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6934 found="yes" 6935 fi 6936 fi 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952xorg_testset_save_CFLAGS="$CFLAGS" 6953 6954if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6957$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6958if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6959 $as_echo_n "(cached) " >&6 6960else 6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6962/* end confdefs.h. */ 6963int i; 6964_ACEOF 6965if ac_fn_c_try_compile "$LINENO"; then : 6966 xorg_cv_cc_flag_unknown_warning_option=yes 6967else 6968 xorg_cv_cc_flag_unknown_warning_option=no 6969fi 6970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6971fi 6972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6973$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6974 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6975 CFLAGS="$xorg_testset_save_CFLAGS" 6976fi 6977 6978if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6981 fi 6982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6984$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6985if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6986 $as_echo_n "(cached) " >&6 6987else 6988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6989/* end confdefs.h. */ 6990int i; 6991_ACEOF 6992if ac_fn_c_try_compile "$LINENO"; then : 6993 xorg_cv_cc_flag_unused_command_line_argument=yes 6994else 6995 xorg_cv_cc_flag_unused_command_line_argument=no 6996fi 6997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6998fi 6999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7000$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7002 CFLAGS="$xorg_testset_save_CFLAGS" 7003fi 7004 7005found="no" 7006 7007 if test $found = "no" ; then 7008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7010 fi 7011 7012 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7014 fi 7015 7016 CFLAGS="$CFLAGS -Werror=nonnull" 7017 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7019$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7020 cacheid=xorg_cv_cc_flag__Werror_nonnull 7021 if eval \${$cacheid+:} false; then : 7022 $as_echo_n "(cached) " >&6 7023else 7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7025/* end confdefs.h. */ 7026int i; 7027int 7028main () 7029{ 7030 7031 ; 7032 return 0; 7033} 7034_ACEOF 7035if ac_fn_c_try_link "$LINENO"; then : 7036 eval $cacheid=yes 7037else 7038 eval $cacheid=no 7039fi 7040rm -f core conftest.err conftest.$ac_objext \ 7041 conftest$ac_exeext conftest.$ac_ext 7042fi 7043 7044 7045 CFLAGS="$xorg_testset_save_CFLAGS" 7046 7047 eval supported=\$$cacheid 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7049$as_echo "$supported" >&6; } 7050 if test "$supported" = "yes" ; then 7051 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7052 found="yes" 7053 fi 7054 fi 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070xorg_testset_save_CFLAGS="$CFLAGS" 7071 7072if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7075$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7076if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7077 $as_echo_n "(cached) " >&6 7078else 7079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7080/* end confdefs.h. */ 7081int i; 7082_ACEOF 7083if ac_fn_c_try_compile "$LINENO"; then : 7084 xorg_cv_cc_flag_unknown_warning_option=yes 7085else 7086 xorg_cv_cc_flag_unknown_warning_option=no 7087fi 7088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7089fi 7090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7091$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7093 CFLAGS="$xorg_testset_save_CFLAGS" 7094fi 7095 7096if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7099 fi 7100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7102$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7103if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7104 $as_echo_n "(cached) " >&6 7105else 7106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7107/* end confdefs.h. */ 7108int i; 7109_ACEOF 7110if ac_fn_c_try_compile "$LINENO"; then : 7111 xorg_cv_cc_flag_unused_command_line_argument=yes 7112else 7113 xorg_cv_cc_flag_unused_command_line_argument=no 7114fi 7115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7116fi 7117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7118$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7119 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7120 CFLAGS="$xorg_testset_save_CFLAGS" 7121fi 7122 7123found="no" 7124 7125 if test $found = "no" ; then 7126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7128 fi 7129 7130 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7132 fi 7133 7134 CFLAGS="$CFLAGS -Werror=init-self" 7135 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7137$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7138 cacheid=xorg_cv_cc_flag__Werror_init_self 7139 if eval \${$cacheid+:} false; then : 7140 $as_echo_n "(cached) " >&6 7141else 7142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7143/* end confdefs.h. */ 7144int i; 7145int 7146main () 7147{ 7148 7149 ; 7150 return 0; 7151} 7152_ACEOF 7153if ac_fn_c_try_link "$LINENO"; then : 7154 eval $cacheid=yes 7155else 7156 eval $cacheid=no 7157fi 7158rm -f core conftest.err conftest.$ac_objext \ 7159 conftest$ac_exeext conftest.$ac_ext 7160fi 7161 7162 7163 CFLAGS="$xorg_testset_save_CFLAGS" 7164 7165 eval supported=\$$cacheid 7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7167$as_echo "$supported" >&6; } 7168 if test "$supported" = "yes" ; then 7169 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7170 found="yes" 7171 fi 7172 fi 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188xorg_testset_save_CFLAGS="$CFLAGS" 7189 7190if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7193$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7194if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7195 $as_echo_n "(cached) " >&6 7196else 7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7198/* end confdefs.h. */ 7199int i; 7200_ACEOF 7201if ac_fn_c_try_compile "$LINENO"; then : 7202 xorg_cv_cc_flag_unknown_warning_option=yes 7203else 7204 xorg_cv_cc_flag_unknown_warning_option=no 7205fi 7206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7207fi 7208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7209$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7211 CFLAGS="$xorg_testset_save_CFLAGS" 7212fi 7213 7214if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7217 fi 7218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7220$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7221if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7222 $as_echo_n "(cached) " >&6 7223else 7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7225/* end confdefs.h. */ 7226int i; 7227_ACEOF 7228if ac_fn_c_try_compile "$LINENO"; then : 7229 xorg_cv_cc_flag_unused_command_line_argument=yes 7230else 7231 xorg_cv_cc_flag_unused_command_line_argument=no 7232fi 7233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7234fi 7235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7236$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7238 CFLAGS="$xorg_testset_save_CFLAGS" 7239fi 7240 7241found="no" 7242 7243 if test $found = "no" ; then 7244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7246 fi 7247 7248 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7250 fi 7251 7252 CFLAGS="$CFLAGS -Werror=main" 7253 7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7255$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7256 cacheid=xorg_cv_cc_flag__Werror_main 7257 if eval \${$cacheid+:} false; then : 7258 $as_echo_n "(cached) " >&6 7259else 7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7261/* end confdefs.h. */ 7262int i; 7263int 7264main () 7265{ 7266 7267 ; 7268 return 0; 7269} 7270_ACEOF 7271if ac_fn_c_try_link "$LINENO"; then : 7272 eval $cacheid=yes 7273else 7274 eval $cacheid=no 7275fi 7276rm -f core conftest.err conftest.$ac_objext \ 7277 conftest$ac_exeext conftest.$ac_ext 7278fi 7279 7280 7281 CFLAGS="$xorg_testset_save_CFLAGS" 7282 7283 eval supported=\$$cacheid 7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7285$as_echo "$supported" >&6; } 7286 if test "$supported" = "yes" ; then 7287 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7288 found="yes" 7289 fi 7290 fi 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306xorg_testset_save_CFLAGS="$CFLAGS" 7307 7308if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7311$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7312if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7313 $as_echo_n "(cached) " >&6 7314else 7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7316/* end confdefs.h. */ 7317int i; 7318_ACEOF 7319if ac_fn_c_try_compile "$LINENO"; then : 7320 xorg_cv_cc_flag_unknown_warning_option=yes 7321else 7322 xorg_cv_cc_flag_unknown_warning_option=no 7323fi 7324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7325fi 7326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7327$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7329 CFLAGS="$xorg_testset_save_CFLAGS" 7330fi 7331 7332if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7335 fi 7336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7338$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7339if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7340 $as_echo_n "(cached) " >&6 7341else 7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7343/* end confdefs.h. */ 7344int i; 7345_ACEOF 7346if ac_fn_c_try_compile "$LINENO"; then : 7347 xorg_cv_cc_flag_unused_command_line_argument=yes 7348else 7349 xorg_cv_cc_flag_unused_command_line_argument=no 7350fi 7351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7352fi 7353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7354$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7355 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7356 CFLAGS="$xorg_testset_save_CFLAGS" 7357fi 7358 7359found="no" 7360 7361 if test $found = "no" ; then 7362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7364 fi 7365 7366 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7368 fi 7369 7370 CFLAGS="$CFLAGS -Werror=missing-braces" 7371 7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7373$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7374 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7375 if eval \${$cacheid+:} false; then : 7376 $as_echo_n "(cached) " >&6 7377else 7378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7379/* end confdefs.h. */ 7380int i; 7381int 7382main () 7383{ 7384 7385 ; 7386 return 0; 7387} 7388_ACEOF 7389if ac_fn_c_try_link "$LINENO"; then : 7390 eval $cacheid=yes 7391else 7392 eval $cacheid=no 7393fi 7394rm -f core conftest.err conftest.$ac_objext \ 7395 conftest$ac_exeext conftest.$ac_ext 7396fi 7397 7398 7399 CFLAGS="$xorg_testset_save_CFLAGS" 7400 7401 eval supported=\$$cacheid 7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7403$as_echo "$supported" >&6; } 7404 if test "$supported" = "yes" ; then 7405 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7406 found="yes" 7407 fi 7408 fi 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424xorg_testset_save_CFLAGS="$CFLAGS" 7425 7426if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7429$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7430if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7431 $as_echo_n "(cached) " >&6 7432else 7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7434/* end confdefs.h. */ 7435int i; 7436_ACEOF 7437if ac_fn_c_try_compile "$LINENO"; then : 7438 xorg_cv_cc_flag_unknown_warning_option=yes 7439else 7440 xorg_cv_cc_flag_unknown_warning_option=no 7441fi 7442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7443fi 7444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7445$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7446 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7447 CFLAGS="$xorg_testset_save_CFLAGS" 7448fi 7449 7450if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7453 fi 7454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7456$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7457if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7458 $as_echo_n "(cached) " >&6 7459else 7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7461/* end confdefs.h. */ 7462int i; 7463_ACEOF 7464if ac_fn_c_try_compile "$LINENO"; then : 7465 xorg_cv_cc_flag_unused_command_line_argument=yes 7466else 7467 xorg_cv_cc_flag_unused_command_line_argument=no 7468fi 7469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7470fi 7471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7472$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7473 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7474 CFLAGS="$xorg_testset_save_CFLAGS" 7475fi 7476 7477found="no" 7478 7479 if test $found = "no" ; then 7480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7482 fi 7483 7484 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7486 fi 7487 7488 CFLAGS="$CFLAGS -Werror=sequence-point" 7489 7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7491$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7492 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7493 if eval \${$cacheid+:} false; then : 7494 $as_echo_n "(cached) " >&6 7495else 7496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7497/* end confdefs.h. */ 7498int i; 7499int 7500main () 7501{ 7502 7503 ; 7504 return 0; 7505} 7506_ACEOF 7507if ac_fn_c_try_link "$LINENO"; then : 7508 eval $cacheid=yes 7509else 7510 eval $cacheid=no 7511fi 7512rm -f core conftest.err conftest.$ac_objext \ 7513 conftest$ac_exeext conftest.$ac_ext 7514fi 7515 7516 7517 CFLAGS="$xorg_testset_save_CFLAGS" 7518 7519 eval supported=\$$cacheid 7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7521$as_echo "$supported" >&6; } 7522 if test "$supported" = "yes" ; then 7523 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7524 found="yes" 7525 fi 7526 fi 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542xorg_testset_save_CFLAGS="$CFLAGS" 7543 7544if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7547$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7548if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7549 $as_echo_n "(cached) " >&6 7550else 7551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7552/* end confdefs.h. */ 7553int i; 7554_ACEOF 7555if ac_fn_c_try_compile "$LINENO"; then : 7556 xorg_cv_cc_flag_unknown_warning_option=yes 7557else 7558 xorg_cv_cc_flag_unknown_warning_option=no 7559fi 7560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7561fi 7562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7563$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7564 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7565 CFLAGS="$xorg_testset_save_CFLAGS" 7566fi 7567 7568if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7571 fi 7572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7574$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7575if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7576 $as_echo_n "(cached) " >&6 7577else 7578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7579/* end confdefs.h. */ 7580int i; 7581_ACEOF 7582if ac_fn_c_try_compile "$LINENO"; then : 7583 xorg_cv_cc_flag_unused_command_line_argument=yes 7584else 7585 xorg_cv_cc_flag_unused_command_line_argument=no 7586fi 7587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7588fi 7589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7590$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7591 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7592 CFLAGS="$xorg_testset_save_CFLAGS" 7593fi 7594 7595found="no" 7596 7597 if test $found = "no" ; then 7598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7600 fi 7601 7602 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7604 fi 7605 7606 CFLAGS="$CFLAGS -Werror=return-type" 7607 7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7609$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7610 cacheid=xorg_cv_cc_flag__Werror_return_type 7611 if eval \${$cacheid+:} false; then : 7612 $as_echo_n "(cached) " >&6 7613else 7614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7615/* end confdefs.h. */ 7616int i; 7617int 7618main () 7619{ 7620 7621 ; 7622 return 0; 7623} 7624_ACEOF 7625if ac_fn_c_try_link "$LINENO"; then : 7626 eval $cacheid=yes 7627else 7628 eval $cacheid=no 7629fi 7630rm -f core conftest.err conftest.$ac_objext \ 7631 conftest$ac_exeext conftest.$ac_ext 7632fi 7633 7634 7635 CFLAGS="$xorg_testset_save_CFLAGS" 7636 7637 eval supported=\$$cacheid 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7639$as_echo "$supported" >&6; } 7640 if test "$supported" = "yes" ; then 7641 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7642 found="yes" 7643 fi 7644 fi 7645 7646 if test $found = "no" ; then 7647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7649 fi 7650 7651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7653 fi 7654 7655 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7656 7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7658$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7659 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7660 if eval \${$cacheid+:} false; then : 7661 $as_echo_n "(cached) " >&6 7662else 7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7664/* end confdefs.h. */ 7665int i; 7666int 7667main () 7668{ 7669 7670 ; 7671 return 0; 7672} 7673_ACEOF 7674if ac_fn_c_try_link "$LINENO"; then : 7675 eval $cacheid=yes 7676else 7677 eval $cacheid=no 7678fi 7679rm -f core conftest.err conftest.$ac_objext \ 7680 conftest$ac_exeext conftest.$ac_ext 7681fi 7682 7683 7684 CFLAGS="$xorg_testset_save_CFLAGS" 7685 7686 eval supported=\$$cacheid 7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7688$as_echo "$supported" >&6; } 7689 if test "$supported" = "yes" ; then 7690 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7691 found="yes" 7692 fi 7693 fi 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709xorg_testset_save_CFLAGS="$CFLAGS" 7710 7711if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7714$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7715if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7716 $as_echo_n "(cached) " >&6 7717else 7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7719/* end confdefs.h. */ 7720int i; 7721_ACEOF 7722if ac_fn_c_try_compile "$LINENO"; then : 7723 xorg_cv_cc_flag_unknown_warning_option=yes 7724else 7725 xorg_cv_cc_flag_unknown_warning_option=no 7726fi 7727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7728fi 7729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7730$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7731 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7732 CFLAGS="$xorg_testset_save_CFLAGS" 7733fi 7734 7735if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7738 fi 7739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7741$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7742if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7743 $as_echo_n "(cached) " >&6 7744else 7745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7746/* end confdefs.h. */ 7747int i; 7748_ACEOF 7749if ac_fn_c_try_compile "$LINENO"; then : 7750 xorg_cv_cc_flag_unused_command_line_argument=yes 7751else 7752 xorg_cv_cc_flag_unused_command_line_argument=no 7753fi 7754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7755fi 7756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7757$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7758 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7759 CFLAGS="$xorg_testset_save_CFLAGS" 7760fi 7761 7762found="no" 7763 7764 if test $found = "no" ; then 7765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7767 fi 7768 7769 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7771 fi 7772 7773 CFLAGS="$CFLAGS -Werror=trigraphs" 7774 7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7776$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7777 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7778 if eval \${$cacheid+:} false; then : 7779 $as_echo_n "(cached) " >&6 7780else 7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7782/* end confdefs.h. */ 7783int i; 7784int 7785main () 7786{ 7787 7788 ; 7789 return 0; 7790} 7791_ACEOF 7792if ac_fn_c_try_link "$LINENO"; then : 7793 eval $cacheid=yes 7794else 7795 eval $cacheid=no 7796fi 7797rm -f core conftest.err conftest.$ac_objext \ 7798 conftest$ac_exeext conftest.$ac_ext 7799fi 7800 7801 7802 CFLAGS="$xorg_testset_save_CFLAGS" 7803 7804 eval supported=\$$cacheid 7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7806$as_echo "$supported" >&6; } 7807 if test "$supported" = "yes" ; then 7808 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7809 found="yes" 7810 fi 7811 fi 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827xorg_testset_save_CFLAGS="$CFLAGS" 7828 7829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7832$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7833if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7834 $as_echo_n "(cached) " >&6 7835else 7836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7837/* end confdefs.h. */ 7838int i; 7839_ACEOF 7840if ac_fn_c_try_compile "$LINENO"; then : 7841 xorg_cv_cc_flag_unknown_warning_option=yes 7842else 7843 xorg_cv_cc_flag_unknown_warning_option=no 7844fi 7845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7846fi 7847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7848$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7850 CFLAGS="$xorg_testset_save_CFLAGS" 7851fi 7852 7853if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7856 fi 7857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7859$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7860if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7861 $as_echo_n "(cached) " >&6 7862else 7863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7864/* end confdefs.h. */ 7865int i; 7866_ACEOF 7867if ac_fn_c_try_compile "$LINENO"; then : 7868 xorg_cv_cc_flag_unused_command_line_argument=yes 7869else 7870 xorg_cv_cc_flag_unused_command_line_argument=no 7871fi 7872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7873fi 7874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7875$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7877 CFLAGS="$xorg_testset_save_CFLAGS" 7878fi 7879 7880found="no" 7881 7882 if test $found = "no" ; then 7883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7885 fi 7886 7887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7889 fi 7890 7891 CFLAGS="$CFLAGS -Werror=array-bounds" 7892 7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7894$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7895 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7896 if eval \${$cacheid+:} false; then : 7897 $as_echo_n "(cached) " >&6 7898else 7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7900/* end confdefs.h. */ 7901int i; 7902int 7903main () 7904{ 7905 7906 ; 7907 return 0; 7908} 7909_ACEOF 7910if ac_fn_c_try_link "$LINENO"; then : 7911 eval $cacheid=yes 7912else 7913 eval $cacheid=no 7914fi 7915rm -f core conftest.err conftest.$ac_objext \ 7916 conftest$ac_exeext conftest.$ac_ext 7917fi 7918 7919 7920 CFLAGS="$xorg_testset_save_CFLAGS" 7921 7922 eval supported=\$$cacheid 7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7924$as_echo "$supported" >&6; } 7925 if test "$supported" = "yes" ; then 7926 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7927 found="yes" 7928 fi 7929 fi 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945xorg_testset_save_CFLAGS="$CFLAGS" 7946 7947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7950$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7951if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7952 $as_echo_n "(cached) " >&6 7953else 7954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7955/* end confdefs.h. */ 7956int i; 7957_ACEOF 7958if ac_fn_c_try_compile "$LINENO"; then : 7959 xorg_cv_cc_flag_unknown_warning_option=yes 7960else 7961 xorg_cv_cc_flag_unknown_warning_option=no 7962fi 7963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7964fi 7965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7966$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7967 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7968 CFLAGS="$xorg_testset_save_CFLAGS" 7969fi 7970 7971if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7974 fi 7975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7977$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7978if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7979 $as_echo_n "(cached) " >&6 7980else 7981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7982/* end confdefs.h. */ 7983int i; 7984_ACEOF 7985if ac_fn_c_try_compile "$LINENO"; then : 7986 xorg_cv_cc_flag_unused_command_line_argument=yes 7987else 7988 xorg_cv_cc_flag_unused_command_line_argument=no 7989fi 7990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7991fi 7992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7993$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7994 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7995 CFLAGS="$xorg_testset_save_CFLAGS" 7996fi 7997 7998found="no" 7999 8000 if test $found = "no" ; then 8001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8003 fi 8004 8005 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8007 fi 8008 8009 CFLAGS="$CFLAGS -Werror=write-strings" 8010 8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8012$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8013 cacheid=xorg_cv_cc_flag__Werror_write_strings 8014 if eval \${$cacheid+:} false; then : 8015 $as_echo_n "(cached) " >&6 8016else 8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8018/* end confdefs.h. */ 8019int i; 8020int 8021main () 8022{ 8023 8024 ; 8025 return 0; 8026} 8027_ACEOF 8028if ac_fn_c_try_link "$LINENO"; then : 8029 eval $cacheid=yes 8030else 8031 eval $cacheid=no 8032fi 8033rm -f core conftest.err conftest.$ac_objext \ 8034 conftest$ac_exeext conftest.$ac_ext 8035fi 8036 8037 8038 CFLAGS="$xorg_testset_save_CFLAGS" 8039 8040 eval supported=\$$cacheid 8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8042$as_echo "$supported" >&6; } 8043 if test "$supported" = "yes" ; then 8044 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8045 found="yes" 8046 fi 8047 fi 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063xorg_testset_save_CFLAGS="$CFLAGS" 8064 8065if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8068$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8069if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8070 $as_echo_n "(cached) " >&6 8071else 8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8073/* end confdefs.h. */ 8074int i; 8075_ACEOF 8076if ac_fn_c_try_compile "$LINENO"; then : 8077 xorg_cv_cc_flag_unknown_warning_option=yes 8078else 8079 xorg_cv_cc_flag_unknown_warning_option=no 8080fi 8081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8082fi 8083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8084$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8086 CFLAGS="$xorg_testset_save_CFLAGS" 8087fi 8088 8089if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8092 fi 8093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8095$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8096if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8097 $as_echo_n "(cached) " >&6 8098else 8099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8100/* end confdefs.h. */ 8101int i; 8102_ACEOF 8103if ac_fn_c_try_compile "$LINENO"; then : 8104 xorg_cv_cc_flag_unused_command_line_argument=yes 8105else 8106 xorg_cv_cc_flag_unused_command_line_argument=no 8107fi 8108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8109fi 8110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8111$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8113 CFLAGS="$xorg_testset_save_CFLAGS" 8114fi 8115 8116found="no" 8117 8118 if test $found = "no" ; then 8119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8121 fi 8122 8123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8125 fi 8126 8127 CFLAGS="$CFLAGS -Werror=address" 8128 8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8130$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8131 cacheid=xorg_cv_cc_flag__Werror_address 8132 if eval \${$cacheid+:} false; then : 8133 $as_echo_n "(cached) " >&6 8134else 8135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8136/* end confdefs.h. */ 8137int i; 8138int 8139main () 8140{ 8141 8142 ; 8143 return 0; 8144} 8145_ACEOF 8146if ac_fn_c_try_link "$LINENO"; then : 8147 eval $cacheid=yes 8148else 8149 eval $cacheid=no 8150fi 8151rm -f core conftest.err conftest.$ac_objext \ 8152 conftest$ac_exeext conftest.$ac_ext 8153fi 8154 8155 8156 CFLAGS="$xorg_testset_save_CFLAGS" 8157 8158 eval supported=\$$cacheid 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8160$as_echo "$supported" >&6; } 8161 if test "$supported" = "yes" ; then 8162 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8163 found="yes" 8164 fi 8165 fi 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181xorg_testset_save_CFLAGS="$CFLAGS" 8182 8183if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8186$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8187if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8188 $as_echo_n "(cached) " >&6 8189else 8190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8191/* end confdefs.h. */ 8192int i; 8193_ACEOF 8194if ac_fn_c_try_compile "$LINENO"; then : 8195 xorg_cv_cc_flag_unknown_warning_option=yes 8196else 8197 xorg_cv_cc_flag_unknown_warning_option=no 8198fi 8199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8200fi 8201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8202$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8204 CFLAGS="$xorg_testset_save_CFLAGS" 8205fi 8206 8207if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8210 fi 8211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8213$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8214if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8215 $as_echo_n "(cached) " >&6 8216else 8217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8218/* end confdefs.h. */ 8219int i; 8220_ACEOF 8221if ac_fn_c_try_compile "$LINENO"; then : 8222 xorg_cv_cc_flag_unused_command_line_argument=yes 8223else 8224 xorg_cv_cc_flag_unused_command_line_argument=no 8225fi 8226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8227fi 8228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8229$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8231 CFLAGS="$xorg_testset_save_CFLAGS" 8232fi 8233 8234found="no" 8235 8236 if test $found = "no" ; then 8237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8239 fi 8240 8241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8243 fi 8244 8245 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8246 8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8248$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8249 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8250 if eval \${$cacheid+:} false; then : 8251 $as_echo_n "(cached) " >&6 8252else 8253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8254/* end confdefs.h. */ 8255int i; 8256int 8257main () 8258{ 8259 8260 ; 8261 return 0; 8262} 8263_ACEOF 8264if ac_fn_c_try_link "$LINENO"; then : 8265 eval $cacheid=yes 8266else 8267 eval $cacheid=no 8268fi 8269rm -f core conftest.err conftest.$ac_objext \ 8270 conftest$ac_exeext conftest.$ac_ext 8271fi 8272 8273 8274 CFLAGS="$xorg_testset_save_CFLAGS" 8275 8276 eval supported=\$$cacheid 8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8278$as_echo "$supported" >&6; } 8279 if test "$supported" = "yes" ; then 8280 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8281 found="yes" 8282 fi 8283 fi 8284 8285 if test $found = "no" ; then 8286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8288 fi 8289 8290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8292 fi 8293 8294 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8295 8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8297$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8298 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8299 if eval \${$cacheid+:} false; then : 8300 $as_echo_n "(cached) " >&6 8301else 8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8303/* end confdefs.h. */ 8304int i; 8305int 8306main () 8307{ 8308 8309 ; 8310 return 0; 8311} 8312_ACEOF 8313if ac_fn_c_try_link "$LINENO"; then : 8314 eval $cacheid=yes 8315else 8316 eval $cacheid=no 8317fi 8318rm -f core conftest.err conftest.$ac_objext \ 8319 conftest$ac_exeext conftest.$ac_ext 8320fi 8321 8322 8323 CFLAGS="$xorg_testset_save_CFLAGS" 8324 8325 eval supported=\$$cacheid 8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8327$as_echo "$supported" >&6; } 8328 if test "$supported" = "yes" ; then 8329 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8330 found="yes" 8331 fi 8332 fi 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348xorg_testset_save_CFLAGS="$CFLAGS" 8349 8350if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8353$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8354if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8355 $as_echo_n "(cached) " >&6 8356else 8357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8358/* end confdefs.h. */ 8359int i; 8360_ACEOF 8361if ac_fn_c_try_compile "$LINENO"; then : 8362 xorg_cv_cc_flag_unknown_warning_option=yes 8363else 8364 xorg_cv_cc_flag_unknown_warning_option=no 8365fi 8366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8367fi 8368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8369$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8371 CFLAGS="$xorg_testset_save_CFLAGS" 8372fi 8373 8374if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8377 fi 8378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8380$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8381if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8382 $as_echo_n "(cached) " >&6 8383else 8384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8385/* end confdefs.h. */ 8386int i; 8387_ACEOF 8388if ac_fn_c_try_compile "$LINENO"; then : 8389 xorg_cv_cc_flag_unused_command_line_argument=yes 8390else 8391 xorg_cv_cc_flag_unused_command_line_argument=no 8392fi 8393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8394fi 8395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8396$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8398 CFLAGS="$xorg_testset_save_CFLAGS" 8399fi 8400 8401found="no" 8402 8403 if test $found = "no" ; then 8404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8406 fi 8407 8408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8410 fi 8411 8412 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8413 8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8415$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8416 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8417 if eval \${$cacheid+:} false; then : 8418 $as_echo_n "(cached) " >&6 8419else 8420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8421/* end confdefs.h. */ 8422int i; 8423int 8424main () 8425{ 8426 8427 ; 8428 return 0; 8429} 8430_ACEOF 8431if ac_fn_c_try_link "$LINENO"; then : 8432 eval $cacheid=yes 8433else 8434 eval $cacheid=no 8435fi 8436rm -f core conftest.err conftest.$ac_objext \ 8437 conftest$ac_exeext conftest.$ac_ext 8438fi 8439 8440 8441 CFLAGS="$xorg_testset_save_CFLAGS" 8442 8443 eval supported=\$$cacheid 8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8445$as_echo "$supported" >&6; } 8446 if test "$supported" = "yes" ; then 8447 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8448 found="yes" 8449 fi 8450 fi 8451 8452 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8453else 8454{ $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 8455$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;} 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469xorg_testset_save_CFLAGS="$CFLAGS" 8470 8471if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8474$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8475if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8476 $as_echo_n "(cached) " >&6 8477else 8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8479/* end confdefs.h. */ 8480int i; 8481_ACEOF 8482if ac_fn_c_try_compile "$LINENO"; then : 8483 xorg_cv_cc_flag_unknown_warning_option=yes 8484else 8485 xorg_cv_cc_flag_unknown_warning_option=no 8486fi 8487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8488fi 8489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8490$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8491 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8492 CFLAGS="$xorg_testset_save_CFLAGS" 8493fi 8494 8495if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8498 fi 8499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8501$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8502if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8503 $as_echo_n "(cached) " >&6 8504else 8505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8506/* end confdefs.h. */ 8507int i; 8508_ACEOF 8509if ac_fn_c_try_compile "$LINENO"; then : 8510 xorg_cv_cc_flag_unused_command_line_argument=yes 8511else 8512 xorg_cv_cc_flag_unused_command_line_argument=no 8513fi 8514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8515fi 8516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8517$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8518 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8519 CFLAGS="$xorg_testset_save_CFLAGS" 8520fi 8521 8522found="no" 8523 8524 if test $found = "no" ; then 8525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8527 fi 8528 8529 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8531 fi 8532 8533 CFLAGS="$CFLAGS -Wimplicit" 8534 8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8536$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8537 cacheid=xorg_cv_cc_flag__Wimplicit 8538 if eval \${$cacheid+:} false; then : 8539 $as_echo_n "(cached) " >&6 8540else 8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8542/* end confdefs.h. */ 8543int i; 8544int 8545main () 8546{ 8547 8548 ; 8549 return 0; 8550} 8551_ACEOF 8552if ac_fn_c_try_link "$LINENO"; then : 8553 eval $cacheid=yes 8554else 8555 eval $cacheid=no 8556fi 8557rm -f core conftest.err conftest.$ac_objext \ 8558 conftest$ac_exeext conftest.$ac_ext 8559fi 8560 8561 8562 CFLAGS="$xorg_testset_save_CFLAGS" 8563 8564 eval supported=\$$cacheid 8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8566$as_echo "$supported" >&6; } 8567 if test "$supported" = "yes" ; then 8568 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8569 found="yes" 8570 fi 8571 fi 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587xorg_testset_save_CFLAGS="$CFLAGS" 8588 8589if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8592$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8593if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8594 $as_echo_n "(cached) " >&6 8595else 8596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8597/* end confdefs.h. */ 8598int i; 8599_ACEOF 8600if ac_fn_c_try_compile "$LINENO"; then : 8601 xorg_cv_cc_flag_unknown_warning_option=yes 8602else 8603 xorg_cv_cc_flag_unknown_warning_option=no 8604fi 8605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8606fi 8607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8608$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8609 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8610 CFLAGS="$xorg_testset_save_CFLAGS" 8611fi 8612 8613if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8616 fi 8617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8619$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8620if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8621 $as_echo_n "(cached) " >&6 8622else 8623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8624/* end confdefs.h. */ 8625int i; 8626_ACEOF 8627if ac_fn_c_try_compile "$LINENO"; then : 8628 xorg_cv_cc_flag_unused_command_line_argument=yes 8629else 8630 xorg_cv_cc_flag_unused_command_line_argument=no 8631fi 8632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8633fi 8634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8635$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8636 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8637 CFLAGS="$xorg_testset_save_CFLAGS" 8638fi 8639 8640found="no" 8641 8642 if test $found = "no" ; then 8643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8645 fi 8646 8647 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8649 fi 8650 8651 CFLAGS="$CFLAGS -Wnonnull" 8652 8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8654$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8655 cacheid=xorg_cv_cc_flag__Wnonnull 8656 if eval \${$cacheid+:} false; then : 8657 $as_echo_n "(cached) " >&6 8658else 8659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8660/* end confdefs.h. */ 8661int i; 8662int 8663main () 8664{ 8665 8666 ; 8667 return 0; 8668} 8669_ACEOF 8670if ac_fn_c_try_link "$LINENO"; then : 8671 eval $cacheid=yes 8672else 8673 eval $cacheid=no 8674fi 8675rm -f core conftest.err conftest.$ac_objext \ 8676 conftest$ac_exeext conftest.$ac_ext 8677fi 8678 8679 8680 CFLAGS="$xorg_testset_save_CFLAGS" 8681 8682 eval supported=\$$cacheid 8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8684$as_echo "$supported" >&6; } 8685 if test "$supported" = "yes" ; then 8686 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8687 found="yes" 8688 fi 8689 fi 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705xorg_testset_save_CFLAGS="$CFLAGS" 8706 8707if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8710$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8711if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8712 $as_echo_n "(cached) " >&6 8713else 8714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8715/* end confdefs.h. */ 8716int i; 8717_ACEOF 8718if ac_fn_c_try_compile "$LINENO"; then : 8719 xorg_cv_cc_flag_unknown_warning_option=yes 8720else 8721 xorg_cv_cc_flag_unknown_warning_option=no 8722fi 8723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8724fi 8725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8726$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8727 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8728 CFLAGS="$xorg_testset_save_CFLAGS" 8729fi 8730 8731if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8734 fi 8735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8737$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8738if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8739 $as_echo_n "(cached) " >&6 8740else 8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8742/* end confdefs.h. */ 8743int i; 8744_ACEOF 8745if ac_fn_c_try_compile "$LINENO"; then : 8746 xorg_cv_cc_flag_unused_command_line_argument=yes 8747else 8748 xorg_cv_cc_flag_unused_command_line_argument=no 8749fi 8750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8751fi 8752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8753$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8754 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8755 CFLAGS="$xorg_testset_save_CFLAGS" 8756fi 8757 8758found="no" 8759 8760 if test $found = "no" ; then 8761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8763 fi 8764 8765 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8767 fi 8768 8769 CFLAGS="$CFLAGS -Winit-self" 8770 8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8772$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8773 cacheid=xorg_cv_cc_flag__Winit_self 8774 if eval \${$cacheid+:} false; then : 8775 $as_echo_n "(cached) " >&6 8776else 8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8778/* end confdefs.h. */ 8779int i; 8780int 8781main () 8782{ 8783 8784 ; 8785 return 0; 8786} 8787_ACEOF 8788if ac_fn_c_try_link "$LINENO"; then : 8789 eval $cacheid=yes 8790else 8791 eval $cacheid=no 8792fi 8793rm -f core conftest.err conftest.$ac_objext \ 8794 conftest$ac_exeext conftest.$ac_ext 8795fi 8796 8797 8798 CFLAGS="$xorg_testset_save_CFLAGS" 8799 8800 eval supported=\$$cacheid 8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8802$as_echo "$supported" >&6; } 8803 if test "$supported" = "yes" ; then 8804 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8805 found="yes" 8806 fi 8807 fi 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823xorg_testset_save_CFLAGS="$CFLAGS" 8824 8825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8828$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8829if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8830 $as_echo_n "(cached) " >&6 8831else 8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8833/* end confdefs.h. */ 8834int i; 8835_ACEOF 8836if ac_fn_c_try_compile "$LINENO"; then : 8837 xorg_cv_cc_flag_unknown_warning_option=yes 8838else 8839 xorg_cv_cc_flag_unknown_warning_option=no 8840fi 8841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8842fi 8843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8844$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8845 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8846 CFLAGS="$xorg_testset_save_CFLAGS" 8847fi 8848 8849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8852 fi 8853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8855$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8856if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8857 $as_echo_n "(cached) " >&6 8858else 8859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8860/* end confdefs.h. */ 8861int i; 8862_ACEOF 8863if ac_fn_c_try_compile "$LINENO"; then : 8864 xorg_cv_cc_flag_unused_command_line_argument=yes 8865else 8866 xorg_cv_cc_flag_unused_command_line_argument=no 8867fi 8868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8869fi 8870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8871$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8872 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8873 CFLAGS="$xorg_testset_save_CFLAGS" 8874fi 8875 8876found="no" 8877 8878 if test $found = "no" ; then 8879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8881 fi 8882 8883 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8885 fi 8886 8887 CFLAGS="$CFLAGS -Wmain" 8888 8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8890$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8891 cacheid=xorg_cv_cc_flag__Wmain 8892 if eval \${$cacheid+:} false; then : 8893 $as_echo_n "(cached) " >&6 8894else 8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8896/* end confdefs.h. */ 8897int i; 8898int 8899main () 8900{ 8901 8902 ; 8903 return 0; 8904} 8905_ACEOF 8906if ac_fn_c_try_link "$LINENO"; then : 8907 eval $cacheid=yes 8908else 8909 eval $cacheid=no 8910fi 8911rm -f core conftest.err conftest.$ac_objext \ 8912 conftest$ac_exeext conftest.$ac_ext 8913fi 8914 8915 8916 CFLAGS="$xorg_testset_save_CFLAGS" 8917 8918 eval supported=\$$cacheid 8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8920$as_echo "$supported" >&6; } 8921 if test "$supported" = "yes" ; then 8922 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8923 found="yes" 8924 fi 8925 fi 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941xorg_testset_save_CFLAGS="$CFLAGS" 8942 8943if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8946$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8947if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8948 $as_echo_n "(cached) " >&6 8949else 8950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8951/* end confdefs.h. */ 8952int i; 8953_ACEOF 8954if ac_fn_c_try_compile "$LINENO"; then : 8955 xorg_cv_cc_flag_unknown_warning_option=yes 8956else 8957 xorg_cv_cc_flag_unknown_warning_option=no 8958fi 8959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8960fi 8961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8962$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8963 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8964 CFLAGS="$xorg_testset_save_CFLAGS" 8965fi 8966 8967if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8970 fi 8971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8973$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8974if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8975 $as_echo_n "(cached) " >&6 8976else 8977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8978/* end confdefs.h. */ 8979int i; 8980_ACEOF 8981if ac_fn_c_try_compile "$LINENO"; then : 8982 xorg_cv_cc_flag_unused_command_line_argument=yes 8983else 8984 xorg_cv_cc_flag_unused_command_line_argument=no 8985fi 8986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8987fi 8988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8989$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8990 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8991 CFLAGS="$xorg_testset_save_CFLAGS" 8992fi 8993 8994found="no" 8995 8996 if test $found = "no" ; then 8997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8999 fi 9000 9001 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9003 fi 9004 9005 CFLAGS="$CFLAGS -Wmissing-braces" 9006 9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9008$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9009 cacheid=xorg_cv_cc_flag__Wmissing_braces 9010 if eval \${$cacheid+:} false; then : 9011 $as_echo_n "(cached) " >&6 9012else 9013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9014/* end confdefs.h. */ 9015int i; 9016int 9017main () 9018{ 9019 9020 ; 9021 return 0; 9022} 9023_ACEOF 9024if ac_fn_c_try_link "$LINENO"; then : 9025 eval $cacheid=yes 9026else 9027 eval $cacheid=no 9028fi 9029rm -f core conftest.err conftest.$ac_objext \ 9030 conftest$ac_exeext conftest.$ac_ext 9031fi 9032 9033 9034 CFLAGS="$xorg_testset_save_CFLAGS" 9035 9036 eval supported=\$$cacheid 9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9038$as_echo "$supported" >&6; } 9039 if test "$supported" = "yes" ; then 9040 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9041 found="yes" 9042 fi 9043 fi 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059xorg_testset_save_CFLAGS="$CFLAGS" 9060 9061if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9064$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9065if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9066 $as_echo_n "(cached) " >&6 9067else 9068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9069/* end confdefs.h. */ 9070int i; 9071_ACEOF 9072if ac_fn_c_try_compile "$LINENO"; then : 9073 xorg_cv_cc_flag_unknown_warning_option=yes 9074else 9075 xorg_cv_cc_flag_unknown_warning_option=no 9076fi 9077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9078fi 9079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9080$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9081 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9082 CFLAGS="$xorg_testset_save_CFLAGS" 9083fi 9084 9085if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9088 fi 9089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9091$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9092if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9093 $as_echo_n "(cached) " >&6 9094else 9095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9096/* end confdefs.h. */ 9097int i; 9098_ACEOF 9099if ac_fn_c_try_compile "$LINENO"; then : 9100 xorg_cv_cc_flag_unused_command_line_argument=yes 9101else 9102 xorg_cv_cc_flag_unused_command_line_argument=no 9103fi 9104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9105fi 9106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9107$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9108 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9109 CFLAGS="$xorg_testset_save_CFLAGS" 9110fi 9111 9112found="no" 9113 9114 if test $found = "no" ; then 9115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9117 fi 9118 9119 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9121 fi 9122 9123 CFLAGS="$CFLAGS -Wsequence-point" 9124 9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9126$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9127 cacheid=xorg_cv_cc_flag__Wsequence_point 9128 if eval \${$cacheid+:} false; then : 9129 $as_echo_n "(cached) " >&6 9130else 9131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9132/* end confdefs.h. */ 9133int i; 9134int 9135main () 9136{ 9137 9138 ; 9139 return 0; 9140} 9141_ACEOF 9142if ac_fn_c_try_link "$LINENO"; then : 9143 eval $cacheid=yes 9144else 9145 eval $cacheid=no 9146fi 9147rm -f core conftest.err conftest.$ac_objext \ 9148 conftest$ac_exeext conftest.$ac_ext 9149fi 9150 9151 9152 CFLAGS="$xorg_testset_save_CFLAGS" 9153 9154 eval supported=\$$cacheid 9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9156$as_echo "$supported" >&6; } 9157 if test "$supported" = "yes" ; then 9158 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9159 found="yes" 9160 fi 9161 fi 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177xorg_testset_save_CFLAGS="$CFLAGS" 9178 9179if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9182$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9183if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9184 $as_echo_n "(cached) " >&6 9185else 9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9187/* end confdefs.h. */ 9188int i; 9189_ACEOF 9190if ac_fn_c_try_compile "$LINENO"; then : 9191 xorg_cv_cc_flag_unknown_warning_option=yes 9192else 9193 xorg_cv_cc_flag_unknown_warning_option=no 9194fi 9195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9196fi 9197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9198$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9199 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9200 CFLAGS="$xorg_testset_save_CFLAGS" 9201fi 9202 9203if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9206 fi 9207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9209$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9210if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9211 $as_echo_n "(cached) " >&6 9212else 9213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9214/* end confdefs.h. */ 9215int i; 9216_ACEOF 9217if ac_fn_c_try_compile "$LINENO"; then : 9218 xorg_cv_cc_flag_unused_command_line_argument=yes 9219else 9220 xorg_cv_cc_flag_unused_command_line_argument=no 9221fi 9222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9223fi 9224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9225$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9227 CFLAGS="$xorg_testset_save_CFLAGS" 9228fi 9229 9230found="no" 9231 9232 if test $found = "no" ; then 9233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9235 fi 9236 9237 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9239 fi 9240 9241 CFLAGS="$CFLAGS -Wreturn-type" 9242 9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9244$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9245 cacheid=xorg_cv_cc_flag__Wreturn_type 9246 if eval \${$cacheid+:} false; then : 9247 $as_echo_n "(cached) " >&6 9248else 9249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9250/* end confdefs.h. */ 9251int i; 9252int 9253main () 9254{ 9255 9256 ; 9257 return 0; 9258} 9259_ACEOF 9260if ac_fn_c_try_link "$LINENO"; then : 9261 eval $cacheid=yes 9262else 9263 eval $cacheid=no 9264fi 9265rm -f core conftest.err conftest.$ac_objext \ 9266 conftest$ac_exeext conftest.$ac_ext 9267fi 9268 9269 9270 CFLAGS="$xorg_testset_save_CFLAGS" 9271 9272 eval supported=\$$cacheid 9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9274$as_echo "$supported" >&6; } 9275 if test "$supported" = "yes" ; then 9276 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9277 found="yes" 9278 fi 9279 fi 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295xorg_testset_save_CFLAGS="$CFLAGS" 9296 9297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9300$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9301if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9302 $as_echo_n "(cached) " >&6 9303else 9304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9305/* end confdefs.h. */ 9306int i; 9307_ACEOF 9308if ac_fn_c_try_compile "$LINENO"; then : 9309 xorg_cv_cc_flag_unknown_warning_option=yes 9310else 9311 xorg_cv_cc_flag_unknown_warning_option=no 9312fi 9313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9314fi 9315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9316$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9317 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9318 CFLAGS="$xorg_testset_save_CFLAGS" 9319fi 9320 9321if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9324 fi 9325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9327$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9328if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9329 $as_echo_n "(cached) " >&6 9330else 9331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9332/* end confdefs.h. */ 9333int i; 9334_ACEOF 9335if ac_fn_c_try_compile "$LINENO"; then : 9336 xorg_cv_cc_flag_unused_command_line_argument=yes 9337else 9338 xorg_cv_cc_flag_unused_command_line_argument=no 9339fi 9340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9341fi 9342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9343$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9344 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9345 CFLAGS="$xorg_testset_save_CFLAGS" 9346fi 9347 9348found="no" 9349 9350 if test $found = "no" ; then 9351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9353 fi 9354 9355 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9357 fi 9358 9359 CFLAGS="$CFLAGS -Wtrigraphs" 9360 9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9362$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9363 cacheid=xorg_cv_cc_flag__Wtrigraphs 9364 if eval \${$cacheid+:} false; then : 9365 $as_echo_n "(cached) " >&6 9366else 9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9368/* end confdefs.h. */ 9369int i; 9370int 9371main () 9372{ 9373 9374 ; 9375 return 0; 9376} 9377_ACEOF 9378if ac_fn_c_try_link "$LINENO"; then : 9379 eval $cacheid=yes 9380else 9381 eval $cacheid=no 9382fi 9383rm -f core conftest.err conftest.$ac_objext \ 9384 conftest$ac_exeext conftest.$ac_ext 9385fi 9386 9387 9388 CFLAGS="$xorg_testset_save_CFLAGS" 9389 9390 eval supported=\$$cacheid 9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9392$as_echo "$supported" >&6; } 9393 if test "$supported" = "yes" ; then 9394 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9395 found="yes" 9396 fi 9397 fi 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413xorg_testset_save_CFLAGS="$CFLAGS" 9414 9415if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9418$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9419if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9420 $as_echo_n "(cached) " >&6 9421else 9422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9423/* end confdefs.h. */ 9424int i; 9425_ACEOF 9426if ac_fn_c_try_compile "$LINENO"; then : 9427 xorg_cv_cc_flag_unknown_warning_option=yes 9428else 9429 xorg_cv_cc_flag_unknown_warning_option=no 9430fi 9431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9432fi 9433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9434$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9435 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9436 CFLAGS="$xorg_testset_save_CFLAGS" 9437fi 9438 9439if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9442 fi 9443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9445$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9446if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9447 $as_echo_n "(cached) " >&6 9448else 9449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9450/* end confdefs.h. */ 9451int i; 9452_ACEOF 9453if ac_fn_c_try_compile "$LINENO"; then : 9454 xorg_cv_cc_flag_unused_command_line_argument=yes 9455else 9456 xorg_cv_cc_flag_unused_command_line_argument=no 9457fi 9458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9459fi 9460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9461$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9462 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9463 CFLAGS="$xorg_testset_save_CFLAGS" 9464fi 9465 9466found="no" 9467 9468 if test $found = "no" ; then 9469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9471 fi 9472 9473 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9475 fi 9476 9477 CFLAGS="$CFLAGS -Warray-bounds" 9478 9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9480$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9481 cacheid=xorg_cv_cc_flag__Warray_bounds 9482 if eval \${$cacheid+:} false; then : 9483 $as_echo_n "(cached) " >&6 9484else 9485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9486/* end confdefs.h. */ 9487int i; 9488int 9489main () 9490{ 9491 9492 ; 9493 return 0; 9494} 9495_ACEOF 9496if ac_fn_c_try_link "$LINENO"; then : 9497 eval $cacheid=yes 9498else 9499 eval $cacheid=no 9500fi 9501rm -f core conftest.err conftest.$ac_objext \ 9502 conftest$ac_exeext conftest.$ac_ext 9503fi 9504 9505 9506 CFLAGS="$xorg_testset_save_CFLAGS" 9507 9508 eval supported=\$$cacheid 9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9510$as_echo "$supported" >&6; } 9511 if test "$supported" = "yes" ; then 9512 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9513 found="yes" 9514 fi 9515 fi 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531xorg_testset_save_CFLAGS="$CFLAGS" 9532 9533if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9536$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9537if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9538 $as_echo_n "(cached) " >&6 9539else 9540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9541/* end confdefs.h. */ 9542int i; 9543_ACEOF 9544if ac_fn_c_try_compile "$LINENO"; then : 9545 xorg_cv_cc_flag_unknown_warning_option=yes 9546else 9547 xorg_cv_cc_flag_unknown_warning_option=no 9548fi 9549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9550fi 9551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9552$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9554 CFLAGS="$xorg_testset_save_CFLAGS" 9555fi 9556 9557if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9560 fi 9561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9563$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9564if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9565 $as_echo_n "(cached) " >&6 9566else 9567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9568/* end confdefs.h. */ 9569int i; 9570_ACEOF 9571if ac_fn_c_try_compile "$LINENO"; then : 9572 xorg_cv_cc_flag_unused_command_line_argument=yes 9573else 9574 xorg_cv_cc_flag_unused_command_line_argument=no 9575fi 9576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9577fi 9578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9579$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9581 CFLAGS="$xorg_testset_save_CFLAGS" 9582fi 9583 9584found="no" 9585 9586 if test $found = "no" ; then 9587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9589 fi 9590 9591 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9593 fi 9594 9595 CFLAGS="$CFLAGS -Wwrite-strings" 9596 9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9598$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9599 cacheid=xorg_cv_cc_flag__Wwrite_strings 9600 if eval \${$cacheid+:} false; then : 9601 $as_echo_n "(cached) " >&6 9602else 9603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9604/* end confdefs.h. */ 9605int i; 9606int 9607main () 9608{ 9609 9610 ; 9611 return 0; 9612} 9613_ACEOF 9614if ac_fn_c_try_link "$LINENO"; then : 9615 eval $cacheid=yes 9616else 9617 eval $cacheid=no 9618fi 9619rm -f core conftest.err conftest.$ac_objext \ 9620 conftest$ac_exeext conftest.$ac_ext 9621fi 9622 9623 9624 CFLAGS="$xorg_testset_save_CFLAGS" 9625 9626 eval supported=\$$cacheid 9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9628$as_echo "$supported" >&6; } 9629 if test "$supported" = "yes" ; then 9630 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9631 found="yes" 9632 fi 9633 fi 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649xorg_testset_save_CFLAGS="$CFLAGS" 9650 9651if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9654$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9655if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9656 $as_echo_n "(cached) " >&6 9657else 9658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9659/* end confdefs.h. */ 9660int i; 9661_ACEOF 9662if ac_fn_c_try_compile "$LINENO"; then : 9663 xorg_cv_cc_flag_unknown_warning_option=yes 9664else 9665 xorg_cv_cc_flag_unknown_warning_option=no 9666fi 9667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9668fi 9669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9670$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9671 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9672 CFLAGS="$xorg_testset_save_CFLAGS" 9673fi 9674 9675if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9678 fi 9679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9681$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9682if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9683 $as_echo_n "(cached) " >&6 9684else 9685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9686/* end confdefs.h. */ 9687int i; 9688_ACEOF 9689if ac_fn_c_try_compile "$LINENO"; then : 9690 xorg_cv_cc_flag_unused_command_line_argument=yes 9691else 9692 xorg_cv_cc_flag_unused_command_line_argument=no 9693fi 9694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9695fi 9696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9697$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9699 CFLAGS="$xorg_testset_save_CFLAGS" 9700fi 9701 9702found="no" 9703 9704 if test $found = "no" ; then 9705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9707 fi 9708 9709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9711 fi 9712 9713 CFLAGS="$CFLAGS -Waddress" 9714 9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9716$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9717 cacheid=xorg_cv_cc_flag__Waddress 9718 if eval \${$cacheid+:} false; then : 9719 $as_echo_n "(cached) " >&6 9720else 9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9722/* end confdefs.h. */ 9723int i; 9724int 9725main () 9726{ 9727 9728 ; 9729 return 0; 9730} 9731_ACEOF 9732if ac_fn_c_try_link "$LINENO"; then : 9733 eval $cacheid=yes 9734else 9735 eval $cacheid=no 9736fi 9737rm -f core conftest.err conftest.$ac_objext \ 9738 conftest$ac_exeext conftest.$ac_ext 9739fi 9740 9741 9742 CFLAGS="$xorg_testset_save_CFLAGS" 9743 9744 eval supported=\$$cacheid 9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9746$as_echo "$supported" >&6; } 9747 if test "$supported" = "yes" ; then 9748 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9749 found="yes" 9750 fi 9751 fi 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767xorg_testset_save_CFLAGS="$CFLAGS" 9768 9769if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9772$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9773if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9774 $as_echo_n "(cached) " >&6 9775else 9776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9777/* end confdefs.h. */ 9778int i; 9779_ACEOF 9780if ac_fn_c_try_compile "$LINENO"; then : 9781 xorg_cv_cc_flag_unknown_warning_option=yes 9782else 9783 xorg_cv_cc_flag_unknown_warning_option=no 9784fi 9785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9786fi 9787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9788$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9789 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9790 CFLAGS="$xorg_testset_save_CFLAGS" 9791fi 9792 9793if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9796 fi 9797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9799$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9800if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9801 $as_echo_n "(cached) " >&6 9802else 9803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9804/* end confdefs.h. */ 9805int i; 9806_ACEOF 9807if ac_fn_c_try_compile "$LINENO"; then : 9808 xorg_cv_cc_flag_unused_command_line_argument=yes 9809else 9810 xorg_cv_cc_flag_unused_command_line_argument=no 9811fi 9812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9813fi 9814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9815$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9817 CFLAGS="$xorg_testset_save_CFLAGS" 9818fi 9819 9820found="no" 9821 9822 if test $found = "no" ; then 9823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9825 fi 9826 9827 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9829 fi 9830 9831 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9832 9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9834$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9835 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9836 if eval \${$cacheid+:} false; then : 9837 $as_echo_n "(cached) " >&6 9838else 9839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9840/* end confdefs.h. */ 9841int i; 9842int 9843main () 9844{ 9845 9846 ; 9847 return 0; 9848} 9849_ACEOF 9850if ac_fn_c_try_link "$LINENO"; then : 9851 eval $cacheid=yes 9852else 9853 eval $cacheid=no 9854fi 9855rm -f core conftest.err conftest.$ac_objext \ 9856 conftest$ac_exeext conftest.$ac_ext 9857fi 9858 9859 9860 CFLAGS="$xorg_testset_save_CFLAGS" 9861 9862 eval supported=\$$cacheid 9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9864$as_echo "$supported" >&6; } 9865 if test "$supported" = "yes" ; then 9866 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9867 found="yes" 9868 fi 9869 fi 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885xorg_testset_save_CFLAGS="$CFLAGS" 9886 9887if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9890$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9891if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9892 $as_echo_n "(cached) " >&6 9893else 9894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9895/* end confdefs.h. */ 9896int i; 9897_ACEOF 9898if ac_fn_c_try_compile "$LINENO"; then : 9899 xorg_cv_cc_flag_unknown_warning_option=yes 9900else 9901 xorg_cv_cc_flag_unknown_warning_option=no 9902fi 9903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9904fi 9905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9906$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9907 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9908 CFLAGS="$xorg_testset_save_CFLAGS" 9909fi 9910 9911if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9914 fi 9915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9917$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9918if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9919 $as_echo_n "(cached) " >&6 9920else 9921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9922/* end confdefs.h. */ 9923int i; 9924_ACEOF 9925if ac_fn_c_try_compile "$LINENO"; then : 9926 xorg_cv_cc_flag_unused_command_line_argument=yes 9927else 9928 xorg_cv_cc_flag_unused_command_line_argument=no 9929fi 9930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9931fi 9932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9933$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9934 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9935 CFLAGS="$xorg_testset_save_CFLAGS" 9936fi 9937 9938found="no" 9939 9940 if test $found = "no" ; then 9941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9943 fi 9944 9945 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9947 fi 9948 9949 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9950 9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9952$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9953 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9954 if eval \${$cacheid+:} false; then : 9955 $as_echo_n "(cached) " >&6 9956else 9957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9958/* end confdefs.h. */ 9959int i; 9960int 9961main () 9962{ 9963 9964 ; 9965 return 0; 9966} 9967_ACEOF 9968if ac_fn_c_try_link "$LINENO"; then : 9969 eval $cacheid=yes 9970else 9971 eval $cacheid=no 9972fi 9973rm -f core conftest.err conftest.$ac_objext \ 9974 conftest$ac_exeext conftest.$ac_ext 9975fi 9976 9977 9978 CFLAGS="$xorg_testset_save_CFLAGS" 9979 9980 eval supported=\$$cacheid 9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9982$as_echo "$supported" >&6; } 9983 if test "$supported" = "yes" ; then 9984 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9985 found="yes" 9986 fi 9987 fi 9988 9989 9990fi 9991 9992 9993 9994 9995 9996 9997 9998 CWARNFLAGS="$BASE_CFLAGS" 9999 if test "x$GCC" = xyes ; then 10000 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10001 fi 10002 10003 10004 10005 10006 10007 10008 10009 10010# Check whether --enable-strict-compilation was given. 10011if test "${enable_strict_compilation+set}" = set; then : 10012 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10013else 10014 STRICT_COMPILE=no 10015fi 10016 10017 10018 10019 10020 10021 10022STRICT_CFLAGS="" 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036xorg_testset_save_CFLAGS="$CFLAGS" 10037 10038if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10041$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10042if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10043 $as_echo_n "(cached) " >&6 10044else 10045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10046/* end confdefs.h. */ 10047int i; 10048_ACEOF 10049if ac_fn_c_try_compile "$LINENO"; then : 10050 xorg_cv_cc_flag_unknown_warning_option=yes 10051else 10052 xorg_cv_cc_flag_unknown_warning_option=no 10053fi 10054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10055fi 10056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10057$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10059 CFLAGS="$xorg_testset_save_CFLAGS" 10060fi 10061 10062if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10065 fi 10066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10068$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10069if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10070 $as_echo_n "(cached) " >&6 10071else 10072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10073/* end confdefs.h. */ 10074int i; 10075_ACEOF 10076if ac_fn_c_try_compile "$LINENO"; then : 10077 xorg_cv_cc_flag_unused_command_line_argument=yes 10078else 10079 xorg_cv_cc_flag_unused_command_line_argument=no 10080fi 10081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10082fi 10083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10084$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10086 CFLAGS="$xorg_testset_save_CFLAGS" 10087fi 10088 10089found="no" 10090 10091 if test $found = "no" ; then 10092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10094 fi 10095 10096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10098 fi 10099 10100 CFLAGS="$CFLAGS -pedantic" 10101 10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10103$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10104 cacheid=xorg_cv_cc_flag__pedantic 10105 if eval \${$cacheid+:} false; then : 10106 $as_echo_n "(cached) " >&6 10107else 10108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10109/* end confdefs.h. */ 10110int i; 10111int 10112main () 10113{ 10114 10115 ; 10116 return 0; 10117} 10118_ACEOF 10119if ac_fn_c_try_link "$LINENO"; then : 10120 eval $cacheid=yes 10121else 10122 eval $cacheid=no 10123fi 10124rm -f core conftest.err conftest.$ac_objext \ 10125 conftest$ac_exeext conftest.$ac_ext 10126fi 10127 10128 10129 CFLAGS="$xorg_testset_save_CFLAGS" 10130 10131 eval supported=\$$cacheid 10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10133$as_echo "$supported" >&6; } 10134 if test "$supported" = "yes" ; then 10135 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10136 found="yes" 10137 fi 10138 fi 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154xorg_testset_save_CFLAGS="$CFLAGS" 10155 10156if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10159$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10160if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10161 $as_echo_n "(cached) " >&6 10162else 10163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10164/* end confdefs.h. */ 10165int i; 10166_ACEOF 10167if ac_fn_c_try_compile "$LINENO"; then : 10168 xorg_cv_cc_flag_unknown_warning_option=yes 10169else 10170 xorg_cv_cc_flag_unknown_warning_option=no 10171fi 10172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10173fi 10174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10175$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10176 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10177 CFLAGS="$xorg_testset_save_CFLAGS" 10178fi 10179 10180if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10183 fi 10184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10186$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10187if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10188 $as_echo_n "(cached) " >&6 10189else 10190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10191/* end confdefs.h. */ 10192int i; 10193_ACEOF 10194if ac_fn_c_try_compile "$LINENO"; then : 10195 xorg_cv_cc_flag_unused_command_line_argument=yes 10196else 10197 xorg_cv_cc_flag_unused_command_line_argument=no 10198fi 10199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10200fi 10201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10202$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10204 CFLAGS="$xorg_testset_save_CFLAGS" 10205fi 10206 10207found="no" 10208 10209 if test $found = "no" ; then 10210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10212 fi 10213 10214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10216 fi 10217 10218 CFLAGS="$CFLAGS -Werror" 10219 10220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10221$as_echo_n "checking if $CC supports -Werror... " >&6; } 10222 cacheid=xorg_cv_cc_flag__Werror 10223 if eval \${$cacheid+:} false; then : 10224 $as_echo_n "(cached) " >&6 10225else 10226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10227/* end confdefs.h. */ 10228int i; 10229int 10230main () 10231{ 10232 10233 ; 10234 return 0; 10235} 10236_ACEOF 10237if ac_fn_c_try_link "$LINENO"; then : 10238 eval $cacheid=yes 10239else 10240 eval $cacheid=no 10241fi 10242rm -f core conftest.err conftest.$ac_objext \ 10243 conftest$ac_exeext conftest.$ac_ext 10244fi 10245 10246 10247 CFLAGS="$xorg_testset_save_CFLAGS" 10248 10249 eval supported=\$$cacheid 10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10251$as_echo "$supported" >&6; } 10252 if test "$supported" = "yes" ; then 10253 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10254 found="yes" 10255 fi 10256 fi 10257 10258 if test $found = "no" ; then 10259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10261 fi 10262 10263 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10265 fi 10266 10267 CFLAGS="$CFLAGS -errwarn" 10268 10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10270$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10271 cacheid=xorg_cv_cc_flag__errwarn 10272 if eval \${$cacheid+:} false; then : 10273 $as_echo_n "(cached) " >&6 10274else 10275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10276/* end confdefs.h. */ 10277int i; 10278int 10279main () 10280{ 10281 10282 ; 10283 return 0; 10284} 10285_ACEOF 10286if ac_fn_c_try_link "$LINENO"; then : 10287 eval $cacheid=yes 10288else 10289 eval $cacheid=no 10290fi 10291rm -f core conftest.err conftest.$ac_objext \ 10292 conftest$ac_exeext conftest.$ac_ext 10293fi 10294 10295 10296 CFLAGS="$xorg_testset_save_CFLAGS" 10297 10298 eval supported=\$$cacheid 10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10300$as_echo "$supported" >&6; } 10301 if test "$supported" = "yes" ; then 10302 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10303 found="yes" 10304 fi 10305 fi 10306 10307 10308 10309# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10310# activate it with -Werror, so we add it here explicitly. 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324xorg_testset_save_CFLAGS="$CFLAGS" 10325 10326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10329$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10330if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10331 $as_echo_n "(cached) " >&6 10332else 10333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10334/* end confdefs.h. */ 10335int i; 10336_ACEOF 10337if ac_fn_c_try_compile "$LINENO"; then : 10338 xorg_cv_cc_flag_unknown_warning_option=yes 10339else 10340 xorg_cv_cc_flag_unknown_warning_option=no 10341fi 10342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10343fi 10344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10345$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10347 CFLAGS="$xorg_testset_save_CFLAGS" 10348fi 10349 10350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10353 fi 10354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10356$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10357if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10358 $as_echo_n "(cached) " >&6 10359else 10360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10361/* end confdefs.h. */ 10362int i; 10363_ACEOF 10364if ac_fn_c_try_compile "$LINENO"; then : 10365 xorg_cv_cc_flag_unused_command_line_argument=yes 10366else 10367 xorg_cv_cc_flag_unused_command_line_argument=no 10368fi 10369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10370fi 10371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10372$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10374 CFLAGS="$xorg_testset_save_CFLAGS" 10375fi 10376 10377found="no" 10378 10379 if test $found = "no" ; then 10380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10382 fi 10383 10384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10386 fi 10387 10388 CFLAGS="$CFLAGS -Werror=attributes" 10389 10390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10391$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10392 cacheid=xorg_cv_cc_flag__Werror_attributes 10393 if eval \${$cacheid+:} false; then : 10394 $as_echo_n "(cached) " >&6 10395else 10396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10397/* end confdefs.h. */ 10398int i; 10399int 10400main () 10401{ 10402 10403 ; 10404 return 0; 10405} 10406_ACEOF 10407if ac_fn_c_try_link "$LINENO"; then : 10408 eval $cacheid=yes 10409else 10410 eval $cacheid=no 10411fi 10412rm -f core conftest.err conftest.$ac_objext \ 10413 conftest$ac_exeext conftest.$ac_ext 10414fi 10415 10416 10417 CFLAGS="$xorg_testset_save_CFLAGS" 10418 10419 eval supported=\$$cacheid 10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10421$as_echo "$supported" >&6; } 10422 if test "$supported" = "yes" ; then 10423 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10424 found="yes" 10425 fi 10426 fi 10427 10428 10429 10430if test "x$STRICT_COMPILE" = "xyes"; then 10431 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10432 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10433fi 10434 10435 10436 10437 10438 10439 10440cat >>confdefs.h <<_ACEOF 10441#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10442_ACEOF 10443 10444 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10445 if test "x$PVM" = "x"; then 10446 PVM="0" 10447 fi 10448 10449cat >>confdefs.h <<_ACEOF 10450#define PACKAGE_VERSION_MINOR $PVM 10451_ACEOF 10452 10453 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10454 if test "x$PVP" = "x"; then 10455 PVP="0" 10456 fi 10457 10458cat >>confdefs.h <<_ACEOF 10459#define PACKAGE_VERSION_PATCHLEVEL $PVP 10460_ACEOF 10461 10462 10463 10464CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10465mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10466|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10467echo 'git directory not found: installing possibly empty changelog.' >&2)" 10468 10469 10470 10471 10472macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10473INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10474mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10475|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10476echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10477 10478 10479 10480 10481 10482 10483if test x$APP_MAN_SUFFIX = x ; then 10484 APP_MAN_SUFFIX=1 10485fi 10486if test x$APP_MAN_DIR = x ; then 10487 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10488fi 10489 10490if test x$LIB_MAN_SUFFIX = x ; then 10491 LIB_MAN_SUFFIX=3 10492fi 10493if test x$LIB_MAN_DIR = x ; then 10494 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10495fi 10496 10497if test x$FILE_MAN_SUFFIX = x ; then 10498 case $host_os in 10499 # Solaris 2.0 - 11 use SysV man page sections 10500 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;; 10501 *) FILE_MAN_SUFFIX=5 ;; 10502 esac 10503fi 10504if test x$FILE_MAN_DIR = x ; then 10505 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10506fi 10507 10508if test x$MISC_MAN_SUFFIX = x ; then 10509 case $host_os in 10510 # Solaris 2.0 - 11 use SysV man page sections 10511 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;; 10512 *) MISC_MAN_SUFFIX=7 ;; 10513 esac 10514fi 10515if test x$MISC_MAN_DIR = x ; then 10516 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10517fi 10518 10519if test x$DRIVER_MAN_SUFFIX = x ; then 10520 case $host_os in 10521 # Solaris 2.0 - 11 use SysV man page sections 10522 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;; 10523 *) DRIVER_MAN_SUFFIX=4 ;; 10524 esac 10525fi 10526if test x$DRIVER_MAN_DIR = x ; then 10527 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10528fi 10529 10530if test x$ADMIN_MAN_SUFFIX = x ; then 10531 case $host_os in 10532 # Solaris 2.0 - 11 use SysV man page sections 10533 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;; 10534 *) ADMIN_MAN_SUFFIX=8 ;; 10535 esac 10536fi 10537if test x$ADMIN_MAN_DIR = x ; then 10538 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10539fi 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555XORG_MAN_PAGE="X Version 11" 10556 10557MAN_SUBSTS="\ 10558 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10559 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10560 -e 's|__xservername__|Xorg|g' \ 10561 -e 's|__xconfigfile__|xorg.conf|g' \ 10562 -e 's|__projectroot__|\$(prefix)|g' \ 10563 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10564 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10565 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10566 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10567 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10568 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10569 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10570 10571 10572 10573# Check whether --enable-silent-rules was given. 10574if test "${enable_silent_rules+set}" = set; then : 10575 enableval=$enable_silent_rules; 10576fi 10577 10578case $enable_silent_rules in # ((( 10579 yes) AM_DEFAULT_VERBOSITY=0;; 10580 no) AM_DEFAULT_VERBOSITY=1;; 10581 *) AM_DEFAULT_VERBOSITY=0;; 10582esac 10583am_make=${MAKE-make} 10584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10585$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10586if ${am_cv_make_support_nested_variables+:} false; then : 10587 $as_echo_n "(cached) " >&6 10588else 10589 if $as_echo 'TRUE=$(BAR$(V)) 10590BAR0=false 10591BAR1=true 10592V=1 10593am__doit: 10594 @$(TRUE) 10595.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10596 am_cv_make_support_nested_variables=yes 10597else 10598 am_cv_make_support_nested_variables=no 10599fi 10600fi 10601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10602$as_echo "$am_cv_make_support_nested_variables" >&6; } 10603if test $am_cv_make_support_nested_variables = yes; then 10604 AM_V='$(V)' 10605 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10606else 10607 AM_V=$AM_DEFAULT_VERBOSITY 10608 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10609fi 10610AM_BACKSLASH='\' 10611 10612 10613 10614 10615pkg_failed=no 10616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VIEWRES" >&5 10617$as_echo_n "checking for VIEWRES... " >&6; } 10618 10619if test -n "$VIEWRES_CFLAGS"; then 10620 pkg_cv_VIEWRES_CFLAGS="$VIEWRES_CFLAGS" 10621 elif test -n "$PKG_CONFIG"; then 10622 if test -n "$PKG_CONFIG" && \ 10623 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt\""; } >&5 10624 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt") 2>&5 10625 ac_status=$? 10626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10627 test $ac_status = 0; }; then 10628 pkg_cv_VIEWRES_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt" 2>/dev/null` 10629 test "x$?" != "x0" && pkg_failed=yes 10630else 10631 pkg_failed=yes 10632fi 10633 else 10634 pkg_failed=untried 10635fi 10636if test -n "$VIEWRES_LIBS"; then 10637 pkg_cv_VIEWRES_LIBS="$VIEWRES_LIBS" 10638 elif test -n "$PKG_CONFIG"; then 10639 if test -n "$PKG_CONFIG" && \ 10640 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt\""; } >&5 10641 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt") 2>&5 10642 ac_status=$? 10643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10644 test $ac_status = 0; }; then 10645 pkg_cv_VIEWRES_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt" 2>/dev/null` 10646 test "x$?" != "x0" && pkg_failed=yes 10647else 10648 pkg_failed=yes 10649fi 10650 else 10651 pkg_failed=untried 10652fi 10653 10654 10655 10656if test $pkg_failed = yes; then 10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10658$as_echo "no" >&6; } 10659 10660if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10661 _pkg_short_errors_supported=yes 10662else 10663 _pkg_short_errors_supported=no 10664fi 10665 if test $_pkg_short_errors_supported = yes; then 10666 VIEWRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt" 2>&1` 10667 else 10668 VIEWRES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt" 2>&1` 10669 fi 10670 # Put the nasty error message in config.log where it belongs 10671 echo "$VIEWRES_PKG_ERRORS" >&5 10672 10673 as_fn_error $? "Package requirements (xaw7 xmu xt) were not met: 10674 10675$VIEWRES_PKG_ERRORS 10676 10677Consider adjusting the PKG_CONFIG_PATH environment variable if you 10678installed software in a non-standard prefix. 10679 10680Alternatively, you may set the environment variables VIEWRES_CFLAGS 10681and VIEWRES_LIBS to avoid the need to call pkg-config. 10682See the pkg-config man page for more details." "$LINENO" 5 10683elif test $pkg_failed = untried; then 10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10685$as_echo "no" >&6; } 10686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10688as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10689is in your PATH or set the PKG_CONFIG environment variable to the full 10690path to pkg-config. 10691 10692Alternatively, you may set the environment variables VIEWRES_CFLAGS 10693and VIEWRES_LIBS to avoid the need to call pkg-config. 10694See the pkg-config man page for more details. 10695 10696To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10697See \`config.log' for more details" "$LINENO" 5; } 10698else 10699 VIEWRES_CFLAGS=$pkg_cv_VIEWRES_CFLAGS 10700 VIEWRES_LIBS=$pkg_cv_VIEWRES_LIBS 10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10702$as_echo "yes" >&6; } 10703 10704fi 10705 10706xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 10707 10708# Check whether --with-appdefaultdir was given. 10709if test "${with_appdefaultdir+set}" = set; then : 10710 withval=$with_appdefaultdir; appdefaultdir="$withval" 10711else 10712 appdefaultdir="${xt_appdefaultdir}" 10713fi 10714 10715 10716 10717 10718ac_config_files="$ac_config_files Makefile man/Makefile" 10719 10720cat >confcache <<\_ACEOF 10721# This file is a shell script that caches the results of configure 10722# tests run on this system so they can be shared between configure 10723# scripts and configure runs, see configure's option --config-cache. 10724# It is not useful on other systems. If it contains results you don't 10725# want to keep, you may remove or edit it. 10726# 10727# config.status only pays attention to the cache file if you give it 10728# the --recheck option to rerun configure. 10729# 10730# `ac_cv_env_foo' variables (set or unset) will be overridden when 10731# loading this file, other *unset* `ac_cv_foo' will be assigned the 10732# following values. 10733 10734_ACEOF 10735 10736# The following way of writing the cache mishandles newlines in values, 10737# but we know of no workaround that is simple, portable, and efficient. 10738# So, we kill variables containing newlines. 10739# Ultrix sh set writes to stderr and can't be redirected directly, 10740# and sets the high bit in the cache file unless we assign to the vars. 10741( 10742 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10743 eval ac_val=\$$ac_var 10744 case $ac_val in #( 10745 *${as_nl}*) 10746 case $ac_var in #( 10747 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10748$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10749 esac 10750 case $ac_var in #( 10751 _ | IFS | as_nl) ;; #( 10752 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10753 *) { eval $ac_var=; unset $ac_var;} ;; 10754 esac ;; 10755 esac 10756 done 10757 10758 (set) 2>&1 | 10759 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10760 *${as_nl}ac_space=\ *) 10761 # `set' does not quote correctly, so add quotes: double-quote 10762 # substitution turns \\\\ into \\, and sed turns \\ into \. 10763 sed -n \ 10764 "s/'/'\\\\''/g; 10765 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10766 ;; #( 10767 *) 10768 # `set' quotes correctly as required by POSIX, so do not add quotes. 10769 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10770 ;; 10771 esac | 10772 sort 10773) | 10774 sed ' 10775 /^ac_cv_env_/b end 10776 t clear 10777 :clear 10778 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10779 t end 10780 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10781 :end' >>confcache 10782if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10783 if test -w "$cache_file"; then 10784 if test "x$cache_file" != "x/dev/null"; then 10785 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10786$as_echo "$as_me: updating cache $cache_file" >&6;} 10787 if test ! -f "$cache_file" || test -h "$cache_file"; then 10788 cat confcache >"$cache_file" 10789 else 10790 case $cache_file in #( 10791 */* | ?:*) 10792 mv -f confcache "$cache_file"$$ && 10793 mv -f "$cache_file"$$ "$cache_file" ;; #( 10794 *) 10795 mv -f confcache "$cache_file" ;; 10796 esac 10797 fi 10798 fi 10799 else 10800 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10801$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10802 fi 10803fi 10804rm -f confcache 10805 10806test "x$prefix" = xNONE && prefix=$ac_default_prefix 10807# Let make expand exec_prefix. 10808test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10809 10810DEFS=-DHAVE_CONFIG_H 10811 10812ac_libobjs= 10813ac_ltlibobjs= 10814U= 10815for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10816 # 1. Remove the extension, and $U if already installed. 10817 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10818 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10819 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10820 # will be set to the directory where LIBOBJS objects are built. 10821 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10822 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10823done 10824LIBOBJS=$ac_libobjs 10825 10826LTLIBOBJS=$ac_ltlibobjs 10827 10828 10829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10830$as_echo_n "checking that generated files are newer than configure... " >&6; } 10831 if test -n "$am_sleep_pid"; then 10832 # Hide warnings about reused PIDs. 10833 wait $am_sleep_pid 2>/dev/null 10834 fi 10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10836$as_echo "done" >&6; } 10837 if test -n "$EXEEXT"; then 10838 am__EXEEXT_TRUE= 10839 am__EXEEXT_FALSE='#' 10840else 10841 am__EXEEXT_TRUE='#' 10842 am__EXEEXT_FALSE= 10843fi 10844 10845if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10846 as_fn_error $? "conditional \"AMDEP\" was never defined. 10847Usually this means the macro was only invoked conditionally." "$LINENO" 5 10848fi 10849if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10850 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10851Usually this means the macro was only invoked conditionally." "$LINENO" 5 10852fi 10853 10854: "${CONFIG_STATUS=./config.status}" 10855ac_write_fail=0 10856ac_clean_files_save=$ac_clean_files 10857ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10858{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10859$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10860as_write_fail=0 10861cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10862#! $SHELL 10863# Generated by $as_me. 10864# Run this file to recreate the current configuration. 10865# Compiler output produced by configure, useful for debugging 10866# configure, is in config.log if it exists. 10867 10868debug=false 10869ac_cs_recheck=false 10870ac_cs_silent=false 10871 10872SHELL=\${CONFIG_SHELL-$SHELL} 10873export SHELL 10874_ASEOF 10875cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10876## -------------------- ## 10877## M4sh Initialization. ## 10878## -------------------- ## 10879 10880# Be more Bourne compatible 10881DUALCASE=1; export DUALCASE # for MKS sh 10882if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10883 emulate sh 10884 NULLCMD=: 10885 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10886 # is contrary to our usage. Disable this feature. 10887 alias -g '${1+"$@"}'='"$@"' 10888 setopt NO_GLOB_SUBST 10889else 10890 case `(set -o) 2>/dev/null` in #( 10891 *posix*) : 10892 set -o posix ;; #( 10893 *) : 10894 ;; 10895esac 10896fi 10897 10898 10899as_nl=' 10900' 10901export as_nl 10902# Printing a long string crashes Solaris 7 /usr/bin/printf. 10903as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10904as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10905as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10906# Prefer a ksh shell builtin over an external printf program on Solaris, 10907# but without wasting forks for bash or zsh. 10908if test -z "$BASH_VERSION$ZSH_VERSION" \ 10909 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10910 as_echo='print -r --' 10911 as_echo_n='print -rn --' 10912elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10913 as_echo='printf %s\n' 10914 as_echo_n='printf %s' 10915else 10916 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10917 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10918 as_echo_n='/usr/ucb/echo -n' 10919 else 10920 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10921 as_echo_n_body='eval 10922 arg=$1; 10923 case $arg in #( 10924 *"$as_nl"*) 10925 expr "X$arg" : "X\\(.*\\)$as_nl"; 10926 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10927 esac; 10928 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10929 ' 10930 export as_echo_n_body 10931 as_echo_n='sh -c $as_echo_n_body as_echo' 10932 fi 10933 export as_echo_body 10934 as_echo='sh -c $as_echo_body as_echo' 10935fi 10936 10937# The user is always right. 10938if test "${PATH_SEPARATOR+set}" != set; then 10939 PATH_SEPARATOR=: 10940 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10941 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10942 PATH_SEPARATOR=';' 10943 } 10944fi 10945 10946 10947# IFS 10948# We need space, tab and new line, in precisely that order. Quoting is 10949# there to prevent editors from complaining about space-tab. 10950# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10951# splitting by setting IFS to empty value.) 10952IFS=" "" $as_nl" 10953 10954# Find who we are. Look in the path if we contain no directory separator. 10955as_myself= 10956case $0 in #(( 10957 *[\\/]* ) as_myself=$0 ;; 10958 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10959for as_dir in $PATH 10960do 10961 IFS=$as_save_IFS 10962 test -z "$as_dir" && as_dir=. 10963 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10964 done 10965IFS=$as_save_IFS 10966 10967 ;; 10968esac 10969# We did not find ourselves, most probably we were run as `sh COMMAND' 10970# in which case we are not to be found in the path. 10971if test "x$as_myself" = x; then 10972 as_myself=$0 10973fi 10974if test ! -f "$as_myself"; then 10975 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10976 exit 1 10977fi 10978 10979# Unset variables that we do not need and which cause bugs (e.g. in 10980# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10981# suppresses any "Segmentation fault" message there. '((' could 10982# trigger a bug in pdksh 5.2.14. 10983for as_var in BASH_ENV ENV MAIL MAILPATH 10984do eval test x\${$as_var+set} = xset \ 10985 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10986done 10987PS1='$ ' 10988PS2='> ' 10989PS4='+ ' 10990 10991# NLS nuisances. 10992LC_ALL=C 10993export LC_ALL 10994LANGUAGE=C 10995export LANGUAGE 10996 10997# CDPATH. 10998(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10999 11000 11001# as_fn_error STATUS ERROR [LINENO LOG_FD] 11002# ---------------------------------------- 11003# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11004# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11005# script with STATUS, using 1 if that was 0. 11006as_fn_error () 11007{ 11008 as_status=$1; test $as_status -eq 0 && as_status=1 11009 if test "$4"; then 11010 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11011 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11012 fi 11013 $as_echo "$as_me: error: $2" >&2 11014 as_fn_exit $as_status 11015} # as_fn_error 11016 11017 11018# as_fn_set_status STATUS 11019# ----------------------- 11020# Set $? to STATUS, without forking. 11021as_fn_set_status () 11022{ 11023 return $1 11024} # as_fn_set_status 11025 11026# as_fn_exit STATUS 11027# ----------------- 11028# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11029as_fn_exit () 11030{ 11031 set +e 11032 as_fn_set_status $1 11033 exit $1 11034} # as_fn_exit 11035 11036# as_fn_unset VAR 11037# --------------- 11038# Portably unset VAR. 11039as_fn_unset () 11040{ 11041 { eval $1=; unset $1;} 11042} 11043as_unset=as_fn_unset 11044# as_fn_append VAR VALUE 11045# ---------------------- 11046# Append the text in VALUE to the end of the definition contained in VAR. Take 11047# advantage of any shell optimizations that allow amortized linear growth over 11048# repeated appends, instead of the typical quadratic growth present in naive 11049# implementations. 11050if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11051 eval 'as_fn_append () 11052 { 11053 eval $1+=\$2 11054 }' 11055else 11056 as_fn_append () 11057 { 11058 eval $1=\$$1\$2 11059 } 11060fi # as_fn_append 11061 11062# as_fn_arith ARG... 11063# ------------------ 11064# Perform arithmetic evaluation on the ARGs, and store the result in the 11065# global $as_val. Take advantage of shells that can avoid forks. The arguments 11066# must be portable across $(()) and expr. 11067if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11068 eval 'as_fn_arith () 11069 { 11070 as_val=$(( $* )) 11071 }' 11072else 11073 as_fn_arith () 11074 { 11075 as_val=`expr "$@" || test $? -eq 1` 11076 } 11077fi # as_fn_arith 11078 11079 11080if expr a : '\(a\)' >/dev/null 2>&1 && 11081 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11082 as_expr=expr 11083else 11084 as_expr=false 11085fi 11086 11087if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11088 as_basename=basename 11089else 11090 as_basename=false 11091fi 11092 11093if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11094 as_dirname=dirname 11095else 11096 as_dirname=false 11097fi 11098 11099as_me=`$as_basename -- "$0" || 11100$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11101 X"$0" : 'X\(//\)$' \| \ 11102 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11103$as_echo X/"$0" | 11104 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11105 s//\1/ 11106 q 11107 } 11108 /^X\/\(\/\/\)$/{ 11109 s//\1/ 11110 q 11111 } 11112 /^X\/\(\/\).*/{ 11113 s//\1/ 11114 q 11115 } 11116 s/.*/./; q'` 11117 11118# Avoid depending upon Character Ranges. 11119as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11120as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11121as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11122as_cr_digits='0123456789' 11123as_cr_alnum=$as_cr_Letters$as_cr_digits 11124 11125ECHO_C= ECHO_N= ECHO_T= 11126case `echo -n x` in #((((( 11127-n*) 11128 case `echo 'xy\c'` in 11129 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11130 xy) ECHO_C='\c';; 11131 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11132 ECHO_T=' ';; 11133 esac;; 11134*) 11135 ECHO_N='-n';; 11136esac 11137 11138rm -f conf$$ conf$$.exe conf$$.file 11139if test -d conf$$.dir; then 11140 rm -f conf$$.dir/conf$$.file 11141else 11142 rm -f conf$$.dir 11143 mkdir conf$$.dir 2>/dev/null 11144fi 11145if (echo >conf$$.file) 2>/dev/null; then 11146 if ln -s conf$$.file conf$$ 2>/dev/null; then 11147 as_ln_s='ln -s' 11148 # ... but there are two gotchas: 11149 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11150 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11151 # In both cases, we have to default to `cp -pR'. 11152 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11153 as_ln_s='cp -pR' 11154 elif ln conf$$.file conf$$ 2>/dev/null; then 11155 as_ln_s=ln 11156 else 11157 as_ln_s='cp -pR' 11158 fi 11159else 11160 as_ln_s='cp -pR' 11161fi 11162rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11163rmdir conf$$.dir 2>/dev/null 11164 11165 11166# as_fn_mkdir_p 11167# ------------- 11168# Create "$as_dir" as a directory, including parents if necessary. 11169as_fn_mkdir_p () 11170{ 11171 11172 case $as_dir in #( 11173 -*) as_dir=./$as_dir;; 11174 esac 11175 test -d "$as_dir" || eval $as_mkdir_p || { 11176 as_dirs= 11177 while :; do 11178 case $as_dir in #( 11179 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11180 *) as_qdir=$as_dir;; 11181 esac 11182 as_dirs="'$as_qdir' $as_dirs" 11183 as_dir=`$as_dirname -- "$as_dir" || 11184$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11185 X"$as_dir" : 'X\(//\)[^/]' \| \ 11186 X"$as_dir" : 'X\(//\)$' \| \ 11187 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11188$as_echo X"$as_dir" | 11189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11190 s//\1/ 11191 q 11192 } 11193 /^X\(\/\/\)[^/].*/{ 11194 s//\1/ 11195 q 11196 } 11197 /^X\(\/\/\)$/{ 11198 s//\1/ 11199 q 11200 } 11201 /^X\(\/\).*/{ 11202 s//\1/ 11203 q 11204 } 11205 s/.*/./; q'` 11206 test -d "$as_dir" && break 11207 done 11208 test -z "$as_dirs" || eval "mkdir $as_dirs" 11209 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11210 11211 11212} # as_fn_mkdir_p 11213if mkdir -p . 2>/dev/null; then 11214 as_mkdir_p='mkdir -p "$as_dir"' 11215else 11216 test -d ./-p && rmdir ./-p 11217 as_mkdir_p=false 11218fi 11219 11220 11221# as_fn_executable_p FILE 11222# ----------------------- 11223# Test if FILE is an executable regular file. 11224as_fn_executable_p () 11225{ 11226 test -f "$1" && test -x "$1" 11227} # as_fn_executable_p 11228as_test_x='test -x' 11229as_executable_p=as_fn_executable_p 11230 11231# Sed expression to map a string onto a valid CPP name. 11232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11233 11234# Sed expression to map a string onto a valid variable name. 11235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11236 11237 11238exec 6>&1 11239## ----------------------------------- ## 11240## Main body of $CONFIG_STATUS script. ## 11241## ----------------------------------- ## 11242_ASEOF 11243test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11244 11245cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11246# Save the log message, to keep $0 and so on meaningful, and to 11247# report actual input values of CONFIG_FILES etc. instead of their 11248# values after options handling. 11249ac_log=" 11250This file was extended by viewres $as_me 1.0.5, which was 11251generated by GNU Autoconf 2.69. Invocation command line was 11252 11253 CONFIG_FILES = $CONFIG_FILES 11254 CONFIG_HEADERS = $CONFIG_HEADERS 11255 CONFIG_LINKS = $CONFIG_LINKS 11256 CONFIG_COMMANDS = $CONFIG_COMMANDS 11257 $ $0 $@ 11258 11259on `(hostname || uname -n) 2>/dev/null | sed 1q` 11260" 11261 11262_ACEOF 11263 11264case $ac_config_files in *" 11265"*) set x $ac_config_files; shift; ac_config_files=$*;; 11266esac 11267 11268case $ac_config_headers in *" 11269"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11270esac 11271 11272 11273cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11274# Files that config.status was made for. 11275config_files="$ac_config_files" 11276config_headers="$ac_config_headers" 11277config_commands="$ac_config_commands" 11278 11279_ACEOF 11280 11281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11282ac_cs_usage="\ 11283\`$as_me' instantiates files and other configuration actions 11284from templates according to the current configuration. Unless the files 11285and actions are specified as TAGs, all are instantiated by default. 11286 11287Usage: $0 [OPTION]... [TAG]... 11288 11289 -h, --help print this help, then exit 11290 -V, --version print version number and configuration settings, then exit 11291 --config print configuration, then exit 11292 -q, --quiet, --silent 11293 do not print progress messages 11294 -d, --debug don't remove temporary files 11295 --recheck update $as_me by reconfiguring in the same conditions 11296 --file=FILE[:TEMPLATE] 11297 instantiate the configuration file FILE 11298 --header=FILE[:TEMPLATE] 11299 instantiate the configuration header FILE 11300 11301Configuration files: 11302$config_files 11303 11304Configuration headers: 11305$config_headers 11306 11307Configuration commands: 11308$config_commands 11309 11310Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11311 11312_ACEOF 11313cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11314ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11315ac_cs_version="\\ 11316viewres config.status 1.0.5 11317configured by $0, generated by GNU Autoconf 2.69, 11318 with options \\"\$ac_cs_config\\" 11319 11320Copyright (C) 2012 Free Software Foundation, Inc. 11321This config.status script is free software; the Free Software Foundation 11322gives unlimited permission to copy, distribute and modify it." 11323 11324ac_pwd='$ac_pwd' 11325srcdir='$srcdir' 11326INSTALL='$INSTALL' 11327MKDIR_P='$MKDIR_P' 11328AWK='$AWK' 11329test -n "\$AWK" || AWK=awk 11330_ACEOF 11331 11332cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11333# The default lists apply if the user does not specify any file. 11334ac_need_defaults=: 11335while test $# != 0 11336do 11337 case $1 in 11338 --*=?*) 11339 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11340 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11341 ac_shift=: 11342 ;; 11343 --*=) 11344 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11345 ac_optarg= 11346 ac_shift=: 11347 ;; 11348 *) 11349 ac_option=$1 11350 ac_optarg=$2 11351 ac_shift=shift 11352 ;; 11353 esac 11354 11355 case $ac_option in 11356 # Handling of the options. 11357 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11358 ac_cs_recheck=: ;; 11359 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11360 $as_echo "$ac_cs_version"; exit ;; 11361 --config | --confi | --conf | --con | --co | --c ) 11362 $as_echo "$ac_cs_config"; exit ;; 11363 --debug | --debu | --deb | --de | --d | -d ) 11364 debug=: ;; 11365 --file | --fil | --fi | --f ) 11366 $ac_shift 11367 case $ac_optarg in 11368 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11369 '') as_fn_error $? "missing file argument" ;; 11370 esac 11371 as_fn_append CONFIG_FILES " '$ac_optarg'" 11372 ac_need_defaults=false;; 11373 --header | --heade | --head | --hea ) 11374 $ac_shift 11375 case $ac_optarg in 11376 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11377 esac 11378 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11379 ac_need_defaults=false;; 11380 --he | --h) 11381 # Conflict between --help and --header 11382 as_fn_error $? "ambiguous option: \`$1' 11383Try \`$0 --help' for more information.";; 11384 --help | --hel | -h ) 11385 $as_echo "$ac_cs_usage"; exit ;; 11386 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11387 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11388 ac_cs_silent=: ;; 11389 11390 # This is an error. 11391 -*) as_fn_error $? "unrecognized option: \`$1' 11392Try \`$0 --help' for more information." ;; 11393 11394 *) as_fn_append ac_config_targets " $1" 11395 ac_need_defaults=false ;; 11396 11397 esac 11398 shift 11399done 11400 11401ac_configure_extra_args= 11402 11403if $ac_cs_silent; then 11404 exec 6>/dev/null 11405 ac_configure_extra_args="$ac_configure_extra_args --silent" 11406fi 11407 11408_ACEOF 11409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11410if \$ac_cs_recheck; then 11411 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11412 shift 11413 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11414 CONFIG_SHELL='$SHELL' 11415 export CONFIG_SHELL 11416 exec "\$@" 11417fi 11418 11419_ACEOF 11420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11421exec 5>>config.log 11422{ 11423 echo 11424 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11425## Running $as_me. ## 11426_ASBOX 11427 $as_echo "$ac_log" 11428} >&5 11429 11430_ACEOF 11431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11432# 11433# INIT-COMMANDS 11434# 11435AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11436 11437_ACEOF 11438 11439cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11440 11441# Handling of arguments. 11442for ac_config_target in $ac_config_targets 11443do 11444 case $ac_config_target in 11445 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11446 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11447 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11448 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11449 11450 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11451 esac 11452done 11453 11454 11455# If the user did not use the arguments to specify the items to instantiate, 11456# then the envvar interface is used. Set only those that are not. 11457# We use the long form for the default assignment because of an extremely 11458# bizarre bug on SunOS 4.1.3. 11459if $ac_need_defaults; then 11460 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11461 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11462 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11463fi 11464 11465# Have a temporary directory for convenience. Make it in the build tree 11466# simply because there is no reason against having it here, and in addition, 11467# creating and moving files from /tmp can sometimes cause problems. 11468# Hook for its removal unless debugging. 11469# Note that there is a small window in which the directory will not be cleaned: 11470# after its creation but before its name has been assigned to `$tmp'. 11471$debug || 11472{ 11473 tmp= ac_tmp= 11474 trap 'exit_status=$? 11475 : "${ac_tmp:=$tmp}" 11476 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11477' 0 11478 trap 'as_fn_exit 1' 1 2 13 15 11479} 11480# Create a (secure) tmp directory for tmp files. 11481 11482{ 11483 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11484 test -d "$tmp" 11485} || 11486{ 11487 tmp=./conf$$-$RANDOM 11488 (umask 077 && mkdir "$tmp") 11489} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11490ac_tmp=$tmp 11491 11492# Set up the scripts for CONFIG_FILES section. 11493# No need to generate them if there are no CONFIG_FILES. 11494# This happens for instance with `./config.status config.h'. 11495if test -n "$CONFIG_FILES"; then 11496 11497 11498ac_cr=`echo X | tr X '\015'` 11499# On cygwin, bash can eat \r inside `` if the user requested igncr. 11500# But we know of no other shell where ac_cr would be empty at this 11501# point, so we can use a bashism as a fallback. 11502if test "x$ac_cr" = x; then 11503 eval ac_cr=\$\'\\r\' 11504fi 11505ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11506if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11507 ac_cs_awk_cr='\\r' 11508else 11509 ac_cs_awk_cr=$ac_cr 11510fi 11511 11512echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11513_ACEOF 11514 11515 11516{ 11517 echo "cat >conf$$subs.awk <<_ACEOF" && 11518 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11519 echo "_ACEOF" 11520} >conf$$subs.sh || 11521 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11522ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11523ac_delim='%!_!# ' 11524for ac_last_try in false false false false false :; do 11525 . ./conf$$subs.sh || 11526 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11527 11528 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11529 if test $ac_delim_n = $ac_delim_num; then 11530 break 11531 elif $ac_last_try; then 11532 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11533 else 11534 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11535 fi 11536done 11537rm -f conf$$subs.sh 11538 11539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11540cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11541_ACEOF 11542sed -n ' 11543h 11544s/^/S["/; s/!.*/"]=/ 11545p 11546g 11547s/^[^!]*!// 11548:repl 11549t repl 11550s/'"$ac_delim"'$// 11551t delim 11552:nl 11553h 11554s/\(.\{148\}\)..*/\1/ 11555t more1 11556s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11557p 11558n 11559b repl 11560:more1 11561s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11562p 11563g 11564s/.\{148\}// 11565t nl 11566:delim 11567h 11568s/\(.\{148\}\)..*/\1/ 11569t more2 11570s/["\\]/\\&/g; s/^/"/; s/$/"/ 11571p 11572b 11573:more2 11574s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11575p 11576g 11577s/.\{148\}// 11578t delim 11579' <conf$$subs.awk | sed ' 11580/^[^""]/{ 11581 N 11582 s/\n// 11583} 11584' >>$CONFIG_STATUS || ac_write_fail=1 11585rm -f conf$$subs.awk 11586cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11587_ACAWK 11588cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11589 for (key in S) S_is_set[key] = 1 11590 FS = "" 11591 11592} 11593{ 11594 line = $ 0 11595 nfields = split(line, field, "@") 11596 substed = 0 11597 len = length(field[1]) 11598 for (i = 2; i < nfields; i++) { 11599 key = field[i] 11600 keylen = length(key) 11601 if (S_is_set[key]) { 11602 value = S[key] 11603 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11604 len += length(value) + length(field[++i]) 11605 substed = 1 11606 } else 11607 len += 1 + keylen 11608 } 11609 11610 print line 11611} 11612 11613_ACAWK 11614_ACEOF 11615cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11616if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11617 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11618else 11619 cat 11620fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11621 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11622_ACEOF 11623 11624# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11625# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11626# trailing colons and then remove the whole line if VPATH becomes empty 11627# (actually we leave an empty line to preserve line numbers). 11628if test "x$srcdir" = x.; then 11629 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11630h 11631s/// 11632s/^/:/ 11633s/[ ]*$/:/ 11634s/:\$(srcdir):/:/g 11635s/:\${srcdir}:/:/g 11636s/:@srcdir@:/:/g 11637s/^:*// 11638s/:*$// 11639x 11640s/\(=[ ]*\).*/\1/ 11641G 11642s/\n// 11643s/^[^=]*=[ ]*$// 11644}' 11645fi 11646 11647cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11648fi # test -n "$CONFIG_FILES" 11649 11650# Set up the scripts for CONFIG_HEADERS section. 11651# No need to generate them if there are no CONFIG_HEADERS. 11652# This happens for instance with `./config.status Makefile'. 11653if test -n "$CONFIG_HEADERS"; then 11654cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11655BEGIN { 11656_ACEOF 11657 11658# Transform confdefs.h into an awk script `defines.awk', embedded as 11659# here-document in config.status, that substitutes the proper values into 11660# config.h.in to produce config.h. 11661 11662# Create a delimiter string that does not exist in confdefs.h, to ease 11663# handling of long lines. 11664ac_delim='%!_!# ' 11665for ac_last_try in false false :; do 11666 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11667 if test -z "$ac_tt"; then 11668 break 11669 elif $ac_last_try; then 11670 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11671 else 11672 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11673 fi 11674done 11675 11676# For the awk script, D is an array of macro values keyed by name, 11677# likewise P contains macro parameters if any. Preserve backslash 11678# newline sequences. 11679 11680ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11681sed -n ' 11682s/.\{148\}/&'"$ac_delim"'/g 11683t rset 11684:rset 11685s/^[ ]*#[ ]*define[ ][ ]*/ / 11686t def 11687d 11688:def 11689s/\\$// 11690t bsnl 11691s/["\\]/\\&/g 11692s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11693D["\1"]=" \3"/p 11694s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11695d 11696:bsnl 11697s/["\\]/\\&/g 11698s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11699D["\1"]=" \3\\\\\\n"\\/p 11700t cont 11701s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11702t cont 11703d 11704:cont 11705n 11706s/.\{148\}/&'"$ac_delim"'/g 11707t clear 11708:clear 11709s/\\$// 11710t bsnlc 11711s/["\\]/\\&/g; s/^/"/; s/$/"/p 11712d 11713:bsnlc 11714s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11715b cont 11716' <confdefs.h | sed ' 11717s/'"$ac_delim"'/"\\\ 11718"/g' >>$CONFIG_STATUS || ac_write_fail=1 11719 11720cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11721 for (key in D) D_is_set[key] = 1 11722 FS = "" 11723} 11724/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11725 line = \$ 0 11726 split(line, arg, " ") 11727 if (arg[1] == "#") { 11728 defundef = arg[2] 11729 mac1 = arg[3] 11730 } else { 11731 defundef = substr(arg[1], 2) 11732 mac1 = arg[2] 11733 } 11734 split(mac1, mac2, "(") #) 11735 macro = mac2[1] 11736 prefix = substr(line, 1, index(line, defundef) - 1) 11737 if (D_is_set[macro]) { 11738 # Preserve the white space surrounding the "#". 11739 print prefix "define", macro P[macro] D[macro] 11740 next 11741 } else { 11742 # Replace #undef with comments. This is necessary, for example, 11743 # in the case of _POSIX_SOURCE, which is predefined and required 11744 # on some systems where configure will not decide to define it. 11745 if (defundef == "undef") { 11746 print "/*", prefix defundef, macro, "*/" 11747 next 11748 } 11749 } 11750} 11751{ print } 11752_ACAWK 11753_ACEOF 11754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11755 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11756fi # test -n "$CONFIG_HEADERS" 11757 11758 11759eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11760shift 11761for ac_tag 11762do 11763 case $ac_tag in 11764 :[FHLC]) ac_mode=$ac_tag; continue;; 11765 esac 11766 case $ac_mode$ac_tag in 11767 :[FHL]*:*);; 11768 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11769 :[FH]-) ac_tag=-:-;; 11770 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11771 esac 11772 ac_save_IFS=$IFS 11773 IFS=: 11774 set x $ac_tag 11775 IFS=$ac_save_IFS 11776 shift 11777 ac_file=$1 11778 shift 11779 11780 case $ac_mode in 11781 :L) ac_source=$1;; 11782 :[FH]) 11783 ac_file_inputs= 11784 for ac_f 11785 do 11786 case $ac_f in 11787 -) ac_f="$ac_tmp/stdin";; 11788 *) # Look for the file first in the build tree, then in the source tree 11789 # (if the path is not absolute). The absolute path cannot be DOS-style, 11790 # because $ac_f cannot contain `:'. 11791 test -f "$ac_f" || 11792 case $ac_f in 11793 [\\/$]*) false;; 11794 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11795 esac || 11796 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11797 esac 11798 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11799 as_fn_append ac_file_inputs " '$ac_f'" 11800 done 11801 11802 # Let's still pretend it is `configure' which instantiates (i.e., don't 11803 # use $as_me), people would be surprised to read: 11804 # /* config.h. Generated by config.status. */ 11805 configure_input='Generated from '` 11806 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11807 `' by configure.' 11808 if test x"$ac_file" != x-; then 11809 configure_input="$ac_file. $configure_input" 11810 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11811$as_echo "$as_me: creating $ac_file" >&6;} 11812 fi 11813 # Neutralize special characters interpreted by sed in replacement strings. 11814 case $configure_input in #( 11815 *\&* | *\|* | *\\* ) 11816 ac_sed_conf_input=`$as_echo "$configure_input" | 11817 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11818 *) ac_sed_conf_input=$configure_input;; 11819 esac 11820 11821 case $ac_tag in 11822 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11823 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11824 esac 11825 ;; 11826 esac 11827 11828 ac_dir=`$as_dirname -- "$ac_file" || 11829$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11830 X"$ac_file" : 'X\(//\)[^/]' \| \ 11831 X"$ac_file" : 'X\(//\)$' \| \ 11832 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11833$as_echo X"$ac_file" | 11834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11835 s//\1/ 11836 q 11837 } 11838 /^X\(\/\/\)[^/].*/{ 11839 s//\1/ 11840 q 11841 } 11842 /^X\(\/\/\)$/{ 11843 s//\1/ 11844 q 11845 } 11846 /^X\(\/\).*/{ 11847 s//\1/ 11848 q 11849 } 11850 s/.*/./; q'` 11851 as_dir="$ac_dir"; as_fn_mkdir_p 11852 ac_builddir=. 11853 11854case "$ac_dir" in 11855.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11856*) 11857 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11858 # A ".." for each directory in $ac_dir_suffix. 11859 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11860 case $ac_top_builddir_sub in 11861 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11862 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11863 esac ;; 11864esac 11865ac_abs_top_builddir=$ac_pwd 11866ac_abs_builddir=$ac_pwd$ac_dir_suffix 11867# for backward compatibility: 11868ac_top_builddir=$ac_top_build_prefix 11869 11870case $srcdir in 11871 .) # We are building in place. 11872 ac_srcdir=. 11873 ac_top_srcdir=$ac_top_builddir_sub 11874 ac_abs_top_srcdir=$ac_pwd ;; 11875 [\\/]* | ?:[\\/]* ) # Absolute name. 11876 ac_srcdir=$srcdir$ac_dir_suffix; 11877 ac_top_srcdir=$srcdir 11878 ac_abs_top_srcdir=$srcdir ;; 11879 *) # Relative name. 11880 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11881 ac_top_srcdir=$ac_top_build_prefix$srcdir 11882 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11883esac 11884ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11885 11886 11887 case $ac_mode in 11888 :F) 11889 # 11890 # CONFIG_FILE 11891 # 11892 11893 case $INSTALL in 11894 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11895 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11896 esac 11897 ac_MKDIR_P=$MKDIR_P 11898 case $MKDIR_P in 11899 [\\/$]* | ?:[\\/]* ) ;; 11900 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11901 esac 11902_ACEOF 11903 11904cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11905# If the template does not know about datarootdir, expand it. 11906# FIXME: This hack should be removed a few years after 2.60. 11907ac_datarootdir_hack=; ac_datarootdir_seen= 11908ac_sed_dataroot=' 11909/datarootdir/ { 11910 p 11911 q 11912} 11913/@datadir@/p 11914/@docdir@/p 11915/@infodir@/p 11916/@localedir@/p 11917/@mandir@/p' 11918case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11919*datarootdir*) ac_datarootdir_seen=yes;; 11920*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11922$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11923_ACEOF 11924cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11925 ac_datarootdir_hack=' 11926 s&@datadir@&$datadir&g 11927 s&@docdir@&$docdir&g 11928 s&@infodir@&$infodir&g 11929 s&@localedir@&$localedir&g 11930 s&@mandir@&$mandir&g 11931 s&\\\${datarootdir}&$datarootdir&g' ;; 11932esac 11933_ACEOF 11934 11935# Neutralize VPATH when `$srcdir' = `.'. 11936# Shell code in configure.ac might set extrasub. 11937# FIXME: do we really want to maintain this feature? 11938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11939ac_sed_extra="$ac_vpsub 11940$extrasub 11941_ACEOF 11942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11943:t 11944/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11945s|@configure_input@|$ac_sed_conf_input|;t t 11946s&@top_builddir@&$ac_top_builddir_sub&;t t 11947s&@top_build_prefix@&$ac_top_build_prefix&;t t 11948s&@srcdir@&$ac_srcdir&;t t 11949s&@abs_srcdir@&$ac_abs_srcdir&;t t 11950s&@top_srcdir@&$ac_top_srcdir&;t t 11951s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11952s&@builddir@&$ac_builddir&;t t 11953s&@abs_builddir@&$ac_abs_builddir&;t t 11954s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11955s&@INSTALL@&$ac_INSTALL&;t t 11956s&@MKDIR_P@&$ac_MKDIR_P&;t t 11957$ac_datarootdir_hack 11958" 11959eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11960 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11961 11962test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11963 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11964 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11965 "$ac_tmp/out"`; test -z "$ac_out"; } && 11966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11967which seems to be undefined. Please make sure it is defined" >&5 11968$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11969which seems to be undefined. Please make sure it is defined" >&2;} 11970 11971 rm -f "$ac_tmp/stdin" 11972 case $ac_file in 11973 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11974 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11975 esac \ 11976 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11977 ;; 11978 :H) 11979 # 11980 # CONFIG_HEADER 11981 # 11982 if test x"$ac_file" != x-; then 11983 { 11984 $as_echo "/* $configure_input */" \ 11985 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11986 } >"$ac_tmp/config.h" \ 11987 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11988 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11989 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11990$as_echo "$as_me: $ac_file is unchanged" >&6;} 11991 else 11992 rm -f "$ac_file" 11993 mv "$ac_tmp/config.h" "$ac_file" \ 11994 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11995 fi 11996 else 11997 $as_echo "/* $configure_input */" \ 11998 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11999 || as_fn_error $? "could not create -" "$LINENO" 5 12000 fi 12001# Compute "$ac_file"'s index in $config_headers. 12002_am_arg="$ac_file" 12003_am_stamp_count=1 12004for _am_header in $config_headers :; do 12005 case $_am_header in 12006 $_am_arg | $_am_arg:* ) 12007 break ;; 12008 * ) 12009 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12010 esac 12011done 12012echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12013$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12014 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12015 X"$_am_arg" : 'X\(//\)$' \| \ 12016 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12017$as_echo X"$_am_arg" | 12018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12019 s//\1/ 12020 q 12021 } 12022 /^X\(\/\/\)[^/].*/{ 12023 s//\1/ 12024 q 12025 } 12026 /^X\(\/\/\)$/{ 12027 s//\1/ 12028 q 12029 } 12030 /^X\(\/\).*/{ 12031 s//\1/ 12032 q 12033 } 12034 s/.*/./; q'`/stamp-h$_am_stamp_count 12035 ;; 12036 12037 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12038$as_echo "$as_me: executing $ac_file commands" >&6;} 12039 ;; 12040 esac 12041 12042 12043 case $ac_file$ac_mode in 12044 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12045 # Older Autoconf quotes --file arguments for eval, but not when files 12046 # are listed without --file. Let's play safe and only enable the eval 12047 # if we detect the quoting. 12048 case $CONFIG_FILES in 12049 *\'*) eval set x "$CONFIG_FILES" ;; 12050 *) set x $CONFIG_FILES ;; 12051 esac 12052 shift 12053 for mf 12054 do 12055 # Strip MF so we end up with the name of the file. 12056 mf=`echo "$mf" | sed -e 's/:.*$//'` 12057 # Check whether this is an Automake generated Makefile or not. 12058 # We used to match only the files named 'Makefile.in', but 12059 # some people rename them; so instead we look at the file content. 12060 # Grep'ing the first line is not enough: some people post-process 12061 # each Makefile.in and add a new line on top of each file to say so. 12062 # Grep'ing the whole file is not good either: AIX grep has a line 12063 # limit of 2048, but all sed's we know have understand at least 4000. 12064 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12065 dirpart=`$as_dirname -- "$mf" || 12066$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12067 X"$mf" : 'X\(//\)[^/]' \| \ 12068 X"$mf" : 'X\(//\)$' \| \ 12069 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12070$as_echo X"$mf" | 12071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12072 s//\1/ 12073 q 12074 } 12075 /^X\(\/\/\)[^/].*/{ 12076 s//\1/ 12077 q 12078 } 12079 /^X\(\/\/\)$/{ 12080 s//\1/ 12081 q 12082 } 12083 /^X\(\/\).*/{ 12084 s//\1/ 12085 q 12086 } 12087 s/.*/./; q'` 12088 else 12089 continue 12090 fi 12091 # Extract the definition of DEPDIR, am__include, and am__quote 12092 # from the Makefile without running 'make'. 12093 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12094 test -z "$DEPDIR" && continue 12095 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12096 test -z "$am__include" && continue 12097 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12098 # Find all dependency output files, they are included files with 12099 # $(DEPDIR) in their names. We invoke sed twice because it is the 12100 # simplest approach to changing $(DEPDIR) to its actual value in the 12101 # expansion. 12102 for file in `sed -n " 12103 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12104 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12105 # Make sure the directory exists. 12106 test -f "$dirpart/$file" && continue 12107 fdir=`$as_dirname -- "$file" || 12108$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12109 X"$file" : 'X\(//\)[^/]' \| \ 12110 X"$file" : 'X\(//\)$' \| \ 12111 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12112$as_echo X"$file" | 12113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12114 s//\1/ 12115 q 12116 } 12117 /^X\(\/\/\)[^/].*/{ 12118 s//\1/ 12119 q 12120 } 12121 /^X\(\/\/\)$/{ 12122 s//\1/ 12123 q 12124 } 12125 /^X\(\/\).*/{ 12126 s//\1/ 12127 q 12128 } 12129 s/.*/./; q'` 12130 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12131 # echo "creating $dirpart/$file" 12132 echo '# dummy' > "$dirpart/$file" 12133 done 12134 done 12135} 12136 ;; 12137 12138 esac 12139done # for ac_tag 12140 12141 12142as_fn_exit 0 12143_ACEOF 12144ac_clean_files=$ac_clean_files_save 12145 12146test $ac_write_fail = 0 || 12147 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12148 12149 12150# configure is writing to config.log, and then calls config.status. 12151# config.status does its own redirection, appending to config.log. 12152# Unfortunately, on DOS this fails, as config.log is still kept open 12153# by configure, so config.status won't be able to write to it; its 12154# output is simply discarded. So we exec the FD to /dev/null, 12155# effectively closing config.log, so it can be properly (re)opened and 12156# appended to by config.status. When coming back to configure, we 12157# need to make the FD available again. 12158if test "$no_create" != yes; then 12159 ac_cs_success=: 12160 ac_config_status_args= 12161 test "$silent" = yes && 12162 ac_config_status_args="$ac_config_status_args --quiet" 12163 exec 5>/dev/null 12164 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12165 exec 5>>config.log 12166 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12167 # would make configure fail if this is the last instruction. 12168 $ac_cs_success || as_fn_exit 1 12169fi 12170if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12172$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12173fi 12174 12175