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