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