configure revision aef24d58
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xmh 1.0.3. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 271$0: about your system, including any error possibly output 272$0: before this message. Then install a modern shell, or 273$0: manually run the script under such a shell if you do 274$0: have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315 316# as_fn_mkdir_p 317# ------------- 318# Create "$as_dir" as a directory, including parents if necessary. 319as_fn_mkdir_p () 320{ 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338$as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362} # as_fn_mkdir_p 363 364# as_fn_executable_p FILE 365# ----------------------- 366# Test if FILE is an executable regular file. 367as_fn_executable_p () 368{ 369 test -f "$1" && test -x "$1" 370} # as_fn_executable_p 371# as_fn_append VAR VALUE 372# ---------------------- 373# Append the text in VALUE to the end of the definition contained in VAR. Take 374# advantage of any shell optimizations that allow amortized linear growth over 375# repeated appends, instead of the typical quadratic growth present in naive 376# implementations. 377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387fi # as_fn_append 388 389# as_fn_arith ARG... 390# ------------------ 391# Perform arithmetic evaluation on the ARGs, and store the result in the 392# global $as_val. Take advantage of shells that can avoid forks. The arguments 393# must be portable across $(()) and expr. 394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404fi # as_fn_arith 405 406 407# as_fn_error STATUS ERROR [LINENO LOG_FD] 408# ---------------------------------------- 409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411# script with STATUS, using 1 if that was 0. 412as_fn_error () 413{ 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421} # as_fn_error 422 423if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426else 427 as_expr=false 428fi 429 430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432else 433 as_basename=false 434fi 435 436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438else 439 as_dirname=false 440fi 441 442as_me=`$as_basename -- "$0" || 443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446$as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461# Avoid depending upon Character Ranges. 462as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465as_cr_digits='0123456789' 466as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502} 503 504ECHO_C= ECHO_N= ECHO_T= 505case `echo -n x` in #((((( 506-n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513*) 514 ECHO_N='-n';; 515esac 516 517rm -f conf$$ conf$$.exe conf$$.file 518if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523fi 524if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538else 539 as_ln_s='cp -pR' 540fi 541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542rmdir conf$$.dir 2>/dev/null 543 544if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549fi 550 551as_test_x='test -x' 552as_executable_p=as_fn_executable_p 553 554# Sed expression to map a string onto a valid CPP name. 555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557# Sed expression to map a string onto a valid variable name. 558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560 561test -n "$DJDIR" || exec 7<&0 </dev/null 562exec 6>&1 563 564# Name of the host. 565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566# so uname gets run too. 567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569# 570# Initializations. 571# 572ac_default_prefix=/usr/local 573ac_clean_files= 574ac_config_libobj_dir=. 575LIBOBJS= 576cross_compiling=no 577subdirs= 578MFLAGS= 579MAKEFLAGS= 580 581# Identity of this package. 582PACKAGE_NAME='xmh' 583PACKAGE_TARNAME='xmh' 584PACKAGE_VERSION='1.0.3' 585PACKAGE_STRING='xmh 1.0.3' 586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 587PACKAGE_URL='' 588 589ac_unique_file="Makefile.am" 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626ac_subst_vars='am__EXEEXT_FALSE 627am__EXEEXT_TRUE 628LTLIBOBJS 629LIBOBJS 630appdefaultdir 631APPDEFS_LIBS 632APPDEFS_CFLAGS 633XMH_LIBS 634XMH_CFLAGS 635MAN_SUBSTS 636XORG_MAN_PAGE 637ADMIN_MAN_DIR 638DRIVER_MAN_DIR 639MISC_MAN_DIR 640FILE_MAN_DIR 641LIB_MAN_DIR 642APP_MAN_DIR 643ADMIN_MAN_SUFFIX 644DRIVER_MAN_SUFFIX 645MISC_MAN_SUFFIX 646FILE_MAN_SUFFIX 647LIB_MAN_SUFFIX 648APP_MAN_SUFFIX 649SED 650host_os 651host_vendor 652host_cpu 653host 654build_os 655build_vendor 656build_cpu 657build 658INSTALL_CMD 659PKG_CONFIG 660CHANGELOG_CMD 661STRICT_CFLAGS 662CWARNFLAGS 663BASE_CFLAGS 664EGREP 665GREP 666CPP 667am__fastdepCC_FALSE 668am__fastdepCC_TRUE 669CCDEPMODE 670am__nodep 671AMDEPBACKSLASH 672AMDEP_FALSE 673AMDEP_TRUE 674am__quote 675am__include 676DEPDIR 677OBJEXT 678EXEEXT 679ac_ct_CC 680CPPFLAGS 681LDFLAGS 682CFLAGS 683CC 684AM_BACKSLASH 685AM_DEFAULT_VERBOSITY 686AM_DEFAULT_V 687AM_V 688am__untar 689am__tar 690AMTAR 691am__leading_dot 692SET_MAKE 693AWK 694mkdir_p 695MKDIR_P 696INSTALL_STRIP_PROGRAM 697STRIP 698install_sh 699MAKEINFO 700AUTOHEADER 701AUTOMAKE 702AUTOCONF 703ACLOCAL 704VERSION 705PACKAGE 706CYGPATH_W 707am__isrc 708INSTALL_DATA 709INSTALL_SCRIPT 710INSTALL_PROGRAM 711target_alias 712host_alias 713build_alias 714LIBS 715ECHO_T 716ECHO_N 717ECHO_C 718DEFS 719mandir 720localedir 721libdir 722psdir 723pdfdir 724dvidir 725htmldir 726infodir 727docdir 728oldincludedir 729includedir 730localstatedir 731sharedstatedir 732sysconfdir 733datadir 734datarootdir 735libexecdir 736sbindir 737bindir 738program_transform_name 739prefix 740exec_prefix 741PACKAGE_URL 742PACKAGE_BUGREPORT 743PACKAGE_STRING 744PACKAGE_VERSION 745PACKAGE_TARNAME 746PACKAGE_NAME 747PATH_SEPARATOR 748SHELL' 749ac_subst_files='' 750ac_user_opts=' 751enable_option_checking 752enable_silent_rules 753enable_dependency_tracking 754enable_selective_werror 755enable_strict_compilation 756with_appdefaultdir 757' 758 ac_precious_vars='build_alias 759host_alias 760target_alias 761CC 762CFLAGS 763LDFLAGS 764LIBS 765CPPFLAGS 766CPP 767PKG_CONFIG 768XMH_CFLAGS 769XMH_LIBS 770APPDEFS_CFLAGS 771APPDEFS_LIBS' 772 773 774# Initialize some variables set by options. 775ac_init_help= 776ac_init_version=false 777ac_unrecognized_opts= 778ac_unrecognized_sep= 779# The variables have the same names as the options, with 780# dashes changed to underlines. 781cache_file=/dev/null 782exec_prefix=NONE 783no_create= 784no_recursion= 785prefix=NONE 786program_prefix=NONE 787program_suffix=NONE 788program_transform_name=s,x,x, 789silent= 790site= 791srcdir= 792verbose= 793x_includes=NONE 794x_libraries=NONE 795 796# Installation directory options. 797# These are left unexpanded so users can "make install exec_prefix=/foo" 798# and all the variables that are supposed to be based on exec_prefix 799# by default will actually change. 800# Use braces instead of parens because sh, perl, etc. also accept them. 801# (The list follows the same order as the GNU Coding Standards.) 802bindir='${exec_prefix}/bin' 803sbindir='${exec_prefix}/sbin' 804libexecdir='${exec_prefix}/libexec' 805datarootdir='${prefix}/share' 806datadir='${datarootdir}' 807sysconfdir='${prefix}/etc' 808sharedstatedir='${prefix}/com' 809localstatedir='${prefix}/var' 810includedir='${prefix}/include' 811oldincludedir='/usr/include' 812docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 813infodir='${datarootdir}/info' 814htmldir='${docdir}' 815dvidir='${docdir}' 816pdfdir='${docdir}' 817psdir='${docdir}' 818libdir='${exec_prefix}/lib' 819localedir='${datarootdir}/locale' 820mandir='${datarootdir}/man' 821 822ac_prev= 823ac_dashdash= 824for ac_option 825do 826 # If the previous option needs an argument, assign it. 827 if test -n "$ac_prev"; then 828 eval $ac_prev=\$ac_option 829 ac_prev= 830 continue 831 fi 832 833 case $ac_option in 834 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 835 *=) ac_optarg= ;; 836 *) ac_optarg=yes ;; 837 esac 838 839 # Accept the important Cygnus configure options, so we can diagnose typos. 840 841 case $ac_dashdash$ac_option in 842 --) 843 ac_dashdash=yes ;; 844 845 -bindir | --bindir | --bindi | --bind | --bin | --bi) 846 ac_prev=bindir ;; 847 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 848 bindir=$ac_optarg ;; 849 850 -build | --build | --buil | --bui | --bu) 851 ac_prev=build_alias ;; 852 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 853 build_alias=$ac_optarg ;; 854 855 -cache-file | --cache-file | --cache-fil | --cache-fi \ 856 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 857 ac_prev=cache_file ;; 858 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 859 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 860 cache_file=$ac_optarg ;; 861 862 --config-cache | -C) 863 cache_file=config.cache ;; 864 865 -datadir | --datadir | --datadi | --datad) 866 ac_prev=datadir ;; 867 -datadir=* | --datadir=* | --datadi=* | --datad=*) 868 datadir=$ac_optarg ;; 869 870 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 871 | --dataroo | --dataro | --datar) 872 ac_prev=datarootdir ;; 873 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 874 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 875 datarootdir=$ac_optarg ;; 876 877 -disable-* | --disable-*) 878 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 879 # Reject names that are not valid shell variable names. 880 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 881 as_fn_error $? "invalid feature name: $ac_useropt" 882 ac_useropt_orig=$ac_useropt 883 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 884 case $ac_user_opts in 885 *" 886"enable_$ac_useropt" 887"*) ;; 888 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 889 ac_unrecognized_sep=', ';; 890 esac 891 eval enable_$ac_useropt=no ;; 892 893 -docdir | --docdir | --docdi | --doc | --do) 894 ac_prev=docdir ;; 895 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 896 docdir=$ac_optarg ;; 897 898 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 899 ac_prev=dvidir ;; 900 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 901 dvidir=$ac_optarg ;; 902 903 -enable-* | --enable-*) 904 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 905 # Reject names that are not valid shell variable names. 906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 907 as_fn_error $? "invalid feature name: $ac_useropt" 908 ac_useropt_orig=$ac_useropt 909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 910 case $ac_user_opts in 911 *" 912"enable_$ac_useropt" 913"*) ;; 914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 915 ac_unrecognized_sep=', ';; 916 esac 917 eval enable_$ac_useropt=\$ac_optarg ;; 918 919 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 920 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 921 | --exec | --exe | --ex) 922 ac_prev=exec_prefix ;; 923 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 924 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 925 | --exec=* | --exe=* | --ex=*) 926 exec_prefix=$ac_optarg ;; 927 928 -gas | --gas | --ga | --g) 929 # Obsolete; use --with-gas. 930 with_gas=yes ;; 931 932 -help | --help | --hel | --he | -h) 933 ac_init_help=long ;; 934 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 935 ac_init_help=recursive ;; 936 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 937 ac_init_help=short ;; 938 939 -host | --host | --hos | --ho) 940 ac_prev=host_alias ;; 941 -host=* | --host=* | --hos=* | --ho=*) 942 host_alias=$ac_optarg ;; 943 944 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 945 ac_prev=htmldir ;; 946 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 947 | --ht=*) 948 htmldir=$ac_optarg ;; 949 950 -includedir | --includedir | --includedi | --included | --include \ 951 | --includ | --inclu | --incl | --inc) 952 ac_prev=includedir ;; 953 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 954 | --includ=* | --inclu=* | --incl=* | --inc=*) 955 includedir=$ac_optarg ;; 956 957 -infodir | --infodir | --infodi | --infod | --info | --inf) 958 ac_prev=infodir ;; 959 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 960 infodir=$ac_optarg ;; 961 962 -libdir | --libdir | --libdi | --libd) 963 ac_prev=libdir ;; 964 -libdir=* | --libdir=* | --libdi=* | --libd=*) 965 libdir=$ac_optarg ;; 966 967 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 968 | --libexe | --libex | --libe) 969 ac_prev=libexecdir ;; 970 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 971 | --libexe=* | --libex=* | --libe=*) 972 libexecdir=$ac_optarg ;; 973 974 -localedir | --localedir | --localedi | --localed | --locale) 975 ac_prev=localedir ;; 976 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 977 localedir=$ac_optarg ;; 978 979 -localstatedir | --localstatedir | --localstatedi | --localstated \ 980 | --localstate | --localstat | --localsta | --localst | --locals) 981 ac_prev=localstatedir ;; 982 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 983 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 984 localstatedir=$ac_optarg ;; 985 986 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 987 ac_prev=mandir ;; 988 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 989 mandir=$ac_optarg ;; 990 991 -nfp | --nfp | --nf) 992 # Obsolete; use --without-fp. 993 with_fp=no ;; 994 995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 996 | --no-cr | --no-c | -n) 997 no_create=yes ;; 998 999 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1000 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1001 no_recursion=yes ;; 1002 1003 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1004 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1005 | --oldin | --oldi | --old | --ol | --o) 1006 ac_prev=oldincludedir ;; 1007 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1008 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1009 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1010 oldincludedir=$ac_optarg ;; 1011 1012 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1013 ac_prev=prefix ;; 1014 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1015 prefix=$ac_optarg ;; 1016 1017 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1018 | --program-pre | --program-pr | --program-p) 1019 ac_prev=program_prefix ;; 1020 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1021 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1022 program_prefix=$ac_optarg ;; 1023 1024 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1025 | --program-suf | --program-su | --program-s) 1026 ac_prev=program_suffix ;; 1027 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1028 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1029 program_suffix=$ac_optarg ;; 1030 1031 -program-transform-name | --program-transform-name \ 1032 | --program-transform-nam | --program-transform-na \ 1033 | --program-transform-n | --program-transform- \ 1034 | --program-transform | --program-transfor \ 1035 | --program-transfo | --program-transf \ 1036 | --program-trans | --program-tran \ 1037 | --progr-tra | --program-tr | --program-t) 1038 ac_prev=program_transform_name ;; 1039 -program-transform-name=* | --program-transform-name=* \ 1040 | --program-transform-nam=* | --program-transform-na=* \ 1041 | --program-transform-n=* | --program-transform-=* \ 1042 | --program-transform=* | --program-transfor=* \ 1043 | --program-transfo=* | --program-transf=* \ 1044 | --program-trans=* | --program-tran=* \ 1045 | --progr-tra=* | --program-tr=* | --program-t=*) 1046 program_transform_name=$ac_optarg ;; 1047 1048 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1049 ac_prev=pdfdir ;; 1050 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1051 pdfdir=$ac_optarg ;; 1052 1053 -psdir | --psdir | --psdi | --psd | --ps) 1054 ac_prev=psdir ;; 1055 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1056 psdir=$ac_optarg ;; 1057 1058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1059 | -silent | --silent | --silen | --sile | --sil) 1060 silent=yes ;; 1061 1062 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1063 ac_prev=sbindir ;; 1064 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1065 | --sbi=* | --sb=*) 1066 sbindir=$ac_optarg ;; 1067 1068 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1069 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1070 | --sharedst | --shareds | --shared | --share | --shar \ 1071 | --sha | --sh) 1072 ac_prev=sharedstatedir ;; 1073 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1074 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1075 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1076 | --sha=* | --sh=*) 1077 sharedstatedir=$ac_optarg ;; 1078 1079 -site | --site | --sit) 1080 ac_prev=site ;; 1081 -site=* | --site=* | --sit=*) 1082 site=$ac_optarg ;; 1083 1084 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1085 ac_prev=srcdir ;; 1086 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1087 srcdir=$ac_optarg ;; 1088 1089 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1090 | --syscon | --sysco | --sysc | --sys | --sy) 1091 ac_prev=sysconfdir ;; 1092 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1093 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1094 sysconfdir=$ac_optarg ;; 1095 1096 -target | --target | --targe | --targ | --tar | --ta | --t) 1097 ac_prev=target_alias ;; 1098 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1099 target_alias=$ac_optarg ;; 1100 1101 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1102 verbose=yes ;; 1103 1104 -version | --version | --versio | --versi | --vers | -V) 1105 ac_init_version=: ;; 1106 1107 -with-* | --with-*) 1108 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1109 # Reject names that are not valid shell variable names. 1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1111 as_fn_error $? "invalid package name: $ac_useropt" 1112 ac_useropt_orig=$ac_useropt 1113 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1114 case $ac_user_opts in 1115 *" 1116"with_$ac_useropt" 1117"*) ;; 1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1119 ac_unrecognized_sep=', ';; 1120 esac 1121 eval with_$ac_useropt=\$ac_optarg ;; 1122 1123 -without-* | --without-*) 1124 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1125 # Reject names that are not valid shell variable names. 1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1127 as_fn_error $? "invalid package name: $ac_useropt" 1128 ac_useropt_orig=$ac_useropt 1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1130 case $ac_user_opts in 1131 *" 1132"with_$ac_useropt" 1133"*) ;; 1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1135 ac_unrecognized_sep=', ';; 1136 esac 1137 eval with_$ac_useropt=no ;; 1138 1139 --x) 1140 # Obsolete; use --with-x. 1141 with_x=yes ;; 1142 1143 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1144 | --x-incl | --x-inc | --x-in | --x-i) 1145 ac_prev=x_includes ;; 1146 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1147 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1148 x_includes=$ac_optarg ;; 1149 1150 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1151 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1152 ac_prev=x_libraries ;; 1153 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1154 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1155 x_libraries=$ac_optarg ;; 1156 1157 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1158Try \`$0 --help' for more information" 1159 ;; 1160 1161 *=*) 1162 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1163 # Reject names that are not valid shell variable names. 1164 case $ac_envvar in #( 1165 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1166 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1167 esac 1168 eval $ac_envvar=\$ac_optarg 1169 export $ac_envvar ;; 1170 1171 *) 1172 # FIXME: should be removed in autoconf 3.0. 1173 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1174 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1175 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1176 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1177 ;; 1178 1179 esac 1180done 1181 1182if test -n "$ac_prev"; then 1183 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1184 as_fn_error $? "missing argument to $ac_option" 1185fi 1186 1187if test -n "$ac_unrecognized_opts"; then 1188 case $enable_option_checking in 1189 no) ;; 1190 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1191 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1192 esac 1193fi 1194 1195# Check all directory arguments for consistency. 1196for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1197 datadir sysconfdir sharedstatedir localstatedir includedir \ 1198 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1199 libdir localedir mandir 1200do 1201 eval ac_val=\$$ac_var 1202 # Remove trailing slashes. 1203 case $ac_val in 1204 */ ) 1205 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1206 eval $ac_var=\$ac_val;; 1207 esac 1208 # Be sure to have absolute directory names. 1209 case $ac_val in 1210 [\\/$]* | ?:[\\/]* ) continue;; 1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1212 esac 1213 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1214done 1215 1216# There might be people who depend on the old broken behavior: `$host' 1217# used to hold the argument of --host etc. 1218# FIXME: To remove some day. 1219build=$build_alias 1220host=$host_alias 1221target=$target_alias 1222 1223# FIXME: To remove some day. 1224if test "x$host_alias" != x; then 1225 if test "x$build_alias" = x; then 1226 cross_compiling=maybe 1227 elif test "x$build_alias" != "x$host_alias"; then 1228 cross_compiling=yes 1229 fi 1230fi 1231 1232ac_tool_prefix= 1233test -n "$host_alias" && ac_tool_prefix=$host_alias- 1234 1235test "$silent" = yes && exec 6>/dev/null 1236 1237 1238ac_pwd=`pwd` && test -n "$ac_pwd" && 1239ac_ls_di=`ls -di .` && 1240ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1241 as_fn_error $? "working directory cannot be determined" 1242test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1243 as_fn_error $? "pwd does not report name of working directory" 1244 1245 1246# Find the source files, if location was not specified. 1247if test -z "$srcdir"; then 1248 ac_srcdir_defaulted=yes 1249 # Try the directory containing this script, then the parent directory. 1250 ac_confdir=`$as_dirname -- "$as_myself" || 1251$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1252 X"$as_myself" : 'X\(//\)[^/]' \| \ 1253 X"$as_myself" : 'X\(//\)$' \| \ 1254 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1255$as_echo X"$as_myself" | 1256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1257 s//\1/ 1258 q 1259 } 1260 /^X\(\/\/\)[^/].*/{ 1261 s//\1/ 1262 q 1263 } 1264 /^X\(\/\/\)$/{ 1265 s//\1/ 1266 q 1267 } 1268 /^X\(\/\).*/{ 1269 s//\1/ 1270 q 1271 } 1272 s/.*/./; q'` 1273 srcdir=$ac_confdir 1274 if test ! -r "$srcdir/$ac_unique_file"; then 1275 srcdir=.. 1276 fi 1277else 1278 ac_srcdir_defaulted=no 1279fi 1280if test ! -r "$srcdir/$ac_unique_file"; then 1281 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1282 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1283fi 1284ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1285ac_abs_confdir=`( 1286 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1287 pwd)` 1288# When building in place, set srcdir=. 1289if test "$ac_abs_confdir" = "$ac_pwd"; then 1290 srcdir=. 1291fi 1292# Remove unnecessary trailing slashes from srcdir. 1293# Double slashes in file names in object file debugging info 1294# mess up M-x gdb in Emacs. 1295case $srcdir in 1296*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1297esac 1298for ac_var in $ac_precious_vars; do 1299 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1300 eval ac_env_${ac_var}_value=\$${ac_var} 1301 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1302 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1303done 1304 1305# 1306# Report the --help message. 1307# 1308if test "$ac_init_help" = "long"; then 1309 # Omit some internal or obsolete options to make the list less imposing. 1310 # This message is too long to be a string in the A/UX 3.1 sh. 1311 cat <<_ACEOF 1312\`configure' configures xmh 1.0.3 to adapt to many kinds of systems. 1313 1314Usage: $0 [OPTION]... [VAR=VALUE]... 1315 1316To assign environment variables (e.g., CC, CFLAGS...), specify them as 1317VAR=VALUE. See below for descriptions of some of the useful variables. 1318 1319Defaults for the options are specified in brackets. 1320 1321Configuration: 1322 -h, --help display this help and exit 1323 --help=short display options specific to this package 1324 --help=recursive display the short help of all the included packages 1325 -V, --version display version information and exit 1326 -q, --quiet, --silent do not print \`checking ...' messages 1327 --cache-file=FILE cache test results in FILE [disabled] 1328 -C, --config-cache alias for \`--cache-file=config.cache' 1329 -n, --no-create do not create output files 1330 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1331 1332Installation directories: 1333 --prefix=PREFIX install architecture-independent files in PREFIX 1334 [$ac_default_prefix] 1335 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1336 [PREFIX] 1337 1338By default, \`make install' will install all the files in 1339\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1340an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1341for instance \`--prefix=\$HOME'. 1342 1343For better control, use the options below. 1344 1345Fine tuning of the installation directories: 1346 --bindir=DIR user executables [EPREFIX/bin] 1347 --sbindir=DIR system admin executables [EPREFIX/sbin] 1348 --libexecdir=DIR program executables [EPREFIX/libexec] 1349 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1350 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1351 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1352 --libdir=DIR object code libraries [EPREFIX/lib] 1353 --includedir=DIR C header files [PREFIX/include] 1354 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1355 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1356 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1357 --infodir=DIR info documentation [DATAROOTDIR/info] 1358 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1359 --mandir=DIR man documentation [DATAROOTDIR/man] 1360 --docdir=DIR documentation root [DATAROOTDIR/doc/xmh] 1361 --htmldir=DIR html documentation [DOCDIR] 1362 --dvidir=DIR dvi documentation [DOCDIR] 1363 --pdfdir=DIR pdf documentation [DOCDIR] 1364 --psdir=DIR ps documentation [DOCDIR] 1365_ACEOF 1366 1367 cat <<\_ACEOF 1368 1369Program names: 1370 --program-prefix=PREFIX prepend PREFIX to installed program names 1371 --program-suffix=SUFFIX append SUFFIX to installed program names 1372 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1373 1374System types: 1375 --build=BUILD configure for building on BUILD [guessed] 1376 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1377_ACEOF 1378fi 1379 1380if test -n "$ac_init_help"; then 1381 case $ac_init_help in 1382 short | recursive ) echo "Configuration of xmh 1.0.3:";; 1383 esac 1384 cat <<\_ACEOF 1385 1386Optional Features: 1387 --disable-option-checking ignore unrecognized --enable/--with options 1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1390 --enable-silent-rules less verbose build output (undo: "make V=1") 1391 --disable-silent-rules verbose build output (undo: "make V=0") 1392 --enable-dependency-tracking 1393 do not reject slow dependency extractors 1394 --disable-dependency-tracking 1395 speeds up one-time build 1396 --disable-selective-werror 1397 Turn off selective compiler errors. (default: 1398 enabled) 1399 --enable-strict-compilation 1400 Enable all warnings from compiler and make them 1401 errors (default: disabled) 1402 1403Optional Packages: 1404 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1405 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1406 --with-appdefaultdir=<pathname> 1407 specify directory for app-defaults files (default is 1408 autodetected) 1409 1410Some influential environment variables: 1411 CC C compiler command 1412 CFLAGS C compiler flags 1413 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1414 nonstandard directory <lib dir> 1415 LIBS libraries to pass to the linker, e.g. -l<library> 1416 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1417 you have headers in a nonstandard directory <include dir> 1418 CPP C preprocessor 1419 PKG_CONFIG path to pkg-config utility 1420 XMH_CFLAGS C compiler flags for XMH, overriding pkg-config 1421 XMH_LIBS linker flags for XMH, overriding pkg-config 1422 APPDEFS_CFLAGS 1423 C compiler flags for APPDEFS, overriding pkg-config 1424 APPDEFS_LIBS 1425 linker flags for APPDEFS, overriding pkg-config 1426 1427Use these variables to override the choices made by `configure' or to help 1428it to find libraries and programs with nonstandard names/locations. 1429 1430Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1431_ACEOF 1432ac_status=$? 1433fi 1434 1435if test "$ac_init_help" = "recursive"; then 1436 # If there are subdirs, report their specific --help. 1437 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1438 test -d "$ac_dir" || 1439 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1440 continue 1441 ac_builddir=. 1442 1443case "$ac_dir" in 1444.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1445*) 1446 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1447 # A ".." for each directory in $ac_dir_suffix. 1448 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1449 case $ac_top_builddir_sub in 1450 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1451 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1452 esac ;; 1453esac 1454ac_abs_top_builddir=$ac_pwd 1455ac_abs_builddir=$ac_pwd$ac_dir_suffix 1456# for backward compatibility: 1457ac_top_builddir=$ac_top_build_prefix 1458 1459case $srcdir in 1460 .) # We are building in place. 1461 ac_srcdir=. 1462 ac_top_srcdir=$ac_top_builddir_sub 1463 ac_abs_top_srcdir=$ac_pwd ;; 1464 [\\/]* | ?:[\\/]* ) # Absolute name. 1465 ac_srcdir=$srcdir$ac_dir_suffix; 1466 ac_top_srcdir=$srcdir 1467 ac_abs_top_srcdir=$srcdir ;; 1468 *) # Relative name. 1469 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1470 ac_top_srcdir=$ac_top_build_prefix$srcdir 1471 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1472esac 1473ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1474 1475 cd "$ac_dir" || { ac_status=$?; continue; } 1476 # Check for guested configure. 1477 if test -f "$ac_srcdir/configure.gnu"; then 1478 echo && 1479 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1480 elif test -f "$ac_srcdir/configure"; then 1481 echo && 1482 $SHELL "$ac_srcdir/configure" --help=recursive 1483 else 1484 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1485 fi || ac_status=$? 1486 cd "$ac_pwd" || { ac_status=$?; break; } 1487 done 1488fi 1489 1490test -n "$ac_init_help" && exit $ac_status 1491if $ac_init_version; then 1492 cat <<\_ACEOF 1493xmh configure 1.0.3 1494generated by GNU Autoconf 2.69 1495 1496Copyright (C) 2012 Free Software Foundation, Inc. 1497This configure script is free software; the Free Software Foundation 1498gives unlimited permission to copy, distribute and modify it. 1499_ACEOF 1500 exit 1501fi 1502 1503## ------------------------ ## 1504## Autoconf initialization. ## 1505## ------------------------ ## 1506 1507# ac_fn_c_try_compile LINENO 1508# -------------------------- 1509# Try to compile conftest.$ac_ext, and return whether this succeeded. 1510ac_fn_c_try_compile () 1511{ 1512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1513 rm -f conftest.$ac_objext 1514 if { { ac_try="$ac_compile" 1515case "(($ac_try" in 1516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1517 *) ac_try_echo=$ac_try;; 1518esac 1519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1520$as_echo "$ac_try_echo"; } >&5 1521 (eval "$ac_compile") 2>conftest.err 1522 ac_status=$? 1523 if test -s conftest.err; then 1524 grep -v '^ *+' conftest.err >conftest.er1 1525 cat conftest.er1 >&5 1526 mv -f conftest.er1 conftest.err 1527 fi 1528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1529 test $ac_status = 0; } && { 1530 test -z "$ac_c_werror_flag" || 1531 test ! -s conftest.err 1532 } && test -s conftest.$ac_objext; then : 1533 ac_retval=0 1534else 1535 $as_echo "$as_me: failed program was:" >&5 1536sed 's/^/| /' conftest.$ac_ext >&5 1537 1538 ac_retval=1 1539fi 1540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1541 as_fn_set_status $ac_retval 1542 1543} # ac_fn_c_try_compile 1544 1545# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1546# --------------------------------------------- 1547# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1548# accordingly. 1549ac_fn_c_check_decl () 1550{ 1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1552 as_decl_name=`echo $2|sed 's/ *(.*//'` 1553 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1555$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1556if eval \${$3+:} false; then : 1557 $as_echo_n "(cached) " >&6 1558else 1559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1560/* end confdefs.h. */ 1561$4 1562int 1563main () 1564{ 1565#ifndef $as_decl_name 1566#ifdef __cplusplus 1567 (void) $as_decl_use; 1568#else 1569 (void) $as_decl_name; 1570#endif 1571#endif 1572 1573 ; 1574 return 0; 1575} 1576_ACEOF 1577if ac_fn_c_try_compile "$LINENO"; then : 1578 eval "$3=yes" 1579else 1580 eval "$3=no" 1581fi 1582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1583fi 1584eval ac_res=\$$3 1585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1586$as_echo "$ac_res" >&6; } 1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1588 1589} # ac_fn_c_check_decl 1590 1591# ac_fn_c_try_cpp LINENO 1592# ---------------------- 1593# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1594ac_fn_c_try_cpp () 1595{ 1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1597 if { { ac_try="$ac_cpp conftest.$ac_ext" 1598case "(($ac_try" in 1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1600 *) ac_try_echo=$ac_try;; 1601esac 1602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1603$as_echo "$ac_try_echo"; } >&5 1604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1605 ac_status=$? 1606 if test -s conftest.err; then 1607 grep -v '^ *+' conftest.err >conftest.er1 1608 cat conftest.er1 >&5 1609 mv -f conftest.er1 conftest.err 1610 fi 1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1612 test $ac_status = 0; } > conftest.i && { 1613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1614 test ! -s conftest.err 1615 }; then : 1616 ac_retval=0 1617else 1618 $as_echo "$as_me: failed program was:" >&5 1619sed 's/^/| /' conftest.$ac_ext >&5 1620 1621 ac_retval=1 1622fi 1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1624 as_fn_set_status $ac_retval 1625 1626} # ac_fn_c_try_cpp 1627 1628# ac_fn_c_try_run LINENO 1629# ---------------------- 1630# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1631# that executables *can* be run. 1632ac_fn_c_try_run () 1633{ 1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1635 if { { ac_try="$ac_link" 1636case "(($ac_try" in 1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1638 *) ac_try_echo=$ac_try;; 1639esac 1640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1641$as_echo "$ac_try_echo"; } >&5 1642 (eval "$ac_link") 2>&5 1643 ac_status=$? 1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1645 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1646 { { case "(($ac_try" in 1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1648 *) ac_try_echo=$ac_try;; 1649esac 1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1651$as_echo "$ac_try_echo"; } >&5 1652 (eval "$ac_try") 2>&5 1653 ac_status=$? 1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1655 test $ac_status = 0; }; }; then : 1656 ac_retval=0 1657else 1658 $as_echo "$as_me: program exited with status $ac_status" >&5 1659 $as_echo "$as_me: failed program was:" >&5 1660sed 's/^/| /' conftest.$ac_ext >&5 1661 1662 ac_retval=$ac_status 1663fi 1664 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1666 as_fn_set_status $ac_retval 1667 1668} # ac_fn_c_try_run 1669 1670# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1671# ------------------------------------------------------- 1672# Tests whether HEADER exists and can be compiled using the include files in 1673# INCLUDES, setting the cache variable VAR accordingly. 1674ac_fn_c_check_header_compile () 1675{ 1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1678$as_echo_n "checking for $2... " >&6; } 1679if eval \${$3+:} false; then : 1680 $as_echo_n "(cached) " >&6 1681else 1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1683/* end confdefs.h. */ 1684$4 1685#include <$2> 1686_ACEOF 1687if ac_fn_c_try_compile "$LINENO"; then : 1688 eval "$3=yes" 1689else 1690 eval "$3=no" 1691fi 1692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1693fi 1694eval ac_res=\$$3 1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1696$as_echo "$ac_res" >&6; } 1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1698 1699} # ac_fn_c_check_header_compile 1700 1701# ac_fn_c_try_link LINENO 1702# ----------------------- 1703# Try to link conftest.$ac_ext, and return whether this succeeded. 1704ac_fn_c_try_link () 1705{ 1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1707 rm -f conftest.$ac_objext conftest$ac_exeext 1708 if { { ac_try="$ac_link" 1709case "(($ac_try" in 1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1711 *) ac_try_echo=$ac_try;; 1712esac 1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1714$as_echo "$ac_try_echo"; } >&5 1715 (eval "$ac_link") 2>conftest.err 1716 ac_status=$? 1717 if test -s conftest.err; then 1718 grep -v '^ *+' conftest.err >conftest.er1 1719 cat conftest.er1 >&5 1720 mv -f conftest.er1 conftest.err 1721 fi 1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1723 test $ac_status = 0; } && { 1724 test -z "$ac_c_werror_flag" || 1725 test ! -s conftest.err 1726 } && test -s conftest$ac_exeext && { 1727 test "$cross_compiling" = yes || 1728 test -x conftest$ac_exeext 1729 }; then : 1730 ac_retval=0 1731else 1732 $as_echo "$as_me: failed program was:" >&5 1733sed 's/^/| /' conftest.$ac_ext >&5 1734 1735 ac_retval=1 1736fi 1737 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1738 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1739 # interfere with the next link command; also delete a directory that is 1740 # left behind by Apple's compiler. We do this before executing the actions. 1741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1743 as_fn_set_status $ac_retval 1744 1745} # ac_fn_c_try_link 1746cat >config.log <<_ACEOF 1747This file contains any messages produced by compilers while 1748running configure, to aid debugging if configure makes a mistake. 1749 1750It was created by xmh $as_me 1.0.3, which was 1751generated by GNU Autoconf 2.69. Invocation command line was 1752 1753 $ $0 $@ 1754 1755_ACEOF 1756exec 5>>config.log 1757{ 1758cat <<_ASUNAME 1759## --------- ## 1760## Platform. ## 1761## --------- ## 1762 1763hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1764uname -m = `(uname -m) 2>/dev/null || echo unknown` 1765uname -r = `(uname -r) 2>/dev/null || echo unknown` 1766uname -s = `(uname -s) 2>/dev/null || echo unknown` 1767uname -v = `(uname -v) 2>/dev/null || echo unknown` 1768 1769/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1770/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1771 1772/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1773/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1774/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1775/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1776/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1777/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1778/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1779 1780_ASUNAME 1781 1782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1783for as_dir in $PATH 1784do 1785 IFS=$as_save_IFS 1786 test -z "$as_dir" && as_dir=. 1787 $as_echo "PATH: $as_dir" 1788 done 1789IFS=$as_save_IFS 1790 1791} >&5 1792 1793cat >&5 <<_ACEOF 1794 1795 1796## ----------- ## 1797## Core tests. ## 1798## ----------- ## 1799 1800_ACEOF 1801 1802 1803# Keep a trace of the command line. 1804# Strip out --no-create and --no-recursion so they do not pile up. 1805# Strip out --silent because we don't want to record it for future runs. 1806# Also quote any args containing shell meta-characters. 1807# Make two passes to allow for proper duplicate-argument suppression. 1808ac_configure_args= 1809ac_configure_args0= 1810ac_configure_args1= 1811ac_must_keep_next=false 1812for ac_pass in 1 2 1813do 1814 for ac_arg 1815 do 1816 case $ac_arg in 1817 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1818 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1819 | -silent | --silent | --silen | --sile | --sil) 1820 continue ;; 1821 *\'*) 1822 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1823 esac 1824 case $ac_pass in 1825 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1826 2) 1827 as_fn_append ac_configure_args1 " '$ac_arg'" 1828 if test $ac_must_keep_next = true; then 1829 ac_must_keep_next=false # Got value, back to normal. 1830 else 1831 case $ac_arg in 1832 *=* | --config-cache | -C | -disable-* | --disable-* \ 1833 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1834 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1835 | -with-* | --with-* | -without-* | --without-* | --x) 1836 case "$ac_configure_args0 " in 1837 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1838 esac 1839 ;; 1840 -* ) ac_must_keep_next=true ;; 1841 esac 1842 fi 1843 as_fn_append ac_configure_args " '$ac_arg'" 1844 ;; 1845 esac 1846 done 1847done 1848{ ac_configure_args0=; unset ac_configure_args0;} 1849{ ac_configure_args1=; unset ac_configure_args1;} 1850 1851# When interrupted or exit'd, cleanup temporary files, and complete 1852# config.log. We remove comments because anyway the quotes in there 1853# would cause problems or look ugly. 1854# WARNING: Use '\'' to represent an apostrophe within the trap. 1855# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1856trap 'exit_status=$? 1857 # Save into config.log some information that might help in debugging. 1858 { 1859 echo 1860 1861 $as_echo "## ---------------- ## 1862## Cache variables. ## 1863## ---------------- ##" 1864 echo 1865 # The following way of writing the cache mishandles newlines in values, 1866( 1867 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1868 eval ac_val=\$$ac_var 1869 case $ac_val in #( 1870 *${as_nl}*) 1871 case $ac_var in #( 1872 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1873$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1874 esac 1875 case $ac_var in #( 1876 _ | IFS | as_nl) ;; #( 1877 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1878 *) { eval $ac_var=; unset $ac_var;} ;; 1879 esac ;; 1880 esac 1881 done 1882 (set) 2>&1 | 1883 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1884 *${as_nl}ac_space=\ *) 1885 sed -n \ 1886 "s/'\''/'\''\\\\'\'''\''/g; 1887 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1888 ;; #( 1889 *) 1890 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1891 ;; 1892 esac | 1893 sort 1894) 1895 echo 1896 1897 $as_echo "## ----------------- ## 1898## Output variables. ## 1899## ----------------- ##" 1900 echo 1901 for ac_var in $ac_subst_vars 1902 do 1903 eval ac_val=\$$ac_var 1904 case $ac_val in 1905 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1906 esac 1907 $as_echo "$ac_var='\''$ac_val'\''" 1908 done | sort 1909 echo 1910 1911 if test -n "$ac_subst_files"; then 1912 $as_echo "## ------------------- ## 1913## File substitutions. ## 1914## ------------------- ##" 1915 echo 1916 for ac_var in $ac_subst_files 1917 do 1918 eval ac_val=\$$ac_var 1919 case $ac_val in 1920 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1921 esac 1922 $as_echo "$ac_var='\''$ac_val'\''" 1923 done | sort 1924 echo 1925 fi 1926 1927 if test -s confdefs.h; then 1928 $as_echo "## ----------- ## 1929## confdefs.h. ## 1930## ----------- ##" 1931 echo 1932 cat confdefs.h 1933 echo 1934 fi 1935 test "$ac_signal" != 0 && 1936 $as_echo "$as_me: caught signal $ac_signal" 1937 $as_echo "$as_me: exit $exit_status" 1938 } >&5 1939 rm -f core *.core core.conftest.* && 1940 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1941 exit $exit_status 1942' 0 1943for ac_signal in 1 2 13 15; do 1944 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1945done 1946ac_signal=0 1947 1948# confdefs.h avoids OS command line length limits that DEFS can exceed. 1949rm -f -r conftest* confdefs.h 1950 1951$as_echo "/* confdefs.h */" > confdefs.h 1952 1953# Predefined preprocessor variables. 1954 1955cat >>confdefs.h <<_ACEOF 1956#define PACKAGE_NAME "$PACKAGE_NAME" 1957_ACEOF 1958 1959cat >>confdefs.h <<_ACEOF 1960#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1961_ACEOF 1962 1963cat >>confdefs.h <<_ACEOF 1964#define PACKAGE_VERSION "$PACKAGE_VERSION" 1965_ACEOF 1966 1967cat >>confdefs.h <<_ACEOF 1968#define PACKAGE_STRING "$PACKAGE_STRING" 1969_ACEOF 1970 1971cat >>confdefs.h <<_ACEOF 1972#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1973_ACEOF 1974 1975cat >>confdefs.h <<_ACEOF 1976#define PACKAGE_URL "$PACKAGE_URL" 1977_ACEOF 1978 1979 1980# Let the site file select an alternate cache file if it wants to. 1981# Prefer an explicitly selected file to automatically selected ones. 1982ac_site_file1=NONE 1983ac_site_file2=NONE 1984if test -n "$CONFIG_SITE"; then 1985 # We do not want a PATH search for config.site. 1986 case $CONFIG_SITE in #(( 1987 -*) ac_site_file1=./$CONFIG_SITE;; 1988 */*) ac_site_file1=$CONFIG_SITE;; 1989 *) ac_site_file1=./$CONFIG_SITE;; 1990 esac 1991elif test "x$prefix" != xNONE; then 1992 ac_site_file1=$prefix/share/config.site 1993 ac_site_file2=$prefix/etc/config.site 1994else 1995 ac_site_file1=$ac_default_prefix/share/config.site 1996 ac_site_file2=$ac_default_prefix/etc/config.site 1997fi 1998for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1999do 2000 test "x$ac_site_file" = xNONE && continue 2001 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2002 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2003$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2004 sed 's/^/| /' "$ac_site_file" >&5 2005 . "$ac_site_file" \ 2006 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2007$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2008as_fn_error $? "failed to load site script $ac_site_file 2009See \`config.log' for more details" "$LINENO" 5; } 2010 fi 2011done 2012 2013if test -r "$cache_file"; then 2014 # Some versions of bash will fail to source /dev/null (special files 2015 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2016 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2017 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2018$as_echo "$as_me: loading cache $cache_file" >&6;} 2019 case $cache_file in 2020 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2021 *) . "./$cache_file";; 2022 esac 2023 fi 2024else 2025 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2026$as_echo "$as_me: creating cache $cache_file" >&6;} 2027 >$cache_file 2028fi 2029 2030# Check that the precious variables saved in the cache have kept the same 2031# value. 2032ac_cache_corrupted=false 2033for ac_var in $ac_precious_vars; do 2034 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2035 eval ac_new_set=\$ac_env_${ac_var}_set 2036 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2037 eval ac_new_val=\$ac_env_${ac_var}_value 2038 case $ac_old_set,$ac_new_set in 2039 set,) 2040 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2041$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2042 ac_cache_corrupted=: ;; 2043 ,set) 2044 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2045$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2046 ac_cache_corrupted=: ;; 2047 ,);; 2048 *) 2049 if test "x$ac_old_val" != "x$ac_new_val"; then 2050 # differences in whitespace do not lead to failure. 2051 ac_old_val_w=`echo x $ac_old_val` 2052 ac_new_val_w=`echo x $ac_new_val` 2053 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2054 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2055$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2056 ac_cache_corrupted=: 2057 else 2058 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2059$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2060 eval $ac_var=\$ac_old_val 2061 fi 2062 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2063$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2064 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2065$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2066 fi;; 2067 esac 2068 # Pass precious variables to config.status. 2069 if test "$ac_new_set" = set; then 2070 case $ac_new_val in 2071 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2072 *) ac_arg=$ac_var=$ac_new_val ;; 2073 esac 2074 case " $ac_configure_args " in 2075 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2076 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2077 esac 2078 fi 2079done 2080if $ac_cache_corrupted; then 2081 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2083 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2084$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2085 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2086fi 2087## -------------------- ## 2088## Main body of script. ## 2089## -------------------- ## 2090 2091ac_ext=c 2092ac_cpp='$CPP $CPPFLAGS' 2093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2095ac_compiler_gnu=$ac_cv_c_compiler_gnu 2096 2097 2098 2099ac_config_headers="$ac_config_headers config.h" 2100 2101 2102# Initialize Automake 2103am__api_version='1.15' 2104 2105ac_aux_dir= 2106for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2107 if test -f "$ac_dir/install-sh"; then 2108 ac_aux_dir=$ac_dir 2109 ac_install_sh="$ac_aux_dir/install-sh -c" 2110 break 2111 elif test -f "$ac_dir/install.sh"; then 2112 ac_aux_dir=$ac_dir 2113 ac_install_sh="$ac_aux_dir/install.sh -c" 2114 break 2115 elif test -f "$ac_dir/shtool"; then 2116 ac_aux_dir=$ac_dir 2117 ac_install_sh="$ac_aux_dir/shtool install -c" 2118 break 2119 fi 2120done 2121if test -z "$ac_aux_dir"; then 2122 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2123fi 2124 2125# These three variables are undocumented and unsupported, 2126# and are intended to be withdrawn in a future Autoconf release. 2127# They can cause serious problems if a builder's source tree is in a directory 2128# whose full name contains unusual characters. 2129ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2130ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2131ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2132 2133 2134# Find a good install program. We prefer a C program (faster), 2135# so one script is as good as another. But avoid the broken or 2136# incompatible versions: 2137# SysV /etc/install, /usr/sbin/install 2138# SunOS /usr/etc/install 2139# IRIX /sbin/install 2140# AIX /bin/install 2141# AmigaOS /C/install, which installs bootblocks on floppy discs 2142# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2143# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2144# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2145# OS/2's system install, which has a completely different semantic 2146# ./install, which can be erroneously created by make from ./install.sh. 2147# Reject install programs that cannot install multiple files. 2148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2149$as_echo_n "checking for a BSD-compatible install... " >&6; } 2150if test -z "$INSTALL"; then 2151if ${ac_cv_path_install+:} false; then : 2152 $as_echo_n "(cached) " >&6 2153else 2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2155for as_dir in $PATH 2156do 2157 IFS=$as_save_IFS 2158 test -z "$as_dir" && as_dir=. 2159 # Account for people who put trailing slashes in PATH elements. 2160case $as_dir/ in #(( 2161 ./ | .// | /[cC]/* | \ 2162 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2163 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2164 /usr/ucb/* ) ;; 2165 *) 2166 # OSF1 and SCO ODT 3.0 have their own names for install. 2167 # Don't use installbsd from OSF since it installs stuff as root 2168 # by default. 2169 for ac_prog in ginstall scoinst install; do 2170 for ac_exec_ext in '' $ac_executable_extensions; do 2171 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2172 if test $ac_prog = install && 2173 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2174 # AIX install. It has an incompatible calling convention. 2175 : 2176 elif test $ac_prog = install && 2177 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2178 # program-specific install script used by HP pwplus--don't use. 2179 : 2180 else 2181 rm -rf conftest.one conftest.two conftest.dir 2182 echo one > conftest.one 2183 echo two > conftest.two 2184 mkdir conftest.dir 2185 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2186 test -s conftest.one && test -s conftest.two && 2187 test -s conftest.dir/conftest.one && 2188 test -s conftest.dir/conftest.two 2189 then 2190 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2191 break 3 2192 fi 2193 fi 2194 fi 2195 done 2196 done 2197 ;; 2198esac 2199 2200 done 2201IFS=$as_save_IFS 2202 2203rm -rf conftest.one conftest.two conftest.dir 2204 2205fi 2206 if test "${ac_cv_path_install+set}" = set; then 2207 INSTALL=$ac_cv_path_install 2208 else 2209 # As a last resort, use the slow shell script. Don't cache a 2210 # value for INSTALL within a source directory, because that will 2211 # break other packages using the cache if that directory is 2212 # removed, or if the value is a relative name. 2213 INSTALL=$ac_install_sh 2214 fi 2215fi 2216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2217$as_echo "$INSTALL" >&6; } 2218 2219# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2220# It thinks the first close brace ends the variable substitution. 2221test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2222 2223test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2224 2225test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2226 2227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2228$as_echo_n "checking whether build environment is sane... " >&6; } 2229# Reject unsafe characters in $srcdir or the absolute working directory 2230# name. Accept space and tab only in the latter. 2231am_lf=' 2232' 2233case `pwd` in 2234 *[\\\"\#\$\&\'\`$am_lf]*) 2235 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2236esac 2237case $srcdir in 2238 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2239 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2240esac 2241 2242# Do 'set' in a subshell so we don't clobber the current shell's 2243# arguments. Must try -L first in case configure is actually a 2244# symlink; some systems play weird games with the mod time of symlinks 2245# (eg FreeBSD returns the mod time of the symlink's containing 2246# directory). 2247if ( 2248 am_has_slept=no 2249 for am_try in 1 2; do 2250 echo "timestamp, slept: $am_has_slept" > conftest.file 2251 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2252 if test "$*" = "X"; then 2253 # -L didn't work. 2254 set X `ls -t "$srcdir/configure" conftest.file` 2255 fi 2256 if test "$*" != "X $srcdir/configure conftest.file" \ 2257 && test "$*" != "X conftest.file $srcdir/configure"; then 2258 2259 # If neither matched, then we have a broken ls. This can happen 2260 # if, for instance, CONFIG_SHELL is bash and it inherits a 2261 # broken ls alias from the environment. This has actually 2262 # happened. Such a system could not be considered "sane". 2263 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2264 alias in your environment" "$LINENO" 5 2265 fi 2266 if test "$2" = conftest.file || test $am_try -eq 2; then 2267 break 2268 fi 2269 # Just in case. 2270 sleep 1 2271 am_has_slept=yes 2272 done 2273 test "$2" = conftest.file 2274 ) 2275then 2276 # Ok. 2277 : 2278else 2279 as_fn_error $? "newly created file is older than distributed files! 2280Check your system clock" "$LINENO" 5 2281fi 2282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2283$as_echo "yes" >&6; } 2284# If we didn't sleep, we still need to ensure time stamps of config.status and 2285# generated files are strictly newer. 2286am_sleep_pid= 2287if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2288 ( sleep 1 ) & 2289 am_sleep_pid=$! 2290fi 2291 2292rm -f conftest.file 2293 2294test "$program_prefix" != NONE && 2295 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2296# Use a double $ so make ignores it. 2297test "$program_suffix" != NONE && 2298 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2299# Double any \ or $. 2300# By default was `s,x,x', remove it if useless. 2301ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2302program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2303 2304# Expand $ac_aux_dir to an absolute path. 2305am_aux_dir=`cd "$ac_aux_dir" && pwd` 2306 2307if test x"${MISSING+set}" != xset; then 2308 case $am_aux_dir in 2309 *\ * | *\ *) 2310 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2311 *) 2312 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2313 esac 2314fi 2315# Use eval to expand $SHELL 2316if eval "$MISSING --is-lightweight"; then 2317 am_missing_run="$MISSING " 2318else 2319 am_missing_run= 2320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2321$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2322fi 2323 2324if test x"${install_sh+set}" != xset; then 2325 case $am_aux_dir in 2326 *\ * | *\ *) 2327 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2328 *) 2329 install_sh="\${SHELL} $am_aux_dir/install-sh" 2330 esac 2331fi 2332 2333# Installed binaries are usually stripped using 'strip' when the user 2334# run "make install-strip". However 'strip' might not be the right 2335# tool to use in cross-compilation environments, therefore Automake 2336# will honor the 'STRIP' environment variable to overrule this program. 2337if test "$cross_compiling" != no; then 2338 if test -n "$ac_tool_prefix"; then 2339 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2340set dummy ${ac_tool_prefix}strip; ac_word=$2 2341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2342$as_echo_n "checking for $ac_word... " >&6; } 2343if ${ac_cv_prog_STRIP+:} false; then : 2344 $as_echo_n "(cached) " >&6 2345else 2346 if test -n "$STRIP"; then 2347 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2348else 2349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2350for as_dir in $PATH 2351do 2352 IFS=$as_save_IFS 2353 test -z "$as_dir" && as_dir=. 2354 for ac_exec_ext in '' $ac_executable_extensions; do 2355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2356 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2358 break 2 2359 fi 2360done 2361 done 2362IFS=$as_save_IFS 2363 2364fi 2365fi 2366STRIP=$ac_cv_prog_STRIP 2367if test -n "$STRIP"; then 2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2369$as_echo "$STRIP" >&6; } 2370else 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2372$as_echo "no" >&6; } 2373fi 2374 2375 2376fi 2377if test -z "$ac_cv_prog_STRIP"; then 2378 ac_ct_STRIP=$STRIP 2379 # Extract the first word of "strip", so it can be a program name with args. 2380set dummy strip; ac_word=$2 2381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2382$as_echo_n "checking for $ac_word... " >&6; } 2383if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2384 $as_echo_n "(cached) " >&6 2385else 2386 if test -n "$ac_ct_STRIP"; then 2387 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2388else 2389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2390for as_dir in $PATH 2391do 2392 IFS=$as_save_IFS 2393 test -z "$as_dir" && as_dir=. 2394 for ac_exec_ext in '' $ac_executable_extensions; do 2395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2396 ac_cv_prog_ac_ct_STRIP="strip" 2397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2398 break 2 2399 fi 2400done 2401 done 2402IFS=$as_save_IFS 2403 2404fi 2405fi 2406ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2407if test -n "$ac_ct_STRIP"; then 2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2409$as_echo "$ac_ct_STRIP" >&6; } 2410else 2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2412$as_echo "no" >&6; } 2413fi 2414 2415 if test "x$ac_ct_STRIP" = x; then 2416 STRIP=":" 2417 else 2418 case $cross_compiling:$ac_tool_warned in 2419yes:) 2420{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2421$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2422ac_tool_warned=yes ;; 2423esac 2424 STRIP=$ac_ct_STRIP 2425 fi 2426else 2427 STRIP="$ac_cv_prog_STRIP" 2428fi 2429 2430fi 2431INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2432 2433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2434$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2435if test -z "$MKDIR_P"; then 2436 if ${ac_cv_path_mkdir+:} false; then : 2437 $as_echo_n "(cached) " >&6 2438else 2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2440for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2441do 2442 IFS=$as_save_IFS 2443 test -z "$as_dir" && as_dir=. 2444 for ac_prog in mkdir gmkdir; do 2445 for ac_exec_ext in '' $ac_executable_extensions; do 2446 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2447 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2448 'mkdir (GNU coreutils) '* | \ 2449 'mkdir (coreutils) '* | \ 2450 'mkdir (fileutils) '4.1*) 2451 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2452 break 3;; 2453 esac 2454 done 2455 done 2456 done 2457IFS=$as_save_IFS 2458 2459fi 2460 2461 test -d ./--version && rmdir ./--version 2462 if test "${ac_cv_path_mkdir+set}" = set; then 2463 MKDIR_P="$ac_cv_path_mkdir -p" 2464 else 2465 # As a last resort, use the slow shell script. Don't cache a 2466 # value for MKDIR_P within a source directory, because that will 2467 # break other packages using the cache if that directory is 2468 # removed, or if the value is a relative name. 2469 MKDIR_P="$ac_install_sh -d" 2470 fi 2471fi 2472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2473$as_echo "$MKDIR_P" >&6; } 2474 2475for ac_prog in gawk mawk nawk awk 2476do 2477 # Extract the first word of "$ac_prog", so it can be a program name with args. 2478set dummy $ac_prog; ac_word=$2 2479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2480$as_echo_n "checking for $ac_word... " >&6; } 2481if ${ac_cv_prog_AWK+:} false; then : 2482 $as_echo_n "(cached) " >&6 2483else 2484 if test -n "$AWK"; then 2485 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2486else 2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2488for as_dir in $PATH 2489do 2490 IFS=$as_save_IFS 2491 test -z "$as_dir" && as_dir=. 2492 for ac_exec_ext in '' $ac_executable_extensions; do 2493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2494 ac_cv_prog_AWK="$ac_prog" 2495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2496 break 2 2497 fi 2498done 2499 done 2500IFS=$as_save_IFS 2501 2502fi 2503fi 2504AWK=$ac_cv_prog_AWK 2505if test -n "$AWK"; then 2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2507$as_echo "$AWK" >&6; } 2508else 2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2510$as_echo "no" >&6; } 2511fi 2512 2513 2514 test -n "$AWK" && break 2515done 2516 2517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2518$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2519set x ${MAKE-make} 2520ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2521if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2522 $as_echo_n "(cached) " >&6 2523else 2524 cat >conftest.make <<\_ACEOF 2525SHELL = /bin/sh 2526all: 2527 @echo '@@@%%%=$(MAKE)=@@@%%%' 2528_ACEOF 2529# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2530case `${MAKE-make} -f conftest.make 2>/dev/null` in 2531 *@@@%%%=?*=@@@%%%*) 2532 eval ac_cv_prog_make_${ac_make}_set=yes;; 2533 *) 2534 eval ac_cv_prog_make_${ac_make}_set=no;; 2535esac 2536rm -f conftest.make 2537fi 2538if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2540$as_echo "yes" >&6; } 2541 SET_MAKE= 2542else 2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2544$as_echo "no" >&6; } 2545 SET_MAKE="MAKE=${MAKE-make}" 2546fi 2547 2548rm -rf .tst 2>/dev/null 2549mkdir .tst 2>/dev/null 2550if test -d .tst; then 2551 am__leading_dot=. 2552else 2553 am__leading_dot=_ 2554fi 2555rmdir .tst 2>/dev/null 2556 2557# Check whether --enable-silent-rules was given. 2558if test "${enable_silent_rules+set}" = set; then : 2559 enableval=$enable_silent_rules; 2560fi 2561 2562case $enable_silent_rules in # ((( 2563 yes) AM_DEFAULT_VERBOSITY=0;; 2564 no) AM_DEFAULT_VERBOSITY=1;; 2565 *) AM_DEFAULT_VERBOSITY=1;; 2566esac 2567am_make=${MAKE-make} 2568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2569$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2570if ${am_cv_make_support_nested_variables+:} false; then : 2571 $as_echo_n "(cached) " >&6 2572else 2573 if $as_echo 'TRUE=$(BAR$(V)) 2574BAR0=false 2575BAR1=true 2576V=1 2577am__doit: 2578 @$(TRUE) 2579.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2580 am_cv_make_support_nested_variables=yes 2581else 2582 am_cv_make_support_nested_variables=no 2583fi 2584fi 2585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2586$as_echo "$am_cv_make_support_nested_variables" >&6; } 2587if test $am_cv_make_support_nested_variables = yes; then 2588 AM_V='$(V)' 2589 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2590else 2591 AM_V=$AM_DEFAULT_VERBOSITY 2592 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2593fi 2594AM_BACKSLASH='\' 2595 2596if test "`cd $srcdir && pwd`" != "`pwd`"; then 2597 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2598 # is not polluted with repeated "-I." 2599 am__isrc=' -I$(srcdir)' 2600 # test to see if srcdir already configured 2601 if test -f $srcdir/config.status; then 2602 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2603 fi 2604fi 2605 2606# test whether we have cygpath 2607if test -z "$CYGPATH_W"; then 2608 if (cygpath --version) >/dev/null 2>/dev/null; then 2609 CYGPATH_W='cygpath -w' 2610 else 2611 CYGPATH_W=echo 2612 fi 2613fi 2614 2615 2616# Define the identity of the package. 2617 PACKAGE='xmh' 2618 VERSION='1.0.3' 2619 2620 2621cat >>confdefs.h <<_ACEOF 2622#define PACKAGE "$PACKAGE" 2623_ACEOF 2624 2625 2626cat >>confdefs.h <<_ACEOF 2627#define VERSION "$VERSION" 2628_ACEOF 2629 2630# Some tools Automake needs. 2631 2632ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2633 2634 2635AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2636 2637 2638AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2639 2640 2641AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2642 2643 2644MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2645 2646# For better backward compatibility. To be removed once Automake 1.9.x 2647# dies out for good. For more background, see: 2648# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2649# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2650mkdir_p='$(MKDIR_P)' 2651 2652# We need awk for the "check" target (and possibly the TAP driver). The 2653# system "awk" is bad on some platforms. 2654# Always define AMTAR for backward compatibility. Yes, it's still used 2655# in the wild :-( We should find a proper way to deprecate it ... 2656AMTAR='$${TAR-tar}' 2657 2658 2659# We'll loop over all known methods to create a tar archive until one works. 2660_am_tools='gnutar pax cpio none' 2661 2662am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2663 2664 2665 2666 2667 2668 2669# POSIX will say in a future version that running "rm -f" with no argument 2670# is OK; and we want to be able to make that assumption in our Makefile 2671# recipes. So use an aggressive probe to check that the usage we want is 2672# actually supported "in the wild" to an acceptable degree. 2673# See automake bug#10828. 2674# To make any issue more visible, cause the running configure to be aborted 2675# by default if the 'rm' program in use doesn't match our expectations; the 2676# user can still override this though. 2677if rm -f && rm -fr && rm -rf; then : OK; else 2678 cat >&2 <<'END' 2679Oops! 2680 2681Your 'rm' program seems unable to run without file operands specified 2682on the command line, even when the '-f' option is present. This is contrary 2683to the behaviour of most rm programs out there, and not conforming with 2684the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2685 2686Please tell bug-automake@gnu.org about your system, including the value 2687of your $PATH and any error possibly output before this message. This 2688can help us improve future automake versions. 2689 2690END 2691 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2692 echo 'Configuration will proceed anyway, since you have set the' >&2 2693 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2694 echo >&2 2695 else 2696 cat >&2 <<'END' 2697Aborting the configuration process, to ensure you take notice of the issue. 2698 2699You can download and install GNU coreutils to get an 'rm' implementation 2700that behaves properly: <http://www.gnu.org/software/coreutils/>. 2701 2702If you want to complete the configuration process using your problematic 2703'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2704to "yes", and re-run configure. 2705 2706END 2707 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2708 fi 2709fi 2710 2711 2712# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724DEPDIR="${am__leading_dot}deps" 2725 2726ac_config_commands="$ac_config_commands depfiles" 2727 2728 2729am_make=${MAKE-make} 2730cat > confinc << 'END' 2731am__doit: 2732 @echo this is the am__doit target 2733.PHONY: am__doit 2734END 2735# If we don't find an include directive, just comment out the code. 2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2737$as_echo_n "checking for style of include used by $am_make... " >&6; } 2738am__include="#" 2739am__quote= 2740_am_result=none 2741# First try GNU make style include. 2742echo "include confinc" > confmf 2743# Ignore all kinds of additional output from 'make'. 2744case `$am_make -s -f confmf 2> /dev/null` in #( 2745*the\ am__doit\ target*) 2746 am__include=include 2747 am__quote= 2748 _am_result=GNU 2749 ;; 2750esac 2751# Now try BSD make style include. 2752if test "$am__include" = "#"; then 2753 echo '.include "confinc"' > confmf 2754 case `$am_make -s -f confmf 2> /dev/null` in #( 2755 *the\ am__doit\ target*) 2756 am__include=.include 2757 am__quote="\"" 2758 _am_result=BSD 2759 ;; 2760 esac 2761fi 2762 2763 2764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2765$as_echo "$_am_result" >&6; } 2766rm -f confinc confmf 2767 2768# Check whether --enable-dependency-tracking was given. 2769if test "${enable_dependency_tracking+set}" = set; then : 2770 enableval=$enable_dependency_tracking; 2771fi 2772 2773if test "x$enable_dependency_tracking" != xno; then 2774 am_depcomp="$ac_aux_dir/depcomp" 2775 AMDEPBACKSLASH='\' 2776 am__nodep='_no' 2777fi 2778 if test "x$enable_dependency_tracking" != xno; then 2779 AMDEP_TRUE= 2780 AMDEP_FALSE='#' 2781else 2782 AMDEP_TRUE='#' 2783 AMDEP_FALSE= 2784fi 2785 2786 2787ac_ext=c 2788ac_cpp='$CPP $CPPFLAGS' 2789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2791ac_compiler_gnu=$ac_cv_c_compiler_gnu 2792if test -n "$ac_tool_prefix"; then 2793 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2794set dummy ${ac_tool_prefix}gcc; ac_word=$2 2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2796$as_echo_n "checking for $ac_word... " >&6; } 2797if ${ac_cv_prog_CC+:} false; then : 2798 $as_echo_n "(cached) " >&6 2799else 2800 if test -n "$CC"; then 2801 ac_cv_prog_CC="$CC" # Let the user override the test. 2802else 2803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2804for as_dir in $PATH 2805do 2806 IFS=$as_save_IFS 2807 test -z "$as_dir" && as_dir=. 2808 for ac_exec_ext in '' $ac_executable_extensions; do 2809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2810 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2812 break 2 2813 fi 2814done 2815 done 2816IFS=$as_save_IFS 2817 2818fi 2819fi 2820CC=$ac_cv_prog_CC 2821if test -n "$CC"; then 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2823$as_echo "$CC" >&6; } 2824else 2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2826$as_echo "no" >&6; } 2827fi 2828 2829 2830fi 2831if test -z "$ac_cv_prog_CC"; then 2832 ac_ct_CC=$CC 2833 # Extract the first word of "gcc", so it can be a program name with args. 2834set dummy gcc; ac_word=$2 2835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2836$as_echo_n "checking for $ac_word... " >&6; } 2837if ${ac_cv_prog_ac_ct_CC+:} false; then : 2838 $as_echo_n "(cached) " >&6 2839else 2840 if test -n "$ac_ct_CC"; then 2841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2842else 2843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2844for as_dir in $PATH 2845do 2846 IFS=$as_save_IFS 2847 test -z "$as_dir" && as_dir=. 2848 for ac_exec_ext in '' $ac_executable_extensions; do 2849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2850 ac_cv_prog_ac_ct_CC="gcc" 2851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2852 break 2 2853 fi 2854done 2855 done 2856IFS=$as_save_IFS 2857 2858fi 2859fi 2860ac_ct_CC=$ac_cv_prog_ac_ct_CC 2861if test -n "$ac_ct_CC"; then 2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2863$as_echo "$ac_ct_CC" >&6; } 2864else 2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2866$as_echo "no" >&6; } 2867fi 2868 2869 if test "x$ac_ct_CC" = x; then 2870 CC="" 2871 else 2872 case $cross_compiling:$ac_tool_warned in 2873yes:) 2874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2876ac_tool_warned=yes ;; 2877esac 2878 CC=$ac_ct_CC 2879 fi 2880else 2881 CC="$ac_cv_prog_CC" 2882fi 2883 2884if test -z "$CC"; then 2885 if test -n "$ac_tool_prefix"; then 2886 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2887set dummy ${ac_tool_prefix}cc; ac_word=$2 2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2889$as_echo_n "checking for $ac_word... " >&6; } 2890if ${ac_cv_prog_CC+:} false; then : 2891 $as_echo_n "(cached) " >&6 2892else 2893 if test -n "$CC"; then 2894 ac_cv_prog_CC="$CC" # Let the user override the test. 2895else 2896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2897for as_dir in $PATH 2898do 2899 IFS=$as_save_IFS 2900 test -z "$as_dir" && as_dir=. 2901 for ac_exec_ext in '' $ac_executable_extensions; do 2902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2903 ac_cv_prog_CC="${ac_tool_prefix}cc" 2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2905 break 2 2906 fi 2907done 2908 done 2909IFS=$as_save_IFS 2910 2911fi 2912fi 2913CC=$ac_cv_prog_CC 2914if test -n "$CC"; then 2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2916$as_echo "$CC" >&6; } 2917else 2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2919$as_echo "no" >&6; } 2920fi 2921 2922 2923 fi 2924fi 2925if test -z "$CC"; then 2926 # Extract the first word of "cc", so it can be a program name with args. 2927set dummy cc; ac_word=$2 2928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2929$as_echo_n "checking for $ac_word... " >&6; } 2930if ${ac_cv_prog_CC+:} false; then : 2931 $as_echo_n "(cached) " >&6 2932else 2933 if test -n "$CC"; then 2934 ac_cv_prog_CC="$CC" # Let the user override the test. 2935else 2936 ac_prog_rejected=no 2937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2938for as_dir in $PATH 2939do 2940 IFS=$as_save_IFS 2941 test -z "$as_dir" && as_dir=. 2942 for ac_exec_ext in '' $ac_executable_extensions; do 2943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2944 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2945 ac_prog_rejected=yes 2946 continue 2947 fi 2948 ac_cv_prog_CC="cc" 2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2950 break 2 2951 fi 2952done 2953 done 2954IFS=$as_save_IFS 2955 2956if test $ac_prog_rejected = yes; then 2957 # We found a bogon in the path, so make sure we never use it. 2958 set dummy $ac_cv_prog_CC 2959 shift 2960 if test $# != 0; then 2961 # We chose a different compiler from the bogus one. 2962 # However, it has the same basename, so the bogon will be chosen 2963 # first if we set CC to just the basename; use the full file name. 2964 shift 2965 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2966 fi 2967fi 2968fi 2969fi 2970CC=$ac_cv_prog_CC 2971if test -n "$CC"; then 2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2973$as_echo "$CC" >&6; } 2974else 2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2976$as_echo "no" >&6; } 2977fi 2978 2979 2980fi 2981if test -z "$CC"; then 2982 if test -n "$ac_tool_prefix"; then 2983 for ac_prog in cl.exe 2984 do 2985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2986set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2988$as_echo_n "checking for $ac_word... " >&6; } 2989if ${ac_cv_prog_CC+:} false; then : 2990 $as_echo_n "(cached) " >&6 2991else 2992 if test -n "$CC"; then 2993 ac_cv_prog_CC="$CC" # Let the user override the test. 2994else 2995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2996for as_dir in $PATH 2997do 2998 IFS=$as_save_IFS 2999 test -z "$as_dir" && as_dir=. 3000 for ac_exec_ext in '' $ac_executable_extensions; do 3001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3002 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3004 break 2 3005 fi 3006done 3007 done 3008IFS=$as_save_IFS 3009 3010fi 3011fi 3012CC=$ac_cv_prog_CC 3013if test -n "$CC"; then 3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3015$as_echo "$CC" >&6; } 3016else 3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3018$as_echo "no" >&6; } 3019fi 3020 3021 3022 test -n "$CC" && break 3023 done 3024fi 3025if test -z "$CC"; then 3026 ac_ct_CC=$CC 3027 for ac_prog in cl.exe 3028do 3029 # Extract the first word of "$ac_prog", so it can be a program name with args. 3030set dummy $ac_prog; ac_word=$2 3031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3032$as_echo_n "checking for $ac_word... " >&6; } 3033if ${ac_cv_prog_ac_ct_CC+:} false; then : 3034 $as_echo_n "(cached) " >&6 3035else 3036 if test -n "$ac_ct_CC"; then 3037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3038else 3039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3040for as_dir in $PATH 3041do 3042 IFS=$as_save_IFS 3043 test -z "$as_dir" && as_dir=. 3044 for ac_exec_ext in '' $ac_executable_extensions; do 3045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3046 ac_cv_prog_ac_ct_CC="$ac_prog" 3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3048 break 2 3049 fi 3050done 3051 done 3052IFS=$as_save_IFS 3053 3054fi 3055fi 3056ac_ct_CC=$ac_cv_prog_ac_ct_CC 3057if test -n "$ac_ct_CC"; then 3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3059$as_echo "$ac_ct_CC" >&6; } 3060else 3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3062$as_echo "no" >&6; } 3063fi 3064 3065 3066 test -n "$ac_ct_CC" && break 3067done 3068 3069 if test "x$ac_ct_CC" = x; then 3070 CC="" 3071 else 3072 case $cross_compiling:$ac_tool_warned in 3073yes:) 3074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3076ac_tool_warned=yes ;; 3077esac 3078 CC=$ac_ct_CC 3079 fi 3080fi 3081 3082fi 3083 3084 3085test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3087as_fn_error $? "no acceptable C compiler found in \$PATH 3088See \`config.log' for more details" "$LINENO" 5; } 3089 3090# Provide some information about the compiler. 3091$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3092set X $ac_compile 3093ac_compiler=$2 3094for ac_option in --version -v -V -qversion; do 3095 { { ac_try="$ac_compiler $ac_option >&5" 3096case "(($ac_try" in 3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3098 *) ac_try_echo=$ac_try;; 3099esac 3100eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3101$as_echo "$ac_try_echo"; } >&5 3102 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3103 ac_status=$? 3104 if test -s conftest.err; then 3105 sed '10a\ 3106... rest of stderr output deleted ... 3107 10q' conftest.err >conftest.er1 3108 cat conftest.er1 >&5 3109 fi 3110 rm -f conftest.er1 conftest.err 3111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3112 test $ac_status = 0; } 3113done 3114 3115cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3116/* end confdefs.h. */ 3117 3118int 3119main () 3120{ 3121 3122 ; 3123 return 0; 3124} 3125_ACEOF 3126ac_clean_files_save=$ac_clean_files 3127ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3128# Try to create an executable without -o first, disregard a.out. 3129# It will help us diagnose broken compilers, and finding out an intuition 3130# of exeext. 3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3132$as_echo_n "checking whether the C compiler works... " >&6; } 3133ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3134 3135# The possible output files: 3136ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3137 3138ac_rmfiles= 3139for ac_file in $ac_files 3140do 3141 case $ac_file in 3142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3143 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3144 esac 3145done 3146rm -f $ac_rmfiles 3147 3148if { { ac_try="$ac_link_default" 3149case "(($ac_try" in 3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3151 *) ac_try_echo=$ac_try;; 3152esac 3153eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3154$as_echo "$ac_try_echo"; } >&5 3155 (eval "$ac_link_default") 2>&5 3156 ac_status=$? 3157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3158 test $ac_status = 0; }; then : 3159 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3160# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3161# in a Makefile. We should not override ac_cv_exeext if it was cached, 3162# so that the user can short-circuit this test for compilers unknown to 3163# Autoconf. 3164for ac_file in $ac_files '' 3165do 3166 test -f "$ac_file" || continue 3167 case $ac_file in 3168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3169 ;; 3170 [ab].out ) 3171 # We found the default executable, but exeext='' is most 3172 # certainly right. 3173 break;; 3174 *.* ) 3175 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3176 then :; else 3177 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3178 fi 3179 # We set ac_cv_exeext here because the later test for it is not 3180 # safe: cross compilers may not add the suffix if given an `-o' 3181 # argument, so we may need to know it at that point already. 3182 # Even if this section looks crufty: it has the advantage of 3183 # actually working. 3184 break;; 3185 * ) 3186 break;; 3187 esac 3188done 3189test "$ac_cv_exeext" = no && ac_cv_exeext= 3190 3191else 3192 ac_file='' 3193fi 3194if test -z "$ac_file"; then : 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3196$as_echo "no" >&6; } 3197$as_echo "$as_me: failed program was:" >&5 3198sed 's/^/| /' conftest.$ac_ext >&5 3199 3200{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3202as_fn_error 77 "C compiler cannot create executables 3203See \`config.log' for more details" "$LINENO" 5; } 3204else 3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3206$as_echo "yes" >&6; } 3207fi 3208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3209$as_echo_n "checking for C compiler default output file name... " >&6; } 3210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3211$as_echo "$ac_file" >&6; } 3212ac_exeext=$ac_cv_exeext 3213 3214rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3215ac_clean_files=$ac_clean_files_save 3216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3217$as_echo_n "checking for suffix of executables... " >&6; } 3218if { { ac_try="$ac_link" 3219case "(($ac_try" in 3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3221 *) ac_try_echo=$ac_try;; 3222esac 3223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3224$as_echo "$ac_try_echo"; } >&5 3225 (eval "$ac_link") 2>&5 3226 ac_status=$? 3227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3228 test $ac_status = 0; }; then : 3229 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3230# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3231# work properly (i.e., refer to `conftest.exe'), while it won't with 3232# `rm'. 3233for ac_file in conftest.exe conftest conftest.*; do 3234 test -f "$ac_file" || continue 3235 case $ac_file in 3236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3237 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3238 break;; 3239 * ) break;; 3240 esac 3241done 3242else 3243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3245as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3246See \`config.log' for more details" "$LINENO" 5; } 3247fi 3248rm -f conftest conftest$ac_cv_exeext 3249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3250$as_echo "$ac_cv_exeext" >&6; } 3251 3252rm -f conftest.$ac_ext 3253EXEEXT=$ac_cv_exeext 3254ac_exeext=$EXEEXT 3255cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3256/* end confdefs.h. */ 3257#include <stdio.h> 3258int 3259main () 3260{ 3261FILE *f = fopen ("conftest.out", "w"); 3262 return ferror (f) || fclose (f) != 0; 3263 3264 ; 3265 return 0; 3266} 3267_ACEOF 3268ac_clean_files="$ac_clean_files conftest.out" 3269# Check that the compiler produces executables we can run. If not, either 3270# the compiler is broken, or we cross compile. 3271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3272$as_echo_n "checking whether we are cross compiling... " >&6; } 3273if test "$cross_compiling" != yes; then 3274 { { ac_try="$ac_link" 3275case "(($ac_try" in 3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3277 *) ac_try_echo=$ac_try;; 3278esac 3279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3280$as_echo "$ac_try_echo"; } >&5 3281 (eval "$ac_link") 2>&5 3282 ac_status=$? 3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3284 test $ac_status = 0; } 3285 if { ac_try='./conftest$ac_cv_exeext' 3286 { { case "(($ac_try" in 3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3288 *) ac_try_echo=$ac_try;; 3289esac 3290eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3291$as_echo "$ac_try_echo"; } >&5 3292 (eval "$ac_try") 2>&5 3293 ac_status=$? 3294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3295 test $ac_status = 0; }; }; then 3296 cross_compiling=no 3297 else 3298 if test "$cross_compiling" = maybe; then 3299 cross_compiling=yes 3300 else 3301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3303as_fn_error $? "cannot run C compiled programs. 3304If you meant to cross compile, use \`--host'. 3305See \`config.log' for more details" "$LINENO" 5; } 3306 fi 3307 fi 3308fi 3309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3310$as_echo "$cross_compiling" >&6; } 3311 3312rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3313ac_clean_files=$ac_clean_files_save 3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3315$as_echo_n "checking for suffix of object files... " >&6; } 3316if ${ac_cv_objext+:} false; then : 3317 $as_echo_n "(cached) " >&6 3318else 3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3320/* end confdefs.h. */ 3321 3322int 3323main () 3324{ 3325 3326 ; 3327 return 0; 3328} 3329_ACEOF 3330rm -f conftest.o conftest.obj 3331if { { ac_try="$ac_compile" 3332case "(($ac_try" in 3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3334 *) ac_try_echo=$ac_try;; 3335esac 3336eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3337$as_echo "$ac_try_echo"; } >&5 3338 (eval "$ac_compile") 2>&5 3339 ac_status=$? 3340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3341 test $ac_status = 0; }; then : 3342 for ac_file in conftest.o conftest.obj conftest.*; do 3343 test -f "$ac_file" || continue; 3344 case $ac_file in 3345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3346 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3347 break;; 3348 esac 3349done 3350else 3351 $as_echo "$as_me: failed program was:" >&5 3352sed 's/^/| /' conftest.$ac_ext >&5 3353 3354{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3356as_fn_error $? "cannot compute suffix of object files: cannot compile 3357See \`config.log' for more details" "$LINENO" 5; } 3358fi 3359rm -f conftest.$ac_cv_objext conftest.$ac_ext 3360fi 3361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3362$as_echo "$ac_cv_objext" >&6; } 3363OBJEXT=$ac_cv_objext 3364ac_objext=$OBJEXT 3365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3366$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3367if ${ac_cv_c_compiler_gnu+:} false; then : 3368 $as_echo_n "(cached) " >&6 3369else 3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3371/* end confdefs.h. */ 3372 3373int 3374main () 3375{ 3376#ifndef __GNUC__ 3377 choke me 3378#endif 3379 3380 ; 3381 return 0; 3382} 3383_ACEOF 3384if ac_fn_c_try_compile "$LINENO"; then : 3385 ac_compiler_gnu=yes 3386else 3387 ac_compiler_gnu=no 3388fi 3389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3390ac_cv_c_compiler_gnu=$ac_compiler_gnu 3391 3392fi 3393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3394$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3395if test $ac_compiler_gnu = yes; then 3396 GCC=yes 3397else 3398 GCC= 3399fi 3400ac_test_CFLAGS=${CFLAGS+set} 3401ac_save_CFLAGS=$CFLAGS 3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3403$as_echo_n "checking whether $CC accepts -g... " >&6; } 3404if ${ac_cv_prog_cc_g+:} false; then : 3405 $as_echo_n "(cached) " >&6 3406else 3407 ac_save_c_werror_flag=$ac_c_werror_flag 3408 ac_c_werror_flag=yes 3409 ac_cv_prog_cc_g=no 3410 CFLAGS="-g" 3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3412/* end confdefs.h. */ 3413 3414int 3415main () 3416{ 3417 3418 ; 3419 return 0; 3420} 3421_ACEOF 3422if ac_fn_c_try_compile "$LINENO"; then : 3423 ac_cv_prog_cc_g=yes 3424else 3425 CFLAGS="" 3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3427/* end confdefs.h. */ 3428 3429int 3430main () 3431{ 3432 3433 ; 3434 return 0; 3435} 3436_ACEOF 3437if ac_fn_c_try_compile "$LINENO"; then : 3438 3439else 3440 ac_c_werror_flag=$ac_save_c_werror_flag 3441 CFLAGS="-g" 3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3443/* end confdefs.h. */ 3444 3445int 3446main () 3447{ 3448 3449 ; 3450 return 0; 3451} 3452_ACEOF 3453if ac_fn_c_try_compile "$LINENO"; then : 3454 ac_cv_prog_cc_g=yes 3455fi 3456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3457fi 3458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3459fi 3460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3461 ac_c_werror_flag=$ac_save_c_werror_flag 3462fi 3463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3464$as_echo "$ac_cv_prog_cc_g" >&6; } 3465if test "$ac_test_CFLAGS" = set; then 3466 CFLAGS=$ac_save_CFLAGS 3467elif test $ac_cv_prog_cc_g = yes; then 3468 if test "$GCC" = yes; then 3469 CFLAGS="-g -O2" 3470 else 3471 CFLAGS="-g" 3472 fi 3473else 3474 if test "$GCC" = yes; then 3475 CFLAGS="-O2" 3476 else 3477 CFLAGS= 3478 fi 3479fi 3480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3481$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3482if ${ac_cv_prog_cc_c89+:} false; then : 3483 $as_echo_n "(cached) " >&6 3484else 3485 ac_cv_prog_cc_c89=no 3486ac_save_CC=$CC 3487cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3488/* end confdefs.h. */ 3489#include <stdarg.h> 3490#include <stdio.h> 3491struct stat; 3492/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3493struct buf { int x; }; 3494FILE * (*rcsopen) (struct buf *, struct stat *, int); 3495static char *e (p, i) 3496 char **p; 3497 int i; 3498{ 3499 return p[i]; 3500} 3501static char *f (char * (*g) (char **, int), char **p, ...) 3502{ 3503 char *s; 3504 va_list v; 3505 va_start (v,p); 3506 s = g (p, va_arg (v,int)); 3507 va_end (v); 3508 return s; 3509} 3510 3511/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3512 function prototypes and stuff, but not '\xHH' hex character constants. 3513 These don't provoke an error unfortunately, instead are silently treated 3514 as 'x'. The following induces an error, until -std is added to get 3515 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3516 array size at least. It's necessary to write '\x00'==0 to get something 3517 that's true only with -std. */ 3518int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3519 3520/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3521 inside strings and character constants. */ 3522#define FOO(x) 'x' 3523int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3524 3525int test (int i, double x); 3526struct s1 {int (*f) (int a);}; 3527struct s2 {int (*f) (double a);}; 3528int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3529int argc; 3530char **argv; 3531int 3532main () 3533{ 3534return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3535 ; 3536 return 0; 3537} 3538_ACEOF 3539for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3540 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3541do 3542 CC="$ac_save_CC $ac_arg" 3543 if ac_fn_c_try_compile "$LINENO"; then : 3544 ac_cv_prog_cc_c89=$ac_arg 3545fi 3546rm -f core conftest.err conftest.$ac_objext 3547 test "x$ac_cv_prog_cc_c89" != "xno" && break 3548done 3549rm -f conftest.$ac_ext 3550CC=$ac_save_CC 3551 3552fi 3553# AC_CACHE_VAL 3554case "x$ac_cv_prog_cc_c89" in 3555 x) 3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3557$as_echo "none needed" >&6; } ;; 3558 xno) 3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3560$as_echo "unsupported" >&6; } ;; 3561 *) 3562 CC="$CC $ac_cv_prog_cc_c89" 3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3564$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3565esac 3566if test "x$ac_cv_prog_cc_c89" != xno; then : 3567 3568fi 3569 3570ac_ext=c 3571ac_cpp='$CPP $CPPFLAGS' 3572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3574ac_compiler_gnu=$ac_cv_c_compiler_gnu 3575 3576ac_ext=c 3577ac_cpp='$CPP $CPPFLAGS' 3578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3580ac_compiler_gnu=$ac_cv_c_compiler_gnu 3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3582$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3583if ${am_cv_prog_cc_c_o+:} false; then : 3584 $as_echo_n "(cached) " >&6 3585else 3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3587/* end confdefs.h. */ 3588 3589int 3590main () 3591{ 3592 3593 ; 3594 return 0; 3595} 3596_ACEOF 3597 # Make sure it works both with $CC and with simple cc. 3598 # Following AC_PROG_CC_C_O, we do the test twice because some 3599 # compilers refuse to overwrite an existing .o file with -o, 3600 # though they will create one. 3601 am_cv_prog_cc_c_o=yes 3602 for am_i in 1 2; do 3603 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3604 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3605 ac_status=$? 3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3607 (exit $ac_status); } \ 3608 && test -f conftest2.$ac_objext; then 3609 : OK 3610 else 3611 am_cv_prog_cc_c_o=no 3612 break 3613 fi 3614 done 3615 rm -f core conftest* 3616 unset am_i 3617fi 3618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3619$as_echo "$am_cv_prog_cc_c_o" >&6; } 3620if test "$am_cv_prog_cc_c_o" != yes; then 3621 # Losing compiler, so override with the script. 3622 # FIXME: It is wrong to rewrite CC. 3623 # But if we don't then we get into trouble of one sort or another. 3624 # A longer-term fix would be to have automake use am__CC in this case, 3625 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3626 CC="$am_aux_dir/compile $CC" 3627fi 3628ac_ext=c 3629ac_cpp='$CPP $CPPFLAGS' 3630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3632ac_compiler_gnu=$ac_cv_c_compiler_gnu 3633 3634 3635depcc="$CC" am_compiler_list= 3636 3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3638$as_echo_n "checking dependency style of $depcc... " >&6; } 3639if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3640 $as_echo_n "(cached) " >&6 3641else 3642 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3643 # We make a subdir and do the tests there. Otherwise we can end up 3644 # making bogus files that we don't know about and never remove. For 3645 # instance it was reported that on HP-UX the gcc test will end up 3646 # making a dummy file named 'D' -- because '-MD' means "put the output 3647 # in D". 3648 rm -rf conftest.dir 3649 mkdir conftest.dir 3650 # Copy depcomp to subdir because otherwise we won't find it if we're 3651 # using a relative directory. 3652 cp "$am_depcomp" conftest.dir 3653 cd conftest.dir 3654 # We will build objects and dependencies in a subdirectory because 3655 # it helps to detect inapplicable dependency modes. For instance 3656 # both Tru64's cc and ICC support -MD to output dependencies as a 3657 # side effect of compilation, but ICC will put the dependencies in 3658 # the current directory while Tru64 will put them in the object 3659 # directory. 3660 mkdir sub 3661 3662 am_cv_CC_dependencies_compiler_type=none 3663 if test "$am_compiler_list" = ""; then 3664 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3665 fi 3666 am__universal=false 3667 case " $depcc " in #( 3668 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3669 esac 3670 3671 for depmode in $am_compiler_list; do 3672 # Setup a source with many dependencies, because some compilers 3673 # like to wrap large dependency lists on column 80 (with \), and 3674 # we should not choose a depcomp mode which is confused by this. 3675 # 3676 # We need to recreate these files for each test, as the compiler may 3677 # overwrite some of them when testing with obscure command lines. 3678 # This happens at least with the AIX C compiler. 3679 : > sub/conftest.c 3680 for i in 1 2 3 4 5 6; do 3681 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3682 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3683 # Solaris 10 /bin/sh. 3684 echo '/* dummy */' > sub/conftst$i.h 3685 done 3686 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3687 3688 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3689 # mode. It turns out that the SunPro C++ compiler does not properly 3690 # handle '-M -o', and we need to detect this. Also, some Intel 3691 # versions had trouble with output in subdirs. 3692 am__obj=sub/conftest.${OBJEXT-o} 3693 am__minus_obj="-o $am__obj" 3694 case $depmode in 3695 gcc) 3696 # This depmode causes a compiler race in universal mode. 3697 test "$am__universal" = false || continue 3698 ;; 3699 nosideeffect) 3700 # After this tag, mechanisms are not by side-effect, so they'll 3701 # only be used when explicitly requested. 3702 if test "x$enable_dependency_tracking" = xyes; then 3703 continue 3704 else 3705 break 3706 fi 3707 ;; 3708 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3709 # This compiler won't grok '-c -o', but also, the minuso test has 3710 # not run yet. These depmodes are late enough in the game, and 3711 # so weak that their functioning should not be impacted. 3712 am__obj=conftest.${OBJEXT-o} 3713 am__minus_obj= 3714 ;; 3715 none) break ;; 3716 esac 3717 if depmode=$depmode \ 3718 source=sub/conftest.c object=$am__obj \ 3719 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3720 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3721 >/dev/null 2>conftest.err && 3722 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3723 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3724 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3725 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3726 # icc doesn't choke on unknown options, it will just issue warnings 3727 # or remarks (even with -Werror). So we grep stderr for any message 3728 # that says an option was ignored or not supported. 3729 # When given -MP, icc 7.0 and 7.1 complain thusly: 3730 # icc: Command line warning: ignoring option '-M'; no argument required 3731 # The diagnosis changed in icc 8.0: 3732 # icc: Command line remark: option '-MP' not supported 3733 if (grep 'ignoring option' conftest.err || 3734 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3735 am_cv_CC_dependencies_compiler_type=$depmode 3736 break 3737 fi 3738 fi 3739 done 3740 3741 cd .. 3742 rm -rf conftest.dir 3743else 3744 am_cv_CC_dependencies_compiler_type=none 3745fi 3746 3747fi 3748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3749$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3750CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3751 3752 if 3753 test "x$enable_dependency_tracking" != xno \ 3754 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3755 am__fastdepCC_TRUE= 3756 am__fastdepCC_FALSE='#' 3757else 3758 am__fastdepCC_TRUE='#' 3759 am__fastdepCC_FALSE= 3760fi 3761 3762 3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3764$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3765if ${ac_cv_prog_cc_c99+:} false; then : 3766 $as_echo_n "(cached) " >&6 3767else 3768 ac_cv_prog_cc_c99=no 3769ac_save_CC=$CC 3770cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3771/* end confdefs.h. */ 3772#include <stdarg.h> 3773#include <stdbool.h> 3774#include <stdlib.h> 3775#include <wchar.h> 3776#include <stdio.h> 3777 3778// Check varargs macros. These examples are taken from C99 6.10.3.5. 3779#define debug(...) fprintf (stderr, __VA_ARGS__) 3780#define showlist(...) puts (#__VA_ARGS__) 3781#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3782static void 3783test_varargs_macros (void) 3784{ 3785 int x = 1234; 3786 int y = 5678; 3787 debug ("Flag"); 3788 debug ("X = %d\n", x); 3789 showlist (The first, second, and third items.); 3790 report (x>y, "x is %d but y is %d", x, y); 3791} 3792 3793// Check long long types. 3794#define BIG64 18446744073709551615ull 3795#define BIG32 4294967295ul 3796#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3797#if !BIG_OK 3798 your preprocessor is broken; 3799#endif 3800#if BIG_OK 3801#else 3802 your preprocessor is broken; 3803#endif 3804static long long int bignum = -9223372036854775807LL; 3805static unsigned long long int ubignum = BIG64; 3806 3807struct incomplete_array 3808{ 3809 int datasize; 3810 double data[]; 3811}; 3812 3813struct named_init { 3814 int number; 3815 const wchar_t *name; 3816 double average; 3817}; 3818 3819typedef const char *ccp; 3820 3821static inline int 3822test_restrict (ccp restrict text) 3823{ 3824 // See if C++-style comments work. 3825 // Iterate through items via the restricted pointer. 3826 // Also check for declarations in for loops. 3827 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3828 continue; 3829 return 0; 3830} 3831 3832// Check varargs and va_copy. 3833static void 3834test_varargs (const char *format, ...) 3835{ 3836 va_list args; 3837 va_start (args, format); 3838 va_list args_copy; 3839 va_copy (args_copy, args); 3840 3841 const char *str; 3842 int number; 3843 float fnumber; 3844 3845 while (*format) 3846 { 3847 switch (*format++) 3848 { 3849 case 's': // string 3850 str = va_arg (args_copy, const char *); 3851 break; 3852 case 'd': // int 3853 number = va_arg (args_copy, int); 3854 break; 3855 case 'f': // float 3856 fnumber = va_arg (args_copy, double); 3857 break; 3858 default: 3859 break; 3860 } 3861 } 3862 va_end (args_copy); 3863 va_end (args); 3864} 3865 3866int 3867main () 3868{ 3869 3870 // Check bool. 3871 _Bool success = false; 3872 3873 // Check restrict. 3874 if (test_restrict ("String literal") == 0) 3875 success = true; 3876 char *restrict newvar = "Another string"; 3877 3878 // Check varargs. 3879 test_varargs ("s, d' f .", "string", 65, 34.234); 3880 test_varargs_macros (); 3881 3882 // Check flexible array members. 3883 struct incomplete_array *ia = 3884 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3885 ia->datasize = 10; 3886 for (int i = 0; i < ia->datasize; ++i) 3887 ia->data[i] = i * 1.234; 3888 3889 // Check named initializers. 3890 struct named_init ni = { 3891 .number = 34, 3892 .name = L"Test wide string", 3893 .average = 543.34343, 3894 }; 3895 3896 ni.number = 58; 3897 3898 int dynamic_array[ni.number]; 3899 dynamic_array[ni.number - 1] = 543; 3900 3901 // work around unused variable warnings 3902 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3903 || dynamic_array[ni.number - 1] != 543); 3904 3905 ; 3906 return 0; 3907} 3908_ACEOF 3909for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3910do 3911 CC="$ac_save_CC $ac_arg" 3912 if ac_fn_c_try_compile "$LINENO"; then : 3913 ac_cv_prog_cc_c99=$ac_arg 3914fi 3915rm -f core conftest.err conftest.$ac_objext 3916 test "x$ac_cv_prog_cc_c99" != "xno" && break 3917done 3918rm -f conftest.$ac_ext 3919CC=$ac_save_CC 3920 3921fi 3922# AC_CACHE_VAL 3923case "x$ac_cv_prog_cc_c99" in 3924 x) 3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3926$as_echo "none needed" >&6; } ;; 3927 xno) 3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3929$as_echo "unsupported" >&6; } ;; 3930 *) 3931 CC="$CC $ac_cv_prog_cc_c99" 3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3933$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3934esac 3935if test "x$ac_cv_prog_cc_c99" != xno; then : 3936 3937fi 3938 3939 3940 3941ac_ext=c 3942ac_cpp='$CPP $CPPFLAGS' 3943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3945ac_compiler_gnu=$ac_cv_c_compiler_gnu 3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3947$as_echo_n "checking how to run the C preprocessor... " >&6; } 3948# On Suns, sometimes $CPP names a directory. 3949if test -n "$CPP" && test -d "$CPP"; then 3950 CPP= 3951fi 3952if test -z "$CPP"; then 3953 if ${ac_cv_prog_CPP+:} false; then : 3954 $as_echo_n "(cached) " >&6 3955else 3956 # Double quotes because CPP needs to be expanded 3957 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3958 do 3959 ac_preproc_ok=false 3960for ac_c_preproc_warn_flag in '' yes 3961do 3962 # Use a header file that comes with gcc, so configuring glibc 3963 # with a fresh cross-compiler works. 3964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3965 # <limits.h> exists even on freestanding compilers. 3966 # On the NeXT, cc -E runs the code through the compiler's parser, 3967 # not just through cpp. "Syntax error" is here to catch this case. 3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3969/* end confdefs.h. */ 3970#ifdef __STDC__ 3971# include <limits.h> 3972#else 3973# include <assert.h> 3974#endif 3975 Syntax error 3976_ACEOF 3977if ac_fn_c_try_cpp "$LINENO"; then : 3978 3979else 3980 # Broken: fails on valid input. 3981continue 3982fi 3983rm -f conftest.err conftest.i conftest.$ac_ext 3984 3985 # OK, works on sane cases. Now check whether nonexistent headers 3986 # can be detected and how. 3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3988/* end confdefs.h. */ 3989#include <ac_nonexistent.h> 3990_ACEOF 3991if ac_fn_c_try_cpp "$LINENO"; then : 3992 # Broken: success on invalid input. 3993continue 3994else 3995 # Passes both tests. 3996ac_preproc_ok=: 3997break 3998fi 3999rm -f conftest.err conftest.i conftest.$ac_ext 4000 4001done 4002# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4003rm -f conftest.i conftest.err conftest.$ac_ext 4004if $ac_preproc_ok; then : 4005 break 4006fi 4007 4008 done 4009 ac_cv_prog_CPP=$CPP 4010 4011fi 4012 CPP=$ac_cv_prog_CPP 4013else 4014 ac_cv_prog_CPP=$CPP 4015fi 4016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4017$as_echo "$CPP" >&6; } 4018ac_preproc_ok=false 4019for ac_c_preproc_warn_flag in '' yes 4020do 4021 # Use a header file that comes with gcc, so configuring glibc 4022 # with a fresh cross-compiler works. 4023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4024 # <limits.h> exists even on freestanding compilers. 4025 # On the NeXT, cc -E runs the code through the compiler's parser, 4026 # not just through cpp. "Syntax error" is here to catch this case. 4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4028/* end confdefs.h. */ 4029#ifdef __STDC__ 4030# include <limits.h> 4031#else 4032# include <assert.h> 4033#endif 4034 Syntax error 4035_ACEOF 4036if ac_fn_c_try_cpp "$LINENO"; then : 4037 4038else 4039 # Broken: fails on valid input. 4040continue 4041fi 4042rm -f conftest.err conftest.i conftest.$ac_ext 4043 4044 # OK, works on sane cases. Now check whether nonexistent headers 4045 # can be detected and how. 4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4047/* end confdefs.h. */ 4048#include <ac_nonexistent.h> 4049_ACEOF 4050if ac_fn_c_try_cpp "$LINENO"; then : 4051 # Broken: success on invalid input. 4052continue 4053else 4054 # Passes both tests. 4055ac_preproc_ok=: 4056break 4057fi 4058rm -f conftest.err conftest.i conftest.$ac_ext 4059 4060done 4061# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4062rm -f conftest.i conftest.err conftest.$ac_ext 4063if $ac_preproc_ok; then : 4064 4065else 4066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4068as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4069See \`config.log' for more details" "$LINENO" 5; } 4070fi 4071 4072ac_ext=c 4073ac_cpp='$CPP $CPPFLAGS' 4074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4076ac_compiler_gnu=$ac_cv_c_compiler_gnu 4077 4078 4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4080$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4081if ${ac_cv_path_GREP+:} false; then : 4082 $as_echo_n "(cached) " >&6 4083else 4084 if test -z "$GREP"; then 4085 ac_path_GREP_found=false 4086 # Loop through the user's path and test for each of PROGNAME-LIST 4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4088for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4089do 4090 IFS=$as_save_IFS 4091 test -z "$as_dir" && as_dir=. 4092 for ac_prog in grep ggrep; do 4093 for ac_exec_ext in '' $ac_executable_extensions; do 4094 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4095 as_fn_executable_p "$ac_path_GREP" || continue 4096# Check for GNU ac_path_GREP and select it if it is found. 4097 # Check for GNU $ac_path_GREP 4098case `"$ac_path_GREP" --version 2>&1` in 4099*GNU*) 4100 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4101*) 4102 ac_count=0 4103 $as_echo_n 0123456789 >"conftest.in" 4104 while : 4105 do 4106 cat "conftest.in" "conftest.in" >"conftest.tmp" 4107 mv "conftest.tmp" "conftest.in" 4108 cp "conftest.in" "conftest.nl" 4109 $as_echo 'GREP' >> "conftest.nl" 4110 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4111 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4112 as_fn_arith $ac_count + 1 && ac_count=$as_val 4113 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4114 # Best one so far, save it but keep looking for a better one 4115 ac_cv_path_GREP="$ac_path_GREP" 4116 ac_path_GREP_max=$ac_count 4117 fi 4118 # 10*(2^10) chars as input seems more than enough 4119 test $ac_count -gt 10 && break 4120 done 4121 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4122esac 4123 4124 $ac_path_GREP_found && break 3 4125 done 4126 done 4127 done 4128IFS=$as_save_IFS 4129 if test -z "$ac_cv_path_GREP"; then 4130 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4131 fi 4132else 4133 ac_cv_path_GREP=$GREP 4134fi 4135 4136fi 4137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4138$as_echo "$ac_cv_path_GREP" >&6; } 4139 GREP="$ac_cv_path_GREP" 4140 4141 4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4143$as_echo_n "checking for egrep... " >&6; } 4144if ${ac_cv_path_EGREP+:} false; then : 4145 $as_echo_n "(cached) " >&6 4146else 4147 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4148 then ac_cv_path_EGREP="$GREP -E" 4149 else 4150 if test -z "$EGREP"; then 4151 ac_path_EGREP_found=false 4152 # Loop through the user's path and test for each of PROGNAME-LIST 4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4154for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4155do 4156 IFS=$as_save_IFS 4157 test -z "$as_dir" && as_dir=. 4158 for ac_prog in egrep; do 4159 for ac_exec_ext in '' $ac_executable_extensions; do 4160 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4161 as_fn_executable_p "$ac_path_EGREP" || continue 4162# Check for GNU ac_path_EGREP and select it if it is found. 4163 # Check for GNU $ac_path_EGREP 4164case `"$ac_path_EGREP" --version 2>&1` in 4165*GNU*) 4166 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4167*) 4168 ac_count=0 4169 $as_echo_n 0123456789 >"conftest.in" 4170 while : 4171 do 4172 cat "conftest.in" "conftest.in" >"conftest.tmp" 4173 mv "conftest.tmp" "conftest.in" 4174 cp "conftest.in" "conftest.nl" 4175 $as_echo 'EGREP' >> "conftest.nl" 4176 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4177 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4178 as_fn_arith $ac_count + 1 && ac_count=$as_val 4179 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4180 # Best one so far, save it but keep looking for a better one 4181 ac_cv_path_EGREP="$ac_path_EGREP" 4182 ac_path_EGREP_max=$ac_count 4183 fi 4184 # 10*(2^10) chars as input seems more than enough 4185 test $ac_count -gt 10 && break 4186 done 4187 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4188esac 4189 4190 $ac_path_EGREP_found && break 3 4191 done 4192 done 4193 done 4194IFS=$as_save_IFS 4195 if test -z "$ac_cv_path_EGREP"; then 4196 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4197 fi 4198else 4199 ac_cv_path_EGREP=$EGREP 4200fi 4201 4202 fi 4203fi 4204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4205$as_echo "$ac_cv_path_EGREP" >&6; } 4206 EGREP="$ac_cv_path_EGREP" 4207 4208 4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4210$as_echo_n "checking for ANSI C header files... " >&6; } 4211if ${ac_cv_header_stdc+:} false; then : 4212 $as_echo_n "(cached) " >&6 4213else 4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4215/* end confdefs.h. */ 4216#include <stdlib.h> 4217#include <stdarg.h> 4218#include <string.h> 4219#include <float.h> 4220 4221int 4222main () 4223{ 4224 4225 ; 4226 return 0; 4227} 4228_ACEOF 4229if ac_fn_c_try_compile "$LINENO"; then : 4230 ac_cv_header_stdc=yes 4231else 4232 ac_cv_header_stdc=no 4233fi 4234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4235 4236if test $ac_cv_header_stdc = yes; then 4237 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4239/* end confdefs.h. */ 4240#include <string.h> 4241 4242_ACEOF 4243if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4244 $EGREP "memchr" >/dev/null 2>&1; then : 4245 4246else 4247 ac_cv_header_stdc=no 4248fi 4249rm -f conftest* 4250 4251fi 4252 4253if test $ac_cv_header_stdc = yes; then 4254 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4256/* end confdefs.h. */ 4257#include <stdlib.h> 4258 4259_ACEOF 4260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4261 $EGREP "free" >/dev/null 2>&1; then : 4262 4263else 4264 ac_cv_header_stdc=no 4265fi 4266rm -f conftest* 4267 4268fi 4269 4270if test $ac_cv_header_stdc = yes; then 4271 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4272 if test "$cross_compiling" = yes; then : 4273 : 4274else 4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4276/* end confdefs.h. */ 4277#include <ctype.h> 4278#include <stdlib.h> 4279#if ((' ' & 0x0FF) == 0x020) 4280# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4281# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4282#else 4283# define ISLOWER(c) \ 4284 (('a' <= (c) && (c) <= 'i') \ 4285 || ('j' <= (c) && (c) <= 'r') \ 4286 || ('s' <= (c) && (c) <= 'z')) 4287# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4288#endif 4289 4290#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4291int 4292main () 4293{ 4294 int i; 4295 for (i = 0; i < 256; i++) 4296 if (XOR (islower (i), ISLOWER (i)) 4297 || toupper (i) != TOUPPER (i)) 4298 return 2; 4299 return 0; 4300} 4301_ACEOF 4302if ac_fn_c_try_run "$LINENO"; then : 4303 4304else 4305 ac_cv_header_stdc=no 4306fi 4307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4308 conftest.$ac_objext conftest.beam conftest.$ac_ext 4309fi 4310 4311fi 4312fi 4313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4314$as_echo "$ac_cv_header_stdc" >&6; } 4315if test $ac_cv_header_stdc = yes; then 4316 4317$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4318 4319fi 4320 4321# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4322for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4323 inttypes.h stdint.h unistd.h 4324do : 4325 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4326ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4327" 4328if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4329 cat >>confdefs.h <<_ACEOF 4330#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4331_ACEOF 4332 4333fi 4334 4335done 4336 4337 4338 4339 4340 4341 4342ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4343if test "x$ac_cv_have_decl___clang__" = xyes; then : 4344 CLANGCC="yes" 4345else 4346 CLANGCC="no" 4347fi 4348 4349ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4350if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4351 INTELCC="yes" 4352else 4353 INTELCC="no" 4354fi 4355 4356ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4357if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4358 SUNCC="yes" 4359else 4360 SUNCC="no" 4361fi 4362 4363 4364 4365 4366if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4367 if test -n "$ac_tool_prefix"; then 4368 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4369set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4371$as_echo_n "checking for $ac_word... " >&6; } 4372if ${ac_cv_path_PKG_CONFIG+:} false; then : 4373 $as_echo_n "(cached) " >&6 4374else 4375 case $PKG_CONFIG in 4376 [\\/]* | ?:[\\/]*) 4377 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4378 ;; 4379 *) 4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4381for as_dir in $PATH 4382do 4383 IFS=$as_save_IFS 4384 test -z "$as_dir" && as_dir=. 4385 for ac_exec_ext in '' $ac_executable_extensions; do 4386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4387 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4389 break 2 4390 fi 4391done 4392 done 4393IFS=$as_save_IFS 4394 4395 ;; 4396esac 4397fi 4398PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4399if test -n "$PKG_CONFIG"; then 4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4401$as_echo "$PKG_CONFIG" >&6; } 4402else 4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4404$as_echo "no" >&6; } 4405fi 4406 4407 4408fi 4409if test -z "$ac_cv_path_PKG_CONFIG"; then 4410 ac_pt_PKG_CONFIG=$PKG_CONFIG 4411 # Extract the first word of "pkg-config", so it can be a program name with args. 4412set dummy pkg-config; ac_word=$2 4413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4414$as_echo_n "checking for $ac_word... " >&6; } 4415if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4416 $as_echo_n "(cached) " >&6 4417else 4418 case $ac_pt_PKG_CONFIG in 4419 [\\/]* | ?:[\\/]*) 4420 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4421 ;; 4422 *) 4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4424for as_dir in $PATH 4425do 4426 IFS=$as_save_IFS 4427 test -z "$as_dir" && as_dir=. 4428 for ac_exec_ext in '' $ac_executable_extensions; do 4429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4430 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4432 break 2 4433 fi 4434done 4435 done 4436IFS=$as_save_IFS 4437 4438 ;; 4439esac 4440fi 4441ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4442if test -n "$ac_pt_PKG_CONFIG"; then 4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4444$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4445else 4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4447$as_echo "no" >&6; } 4448fi 4449 4450 if test "x$ac_pt_PKG_CONFIG" = x; then 4451 PKG_CONFIG="" 4452 else 4453 case $cross_compiling:$ac_tool_warned in 4454yes:) 4455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4457ac_tool_warned=yes ;; 4458esac 4459 PKG_CONFIG=$ac_pt_PKG_CONFIG 4460 fi 4461else 4462 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4463fi 4464 4465fi 4466if test -n "$PKG_CONFIG"; then 4467 _pkg_min_version=0.9.0 4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4469$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4470 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4472$as_echo "yes" >&6; } 4473 else 4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4475$as_echo "no" >&6; } 4476 PKG_CONFIG="" 4477 fi 4478 4479fi 4480# Make sure we can run config.sub. 4481$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4482 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4483 4484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4485$as_echo_n "checking build system type... " >&6; } 4486if ${ac_cv_build+:} false; then : 4487 $as_echo_n "(cached) " >&6 4488else 4489 ac_build_alias=$build_alias 4490test "x$ac_build_alias" = x && 4491 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4492test "x$ac_build_alias" = x && 4493 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4494ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4495 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4496 4497fi 4498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4499$as_echo "$ac_cv_build" >&6; } 4500case $ac_cv_build in 4501*-*-*) ;; 4502*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4503esac 4504build=$ac_cv_build 4505ac_save_IFS=$IFS; IFS='-' 4506set x $ac_cv_build 4507shift 4508build_cpu=$1 4509build_vendor=$2 4510shift; shift 4511# Remember, the first character of IFS is used to create $*, 4512# except with old shells: 4513build_os=$* 4514IFS=$ac_save_IFS 4515case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4516 4517 4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4519$as_echo_n "checking host system type... " >&6; } 4520if ${ac_cv_host+:} false; then : 4521 $as_echo_n "(cached) " >&6 4522else 4523 if test "x$host_alias" = x; then 4524 ac_cv_host=$ac_cv_build 4525else 4526 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4527 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4528fi 4529 4530fi 4531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4532$as_echo "$ac_cv_host" >&6; } 4533case $ac_cv_host in 4534*-*-*) ;; 4535*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4536esac 4537host=$ac_cv_host 4538ac_save_IFS=$IFS; IFS='-' 4539set x $ac_cv_host 4540shift 4541host_cpu=$1 4542host_vendor=$2 4543shift; shift 4544# Remember, the first character of IFS is used to create $*, 4545# except with old shells: 4546host_os=$* 4547IFS=$ac_save_IFS 4548case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4549 4550 4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4552$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4553if ${ac_cv_path_SED+:} false; then : 4554 $as_echo_n "(cached) " >&6 4555else 4556 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4557 for ac_i in 1 2 3 4 5 6 7; do 4558 ac_script="$ac_script$as_nl$ac_script" 4559 done 4560 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4561 { ac_script=; unset ac_script;} 4562 if test -z "$SED"; then 4563 ac_path_SED_found=false 4564 # Loop through the user's path and test for each of PROGNAME-LIST 4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4566for as_dir in $PATH 4567do 4568 IFS=$as_save_IFS 4569 test -z "$as_dir" && as_dir=. 4570 for ac_prog in sed gsed; do 4571 for ac_exec_ext in '' $ac_executable_extensions; do 4572 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4573 as_fn_executable_p "$ac_path_SED" || continue 4574# Check for GNU ac_path_SED and select it if it is found. 4575 # Check for GNU $ac_path_SED 4576case `"$ac_path_SED" --version 2>&1` in 4577*GNU*) 4578 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4579*) 4580 ac_count=0 4581 $as_echo_n 0123456789 >"conftest.in" 4582 while : 4583 do 4584 cat "conftest.in" "conftest.in" >"conftest.tmp" 4585 mv "conftest.tmp" "conftest.in" 4586 cp "conftest.in" "conftest.nl" 4587 $as_echo '' >> "conftest.nl" 4588 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4589 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4590 as_fn_arith $ac_count + 1 && ac_count=$as_val 4591 if test $ac_count -gt ${ac_path_SED_max-0}; then 4592 # Best one so far, save it but keep looking for a better one 4593 ac_cv_path_SED="$ac_path_SED" 4594 ac_path_SED_max=$ac_count 4595 fi 4596 # 10*(2^10) chars as input seems more than enough 4597 test $ac_count -gt 10 && break 4598 done 4599 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4600esac 4601 4602 $ac_path_SED_found && break 3 4603 done 4604 done 4605 done 4606IFS=$as_save_IFS 4607 if test -z "$ac_cv_path_SED"; then 4608 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4609 fi 4610else 4611 ac_cv_path_SED=$SED 4612fi 4613 4614fi 4615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4616$as_echo "$ac_cv_path_SED" >&6; } 4617 SED="$ac_cv_path_SED" 4618 rm -f conftest.sed 4619 4620 4621 4622 4623 4624 4625# Check whether --enable-selective-werror was given. 4626if test "${enable_selective_werror+set}" = set; then : 4627 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4628else 4629 SELECTIVE_WERROR=yes 4630fi 4631 4632 4633 4634 4635 4636# -v is too short to test reliably with XORG_TESTSET_CFLAG 4637if test "x$SUNCC" = "xyes"; then 4638 BASE_CFLAGS="-v" 4639else 4640 BASE_CFLAGS="" 4641fi 4642 4643# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657xorg_testset_save_CFLAGS="$CFLAGS" 4658 4659if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4662$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4663if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4664 $as_echo_n "(cached) " >&6 4665else 4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4667/* end confdefs.h. */ 4668int i; 4669_ACEOF 4670if ac_fn_c_try_compile "$LINENO"; then : 4671 xorg_cv_cc_flag_unknown_warning_option=yes 4672else 4673 xorg_cv_cc_flag_unknown_warning_option=no 4674fi 4675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4676fi 4677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4678$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4680 CFLAGS="$xorg_testset_save_CFLAGS" 4681fi 4682 4683if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4686 fi 4687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4689$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4690if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4691 $as_echo_n "(cached) " >&6 4692else 4693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4694/* end confdefs.h. */ 4695int i; 4696_ACEOF 4697if ac_fn_c_try_compile "$LINENO"; then : 4698 xorg_cv_cc_flag_unused_command_line_argument=yes 4699else 4700 xorg_cv_cc_flag_unused_command_line_argument=no 4701fi 4702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4703fi 4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4705$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4706 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4707 CFLAGS="$xorg_testset_save_CFLAGS" 4708fi 4709 4710found="no" 4711 4712 if test $found = "no" ; then 4713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4715 fi 4716 4717 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4719 fi 4720 4721 CFLAGS="$CFLAGS -Wall" 4722 4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4724$as_echo_n "checking if $CC supports -Wall... " >&6; } 4725 cacheid=xorg_cv_cc_flag__Wall 4726 if eval \${$cacheid+:} false; then : 4727 $as_echo_n "(cached) " >&6 4728else 4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4730/* end confdefs.h. */ 4731int i; 4732int 4733main () 4734{ 4735 4736 ; 4737 return 0; 4738} 4739_ACEOF 4740if ac_fn_c_try_link "$LINENO"; then : 4741 eval $cacheid=yes 4742else 4743 eval $cacheid=no 4744fi 4745rm -f core conftest.err conftest.$ac_objext \ 4746 conftest$ac_exeext conftest.$ac_ext 4747fi 4748 4749 4750 CFLAGS="$xorg_testset_save_CFLAGS" 4751 4752 eval supported=\$$cacheid 4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4754$as_echo "$supported" >&6; } 4755 if test "$supported" = "yes" ; then 4756 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4757 found="yes" 4758 fi 4759 fi 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775xorg_testset_save_CFLAGS="$CFLAGS" 4776 4777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4780$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4781if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4782 $as_echo_n "(cached) " >&6 4783else 4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4785/* end confdefs.h. */ 4786int i; 4787_ACEOF 4788if ac_fn_c_try_compile "$LINENO"; then : 4789 xorg_cv_cc_flag_unknown_warning_option=yes 4790else 4791 xorg_cv_cc_flag_unknown_warning_option=no 4792fi 4793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4794fi 4795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4796$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4798 CFLAGS="$xorg_testset_save_CFLAGS" 4799fi 4800 4801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4804 fi 4805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4807$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4808if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4809 $as_echo_n "(cached) " >&6 4810else 4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4812/* end confdefs.h. */ 4813int i; 4814_ACEOF 4815if ac_fn_c_try_compile "$LINENO"; then : 4816 xorg_cv_cc_flag_unused_command_line_argument=yes 4817else 4818 xorg_cv_cc_flag_unused_command_line_argument=no 4819fi 4820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4821fi 4822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4823$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4825 CFLAGS="$xorg_testset_save_CFLAGS" 4826fi 4827 4828found="no" 4829 4830 if test $found = "no" ; then 4831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4833 fi 4834 4835 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4837 fi 4838 4839 CFLAGS="$CFLAGS -Wpointer-arith" 4840 4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4842$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4843 cacheid=xorg_cv_cc_flag__Wpointer_arith 4844 if eval \${$cacheid+:} false; then : 4845 $as_echo_n "(cached) " >&6 4846else 4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4848/* end confdefs.h. */ 4849int i; 4850int 4851main () 4852{ 4853 4854 ; 4855 return 0; 4856} 4857_ACEOF 4858if ac_fn_c_try_link "$LINENO"; then : 4859 eval $cacheid=yes 4860else 4861 eval $cacheid=no 4862fi 4863rm -f core conftest.err conftest.$ac_objext \ 4864 conftest$ac_exeext conftest.$ac_ext 4865fi 4866 4867 4868 CFLAGS="$xorg_testset_save_CFLAGS" 4869 4870 eval supported=\$$cacheid 4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4872$as_echo "$supported" >&6; } 4873 if test "$supported" = "yes" ; then 4874 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4875 found="yes" 4876 fi 4877 fi 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893xorg_testset_save_CFLAGS="$CFLAGS" 4894 4895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4898$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4899if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4900 $as_echo_n "(cached) " >&6 4901else 4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4903/* end confdefs.h. */ 4904int i; 4905_ACEOF 4906if ac_fn_c_try_compile "$LINENO"; then : 4907 xorg_cv_cc_flag_unknown_warning_option=yes 4908else 4909 xorg_cv_cc_flag_unknown_warning_option=no 4910fi 4911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4912fi 4913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4914$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4916 CFLAGS="$xorg_testset_save_CFLAGS" 4917fi 4918 4919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4922 fi 4923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4925$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4926if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4927 $as_echo_n "(cached) " >&6 4928else 4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4930/* end confdefs.h. */ 4931int i; 4932_ACEOF 4933if ac_fn_c_try_compile "$LINENO"; then : 4934 xorg_cv_cc_flag_unused_command_line_argument=yes 4935else 4936 xorg_cv_cc_flag_unused_command_line_argument=no 4937fi 4938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4939fi 4940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4941$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4943 CFLAGS="$xorg_testset_save_CFLAGS" 4944fi 4945 4946found="no" 4947 4948 if test $found = "no" ; then 4949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4951 fi 4952 4953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4955 fi 4956 4957 CFLAGS="$CFLAGS -Wmissing-declarations" 4958 4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4960$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4961 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4962 if eval \${$cacheid+:} false; then : 4963 $as_echo_n "(cached) " >&6 4964else 4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4966/* end confdefs.h. */ 4967int i; 4968int 4969main () 4970{ 4971 4972 ; 4973 return 0; 4974} 4975_ACEOF 4976if ac_fn_c_try_link "$LINENO"; then : 4977 eval $cacheid=yes 4978else 4979 eval $cacheid=no 4980fi 4981rm -f core conftest.err conftest.$ac_objext \ 4982 conftest$ac_exeext conftest.$ac_ext 4983fi 4984 4985 4986 CFLAGS="$xorg_testset_save_CFLAGS" 4987 4988 eval supported=\$$cacheid 4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4990$as_echo "$supported" >&6; } 4991 if test "$supported" = "yes" ; then 4992 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4993 found="yes" 4994 fi 4995 fi 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011xorg_testset_save_CFLAGS="$CFLAGS" 5012 5013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5016$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5017if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5018 $as_echo_n "(cached) " >&6 5019else 5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5021/* end confdefs.h. */ 5022int i; 5023_ACEOF 5024if ac_fn_c_try_compile "$LINENO"; then : 5025 xorg_cv_cc_flag_unknown_warning_option=yes 5026else 5027 xorg_cv_cc_flag_unknown_warning_option=no 5028fi 5029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5030fi 5031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5032$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5033 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5034 CFLAGS="$xorg_testset_save_CFLAGS" 5035fi 5036 5037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5040 fi 5041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5043$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5044if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5045 $as_echo_n "(cached) " >&6 5046else 5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5048/* end confdefs.h. */ 5049int i; 5050_ACEOF 5051if ac_fn_c_try_compile "$LINENO"; then : 5052 xorg_cv_cc_flag_unused_command_line_argument=yes 5053else 5054 xorg_cv_cc_flag_unused_command_line_argument=no 5055fi 5056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5057fi 5058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5059$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5060 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5061 CFLAGS="$xorg_testset_save_CFLAGS" 5062fi 5063 5064found="no" 5065 5066 if test $found = "no" ; then 5067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5069 fi 5070 5071 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5073 fi 5074 5075 CFLAGS="$CFLAGS -Wformat=2" 5076 5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5078$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5079 cacheid=xorg_cv_cc_flag__Wformat_2 5080 if eval \${$cacheid+:} false; then : 5081 $as_echo_n "(cached) " >&6 5082else 5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5084/* end confdefs.h. */ 5085int i; 5086int 5087main () 5088{ 5089 5090 ; 5091 return 0; 5092} 5093_ACEOF 5094if ac_fn_c_try_link "$LINENO"; then : 5095 eval $cacheid=yes 5096else 5097 eval $cacheid=no 5098fi 5099rm -f core conftest.err conftest.$ac_objext \ 5100 conftest$ac_exeext conftest.$ac_ext 5101fi 5102 5103 5104 CFLAGS="$xorg_testset_save_CFLAGS" 5105 5106 eval supported=\$$cacheid 5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5108$as_echo "$supported" >&6; } 5109 if test "$supported" = "yes" ; then 5110 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5111 found="yes" 5112 fi 5113 fi 5114 5115 if test $found = "no" ; then 5116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5118 fi 5119 5120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5122 fi 5123 5124 CFLAGS="$CFLAGS -Wformat" 5125 5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5127$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5128 cacheid=xorg_cv_cc_flag__Wformat 5129 if eval \${$cacheid+:} false; then : 5130 $as_echo_n "(cached) " >&6 5131else 5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5133/* end confdefs.h. */ 5134int i; 5135int 5136main () 5137{ 5138 5139 ; 5140 return 0; 5141} 5142_ACEOF 5143if ac_fn_c_try_link "$LINENO"; then : 5144 eval $cacheid=yes 5145else 5146 eval $cacheid=no 5147fi 5148rm -f core conftest.err conftest.$ac_objext \ 5149 conftest$ac_exeext conftest.$ac_ext 5150fi 5151 5152 5153 CFLAGS="$xorg_testset_save_CFLAGS" 5154 5155 eval supported=\$$cacheid 5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5157$as_echo "$supported" >&6; } 5158 if test "$supported" = "yes" ; then 5159 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5160 found="yes" 5161 fi 5162 fi 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180xorg_testset_save_CFLAGS="$CFLAGS" 5181 5182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5185$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5186if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5187 $as_echo_n "(cached) " >&6 5188else 5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5190/* end confdefs.h. */ 5191int i; 5192_ACEOF 5193if ac_fn_c_try_compile "$LINENO"; then : 5194 xorg_cv_cc_flag_unknown_warning_option=yes 5195else 5196 xorg_cv_cc_flag_unknown_warning_option=no 5197fi 5198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5199fi 5200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5201$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5203 CFLAGS="$xorg_testset_save_CFLAGS" 5204fi 5205 5206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5209 fi 5210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5212$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5213if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5214 $as_echo_n "(cached) " >&6 5215else 5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5217/* end confdefs.h. */ 5218int i; 5219_ACEOF 5220if ac_fn_c_try_compile "$LINENO"; then : 5221 xorg_cv_cc_flag_unused_command_line_argument=yes 5222else 5223 xorg_cv_cc_flag_unused_command_line_argument=no 5224fi 5225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5226fi 5227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5228$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5230 CFLAGS="$xorg_testset_save_CFLAGS" 5231fi 5232 5233found="no" 5234 5235 if test $found = "no" ; then 5236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5238 fi 5239 5240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5242 fi 5243 5244 CFLAGS="$CFLAGS -Wstrict-prototypes" 5245 5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5247$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5248 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5249 if eval \${$cacheid+:} false; then : 5250 $as_echo_n "(cached) " >&6 5251else 5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5253/* end confdefs.h. */ 5254int i; 5255int 5256main () 5257{ 5258 5259 ; 5260 return 0; 5261} 5262_ACEOF 5263if ac_fn_c_try_link "$LINENO"; then : 5264 eval $cacheid=yes 5265else 5266 eval $cacheid=no 5267fi 5268rm -f core conftest.err conftest.$ac_objext \ 5269 conftest$ac_exeext conftest.$ac_ext 5270fi 5271 5272 5273 CFLAGS="$xorg_testset_save_CFLAGS" 5274 5275 eval supported=\$$cacheid 5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5277$as_echo "$supported" >&6; } 5278 if test "$supported" = "yes" ; then 5279 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5280 found="yes" 5281 fi 5282 fi 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298xorg_testset_save_CFLAGS="$CFLAGS" 5299 5300if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5303$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5304if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5305 $as_echo_n "(cached) " >&6 5306else 5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5308/* end confdefs.h. */ 5309int i; 5310_ACEOF 5311if ac_fn_c_try_compile "$LINENO"; then : 5312 xorg_cv_cc_flag_unknown_warning_option=yes 5313else 5314 xorg_cv_cc_flag_unknown_warning_option=no 5315fi 5316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5317fi 5318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5319$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5321 CFLAGS="$xorg_testset_save_CFLAGS" 5322fi 5323 5324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5327 fi 5328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5330$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5331if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5332 $as_echo_n "(cached) " >&6 5333else 5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5335/* end confdefs.h. */ 5336int i; 5337_ACEOF 5338if ac_fn_c_try_compile "$LINENO"; then : 5339 xorg_cv_cc_flag_unused_command_line_argument=yes 5340else 5341 xorg_cv_cc_flag_unused_command_line_argument=no 5342fi 5343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5344fi 5345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5346$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5348 CFLAGS="$xorg_testset_save_CFLAGS" 5349fi 5350 5351found="no" 5352 5353 if test $found = "no" ; then 5354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5356 fi 5357 5358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5360 fi 5361 5362 CFLAGS="$CFLAGS -Wmissing-prototypes" 5363 5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5365$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5366 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5367 if eval \${$cacheid+:} false; then : 5368 $as_echo_n "(cached) " >&6 5369else 5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5371/* end confdefs.h. */ 5372int i; 5373int 5374main () 5375{ 5376 5377 ; 5378 return 0; 5379} 5380_ACEOF 5381if ac_fn_c_try_link "$LINENO"; then : 5382 eval $cacheid=yes 5383else 5384 eval $cacheid=no 5385fi 5386rm -f core conftest.err conftest.$ac_objext \ 5387 conftest$ac_exeext conftest.$ac_ext 5388fi 5389 5390 5391 CFLAGS="$xorg_testset_save_CFLAGS" 5392 5393 eval supported=\$$cacheid 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5395$as_echo "$supported" >&6; } 5396 if test "$supported" = "yes" ; then 5397 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5398 found="yes" 5399 fi 5400 fi 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416xorg_testset_save_CFLAGS="$CFLAGS" 5417 5418if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5421$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5422if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5423 $as_echo_n "(cached) " >&6 5424else 5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5426/* end confdefs.h. */ 5427int i; 5428_ACEOF 5429if ac_fn_c_try_compile "$LINENO"; then : 5430 xorg_cv_cc_flag_unknown_warning_option=yes 5431else 5432 xorg_cv_cc_flag_unknown_warning_option=no 5433fi 5434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5435fi 5436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5437$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5439 CFLAGS="$xorg_testset_save_CFLAGS" 5440fi 5441 5442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5445 fi 5446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5448$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5449if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5450 $as_echo_n "(cached) " >&6 5451else 5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5453/* end confdefs.h. */ 5454int i; 5455_ACEOF 5456if ac_fn_c_try_compile "$LINENO"; then : 5457 xorg_cv_cc_flag_unused_command_line_argument=yes 5458else 5459 xorg_cv_cc_flag_unused_command_line_argument=no 5460fi 5461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5462fi 5463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5464$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5465 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5466 CFLAGS="$xorg_testset_save_CFLAGS" 5467fi 5468 5469found="no" 5470 5471 if test $found = "no" ; then 5472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5474 fi 5475 5476 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5478 fi 5479 5480 CFLAGS="$CFLAGS -Wnested-externs" 5481 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5483$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5484 cacheid=xorg_cv_cc_flag__Wnested_externs 5485 if eval \${$cacheid+:} false; then : 5486 $as_echo_n "(cached) " >&6 5487else 5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5489/* end confdefs.h. */ 5490int i; 5491int 5492main () 5493{ 5494 5495 ; 5496 return 0; 5497} 5498_ACEOF 5499if ac_fn_c_try_link "$LINENO"; then : 5500 eval $cacheid=yes 5501else 5502 eval $cacheid=no 5503fi 5504rm -f core conftest.err conftest.$ac_objext \ 5505 conftest$ac_exeext conftest.$ac_ext 5506fi 5507 5508 5509 CFLAGS="$xorg_testset_save_CFLAGS" 5510 5511 eval supported=\$$cacheid 5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5513$as_echo "$supported" >&6; } 5514 if test "$supported" = "yes" ; then 5515 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5516 found="yes" 5517 fi 5518 fi 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534xorg_testset_save_CFLAGS="$CFLAGS" 5535 5536if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5539$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5540if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5541 $as_echo_n "(cached) " >&6 5542else 5543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5544/* end confdefs.h. */ 5545int i; 5546_ACEOF 5547if ac_fn_c_try_compile "$LINENO"; then : 5548 xorg_cv_cc_flag_unknown_warning_option=yes 5549else 5550 xorg_cv_cc_flag_unknown_warning_option=no 5551fi 5552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5553fi 5554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5555$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5557 CFLAGS="$xorg_testset_save_CFLAGS" 5558fi 5559 5560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5563 fi 5564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5566$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5567if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5568 $as_echo_n "(cached) " >&6 5569else 5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5571/* end confdefs.h. */ 5572int i; 5573_ACEOF 5574if ac_fn_c_try_compile "$LINENO"; then : 5575 xorg_cv_cc_flag_unused_command_line_argument=yes 5576else 5577 xorg_cv_cc_flag_unused_command_line_argument=no 5578fi 5579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5580fi 5581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5582$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5584 CFLAGS="$xorg_testset_save_CFLAGS" 5585fi 5586 5587found="no" 5588 5589 if test $found = "no" ; then 5590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5592 fi 5593 5594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5596 fi 5597 5598 CFLAGS="$CFLAGS -Wbad-function-cast" 5599 5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5601$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5602 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5603 if eval \${$cacheid+:} false; then : 5604 $as_echo_n "(cached) " >&6 5605else 5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5607/* end confdefs.h. */ 5608int i; 5609int 5610main () 5611{ 5612 5613 ; 5614 return 0; 5615} 5616_ACEOF 5617if ac_fn_c_try_link "$LINENO"; then : 5618 eval $cacheid=yes 5619else 5620 eval $cacheid=no 5621fi 5622rm -f core conftest.err conftest.$ac_objext \ 5623 conftest$ac_exeext conftest.$ac_ext 5624fi 5625 5626 5627 CFLAGS="$xorg_testset_save_CFLAGS" 5628 5629 eval supported=\$$cacheid 5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5631$as_echo "$supported" >&6; } 5632 if test "$supported" = "yes" ; then 5633 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5634 found="yes" 5635 fi 5636 fi 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652xorg_testset_save_CFLAGS="$CFLAGS" 5653 5654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5657$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5658if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5659 $as_echo_n "(cached) " >&6 5660else 5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5662/* end confdefs.h. */ 5663int i; 5664_ACEOF 5665if ac_fn_c_try_compile "$LINENO"; then : 5666 xorg_cv_cc_flag_unknown_warning_option=yes 5667else 5668 xorg_cv_cc_flag_unknown_warning_option=no 5669fi 5670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5671fi 5672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5673$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5675 CFLAGS="$xorg_testset_save_CFLAGS" 5676fi 5677 5678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5681 fi 5682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5684$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5685if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5686 $as_echo_n "(cached) " >&6 5687else 5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5689/* end confdefs.h. */ 5690int i; 5691_ACEOF 5692if ac_fn_c_try_compile "$LINENO"; then : 5693 xorg_cv_cc_flag_unused_command_line_argument=yes 5694else 5695 xorg_cv_cc_flag_unused_command_line_argument=no 5696fi 5697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5698fi 5699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5700$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5702 CFLAGS="$xorg_testset_save_CFLAGS" 5703fi 5704 5705found="no" 5706 5707 if test $found = "no" ; then 5708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5710 fi 5711 5712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5714 fi 5715 5716 CFLAGS="$CFLAGS -Wold-style-definition" 5717 5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5719$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5720 cacheid=xorg_cv_cc_flag__Wold_style_definition 5721 if eval \${$cacheid+:} false; then : 5722 $as_echo_n "(cached) " >&6 5723else 5724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5725/* end confdefs.h. */ 5726int i; 5727int 5728main () 5729{ 5730 5731 ; 5732 return 0; 5733} 5734_ACEOF 5735if ac_fn_c_try_link "$LINENO"; then : 5736 eval $cacheid=yes 5737else 5738 eval $cacheid=no 5739fi 5740rm -f core conftest.err conftest.$ac_objext \ 5741 conftest$ac_exeext conftest.$ac_ext 5742fi 5743 5744 5745 CFLAGS="$xorg_testset_save_CFLAGS" 5746 5747 eval supported=\$$cacheid 5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5749$as_echo "$supported" >&6; } 5750 if test "$supported" = "yes" ; then 5751 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5752 found="yes" 5753 fi 5754 fi 5755 5756 if test $found = "no" ; then 5757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5759 fi 5760 5761 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5763 fi 5764 5765 CFLAGS="$CFLAGS -fd" 5766 5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5768$as_echo_n "checking if $CC supports -fd... " >&6; } 5769 cacheid=xorg_cv_cc_flag__fd 5770 if eval \${$cacheid+:} false; then : 5771 $as_echo_n "(cached) " >&6 5772else 5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5774/* end confdefs.h. */ 5775int i; 5776int 5777main () 5778{ 5779 5780 ; 5781 return 0; 5782} 5783_ACEOF 5784if ac_fn_c_try_link "$LINENO"; then : 5785 eval $cacheid=yes 5786else 5787 eval $cacheid=no 5788fi 5789rm -f core conftest.err conftest.$ac_objext \ 5790 conftest$ac_exeext conftest.$ac_ext 5791fi 5792 5793 5794 CFLAGS="$xorg_testset_save_CFLAGS" 5795 5796 eval supported=\$$cacheid 5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5798$as_echo "$supported" >&6; } 5799 if test "$supported" = "yes" ; then 5800 BASE_CFLAGS="$BASE_CFLAGS -fd" 5801 found="yes" 5802 fi 5803 fi 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819xorg_testset_save_CFLAGS="$CFLAGS" 5820 5821if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5824$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5825if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5826 $as_echo_n "(cached) " >&6 5827else 5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5829/* end confdefs.h. */ 5830int i; 5831_ACEOF 5832if ac_fn_c_try_compile "$LINENO"; then : 5833 xorg_cv_cc_flag_unknown_warning_option=yes 5834else 5835 xorg_cv_cc_flag_unknown_warning_option=no 5836fi 5837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5838fi 5839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5840$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5841 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5842 CFLAGS="$xorg_testset_save_CFLAGS" 5843fi 5844 5845if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5848 fi 5849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5851$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5852if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5853 $as_echo_n "(cached) " >&6 5854else 5855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5856/* end confdefs.h. */ 5857int i; 5858_ACEOF 5859if ac_fn_c_try_compile "$LINENO"; then : 5860 xorg_cv_cc_flag_unused_command_line_argument=yes 5861else 5862 xorg_cv_cc_flag_unused_command_line_argument=no 5863fi 5864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5865fi 5866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5867$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5868 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5869 CFLAGS="$xorg_testset_save_CFLAGS" 5870fi 5871 5872found="no" 5873 5874 if test $found = "no" ; then 5875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5877 fi 5878 5879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5881 fi 5882 5883 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5884 5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5886$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5887 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5888 if eval \${$cacheid+:} false; then : 5889 $as_echo_n "(cached) " >&6 5890else 5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5892/* end confdefs.h. */ 5893int i; 5894int 5895main () 5896{ 5897 5898 ; 5899 return 0; 5900} 5901_ACEOF 5902if ac_fn_c_try_link "$LINENO"; then : 5903 eval $cacheid=yes 5904else 5905 eval $cacheid=no 5906fi 5907rm -f core conftest.err conftest.$ac_objext \ 5908 conftest$ac_exeext conftest.$ac_ext 5909fi 5910 5911 5912 CFLAGS="$xorg_testset_save_CFLAGS" 5913 5914 eval supported=\$$cacheid 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5916$as_echo "$supported" >&6; } 5917 if test "$supported" = "yes" ; then 5918 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5919 found="yes" 5920 fi 5921 fi 5922 5923 5924 5925 5926 5927# This chunk adds additional warnings that could catch undesired effects. 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941xorg_testset_save_CFLAGS="$CFLAGS" 5942 5943if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5946$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5947if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5948 $as_echo_n "(cached) " >&6 5949else 5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5951/* end confdefs.h. */ 5952int i; 5953_ACEOF 5954if ac_fn_c_try_compile "$LINENO"; then : 5955 xorg_cv_cc_flag_unknown_warning_option=yes 5956else 5957 xorg_cv_cc_flag_unknown_warning_option=no 5958fi 5959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5960fi 5961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5962$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5963 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5964 CFLAGS="$xorg_testset_save_CFLAGS" 5965fi 5966 5967if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5970 fi 5971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5973$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5974if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5975 $as_echo_n "(cached) " >&6 5976else 5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5978/* end confdefs.h. */ 5979int i; 5980_ACEOF 5981if ac_fn_c_try_compile "$LINENO"; then : 5982 xorg_cv_cc_flag_unused_command_line_argument=yes 5983else 5984 xorg_cv_cc_flag_unused_command_line_argument=no 5985fi 5986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5987fi 5988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5989$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5990 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5991 CFLAGS="$xorg_testset_save_CFLAGS" 5992fi 5993 5994found="no" 5995 5996 if test $found = "no" ; then 5997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5999 fi 6000 6001 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6003 fi 6004 6005 CFLAGS="$CFLAGS -Wunused" 6006 6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6008$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6009 cacheid=xorg_cv_cc_flag__Wunused 6010 if eval \${$cacheid+:} false; then : 6011 $as_echo_n "(cached) " >&6 6012else 6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6014/* end confdefs.h. */ 6015int i; 6016int 6017main () 6018{ 6019 6020 ; 6021 return 0; 6022} 6023_ACEOF 6024if ac_fn_c_try_link "$LINENO"; then : 6025 eval $cacheid=yes 6026else 6027 eval $cacheid=no 6028fi 6029rm -f core conftest.err conftest.$ac_objext \ 6030 conftest$ac_exeext conftest.$ac_ext 6031fi 6032 6033 6034 CFLAGS="$xorg_testset_save_CFLAGS" 6035 6036 eval supported=\$$cacheid 6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6038$as_echo "$supported" >&6; } 6039 if test "$supported" = "yes" ; then 6040 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6041 found="yes" 6042 fi 6043 fi 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059xorg_testset_save_CFLAGS="$CFLAGS" 6060 6061if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6064$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6065if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6066 $as_echo_n "(cached) " >&6 6067else 6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6069/* end confdefs.h. */ 6070int i; 6071_ACEOF 6072if ac_fn_c_try_compile "$LINENO"; then : 6073 xorg_cv_cc_flag_unknown_warning_option=yes 6074else 6075 xorg_cv_cc_flag_unknown_warning_option=no 6076fi 6077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6078fi 6079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6080$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6081 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6082 CFLAGS="$xorg_testset_save_CFLAGS" 6083fi 6084 6085if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6088 fi 6089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6091$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6092if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6093 $as_echo_n "(cached) " >&6 6094else 6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6096/* end confdefs.h. */ 6097int i; 6098_ACEOF 6099if ac_fn_c_try_compile "$LINENO"; then : 6100 xorg_cv_cc_flag_unused_command_line_argument=yes 6101else 6102 xorg_cv_cc_flag_unused_command_line_argument=no 6103fi 6104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6105fi 6106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6107$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6108 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6109 CFLAGS="$xorg_testset_save_CFLAGS" 6110fi 6111 6112found="no" 6113 6114 if test $found = "no" ; then 6115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6117 fi 6118 6119 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6121 fi 6122 6123 CFLAGS="$CFLAGS -Wuninitialized" 6124 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6126$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6127 cacheid=xorg_cv_cc_flag__Wuninitialized 6128 if eval \${$cacheid+:} false; then : 6129 $as_echo_n "(cached) " >&6 6130else 6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6132/* end confdefs.h. */ 6133int i; 6134int 6135main () 6136{ 6137 6138 ; 6139 return 0; 6140} 6141_ACEOF 6142if ac_fn_c_try_link "$LINENO"; then : 6143 eval $cacheid=yes 6144else 6145 eval $cacheid=no 6146fi 6147rm -f core conftest.err conftest.$ac_objext \ 6148 conftest$ac_exeext conftest.$ac_ext 6149fi 6150 6151 6152 CFLAGS="$xorg_testset_save_CFLAGS" 6153 6154 eval supported=\$$cacheid 6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6156$as_echo "$supported" >&6; } 6157 if test "$supported" = "yes" ; then 6158 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6159 found="yes" 6160 fi 6161 fi 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177xorg_testset_save_CFLAGS="$CFLAGS" 6178 6179if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6182$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6183if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6184 $as_echo_n "(cached) " >&6 6185else 6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6187/* end confdefs.h. */ 6188int i; 6189_ACEOF 6190if ac_fn_c_try_compile "$LINENO"; then : 6191 xorg_cv_cc_flag_unknown_warning_option=yes 6192else 6193 xorg_cv_cc_flag_unknown_warning_option=no 6194fi 6195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6196fi 6197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6198$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6199 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6200 CFLAGS="$xorg_testset_save_CFLAGS" 6201fi 6202 6203if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6206 fi 6207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6209$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6210if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6211 $as_echo_n "(cached) " >&6 6212else 6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6214/* end confdefs.h. */ 6215int i; 6216_ACEOF 6217if ac_fn_c_try_compile "$LINENO"; then : 6218 xorg_cv_cc_flag_unused_command_line_argument=yes 6219else 6220 xorg_cv_cc_flag_unused_command_line_argument=no 6221fi 6222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6223fi 6224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6225$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6227 CFLAGS="$xorg_testset_save_CFLAGS" 6228fi 6229 6230found="no" 6231 6232 if test $found = "no" ; then 6233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6235 fi 6236 6237 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6239 fi 6240 6241 CFLAGS="$CFLAGS -Wshadow" 6242 6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6244$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6245 cacheid=xorg_cv_cc_flag__Wshadow 6246 if eval \${$cacheid+:} false; then : 6247 $as_echo_n "(cached) " >&6 6248else 6249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6250/* end confdefs.h. */ 6251int i; 6252int 6253main () 6254{ 6255 6256 ; 6257 return 0; 6258} 6259_ACEOF 6260if ac_fn_c_try_link "$LINENO"; then : 6261 eval $cacheid=yes 6262else 6263 eval $cacheid=no 6264fi 6265rm -f core conftest.err conftest.$ac_objext \ 6266 conftest$ac_exeext conftest.$ac_ext 6267fi 6268 6269 6270 CFLAGS="$xorg_testset_save_CFLAGS" 6271 6272 eval supported=\$$cacheid 6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6274$as_echo "$supported" >&6; } 6275 if test "$supported" = "yes" ; then 6276 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6277 found="yes" 6278 fi 6279 fi 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295xorg_testset_save_CFLAGS="$CFLAGS" 6296 6297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6300$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6301if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6302 $as_echo_n "(cached) " >&6 6303else 6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6305/* end confdefs.h. */ 6306int i; 6307_ACEOF 6308if ac_fn_c_try_compile "$LINENO"; then : 6309 xorg_cv_cc_flag_unknown_warning_option=yes 6310else 6311 xorg_cv_cc_flag_unknown_warning_option=no 6312fi 6313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6314fi 6315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6316$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6317 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6318 CFLAGS="$xorg_testset_save_CFLAGS" 6319fi 6320 6321if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6324 fi 6325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6327$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6328if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6329 $as_echo_n "(cached) " >&6 6330else 6331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6332/* end confdefs.h. */ 6333int i; 6334_ACEOF 6335if ac_fn_c_try_compile "$LINENO"; then : 6336 xorg_cv_cc_flag_unused_command_line_argument=yes 6337else 6338 xorg_cv_cc_flag_unused_command_line_argument=no 6339fi 6340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6341fi 6342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6343$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6344 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6345 CFLAGS="$xorg_testset_save_CFLAGS" 6346fi 6347 6348found="no" 6349 6350 if test $found = "no" ; then 6351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6353 fi 6354 6355 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6357 fi 6358 6359 CFLAGS="$CFLAGS -Wmissing-noreturn" 6360 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6362$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6363 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6364 if eval \${$cacheid+:} false; then : 6365 $as_echo_n "(cached) " >&6 6366else 6367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6368/* end confdefs.h. */ 6369int i; 6370int 6371main () 6372{ 6373 6374 ; 6375 return 0; 6376} 6377_ACEOF 6378if ac_fn_c_try_link "$LINENO"; then : 6379 eval $cacheid=yes 6380else 6381 eval $cacheid=no 6382fi 6383rm -f core conftest.err conftest.$ac_objext \ 6384 conftest$ac_exeext conftest.$ac_ext 6385fi 6386 6387 6388 CFLAGS="$xorg_testset_save_CFLAGS" 6389 6390 eval supported=\$$cacheid 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6392$as_echo "$supported" >&6; } 6393 if test "$supported" = "yes" ; then 6394 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6395 found="yes" 6396 fi 6397 fi 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413xorg_testset_save_CFLAGS="$CFLAGS" 6414 6415if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6418$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6419if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6420 $as_echo_n "(cached) " >&6 6421else 6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6423/* end confdefs.h. */ 6424int i; 6425_ACEOF 6426if ac_fn_c_try_compile "$LINENO"; then : 6427 xorg_cv_cc_flag_unknown_warning_option=yes 6428else 6429 xorg_cv_cc_flag_unknown_warning_option=no 6430fi 6431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6432fi 6433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6434$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6435 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6436 CFLAGS="$xorg_testset_save_CFLAGS" 6437fi 6438 6439if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6442 fi 6443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6445$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6446if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6447 $as_echo_n "(cached) " >&6 6448else 6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6450/* end confdefs.h. */ 6451int i; 6452_ACEOF 6453if ac_fn_c_try_compile "$LINENO"; then : 6454 xorg_cv_cc_flag_unused_command_line_argument=yes 6455else 6456 xorg_cv_cc_flag_unused_command_line_argument=no 6457fi 6458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6459fi 6460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6461$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6462 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6463 CFLAGS="$xorg_testset_save_CFLAGS" 6464fi 6465 6466found="no" 6467 6468 if test $found = "no" ; then 6469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6471 fi 6472 6473 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6475 fi 6476 6477 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6478 6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6480$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6481 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6482 if eval \${$cacheid+:} false; then : 6483 $as_echo_n "(cached) " >&6 6484else 6485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6486/* end confdefs.h. */ 6487int i; 6488int 6489main () 6490{ 6491 6492 ; 6493 return 0; 6494} 6495_ACEOF 6496if ac_fn_c_try_link "$LINENO"; then : 6497 eval $cacheid=yes 6498else 6499 eval $cacheid=no 6500fi 6501rm -f core conftest.err conftest.$ac_objext \ 6502 conftest$ac_exeext conftest.$ac_ext 6503fi 6504 6505 6506 CFLAGS="$xorg_testset_save_CFLAGS" 6507 6508 eval supported=\$$cacheid 6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6510$as_echo "$supported" >&6; } 6511 if test "$supported" = "yes" ; then 6512 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6513 found="yes" 6514 fi 6515 fi 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531xorg_testset_save_CFLAGS="$CFLAGS" 6532 6533if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6536$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6537if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6538 $as_echo_n "(cached) " >&6 6539else 6540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6541/* end confdefs.h. */ 6542int i; 6543_ACEOF 6544if ac_fn_c_try_compile "$LINENO"; then : 6545 xorg_cv_cc_flag_unknown_warning_option=yes 6546else 6547 xorg_cv_cc_flag_unknown_warning_option=no 6548fi 6549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6550fi 6551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6552$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6554 CFLAGS="$xorg_testset_save_CFLAGS" 6555fi 6556 6557if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6560 fi 6561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6563$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6564if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6565 $as_echo_n "(cached) " >&6 6566else 6567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6568/* end confdefs.h. */ 6569int i; 6570_ACEOF 6571if ac_fn_c_try_compile "$LINENO"; then : 6572 xorg_cv_cc_flag_unused_command_line_argument=yes 6573else 6574 xorg_cv_cc_flag_unused_command_line_argument=no 6575fi 6576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6577fi 6578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6579$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6581 CFLAGS="$xorg_testset_save_CFLAGS" 6582fi 6583 6584found="no" 6585 6586 if test $found = "no" ; then 6587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6589 fi 6590 6591 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6593 fi 6594 6595 CFLAGS="$CFLAGS -Wredundant-decls" 6596 6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6598$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6599 cacheid=xorg_cv_cc_flag__Wredundant_decls 6600 if eval \${$cacheid+:} false; then : 6601 $as_echo_n "(cached) " >&6 6602else 6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6604/* end confdefs.h. */ 6605int i; 6606int 6607main () 6608{ 6609 6610 ; 6611 return 0; 6612} 6613_ACEOF 6614if ac_fn_c_try_link "$LINENO"; then : 6615 eval $cacheid=yes 6616else 6617 eval $cacheid=no 6618fi 6619rm -f core conftest.err conftest.$ac_objext \ 6620 conftest$ac_exeext conftest.$ac_ext 6621fi 6622 6623 6624 CFLAGS="$xorg_testset_save_CFLAGS" 6625 6626 eval supported=\$$cacheid 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6628$as_echo "$supported" >&6; } 6629 if test "$supported" = "yes" ; then 6630 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6631 found="yes" 6632 fi 6633 fi 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649xorg_testset_save_CFLAGS="$CFLAGS" 6650 6651if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6654$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6655if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6656 $as_echo_n "(cached) " >&6 6657else 6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6659/* end confdefs.h. */ 6660int i; 6661_ACEOF 6662if ac_fn_c_try_compile "$LINENO"; then : 6663 xorg_cv_cc_flag_unknown_warning_option=yes 6664else 6665 xorg_cv_cc_flag_unknown_warning_option=no 6666fi 6667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6668fi 6669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6670$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6671 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6672 CFLAGS="$xorg_testset_save_CFLAGS" 6673fi 6674 6675if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6678 fi 6679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6681$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6682if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6683 $as_echo_n "(cached) " >&6 6684else 6685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6686/* end confdefs.h. */ 6687int i; 6688_ACEOF 6689if ac_fn_c_try_compile "$LINENO"; then : 6690 xorg_cv_cc_flag_unused_command_line_argument=yes 6691else 6692 xorg_cv_cc_flag_unused_command_line_argument=no 6693fi 6694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6695fi 6696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6697$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6699 CFLAGS="$xorg_testset_save_CFLAGS" 6700fi 6701 6702found="no" 6703 6704 if test $found = "no" ; then 6705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6707 fi 6708 6709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6711 fi 6712 6713 CFLAGS="$CFLAGS -Wlogical-op" 6714 6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6716$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6717 cacheid=xorg_cv_cc_flag__Wlogical_op 6718 if eval \${$cacheid+:} false; then : 6719 $as_echo_n "(cached) " >&6 6720else 6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6722/* end confdefs.h. */ 6723int i; 6724int 6725main () 6726{ 6727 6728 ; 6729 return 0; 6730} 6731_ACEOF 6732if ac_fn_c_try_link "$LINENO"; then : 6733 eval $cacheid=yes 6734else 6735 eval $cacheid=no 6736fi 6737rm -f core conftest.err conftest.$ac_objext \ 6738 conftest$ac_exeext conftest.$ac_ext 6739fi 6740 6741 6742 CFLAGS="$xorg_testset_save_CFLAGS" 6743 6744 eval supported=\$$cacheid 6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6746$as_echo "$supported" >&6; } 6747 if test "$supported" = "yes" ; then 6748 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6749 found="yes" 6750 fi 6751 fi 6752 6753 6754 6755# These are currently disabled because they are noisy. They will be enabled 6756# in the future once the codebase is sufficiently modernized to silence 6757# them. For now, I don't want them to drown out the other warnings. 6758# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6759# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6760# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6761 6762# Turn some warnings into errors, so we don't accidently get successful builds 6763# when there are problems that should be fixed. 6764 6765if test "x$SELECTIVE_WERROR" = "xyes" ; then 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779xorg_testset_save_CFLAGS="$CFLAGS" 6780 6781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6784$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6785if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6786 $as_echo_n "(cached) " >&6 6787else 6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6789/* end confdefs.h. */ 6790int i; 6791_ACEOF 6792if ac_fn_c_try_compile "$LINENO"; then : 6793 xorg_cv_cc_flag_unknown_warning_option=yes 6794else 6795 xorg_cv_cc_flag_unknown_warning_option=no 6796fi 6797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6798fi 6799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6800$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6802 CFLAGS="$xorg_testset_save_CFLAGS" 6803fi 6804 6805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6808 fi 6809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6811$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6812if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6813 $as_echo_n "(cached) " >&6 6814else 6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6816/* end confdefs.h. */ 6817int i; 6818_ACEOF 6819if ac_fn_c_try_compile "$LINENO"; then : 6820 xorg_cv_cc_flag_unused_command_line_argument=yes 6821else 6822 xorg_cv_cc_flag_unused_command_line_argument=no 6823fi 6824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6825fi 6826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6827$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6828 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6829 CFLAGS="$xorg_testset_save_CFLAGS" 6830fi 6831 6832found="no" 6833 6834 if test $found = "no" ; then 6835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6837 fi 6838 6839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6841 fi 6842 6843 CFLAGS="$CFLAGS -Werror=implicit" 6844 6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6846$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6847 cacheid=xorg_cv_cc_flag__Werror_implicit 6848 if eval \${$cacheid+:} false; then : 6849 $as_echo_n "(cached) " >&6 6850else 6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6852/* end confdefs.h. */ 6853int i; 6854int 6855main () 6856{ 6857 6858 ; 6859 return 0; 6860} 6861_ACEOF 6862if ac_fn_c_try_link "$LINENO"; then : 6863 eval $cacheid=yes 6864else 6865 eval $cacheid=no 6866fi 6867rm -f core conftest.err conftest.$ac_objext \ 6868 conftest$ac_exeext conftest.$ac_ext 6869fi 6870 6871 6872 CFLAGS="$xorg_testset_save_CFLAGS" 6873 6874 eval supported=\$$cacheid 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6876$as_echo "$supported" >&6; } 6877 if test "$supported" = "yes" ; then 6878 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6879 found="yes" 6880 fi 6881 fi 6882 6883 if test $found = "no" ; then 6884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6886 fi 6887 6888 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6890 fi 6891 6892 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6893 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6895$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6896 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6897 if eval \${$cacheid+:} false; then : 6898 $as_echo_n "(cached) " >&6 6899else 6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6901/* end confdefs.h. */ 6902int i; 6903int 6904main () 6905{ 6906 6907 ; 6908 return 0; 6909} 6910_ACEOF 6911if ac_fn_c_try_link "$LINENO"; then : 6912 eval $cacheid=yes 6913else 6914 eval $cacheid=no 6915fi 6916rm -f core conftest.err conftest.$ac_objext \ 6917 conftest$ac_exeext conftest.$ac_ext 6918fi 6919 6920 6921 CFLAGS="$xorg_testset_save_CFLAGS" 6922 6923 eval supported=\$$cacheid 6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6925$as_echo "$supported" >&6; } 6926 if test "$supported" = "yes" ; then 6927 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6928 found="yes" 6929 fi 6930 fi 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946xorg_testset_save_CFLAGS="$CFLAGS" 6947 6948if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6951$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6952if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6953 $as_echo_n "(cached) " >&6 6954else 6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6956/* end confdefs.h. */ 6957int i; 6958_ACEOF 6959if ac_fn_c_try_compile "$LINENO"; then : 6960 xorg_cv_cc_flag_unknown_warning_option=yes 6961else 6962 xorg_cv_cc_flag_unknown_warning_option=no 6963fi 6964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6965fi 6966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6967$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6969 CFLAGS="$xorg_testset_save_CFLAGS" 6970fi 6971 6972if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6975 fi 6976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6978$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6979if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6980 $as_echo_n "(cached) " >&6 6981else 6982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6983/* end confdefs.h. */ 6984int i; 6985_ACEOF 6986if ac_fn_c_try_compile "$LINENO"; then : 6987 xorg_cv_cc_flag_unused_command_line_argument=yes 6988else 6989 xorg_cv_cc_flag_unused_command_line_argument=no 6990fi 6991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6992fi 6993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6994$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6995 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6996 CFLAGS="$xorg_testset_save_CFLAGS" 6997fi 6998 6999found="no" 7000 7001 if test $found = "no" ; then 7002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7004 fi 7005 7006 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7008 fi 7009 7010 CFLAGS="$CFLAGS -Werror=nonnull" 7011 7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7013$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7014 cacheid=xorg_cv_cc_flag__Werror_nonnull 7015 if eval \${$cacheid+:} false; then : 7016 $as_echo_n "(cached) " >&6 7017else 7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7019/* end confdefs.h. */ 7020int i; 7021int 7022main () 7023{ 7024 7025 ; 7026 return 0; 7027} 7028_ACEOF 7029if ac_fn_c_try_link "$LINENO"; then : 7030 eval $cacheid=yes 7031else 7032 eval $cacheid=no 7033fi 7034rm -f core conftest.err conftest.$ac_objext \ 7035 conftest$ac_exeext conftest.$ac_ext 7036fi 7037 7038 7039 CFLAGS="$xorg_testset_save_CFLAGS" 7040 7041 eval supported=\$$cacheid 7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7043$as_echo "$supported" >&6; } 7044 if test "$supported" = "yes" ; then 7045 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7046 found="yes" 7047 fi 7048 fi 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064xorg_testset_save_CFLAGS="$CFLAGS" 7065 7066if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7069$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7070if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7071 $as_echo_n "(cached) " >&6 7072else 7073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7074/* end confdefs.h. */ 7075int i; 7076_ACEOF 7077if ac_fn_c_try_compile "$LINENO"; then : 7078 xorg_cv_cc_flag_unknown_warning_option=yes 7079else 7080 xorg_cv_cc_flag_unknown_warning_option=no 7081fi 7082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7083fi 7084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7085$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7087 CFLAGS="$xorg_testset_save_CFLAGS" 7088fi 7089 7090if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7093 fi 7094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7096$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7097if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7098 $as_echo_n "(cached) " >&6 7099else 7100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7101/* end confdefs.h. */ 7102int i; 7103_ACEOF 7104if ac_fn_c_try_compile "$LINENO"; then : 7105 xorg_cv_cc_flag_unused_command_line_argument=yes 7106else 7107 xorg_cv_cc_flag_unused_command_line_argument=no 7108fi 7109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7110fi 7111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7112$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7114 CFLAGS="$xorg_testset_save_CFLAGS" 7115fi 7116 7117found="no" 7118 7119 if test $found = "no" ; then 7120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7122 fi 7123 7124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7126 fi 7127 7128 CFLAGS="$CFLAGS -Werror=init-self" 7129 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7131$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7132 cacheid=xorg_cv_cc_flag__Werror_init_self 7133 if eval \${$cacheid+:} false; then : 7134 $as_echo_n "(cached) " >&6 7135else 7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7137/* end confdefs.h. */ 7138int i; 7139int 7140main () 7141{ 7142 7143 ; 7144 return 0; 7145} 7146_ACEOF 7147if ac_fn_c_try_link "$LINENO"; then : 7148 eval $cacheid=yes 7149else 7150 eval $cacheid=no 7151fi 7152rm -f core conftest.err conftest.$ac_objext \ 7153 conftest$ac_exeext conftest.$ac_ext 7154fi 7155 7156 7157 CFLAGS="$xorg_testset_save_CFLAGS" 7158 7159 eval supported=\$$cacheid 7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7161$as_echo "$supported" >&6; } 7162 if test "$supported" = "yes" ; then 7163 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7164 found="yes" 7165 fi 7166 fi 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182xorg_testset_save_CFLAGS="$CFLAGS" 7183 7184if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7187$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7188if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7189 $as_echo_n "(cached) " >&6 7190else 7191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7192/* end confdefs.h. */ 7193int i; 7194_ACEOF 7195if ac_fn_c_try_compile "$LINENO"; then : 7196 xorg_cv_cc_flag_unknown_warning_option=yes 7197else 7198 xorg_cv_cc_flag_unknown_warning_option=no 7199fi 7200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7201fi 7202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7203$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7205 CFLAGS="$xorg_testset_save_CFLAGS" 7206fi 7207 7208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7211 fi 7212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7214$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7215if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7216 $as_echo_n "(cached) " >&6 7217else 7218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7219/* end confdefs.h. */ 7220int i; 7221_ACEOF 7222if ac_fn_c_try_compile "$LINENO"; then : 7223 xorg_cv_cc_flag_unused_command_line_argument=yes 7224else 7225 xorg_cv_cc_flag_unused_command_line_argument=no 7226fi 7227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7228fi 7229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7230$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7231 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7232 CFLAGS="$xorg_testset_save_CFLAGS" 7233fi 7234 7235found="no" 7236 7237 if test $found = "no" ; then 7238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7240 fi 7241 7242 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7244 fi 7245 7246 CFLAGS="$CFLAGS -Werror=main" 7247 7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7249$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7250 cacheid=xorg_cv_cc_flag__Werror_main 7251 if eval \${$cacheid+:} false; then : 7252 $as_echo_n "(cached) " >&6 7253else 7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7255/* end confdefs.h. */ 7256int i; 7257int 7258main () 7259{ 7260 7261 ; 7262 return 0; 7263} 7264_ACEOF 7265if ac_fn_c_try_link "$LINENO"; then : 7266 eval $cacheid=yes 7267else 7268 eval $cacheid=no 7269fi 7270rm -f core conftest.err conftest.$ac_objext \ 7271 conftest$ac_exeext conftest.$ac_ext 7272fi 7273 7274 7275 CFLAGS="$xorg_testset_save_CFLAGS" 7276 7277 eval supported=\$$cacheid 7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7279$as_echo "$supported" >&6; } 7280 if test "$supported" = "yes" ; then 7281 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7282 found="yes" 7283 fi 7284 fi 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300xorg_testset_save_CFLAGS="$CFLAGS" 7301 7302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7305$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7306if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7307 $as_echo_n "(cached) " >&6 7308else 7309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7310/* end confdefs.h. */ 7311int i; 7312_ACEOF 7313if ac_fn_c_try_compile "$LINENO"; then : 7314 xorg_cv_cc_flag_unknown_warning_option=yes 7315else 7316 xorg_cv_cc_flag_unknown_warning_option=no 7317fi 7318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7319fi 7320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7321$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7323 CFLAGS="$xorg_testset_save_CFLAGS" 7324fi 7325 7326if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7329 fi 7330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7332$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7333if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7334 $as_echo_n "(cached) " >&6 7335else 7336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7337/* end confdefs.h. */ 7338int i; 7339_ACEOF 7340if ac_fn_c_try_compile "$LINENO"; then : 7341 xorg_cv_cc_flag_unused_command_line_argument=yes 7342else 7343 xorg_cv_cc_flag_unused_command_line_argument=no 7344fi 7345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7346fi 7347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7348$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7350 CFLAGS="$xorg_testset_save_CFLAGS" 7351fi 7352 7353found="no" 7354 7355 if test $found = "no" ; then 7356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7358 fi 7359 7360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7362 fi 7363 7364 CFLAGS="$CFLAGS -Werror=missing-braces" 7365 7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7367$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7368 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7369 if eval \${$cacheid+:} false; then : 7370 $as_echo_n "(cached) " >&6 7371else 7372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7373/* end confdefs.h. */ 7374int i; 7375int 7376main () 7377{ 7378 7379 ; 7380 return 0; 7381} 7382_ACEOF 7383if ac_fn_c_try_link "$LINENO"; then : 7384 eval $cacheid=yes 7385else 7386 eval $cacheid=no 7387fi 7388rm -f core conftest.err conftest.$ac_objext \ 7389 conftest$ac_exeext conftest.$ac_ext 7390fi 7391 7392 7393 CFLAGS="$xorg_testset_save_CFLAGS" 7394 7395 eval supported=\$$cacheid 7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7397$as_echo "$supported" >&6; } 7398 if test "$supported" = "yes" ; then 7399 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7400 found="yes" 7401 fi 7402 fi 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418xorg_testset_save_CFLAGS="$CFLAGS" 7419 7420if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7423$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7424if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7425 $as_echo_n "(cached) " >&6 7426else 7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7428/* end confdefs.h. */ 7429int i; 7430_ACEOF 7431if ac_fn_c_try_compile "$LINENO"; then : 7432 xorg_cv_cc_flag_unknown_warning_option=yes 7433else 7434 xorg_cv_cc_flag_unknown_warning_option=no 7435fi 7436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7437fi 7438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7439$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7440 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7441 CFLAGS="$xorg_testset_save_CFLAGS" 7442fi 7443 7444if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7447 fi 7448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7450$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7451if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7452 $as_echo_n "(cached) " >&6 7453else 7454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7455/* end confdefs.h. */ 7456int i; 7457_ACEOF 7458if ac_fn_c_try_compile "$LINENO"; then : 7459 xorg_cv_cc_flag_unused_command_line_argument=yes 7460else 7461 xorg_cv_cc_flag_unused_command_line_argument=no 7462fi 7463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7464fi 7465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7466$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7468 CFLAGS="$xorg_testset_save_CFLAGS" 7469fi 7470 7471found="no" 7472 7473 if test $found = "no" ; then 7474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7476 fi 7477 7478 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7480 fi 7481 7482 CFLAGS="$CFLAGS -Werror=sequence-point" 7483 7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7485$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7486 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7487 if eval \${$cacheid+:} false; then : 7488 $as_echo_n "(cached) " >&6 7489else 7490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7491/* end confdefs.h. */ 7492int i; 7493int 7494main () 7495{ 7496 7497 ; 7498 return 0; 7499} 7500_ACEOF 7501if ac_fn_c_try_link "$LINENO"; then : 7502 eval $cacheid=yes 7503else 7504 eval $cacheid=no 7505fi 7506rm -f core conftest.err conftest.$ac_objext \ 7507 conftest$ac_exeext conftest.$ac_ext 7508fi 7509 7510 7511 CFLAGS="$xorg_testset_save_CFLAGS" 7512 7513 eval supported=\$$cacheid 7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7515$as_echo "$supported" >&6; } 7516 if test "$supported" = "yes" ; then 7517 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7518 found="yes" 7519 fi 7520 fi 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536xorg_testset_save_CFLAGS="$CFLAGS" 7537 7538if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7541$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7542if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7543 $as_echo_n "(cached) " >&6 7544else 7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7546/* end confdefs.h. */ 7547int i; 7548_ACEOF 7549if ac_fn_c_try_compile "$LINENO"; then : 7550 xorg_cv_cc_flag_unknown_warning_option=yes 7551else 7552 xorg_cv_cc_flag_unknown_warning_option=no 7553fi 7554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7555fi 7556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7557$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7558 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7559 CFLAGS="$xorg_testset_save_CFLAGS" 7560fi 7561 7562if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7565 fi 7566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7568$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7569if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7570 $as_echo_n "(cached) " >&6 7571else 7572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7573/* end confdefs.h. */ 7574int i; 7575_ACEOF 7576if ac_fn_c_try_compile "$LINENO"; then : 7577 xorg_cv_cc_flag_unused_command_line_argument=yes 7578else 7579 xorg_cv_cc_flag_unused_command_line_argument=no 7580fi 7581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7582fi 7583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7584$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7586 CFLAGS="$xorg_testset_save_CFLAGS" 7587fi 7588 7589found="no" 7590 7591 if test $found = "no" ; then 7592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7594 fi 7595 7596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7598 fi 7599 7600 CFLAGS="$CFLAGS -Werror=return-type" 7601 7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7603$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7604 cacheid=xorg_cv_cc_flag__Werror_return_type 7605 if eval \${$cacheid+:} false; then : 7606 $as_echo_n "(cached) " >&6 7607else 7608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7609/* end confdefs.h. */ 7610int i; 7611int 7612main () 7613{ 7614 7615 ; 7616 return 0; 7617} 7618_ACEOF 7619if ac_fn_c_try_link "$LINENO"; then : 7620 eval $cacheid=yes 7621else 7622 eval $cacheid=no 7623fi 7624rm -f core conftest.err conftest.$ac_objext \ 7625 conftest$ac_exeext conftest.$ac_ext 7626fi 7627 7628 7629 CFLAGS="$xorg_testset_save_CFLAGS" 7630 7631 eval supported=\$$cacheid 7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7633$as_echo "$supported" >&6; } 7634 if test "$supported" = "yes" ; then 7635 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7636 found="yes" 7637 fi 7638 fi 7639 7640 if test $found = "no" ; then 7641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7643 fi 7644 7645 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7647 fi 7648 7649 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7650 7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7652$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7653 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7654 if eval \${$cacheid+:} false; then : 7655 $as_echo_n "(cached) " >&6 7656else 7657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7658/* end confdefs.h. */ 7659int i; 7660int 7661main () 7662{ 7663 7664 ; 7665 return 0; 7666} 7667_ACEOF 7668if ac_fn_c_try_link "$LINENO"; then : 7669 eval $cacheid=yes 7670else 7671 eval $cacheid=no 7672fi 7673rm -f core conftest.err conftest.$ac_objext \ 7674 conftest$ac_exeext conftest.$ac_ext 7675fi 7676 7677 7678 CFLAGS="$xorg_testset_save_CFLAGS" 7679 7680 eval supported=\$$cacheid 7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7682$as_echo "$supported" >&6; } 7683 if test "$supported" = "yes" ; then 7684 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7685 found="yes" 7686 fi 7687 fi 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703xorg_testset_save_CFLAGS="$CFLAGS" 7704 7705if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7708$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7709if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7710 $as_echo_n "(cached) " >&6 7711else 7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7713/* end confdefs.h. */ 7714int i; 7715_ACEOF 7716if ac_fn_c_try_compile "$LINENO"; then : 7717 xorg_cv_cc_flag_unknown_warning_option=yes 7718else 7719 xorg_cv_cc_flag_unknown_warning_option=no 7720fi 7721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7722fi 7723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7724$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7725 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7726 CFLAGS="$xorg_testset_save_CFLAGS" 7727fi 7728 7729if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7732 fi 7733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7735$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7736if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7737 $as_echo_n "(cached) " >&6 7738else 7739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7740/* end confdefs.h. */ 7741int i; 7742_ACEOF 7743if ac_fn_c_try_compile "$LINENO"; then : 7744 xorg_cv_cc_flag_unused_command_line_argument=yes 7745else 7746 xorg_cv_cc_flag_unused_command_line_argument=no 7747fi 7748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7749fi 7750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7751$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7753 CFLAGS="$xorg_testset_save_CFLAGS" 7754fi 7755 7756found="no" 7757 7758 if test $found = "no" ; then 7759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7761 fi 7762 7763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7765 fi 7766 7767 CFLAGS="$CFLAGS -Werror=trigraphs" 7768 7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7770$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7771 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7772 if eval \${$cacheid+:} false; then : 7773 $as_echo_n "(cached) " >&6 7774else 7775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7776/* end confdefs.h. */ 7777int i; 7778int 7779main () 7780{ 7781 7782 ; 7783 return 0; 7784} 7785_ACEOF 7786if ac_fn_c_try_link "$LINENO"; then : 7787 eval $cacheid=yes 7788else 7789 eval $cacheid=no 7790fi 7791rm -f core conftest.err conftest.$ac_objext \ 7792 conftest$ac_exeext conftest.$ac_ext 7793fi 7794 7795 7796 CFLAGS="$xorg_testset_save_CFLAGS" 7797 7798 eval supported=\$$cacheid 7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7800$as_echo "$supported" >&6; } 7801 if test "$supported" = "yes" ; then 7802 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7803 found="yes" 7804 fi 7805 fi 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821xorg_testset_save_CFLAGS="$CFLAGS" 7822 7823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7826$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7827if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7828 $as_echo_n "(cached) " >&6 7829else 7830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7831/* end confdefs.h. */ 7832int i; 7833_ACEOF 7834if ac_fn_c_try_compile "$LINENO"; then : 7835 xorg_cv_cc_flag_unknown_warning_option=yes 7836else 7837 xorg_cv_cc_flag_unknown_warning_option=no 7838fi 7839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7840fi 7841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7842$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7844 CFLAGS="$xorg_testset_save_CFLAGS" 7845fi 7846 7847if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7850 fi 7851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7853$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7854if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7855 $as_echo_n "(cached) " >&6 7856else 7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7858/* end confdefs.h. */ 7859int i; 7860_ACEOF 7861if ac_fn_c_try_compile "$LINENO"; then : 7862 xorg_cv_cc_flag_unused_command_line_argument=yes 7863else 7864 xorg_cv_cc_flag_unused_command_line_argument=no 7865fi 7866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7867fi 7868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7869$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7870 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7871 CFLAGS="$xorg_testset_save_CFLAGS" 7872fi 7873 7874found="no" 7875 7876 if test $found = "no" ; then 7877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7879 fi 7880 7881 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7883 fi 7884 7885 CFLAGS="$CFLAGS -Werror=array-bounds" 7886 7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7888$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7889 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7890 if eval \${$cacheid+:} false; then : 7891 $as_echo_n "(cached) " >&6 7892else 7893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7894/* end confdefs.h. */ 7895int i; 7896int 7897main () 7898{ 7899 7900 ; 7901 return 0; 7902} 7903_ACEOF 7904if ac_fn_c_try_link "$LINENO"; then : 7905 eval $cacheid=yes 7906else 7907 eval $cacheid=no 7908fi 7909rm -f core conftest.err conftest.$ac_objext \ 7910 conftest$ac_exeext conftest.$ac_ext 7911fi 7912 7913 7914 CFLAGS="$xorg_testset_save_CFLAGS" 7915 7916 eval supported=\$$cacheid 7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7918$as_echo "$supported" >&6; } 7919 if test "$supported" = "yes" ; then 7920 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7921 found="yes" 7922 fi 7923 fi 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939xorg_testset_save_CFLAGS="$CFLAGS" 7940 7941if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7944$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7945if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7946 $as_echo_n "(cached) " >&6 7947else 7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7949/* end confdefs.h. */ 7950int i; 7951_ACEOF 7952if ac_fn_c_try_compile "$LINENO"; then : 7953 xorg_cv_cc_flag_unknown_warning_option=yes 7954else 7955 xorg_cv_cc_flag_unknown_warning_option=no 7956fi 7957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7958fi 7959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7960$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7961 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7962 CFLAGS="$xorg_testset_save_CFLAGS" 7963fi 7964 7965if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7968 fi 7969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7971$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7972if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7973 $as_echo_n "(cached) " >&6 7974else 7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7976/* end confdefs.h. */ 7977int i; 7978_ACEOF 7979if ac_fn_c_try_compile "$LINENO"; then : 7980 xorg_cv_cc_flag_unused_command_line_argument=yes 7981else 7982 xorg_cv_cc_flag_unused_command_line_argument=no 7983fi 7984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7985fi 7986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7987$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7988 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7989 CFLAGS="$xorg_testset_save_CFLAGS" 7990fi 7991 7992found="no" 7993 7994 if test $found = "no" ; then 7995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7997 fi 7998 7999 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8001 fi 8002 8003 CFLAGS="$CFLAGS -Werror=write-strings" 8004 8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8006$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8007 cacheid=xorg_cv_cc_flag__Werror_write_strings 8008 if eval \${$cacheid+:} false; then : 8009 $as_echo_n "(cached) " >&6 8010else 8011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8012/* end confdefs.h. */ 8013int i; 8014int 8015main () 8016{ 8017 8018 ; 8019 return 0; 8020} 8021_ACEOF 8022if ac_fn_c_try_link "$LINENO"; then : 8023 eval $cacheid=yes 8024else 8025 eval $cacheid=no 8026fi 8027rm -f core conftest.err conftest.$ac_objext \ 8028 conftest$ac_exeext conftest.$ac_ext 8029fi 8030 8031 8032 CFLAGS="$xorg_testset_save_CFLAGS" 8033 8034 eval supported=\$$cacheid 8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8036$as_echo "$supported" >&6; } 8037 if test "$supported" = "yes" ; then 8038 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8039 found="yes" 8040 fi 8041 fi 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057xorg_testset_save_CFLAGS="$CFLAGS" 8058 8059if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8062$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8063if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8064 $as_echo_n "(cached) " >&6 8065else 8066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8067/* end confdefs.h. */ 8068int i; 8069_ACEOF 8070if ac_fn_c_try_compile "$LINENO"; then : 8071 xorg_cv_cc_flag_unknown_warning_option=yes 8072else 8073 xorg_cv_cc_flag_unknown_warning_option=no 8074fi 8075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8076fi 8077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8078$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8080 CFLAGS="$xorg_testset_save_CFLAGS" 8081fi 8082 8083if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8086 fi 8087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8089$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8090if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8091 $as_echo_n "(cached) " >&6 8092else 8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8094/* end confdefs.h. */ 8095int i; 8096_ACEOF 8097if ac_fn_c_try_compile "$LINENO"; then : 8098 xorg_cv_cc_flag_unused_command_line_argument=yes 8099else 8100 xorg_cv_cc_flag_unused_command_line_argument=no 8101fi 8102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8103fi 8104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8105$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8107 CFLAGS="$xorg_testset_save_CFLAGS" 8108fi 8109 8110found="no" 8111 8112 if test $found = "no" ; then 8113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8115 fi 8116 8117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8119 fi 8120 8121 CFLAGS="$CFLAGS -Werror=address" 8122 8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8124$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8125 cacheid=xorg_cv_cc_flag__Werror_address 8126 if eval \${$cacheid+:} false; then : 8127 $as_echo_n "(cached) " >&6 8128else 8129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8130/* end confdefs.h. */ 8131int i; 8132int 8133main () 8134{ 8135 8136 ; 8137 return 0; 8138} 8139_ACEOF 8140if ac_fn_c_try_link "$LINENO"; then : 8141 eval $cacheid=yes 8142else 8143 eval $cacheid=no 8144fi 8145rm -f core conftest.err conftest.$ac_objext \ 8146 conftest$ac_exeext conftest.$ac_ext 8147fi 8148 8149 8150 CFLAGS="$xorg_testset_save_CFLAGS" 8151 8152 eval supported=\$$cacheid 8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8154$as_echo "$supported" >&6; } 8155 if test "$supported" = "yes" ; then 8156 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8157 found="yes" 8158 fi 8159 fi 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175xorg_testset_save_CFLAGS="$CFLAGS" 8176 8177if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8180$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8181if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8182 $as_echo_n "(cached) " >&6 8183else 8184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8185/* end confdefs.h. */ 8186int i; 8187_ACEOF 8188if ac_fn_c_try_compile "$LINENO"; then : 8189 xorg_cv_cc_flag_unknown_warning_option=yes 8190else 8191 xorg_cv_cc_flag_unknown_warning_option=no 8192fi 8193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8194fi 8195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8196$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8198 CFLAGS="$xorg_testset_save_CFLAGS" 8199fi 8200 8201if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8204 fi 8205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8207$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8208if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8209 $as_echo_n "(cached) " >&6 8210else 8211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8212/* end confdefs.h. */ 8213int i; 8214_ACEOF 8215if ac_fn_c_try_compile "$LINENO"; then : 8216 xorg_cv_cc_flag_unused_command_line_argument=yes 8217else 8218 xorg_cv_cc_flag_unused_command_line_argument=no 8219fi 8220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8221fi 8222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8223$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8225 CFLAGS="$xorg_testset_save_CFLAGS" 8226fi 8227 8228found="no" 8229 8230 if test $found = "no" ; then 8231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8233 fi 8234 8235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8237 fi 8238 8239 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8240 8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8242$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8243 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8244 if eval \${$cacheid+:} false; then : 8245 $as_echo_n "(cached) " >&6 8246else 8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8248/* end confdefs.h. */ 8249int i; 8250int 8251main () 8252{ 8253 8254 ; 8255 return 0; 8256} 8257_ACEOF 8258if ac_fn_c_try_link "$LINENO"; then : 8259 eval $cacheid=yes 8260else 8261 eval $cacheid=no 8262fi 8263rm -f core conftest.err conftest.$ac_objext \ 8264 conftest$ac_exeext conftest.$ac_ext 8265fi 8266 8267 8268 CFLAGS="$xorg_testset_save_CFLAGS" 8269 8270 eval supported=\$$cacheid 8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8272$as_echo "$supported" >&6; } 8273 if test "$supported" = "yes" ; then 8274 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8275 found="yes" 8276 fi 8277 fi 8278 8279 if test $found = "no" ; then 8280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8282 fi 8283 8284 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8286 fi 8287 8288 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8289 8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8291$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8292 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8293 if eval \${$cacheid+:} false; then : 8294 $as_echo_n "(cached) " >&6 8295else 8296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8297/* end confdefs.h. */ 8298int i; 8299int 8300main () 8301{ 8302 8303 ; 8304 return 0; 8305} 8306_ACEOF 8307if ac_fn_c_try_link "$LINENO"; then : 8308 eval $cacheid=yes 8309else 8310 eval $cacheid=no 8311fi 8312rm -f core conftest.err conftest.$ac_objext \ 8313 conftest$ac_exeext conftest.$ac_ext 8314fi 8315 8316 8317 CFLAGS="$xorg_testset_save_CFLAGS" 8318 8319 eval supported=\$$cacheid 8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8321$as_echo "$supported" >&6; } 8322 if test "$supported" = "yes" ; then 8323 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8324 found="yes" 8325 fi 8326 fi 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342xorg_testset_save_CFLAGS="$CFLAGS" 8343 8344if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8347$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8348if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8349 $as_echo_n "(cached) " >&6 8350else 8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8352/* end confdefs.h. */ 8353int i; 8354_ACEOF 8355if ac_fn_c_try_compile "$LINENO"; then : 8356 xorg_cv_cc_flag_unknown_warning_option=yes 8357else 8358 xorg_cv_cc_flag_unknown_warning_option=no 8359fi 8360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8361fi 8362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8363$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8364 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8365 CFLAGS="$xorg_testset_save_CFLAGS" 8366fi 8367 8368if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8371 fi 8372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8374$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8375if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8376 $as_echo_n "(cached) " >&6 8377else 8378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8379/* end confdefs.h. */ 8380int i; 8381_ACEOF 8382if ac_fn_c_try_compile "$LINENO"; then : 8383 xorg_cv_cc_flag_unused_command_line_argument=yes 8384else 8385 xorg_cv_cc_flag_unused_command_line_argument=no 8386fi 8387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8388fi 8389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8390$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8391 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8392 CFLAGS="$xorg_testset_save_CFLAGS" 8393fi 8394 8395found="no" 8396 8397 if test $found = "no" ; then 8398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8400 fi 8401 8402 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8404 fi 8405 8406 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8407 8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8409$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8410 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8411 if eval \${$cacheid+:} false; then : 8412 $as_echo_n "(cached) " >&6 8413else 8414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8415/* end confdefs.h. */ 8416int i; 8417int 8418main () 8419{ 8420 8421 ; 8422 return 0; 8423} 8424_ACEOF 8425if ac_fn_c_try_link "$LINENO"; then : 8426 eval $cacheid=yes 8427else 8428 eval $cacheid=no 8429fi 8430rm -f core conftest.err conftest.$ac_objext \ 8431 conftest$ac_exeext conftest.$ac_ext 8432fi 8433 8434 8435 CFLAGS="$xorg_testset_save_CFLAGS" 8436 8437 eval supported=\$$cacheid 8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8439$as_echo "$supported" >&6; } 8440 if test "$supported" = "yes" ; then 8441 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8442 found="yes" 8443 fi 8444 fi 8445 8446 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8447else 8448{ $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 8449$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;} 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463xorg_testset_save_CFLAGS="$CFLAGS" 8464 8465if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8468$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8469if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8470 $as_echo_n "(cached) " >&6 8471else 8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8473/* end confdefs.h. */ 8474int i; 8475_ACEOF 8476if ac_fn_c_try_compile "$LINENO"; then : 8477 xorg_cv_cc_flag_unknown_warning_option=yes 8478else 8479 xorg_cv_cc_flag_unknown_warning_option=no 8480fi 8481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8482fi 8483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8484$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8486 CFLAGS="$xorg_testset_save_CFLAGS" 8487fi 8488 8489if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8492 fi 8493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8495$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8496if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8497 $as_echo_n "(cached) " >&6 8498else 8499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8500/* end confdefs.h. */ 8501int i; 8502_ACEOF 8503if ac_fn_c_try_compile "$LINENO"; then : 8504 xorg_cv_cc_flag_unused_command_line_argument=yes 8505else 8506 xorg_cv_cc_flag_unused_command_line_argument=no 8507fi 8508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8509fi 8510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8511$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8512 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8513 CFLAGS="$xorg_testset_save_CFLAGS" 8514fi 8515 8516found="no" 8517 8518 if test $found = "no" ; then 8519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8521 fi 8522 8523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8525 fi 8526 8527 CFLAGS="$CFLAGS -Wimplicit" 8528 8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8530$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8531 cacheid=xorg_cv_cc_flag__Wimplicit 8532 if eval \${$cacheid+:} false; then : 8533 $as_echo_n "(cached) " >&6 8534else 8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8536/* end confdefs.h. */ 8537int i; 8538int 8539main () 8540{ 8541 8542 ; 8543 return 0; 8544} 8545_ACEOF 8546if ac_fn_c_try_link "$LINENO"; then : 8547 eval $cacheid=yes 8548else 8549 eval $cacheid=no 8550fi 8551rm -f core conftest.err conftest.$ac_objext \ 8552 conftest$ac_exeext conftest.$ac_ext 8553fi 8554 8555 8556 CFLAGS="$xorg_testset_save_CFLAGS" 8557 8558 eval supported=\$$cacheid 8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8560$as_echo "$supported" >&6; } 8561 if test "$supported" = "yes" ; then 8562 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8563 found="yes" 8564 fi 8565 fi 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581xorg_testset_save_CFLAGS="$CFLAGS" 8582 8583if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8586$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8587if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8588 $as_echo_n "(cached) " >&6 8589else 8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8591/* end confdefs.h. */ 8592int i; 8593_ACEOF 8594if ac_fn_c_try_compile "$LINENO"; then : 8595 xorg_cv_cc_flag_unknown_warning_option=yes 8596else 8597 xorg_cv_cc_flag_unknown_warning_option=no 8598fi 8599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8600fi 8601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8602$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8604 CFLAGS="$xorg_testset_save_CFLAGS" 8605fi 8606 8607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8610 fi 8611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8613$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8614if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8615 $as_echo_n "(cached) " >&6 8616else 8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8618/* end confdefs.h. */ 8619int i; 8620_ACEOF 8621if ac_fn_c_try_compile "$LINENO"; then : 8622 xorg_cv_cc_flag_unused_command_line_argument=yes 8623else 8624 xorg_cv_cc_flag_unused_command_line_argument=no 8625fi 8626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8627fi 8628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8629$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8631 CFLAGS="$xorg_testset_save_CFLAGS" 8632fi 8633 8634found="no" 8635 8636 if test $found = "no" ; then 8637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8639 fi 8640 8641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8643 fi 8644 8645 CFLAGS="$CFLAGS -Wnonnull" 8646 8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8648$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8649 cacheid=xorg_cv_cc_flag__Wnonnull 8650 if eval \${$cacheid+:} false; then : 8651 $as_echo_n "(cached) " >&6 8652else 8653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8654/* end confdefs.h. */ 8655int i; 8656int 8657main () 8658{ 8659 8660 ; 8661 return 0; 8662} 8663_ACEOF 8664if ac_fn_c_try_link "$LINENO"; then : 8665 eval $cacheid=yes 8666else 8667 eval $cacheid=no 8668fi 8669rm -f core conftest.err conftest.$ac_objext \ 8670 conftest$ac_exeext conftest.$ac_ext 8671fi 8672 8673 8674 CFLAGS="$xorg_testset_save_CFLAGS" 8675 8676 eval supported=\$$cacheid 8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8678$as_echo "$supported" >&6; } 8679 if test "$supported" = "yes" ; then 8680 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8681 found="yes" 8682 fi 8683 fi 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699xorg_testset_save_CFLAGS="$CFLAGS" 8700 8701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8704$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8705if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8706 $as_echo_n "(cached) " >&6 8707else 8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8709/* end confdefs.h. */ 8710int i; 8711_ACEOF 8712if ac_fn_c_try_compile "$LINENO"; then : 8713 xorg_cv_cc_flag_unknown_warning_option=yes 8714else 8715 xorg_cv_cc_flag_unknown_warning_option=no 8716fi 8717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8718fi 8719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8720$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8722 CFLAGS="$xorg_testset_save_CFLAGS" 8723fi 8724 8725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8728 fi 8729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8731$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8732if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8733 $as_echo_n "(cached) " >&6 8734else 8735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8736/* end confdefs.h. */ 8737int i; 8738_ACEOF 8739if ac_fn_c_try_compile "$LINENO"; then : 8740 xorg_cv_cc_flag_unused_command_line_argument=yes 8741else 8742 xorg_cv_cc_flag_unused_command_line_argument=no 8743fi 8744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8745fi 8746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8747$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8749 CFLAGS="$xorg_testset_save_CFLAGS" 8750fi 8751 8752found="no" 8753 8754 if test $found = "no" ; then 8755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8757 fi 8758 8759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8761 fi 8762 8763 CFLAGS="$CFLAGS -Winit-self" 8764 8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8766$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8767 cacheid=xorg_cv_cc_flag__Winit_self 8768 if eval \${$cacheid+:} false; then : 8769 $as_echo_n "(cached) " >&6 8770else 8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8772/* end confdefs.h. */ 8773int i; 8774int 8775main () 8776{ 8777 8778 ; 8779 return 0; 8780} 8781_ACEOF 8782if ac_fn_c_try_link "$LINENO"; then : 8783 eval $cacheid=yes 8784else 8785 eval $cacheid=no 8786fi 8787rm -f core conftest.err conftest.$ac_objext \ 8788 conftest$ac_exeext conftest.$ac_ext 8789fi 8790 8791 8792 CFLAGS="$xorg_testset_save_CFLAGS" 8793 8794 eval supported=\$$cacheid 8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8796$as_echo "$supported" >&6; } 8797 if test "$supported" = "yes" ; then 8798 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8799 found="yes" 8800 fi 8801 fi 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817xorg_testset_save_CFLAGS="$CFLAGS" 8818 8819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8822$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8823if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8824 $as_echo_n "(cached) " >&6 8825else 8826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8827/* end confdefs.h. */ 8828int i; 8829_ACEOF 8830if ac_fn_c_try_compile "$LINENO"; then : 8831 xorg_cv_cc_flag_unknown_warning_option=yes 8832else 8833 xorg_cv_cc_flag_unknown_warning_option=no 8834fi 8835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8836fi 8837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8838$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8840 CFLAGS="$xorg_testset_save_CFLAGS" 8841fi 8842 8843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8846 fi 8847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8849$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8850if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8851 $as_echo_n "(cached) " >&6 8852else 8853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8854/* end confdefs.h. */ 8855int i; 8856_ACEOF 8857if ac_fn_c_try_compile "$LINENO"; then : 8858 xorg_cv_cc_flag_unused_command_line_argument=yes 8859else 8860 xorg_cv_cc_flag_unused_command_line_argument=no 8861fi 8862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8863fi 8864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8865$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8867 CFLAGS="$xorg_testset_save_CFLAGS" 8868fi 8869 8870found="no" 8871 8872 if test $found = "no" ; then 8873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8875 fi 8876 8877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8879 fi 8880 8881 CFLAGS="$CFLAGS -Wmain" 8882 8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8884$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8885 cacheid=xorg_cv_cc_flag__Wmain 8886 if eval \${$cacheid+:} false; then : 8887 $as_echo_n "(cached) " >&6 8888else 8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8890/* end confdefs.h. */ 8891int i; 8892int 8893main () 8894{ 8895 8896 ; 8897 return 0; 8898} 8899_ACEOF 8900if ac_fn_c_try_link "$LINENO"; then : 8901 eval $cacheid=yes 8902else 8903 eval $cacheid=no 8904fi 8905rm -f core conftest.err conftest.$ac_objext \ 8906 conftest$ac_exeext conftest.$ac_ext 8907fi 8908 8909 8910 CFLAGS="$xorg_testset_save_CFLAGS" 8911 8912 eval supported=\$$cacheid 8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8914$as_echo "$supported" >&6; } 8915 if test "$supported" = "yes" ; then 8916 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8917 found="yes" 8918 fi 8919 fi 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935xorg_testset_save_CFLAGS="$CFLAGS" 8936 8937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8940$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8941if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8942 $as_echo_n "(cached) " >&6 8943else 8944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8945/* end confdefs.h. */ 8946int i; 8947_ACEOF 8948if ac_fn_c_try_compile "$LINENO"; then : 8949 xorg_cv_cc_flag_unknown_warning_option=yes 8950else 8951 xorg_cv_cc_flag_unknown_warning_option=no 8952fi 8953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8954fi 8955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8956$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8958 CFLAGS="$xorg_testset_save_CFLAGS" 8959fi 8960 8961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8964 fi 8965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8967$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8968if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8969 $as_echo_n "(cached) " >&6 8970else 8971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8972/* end confdefs.h. */ 8973int i; 8974_ACEOF 8975if ac_fn_c_try_compile "$LINENO"; then : 8976 xorg_cv_cc_flag_unused_command_line_argument=yes 8977else 8978 xorg_cv_cc_flag_unused_command_line_argument=no 8979fi 8980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8981fi 8982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8983$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8985 CFLAGS="$xorg_testset_save_CFLAGS" 8986fi 8987 8988found="no" 8989 8990 if test $found = "no" ; then 8991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8993 fi 8994 8995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8997 fi 8998 8999 CFLAGS="$CFLAGS -Wmissing-braces" 9000 9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9002$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9003 cacheid=xorg_cv_cc_flag__Wmissing_braces 9004 if eval \${$cacheid+:} false; then : 9005 $as_echo_n "(cached) " >&6 9006else 9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9008/* end confdefs.h. */ 9009int i; 9010int 9011main () 9012{ 9013 9014 ; 9015 return 0; 9016} 9017_ACEOF 9018if ac_fn_c_try_link "$LINENO"; then : 9019 eval $cacheid=yes 9020else 9021 eval $cacheid=no 9022fi 9023rm -f core conftest.err conftest.$ac_objext \ 9024 conftest$ac_exeext conftest.$ac_ext 9025fi 9026 9027 9028 CFLAGS="$xorg_testset_save_CFLAGS" 9029 9030 eval supported=\$$cacheid 9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9032$as_echo "$supported" >&6; } 9033 if test "$supported" = "yes" ; then 9034 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9035 found="yes" 9036 fi 9037 fi 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053xorg_testset_save_CFLAGS="$CFLAGS" 9054 9055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9058$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9059if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9060 $as_echo_n "(cached) " >&6 9061else 9062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9063/* end confdefs.h. */ 9064int i; 9065_ACEOF 9066if ac_fn_c_try_compile "$LINENO"; then : 9067 xorg_cv_cc_flag_unknown_warning_option=yes 9068else 9069 xorg_cv_cc_flag_unknown_warning_option=no 9070fi 9071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9072fi 9073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9074$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9076 CFLAGS="$xorg_testset_save_CFLAGS" 9077fi 9078 9079if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9082 fi 9083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9085$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9086if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9087 $as_echo_n "(cached) " >&6 9088else 9089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9090/* end confdefs.h. */ 9091int i; 9092_ACEOF 9093if ac_fn_c_try_compile "$LINENO"; then : 9094 xorg_cv_cc_flag_unused_command_line_argument=yes 9095else 9096 xorg_cv_cc_flag_unused_command_line_argument=no 9097fi 9098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9099fi 9100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9101$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9103 CFLAGS="$xorg_testset_save_CFLAGS" 9104fi 9105 9106found="no" 9107 9108 if test $found = "no" ; then 9109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9111 fi 9112 9113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9115 fi 9116 9117 CFLAGS="$CFLAGS -Wsequence-point" 9118 9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9120$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9121 cacheid=xorg_cv_cc_flag__Wsequence_point 9122 if eval \${$cacheid+:} false; then : 9123 $as_echo_n "(cached) " >&6 9124else 9125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9126/* end confdefs.h. */ 9127int i; 9128int 9129main () 9130{ 9131 9132 ; 9133 return 0; 9134} 9135_ACEOF 9136if ac_fn_c_try_link "$LINENO"; then : 9137 eval $cacheid=yes 9138else 9139 eval $cacheid=no 9140fi 9141rm -f core conftest.err conftest.$ac_objext \ 9142 conftest$ac_exeext conftest.$ac_ext 9143fi 9144 9145 9146 CFLAGS="$xorg_testset_save_CFLAGS" 9147 9148 eval supported=\$$cacheid 9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9150$as_echo "$supported" >&6; } 9151 if test "$supported" = "yes" ; then 9152 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9153 found="yes" 9154 fi 9155 fi 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171xorg_testset_save_CFLAGS="$CFLAGS" 9172 9173if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9176$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9177if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9178 $as_echo_n "(cached) " >&6 9179else 9180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9181/* end confdefs.h. */ 9182int i; 9183_ACEOF 9184if ac_fn_c_try_compile "$LINENO"; then : 9185 xorg_cv_cc_flag_unknown_warning_option=yes 9186else 9187 xorg_cv_cc_flag_unknown_warning_option=no 9188fi 9189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9190fi 9191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9192$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9194 CFLAGS="$xorg_testset_save_CFLAGS" 9195fi 9196 9197if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9200 fi 9201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9203$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9204if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9205 $as_echo_n "(cached) " >&6 9206else 9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9208/* end confdefs.h. */ 9209int i; 9210_ACEOF 9211if ac_fn_c_try_compile "$LINENO"; then : 9212 xorg_cv_cc_flag_unused_command_line_argument=yes 9213else 9214 xorg_cv_cc_flag_unused_command_line_argument=no 9215fi 9216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9217fi 9218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9219$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9221 CFLAGS="$xorg_testset_save_CFLAGS" 9222fi 9223 9224found="no" 9225 9226 if test $found = "no" ; then 9227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9229 fi 9230 9231 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9233 fi 9234 9235 CFLAGS="$CFLAGS -Wreturn-type" 9236 9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9238$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9239 cacheid=xorg_cv_cc_flag__Wreturn_type 9240 if eval \${$cacheid+:} false; then : 9241 $as_echo_n "(cached) " >&6 9242else 9243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9244/* end confdefs.h. */ 9245int i; 9246int 9247main () 9248{ 9249 9250 ; 9251 return 0; 9252} 9253_ACEOF 9254if ac_fn_c_try_link "$LINENO"; then : 9255 eval $cacheid=yes 9256else 9257 eval $cacheid=no 9258fi 9259rm -f core conftest.err conftest.$ac_objext \ 9260 conftest$ac_exeext conftest.$ac_ext 9261fi 9262 9263 9264 CFLAGS="$xorg_testset_save_CFLAGS" 9265 9266 eval supported=\$$cacheid 9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9268$as_echo "$supported" >&6; } 9269 if test "$supported" = "yes" ; then 9270 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9271 found="yes" 9272 fi 9273 fi 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289xorg_testset_save_CFLAGS="$CFLAGS" 9290 9291if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9294$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9295if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9296 $as_echo_n "(cached) " >&6 9297else 9298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9299/* end confdefs.h. */ 9300int i; 9301_ACEOF 9302if ac_fn_c_try_compile "$LINENO"; then : 9303 xorg_cv_cc_flag_unknown_warning_option=yes 9304else 9305 xorg_cv_cc_flag_unknown_warning_option=no 9306fi 9307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9308fi 9309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9310$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9311 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9312 CFLAGS="$xorg_testset_save_CFLAGS" 9313fi 9314 9315if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9318 fi 9319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9321$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9322if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9323 $as_echo_n "(cached) " >&6 9324else 9325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9326/* end confdefs.h. */ 9327int i; 9328_ACEOF 9329if ac_fn_c_try_compile "$LINENO"; then : 9330 xorg_cv_cc_flag_unused_command_line_argument=yes 9331else 9332 xorg_cv_cc_flag_unused_command_line_argument=no 9333fi 9334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9335fi 9336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9337$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9338 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9339 CFLAGS="$xorg_testset_save_CFLAGS" 9340fi 9341 9342found="no" 9343 9344 if test $found = "no" ; then 9345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9347 fi 9348 9349 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9351 fi 9352 9353 CFLAGS="$CFLAGS -Wtrigraphs" 9354 9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9356$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9357 cacheid=xorg_cv_cc_flag__Wtrigraphs 9358 if eval \${$cacheid+:} false; then : 9359 $as_echo_n "(cached) " >&6 9360else 9361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9362/* end confdefs.h. */ 9363int i; 9364int 9365main () 9366{ 9367 9368 ; 9369 return 0; 9370} 9371_ACEOF 9372if ac_fn_c_try_link "$LINENO"; then : 9373 eval $cacheid=yes 9374else 9375 eval $cacheid=no 9376fi 9377rm -f core conftest.err conftest.$ac_objext \ 9378 conftest$ac_exeext conftest.$ac_ext 9379fi 9380 9381 9382 CFLAGS="$xorg_testset_save_CFLAGS" 9383 9384 eval supported=\$$cacheid 9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9386$as_echo "$supported" >&6; } 9387 if test "$supported" = "yes" ; then 9388 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9389 found="yes" 9390 fi 9391 fi 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407xorg_testset_save_CFLAGS="$CFLAGS" 9408 9409if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9412$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9413if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9414 $as_echo_n "(cached) " >&6 9415else 9416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9417/* end confdefs.h. */ 9418int i; 9419_ACEOF 9420if ac_fn_c_try_compile "$LINENO"; then : 9421 xorg_cv_cc_flag_unknown_warning_option=yes 9422else 9423 xorg_cv_cc_flag_unknown_warning_option=no 9424fi 9425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9426fi 9427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9428$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9429 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9430 CFLAGS="$xorg_testset_save_CFLAGS" 9431fi 9432 9433if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9436 fi 9437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9439$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9440if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9441 $as_echo_n "(cached) " >&6 9442else 9443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9444/* end confdefs.h. */ 9445int i; 9446_ACEOF 9447if ac_fn_c_try_compile "$LINENO"; then : 9448 xorg_cv_cc_flag_unused_command_line_argument=yes 9449else 9450 xorg_cv_cc_flag_unused_command_line_argument=no 9451fi 9452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9453fi 9454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9455$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9456 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9457 CFLAGS="$xorg_testset_save_CFLAGS" 9458fi 9459 9460found="no" 9461 9462 if test $found = "no" ; then 9463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9465 fi 9466 9467 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9469 fi 9470 9471 CFLAGS="$CFLAGS -Warray-bounds" 9472 9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9474$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9475 cacheid=xorg_cv_cc_flag__Warray_bounds 9476 if eval \${$cacheid+:} false; then : 9477 $as_echo_n "(cached) " >&6 9478else 9479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9480/* end confdefs.h. */ 9481int i; 9482int 9483main () 9484{ 9485 9486 ; 9487 return 0; 9488} 9489_ACEOF 9490if ac_fn_c_try_link "$LINENO"; then : 9491 eval $cacheid=yes 9492else 9493 eval $cacheid=no 9494fi 9495rm -f core conftest.err conftest.$ac_objext \ 9496 conftest$ac_exeext conftest.$ac_ext 9497fi 9498 9499 9500 CFLAGS="$xorg_testset_save_CFLAGS" 9501 9502 eval supported=\$$cacheid 9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9504$as_echo "$supported" >&6; } 9505 if test "$supported" = "yes" ; then 9506 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9507 found="yes" 9508 fi 9509 fi 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525xorg_testset_save_CFLAGS="$CFLAGS" 9526 9527if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9530$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9531if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9532 $as_echo_n "(cached) " >&6 9533else 9534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9535/* end confdefs.h. */ 9536int i; 9537_ACEOF 9538if ac_fn_c_try_compile "$LINENO"; then : 9539 xorg_cv_cc_flag_unknown_warning_option=yes 9540else 9541 xorg_cv_cc_flag_unknown_warning_option=no 9542fi 9543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9544fi 9545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9546$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9547 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9548 CFLAGS="$xorg_testset_save_CFLAGS" 9549fi 9550 9551if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9554 fi 9555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9557$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9558if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9559 $as_echo_n "(cached) " >&6 9560else 9561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9562/* end confdefs.h. */ 9563int i; 9564_ACEOF 9565if ac_fn_c_try_compile "$LINENO"; then : 9566 xorg_cv_cc_flag_unused_command_line_argument=yes 9567else 9568 xorg_cv_cc_flag_unused_command_line_argument=no 9569fi 9570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9571fi 9572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9573$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9575 CFLAGS="$xorg_testset_save_CFLAGS" 9576fi 9577 9578found="no" 9579 9580 if test $found = "no" ; then 9581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9583 fi 9584 9585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9587 fi 9588 9589 CFLAGS="$CFLAGS -Wwrite-strings" 9590 9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9592$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9593 cacheid=xorg_cv_cc_flag__Wwrite_strings 9594 if eval \${$cacheid+:} false; then : 9595 $as_echo_n "(cached) " >&6 9596else 9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9598/* end confdefs.h. */ 9599int i; 9600int 9601main () 9602{ 9603 9604 ; 9605 return 0; 9606} 9607_ACEOF 9608if ac_fn_c_try_link "$LINENO"; then : 9609 eval $cacheid=yes 9610else 9611 eval $cacheid=no 9612fi 9613rm -f core conftest.err conftest.$ac_objext \ 9614 conftest$ac_exeext conftest.$ac_ext 9615fi 9616 9617 9618 CFLAGS="$xorg_testset_save_CFLAGS" 9619 9620 eval supported=\$$cacheid 9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9622$as_echo "$supported" >&6; } 9623 if test "$supported" = "yes" ; then 9624 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9625 found="yes" 9626 fi 9627 fi 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643xorg_testset_save_CFLAGS="$CFLAGS" 9644 9645if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9648$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9649if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9650 $as_echo_n "(cached) " >&6 9651else 9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9653/* end confdefs.h. */ 9654int i; 9655_ACEOF 9656if ac_fn_c_try_compile "$LINENO"; then : 9657 xorg_cv_cc_flag_unknown_warning_option=yes 9658else 9659 xorg_cv_cc_flag_unknown_warning_option=no 9660fi 9661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9662fi 9663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9664$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9665 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9666 CFLAGS="$xorg_testset_save_CFLAGS" 9667fi 9668 9669if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9672 fi 9673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9675$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9676if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9677 $as_echo_n "(cached) " >&6 9678else 9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9680/* end confdefs.h. */ 9681int i; 9682_ACEOF 9683if ac_fn_c_try_compile "$LINENO"; then : 9684 xorg_cv_cc_flag_unused_command_line_argument=yes 9685else 9686 xorg_cv_cc_flag_unused_command_line_argument=no 9687fi 9688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9689fi 9690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9691$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9692 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9693 CFLAGS="$xorg_testset_save_CFLAGS" 9694fi 9695 9696found="no" 9697 9698 if test $found = "no" ; then 9699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9701 fi 9702 9703 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9705 fi 9706 9707 CFLAGS="$CFLAGS -Waddress" 9708 9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9710$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9711 cacheid=xorg_cv_cc_flag__Waddress 9712 if eval \${$cacheid+:} false; then : 9713 $as_echo_n "(cached) " >&6 9714else 9715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9716/* end confdefs.h. */ 9717int i; 9718int 9719main () 9720{ 9721 9722 ; 9723 return 0; 9724} 9725_ACEOF 9726if ac_fn_c_try_link "$LINENO"; then : 9727 eval $cacheid=yes 9728else 9729 eval $cacheid=no 9730fi 9731rm -f core conftest.err conftest.$ac_objext \ 9732 conftest$ac_exeext conftest.$ac_ext 9733fi 9734 9735 9736 CFLAGS="$xorg_testset_save_CFLAGS" 9737 9738 eval supported=\$$cacheid 9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9740$as_echo "$supported" >&6; } 9741 if test "$supported" = "yes" ; then 9742 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9743 found="yes" 9744 fi 9745 fi 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761xorg_testset_save_CFLAGS="$CFLAGS" 9762 9763if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9766$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9767if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9768 $as_echo_n "(cached) " >&6 9769else 9770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9771/* end confdefs.h. */ 9772int i; 9773_ACEOF 9774if ac_fn_c_try_compile "$LINENO"; then : 9775 xorg_cv_cc_flag_unknown_warning_option=yes 9776else 9777 xorg_cv_cc_flag_unknown_warning_option=no 9778fi 9779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9780fi 9781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9782$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9783 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9784 CFLAGS="$xorg_testset_save_CFLAGS" 9785fi 9786 9787if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9790 fi 9791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9793$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9794if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9795 $as_echo_n "(cached) " >&6 9796else 9797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9798/* end confdefs.h. */ 9799int i; 9800_ACEOF 9801if ac_fn_c_try_compile "$LINENO"; then : 9802 xorg_cv_cc_flag_unused_command_line_argument=yes 9803else 9804 xorg_cv_cc_flag_unused_command_line_argument=no 9805fi 9806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9807fi 9808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9809$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9811 CFLAGS="$xorg_testset_save_CFLAGS" 9812fi 9813 9814found="no" 9815 9816 if test $found = "no" ; then 9817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9819 fi 9820 9821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9823 fi 9824 9825 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9826 9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9828$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9829 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9830 if eval \${$cacheid+:} false; then : 9831 $as_echo_n "(cached) " >&6 9832else 9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9834/* end confdefs.h. */ 9835int i; 9836int 9837main () 9838{ 9839 9840 ; 9841 return 0; 9842} 9843_ACEOF 9844if ac_fn_c_try_link "$LINENO"; then : 9845 eval $cacheid=yes 9846else 9847 eval $cacheid=no 9848fi 9849rm -f core conftest.err conftest.$ac_objext \ 9850 conftest$ac_exeext conftest.$ac_ext 9851fi 9852 9853 9854 CFLAGS="$xorg_testset_save_CFLAGS" 9855 9856 eval supported=\$$cacheid 9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9858$as_echo "$supported" >&6; } 9859 if test "$supported" = "yes" ; then 9860 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9861 found="yes" 9862 fi 9863 fi 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879xorg_testset_save_CFLAGS="$CFLAGS" 9880 9881if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9884$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9885if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9886 $as_echo_n "(cached) " >&6 9887else 9888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9889/* end confdefs.h. */ 9890int i; 9891_ACEOF 9892if ac_fn_c_try_compile "$LINENO"; then : 9893 xorg_cv_cc_flag_unknown_warning_option=yes 9894else 9895 xorg_cv_cc_flag_unknown_warning_option=no 9896fi 9897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9898fi 9899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9900$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9901 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9902 CFLAGS="$xorg_testset_save_CFLAGS" 9903fi 9904 9905if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9908 fi 9909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9911$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9912if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9913 $as_echo_n "(cached) " >&6 9914else 9915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9916/* end confdefs.h. */ 9917int i; 9918_ACEOF 9919if ac_fn_c_try_compile "$LINENO"; then : 9920 xorg_cv_cc_flag_unused_command_line_argument=yes 9921else 9922 xorg_cv_cc_flag_unused_command_line_argument=no 9923fi 9924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9925fi 9926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9927$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9929 CFLAGS="$xorg_testset_save_CFLAGS" 9930fi 9931 9932found="no" 9933 9934 if test $found = "no" ; then 9935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9937 fi 9938 9939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9941 fi 9942 9943 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9944 9945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9946$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9947 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9948 if eval \${$cacheid+:} false; then : 9949 $as_echo_n "(cached) " >&6 9950else 9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9952/* end confdefs.h. */ 9953int i; 9954int 9955main () 9956{ 9957 9958 ; 9959 return 0; 9960} 9961_ACEOF 9962if ac_fn_c_try_link "$LINENO"; then : 9963 eval $cacheid=yes 9964else 9965 eval $cacheid=no 9966fi 9967rm -f core conftest.err conftest.$ac_objext \ 9968 conftest$ac_exeext conftest.$ac_ext 9969fi 9970 9971 9972 CFLAGS="$xorg_testset_save_CFLAGS" 9973 9974 eval supported=\$$cacheid 9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9976$as_echo "$supported" >&6; } 9977 if test "$supported" = "yes" ; then 9978 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9979 found="yes" 9980 fi 9981 fi 9982 9983 9984fi 9985 9986 9987 9988 9989 9990 9991 9992 CWARNFLAGS="$BASE_CFLAGS" 9993 if test "x$GCC" = xyes ; then 9994 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9995 fi 9996 9997 9998 9999 10000 10001 10002 10003 10004# Check whether --enable-strict-compilation was given. 10005if test "${enable_strict_compilation+set}" = set; then : 10006 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10007else 10008 STRICT_COMPILE=no 10009fi 10010 10011 10012 10013 10014 10015 10016STRICT_CFLAGS="" 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030xorg_testset_save_CFLAGS="$CFLAGS" 10031 10032if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10035$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10036if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10037 $as_echo_n "(cached) " >&6 10038else 10039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10040/* end confdefs.h. */ 10041int i; 10042_ACEOF 10043if ac_fn_c_try_compile "$LINENO"; then : 10044 xorg_cv_cc_flag_unknown_warning_option=yes 10045else 10046 xorg_cv_cc_flag_unknown_warning_option=no 10047fi 10048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10049fi 10050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10051$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10052 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10053 CFLAGS="$xorg_testset_save_CFLAGS" 10054fi 10055 10056if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10059 fi 10060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10062$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10063if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10064 $as_echo_n "(cached) " >&6 10065else 10066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10067/* end confdefs.h. */ 10068int i; 10069_ACEOF 10070if ac_fn_c_try_compile "$LINENO"; then : 10071 xorg_cv_cc_flag_unused_command_line_argument=yes 10072else 10073 xorg_cv_cc_flag_unused_command_line_argument=no 10074fi 10075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10076fi 10077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10078$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10079 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10080 CFLAGS="$xorg_testset_save_CFLAGS" 10081fi 10082 10083found="no" 10084 10085 if test $found = "no" ; then 10086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10088 fi 10089 10090 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10092 fi 10093 10094 CFLAGS="$CFLAGS -pedantic" 10095 10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10097$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10098 cacheid=xorg_cv_cc_flag__pedantic 10099 if eval \${$cacheid+:} false; then : 10100 $as_echo_n "(cached) " >&6 10101else 10102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10103/* end confdefs.h. */ 10104int i; 10105int 10106main () 10107{ 10108 10109 ; 10110 return 0; 10111} 10112_ACEOF 10113if ac_fn_c_try_link "$LINENO"; then : 10114 eval $cacheid=yes 10115else 10116 eval $cacheid=no 10117fi 10118rm -f core conftest.err conftest.$ac_objext \ 10119 conftest$ac_exeext conftest.$ac_ext 10120fi 10121 10122 10123 CFLAGS="$xorg_testset_save_CFLAGS" 10124 10125 eval supported=\$$cacheid 10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10127$as_echo "$supported" >&6; } 10128 if test "$supported" = "yes" ; then 10129 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10130 found="yes" 10131 fi 10132 fi 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148xorg_testset_save_CFLAGS="$CFLAGS" 10149 10150if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10153$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10154if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10155 $as_echo_n "(cached) " >&6 10156else 10157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10158/* end confdefs.h. */ 10159int i; 10160_ACEOF 10161if ac_fn_c_try_compile "$LINENO"; then : 10162 xorg_cv_cc_flag_unknown_warning_option=yes 10163else 10164 xorg_cv_cc_flag_unknown_warning_option=no 10165fi 10166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10167fi 10168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10169$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10171 CFLAGS="$xorg_testset_save_CFLAGS" 10172fi 10173 10174if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10177 fi 10178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10180$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10181if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10182 $as_echo_n "(cached) " >&6 10183else 10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10185/* end confdefs.h. */ 10186int i; 10187_ACEOF 10188if ac_fn_c_try_compile "$LINENO"; then : 10189 xorg_cv_cc_flag_unused_command_line_argument=yes 10190else 10191 xorg_cv_cc_flag_unused_command_line_argument=no 10192fi 10193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10194fi 10195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10196$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10198 CFLAGS="$xorg_testset_save_CFLAGS" 10199fi 10200 10201found="no" 10202 10203 if test $found = "no" ; then 10204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10206 fi 10207 10208 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10210 fi 10211 10212 CFLAGS="$CFLAGS -Werror" 10213 10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10215$as_echo_n "checking if $CC supports -Werror... " >&6; } 10216 cacheid=xorg_cv_cc_flag__Werror 10217 if eval \${$cacheid+:} false; then : 10218 $as_echo_n "(cached) " >&6 10219else 10220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10221/* end confdefs.h. */ 10222int i; 10223int 10224main () 10225{ 10226 10227 ; 10228 return 0; 10229} 10230_ACEOF 10231if ac_fn_c_try_link "$LINENO"; then : 10232 eval $cacheid=yes 10233else 10234 eval $cacheid=no 10235fi 10236rm -f core conftest.err conftest.$ac_objext \ 10237 conftest$ac_exeext conftest.$ac_ext 10238fi 10239 10240 10241 CFLAGS="$xorg_testset_save_CFLAGS" 10242 10243 eval supported=\$$cacheid 10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10245$as_echo "$supported" >&6; } 10246 if test "$supported" = "yes" ; then 10247 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10248 found="yes" 10249 fi 10250 fi 10251 10252 if test $found = "no" ; then 10253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10255 fi 10256 10257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10259 fi 10260 10261 CFLAGS="$CFLAGS -errwarn" 10262 10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10264$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10265 cacheid=xorg_cv_cc_flag__errwarn 10266 if eval \${$cacheid+:} false; then : 10267 $as_echo_n "(cached) " >&6 10268else 10269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10270/* end confdefs.h. */ 10271int i; 10272int 10273main () 10274{ 10275 10276 ; 10277 return 0; 10278} 10279_ACEOF 10280if ac_fn_c_try_link "$LINENO"; then : 10281 eval $cacheid=yes 10282else 10283 eval $cacheid=no 10284fi 10285rm -f core conftest.err conftest.$ac_objext \ 10286 conftest$ac_exeext conftest.$ac_ext 10287fi 10288 10289 10290 CFLAGS="$xorg_testset_save_CFLAGS" 10291 10292 eval supported=\$$cacheid 10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10294$as_echo "$supported" >&6; } 10295 if test "$supported" = "yes" ; then 10296 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10297 found="yes" 10298 fi 10299 fi 10300 10301 10302 10303# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10304# activate it with -Werror, so we add it here explicitly. 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318xorg_testset_save_CFLAGS="$CFLAGS" 10319 10320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10323$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10324if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10325 $as_echo_n "(cached) " >&6 10326else 10327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10328/* end confdefs.h. */ 10329int i; 10330_ACEOF 10331if ac_fn_c_try_compile "$LINENO"; then : 10332 xorg_cv_cc_flag_unknown_warning_option=yes 10333else 10334 xorg_cv_cc_flag_unknown_warning_option=no 10335fi 10336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10337fi 10338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10339$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10341 CFLAGS="$xorg_testset_save_CFLAGS" 10342fi 10343 10344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10347 fi 10348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10350$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10351if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10352 $as_echo_n "(cached) " >&6 10353else 10354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10355/* end confdefs.h. */ 10356int i; 10357_ACEOF 10358if ac_fn_c_try_compile "$LINENO"; then : 10359 xorg_cv_cc_flag_unused_command_line_argument=yes 10360else 10361 xorg_cv_cc_flag_unused_command_line_argument=no 10362fi 10363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10364fi 10365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10366$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10368 CFLAGS="$xorg_testset_save_CFLAGS" 10369fi 10370 10371found="no" 10372 10373 if test $found = "no" ; then 10374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10376 fi 10377 10378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10380 fi 10381 10382 CFLAGS="$CFLAGS -Werror=attributes" 10383 10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10385$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10386 cacheid=xorg_cv_cc_flag__Werror_attributes 10387 if eval \${$cacheid+:} false; then : 10388 $as_echo_n "(cached) " >&6 10389else 10390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10391/* end confdefs.h. */ 10392int i; 10393int 10394main () 10395{ 10396 10397 ; 10398 return 0; 10399} 10400_ACEOF 10401if ac_fn_c_try_link "$LINENO"; then : 10402 eval $cacheid=yes 10403else 10404 eval $cacheid=no 10405fi 10406rm -f core conftest.err conftest.$ac_objext \ 10407 conftest$ac_exeext conftest.$ac_ext 10408fi 10409 10410 10411 CFLAGS="$xorg_testset_save_CFLAGS" 10412 10413 eval supported=\$$cacheid 10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10415$as_echo "$supported" >&6; } 10416 if test "$supported" = "yes" ; then 10417 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10418 found="yes" 10419 fi 10420 fi 10421 10422 10423 10424if test "x$STRICT_COMPILE" = "xyes"; then 10425 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10426 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10427fi 10428 10429 10430 10431 10432 10433 10434cat >>confdefs.h <<_ACEOF 10435#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10436_ACEOF 10437 10438 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10439 if test "x$PVM" = "x"; then 10440 PVM="0" 10441 fi 10442 10443cat >>confdefs.h <<_ACEOF 10444#define PACKAGE_VERSION_MINOR $PVM 10445_ACEOF 10446 10447 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10448 if test "x$PVP" = "x"; then 10449 PVP="0" 10450 fi 10451 10452cat >>confdefs.h <<_ACEOF 10453#define PACKAGE_VERSION_PATCHLEVEL $PVP 10454_ACEOF 10455 10456 10457 10458CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10459mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10460|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10461echo 'git directory not found: installing possibly empty changelog.' >&2)" 10462 10463 10464 10465 10466macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10467INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10468mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10469|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10470echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10471 10472 10473 10474 10475 10476 10477if test x$APP_MAN_SUFFIX = x ; then 10478 APP_MAN_SUFFIX=1 10479fi 10480if test x$APP_MAN_DIR = x ; then 10481 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10482fi 10483 10484if test x$LIB_MAN_SUFFIX = x ; then 10485 LIB_MAN_SUFFIX=3 10486fi 10487if test x$LIB_MAN_DIR = x ; then 10488 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10489fi 10490 10491if test x$FILE_MAN_SUFFIX = x ; then 10492 case $host_os in 10493 solaris*) FILE_MAN_SUFFIX=4 ;; 10494 *) FILE_MAN_SUFFIX=5 ;; 10495 esac 10496fi 10497if test x$FILE_MAN_DIR = x ; then 10498 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10499fi 10500 10501if test x$MISC_MAN_SUFFIX = x ; then 10502 case $host_os in 10503 solaris*) MISC_MAN_SUFFIX=5 ;; 10504 *) MISC_MAN_SUFFIX=7 ;; 10505 esac 10506fi 10507if test x$MISC_MAN_DIR = x ; then 10508 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10509fi 10510 10511if test x$DRIVER_MAN_SUFFIX = x ; then 10512 case $host_os in 10513 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10514 *) DRIVER_MAN_SUFFIX=4 ;; 10515 esac 10516fi 10517if test x$DRIVER_MAN_DIR = x ; then 10518 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10519fi 10520 10521if test x$ADMIN_MAN_SUFFIX = x ; then 10522 case $host_os in 10523 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10524 *) ADMIN_MAN_SUFFIX=8 ;; 10525 esac 10526fi 10527if test x$ADMIN_MAN_DIR = x ; then 10528 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10529fi 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545XORG_MAN_PAGE="X Version 11" 10546 10547MAN_SUBSTS="\ 10548 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10549 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10550 -e 's|__xservername__|Xorg|g' \ 10551 -e 's|__xconfigfile__|xorg.conf|g' \ 10552 -e 's|__projectroot__|\$(prefix)|g' \ 10553 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10554 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10555 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10556 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10557 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10558 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10559 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10560 10561 10562 10563# Check whether --enable-silent-rules was given. 10564if test "${enable_silent_rules+set}" = set; then : 10565 enableval=$enable_silent_rules; 10566fi 10567 10568case $enable_silent_rules in # ((( 10569 yes) AM_DEFAULT_VERBOSITY=0;; 10570 no) AM_DEFAULT_VERBOSITY=1;; 10571 *) AM_DEFAULT_VERBOSITY=0;; 10572esac 10573am_make=${MAKE-make} 10574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10575$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10576if ${am_cv_make_support_nested_variables+:} false; then : 10577 $as_echo_n "(cached) " >&6 10578else 10579 if $as_echo 'TRUE=$(BAR$(V)) 10580BAR0=false 10581BAR1=true 10582V=1 10583am__doit: 10584 @$(TRUE) 10585.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10586 am_cv_make_support_nested_variables=yes 10587else 10588 am_cv_make_support_nested_variables=no 10589fi 10590fi 10591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10592$as_echo "$am_cv_make_support_nested_variables" >&6; } 10593if test $am_cv_make_support_nested_variables = yes; then 10594 AM_V='$(V)' 10595 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10596else 10597 AM_V=$AM_DEFAULT_VERBOSITY 10598 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10599fi 10600AM_BACKSLASH='\' 10601 10602 10603 10604# Checks for pkg-config packages 10605 10606pkg_failed=no 10607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMH" >&5 10608$as_echo_n "checking for XMH... " >&6; } 10609 10610if test -n "$XMH_CFLAGS"; then 10611 pkg_cv_XMH_CFLAGS="$XMH_CFLAGS" 10612 elif test -n "$PKG_CONFIG"; then 10613 if test -n "$PKG_CONFIG" && \ 10614 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xbitmaps >= 1.1.0\""; } >&5 10615 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xbitmaps >= 1.1.0") 2>&5 10616 ac_status=$? 10617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10618 test $ac_status = 0; }; then 10619 pkg_cv_XMH_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11 xbitmaps >= 1.1.0" 2>/dev/null` 10620else 10621 pkg_failed=yes 10622fi 10623 else 10624 pkg_failed=untried 10625fi 10626if test -n "$XMH_LIBS"; then 10627 pkg_cv_XMH_LIBS="$XMH_LIBS" 10628 elif test -n "$PKG_CONFIG"; then 10629 if test -n "$PKG_CONFIG" && \ 10630 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xbitmaps >= 1.1.0\""; } >&5 10631 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xbitmaps >= 1.1.0") 2>&5 10632 ac_status=$? 10633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10634 test $ac_status = 0; }; then 10635 pkg_cv_XMH_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11 xbitmaps >= 1.1.0" 2>/dev/null` 10636else 10637 pkg_failed=yes 10638fi 10639 else 10640 pkg_failed=untried 10641fi 10642 10643 10644 10645if test $pkg_failed = yes; then 10646 10647if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10648 _pkg_short_errors_supported=yes 10649else 10650 _pkg_short_errors_supported=no 10651fi 10652 if test $_pkg_short_errors_supported = yes; then 10653 XMH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xmu xt x11 xbitmaps >= 1.1.0" 2>&1` 10654 else 10655 XMH_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xmu xt x11 xbitmaps >= 1.1.0" 2>&1` 10656 fi 10657 # Put the nasty error message in config.log where it belongs 10658 echo "$XMH_PKG_ERRORS" >&5 10659 10660 as_fn_error $? "Package requirements (xaw7 xmu xt x11 xbitmaps >= 1.1.0) were not met: 10661 10662$XMH_PKG_ERRORS 10663 10664Consider adjusting the PKG_CONFIG_PATH environment variable if you 10665installed software in a non-standard prefix. 10666 10667Alternatively, you may set the environment variables XMH_CFLAGS 10668and XMH_LIBS to avoid the need to call pkg-config. 10669See the pkg-config man page for more details. 10670" "$LINENO" 5 10671elif test $pkg_failed = untried; then 10672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10674as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10675is in your PATH or set the PKG_CONFIG environment variable to the full 10676path to pkg-config. 10677 10678Alternatively, you may set the environment variables XMH_CFLAGS 10679and XMH_LIBS to avoid the need to call pkg-config. 10680See the pkg-config man page for more details. 10681 10682To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10683See \`config.log' for more details" "$LINENO" 5; } 10684else 10685 XMH_CFLAGS=$pkg_cv_XMH_CFLAGS 10686 XMH_LIBS=$pkg_cv_XMH_LIBS 10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10688$as_echo "yes" >&6; } 10689 : 10690fi 10691 10692 10693pkg_failed=no 10694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 10695$as_echo_n "checking for APPDEFS... " >&6; } 10696 10697if test -n "$APPDEFS_CFLAGS"; then 10698 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 10699 elif test -n "$PKG_CONFIG"; then 10700 if test -n "$PKG_CONFIG" && \ 10701 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 10702 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 10703 ac_status=$? 10704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10705 test $ac_status = 0; }; then 10706 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 10707else 10708 pkg_failed=yes 10709fi 10710 else 10711 pkg_failed=untried 10712fi 10713if test -n "$APPDEFS_LIBS"; then 10714 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 10715 elif test -n "$PKG_CONFIG"; then 10716 if test -n "$PKG_CONFIG" && \ 10717 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 10718 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 10719 ac_status=$? 10720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10721 test $ac_status = 0; }; then 10722 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 10723else 10724 pkg_failed=yes 10725fi 10726 else 10727 pkg_failed=untried 10728fi 10729 10730 10731 10732if test $pkg_failed = yes; then 10733 10734if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10735 _pkg_short_errors_supported=yes 10736else 10737 _pkg_short_errors_supported=no 10738fi 10739 if test $_pkg_short_errors_supported = yes; then 10740 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1` 10741 else 10742 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1` 10743 fi 10744 # Put the nasty error message in config.log where it belongs 10745 echo "$APPDEFS_PKG_ERRORS" >&5 10746 10747 as_fn_error $? "Package requirements (xt) were not met: 10748 10749$APPDEFS_PKG_ERRORS 10750 10751Consider adjusting the PKG_CONFIG_PATH environment variable if you 10752installed software in a non-standard prefix. 10753 10754Alternatively, you may set the environment variables APPDEFS_CFLAGS 10755and APPDEFS_LIBS to avoid the need to call pkg-config. 10756See the pkg-config man page for more details. 10757" "$LINENO" 5 10758elif test $pkg_failed = untried; then 10759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10761as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10762is in your PATH or set the PKG_CONFIG environment variable to the full 10763path to pkg-config. 10764 10765Alternatively, you may set the environment variables APPDEFS_CFLAGS 10766and APPDEFS_LIBS to avoid the need to call pkg-config. 10767See the pkg-config man page for more details. 10768 10769To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10770See \`config.log' for more details" "$LINENO" 5; } 10771else 10772 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 10773 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10775$as_echo "yes" >&6; } 10776 : 10777fi 10778xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 10779 10780# Check whether --with-appdefaultdir was given. 10781if test "${with_appdefaultdir+set}" = set; then : 10782 withval=$with_appdefaultdir; appdefaultdir="$withval" 10783else 10784 appdefaultdir="${xt_appdefaultdir}" 10785fi 10786 10787 10788 10789ac_config_files="$ac_config_files Makefile man/Makefile" 10790 10791cat >confcache <<\_ACEOF 10792# This file is a shell script that caches the results of configure 10793# tests run on this system so they can be shared between configure 10794# scripts and configure runs, see configure's option --config-cache. 10795# It is not useful on other systems. If it contains results you don't 10796# want to keep, you may remove or edit it. 10797# 10798# config.status only pays attention to the cache file if you give it 10799# the --recheck option to rerun configure. 10800# 10801# `ac_cv_env_foo' variables (set or unset) will be overridden when 10802# loading this file, other *unset* `ac_cv_foo' will be assigned the 10803# following values. 10804 10805_ACEOF 10806 10807# The following way of writing the cache mishandles newlines in values, 10808# but we know of no workaround that is simple, portable, and efficient. 10809# So, we kill variables containing newlines. 10810# Ultrix sh set writes to stderr and can't be redirected directly, 10811# and sets the high bit in the cache file unless we assign to the vars. 10812( 10813 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10814 eval ac_val=\$$ac_var 10815 case $ac_val in #( 10816 *${as_nl}*) 10817 case $ac_var in #( 10818 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10819$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10820 esac 10821 case $ac_var in #( 10822 _ | IFS | as_nl) ;; #( 10823 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10824 *) { eval $ac_var=; unset $ac_var;} ;; 10825 esac ;; 10826 esac 10827 done 10828 10829 (set) 2>&1 | 10830 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10831 *${as_nl}ac_space=\ *) 10832 # `set' does not quote correctly, so add quotes: double-quote 10833 # substitution turns \\\\ into \\, and sed turns \\ into \. 10834 sed -n \ 10835 "s/'/'\\\\''/g; 10836 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10837 ;; #( 10838 *) 10839 # `set' quotes correctly as required by POSIX, so do not add quotes. 10840 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10841 ;; 10842 esac | 10843 sort 10844) | 10845 sed ' 10846 /^ac_cv_env_/b end 10847 t clear 10848 :clear 10849 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10850 t end 10851 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10852 :end' >>confcache 10853if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10854 if test -w "$cache_file"; then 10855 if test "x$cache_file" != "x/dev/null"; then 10856 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10857$as_echo "$as_me: updating cache $cache_file" >&6;} 10858 if test ! -f "$cache_file" || test -h "$cache_file"; then 10859 cat confcache >"$cache_file" 10860 else 10861 case $cache_file in #( 10862 */* | ?:*) 10863 mv -f confcache "$cache_file"$$ && 10864 mv -f "$cache_file"$$ "$cache_file" ;; #( 10865 *) 10866 mv -f confcache "$cache_file" ;; 10867 esac 10868 fi 10869 fi 10870 else 10871 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10872$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10873 fi 10874fi 10875rm -f confcache 10876 10877test "x$prefix" = xNONE && prefix=$ac_default_prefix 10878# Let make expand exec_prefix. 10879test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10880 10881DEFS=-DHAVE_CONFIG_H 10882 10883ac_libobjs= 10884ac_ltlibobjs= 10885U= 10886for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10887 # 1. Remove the extension, and $U if already installed. 10888 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10889 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10890 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10891 # will be set to the directory where LIBOBJS objects are built. 10892 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10893 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10894done 10895LIBOBJS=$ac_libobjs 10896 10897LTLIBOBJS=$ac_ltlibobjs 10898 10899 10900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10901$as_echo_n "checking that generated files are newer than configure... " >&6; } 10902 if test -n "$am_sleep_pid"; then 10903 # Hide warnings about reused PIDs. 10904 wait $am_sleep_pid 2>/dev/null 10905 fi 10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10907$as_echo "done" >&6; } 10908 if test -n "$EXEEXT"; then 10909 am__EXEEXT_TRUE= 10910 am__EXEEXT_FALSE='#' 10911else 10912 am__EXEEXT_TRUE='#' 10913 am__EXEEXT_FALSE= 10914fi 10915 10916if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10917 as_fn_error $? "conditional \"AMDEP\" was never defined. 10918Usually this means the macro was only invoked conditionally." "$LINENO" 5 10919fi 10920if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10921 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10922Usually this means the macro was only invoked conditionally." "$LINENO" 5 10923fi 10924 10925: "${CONFIG_STATUS=./config.status}" 10926ac_write_fail=0 10927ac_clean_files_save=$ac_clean_files 10928ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10929{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10930$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10931as_write_fail=0 10932cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10933#! $SHELL 10934# Generated by $as_me. 10935# Run this file to recreate the current configuration. 10936# Compiler output produced by configure, useful for debugging 10937# configure, is in config.log if it exists. 10938 10939debug=false 10940ac_cs_recheck=false 10941ac_cs_silent=false 10942 10943SHELL=\${CONFIG_SHELL-$SHELL} 10944export SHELL 10945_ASEOF 10946cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10947## -------------------- ## 10948## M4sh Initialization. ## 10949## -------------------- ## 10950 10951# Be more Bourne compatible 10952DUALCASE=1; export DUALCASE # for MKS sh 10953if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10954 emulate sh 10955 NULLCMD=: 10956 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10957 # is contrary to our usage. Disable this feature. 10958 alias -g '${1+"$@"}'='"$@"' 10959 setopt NO_GLOB_SUBST 10960else 10961 case `(set -o) 2>/dev/null` in #( 10962 *posix*) : 10963 set -o posix ;; #( 10964 *) : 10965 ;; 10966esac 10967fi 10968 10969 10970as_nl=' 10971' 10972export as_nl 10973# Printing a long string crashes Solaris 7 /usr/bin/printf. 10974as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10975as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10976as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10977# Prefer a ksh shell builtin over an external printf program on Solaris, 10978# but without wasting forks for bash or zsh. 10979if test -z "$BASH_VERSION$ZSH_VERSION" \ 10980 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10981 as_echo='print -r --' 10982 as_echo_n='print -rn --' 10983elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10984 as_echo='printf %s\n' 10985 as_echo_n='printf %s' 10986else 10987 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10988 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10989 as_echo_n='/usr/ucb/echo -n' 10990 else 10991 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10992 as_echo_n_body='eval 10993 arg=$1; 10994 case $arg in #( 10995 *"$as_nl"*) 10996 expr "X$arg" : "X\\(.*\\)$as_nl"; 10997 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10998 esac; 10999 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11000 ' 11001 export as_echo_n_body 11002 as_echo_n='sh -c $as_echo_n_body as_echo' 11003 fi 11004 export as_echo_body 11005 as_echo='sh -c $as_echo_body as_echo' 11006fi 11007 11008# The user is always right. 11009if test "${PATH_SEPARATOR+set}" != set; then 11010 PATH_SEPARATOR=: 11011 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11012 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11013 PATH_SEPARATOR=';' 11014 } 11015fi 11016 11017 11018# IFS 11019# We need space, tab and new line, in precisely that order. Quoting is 11020# there to prevent editors from complaining about space-tab. 11021# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11022# splitting by setting IFS to empty value.) 11023IFS=" "" $as_nl" 11024 11025# Find who we are. Look in the path if we contain no directory separator. 11026as_myself= 11027case $0 in #(( 11028 *[\\/]* ) as_myself=$0 ;; 11029 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11030for as_dir in $PATH 11031do 11032 IFS=$as_save_IFS 11033 test -z "$as_dir" && as_dir=. 11034 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11035 done 11036IFS=$as_save_IFS 11037 11038 ;; 11039esac 11040# We did not find ourselves, most probably we were run as `sh COMMAND' 11041# in which case we are not to be found in the path. 11042if test "x$as_myself" = x; then 11043 as_myself=$0 11044fi 11045if test ! -f "$as_myself"; then 11046 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11047 exit 1 11048fi 11049 11050# Unset variables that we do not need and which cause bugs (e.g. in 11051# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11052# suppresses any "Segmentation fault" message there. '((' could 11053# trigger a bug in pdksh 5.2.14. 11054for as_var in BASH_ENV ENV MAIL MAILPATH 11055do eval test x\${$as_var+set} = xset \ 11056 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11057done 11058PS1='$ ' 11059PS2='> ' 11060PS4='+ ' 11061 11062# NLS nuisances. 11063LC_ALL=C 11064export LC_ALL 11065LANGUAGE=C 11066export LANGUAGE 11067 11068# CDPATH. 11069(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11070 11071 11072# as_fn_error STATUS ERROR [LINENO LOG_FD] 11073# ---------------------------------------- 11074# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11075# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11076# script with STATUS, using 1 if that was 0. 11077as_fn_error () 11078{ 11079 as_status=$1; test $as_status -eq 0 && as_status=1 11080 if test "$4"; then 11081 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11082 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11083 fi 11084 $as_echo "$as_me: error: $2" >&2 11085 as_fn_exit $as_status 11086} # as_fn_error 11087 11088 11089# as_fn_set_status STATUS 11090# ----------------------- 11091# Set $? to STATUS, without forking. 11092as_fn_set_status () 11093{ 11094 return $1 11095} # as_fn_set_status 11096 11097# as_fn_exit STATUS 11098# ----------------- 11099# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11100as_fn_exit () 11101{ 11102 set +e 11103 as_fn_set_status $1 11104 exit $1 11105} # as_fn_exit 11106 11107# as_fn_unset VAR 11108# --------------- 11109# Portably unset VAR. 11110as_fn_unset () 11111{ 11112 { eval $1=; unset $1;} 11113} 11114as_unset=as_fn_unset 11115# as_fn_append VAR VALUE 11116# ---------------------- 11117# Append the text in VALUE to the end of the definition contained in VAR. Take 11118# advantage of any shell optimizations that allow amortized linear growth over 11119# repeated appends, instead of the typical quadratic growth present in naive 11120# implementations. 11121if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11122 eval 'as_fn_append () 11123 { 11124 eval $1+=\$2 11125 }' 11126else 11127 as_fn_append () 11128 { 11129 eval $1=\$$1\$2 11130 } 11131fi # as_fn_append 11132 11133# as_fn_arith ARG... 11134# ------------------ 11135# Perform arithmetic evaluation on the ARGs, and store the result in the 11136# global $as_val. Take advantage of shells that can avoid forks. The arguments 11137# must be portable across $(()) and expr. 11138if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11139 eval 'as_fn_arith () 11140 { 11141 as_val=$(( $* )) 11142 }' 11143else 11144 as_fn_arith () 11145 { 11146 as_val=`expr "$@" || test $? -eq 1` 11147 } 11148fi # as_fn_arith 11149 11150 11151if expr a : '\(a\)' >/dev/null 2>&1 && 11152 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11153 as_expr=expr 11154else 11155 as_expr=false 11156fi 11157 11158if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11159 as_basename=basename 11160else 11161 as_basename=false 11162fi 11163 11164if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11165 as_dirname=dirname 11166else 11167 as_dirname=false 11168fi 11169 11170as_me=`$as_basename -- "$0" || 11171$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11172 X"$0" : 'X\(//\)$' \| \ 11173 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11174$as_echo X/"$0" | 11175 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11176 s//\1/ 11177 q 11178 } 11179 /^X\/\(\/\/\)$/{ 11180 s//\1/ 11181 q 11182 } 11183 /^X\/\(\/\).*/{ 11184 s//\1/ 11185 q 11186 } 11187 s/.*/./; q'` 11188 11189# Avoid depending upon Character Ranges. 11190as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11191as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11192as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11193as_cr_digits='0123456789' 11194as_cr_alnum=$as_cr_Letters$as_cr_digits 11195 11196ECHO_C= ECHO_N= ECHO_T= 11197case `echo -n x` in #((((( 11198-n*) 11199 case `echo 'xy\c'` in 11200 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11201 xy) ECHO_C='\c';; 11202 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11203 ECHO_T=' ';; 11204 esac;; 11205*) 11206 ECHO_N='-n';; 11207esac 11208 11209rm -f conf$$ conf$$.exe conf$$.file 11210if test -d conf$$.dir; then 11211 rm -f conf$$.dir/conf$$.file 11212else 11213 rm -f conf$$.dir 11214 mkdir conf$$.dir 2>/dev/null 11215fi 11216if (echo >conf$$.file) 2>/dev/null; then 11217 if ln -s conf$$.file conf$$ 2>/dev/null; then 11218 as_ln_s='ln -s' 11219 # ... but there are two gotchas: 11220 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11221 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11222 # In both cases, we have to default to `cp -pR'. 11223 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11224 as_ln_s='cp -pR' 11225 elif ln conf$$.file conf$$ 2>/dev/null; then 11226 as_ln_s=ln 11227 else 11228 as_ln_s='cp -pR' 11229 fi 11230else 11231 as_ln_s='cp -pR' 11232fi 11233rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11234rmdir conf$$.dir 2>/dev/null 11235 11236 11237# as_fn_mkdir_p 11238# ------------- 11239# Create "$as_dir" as a directory, including parents if necessary. 11240as_fn_mkdir_p () 11241{ 11242 11243 case $as_dir in #( 11244 -*) as_dir=./$as_dir;; 11245 esac 11246 test -d "$as_dir" || eval $as_mkdir_p || { 11247 as_dirs= 11248 while :; do 11249 case $as_dir in #( 11250 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11251 *) as_qdir=$as_dir;; 11252 esac 11253 as_dirs="'$as_qdir' $as_dirs" 11254 as_dir=`$as_dirname -- "$as_dir" || 11255$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11256 X"$as_dir" : 'X\(//\)[^/]' \| \ 11257 X"$as_dir" : 'X\(//\)$' \| \ 11258 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11259$as_echo X"$as_dir" | 11260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11261 s//\1/ 11262 q 11263 } 11264 /^X\(\/\/\)[^/].*/{ 11265 s//\1/ 11266 q 11267 } 11268 /^X\(\/\/\)$/{ 11269 s//\1/ 11270 q 11271 } 11272 /^X\(\/\).*/{ 11273 s//\1/ 11274 q 11275 } 11276 s/.*/./; q'` 11277 test -d "$as_dir" && break 11278 done 11279 test -z "$as_dirs" || eval "mkdir $as_dirs" 11280 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11281 11282 11283} # as_fn_mkdir_p 11284if mkdir -p . 2>/dev/null; then 11285 as_mkdir_p='mkdir -p "$as_dir"' 11286else 11287 test -d ./-p && rmdir ./-p 11288 as_mkdir_p=false 11289fi 11290 11291 11292# as_fn_executable_p FILE 11293# ----------------------- 11294# Test if FILE is an executable regular file. 11295as_fn_executable_p () 11296{ 11297 test -f "$1" && test -x "$1" 11298} # as_fn_executable_p 11299as_test_x='test -x' 11300as_executable_p=as_fn_executable_p 11301 11302# Sed expression to map a string onto a valid CPP name. 11303as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11304 11305# Sed expression to map a string onto a valid variable name. 11306as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11307 11308 11309exec 6>&1 11310## ----------------------------------- ## 11311## Main body of $CONFIG_STATUS script. ## 11312## ----------------------------------- ## 11313_ASEOF 11314test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11315 11316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11317# Save the log message, to keep $0 and so on meaningful, and to 11318# report actual input values of CONFIG_FILES etc. instead of their 11319# values after options handling. 11320ac_log=" 11321This file was extended by xmh $as_me 1.0.3, which was 11322generated by GNU Autoconf 2.69. Invocation command line was 11323 11324 CONFIG_FILES = $CONFIG_FILES 11325 CONFIG_HEADERS = $CONFIG_HEADERS 11326 CONFIG_LINKS = $CONFIG_LINKS 11327 CONFIG_COMMANDS = $CONFIG_COMMANDS 11328 $ $0 $@ 11329 11330on `(hostname || uname -n) 2>/dev/null | sed 1q` 11331" 11332 11333_ACEOF 11334 11335case $ac_config_files in *" 11336"*) set x $ac_config_files; shift; ac_config_files=$*;; 11337esac 11338 11339case $ac_config_headers in *" 11340"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11341esac 11342 11343 11344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11345# Files that config.status was made for. 11346config_files="$ac_config_files" 11347config_headers="$ac_config_headers" 11348config_commands="$ac_config_commands" 11349 11350_ACEOF 11351 11352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11353ac_cs_usage="\ 11354\`$as_me' instantiates files and other configuration actions 11355from templates according to the current configuration. Unless the files 11356and actions are specified as TAGs, all are instantiated by default. 11357 11358Usage: $0 [OPTION]... [TAG]... 11359 11360 -h, --help print this help, then exit 11361 -V, --version print version number and configuration settings, then exit 11362 --config print configuration, then exit 11363 -q, --quiet, --silent 11364 do not print progress messages 11365 -d, --debug don't remove temporary files 11366 --recheck update $as_me by reconfiguring in the same conditions 11367 --file=FILE[:TEMPLATE] 11368 instantiate the configuration file FILE 11369 --header=FILE[:TEMPLATE] 11370 instantiate the configuration header FILE 11371 11372Configuration files: 11373$config_files 11374 11375Configuration headers: 11376$config_headers 11377 11378Configuration commands: 11379$config_commands 11380 11381Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11382 11383_ACEOF 11384cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11385ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11386ac_cs_version="\\ 11387xmh config.status 1.0.3 11388configured by $0, generated by GNU Autoconf 2.69, 11389 with options \\"\$ac_cs_config\\" 11390 11391Copyright (C) 2012 Free Software Foundation, Inc. 11392This config.status script is free software; the Free Software Foundation 11393gives unlimited permission to copy, distribute and modify it." 11394 11395ac_pwd='$ac_pwd' 11396srcdir='$srcdir' 11397INSTALL='$INSTALL' 11398MKDIR_P='$MKDIR_P' 11399AWK='$AWK' 11400test -n "\$AWK" || AWK=awk 11401_ACEOF 11402 11403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11404# The default lists apply if the user does not specify any file. 11405ac_need_defaults=: 11406while test $# != 0 11407do 11408 case $1 in 11409 --*=?*) 11410 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11411 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11412 ac_shift=: 11413 ;; 11414 --*=) 11415 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11416 ac_optarg= 11417 ac_shift=: 11418 ;; 11419 *) 11420 ac_option=$1 11421 ac_optarg=$2 11422 ac_shift=shift 11423 ;; 11424 esac 11425 11426 case $ac_option in 11427 # Handling of the options. 11428 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11429 ac_cs_recheck=: ;; 11430 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11431 $as_echo "$ac_cs_version"; exit ;; 11432 --config | --confi | --conf | --con | --co | --c ) 11433 $as_echo "$ac_cs_config"; exit ;; 11434 --debug | --debu | --deb | --de | --d | -d ) 11435 debug=: ;; 11436 --file | --fil | --fi | --f ) 11437 $ac_shift 11438 case $ac_optarg in 11439 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11440 '') as_fn_error $? "missing file argument" ;; 11441 esac 11442 as_fn_append CONFIG_FILES " '$ac_optarg'" 11443 ac_need_defaults=false;; 11444 --header | --heade | --head | --hea ) 11445 $ac_shift 11446 case $ac_optarg in 11447 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11448 esac 11449 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11450 ac_need_defaults=false;; 11451 --he | --h) 11452 # Conflict between --help and --header 11453 as_fn_error $? "ambiguous option: \`$1' 11454Try \`$0 --help' for more information.";; 11455 --help | --hel | -h ) 11456 $as_echo "$ac_cs_usage"; exit ;; 11457 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11458 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11459 ac_cs_silent=: ;; 11460 11461 # This is an error. 11462 -*) as_fn_error $? "unrecognized option: \`$1' 11463Try \`$0 --help' for more information." ;; 11464 11465 *) as_fn_append ac_config_targets " $1" 11466 ac_need_defaults=false ;; 11467 11468 esac 11469 shift 11470done 11471 11472ac_configure_extra_args= 11473 11474if $ac_cs_silent; then 11475 exec 6>/dev/null 11476 ac_configure_extra_args="$ac_configure_extra_args --silent" 11477fi 11478 11479_ACEOF 11480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11481if \$ac_cs_recheck; then 11482 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11483 shift 11484 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11485 CONFIG_SHELL='$SHELL' 11486 export CONFIG_SHELL 11487 exec "\$@" 11488fi 11489 11490_ACEOF 11491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11492exec 5>>config.log 11493{ 11494 echo 11495 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11496## Running $as_me. ## 11497_ASBOX 11498 $as_echo "$ac_log" 11499} >&5 11500 11501_ACEOF 11502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11503# 11504# INIT-COMMANDS 11505# 11506AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11507 11508_ACEOF 11509 11510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11511 11512# Handling of arguments. 11513for ac_config_target in $ac_config_targets 11514do 11515 case $ac_config_target in 11516 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11517 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11518 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11519 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11520 11521 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11522 esac 11523done 11524 11525 11526# If the user did not use the arguments to specify the items to instantiate, 11527# then the envvar interface is used. Set only those that are not. 11528# We use the long form for the default assignment because of an extremely 11529# bizarre bug on SunOS 4.1.3. 11530if $ac_need_defaults; then 11531 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11532 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11533 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11534fi 11535 11536# Have a temporary directory for convenience. Make it in the build tree 11537# simply because there is no reason against having it here, and in addition, 11538# creating and moving files from /tmp can sometimes cause problems. 11539# Hook for its removal unless debugging. 11540# Note that there is a small window in which the directory will not be cleaned: 11541# after its creation but before its name has been assigned to `$tmp'. 11542$debug || 11543{ 11544 tmp= ac_tmp= 11545 trap 'exit_status=$? 11546 : "${ac_tmp:=$tmp}" 11547 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11548' 0 11549 trap 'as_fn_exit 1' 1 2 13 15 11550} 11551# Create a (secure) tmp directory for tmp files. 11552 11553{ 11554 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11555 test -d "$tmp" 11556} || 11557{ 11558 tmp=./conf$$-$RANDOM 11559 (umask 077 && mkdir "$tmp") 11560} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11561ac_tmp=$tmp 11562 11563# Set up the scripts for CONFIG_FILES section. 11564# No need to generate them if there are no CONFIG_FILES. 11565# This happens for instance with `./config.status config.h'. 11566if test -n "$CONFIG_FILES"; then 11567 11568 11569ac_cr=`echo X | tr X '\015'` 11570# On cygwin, bash can eat \r inside `` if the user requested igncr. 11571# But we know of no other shell where ac_cr would be empty at this 11572# point, so we can use a bashism as a fallback. 11573if test "x$ac_cr" = x; then 11574 eval ac_cr=\$\'\\r\' 11575fi 11576ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11577if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11578 ac_cs_awk_cr='\\r' 11579else 11580 ac_cs_awk_cr=$ac_cr 11581fi 11582 11583echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11584_ACEOF 11585 11586 11587{ 11588 echo "cat >conf$$subs.awk <<_ACEOF" && 11589 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11590 echo "_ACEOF" 11591} >conf$$subs.sh || 11592 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11593ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11594ac_delim='%!_!# ' 11595for ac_last_try in false false false false false :; do 11596 . ./conf$$subs.sh || 11597 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11598 11599 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11600 if test $ac_delim_n = $ac_delim_num; then 11601 break 11602 elif $ac_last_try; then 11603 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11604 else 11605 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11606 fi 11607done 11608rm -f conf$$subs.sh 11609 11610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11611cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11612_ACEOF 11613sed -n ' 11614h 11615s/^/S["/; s/!.*/"]=/ 11616p 11617g 11618s/^[^!]*!// 11619:repl 11620t repl 11621s/'"$ac_delim"'$// 11622t delim 11623:nl 11624h 11625s/\(.\{148\}\)..*/\1/ 11626t more1 11627s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11628p 11629n 11630b repl 11631:more1 11632s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11633p 11634g 11635s/.\{148\}// 11636t nl 11637:delim 11638h 11639s/\(.\{148\}\)..*/\1/ 11640t more2 11641s/["\\]/\\&/g; s/^/"/; s/$/"/ 11642p 11643b 11644:more2 11645s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11646p 11647g 11648s/.\{148\}// 11649t delim 11650' <conf$$subs.awk | sed ' 11651/^[^""]/{ 11652 N 11653 s/\n// 11654} 11655' >>$CONFIG_STATUS || ac_write_fail=1 11656rm -f conf$$subs.awk 11657cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11658_ACAWK 11659cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11660 for (key in S) S_is_set[key] = 1 11661 FS = "" 11662 11663} 11664{ 11665 line = $ 0 11666 nfields = split(line, field, "@") 11667 substed = 0 11668 len = length(field[1]) 11669 for (i = 2; i < nfields; i++) { 11670 key = field[i] 11671 keylen = length(key) 11672 if (S_is_set[key]) { 11673 value = S[key] 11674 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11675 len += length(value) + length(field[++i]) 11676 substed = 1 11677 } else 11678 len += 1 + keylen 11679 } 11680 11681 print line 11682} 11683 11684_ACAWK 11685_ACEOF 11686cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11687if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11688 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11689else 11690 cat 11691fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11692 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11693_ACEOF 11694 11695# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11696# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11697# trailing colons and then remove the whole line if VPATH becomes empty 11698# (actually we leave an empty line to preserve line numbers). 11699if test "x$srcdir" = x.; then 11700 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11701h 11702s/// 11703s/^/:/ 11704s/[ ]*$/:/ 11705s/:\$(srcdir):/:/g 11706s/:\${srcdir}:/:/g 11707s/:@srcdir@:/:/g 11708s/^:*// 11709s/:*$// 11710x 11711s/\(=[ ]*\).*/\1/ 11712G 11713s/\n// 11714s/^[^=]*=[ ]*$// 11715}' 11716fi 11717 11718cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11719fi # test -n "$CONFIG_FILES" 11720 11721# Set up the scripts for CONFIG_HEADERS section. 11722# No need to generate them if there are no CONFIG_HEADERS. 11723# This happens for instance with `./config.status Makefile'. 11724if test -n "$CONFIG_HEADERS"; then 11725cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11726BEGIN { 11727_ACEOF 11728 11729# Transform confdefs.h into an awk script `defines.awk', embedded as 11730# here-document in config.status, that substitutes the proper values into 11731# config.h.in to produce config.h. 11732 11733# Create a delimiter string that does not exist in confdefs.h, to ease 11734# handling of long lines. 11735ac_delim='%!_!# ' 11736for ac_last_try in false false :; do 11737 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11738 if test -z "$ac_tt"; then 11739 break 11740 elif $ac_last_try; then 11741 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11742 else 11743 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11744 fi 11745done 11746 11747# For the awk script, D is an array of macro values keyed by name, 11748# likewise P contains macro parameters if any. Preserve backslash 11749# newline sequences. 11750 11751ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11752sed -n ' 11753s/.\{148\}/&'"$ac_delim"'/g 11754t rset 11755:rset 11756s/^[ ]*#[ ]*define[ ][ ]*/ / 11757t def 11758d 11759:def 11760s/\\$// 11761t bsnl 11762s/["\\]/\\&/g 11763s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11764D["\1"]=" \3"/p 11765s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11766d 11767:bsnl 11768s/["\\]/\\&/g 11769s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11770D["\1"]=" \3\\\\\\n"\\/p 11771t cont 11772s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11773t cont 11774d 11775:cont 11776n 11777s/.\{148\}/&'"$ac_delim"'/g 11778t clear 11779:clear 11780s/\\$// 11781t bsnlc 11782s/["\\]/\\&/g; s/^/"/; s/$/"/p 11783d 11784:bsnlc 11785s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11786b cont 11787' <confdefs.h | sed ' 11788s/'"$ac_delim"'/"\\\ 11789"/g' >>$CONFIG_STATUS || ac_write_fail=1 11790 11791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11792 for (key in D) D_is_set[key] = 1 11793 FS = "" 11794} 11795/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11796 line = \$ 0 11797 split(line, arg, " ") 11798 if (arg[1] == "#") { 11799 defundef = arg[2] 11800 mac1 = arg[3] 11801 } else { 11802 defundef = substr(arg[1], 2) 11803 mac1 = arg[2] 11804 } 11805 split(mac1, mac2, "(") #) 11806 macro = mac2[1] 11807 prefix = substr(line, 1, index(line, defundef) - 1) 11808 if (D_is_set[macro]) { 11809 # Preserve the white space surrounding the "#". 11810 print prefix "define", macro P[macro] D[macro] 11811 next 11812 } else { 11813 # Replace #undef with comments. This is necessary, for example, 11814 # in the case of _POSIX_SOURCE, which is predefined and required 11815 # on some systems where configure will not decide to define it. 11816 if (defundef == "undef") { 11817 print "/*", prefix defundef, macro, "*/" 11818 next 11819 } 11820 } 11821} 11822{ print } 11823_ACAWK 11824_ACEOF 11825cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11826 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11827fi # test -n "$CONFIG_HEADERS" 11828 11829 11830eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11831shift 11832for ac_tag 11833do 11834 case $ac_tag in 11835 :[FHLC]) ac_mode=$ac_tag; continue;; 11836 esac 11837 case $ac_mode$ac_tag in 11838 :[FHL]*:*);; 11839 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11840 :[FH]-) ac_tag=-:-;; 11841 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11842 esac 11843 ac_save_IFS=$IFS 11844 IFS=: 11845 set x $ac_tag 11846 IFS=$ac_save_IFS 11847 shift 11848 ac_file=$1 11849 shift 11850 11851 case $ac_mode in 11852 :L) ac_source=$1;; 11853 :[FH]) 11854 ac_file_inputs= 11855 for ac_f 11856 do 11857 case $ac_f in 11858 -) ac_f="$ac_tmp/stdin";; 11859 *) # Look for the file first in the build tree, then in the source tree 11860 # (if the path is not absolute). The absolute path cannot be DOS-style, 11861 # because $ac_f cannot contain `:'. 11862 test -f "$ac_f" || 11863 case $ac_f in 11864 [\\/$]*) false;; 11865 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11866 esac || 11867 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11868 esac 11869 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11870 as_fn_append ac_file_inputs " '$ac_f'" 11871 done 11872 11873 # Let's still pretend it is `configure' which instantiates (i.e., don't 11874 # use $as_me), people would be surprised to read: 11875 # /* config.h. Generated by config.status. */ 11876 configure_input='Generated from '` 11877 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11878 `' by configure.' 11879 if test x"$ac_file" != x-; then 11880 configure_input="$ac_file. $configure_input" 11881 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11882$as_echo "$as_me: creating $ac_file" >&6;} 11883 fi 11884 # Neutralize special characters interpreted by sed in replacement strings. 11885 case $configure_input in #( 11886 *\&* | *\|* | *\\* ) 11887 ac_sed_conf_input=`$as_echo "$configure_input" | 11888 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11889 *) ac_sed_conf_input=$configure_input;; 11890 esac 11891 11892 case $ac_tag in 11893 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11894 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11895 esac 11896 ;; 11897 esac 11898 11899 ac_dir=`$as_dirname -- "$ac_file" || 11900$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11901 X"$ac_file" : 'X\(//\)[^/]' \| \ 11902 X"$ac_file" : 'X\(//\)$' \| \ 11903 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11904$as_echo X"$ac_file" | 11905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11906 s//\1/ 11907 q 11908 } 11909 /^X\(\/\/\)[^/].*/{ 11910 s//\1/ 11911 q 11912 } 11913 /^X\(\/\/\)$/{ 11914 s//\1/ 11915 q 11916 } 11917 /^X\(\/\).*/{ 11918 s//\1/ 11919 q 11920 } 11921 s/.*/./; q'` 11922 as_dir="$ac_dir"; as_fn_mkdir_p 11923 ac_builddir=. 11924 11925case "$ac_dir" in 11926.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11927*) 11928 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11929 # A ".." for each directory in $ac_dir_suffix. 11930 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11931 case $ac_top_builddir_sub in 11932 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11933 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11934 esac ;; 11935esac 11936ac_abs_top_builddir=$ac_pwd 11937ac_abs_builddir=$ac_pwd$ac_dir_suffix 11938# for backward compatibility: 11939ac_top_builddir=$ac_top_build_prefix 11940 11941case $srcdir in 11942 .) # We are building in place. 11943 ac_srcdir=. 11944 ac_top_srcdir=$ac_top_builddir_sub 11945 ac_abs_top_srcdir=$ac_pwd ;; 11946 [\\/]* | ?:[\\/]* ) # Absolute name. 11947 ac_srcdir=$srcdir$ac_dir_suffix; 11948 ac_top_srcdir=$srcdir 11949 ac_abs_top_srcdir=$srcdir ;; 11950 *) # Relative name. 11951 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11952 ac_top_srcdir=$ac_top_build_prefix$srcdir 11953 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11954esac 11955ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11956 11957 11958 case $ac_mode in 11959 :F) 11960 # 11961 # CONFIG_FILE 11962 # 11963 11964 case $INSTALL in 11965 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11966 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11967 esac 11968 ac_MKDIR_P=$MKDIR_P 11969 case $MKDIR_P in 11970 [\\/$]* | ?:[\\/]* ) ;; 11971 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11972 esac 11973_ACEOF 11974 11975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11976# If the template does not know about datarootdir, expand it. 11977# FIXME: This hack should be removed a few years after 2.60. 11978ac_datarootdir_hack=; ac_datarootdir_seen= 11979ac_sed_dataroot=' 11980/datarootdir/ { 11981 p 11982 q 11983} 11984/@datadir@/p 11985/@docdir@/p 11986/@infodir@/p 11987/@localedir@/p 11988/@mandir@/p' 11989case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11990*datarootdir*) ac_datarootdir_seen=yes;; 11991*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11993$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11994_ACEOF 11995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11996 ac_datarootdir_hack=' 11997 s&@datadir@&$datadir&g 11998 s&@docdir@&$docdir&g 11999 s&@infodir@&$infodir&g 12000 s&@localedir@&$localedir&g 12001 s&@mandir@&$mandir&g 12002 s&\\\${datarootdir}&$datarootdir&g' ;; 12003esac 12004_ACEOF 12005 12006# Neutralize VPATH when `$srcdir' = `.'. 12007# Shell code in configure.ac might set extrasub. 12008# FIXME: do we really want to maintain this feature? 12009cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12010ac_sed_extra="$ac_vpsub 12011$extrasub 12012_ACEOF 12013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12014:t 12015/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12016s|@configure_input@|$ac_sed_conf_input|;t t 12017s&@top_builddir@&$ac_top_builddir_sub&;t t 12018s&@top_build_prefix@&$ac_top_build_prefix&;t t 12019s&@srcdir@&$ac_srcdir&;t t 12020s&@abs_srcdir@&$ac_abs_srcdir&;t t 12021s&@top_srcdir@&$ac_top_srcdir&;t t 12022s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12023s&@builddir@&$ac_builddir&;t t 12024s&@abs_builddir@&$ac_abs_builddir&;t t 12025s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12026s&@INSTALL@&$ac_INSTALL&;t t 12027s&@MKDIR_P@&$ac_MKDIR_P&;t t 12028$ac_datarootdir_hack 12029" 12030eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12031 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12032 12033test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12034 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12035 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12036 "$ac_tmp/out"`; test -z "$ac_out"; } && 12037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12038which seems to be undefined. Please make sure it is defined" >&5 12039$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12040which seems to be undefined. Please make sure it is defined" >&2;} 12041 12042 rm -f "$ac_tmp/stdin" 12043 case $ac_file in 12044 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12045 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12046 esac \ 12047 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12048 ;; 12049 :H) 12050 # 12051 # CONFIG_HEADER 12052 # 12053 if test x"$ac_file" != x-; then 12054 { 12055 $as_echo "/* $configure_input */" \ 12056 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12057 } >"$ac_tmp/config.h" \ 12058 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12059 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12060 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12061$as_echo "$as_me: $ac_file is unchanged" >&6;} 12062 else 12063 rm -f "$ac_file" 12064 mv "$ac_tmp/config.h" "$ac_file" \ 12065 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12066 fi 12067 else 12068 $as_echo "/* $configure_input */" \ 12069 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12070 || as_fn_error $? "could not create -" "$LINENO" 5 12071 fi 12072# Compute "$ac_file"'s index in $config_headers. 12073_am_arg="$ac_file" 12074_am_stamp_count=1 12075for _am_header in $config_headers :; do 12076 case $_am_header in 12077 $_am_arg | $_am_arg:* ) 12078 break ;; 12079 * ) 12080 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12081 esac 12082done 12083echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12084$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12085 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12086 X"$_am_arg" : 'X\(//\)$' \| \ 12087 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12088$as_echo X"$_am_arg" | 12089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12090 s//\1/ 12091 q 12092 } 12093 /^X\(\/\/\)[^/].*/{ 12094 s//\1/ 12095 q 12096 } 12097 /^X\(\/\/\)$/{ 12098 s//\1/ 12099 q 12100 } 12101 /^X\(\/\).*/{ 12102 s//\1/ 12103 q 12104 } 12105 s/.*/./; q'`/stamp-h$_am_stamp_count 12106 ;; 12107 12108 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12109$as_echo "$as_me: executing $ac_file commands" >&6;} 12110 ;; 12111 esac 12112 12113 12114 case $ac_file$ac_mode in 12115 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12116 # Older Autoconf quotes --file arguments for eval, but not when files 12117 # are listed without --file. Let's play safe and only enable the eval 12118 # if we detect the quoting. 12119 case $CONFIG_FILES in 12120 *\'*) eval set x "$CONFIG_FILES" ;; 12121 *) set x $CONFIG_FILES ;; 12122 esac 12123 shift 12124 for mf 12125 do 12126 # Strip MF so we end up with the name of the file. 12127 mf=`echo "$mf" | sed -e 's/:.*$//'` 12128 # Check whether this is an Automake generated Makefile or not. 12129 # We used to match only the files named 'Makefile.in', but 12130 # some people rename them; so instead we look at the file content. 12131 # Grep'ing the first line is not enough: some people post-process 12132 # each Makefile.in and add a new line on top of each file to say so. 12133 # Grep'ing the whole file is not good either: AIX grep has a line 12134 # limit of 2048, but all sed's we know have understand at least 4000. 12135 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12136 dirpart=`$as_dirname -- "$mf" || 12137$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12138 X"$mf" : 'X\(//\)[^/]' \| \ 12139 X"$mf" : 'X\(//\)$' \| \ 12140 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12141$as_echo X"$mf" | 12142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12143 s//\1/ 12144 q 12145 } 12146 /^X\(\/\/\)[^/].*/{ 12147 s//\1/ 12148 q 12149 } 12150 /^X\(\/\/\)$/{ 12151 s//\1/ 12152 q 12153 } 12154 /^X\(\/\).*/{ 12155 s//\1/ 12156 q 12157 } 12158 s/.*/./; q'` 12159 else 12160 continue 12161 fi 12162 # Extract the definition of DEPDIR, am__include, and am__quote 12163 # from the Makefile without running 'make'. 12164 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12165 test -z "$DEPDIR" && continue 12166 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12167 test -z "$am__include" && continue 12168 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12169 # Find all dependency output files, they are included files with 12170 # $(DEPDIR) in their names. We invoke sed twice because it is the 12171 # simplest approach to changing $(DEPDIR) to its actual value in the 12172 # expansion. 12173 for file in `sed -n " 12174 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12175 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12176 # Make sure the directory exists. 12177 test -f "$dirpart/$file" && continue 12178 fdir=`$as_dirname -- "$file" || 12179$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12180 X"$file" : 'X\(//\)[^/]' \| \ 12181 X"$file" : 'X\(//\)$' \| \ 12182 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12183$as_echo X"$file" | 12184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12185 s//\1/ 12186 q 12187 } 12188 /^X\(\/\/\)[^/].*/{ 12189 s//\1/ 12190 q 12191 } 12192 /^X\(\/\/\)$/{ 12193 s//\1/ 12194 q 12195 } 12196 /^X\(\/\).*/{ 12197 s//\1/ 12198 q 12199 } 12200 s/.*/./; q'` 12201 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12202 # echo "creating $dirpart/$file" 12203 echo '# dummy' > "$dirpart/$file" 12204 done 12205 done 12206} 12207 ;; 12208 12209 esac 12210done # for ac_tag 12211 12212 12213as_fn_exit 0 12214_ACEOF 12215ac_clean_files=$ac_clean_files_save 12216 12217test $ac_write_fail = 0 || 12218 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12219 12220 12221# configure is writing to config.log, and then calls config.status. 12222# config.status does its own redirection, appending to config.log. 12223# Unfortunately, on DOS this fails, as config.log is still kept open 12224# by configure, so config.status won't be able to write to it; its 12225# output is simply discarded. So we exec the FD to /dev/null, 12226# effectively closing config.log, so it can be properly (re)opened and 12227# appended to by config.status. When coming back to configure, we 12228# need to make the FD available again. 12229if test "$no_create" != yes; then 12230 ac_cs_success=: 12231 ac_config_status_args= 12232 test "$silent" = yes && 12233 ac_config_status_args="$ac_config_status_args --quiet" 12234 exec 5>/dev/null 12235 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12236 exec 5>>config.log 12237 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12238 # would make configure fail if this is the last instruction. 12239 $ac_cs_success || as_fn_exit 1 12240fi 12241if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12243$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12244fi 12245 12246