configure revision b91640d3
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for sessreg 1.1.0. 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='sessreg' 583PACKAGE_TARNAME='sessreg' 584PACKAGE_VERSION='1.1.0' 585PACKAGE_STRING='sessreg 1.1.0' 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 630SESSREG_LIBS 631SESSREG_CFLAGS 632LINT_FALSE 633LINT_TRUE 634LINT_FLAGS 635LINT 636MAN_SUBSTS 637XORG_MAN_PAGE 638ADMIN_MAN_DIR 639DRIVER_MAN_DIR 640MISC_MAN_DIR 641FILE_MAN_DIR 642LIB_MAN_DIR 643APP_MAN_DIR 644ADMIN_MAN_SUFFIX 645DRIVER_MAN_SUFFIX 646MISC_MAN_SUFFIX 647FILE_MAN_SUFFIX 648LIB_MAN_SUFFIX 649APP_MAN_SUFFIX 650SED 651host_os 652host_vendor 653host_cpu 654host 655build_os 656build_vendor 657build_cpu 658build 659INSTALL_CMD 660PKG_CONFIG 661CHANGELOG_CMD 662STRICT_CFLAGS 663CWARNFLAGS 664BASE_CFLAGS 665AM_BACKSLASH 666AM_DEFAULT_VERBOSITY 667AM_DEFAULT_V 668AM_V 669am__fastdepCC_FALSE 670am__fastdepCC_TRUE 671CCDEPMODE 672am__nodep 673AMDEPBACKSLASH 674AMDEP_FALSE 675AMDEP_TRUE 676am__quote 677am__include 678DEPDIR 679am__untar 680am__tar 681AMTAR 682am__leading_dot 683SET_MAKE 684AWK 685mkdir_p 686MKDIR_P 687INSTALL_STRIP_PROGRAM 688STRIP 689install_sh 690MAKEINFO 691AUTOHEADER 692AUTOMAKE 693AUTOCONF 694ACLOCAL 695VERSION 696PACKAGE 697CYGPATH_W 698am__isrc 699INSTALL_DATA 700INSTALL_SCRIPT 701INSTALL_PROGRAM 702EGREP 703GREP 704CPP 705OBJEXT 706EXEEXT 707ac_ct_CC 708CPPFLAGS 709LDFLAGS 710CFLAGS 711CC 712target_alias 713host_alias 714build_alias 715LIBS 716ECHO_T 717ECHO_N 718ECHO_C 719DEFS 720mandir 721localedir 722libdir 723psdir 724pdfdir 725dvidir 726htmldir 727infodir 728docdir 729oldincludedir 730includedir 731localstatedir 732sharedstatedir 733sysconfdir 734datadir 735datarootdir 736libexecdir 737sbindir 738bindir 739program_transform_name 740prefix 741exec_prefix 742PACKAGE_URL 743PACKAGE_BUGREPORT 744PACKAGE_STRING 745PACKAGE_VERSION 746PACKAGE_TARNAME 747PACKAGE_NAME 748PATH_SEPARATOR 749SHELL' 750ac_subst_files='' 751ac_user_opts=' 752enable_option_checking 753enable_largefile 754enable_dependency_tracking 755enable_silent_rules 756enable_selective_werror 757enable_strict_compilation 758with_lint 759' 760 ac_precious_vars='build_alias 761host_alias 762target_alias 763CC 764CFLAGS 765LDFLAGS 766LIBS 767CPPFLAGS 768CPP 769PKG_CONFIG 770LINT 771LINT_FLAGS 772SESSREG_CFLAGS 773SESSREG_LIBS' 774 775 776# Initialize some variables set by options. 777ac_init_help= 778ac_init_version=false 779ac_unrecognized_opts= 780ac_unrecognized_sep= 781# The variables have the same names as the options, with 782# dashes changed to underlines. 783cache_file=/dev/null 784exec_prefix=NONE 785no_create= 786no_recursion= 787prefix=NONE 788program_prefix=NONE 789program_suffix=NONE 790program_transform_name=s,x,x, 791silent= 792site= 793srcdir= 794verbose= 795x_includes=NONE 796x_libraries=NONE 797 798# Installation directory options. 799# These are left unexpanded so users can "make install exec_prefix=/foo" 800# and all the variables that are supposed to be based on exec_prefix 801# by default will actually change. 802# Use braces instead of parens because sh, perl, etc. also accept them. 803# (The list follows the same order as the GNU Coding Standards.) 804bindir='${exec_prefix}/bin' 805sbindir='${exec_prefix}/sbin' 806libexecdir='${exec_prefix}/libexec' 807datarootdir='${prefix}/share' 808datadir='${datarootdir}' 809sysconfdir='${prefix}/etc' 810sharedstatedir='${prefix}/com' 811localstatedir='${prefix}/var' 812includedir='${prefix}/include' 813oldincludedir='/usr/include' 814docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 815infodir='${datarootdir}/info' 816htmldir='${docdir}' 817dvidir='${docdir}' 818pdfdir='${docdir}' 819psdir='${docdir}' 820libdir='${exec_prefix}/lib' 821localedir='${datarootdir}/locale' 822mandir='${datarootdir}/man' 823 824ac_prev= 825ac_dashdash= 826for ac_option 827do 828 # If the previous option needs an argument, assign it. 829 if test -n "$ac_prev"; then 830 eval $ac_prev=\$ac_option 831 ac_prev= 832 continue 833 fi 834 835 case $ac_option in 836 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 837 *=) ac_optarg= ;; 838 *) ac_optarg=yes ;; 839 esac 840 841 # Accept the important Cygnus configure options, so we can diagnose typos. 842 843 case $ac_dashdash$ac_option in 844 --) 845 ac_dashdash=yes ;; 846 847 -bindir | --bindir | --bindi | --bind | --bin | --bi) 848 ac_prev=bindir ;; 849 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 850 bindir=$ac_optarg ;; 851 852 -build | --build | --buil | --bui | --bu) 853 ac_prev=build_alias ;; 854 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 855 build_alias=$ac_optarg ;; 856 857 -cache-file | --cache-file | --cache-fil | --cache-fi \ 858 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 859 ac_prev=cache_file ;; 860 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 861 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 862 cache_file=$ac_optarg ;; 863 864 --config-cache | -C) 865 cache_file=config.cache ;; 866 867 -datadir | --datadir | --datadi | --datad) 868 ac_prev=datadir ;; 869 -datadir=* | --datadir=* | --datadi=* | --datad=*) 870 datadir=$ac_optarg ;; 871 872 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 873 | --dataroo | --dataro | --datar) 874 ac_prev=datarootdir ;; 875 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 876 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 877 datarootdir=$ac_optarg ;; 878 879 -disable-* | --disable-*) 880 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 881 # Reject names that are not valid shell variable names. 882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 883 as_fn_error $? "invalid feature name: $ac_useropt" 884 ac_useropt_orig=$ac_useropt 885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 886 case $ac_user_opts in 887 *" 888"enable_$ac_useropt" 889"*) ;; 890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 891 ac_unrecognized_sep=', ';; 892 esac 893 eval enable_$ac_useropt=no ;; 894 895 -docdir | --docdir | --docdi | --doc | --do) 896 ac_prev=docdir ;; 897 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 898 docdir=$ac_optarg ;; 899 900 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 901 ac_prev=dvidir ;; 902 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 903 dvidir=$ac_optarg ;; 904 905 -enable-* | --enable-*) 906 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 907 # Reject names that are not valid shell variable names. 908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 909 as_fn_error $? "invalid feature name: $ac_useropt" 910 ac_useropt_orig=$ac_useropt 911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 912 case $ac_user_opts in 913 *" 914"enable_$ac_useropt" 915"*) ;; 916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 917 ac_unrecognized_sep=', ';; 918 esac 919 eval enable_$ac_useropt=\$ac_optarg ;; 920 921 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 922 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 923 | --exec | --exe | --ex) 924 ac_prev=exec_prefix ;; 925 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 926 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 927 | --exec=* | --exe=* | --ex=*) 928 exec_prefix=$ac_optarg ;; 929 930 -gas | --gas | --ga | --g) 931 # Obsolete; use --with-gas. 932 with_gas=yes ;; 933 934 -help | --help | --hel | --he | -h) 935 ac_init_help=long ;; 936 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 937 ac_init_help=recursive ;; 938 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 939 ac_init_help=short ;; 940 941 -host | --host | --hos | --ho) 942 ac_prev=host_alias ;; 943 -host=* | --host=* | --hos=* | --ho=*) 944 host_alias=$ac_optarg ;; 945 946 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 947 ac_prev=htmldir ;; 948 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 949 | --ht=*) 950 htmldir=$ac_optarg ;; 951 952 -includedir | --includedir | --includedi | --included | --include \ 953 | --includ | --inclu | --incl | --inc) 954 ac_prev=includedir ;; 955 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 956 | --includ=* | --inclu=* | --incl=* | --inc=*) 957 includedir=$ac_optarg ;; 958 959 -infodir | --infodir | --infodi | --infod | --info | --inf) 960 ac_prev=infodir ;; 961 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 962 infodir=$ac_optarg ;; 963 964 -libdir | --libdir | --libdi | --libd) 965 ac_prev=libdir ;; 966 -libdir=* | --libdir=* | --libdi=* | --libd=*) 967 libdir=$ac_optarg ;; 968 969 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 970 | --libexe | --libex | --libe) 971 ac_prev=libexecdir ;; 972 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 973 | --libexe=* | --libex=* | --libe=*) 974 libexecdir=$ac_optarg ;; 975 976 -localedir | --localedir | --localedi | --localed | --locale) 977 ac_prev=localedir ;; 978 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 979 localedir=$ac_optarg ;; 980 981 -localstatedir | --localstatedir | --localstatedi | --localstated \ 982 | --localstate | --localstat | --localsta | --localst | --locals) 983 ac_prev=localstatedir ;; 984 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 985 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 986 localstatedir=$ac_optarg ;; 987 988 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 989 ac_prev=mandir ;; 990 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 991 mandir=$ac_optarg ;; 992 993 -nfp | --nfp | --nf) 994 # Obsolete; use --without-fp. 995 with_fp=no ;; 996 997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 998 | --no-cr | --no-c | -n) 999 no_create=yes ;; 1000 1001 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1002 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1003 no_recursion=yes ;; 1004 1005 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1006 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1007 | --oldin | --oldi | --old | --ol | --o) 1008 ac_prev=oldincludedir ;; 1009 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1010 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1011 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1012 oldincludedir=$ac_optarg ;; 1013 1014 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1015 ac_prev=prefix ;; 1016 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1017 prefix=$ac_optarg ;; 1018 1019 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1020 | --program-pre | --program-pr | --program-p) 1021 ac_prev=program_prefix ;; 1022 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1023 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1024 program_prefix=$ac_optarg ;; 1025 1026 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1027 | --program-suf | --program-su | --program-s) 1028 ac_prev=program_suffix ;; 1029 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1030 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1031 program_suffix=$ac_optarg ;; 1032 1033 -program-transform-name | --program-transform-name \ 1034 | --program-transform-nam | --program-transform-na \ 1035 | --program-transform-n | --program-transform- \ 1036 | --program-transform | --program-transfor \ 1037 | --program-transfo | --program-transf \ 1038 | --program-trans | --program-tran \ 1039 | --progr-tra | --program-tr | --program-t) 1040 ac_prev=program_transform_name ;; 1041 -program-transform-name=* | --program-transform-name=* \ 1042 | --program-transform-nam=* | --program-transform-na=* \ 1043 | --program-transform-n=* | --program-transform-=* \ 1044 | --program-transform=* | --program-transfor=* \ 1045 | --program-transfo=* | --program-transf=* \ 1046 | --program-trans=* | --program-tran=* \ 1047 | --progr-tra=* | --program-tr=* | --program-t=*) 1048 program_transform_name=$ac_optarg ;; 1049 1050 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1051 ac_prev=pdfdir ;; 1052 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1053 pdfdir=$ac_optarg ;; 1054 1055 -psdir | --psdir | --psdi | --psd | --ps) 1056 ac_prev=psdir ;; 1057 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1058 psdir=$ac_optarg ;; 1059 1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1061 | -silent | --silent | --silen | --sile | --sil) 1062 silent=yes ;; 1063 1064 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1065 ac_prev=sbindir ;; 1066 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1067 | --sbi=* | --sb=*) 1068 sbindir=$ac_optarg ;; 1069 1070 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1071 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1072 | --sharedst | --shareds | --shared | --share | --shar \ 1073 | --sha | --sh) 1074 ac_prev=sharedstatedir ;; 1075 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1076 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1077 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1078 | --sha=* | --sh=*) 1079 sharedstatedir=$ac_optarg ;; 1080 1081 -site | --site | --sit) 1082 ac_prev=site ;; 1083 -site=* | --site=* | --sit=*) 1084 site=$ac_optarg ;; 1085 1086 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1087 ac_prev=srcdir ;; 1088 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1089 srcdir=$ac_optarg ;; 1090 1091 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1092 | --syscon | --sysco | --sysc | --sys | --sy) 1093 ac_prev=sysconfdir ;; 1094 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1095 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1096 sysconfdir=$ac_optarg ;; 1097 1098 -target | --target | --targe | --targ | --tar | --ta | --t) 1099 ac_prev=target_alias ;; 1100 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1101 target_alias=$ac_optarg ;; 1102 1103 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1104 verbose=yes ;; 1105 1106 -version | --version | --versio | --versi | --vers | -V) 1107 ac_init_version=: ;; 1108 1109 -with-* | --with-*) 1110 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1111 # Reject names that are not valid shell variable names. 1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1113 as_fn_error $? "invalid package name: $ac_useropt" 1114 ac_useropt_orig=$ac_useropt 1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1116 case $ac_user_opts in 1117 *" 1118"with_$ac_useropt" 1119"*) ;; 1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1121 ac_unrecognized_sep=', ';; 1122 esac 1123 eval with_$ac_useropt=\$ac_optarg ;; 1124 1125 -without-* | --without-*) 1126 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1127 # Reject names that are not valid shell variable names. 1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1129 as_fn_error $? "invalid package name: $ac_useropt" 1130 ac_useropt_orig=$ac_useropt 1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1132 case $ac_user_opts in 1133 *" 1134"with_$ac_useropt" 1135"*) ;; 1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1137 ac_unrecognized_sep=', ';; 1138 esac 1139 eval with_$ac_useropt=no ;; 1140 1141 --x) 1142 # Obsolete; use --with-x. 1143 with_x=yes ;; 1144 1145 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1146 | --x-incl | --x-inc | --x-in | --x-i) 1147 ac_prev=x_includes ;; 1148 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1149 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1150 x_includes=$ac_optarg ;; 1151 1152 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1153 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1154 ac_prev=x_libraries ;; 1155 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1156 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1157 x_libraries=$ac_optarg ;; 1158 1159 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1160Try \`$0 --help' for more information" 1161 ;; 1162 1163 *=*) 1164 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1165 # Reject names that are not valid shell variable names. 1166 case $ac_envvar in #( 1167 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1168 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1169 esac 1170 eval $ac_envvar=\$ac_optarg 1171 export $ac_envvar ;; 1172 1173 *) 1174 # FIXME: should be removed in autoconf 3.0. 1175 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1176 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1177 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1178 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1179 ;; 1180 1181 esac 1182done 1183 1184if test -n "$ac_prev"; then 1185 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1186 as_fn_error $? "missing argument to $ac_option" 1187fi 1188 1189if test -n "$ac_unrecognized_opts"; then 1190 case $enable_option_checking in 1191 no) ;; 1192 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1193 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1194 esac 1195fi 1196 1197# Check all directory arguments for consistency. 1198for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1199 datadir sysconfdir sharedstatedir localstatedir includedir \ 1200 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1201 libdir localedir mandir 1202do 1203 eval ac_val=\$$ac_var 1204 # Remove trailing slashes. 1205 case $ac_val in 1206 */ ) 1207 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1208 eval $ac_var=\$ac_val;; 1209 esac 1210 # Be sure to have absolute directory names. 1211 case $ac_val in 1212 [\\/$]* | ?:[\\/]* ) continue;; 1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1214 esac 1215 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1216done 1217 1218# There might be people who depend on the old broken behavior: `$host' 1219# used to hold the argument of --host etc. 1220# FIXME: To remove some day. 1221build=$build_alias 1222host=$host_alias 1223target=$target_alias 1224 1225# FIXME: To remove some day. 1226if test "x$host_alias" != x; then 1227 if test "x$build_alias" = x; then 1228 cross_compiling=maybe 1229 elif test "x$build_alias" != "x$host_alias"; then 1230 cross_compiling=yes 1231 fi 1232fi 1233 1234ac_tool_prefix= 1235test -n "$host_alias" && ac_tool_prefix=$host_alias- 1236 1237test "$silent" = yes && exec 6>/dev/null 1238 1239 1240ac_pwd=`pwd` && test -n "$ac_pwd" && 1241ac_ls_di=`ls -di .` && 1242ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1243 as_fn_error $? "working directory cannot be determined" 1244test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1245 as_fn_error $? "pwd does not report name of working directory" 1246 1247 1248# Find the source files, if location was not specified. 1249if test -z "$srcdir"; then 1250 ac_srcdir_defaulted=yes 1251 # Try the directory containing this script, then the parent directory. 1252 ac_confdir=`$as_dirname -- "$as_myself" || 1253$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1254 X"$as_myself" : 'X\(//\)[^/]' \| \ 1255 X"$as_myself" : 'X\(//\)$' \| \ 1256 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1257$as_echo X"$as_myself" | 1258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1259 s//\1/ 1260 q 1261 } 1262 /^X\(\/\/\)[^/].*/{ 1263 s//\1/ 1264 q 1265 } 1266 /^X\(\/\/\)$/{ 1267 s//\1/ 1268 q 1269 } 1270 /^X\(\/\).*/{ 1271 s//\1/ 1272 q 1273 } 1274 s/.*/./; q'` 1275 srcdir=$ac_confdir 1276 if test ! -r "$srcdir/$ac_unique_file"; then 1277 srcdir=.. 1278 fi 1279else 1280 ac_srcdir_defaulted=no 1281fi 1282if test ! -r "$srcdir/$ac_unique_file"; then 1283 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1284 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1285fi 1286ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1287ac_abs_confdir=`( 1288 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1289 pwd)` 1290# When building in place, set srcdir=. 1291if test "$ac_abs_confdir" = "$ac_pwd"; then 1292 srcdir=. 1293fi 1294# Remove unnecessary trailing slashes from srcdir. 1295# Double slashes in file names in object file debugging info 1296# mess up M-x gdb in Emacs. 1297case $srcdir in 1298*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1299esac 1300for ac_var in $ac_precious_vars; do 1301 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1302 eval ac_env_${ac_var}_value=\$${ac_var} 1303 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1304 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1305done 1306 1307# 1308# Report the --help message. 1309# 1310if test "$ac_init_help" = "long"; then 1311 # Omit some internal or obsolete options to make the list less imposing. 1312 # This message is too long to be a string in the A/UX 3.1 sh. 1313 cat <<_ACEOF 1314\`configure' configures sessreg 1.1.0 to adapt to many kinds of systems. 1315 1316Usage: $0 [OPTION]... [VAR=VALUE]... 1317 1318To assign environment variables (e.g., CC, CFLAGS...), specify them as 1319VAR=VALUE. See below for descriptions of some of the useful variables. 1320 1321Defaults for the options are specified in brackets. 1322 1323Configuration: 1324 -h, --help display this help and exit 1325 --help=short display options specific to this package 1326 --help=recursive display the short help of all the included packages 1327 -V, --version display version information and exit 1328 -q, --quiet, --silent do not print \`checking ...' messages 1329 --cache-file=FILE cache test results in FILE [disabled] 1330 -C, --config-cache alias for \`--cache-file=config.cache' 1331 -n, --no-create do not create output files 1332 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1333 1334Installation directories: 1335 --prefix=PREFIX install architecture-independent files in PREFIX 1336 [$ac_default_prefix] 1337 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1338 [PREFIX] 1339 1340By default, \`make install' will install all the files in 1341\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1342an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1343for instance \`--prefix=\$HOME'. 1344 1345For better control, use the options below. 1346 1347Fine tuning of the installation directories: 1348 --bindir=DIR user executables [EPREFIX/bin] 1349 --sbindir=DIR system admin executables [EPREFIX/sbin] 1350 --libexecdir=DIR program executables [EPREFIX/libexec] 1351 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1352 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1353 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1354 --libdir=DIR object code libraries [EPREFIX/lib] 1355 --includedir=DIR C header files [PREFIX/include] 1356 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1357 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1358 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1359 --infodir=DIR info documentation [DATAROOTDIR/info] 1360 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1361 --mandir=DIR man documentation [DATAROOTDIR/man] 1362 --docdir=DIR documentation root [DATAROOTDIR/doc/sessreg] 1363 --htmldir=DIR html documentation [DOCDIR] 1364 --dvidir=DIR dvi documentation [DOCDIR] 1365 --pdfdir=DIR pdf documentation [DOCDIR] 1366 --psdir=DIR ps documentation [DOCDIR] 1367_ACEOF 1368 1369 cat <<\_ACEOF 1370 1371Program names: 1372 --program-prefix=PREFIX prepend PREFIX to installed program names 1373 --program-suffix=SUFFIX append SUFFIX to installed program names 1374 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1375 1376System types: 1377 --build=BUILD configure for building on BUILD [guessed] 1378 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1379_ACEOF 1380fi 1381 1382if test -n "$ac_init_help"; then 1383 case $ac_init_help in 1384 short | recursive ) echo "Configuration of sessreg 1.1.0:";; 1385 esac 1386 cat <<\_ACEOF 1387 1388Optional Features: 1389 --disable-option-checking ignore unrecognized --enable/--with options 1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1392 --disable-largefile omit support for large files 1393 --enable-dependency-tracking 1394 do not reject slow dependency extractors 1395 --disable-dependency-tracking 1396 speeds up one-time build 1397 --enable-silent-rules less verbose build output (undo: "make V=1") 1398 --disable-silent-rules verbose build output (undo: "make V=0") 1399 --disable-selective-werror 1400 Turn off selective compiler errors. (default: 1401 enabled) 1402 --enable-strict-compilation 1403 Enable all warnings from compiler and make them 1404 errors (default: disabled) 1405 1406Optional Packages: 1407 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1408 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1409 --with-lint Use a lint-style source code checker (default: 1410 disabled) 1411 1412Some influential environment variables: 1413 CC C compiler command 1414 CFLAGS C compiler flags 1415 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1416 nonstandard directory <lib dir> 1417 LIBS libraries to pass to the linker, e.g. -l<library> 1418 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1419 you have headers in a nonstandard directory <include dir> 1420 CPP C preprocessor 1421 PKG_CONFIG path to pkg-config utility 1422 LINT Path to a lint-style command 1423 LINT_FLAGS Flags for the lint-style command 1424 SESSREG_CFLAGS 1425 C compiler flags for SESSREG, overriding pkg-config 1426 SESSREG_LIBS 1427 linker flags for SESSREG, overriding pkg-config 1428 1429Use these variables to override the choices made by `configure' or to help 1430it to find libraries and programs with nonstandard names/locations. 1431 1432Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1433_ACEOF 1434ac_status=$? 1435fi 1436 1437if test "$ac_init_help" = "recursive"; then 1438 # If there are subdirs, report their specific --help. 1439 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1440 test -d "$ac_dir" || 1441 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1442 continue 1443 ac_builddir=. 1444 1445case "$ac_dir" in 1446.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1447*) 1448 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1449 # A ".." for each directory in $ac_dir_suffix. 1450 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1451 case $ac_top_builddir_sub in 1452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1454 esac ;; 1455esac 1456ac_abs_top_builddir=$ac_pwd 1457ac_abs_builddir=$ac_pwd$ac_dir_suffix 1458# for backward compatibility: 1459ac_top_builddir=$ac_top_build_prefix 1460 1461case $srcdir in 1462 .) # We are building in place. 1463 ac_srcdir=. 1464 ac_top_srcdir=$ac_top_builddir_sub 1465 ac_abs_top_srcdir=$ac_pwd ;; 1466 [\\/]* | ?:[\\/]* ) # Absolute name. 1467 ac_srcdir=$srcdir$ac_dir_suffix; 1468 ac_top_srcdir=$srcdir 1469 ac_abs_top_srcdir=$srcdir ;; 1470 *) # Relative name. 1471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1472 ac_top_srcdir=$ac_top_build_prefix$srcdir 1473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1474esac 1475ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1476 1477 cd "$ac_dir" || { ac_status=$?; continue; } 1478 # Check for guested configure. 1479 if test -f "$ac_srcdir/configure.gnu"; then 1480 echo && 1481 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1482 elif test -f "$ac_srcdir/configure"; then 1483 echo && 1484 $SHELL "$ac_srcdir/configure" --help=recursive 1485 else 1486 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1487 fi || ac_status=$? 1488 cd "$ac_pwd" || { ac_status=$?; break; } 1489 done 1490fi 1491 1492test -n "$ac_init_help" && exit $ac_status 1493if $ac_init_version; then 1494 cat <<\_ACEOF 1495sessreg configure 1.1.0 1496generated by GNU Autoconf 2.69 1497 1498Copyright (C) 2012 Free Software Foundation, Inc. 1499This configure script is free software; the Free Software Foundation 1500gives unlimited permission to copy, distribute and modify it. 1501_ACEOF 1502 exit 1503fi 1504 1505## ------------------------ ## 1506## Autoconf initialization. ## 1507## ------------------------ ## 1508 1509# ac_fn_c_try_compile LINENO 1510# -------------------------- 1511# Try to compile conftest.$ac_ext, and return whether this succeeded. 1512ac_fn_c_try_compile () 1513{ 1514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1515 rm -f conftest.$ac_objext 1516 if { { ac_try="$ac_compile" 1517case "(($ac_try" in 1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1519 *) ac_try_echo=$ac_try;; 1520esac 1521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1522$as_echo "$ac_try_echo"; } >&5 1523 (eval "$ac_compile") 2>conftest.err 1524 ac_status=$? 1525 if test -s conftest.err; then 1526 grep -v '^ *+' conftest.err >conftest.er1 1527 cat conftest.er1 >&5 1528 mv -f conftest.er1 conftest.err 1529 fi 1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1531 test $ac_status = 0; } && { 1532 test -z "$ac_c_werror_flag" || 1533 test ! -s conftest.err 1534 } && test -s conftest.$ac_objext; then : 1535 ac_retval=0 1536else 1537 $as_echo "$as_me: failed program was:" >&5 1538sed 's/^/| /' conftest.$ac_ext >&5 1539 1540 ac_retval=1 1541fi 1542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1543 as_fn_set_status $ac_retval 1544 1545} # ac_fn_c_try_compile 1546 1547# ac_fn_c_try_cpp LINENO 1548# ---------------------- 1549# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1550ac_fn_c_try_cpp () 1551{ 1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1553 if { { ac_try="$ac_cpp conftest.$ac_ext" 1554case "(($ac_try" in 1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1556 *) ac_try_echo=$ac_try;; 1557esac 1558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1559$as_echo "$ac_try_echo"; } >&5 1560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1561 ac_status=$? 1562 if test -s conftest.err; then 1563 grep -v '^ *+' conftest.err >conftest.er1 1564 cat conftest.er1 >&5 1565 mv -f conftest.er1 conftest.err 1566 fi 1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1568 test $ac_status = 0; } > conftest.i && { 1569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1570 test ! -s conftest.err 1571 }; then : 1572 ac_retval=0 1573else 1574 $as_echo "$as_me: failed program was:" >&5 1575sed 's/^/| /' conftest.$ac_ext >&5 1576 1577 ac_retval=1 1578fi 1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1580 as_fn_set_status $ac_retval 1581 1582} # ac_fn_c_try_cpp 1583 1584# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1585# ------------------------------------------------------- 1586# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1587# the include files in INCLUDES and setting the cache variable VAR 1588# accordingly. 1589ac_fn_c_check_header_mongrel () 1590{ 1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1592 if eval \${$3+:} false; then : 1593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1594$as_echo_n "checking for $2... " >&6; } 1595if eval \${$3+:} false; then : 1596 $as_echo_n "(cached) " >&6 1597fi 1598eval ac_res=\$$3 1599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1600$as_echo "$ac_res" >&6; } 1601else 1602 # Is the header compilable? 1603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1604$as_echo_n "checking $2 usability... " >&6; } 1605cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1606/* end confdefs.h. */ 1607$4 1608#include <$2> 1609_ACEOF 1610if ac_fn_c_try_compile "$LINENO"; then : 1611 ac_header_compiler=yes 1612else 1613 ac_header_compiler=no 1614fi 1615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1617$as_echo "$ac_header_compiler" >&6; } 1618 1619# Is the header present? 1620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1621$as_echo_n "checking $2 presence... " >&6; } 1622cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1623/* end confdefs.h. */ 1624#include <$2> 1625_ACEOF 1626if ac_fn_c_try_cpp "$LINENO"; then : 1627 ac_header_preproc=yes 1628else 1629 ac_header_preproc=no 1630fi 1631rm -f conftest.err conftest.i conftest.$ac_ext 1632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1633$as_echo "$ac_header_preproc" >&6; } 1634 1635# So? What about this header? 1636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1637 yes:no: ) 1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1639$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1641$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1642 ;; 1643 no:yes:* ) 1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1645$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1647$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1649$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1651$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1653$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1654( $as_echo "## ---------------------------------------------------------------------- ## 1655## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1656## ---------------------------------------------------------------------- ##" 1657 ) | sed "s/^/$as_me: WARNING: /" >&2 1658 ;; 1659esac 1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1661$as_echo_n "checking for $2... " >&6; } 1662if eval \${$3+:} false; then : 1663 $as_echo_n "(cached) " >&6 1664else 1665 eval "$3=\$ac_header_compiler" 1666fi 1667eval ac_res=\$$3 1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1669$as_echo "$ac_res" >&6; } 1670fi 1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1672 1673} # ac_fn_c_check_header_mongrel 1674 1675# ac_fn_c_try_run LINENO 1676# ---------------------- 1677# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1678# that executables *can* be run. 1679ac_fn_c_try_run () 1680{ 1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1682 if { { ac_try="$ac_link" 1683case "(($ac_try" in 1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1685 *) ac_try_echo=$ac_try;; 1686esac 1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1688$as_echo "$ac_try_echo"; } >&5 1689 (eval "$ac_link") 2>&5 1690 ac_status=$? 1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1692 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1693 { { case "(($ac_try" in 1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1695 *) ac_try_echo=$ac_try;; 1696esac 1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1698$as_echo "$ac_try_echo"; } >&5 1699 (eval "$ac_try") 2>&5 1700 ac_status=$? 1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1702 test $ac_status = 0; }; }; then : 1703 ac_retval=0 1704else 1705 $as_echo "$as_me: program exited with status $ac_status" >&5 1706 $as_echo "$as_me: failed program was:" >&5 1707sed 's/^/| /' conftest.$ac_ext >&5 1708 1709 ac_retval=$ac_status 1710fi 1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1713 as_fn_set_status $ac_retval 1714 1715} # ac_fn_c_try_run 1716 1717# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1718# ------------------------------------------------------- 1719# Tests whether HEADER exists and can be compiled using the include files in 1720# INCLUDES, setting the cache variable VAR accordingly. 1721ac_fn_c_check_header_compile () 1722{ 1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1725$as_echo_n "checking for $2... " >&6; } 1726if eval \${$3+:} false; then : 1727 $as_echo_n "(cached) " >&6 1728else 1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1730/* end confdefs.h. */ 1731$4 1732#include <$2> 1733_ACEOF 1734if ac_fn_c_try_compile "$LINENO"; then : 1735 eval "$3=yes" 1736else 1737 eval "$3=no" 1738fi 1739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1740fi 1741eval ac_res=\$$3 1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1743$as_echo "$ac_res" >&6; } 1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1745 1746} # ac_fn_c_check_header_compile 1747 1748# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1749# --------------------------------------------- 1750# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1751# accordingly. 1752ac_fn_c_check_decl () 1753{ 1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1755 as_decl_name=`echo $2|sed 's/ *(.*//'` 1756 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1758$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1759if eval \${$3+:} false; then : 1760 $as_echo_n "(cached) " >&6 1761else 1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1763/* end confdefs.h. */ 1764$4 1765int 1766main () 1767{ 1768#ifndef $as_decl_name 1769#ifdef __cplusplus 1770 (void) $as_decl_use; 1771#else 1772 (void) $as_decl_name; 1773#endif 1774#endif 1775 1776 ; 1777 return 0; 1778} 1779_ACEOF 1780if ac_fn_c_try_compile "$LINENO"; then : 1781 eval "$3=yes" 1782else 1783 eval "$3=no" 1784fi 1785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1786fi 1787eval ac_res=\$$3 1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1789$as_echo "$ac_res" >&6; } 1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1791 1792} # ac_fn_c_check_decl 1793 1794# ac_fn_c_try_link LINENO 1795# ----------------------- 1796# Try to link conftest.$ac_ext, and return whether this succeeded. 1797ac_fn_c_try_link () 1798{ 1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1800 rm -f conftest.$ac_objext conftest$ac_exeext 1801 if { { ac_try="$ac_link" 1802case "(($ac_try" in 1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1804 *) ac_try_echo=$ac_try;; 1805esac 1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1807$as_echo "$ac_try_echo"; } >&5 1808 (eval "$ac_link") 2>conftest.err 1809 ac_status=$? 1810 if test -s conftest.err; then 1811 grep -v '^ *+' conftest.err >conftest.er1 1812 cat conftest.er1 >&5 1813 mv -f conftest.er1 conftest.err 1814 fi 1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1816 test $ac_status = 0; } && { 1817 test -z "$ac_c_werror_flag" || 1818 test ! -s conftest.err 1819 } && test -s conftest$ac_exeext && { 1820 test "$cross_compiling" = yes || 1821 test -x conftest$ac_exeext 1822 }; then : 1823 ac_retval=0 1824else 1825 $as_echo "$as_me: failed program was:" >&5 1826sed 's/^/| /' conftest.$ac_ext >&5 1827 1828 ac_retval=1 1829fi 1830 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1831 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1832 # interfere with the next link command; also delete a directory that is 1833 # left behind by Apple's compiler. We do this before executing the actions. 1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1836 as_fn_set_status $ac_retval 1837 1838} # ac_fn_c_try_link 1839 1840# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1841# ---------------------------------------------------- 1842# Tries to find if the field MEMBER exists in type AGGR, after including 1843# INCLUDES, setting cache variable VAR accordingly. 1844ac_fn_c_check_member () 1845{ 1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1848$as_echo_n "checking for $2.$3... " >&6; } 1849if eval \${$4+:} false; then : 1850 $as_echo_n "(cached) " >&6 1851else 1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1853/* end confdefs.h. */ 1854$5 1855int 1856main () 1857{ 1858static $2 ac_aggr; 1859if (ac_aggr.$3) 1860return 0; 1861 ; 1862 return 0; 1863} 1864_ACEOF 1865if ac_fn_c_try_compile "$LINENO"; then : 1866 eval "$4=yes" 1867else 1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1869/* end confdefs.h. */ 1870$5 1871int 1872main () 1873{ 1874static $2 ac_aggr; 1875if (sizeof ac_aggr.$3) 1876return 0; 1877 ; 1878 return 0; 1879} 1880_ACEOF 1881if ac_fn_c_try_compile "$LINENO"; then : 1882 eval "$4=yes" 1883else 1884 eval "$4=no" 1885fi 1886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1887fi 1888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1889fi 1890eval ac_res=\$$4 1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1892$as_echo "$ac_res" >&6; } 1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1894 1895} # ac_fn_c_check_member 1896 1897# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1898# ------------------------------------------- 1899# Tests whether TYPE exists after having included INCLUDES, setting cache 1900# variable VAR accordingly. 1901ac_fn_c_check_type () 1902{ 1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1905$as_echo_n "checking for $2... " >&6; } 1906if eval \${$3+:} false; then : 1907 $as_echo_n "(cached) " >&6 1908else 1909 eval "$3=no" 1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1911/* end confdefs.h. */ 1912$4 1913int 1914main () 1915{ 1916if (sizeof ($2)) 1917 return 0; 1918 ; 1919 return 0; 1920} 1921_ACEOF 1922if ac_fn_c_try_compile "$LINENO"; then : 1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1924/* end confdefs.h. */ 1925$4 1926int 1927main () 1928{ 1929if (sizeof (($2))) 1930 return 0; 1931 ; 1932 return 0; 1933} 1934_ACEOF 1935if ac_fn_c_try_compile "$LINENO"; then : 1936 1937else 1938 eval "$3=yes" 1939fi 1940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1941fi 1942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1943fi 1944eval ac_res=\$$3 1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1946$as_echo "$ac_res" >&6; } 1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1948 1949} # ac_fn_c_check_type 1950 1951# ac_fn_c_check_func LINENO FUNC VAR 1952# ---------------------------------- 1953# Tests whether FUNC exists, setting the cache variable VAR accordingly 1954ac_fn_c_check_func () 1955{ 1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1958$as_echo_n "checking for $2... " >&6; } 1959if eval \${$3+:} false; then : 1960 $as_echo_n "(cached) " >&6 1961else 1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1963/* end confdefs.h. */ 1964/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1965 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1966#define $2 innocuous_$2 1967 1968/* System header to define __stub macros and hopefully few prototypes, 1969 which can conflict with char $2 (); below. 1970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1971 <limits.h> exists even on freestanding compilers. */ 1972 1973#ifdef __STDC__ 1974# include <limits.h> 1975#else 1976# include <assert.h> 1977#endif 1978 1979#undef $2 1980 1981/* Override any GCC internal prototype to avoid an error. 1982 Use char because int might match the return type of a GCC 1983 builtin and then its argument prototype would still apply. */ 1984#ifdef __cplusplus 1985extern "C" 1986#endif 1987char $2 (); 1988/* The GNU C library defines this for functions which it implements 1989 to always fail with ENOSYS. Some functions are actually named 1990 something starting with __ and the normal name is an alias. */ 1991#if defined __stub_$2 || defined __stub___$2 1992choke me 1993#endif 1994 1995int 1996main () 1997{ 1998return $2 (); 1999 ; 2000 return 0; 2001} 2002_ACEOF 2003if ac_fn_c_try_link "$LINENO"; then : 2004 eval "$3=yes" 2005else 2006 eval "$3=no" 2007fi 2008rm -f core conftest.err conftest.$ac_objext \ 2009 conftest$ac_exeext conftest.$ac_ext 2010fi 2011eval ac_res=\$$3 2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2013$as_echo "$ac_res" >&6; } 2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2015 2016} # ac_fn_c_check_func 2017cat >config.log <<_ACEOF 2018This file contains any messages produced by compilers while 2019running configure, to aid debugging if configure makes a mistake. 2020 2021It was created by sessreg $as_me 1.1.0, which was 2022generated by GNU Autoconf 2.69. Invocation command line was 2023 2024 $ $0 $@ 2025 2026_ACEOF 2027exec 5>>config.log 2028{ 2029cat <<_ASUNAME 2030## --------- ## 2031## Platform. ## 2032## --------- ## 2033 2034hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2035uname -m = `(uname -m) 2>/dev/null || echo unknown` 2036uname -r = `(uname -r) 2>/dev/null || echo unknown` 2037uname -s = `(uname -s) 2>/dev/null || echo unknown` 2038uname -v = `(uname -v) 2>/dev/null || echo unknown` 2039 2040/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2041/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2042 2043/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2044/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2045/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2046/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2047/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2048/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2049/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2050 2051_ASUNAME 2052 2053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2054for as_dir in $PATH 2055do 2056 IFS=$as_save_IFS 2057 test -z "$as_dir" && as_dir=. 2058 $as_echo "PATH: $as_dir" 2059 done 2060IFS=$as_save_IFS 2061 2062} >&5 2063 2064cat >&5 <<_ACEOF 2065 2066 2067## ----------- ## 2068## Core tests. ## 2069## ----------- ## 2070 2071_ACEOF 2072 2073 2074# Keep a trace of the command line. 2075# Strip out --no-create and --no-recursion so they do not pile up. 2076# Strip out --silent because we don't want to record it for future runs. 2077# Also quote any args containing shell meta-characters. 2078# Make two passes to allow for proper duplicate-argument suppression. 2079ac_configure_args= 2080ac_configure_args0= 2081ac_configure_args1= 2082ac_must_keep_next=false 2083for ac_pass in 1 2 2084do 2085 for ac_arg 2086 do 2087 case $ac_arg in 2088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2090 | -silent | --silent | --silen | --sile | --sil) 2091 continue ;; 2092 *\'*) 2093 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2094 esac 2095 case $ac_pass in 2096 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2097 2) 2098 as_fn_append ac_configure_args1 " '$ac_arg'" 2099 if test $ac_must_keep_next = true; then 2100 ac_must_keep_next=false # Got value, back to normal. 2101 else 2102 case $ac_arg in 2103 *=* | --config-cache | -C | -disable-* | --disable-* \ 2104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2106 | -with-* | --with-* | -without-* | --without-* | --x) 2107 case "$ac_configure_args0 " in 2108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2109 esac 2110 ;; 2111 -* ) ac_must_keep_next=true ;; 2112 esac 2113 fi 2114 as_fn_append ac_configure_args " '$ac_arg'" 2115 ;; 2116 esac 2117 done 2118done 2119{ ac_configure_args0=; unset ac_configure_args0;} 2120{ ac_configure_args1=; unset ac_configure_args1;} 2121 2122# When interrupted or exit'd, cleanup temporary files, and complete 2123# config.log. We remove comments because anyway the quotes in there 2124# would cause problems or look ugly. 2125# WARNING: Use '\'' to represent an apostrophe within the trap. 2126# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2127trap 'exit_status=$? 2128 # Save into config.log some information that might help in debugging. 2129 { 2130 echo 2131 2132 $as_echo "## ---------------- ## 2133## Cache variables. ## 2134## ---------------- ##" 2135 echo 2136 # The following way of writing the cache mishandles newlines in values, 2137( 2138 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2139 eval ac_val=\$$ac_var 2140 case $ac_val in #( 2141 *${as_nl}*) 2142 case $ac_var in #( 2143 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2144$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2145 esac 2146 case $ac_var in #( 2147 _ | IFS | as_nl) ;; #( 2148 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2149 *) { eval $ac_var=; unset $ac_var;} ;; 2150 esac ;; 2151 esac 2152 done 2153 (set) 2>&1 | 2154 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2155 *${as_nl}ac_space=\ *) 2156 sed -n \ 2157 "s/'\''/'\''\\\\'\'''\''/g; 2158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2159 ;; #( 2160 *) 2161 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2162 ;; 2163 esac | 2164 sort 2165) 2166 echo 2167 2168 $as_echo "## ----------------- ## 2169## Output variables. ## 2170## ----------------- ##" 2171 echo 2172 for ac_var in $ac_subst_vars 2173 do 2174 eval ac_val=\$$ac_var 2175 case $ac_val in 2176 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2177 esac 2178 $as_echo "$ac_var='\''$ac_val'\''" 2179 done | sort 2180 echo 2181 2182 if test -n "$ac_subst_files"; then 2183 $as_echo "## ------------------- ## 2184## File substitutions. ## 2185## ------------------- ##" 2186 echo 2187 for ac_var in $ac_subst_files 2188 do 2189 eval ac_val=\$$ac_var 2190 case $ac_val in 2191 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2192 esac 2193 $as_echo "$ac_var='\''$ac_val'\''" 2194 done | sort 2195 echo 2196 fi 2197 2198 if test -s confdefs.h; then 2199 $as_echo "## ----------- ## 2200## confdefs.h. ## 2201## ----------- ##" 2202 echo 2203 cat confdefs.h 2204 echo 2205 fi 2206 test "$ac_signal" != 0 && 2207 $as_echo "$as_me: caught signal $ac_signal" 2208 $as_echo "$as_me: exit $exit_status" 2209 } >&5 2210 rm -f core *.core core.conftest.* && 2211 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2212 exit $exit_status 2213' 0 2214for ac_signal in 1 2 13 15; do 2215 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2216done 2217ac_signal=0 2218 2219# confdefs.h avoids OS command line length limits that DEFS can exceed. 2220rm -f -r conftest* confdefs.h 2221 2222$as_echo "/* confdefs.h */" > confdefs.h 2223 2224# Predefined preprocessor variables. 2225 2226cat >>confdefs.h <<_ACEOF 2227#define PACKAGE_NAME "$PACKAGE_NAME" 2228_ACEOF 2229 2230cat >>confdefs.h <<_ACEOF 2231#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2232_ACEOF 2233 2234cat >>confdefs.h <<_ACEOF 2235#define PACKAGE_VERSION "$PACKAGE_VERSION" 2236_ACEOF 2237 2238cat >>confdefs.h <<_ACEOF 2239#define PACKAGE_STRING "$PACKAGE_STRING" 2240_ACEOF 2241 2242cat >>confdefs.h <<_ACEOF 2243#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2244_ACEOF 2245 2246cat >>confdefs.h <<_ACEOF 2247#define PACKAGE_URL "$PACKAGE_URL" 2248_ACEOF 2249 2250 2251# Let the site file select an alternate cache file if it wants to. 2252# Prefer an explicitly selected file to automatically selected ones. 2253ac_site_file1=NONE 2254ac_site_file2=NONE 2255if test -n "$CONFIG_SITE"; then 2256 # We do not want a PATH search for config.site. 2257 case $CONFIG_SITE in #(( 2258 -*) ac_site_file1=./$CONFIG_SITE;; 2259 */*) ac_site_file1=$CONFIG_SITE;; 2260 *) ac_site_file1=./$CONFIG_SITE;; 2261 esac 2262elif test "x$prefix" != xNONE; then 2263 ac_site_file1=$prefix/share/config.site 2264 ac_site_file2=$prefix/etc/config.site 2265else 2266 ac_site_file1=$ac_default_prefix/share/config.site 2267 ac_site_file2=$ac_default_prefix/etc/config.site 2268fi 2269for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2270do 2271 test "x$ac_site_file" = xNONE && continue 2272 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2274$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2275 sed 's/^/| /' "$ac_site_file" >&5 2276 . "$ac_site_file" \ 2277 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2279as_fn_error $? "failed to load site script $ac_site_file 2280See \`config.log' for more details" "$LINENO" 5; } 2281 fi 2282done 2283 2284if test -r "$cache_file"; then 2285 # Some versions of bash will fail to source /dev/null (special files 2286 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2287 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2289$as_echo "$as_me: loading cache $cache_file" >&6;} 2290 case $cache_file in 2291 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2292 *) . "./$cache_file";; 2293 esac 2294 fi 2295else 2296 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2297$as_echo "$as_me: creating cache $cache_file" >&6;} 2298 >$cache_file 2299fi 2300 2301# Check that the precious variables saved in the cache have kept the same 2302# value. 2303ac_cache_corrupted=false 2304for ac_var in $ac_precious_vars; do 2305 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2306 eval ac_new_set=\$ac_env_${ac_var}_set 2307 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2308 eval ac_new_val=\$ac_env_${ac_var}_value 2309 case $ac_old_set,$ac_new_set in 2310 set,) 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2312$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2313 ac_cache_corrupted=: ;; 2314 ,set) 2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2316$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2317 ac_cache_corrupted=: ;; 2318 ,);; 2319 *) 2320 if test "x$ac_old_val" != "x$ac_new_val"; then 2321 # differences in whitespace do not lead to failure. 2322 ac_old_val_w=`echo x $ac_old_val` 2323 ac_new_val_w=`echo x $ac_new_val` 2324 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2326$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2327 ac_cache_corrupted=: 2328 else 2329 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2330$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2331 eval $ac_var=\$ac_old_val 2332 fi 2333 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2334$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2335 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2336$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2337 fi;; 2338 esac 2339 # Pass precious variables to config.status. 2340 if test "$ac_new_set" = set; then 2341 case $ac_new_val in 2342 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2343 *) ac_arg=$ac_var=$ac_new_val ;; 2344 esac 2345 case " $ac_configure_args " in 2346 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2347 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2348 esac 2349 fi 2350done 2351if $ac_cache_corrupted; then 2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2355$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2356 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2357fi 2358## -------------------- ## 2359## Main body of script. ## 2360## -------------------- ## 2361 2362ac_ext=c 2363ac_cpp='$CPP $CPPFLAGS' 2364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2366ac_compiler_gnu=$ac_cv_c_compiler_gnu 2367 2368 2369 2370ac_config_headers="$ac_config_headers config.h" 2371 2372ac_aux_dir= 2373for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2374 if test -f "$ac_dir/install-sh"; then 2375 ac_aux_dir=$ac_dir 2376 ac_install_sh="$ac_aux_dir/install-sh -c" 2377 break 2378 elif test -f "$ac_dir/install.sh"; then 2379 ac_aux_dir=$ac_dir 2380 ac_install_sh="$ac_aux_dir/install.sh -c" 2381 break 2382 elif test -f "$ac_dir/shtool"; then 2383 ac_aux_dir=$ac_dir 2384 ac_install_sh="$ac_aux_dir/shtool install -c" 2385 break 2386 fi 2387done 2388if test -z "$ac_aux_dir"; then 2389 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2390fi 2391 2392# These three variables are undocumented and unsupported, 2393# and are intended to be withdrawn in a future Autoconf release. 2394# They can cause serious problems if a builder's source tree is in a directory 2395# whose full name contains unusual characters. 2396ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2397ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2398ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2399 2400 2401# Expand $ac_aux_dir to an absolute path. 2402am_aux_dir=`cd "$ac_aux_dir" && pwd` 2403 2404ac_ext=c 2405ac_cpp='$CPP $CPPFLAGS' 2406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2408ac_compiler_gnu=$ac_cv_c_compiler_gnu 2409if test -n "$ac_tool_prefix"; then 2410 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2411set dummy ${ac_tool_prefix}gcc; ac_word=$2 2412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2413$as_echo_n "checking for $ac_word... " >&6; } 2414if ${ac_cv_prog_CC+:} false; then : 2415 $as_echo_n "(cached) " >&6 2416else 2417 if test -n "$CC"; then 2418 ac_cv_prog_CC="$CC" # Let the user override the test. 2419else 2420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2421for as_dir in $PATH 2422do 2423 IFS=$as_save_IFS 2424 test -z "$as_dir" && as_dir=. 2425 for ac_exec_ext in '' $ac_executable_extensions; do 2426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2427 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2429 break 2 2430 fi 2431done 2432 done 2433IFS=$as_save_IFS 2434 2435fi 2436fi 2437CC=$ac_cv_prog_CC 2438if test -n "$CC"; then 2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2440$as_echo "$CC" >&6; } 2441else 2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2443$as_echo "no" >&6; } 2444fi 2445 2446 2447fi 2448if test -z "$ac_cv_prog_CC"; then 2449 ac_ct_CC=$CC 2450 # Extract the first word of "gcc", so it can be a program name with args. 2451set dummy gcc; ac_word=$2 2452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2453$as_echo_n "checking for $ac_word... " >&6; } 2454if ${ac_cv_prog_ac_ct_CC+:} false; then : 2455 $as_echo_n "(cached) " >&6 2456else 2457 if test -n "$ac_ct_CC"; then 2458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2459else 2460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2461for as_dir in $PATH 2462do 2463 IFS=$as_save_IFS 2464 test -z "$as_dir" && as_dir=. 2465 for ac_exec_ext in '' $ac_executable_extensions; do 2466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2467 ac_cv_prog_ac_ct_CC="gcc" 2468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2469 break 2 2470 fi 2471done 2472 done 2473IFS=$as_save_IFS 2474 2475fi 2476fi 2477ac_ct_CC=$ac_cv_prog_ac_ct_CC 2478if test -n "$ac_ct_CC"; then 2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2480$as_echo "$ac_ct_CC" >&6; } 2481else 2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2483$as_echo "no" >&6; } 2484fi 2485 2486 if test "x$ac_ct_CC" = x; then 2487 CC="" 2488 else 2489 case $cross_compiling:$ac_tool_warned in 2490yes:) 2491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2493ac_tool_warned=yes ;; 2494esac 2495 CC=$ac_ct_CC 2496 fi 2497else 2498 CC="$ac_cv_prog_CC" 2499fi 2500 2501if test -z "$CC"; then 2502 if test -n "$ac_tool_prefix"; then 2503 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2504set dummy ${ac_tool_prefix}cc; ac_word=$2 2505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2506$as_echo_n "checking for $ac_word... " >&6; } 2507if ${ac_cv_prog_CC+:} false; then : 2508 $as_echo_n "(cached) " >&6 2509else 2510 if test -n "$CC"; then 2511 ac_cv_prog_CC="$CC" # Let the user override the test. 2512else 2513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2514for as_dir in $PATH 2515do 2516 IFS=$as_save_IFS 2517 test -z "$as_dir" && as_dir=. 2518 for ac_exec_ext in '' $ac_executable_extensions; do 2519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2520 ac_cv_prog_CC="${ac_tool_prefix}cc" 2521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2522 break 2 2523 fi 2524done 2525 done 2526IFS=$as_save_IFS 2527 2528fi 2529fi 2530CC=$ac_cv_prog_CC 2531if test -n "$CC"; then 2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2533$as_echo "$CC" >&6; } 2534else 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2536$as_echo "no" >&6; } 2537fi 2538 2539 2540 fi 2541fi 2542if test -z "$CC"; then 2543 # Extract the first word of "cc", so it can be a program name with args. 2544set dummy cc; ac_word=$2 2545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2546$as_echo_n "checking for $ac_word... " >&6; } 2547if ${ac_cv_prog_CC+:} false; then : 2548 $as_echo_n "(cached) " >&6 2549else 2550 if test -n "$CC"; then 2551 ac_cv_prog_CC="$CC" # Let the user override the test. 2552else 2553 ac_prog_rejected=no 2554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2555for as_dir in $PATH 2556do 2557 IFS=$as_save_IFS 2558 test -z "$as_dir" && as_dir=. 2559 for ac_exec_ext in '' $ac_executable_extensions; do 2560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2561 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2562 ac_prog_rejected=yes 2563 continue 2564 fi 2565 ac_cv_prog_CC="cc" 2566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2567 break 2 2568 fi 2569done 2570 done 2571IFS=$as_save_IFS 2572 2573if test $ac_prog_rejected = yes; then 2574 # We found a bogon in the path, so make sure we never use it. 2575 set dummy $ac_cv_prog_CC 2576 shift 2577 if test $# != 0; then 2578 # We chose a different compiler from the bogus one. 2579 # However, it has the same basename, so the bogon will be chosen 2580 # first if we set CC to just the basename; use the full file name. 2581 shift 2582 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2583 fi 2584fi 2585fi 2586fi 2587CC=$ac_cv_prog_CC 2588if test -n "$CC"; then 2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2590$as_echo "$CC" >&6; } 2591else 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2593$as_echo "no" >&6; } 2594fi 2595 2596 2597fi 2598if test -z "$CC"; then 2599 if test -n "$ac_tool_prefix"; then 2600 for ac_prog in cl.exe 2601 do 2602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2603set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2605$as_echo_n "checking for $ac_word... " >&6; } 2606if ${ac_cv_prog_CC+:} false; then : 2607 $as_echo_n "(cached) " >&6 2608else 2609 if test -n "$CC"; then 2610 ac_cv_prog_CC="$CC" # Let the user override the test. 2611else 2612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2613for as_dir in $PATH 2614do 2615 IFS=$as_save_IFS 2616 test -z "$as_dir" && as_dir=. 2617 for ac_exec_ext in '' $ac_executable_extensions; do 2618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2619 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2621 break 2 2622 fi 2623done 2624 done 2625IFS=$as_save_IFS 2626 2627fi 2628fi 2629CC=$ac_cv_prog_CC 2630if test -n "$CC"; then 2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2632$as_echo "$CC" >&6; } 2633else 2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2635$as_echo "no" >&6; } 2636fi 2637 2638 2639 test -n "$CC" && break 2640 done 2641fi 2642if test -z "$CC"; then 2643 ac_ct_CC=$CC 2644 for ac_prog in cl.exe 2645do 2646 # Extract the first word of "$ac_prog", so it can be a program name with args. 2647set dummy $ac_prog; ac_word=$2 2648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2649$as_echo_n "checking for $ac_word... " >&6; } 2650if ${ac_cv_prog_ac_ct_CC+:} false; then : 2651 $as_echo_n "(cached) " >&6 2652else 2653 if test -n "$ac_ct_CC"; then 2654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2655else 2656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2657for as_dir in $PATH 2658do 2659 IFS=$as_save_IFS 2660 test -z "$as_dir" && as_dir=. 2661 for ac_exec_ext in '' $ac_executable_extensions; do 2662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2663 ac_cv_prog_ac_ct_CC="$ac_prog" 2664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2665 break 2 2666 fi 2667done 2668 done 2669IFS=$as_save_IFS 2670 2671fi 2672fi 2673ac_ct_CC=$ac_cv_prog_ac_ct_CC 2674if test -n "$ac_ct_CC"; then 2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2676$as_echo "$ac_ct_CC" >&6; } 2677else 2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2679$as_echo "no" >&6; } 2680fi 2681 2682 2683 test -n "$ac_ct_CC" && break 2684done 2685 2686 if test "x$ac_ct_CC" = x; then 2687 CC="" 2688 else 2689 case $cross_compiling:$ac_tool_warned in 2690yes:) 2691{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2692$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2693ac_tool_warned=yes ;; 2694esac 2695 CC=$ac_ct_CC 2696 fi 2697fi 2698 2699fi 2700 2701 2702test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2703$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2704as_fn_error $? "no acceptable C compiler found in \$PATH 2705See \`config.log' for more details" "$LINENO" 5; } 2706 2707# Provide some information about the compiler. 2708$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2709set X $ac_compile 2710ac_compiler=$2 2711for ac_option in --version -v -V -qversion; do 2712 { { ac_try="$ac_compiler $ac_option >&5" 2713case "(($ac_try" in 2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2715 *) ac_try_echo=$ac_try;; 2716esac 2717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2718$as_echo "$ac_try_echo"; } >&5 2719 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2720 ac_status=$? 2721 if test -s conftest.err; then 2722 sed '10a\ 2723... rest of stderr output deleted ... 2724 10q' conftest.err >conftest.er1 2725 cat conftest.er1 >&5 2726 fi 2727 rm -f conftest.er1 conftest.err 2728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2729 test $ac_status = 0; } 2730done 2731 2732cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2733/* end confdefs.h. */ 2734 2735int 2736main () 2737{ 2738 2739 ; 2740 return 0; 2741} 2742_ACEOF 2743ac_clean_files_save=$ac_clean_files 2744ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2745# Try to create an executable without -o first, disregard a.out. 2746# It will help us diagnose broken compilers, and finding out an intuition 2747# of exeext. 2748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2749$as_echo_n "checking whether the C compiler works... " >&6; } 2750ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2751 2752# The possible output files: 2753ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2754 2755ac_rmfiles= 2756for ac_file in $ac_files 2757do 2758 case $ac_file in 2759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2760 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2761 esac 2762done 2763rm -f $ac_rmfiles 2764 2765if { { ac_try="$ac_link_default" 2766case "(($ac_try" in 2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2768 *) ac_try_echo=$ac_try;; 2769esac 2770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2771$as_echo "$ac_try_echo"; } >&5 2772 (eval "$ac_link_default") 2>&5 2773 ac_status=$? 2774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2775 test $ac_status = 0; }; then : 2776 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2777# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2778# in a Makefile. We should not override ac_cv_exeext if it was cached, 2779# so that the user can short-circuit this test for compilers unknown to 2780# Autoconf. 2781for ac_file in $ac_files '' 2782do 2783 test -f "$ac_file" || continue 2784 case $ac_file in 2785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2786 ;; 2787 [ab].out ) 2788 # We found the default executable, but exeext='' is most 2789 # certainly right. 2790 break;; 2791 *.* ) 2792 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2793 then :; else 2794 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2795 fi 2796 # We set ac_cv_exeext here because the later test for it is not 2797 # safe: cross compilers may not add the suffix if given an `-o' 2798 # argument, so we may need to know it at that point already. 2799 # Even if this section looks crufty: it has the advantage of 2800 # actually working. 2801 break;; 2802 * ) 2803 break;; 2804 esac 2805done 2806test "$ac_cv_exeext" = no && ac_cv_exeext= 2807 2808else 2809 ac_file='' 2810fi 2811if test -z "$ac_file"; then : 2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2813$as_echo "no" >&6; } 2814$as_echo "$as_me: failed program was:" >&5 2815sed 's/^/| /' conftest.$ac_ext >&5 2816 2817{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2818$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2819as_fn_error 77 "C compiler cannot create executables 2820See \`config.log' for more details" "$LINENO" 5; } 2821else 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2823$as_echo "yes" >&6; } 2824fi 2825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2826$as_echo_n "checking for C compiler default output file name... " >&6; } 2827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2828$as_echo "$ac_file" >&6; } 2829ac_exeext=$ac_cv_exeext 2830 2831rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2832ac_clean_files=$ac_clean_files_save 2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2834$as_echo_n "checking for suffix of executables... " >&6; } 2835if { { ac_try="$ac_link" 2836case "(($ac_try" in 2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2838 *) ac_try_echo=$ac_try;; 2839esac 2840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2841$as_echo "$ac_try_echo"; } >&5 2842 (eval "$ac_link") 2>&5 2843 ac_status=$? 2844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2845 test $ac_status = 0; }; then : 2846 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2847# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2848# work properly (i.e., refer to `conftest.exe'), while it won't with 2849# `rm'. 2850for ac_file in conftest.exe conftest conftest.*; do 2851 test -f "$ac_file" || continue 2852 case $ac_file in 2853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2854 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2855 break;; 2856 * ) break;; 2857 esac 2858done 2859else 2860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2861$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2862as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2863See \`config.log' for more details" "$LINENO" 5; } 2864fi 2865rm -f conftest conftest$ac_cv_exeext 2866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2867$as_echo "$ac_cv_exeext" >&6; } 2868 2869rm -f conftest.$ac_ext 2870EXEEXT=$ac_cv_exeext 2871ac_exeext=$EXEEXT 2872cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2873/* end confdefs.h. */ 2874#include <stdio.h> 2875int 2876main () 2877{ 2878FILE *f = fopen ("conftest.out", "w"); 2879 return ferror (f) || fclose (f) != 0; 2880 2881 ; 2882 return 0; 2883} 2884_ACEOF 2885ac_clean_files="$ac_clean_files conftest.out" 2886# Check that the compiler produces executables we can run. If not, either 2887# the compiler is broken, or we cross compile. 2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2889$as_echo_n "checking whether we are cross compiling... " >&6; } 2890if test "$cross_compiling" != yes; then 2891 { { ac_try="$ac_link" 2892case "(($ac_try" in 2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2894 *) ac_try_echo=$ac_try;; 2895esac 2896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2897$as_echo "$ac_try_echo"; } >&5 2898 (eval "$ac_link") 2>&5 2899 ac_status=$? 2900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2901 test $ac_status = 0; } 2902 if { ac_try='./conftest$ac_cv_exeext' 2903 { { case "(($ac_try" in 2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2905 *) ac_try_echo=$ac_try;; 2906esac 2907eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2908$as_echo "$ac_try_echo"; } >&5 2909 (eval "$ac_try") 2>&5 2910 ac_status=$? 2911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2912 test $ac_status = 0; }; }; then 2913 cross_compiling=no 2914 else 2915 if test "$cross_compiling" = maybe; then 2916 cross_compiling=yes 2917 else 2918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2919$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2920as_fn_error $? "cannot run C compiled programs. 2921If you meant to cross compile, use \`--host'. 2922See \`config.log' for more details" "$LINENO" 5; } 2923 fi 2924 fi 2925fi 2926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2927$as_echo "$cross_compiling" >&6; } 2928 2929rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2930ac_clean_files=$ac_clean_files_save 2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2932$as_echo_n "checking for suffix of object files... " >&6; } 2933if ${ac_cv_objext+:} false; then : 2934 $as_echo_n "(cached) " >&6 2935else 2936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2937/* end confdefs.h. */ 2938 2939int 2940main () 2941{ 2942 2943 ; 2944 return 0; 2945} 2946_ACEOF 2947rm -f conftest.o conftest.obj 2948if { { ac_try="$ac_compile" 2949case "(($ac_try" in 2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2951 *) ac_try_echo=$ac_try;; 2952esac 2953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2954$as_echo "$ac_try_echo"; } >&5 2955 (eval "$ac_compile") 2>&5 2956 ac_status=$? 2957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2958 test $ac_status = 0; }; then : 2959 for ac_file in conftest.o conftest.obj conftest.*; do 2960 test -f "$ac_file" || continue; 2961 case $ac_file in 2962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2963 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2964 break;; 2965 esac 2966done 2967else 2968 $as_echo "$as_me: failed program was:" >&5 2969sed 's/^/| /' conftest.$ac_ext >&5 2970 2971{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2972$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2973as_fn_error $? "cannot compute suffix of object files: cannot compile 2974See \`config.log' for more details" "$LINENO" 5; } 2975fi 2976rm -f conftest.$ac_cv_objext conftest.$ac_ext 2977fi 2978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2979$as_echo "$ac_cv_objext" >&6; } 2980OBJEXT=$ac_cv_objext 2981ac_objext=$OBJEXT 2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2983$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2984if ${ac_cv_c_compiler_gnu+:} false; then : 2985 $as_echo_n "(cached) " >&6 2986else 2987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2988/* end confdefs.h. */ 2989 2990int 2991main () 2992{ 2993#ifndef __GNUC__ 2994 choke me 2995#endif 2996 2997 ; 2998 return 0; 2999} 3000_ACEOF 3001if ac_fn_c_try_compile "$LINENO"; then : 3002 ac_compiler_gnu=yes 3003else 3004 ac_compiler_gnu=no 3005fi 3006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3007ac_cv_c_compiler_gnu=$ac_compiler_gnu 3008 3009fi 3010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3011$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3012if test $ac_compiler_gnu = yes; then 3013 GCC=yes 3014else 3015 GCC= 3016fi 3017ac_test_CFLAGS=${CFLAGS+set} 3018ac_save_CFLAGS=$CFLAGS 3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3020$as_echo_n "checking whether $CC accepts -g... " >&6; } 3021if ${ac_cv_prog_cc_g+:} false; then : 3022 $as_echo_n "(cached) " >&6 3023else 3024 ac_save_c_werror_flag=$ac_c_werror_flag 3025 ac_c_werror_flag=yes 3026 ac_cv_prog_cc_g=no 3027 CFLAGS="-g" 3028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3029/* end confdefs.h. */ 3030 3031int 3032main () 3033{ 3034 3035 ; 3036 return 0; 3037} 3038_ACEOF 3039if ac_fn_c_try_compile "$LINENO"; then : 3040 ac_cv_prog_cc_g=yes 3041else 3042 CFLAGS="" 3043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3044/* end confdefs.h. */ 3045 3046int 3047main () 3048{ 3049 3050 ; 3051 return 0; 3052} 3053_ACEOF 3054if ac_fn_c_try_compile "$LINENO"; then : 3055 3056else 3057 ac_c_werror_flag=$ac_save_c_werror_flag 3058 CFLAGS="-g" 3059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3060/* end confdefs.h. */ 3061 3062int 3063main () 3064{ 3065 3066 ; 3067 return 0; 3068} 3069_ACEOF 3070if ac_fn_c_try_compile "$LINENO"; then : 3071 ac_cv_prog_cc_g=yes 3072fi 3073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3074fi 3075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3076fi 3077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3078 ac_c_werror_flag=$ac_save_c_werror_flag 3079fi 3080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3081$as_echo "$ac_cv_prog_cc_g" >&6; } 3082if test "$ac_test_CFLAGS" = set; then 3083 CFLAGS=$ac_save_CFLAGS 3084elif test $ac_cv_prog_cc_g = yes; then 3085 if test "$GCC" = yes; then 3086 CFLAGS="-g -O2" 3087 else 3088 CFLAGS="-g" 3089 fi 3090else 3091 if test "$GCC" = yes; then 3092 CFLAGS="-O2" 3093 else 3094 CFLAGS= 3095 fi 3096fi 3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3098$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3099if ${ac_cv_prog_cc_c89+:} false; then : 3100 $as_echo_n "(cached) " >&6 3101else 3102 ac_cv_prog_cc_c89=no 3103ac_save_CC=$CC 3104cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3105/* end confdefs.h. */ 3106#include <stdarg.h> 3107#include <stdio.h> 3108struct stat; 3109/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3110struct buf { int x; }; 3111FILE * (*rcsopen) (struct buf *, struct stat *, int); 3112static char *e (p, i) 3113 char **p; 3114 int i; 3115{ 3116 return p[i]; 3117} 3118static char *f (char * (*g) (char **, int), char **p, ...) 3119{ 3120 char *s; 3121 va_list v; 3122 va_start (v,p); 3123 s = g (p, va_arg (v,int)); 3124 va_end (v); 3125 return s; 3126} 3127 3128/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3129 function prototypes and stuff, but not '\xHH' hex character constants. 3130 These don't provoke an error unfortunately, instead are silently treated 3131 as 'x'. The following induces an error, until -std is added to get 3132 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3133 array size at least. It's necessary to write '\x00'==0 to get something 3134 that's true only with -std. */ 3135int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3136 3137/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3138 inside strings and character constants. */ 3139#define FOO(x) 'x' 3140int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3141 3142int test (int i, double x); 3143struct s1 {int (*f) (int a);}; 3144struct s2 {int (*f) (double a);}; 3145int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3146int argc; 3147char **argv; 3148int 3149main () 3150{ 3151return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3152 ; 3153 return 0; 3154} 3155_ACEOF 3156for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3157 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3158do 3159 CC="$ac_save_CC $ac_arg" 3160 if ac_fn_c_try_compile "$LINENO"; then : 3161 ac_cv_prog_cc_c89=$ac_arg 3162fi 3163rm -f core conftest.err conftest.$ac_objext 3164 test "x$ac_cv_prog_cc_c89" != "xno" && break 3165done 3166rm -f conftest.$ac_ext 3167CC=$ac_save_CC 3168 3169fi 3170# AC_CACHE_VAL 3171case "x$ac_cv_prog_cc_c89" in 3172 x) 3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3174$as_echo "none needed" >&6; } ;; 3175 xno) 3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3177$as_echo "unsupported" >&6; } ;; 3178 *) 3179 CC="$CC $ac_cv_prog_cc_c89" 3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3181$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3182esac 3183if test "x$ac_cv_prog_cc_c89" != xno; then : 3184 3185fi 3186 3187ac_ext=c 3188ac_cpp='$CPP $CPPFLAGS' 3189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3191ac_compiler_gnu=$ac_cv_c_compiler_gnu 3192 3193ac_ext=c 3194ac_cpp='$CPP $CPPFLAGS' 3195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3197ac_compiler_gnu=$ac_cv_c_compiler_gnu 3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3199$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3200if ${am_cv_prog_cc_c_o+:} false; then : 3201 $as_echo_n "(cached) " >&6 3202else 3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3204/* end confdefs.h. */ 3205 3206int 3207main () 3208{ 3209 3210 ; 3211 return 0; 3212} 3213_ACEOF 3214 # Make sure it works both with $CC and with simple cc. 3215 # Following AC_PROG_CC_C_O, we do the test twice because some 3216 # compilers refuse to overwrite an existing .o file with -o, 3217 # though they will create one. 3218 am_cv_prog_cc_c_o=yes 3219 for am_i in 1 2; do 3220 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3221 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3222 ac_status=$? 3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3224 (exit $ac_status); } \ 3225 && test -f conftest2.$ac_objext; then 3226 : OK 3227 else 3228 am_cv_prog_cc_c_o=no 3229 break 3230 fi 3231 done 3232 rm -f core conftest* 3233 unset am_i 3234fi 3235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3236$as_echo "$am_cv_prog_cc_c_o" >&6; } 3237if test "$am_cv_prog_cc_c_o" != yes; then 3238 # Losing compiler, so override with the script. 3239 # FIXME: It is wrong to rewrite CC. 3240 # But if we don't then we get into trouble of one sort or another. 3241 # A longer-term fix would be to have automake use am__CC in this case, 3242 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3243 CC="$am_aux_dir/compile $CC" 3244fi 3245ac_ext=c 3246ac_cpp='$CPP $CPPFLAGS' 3247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3249ac_compiler_gnu=$ac_cv_c_compiler_gnu 3250 3251 3252 3253ac_ext=c 3254ac_cpp='$CPP $CPPFLAGS' 3255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3257ac_compiler_gnu=$ac_cv_c_compiler_gnu 3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3259$as_echo_n "checking how to run the C preprocessor... " >&6; } 3260# On Suns, sometimes $CPP names a directory. 3261if test -n "$CPP" && test -d "$CPP"; then 3262 CPP= 3263fi 3264if test -z "$CPP"; then 3265 if ${ac_cv_prog_CPP+:} false; then : 3266 $as_echo_n "(cached) " >&6 3267else 3268 # Double quotes because CPP needs to be expanded 3269 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3270 do 3271 ac_preproc_ok=false 3272for ac_c_preproc_warn_flag in '' yes 3273do 3274 # Use a header file that comes with gcc, so configuring glibc 3275 # with a fresh cross-compiler works. 3276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3277 # <limits.h> exists even on freestanding compilers. 3278 # On the NeXT, cc -E runs the code through the compiler's parser, 3279 # not just through cpp. "Syntax error" is here to catch this case. 3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3281/* end confdefs.h. */ 3282#ifdef __STDC__ 3283# include <limits.h> 3284#else 3285# include <assert.h> 3286#endif 3287 Syntax error 3288_ACEOF 3289if ac_fn_c_try_cpp "$LINENO"; then : 3290 3291else 3292 # Broken: fails on valid input. 3293continue 3294fi 3295rm -f conftest.err conftest.i conftest.$ac_ext 3296 3297 # OK, works on sane cases. Now check whether nonexistent headers 3298 # can be detected and how. 3299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3300/* end confdefs.h. */ 3301#include <ac_nonexistent.h> 3302_ACEOF 3303if ac_fn_c_try_cpp "$LINENO"; then : 3304 # Broken: success on invalid input. 3305continue 3306else 3307 # Passes both tests. 3308ac_preproc_ok=: 3309break 3310fi 3311rm -f conftest.err conftest.i conftest.$ac_ext 3312 3313done 3314# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3315rm -f conftest.i conftest.err conftest.$ac_ext 3316if $ac_preproc_ok; then : 3317 break 3318fi 3319 3320 done 3321 ac_cv_prog_CPP=$CPP 3322 3323fi 3324 CPP=$ac_cv_prog_CPP 3325else 3326 ac_cv_prog_CPP=$CPP 3327fi 3328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3329$as_echo "$CPP" >&6; } 3330ac_preproc_ok=false 3331for ac_c_preproc_warn_flag in '' yes 3332do 3333 # Use a header file that comes with gcc, so configuring glibc 3334 # with a fresh cross-compiler works. 3335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3336 # <limits.h> exists even on freestanding compilers. 3337 # On the NeXT, cc -E runs the code through the compiler's parser, 3338 # not just through cpp. "Syntax error" is here to catch this case. 3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3340/* end confdefs.h. */ 3341#ifdef __STDC__ 3342# include <limits.h> 3343#else 3344# include <assert.h> 3345#endif 3346 Syntax error 3347_ACEOF 3348if ac_fn_c_try_cpp "$LINENO"; then : 3349 3350else 3351 # Broken: fails on valid input. 3352continue 3353fi 3354rm -f conftest.err conftest.i conftest.$ac_ext 3355 3356 # OK, works on sane cases. Now check whether nonexistent headers 3357 # can be detected and how. 3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3359/* end confdefs.h. */ 3360#include <ac_nonexistent.h> 3361_ACEOF 3362if ac_fn_c_try_cpp "$LINENO"; then : 3363 # Broken: success on invalid input. 3364continue 3365else 3366 # Passes both tests. 3367ac_preproc_ok=: 3368break 3369fi 3370rm -f conftest.err conftest.i conftest.$ac_ext 3371 3372done 3373# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3374rm -f conftest.i conftest.err conftest.$ac_ext 3375if $ac_preproc_ok; then : 3376 3377else 3378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3380as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3381See \`config.log' for more details" "$LINENO" 5; } 3382fi 3383 3384ac_ext=c 3385ac_cpp='$CPP $CPPFLAGS' 3386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3388ac_compiler_gnu=$ac_cv_c_compiler_gnu 3389 3390 3391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3392$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3393if ${ac_cv_path_GREP+:} false; then : 3394 $as_echo_n "(cached) " >&6 3395else 3396 if test -z "$GREP"; then 3397 ac_path_GREP_found=false 3398 # Loop through the user's path and test for each of PROGNAME-LIST 3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3400for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3401do 3402 IFS=$as_save_IFS 3403 test -z "$as_dir" && as_dir=. 3404 for ac_prog in grep ggrep; do 3405 for ac_exec_ext in '' $ac_executable_extensions; do 3406 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3407 as_fn_executable_p "$ac_path_GREP" || continue 3408# Check for GNU ac_path_GREP and select it if it is found. 3409 # Check for GNU $ac_path_GREP 3410case `"$ac_path_GREP" --version 2>&1` in 3411*GNU*) 3412 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3413*) 3414 ac_count=0 3415 $as_echo_n 0123456789 >"conftest.in" 3416 while : 3417 do 3418 cat "conftest.in" "conftest.in" >"conftest.tmp" 3419 mv "conftest.tmp" "conftest.in" 3420 cp "conftest.in" "conftest.nl" 3421 $as_echo 'GREP' >> "conftest.nl" 3422 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3423 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3424 as_fn_arith $ac_count + 1 && ac_count=$as_val 3425 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3426 # Best one so far, save it but keep looking for a better one 3427 ac_cv_path_GREP="$ac_path_GREP" 3428 ac_path_GREP_max=$ac_count 3429 fi 3430 # 10*(2^10) chars as input seems more than enough 3431 test $ac_count -gt 10 && break 3432 done 3433 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3434esac 3435 3436 $ac_path_GREP_found && break 3 3437 done 3438 done 3439 done 3440IFS=$as_save_IFS 3441 if test -z "$ac_cv_path_GREP"; then 3442 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3443 fi 3444else 3445 ac_cv_path_GREP=$GREP 3446fi 3447 3448fi 3449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3450$as_echo "$ac_cv_path_GREP" >&6; } 3451 GREP="$ac_cv_path_GREP" 3452 3453 3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3455$as_echo_n "checking for egrep... " >&6; } 3456if ${ac_cv_path_EGREP+:} false; then : 3457 $as_echo_n "(cached) " >&6 3458else 3459 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3460 then ac_cv_path_EGREP="$GREP -E" 3461 else 3462 if test -z "$EGREP"; then 3463 ac_path_EGREP_found=false 3464 # Loop through the user's path and test for each of PROGNAME-LIST 3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3466for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3467do 3468 IFS=$as_save_IFS 3469 test -z "$as_dir" && as_dir=. 3470 for ac_prog in egrep; do 3471 for ac_exec_ext in '' $ac_executable_extensions; do 3472 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3473 as_fn_executable_p "$ac_path_EGREP" || continue 3474# Check for GNU ac_path_EGREP and select it if it is found. 3475 # Check for GNU $ac_path_EGREP 3476case `"$ac_path_EGREP" --version 2>&1` in 3477*GNU*) 3478 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3479*) 3480 ac_count=0 3481 $as_echo_n 0123456789 >"conftest.in" 3482 while : 3483 do 3484 cat "conftest.in" "conftest.in" >"conftest.tmp" 3485 mv "conftest.tmp" "conftest.in" 3486 cp "conftest.in" "conftest.nl" 3487 $as_echo 'EGREP' >> "conftest.nl" 3488 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3489 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3490 as_fn_arith $ac_count + 1 && ac_count=$as_val 3491 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3492 # Best one so far, save it but keep looking for a better one 3493 ac_cv_path_EGREP="$ac_path_EGREP" 3494 ac_path_EGREP_max=$ac_count 3495 fi 3496 # 10*(2^10) chars as input seems more than enough 3497 test $ac_count -gt 10 && break 3498 done 3499 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3500esac 3501 3502 $ac_path_EGREP_found && break 3 3503 done 3504 done 3505 done 3506IFS=$as_save_IFS 3507 if test -z "$ac_cv_path_EGREP"; then 3508 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3509 fi 3510else 3511 ac_cv_path_EGREP=$EGREP 3512fi 3513 3514 fi 3515fi 3516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3517$as_echo "$ac_cv_path_EGREP" >&6; } 3518 EGREP="$ac_cv_path_EGREP" 3519 3520 3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3522$as_echo_n "checking for ANSI C header files... " >&6; } 3523if ${ac_cv_header_stdc+:} false; then : 3524 $as_echo_n "(cached) " >&6 3525else 3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3527/* end confdefs.h. */ 3528#include <stdlib.h> 3529#include <stdarg.h> 3530#include <string.h> 3531#include <float.h> 3532 3533int 3534main () 3535{ 3536 3537 ; 3538 return 0; 3539} 3540_ACEOF 3541if ac_fn_c_try_compile "$LINENO"; then : 3542 ac_cv_header_stdc=yes 3543else 3544 ac_cv_header_stdc=no 3545fi 3546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3547 3548if test $ac_cv_header_stdc = yes; then 3549 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3551/* end confdefs.h. */ 3552#include <string.h> 3553 3554_ACEOF 3555if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3556 $EGREP "memchr" >/dev/null 2>&1; then : 3557 3558else 3559 ac_cv_header_stdc=no 3560fi 3561rm -f conftest* 3562 3563fi 3564 3565if test $ac_cv_header_stdc = yes; then 3566 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3568/* end confdefs.h. */ 3569#include <stdlib.h> 3570 3571_ACEOF 3572if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3573 $EGREP "free" >/dev/null 2>&1; then : 3574 3575else 3576 ac_cv_header_stdc=no 3577fi 3578rm -f conftest* 3579 3580fi 3581 3582if test $ac_cv_header_stdc = yes; then 3583 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3584 if test "$cross_compiling" = yes; then : 3585 : 3586else 3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3588/* end confdefs.h. */ 3589#include <ctype.h> 3590#include <stdlib.h> 3591#if ((' ' & 0x0FF) == 0x020) 3592# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3593# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3594#else 3595# define ISLOWER(c) \ 3596 (('a' <= (c) && (c) <= 'i') \ 3597 || ('j' <= (c) && (c) <= 'r') \ 3598 || ('s' <= (c) && (c) <= 'z')) 3599# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3600#endif 3601 3602#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3603int 3604main () 3605{ 3606 int i; 3607 for (i = 0; i < 256; i++) 3608 if (XOR (islower (i), ISLOWER (i)) 3609 || toupper (i) != TOUPPER (i)) 3610 return 2; 3611 return 0; 3612} 3613_ACEOF 3614if ac_fn_c_try_run "$LINENO"; then : 3615 3616else 3617 ac_cv_header_stdc=no 3618fi 3619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3620 conftest.$ac_objext conftest.beam conftest.$ac_ext 3621fi 3622 3623fi 3624fi 3625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3626$as_echo "$ac_cv_header_stdc" >&6; } 3627if test $ac_cv_header_stdc = yes; then 3628 3629$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3630 3631fi 3632 3633# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3634for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3635 inttypes.h stdint.h unistd.h 3636do : 3637 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3638ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3639" 3640if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3641 cat >>confdefs.h <<_ACEOF 3642#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3643_ACEOF 3644 3645fi 3646 3647done 3648 3649 3650 3651 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3652if test "x$ac_cv_header_minix_config_h" = xyes; then : 3653 MINIX=yes 3654else 3655 MINIX= 3656fi 3657 3658 3659 if test "$MINIX" = yes; then 3660 3661$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3662 3663 3664$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3665 3666 3667$as_echo "#define _MINIX 1" >>confdefs.h 3668 3669 fi 3670 3671 3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3673$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3674if ${ac_cv_safe_to_define___extensions__+:} false; then : 3675 $as_echo_n "(cached) " >&6 3676else 3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3678/* end confdefs.h. */ 3679 3680# define __EXTENSIONS__ 1 3681 $ac_includes_default 3682int 3683main () 3684{ 3685 3686 ; 3687 return 0; 3688} 3689_ACEOF 3690if ac_fn_c_try_compile "$LINENO"; then : 3691 ac_cv_safe_to_define___extensions__=yes 3692else 3693 ac_cv_safe_to_define___extensions__=no 3694fi 3695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3696fi 3697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3698$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3699 test $ac_cv_safe_to_define___extensions__ = yes && 3700 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3701 3702 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3703 3704 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3705 3706 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3707 3708 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3709 3710 3711# Check whether --enable-largefile was given. 3712if test "${enable_largefile+set}" = set; then : 3713 enableval=$enable_largefile; 3714fi 3715 3716if test "$enable_largefile" != no; then 3717 3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 3719$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 3720if ${ac_cv_sys_largefile_CC+:} false; then : 3721 $as_echo_n "(cached) " >&6 3722else 3723 ac_cv_sys_largefile_CC=no 3724 if test "$GCC" != yes; then 3725 ac_save_CC=$CC 3726 while :; do 3727 # IRIX 6.2 and later do not support large files by default, 3728 # so use the C compiler's -n32 option if that helps. 3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3730/* end confdefs.h. */ 3731#include <sys/types.h> 3732 /* Check that off_t can represent 2**63 - 1 correctly. 3733 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3734 since some C++ compilers masquerading as C compilers 3735 incorrectly reject 9223372036854775807. */ 3736#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3737 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3738 && LARGE_OFF_T % 2147483647 == 1) 3739 ? 1 : -1]; 3740int 3741main () 3742{ 3743 3744 ; 3745 return 0; 3746} 3747_ACEOF 3748 if ac_fn_c_try_compile "$LINENO"; then : 3749 break 3750fi 3751rm -f core conftest.err conftest.$ac_objext 3752 CC="$CC -n32" 3753 if ac_fn_c_try_compile "$LINENO"; then : 3754 ac_cv_sys_largefile_CC=' -n32'; break 3755fi 3756rm -f core conftest.err conftest.$ac_objext 3757 break 3758 done 3759 CC=$ac_save_CC 3760 rm -f conftest.$ac_ext 3761 fi 3762fi 3763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 3764$as_echo "$ac_cv_sys_largefile_CC" >&6; } 3765 if test "$ac_cv_sys_largefile_CC" != no; then 3766 CC=$CC$ac_cv_sys_largefile_CC 3767 fi 3768 3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 3770$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 3771if ${ac_cv_sys_file_offset_bits+:} false; then : 3772 $as_echo_n "(cached) " >&6 3773else 3774 while :; do 3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3776/* end confdefs.h. */ 3777#include <sys/types.h> 3778 /* Check that off_t can represent 2**63 - 1 correctly. 3779 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3780 since some C++ compilers masquerading as C compilers 3781 incorrectly reject 9223372036854775807. */ 3782#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3783 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3784 && LARGE_OFF_T % 2147483647 == 1) 3785 ? 1 : -1]; 3786int 3787main () 3788{ 3789 3790 ; 3791 return 0; 3792} 3793_ACEOF 3794if ac_fn_c_try_compile "$LINENO"; then : 3795 ac_cv_sys_file_offset_bits=no; break 3796fi 3797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3799/* end confdefs.h. */ 3800#define _FILE_OFFSET_BITS 64 3801#include <sys/types.h> 3802 /* Check that off_t can represent 2**63 - 1 correctly. 3803 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3804 since some C++ compilers masquerading as C compilers 3805 incorrectly reject 9223372036854775807. */ 3806#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3807 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3808 && LARGE_OFF_T % 2147483647 == 1) 3809 ? 1 : -1]; 3810int 3811main () 3812{ 3813 3814 ; 3815 return 0; 3816} 3817_ACEOF 3818if ac_fn_c_try_compile "$LINENO"; then : 3819 ac_cv_sys_file_offset_bits=64; break 3820fi 3821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3822 ac_cv_sys_file_offset_bits=unknown 3823 break 3824done 3825fi 3826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 3827$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 3828case $ac_cv_sys_file_offset_bits in #( 3829 no | unknown) ;; 3830 *) 3831cat >>confdefs.h <<_ACEOF 3832#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 3833_ACEOF 3834;; 3835esac 3836rm -rf conftest* 3837 if test $ac_cv_sys_file_offset_bits = unknown; then 3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 3839$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 3840if ${ac_cv_sys_large_files+:} false; then : 3841 $as_echo_n "(cached) " >&6 3842else 3843 while :; do 3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3845/* end confdefs.h. */ 3846#include <sys/types.h> 3847 /* Check that off_t can represent 2**63 - 1 correctly. 3848 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3849 since some C++ compilers masquerading as C compilers 3850 incorrectly reject 9223372036854775807. */ 3851#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3852 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3853 && LARGE_OFF_T % 2147483647 == 1) 3854 ? 1 : -1]; 3855int 3856main () 3857{ 3858 3859 ; 3860 return 0; 3861} 3862_ACEOF 3863if ac_fn_c_try_compile "$LINENO"; then : 3864 ac_cv_sys_large_files=no; break 3865fi 3866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3868/* end confdefs.h. */ 3869#define _LARGE_FILES 1 3870#include <sys/types.h> 3871 /* Check that off_t can represent 2**63 - 1 correctly. 3872 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3873 since some C++ compilers masquerading as C compilers 3874 incorrectly reject 9223372036854775807. */ 3875#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3876 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3877 && LARGE_OFF_T % 2147483647 == 1) 3878 ? 1 : -1]; 3879int 3880main () 3881{ 3882 3883 ; 3884 return 0; 3885} 3886_ACEOF 3887if ac_fn_c_try_compile "$LINENO"; then : 3888 ac_cv_sys_large_files=1; break 3889fi 3890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3891 ac_cv_sys_large_files=unknown 3892 break 3893done 3894fi 3895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 3896$as_echo "$ac_cv_sys_large_files" >&6; } 3897case $ac_cv_sys_large_files in #( 3898 no | unknown) ;; 3899 *) 3900cat >>confdefs.h <<_ACEOF 3901#define _LARGE_FILES $ac_cv_sys_large_files 3902_ACEOF 3903;; 3904esac 3905rm -rf conftest* 3906 fi 3907 3908 3909fi 3910 3911 3912# Initialize Automake 3913am__api_version='1.15' 3914 3915# Find a good install program. We prefer a C program (faster), 3916# so one script is as good as another. But avoid the broken or 3917# incompatible versions: 3918# SysV /etc/install, /usr/sbin/install 3919# SunOS /usr/etc/install 3920# IRIX /sbin/install 3921# AIX /bin/install 3922# AmigaOS /C/install, which installs bootblocks on floppy discs 3923# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3924# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3925# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3926# OS/2's system install, which has a completely different semantic 3927# ./install, which can be erroneously created by make from ./install.sh. 3928# Reject install programs that cannot install multiple files. 3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3930$as_echo_n "checking for a BSD-compatible install... " >&6; } 3931if test -z "$INSTALL"; then 3932if ${ac_cv_path_install+:} false; then : 3933 $as_echo_n "(cached) " >&6 3934else 3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3936for as_dir in $PATH 3937do 3938 IFS=$as_save_IFS 3939 test -z "$as_dir" && as_dir=. 3940 # Account for people who put trailing slashes in PATH elements. 3941case $as_dir/ in #(( 3942 ./ | .// | /[cC]/* | \ 3943 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3944 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3945 /usr/ucb/* ) ;; 3946 *) 3947 # OSF1 and SCO ODT 3.0 have their own names for install. 3948 # Don't use installbsd from OSF since it installs stuff as root 3949 # by default. 3950 for ac_prog in ginstall scoinst install; do 3951 for ac_exec_ext in '' $ac_executable_extensions; do 3952 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3953 if test $ac_prog = install && 3954 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3955 # AIX install. It has an incompatible calling convention. 3956 : 3957 elif test $ac_prog = install && 3958 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3959 # program-specific install script used by HP pwplus--don't use. 3960 : 3961 else 3962 rm -rf conftest.one conftest.two conftest.dir 3963 echo one > conftest.one 3964 echo two > conftest.two 3965 mkdir conftest.dir 3966 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3967 test -s conftest.one && test -s conftest.two && 3968 test -s conftest.dir/conftest.one && 3969 test -s conftest.dir/conftest.two 3970 then 3971 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3972 break 3 3973 fi 3974 fi 3975 fi 3976 done 3977 done 3978 ;; 3979esac 3980 3981 done 3982IFS=$as_save_IFS 3983 3984rm -rf conftest.one conftest.two conftest.dir 3985 3986fi 3987 if test "${ac_cv_path_install+set}" = set; then 3988 INSTALL=$ac_cv_path_install 3989 else 3990 # As a last resort, use the slow shell script. Don't cache a 3991 # value for INSTALL within a source directory, because that will 3992 # break other packages using the cache if that directory is 3993 # removed, or if the value is a relative name. 3994 INSTALL=$ac_install_sh 3995 fi 3996fi 3997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3998$as_echo "$INSTALL" >&6; } 3999 4000# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4001# It thinks the first close brace ends the variable substitution. 4002test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4003 4004test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4005 4006test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4007 4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4009$as_echo_n "checking whether build environment is sane... " >&6; } 4010# Reject unsafe characters in $srcdir or the absolute working directory 4011# name. Accept space and tab only in the latter. 4012am_lf=' 4013' 4014case `pwd` in 4015 *[\\\"\#\$\&\'\`$am_lf]*) 4016 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4017esac 4018case $srcdir in 4019 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4020 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4021esac 4022 4023# Do 'set' in a subshell so we don't clobber the current shell's 4024# arguments. Must try -L first in case configure is actually a 4025# symlink; some systems play weird games with the mod time of symlinks 4026# (eg FreeBSD returns the mod time of the symlink's containing 4027# directory). 4028if ( 4029 am_has_slept=no 4030 for am_try in 1 2; do 4031 echo "timestamp, slept: $am_has_slept" > conftest.file 4032 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4033 if test "$*" = "X"; then 4034 # -L didn't work. 4035 set X `ls -t "$srcdir/configure" conftest.file` 4036 fi 4037 if test "$*" != "X $srcdir/configure conftest.file" \ 4038 && test "$*" != "X conftest.file $srcdir/configure"; then 4039 4040 # If neither matched, then we have a broken ls. This can happen 4041 # if, for instance, CONFIG_SHELL is bash and it inherits a 4042 # broken ls alias from the environment. This has actually 4043 # happened. Such a system could not be considered "sane". 4044 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4045 alias in your environment" "$LINENO" 5 4046 fi 4047 if test "$2" = conftest.file || test $am_try -eq 2; then 4048 break 4049 fi 4050 # Just in case. 4051 sleep 1 4052 am_has_slept=yes 4053 done 4054 test "$2" = conftest.file 4055 ) 4056then 4057 # Ok. 4058 : 4059else 4060 as_fn_error $? "newly created file is older than distributed files! 4061Check your system clock" "$LINENO" 5 4062fi 4063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4064$as_echo "yes" >&6; } 4065# If we didn't sleep, we still need to ensure time stamps of config.status and 4066# generated files are strictly newer. 4067am_sleep_pid= 4068if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4069 ( sleep 1 ) & 4070 am_sleep_pid=$! 4071fi 4072 4073rm -f conftest.file 4074 4075test "$program_prefix" != NONE && 4076 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4077# Use a double $ so make ignores it. 4078test "$program_suffix" != NONE && 4079 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4080# Double any \ or $. 4081# By default was `s,x,x', remove it if useless. 4082ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4083program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 4084 4085if test x"${MISSING+set}" != xset; then 4086 case $am_aux_dir in 4087 *\ * | *\ *) 4088 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 4089 *) 4090 MISSING="\${SHELL} $am_aux_dir/missing" ;; 4091 esac 4092fi 4093# Use eval to expand $SHELL 4094if eval "$MISSING --is-lightweight"; then 4095 am_missing_run="$MISSING " 4096else 4097 am_missing_run= 4098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4099$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4100fi 4101 4102if test x"${install_sh+set}" != xset; then 4103 case $am_aux_dir in 4104 *\ * | *\ *) 4105 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4106 *) 4107 install_sh="\${SHELL} $am_aux_dir/install-sh" 4108 esac 4109fi 4110 4111# Installed binaries are usually stripped using 'strip' when the user 4112# run "make install-strip". However 'strip' might not be the right 4113# tool to use in cross-compilation environments, therefore Automake 4114# will honor the 'STRIP' environment variable to overrule this program. 4115if test "$cross_compiling" != no; then 4116 if test -n "$ac_tool_prefix"; then 4117 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4118set dummy ${ac_tool_prefix}strip; ac_word=$2 4119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4120$as_echo_n "checking for $ac_word... " >&6; } 4121if ${ac_cv_prog_STRIP+:} false; then : 4122 $as_echo_n "(cached) " >&6 4123else 4124 if test -n "$STRIP"; then 4125 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4126else 4127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4128for as_dir in $PATH 4129do 4130 IFS=$as_save_IFS 4131 test -z "$as_dir" && as_dir=. 4132 for ac_exec_ext in '' $ac_executable_extensions; do 4133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4134 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4136 break 2 4137 fi 4138done 4139 done 4140IFS=$as_save_IFS 4141 4142fi 4143fi 4144STRIP=$ac_cv_prog_STRIP 4145if test -n "$STRIP"; then 4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4147$as_echo "$STRIP" >&6; } 4148else 4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4150$as_echo "no" >&6; } 4151fi 4152 4153 4154fi 4155if test -z "$ac_cv_prog_STRIP"; then 4156 ac_ct_STRIP=$STRIP 4157 # Extract the first word of "strip", so it can be a program name with args. 4158set dummy strip; ac_word=$2 4159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4160$as_echo_n "checking for $ac_word... " >&6; } 4161if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4162 $as_echo_n "(cached) " >&6 4163else 4164 if test -n "$ac_ct_STRIP"; then 4165 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4166else 4167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4168for as_dir in $PATH 4169do 4170 IFS=$as_save_IFS 4171 test -z "$as_dir" && as_dir=. 4172 for ac_exec_ext in '' $ac_executable_extensions; do 4173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4174 ac_cv_prog_ac_ct_STRIP="strip" 4175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4176 break 2 4177 fi 4178done 4179 done 4180IFS=$as_save_IFS 4181 4182fi 4183fi 4184ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4185if test -n "$ac_ct_STRIP"; then 4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4187$as_echo "$ac_ct_STRIP" >&6; } 4188else 4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4190$as_echo "no" >&6; } 4191fi 4192 4193 if test "x$ac_ct_STRIP" = x; then 4194 STRIP=":" 4195 else 4196 case $cross_compiling:$ac_tool_warned in 4197yes:) 4198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4200ac_tool_warned=yes ;; 4201esac 4202 STRIP=$ac_ct_STRIP 4203 fi 4204else 4205 STRIP="$ac_cv_prog_STRIP" 4206fi 4207 4208fi 4209INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4210 4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4212$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4213if test -z "$MKDIR_P"; then 4214 if ${ac_cv_path_mkdir+:} false; then : 4215 $as_echo_n "(cached) " >&6 4216else 4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4218for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4219do 4220 IFS=$as_save_IFS 4221 test -z "$as_dir" && as_dir=. 4222 for ac_prog in mkdir gmkdir; do 4223 for ac_exec_ext in '' $ac_executable_extensions; do 4224 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 4225 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4226 'mkdir (GNU coreutils) '* | \ 4227 'mkdir (coreutils) '* | \ 4228 'mkdir (fileutils) '4.1*) 4229 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4230 break 3;; 4231 esac 4232 done 4233 done 4234 done 4235IFS=$as_save_IFS 4236 4237fi 4238 4239 test -d ./--version && rmdir ./--version 4240 if test "${ac_cv_path_mkdir+set}" = set; then 4241 MKDIR_P="$ac_cv_path_mkdir -p" 4242 else 4243 # As a last resort, use the slow shell script. Don't cache a 4244 # value for MKDIR_P within a source directory, because that will 4245 # break other packages using the cache if that directory is 4246 # removed, or if the value is a relative name. 4247 MKDIR_P="$ac_install_sh -d" 4248 fi 4249fi 4250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4251$as_echo "$MKDIR_P" >&6; } 4252 4253for ac_prog in gawk mawk nawk awk 4254do 4255 # Extract the first word of "$ac_prog", so it can be a program name with args. 4256set dummy $ac_prog; ac_word=$2 4257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4258$as_echo_n "checking for $ac_word... " >&6; } 4259if ${ac_cv_prog_AWK+:} false; then : 4260 $as_echo_n "(cached) " >&6 4261else 4262 if test -n "$AWK"; then 4263 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4264else 4265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4266for as_dir in $PATH 4267do 4268 IFS=$as_save_IFS 4269 test -z "$as_dir" && as_dir=. 4270 for ac_exec_ext in '' $ac_executable_extensions; do 4271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4272 ac_cv_prog_AWK="$ac_prog" 4273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4274 break 2 4275 fi 4276done 4277 done 4278IFS=$as_save_IFS 4279 4280fi 4281fi 4282AWK=$ac_cv_prog_AWK 4283if test -n "$AWK"; then 4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4285$as_echo "$AWK" >&6; } 4286else 4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4288$as_echo "no" >&6; } 4289fi 4290 4291 4292 test -n "$AWK" && break 4293done 4294 4295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4296$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4297set x ${MAKE-make} 4298ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4299if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4300 $as_echo_n "(cached) " >&6 4301else 4302 cat >conftest.make <<\_ACEOF 4303SHELL = /bin/sh 4304all: 4305 @echo '@@@%%%=$(MAKE)=@@@%%%' 4306_ACEOF 4307# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4308case `${MAKE-make} -f conftest.make 2>/dev/null` in 4309 *@@@%%%=?*=@@@%%%*) 4310 eval ac_cv_prog_make_${ac_make}_set=yes;; 4311 *) 4312 eval ac_cv_prog_make_${ac_make}_set=no;; 4313esac 4314rm -f conftest.make 4315fi 4316if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4318$as_echo "yes" >&6; } 4319 SET_MAKE= 4320else 4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4322$as_echo "no" >&6; } 4323 SET_MAKE="MAKE=${MAKE-make}" 4324fi 4325 4326rm -rf .tst 2>/dev/null 4327mkdir .tst 2>/dev/null 4328if test -d .tst; then 4329 am__leading_dot=. 4330else 4331 am__leading_dot=_ 4332fi 4333rmdir .tst 2>/dev/null 4334 4335DEPDIR="${am__leading_dot}deps" 4336 4337ac_config_commands="$ac_config_commands depfiles" 4338 4339 4340am_make=${MAKE-make} 4341cat > confinc << 'END' 4342am__doit: 4343 @echo this is the am__doit target 4344.PHONY: am__doit 4345END 4346# If we don't find an include directive, just comment out the code. 4347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4348$as_echo_n "checking for style of include used by $am_make... " >&6; } 4349am__include="#" 4350am__quote= 4351_am_result=none 4352# First try GNU make style include. 4353echo "include confinc" > confmf 4354# Ignore all kinds of additional output from 'make'. 4355case `$am_make -s -f confmf 2> /dev/null` in #( 4356*the\ am__doit\ target*) 4357 am__include=include 4358 am__quote= 4359 _am_result=GNU 4360 ;; 4361esac 4362# Now try BSD make style include. 4363if test "$am__include" = "#"; then 4364 echo '.include "confinc"' > confmf 4365 case `$am_make -s -f confmf 2> /dev/null` in #( 4366 *the\ am__doit\ target*) 4367 am__include=.include 4368 am__quote="\"" 4369 _am_result=BSD 4370 ;; 4371 esac 4372fi 4373 4374 4375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4376$as_echo "$_am_result" >&6; } 4377rm -f confinc confmf 4378 4379# Check whether --enable-dependency-tracking was given. 4380if test "${enable_dependency_tracking+set}" = set; then : 4381 enableval=$enable_dependency_tracking; 4382fi 4383 4384if test "x$enable_dependency_tracking" != xno; then 4385 am_depcomp="$ac_aux_dir/depcomp" 4386 AMDEPBACKSLASH='\' 4387 am__nodep='_no' 4388fi 4389 if test "x$enable_dependency_tracking" != xno; then 4390 AMDEP_TRUE= 4391 AMDEP_FALSE='#' 4392else 4393 AMDEP_TRUE='#' 4394 AMDEP_FALSE= 4395fi 4396 4397 4398# Check whether --enable-silent-rules was given. 4399if test "${enable_silent_rules+set}" = set; then : 4400 enableval=$enable_silent_rules; 4401fi 4402 4403case $enable_silent_rules in # ((( 4404 yes) AM_DEFAULT_VERBOSITY=0;; 4405 no) AM_DEFAULT_VERBOSITY=1;; 4406 *) AM_DEFAULT_VERBOSITY=1;; 4407esac 4408am_make=${MAKE-make} 4409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4410$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4411if ${am_cv_make_support_nested_variables+:} false; then : 4412 $as_echo_n "(cached) " >&6 4413else 4414 if $as_echo 'TRUE=$(BAR$(V)) 4415BAR0=false 4416BAR1=true 4417V=1 4418am__doit: 4419 @$(TRUE) 4420.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4421 am_cv_make_support_nested_variables=yes 4422else 4423 am_cv_make_support_nested_variables=no 4424fi 4425fi 4426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4427$as_echo "$am_cv_make_support_nested_variables" >&6; } 4428if test $am_cv_make_support_nested_variables = yes; then 4429 AM_V='$(V)' 4430 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4431else 4432 AM_V=$AM_DEFAULT_VERBOSITY 4433 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4434fi 4435AM_BACKSLASH='\' 4436 4437if test "`cd $srcdir && pwd`" != "`pwd`"; then 4438 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4439 # is not polluted with repeated "-I." 4440 am__isrc=' -I$(srcdir)' 4441 # test to see if srcdir already configured 4442 if test -f $srcdir/config.status; then 4443 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4444 fi 4445fi 4446 4447# test whether we have cygpath 4448if test -z "$CYGPATH_W"; then 4449 if (cygpath --version) >/dev/null 2>/dev/null; then 4450 CYGPATH_W='cygpath -w' 4451 else 4452 CYGPATH_W=echo 4453 fi 4454fi 4455 4456 4457# Define the identity of the package. 4458 PACKAGE='sessreg' 4459 VERSION='1.1.0' 4460 4461 4462cat >>confdefs.h <<_ACEOF 4463#define PACKAGE "$PACKAGE" 4464_ACEOF 4465 4466 4467cat >>confdefs.h <<_ACEOF 4468#define VERSION "$VERSION" 4469_ACEOF 4470 4471# Some tools Automake needs. 4472 4473ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4474 4475 4476AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4477 4478 4479AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4480 4481 4482AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4483 4484 4485MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4486 4487# For better backward compatibility. To be removed once Automake 1.9.x 4488# dies out for good. For more background, see: 4489# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4490# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4491mkdir_p='$(MKDIR_P)' 4492 4493# We need awk for the "check" target (and possibly the TAP driver). The 4494# system "awk" is bad on some platforms. 4495# Always define AMTAR for backward compatibility. Yes, it's still used 4496# in the wild :-( We should find a proper way to deprecate it ... 4497AMTAR='$${TAR-tar}' 4498 4499 4500# We'll loop over all known methods to create a tar archive until one works. 4501_am_tools='gnutar pax cpio none' 4502 4503am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4504 4505 4506 4507 4508 4509depcc="$CC" am_compiler_list= 4510 4511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4512$as_echo_n "checking dependency style of $depcc... " >&6; } 4513if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4514 $as_echo_n "(cached) " >&6 4515else 4516 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4517 # We make a subdir and do the tests there. Otherwise we can end up 4518 # making bogus files that we don't know about and never remove. For 4519 # instance it was reported that on HP-UX the gcc test will end up 4520 # making a dummy file named 'D' -- because '-MD' means "put the output 4521 # in D". 4522 rm -rf conftest.dir 4523 mkdir conftest.dir 4524 # Copy depcomp to subdir because otherwise we won't find it if we're 4525 # using a relative directory. 4526 cp "$am_depcomp" conftest.dir 4527 cd conftest.dir 4528 # We will build objects and dependencies in a subdirectory because 4529 # it helps to detect inapplicable dependency modes. For instance 4530 # both Tru64's cc and ICC support -MD to output dependencies as a 4531 # side effect of compilation, but ICC will put the dependencies in 4532 # the current directory while Tru64 will put them in the object 4533 # directory. 4534 mkdir sub 4535 4536 am_cv_CC_dependencies_compiler_type=none 4537 if test "$am_compiler_list" = ""; then 4538 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4539 fi 4540 am__universal=false 4541 case " $depcc " in #( 4542 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4543 esac 4544 4545 for depmode in $am_compiler_list; do 4546 # Setup a source with many dependencies, because some compilers 4547 # like to wrap large dependency lists on column 80 (with \), and 4548 # we should not choose a depcomp mode which is confused by this. 4549 # 4550 # We need to recreate these files for each test, as the compiler may 4551 # overwrite some of them when testing with obscure command lines. 4552 # This happens at least with the AIX C compiler. 4553 : > sub/conftest.c 4554 for i in 1 2 3 4 5 6; do 4555 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4556 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4557 # Solaris 10 /bin/sh. 4558 echo '/* dummy */' > sub/conftst$i.h 4559 done 4560 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4561 4562 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4563 # mode. It turns out that the SunPro C++ compiler does not properly 4564 # handle '-M -o', and we need to detect this. Also, some Intel 4565 # versions had trouble with output in subdirs. 4566 am__obj=sub/conftest.${OBJEXT-o} 4567 am__minus_obj="-o $am__obj" 4568 case $depmode in 4569 gcc) 4570 # This depmode causes a compiler race in universal mode. 4571 test "$am__universal" = false || continue 4572 ;; 4573 nosideeffect) 4574 # After this tag, mechanisms are not by side-effect, so they'll 4575 # only be used when explicitly requested. 4576 if test "x$enable_dependency_tracking" = xyes; then 4577 continue 4578 else 4579 break 4580 fi 4581 ;; 4582 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4583 # This compiler won't grok '-c -o', but also, the minuso test has 4584 # not run yet. These depmodes are late enough in the game, and 4585 # so weak that their functioning should not be impacted. 4586 am__obj=conftest.${OBJEXT-o} 4587 am__minus_obj= 4588 ;; 4589 none) break ;; 4590 esac 4591 if depmode=$depmode \ 4592 source=sub/conftest.c object=$am__obj \ 4593 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4594 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4595 >/dev/null 2>conftest.err && 4596 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4597 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4598 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4599 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4600 # icc doesn't choke on unknown options, it will just issue warnings 4601 # or remarks (even with -Werror). So we grep stderr for any message 4602 # that says an option was ignored or not supported. 4603 # When given -MP, icc 7.0 and 7.1 complain thusly: 4604 # icc: Command line warning: ignoring option '-M'; no argument required 4605 # The diagnosis changed in icc 8.0: 4606 # icc: Command line remark: option '-MP' not supported 4607 if (grep 'ignoring option' conftest.err || 4608 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4609 am_cv_CC_dependencies_compiler_type=$depmode 4610 break 4611 fi 4612 fi 4613 done 4614 4615 cd .. 4616 rm -rf conftest.dir 4617else 4618 am_cv_CC_dependencies_compiler_type=none 4619fi 4620 4621fi 4622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4623$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4624CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4625 4626 if 4627 test "x$enable_dependency_tracking" != xno \ 4628 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4629 am__fastdepCC_TRUE= 4630 am__fastdepCC_FALSE='#' 4631else 4632 am__fastdepCC_TRUE='#' 4633 am__fastdepCC_FALSE= 4634fi 4635 4636 4637 4638# POSIX will say in a future version that running "rm -f" with no argument 4639# is OK; and we want to be able to make that assumption in our Makefile 4640# recipes. So use an aggressive probe to check that the usage we want is 4641# actually supported "in the wild" to an acceptable degree. 4642# See automake bug#10828. 4643# To make any issue more visible, cause the running configure to be aborted 4644# by default if the 'rm' program in use doesn't match our expectations; the 4645# user can still override this though. 4646if rm -f && rm -fr && rm -rf; then : OK; else 4647 cat >&2 <<'END' 4648Oops! 4649 4650Your 'rm' program seems unable to run without file operands specified 4651on the command line, even when the '-f' option is present. This is contrary 4652to the behaviour of most rm programs out there, and not conforming with 4653the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4654 4655Please tell bug-automake@gnu.org about your system, including the value 4656of your $PATH and any error possibly output before this message. This 4657can help us improve future automake versions. 4658 4659END 4660 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4661 echo 'Configuration will proceed anyway, since you have set the' >&2 4662 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4663 echo >&2 4664 else 4665 cat >&2 <<'END' 4666Aborting the configuration process, to ensure you take notice of the issue. 4667 4668You can download and install GNU coreutils to get an 'rm' implementation 4669that behaves properly: <http://www.gnu.org/software/coreutils/>. 4670 4671If you want to complete the configuration process using your problematic 4672'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4673to "yes", and re-run configure. 4674 4675END 4676 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4677 fi 4678fi 4679 4680 4681# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4694$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4695if ${ac_cv_prog_cc_c99+:} false; then : 4696 $as_echo_n "(cached) " >&6 4697else 4698 ac_cv_prog_cc_c99=no 4699ac_save_CC=$CC 4700cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4701/* end confdefs.h. */ 4702#include <stdarg.h> 4703#include <stdbool.h> 4704#include <stdlib.h> 4705#include <wchar.h> 4706#include <stdio.h> 4707 4708// Check varargs macros. These examples are taken from C99 6.10.3.5. 4709#define debug(...) fprintf (stderr, __VA_ARGS__) 4710#define showlist(...) puts (#__VA_ARGS__) 4711#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4712static void 4713test_varargs_macros (void) 4714{ 4715 int x = 1234; 4716 int y = 5678; 4717 debug ("Flag"); 4718 debug ("X = %d\n", x); 4719 showlist (The first, second, and third items.); 4720 report (x>y, "x is %d but y is %d", x, y); 4721} 4722 4723// Check long long types. 4724#define BIG64 18446744073709551615ull 4725#define BIG32 4294967295ul 4726#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4727#if !BIG_OK 4728 your preprocessor is broken; 4729#endif 4730#if BIG_OK 4731#else 4732 your preprocessor is broken; 4733#endif 4734static long long int bignum = -9223372036854775807LL; 4735static unsigned long long int ubignum = BIG64; 4736 4737struct incomplete_array 4738{ 4739 int datasize; 4740 double data[]; 4741}; 4742 4743struct named_init { 4744 int number; 4745 const wchar_t *name; 4746 double average; 4747}; 4748 4749typedef const char *ccp; 4750 4751static inline int 4752test_restrict (ccp restrict text) 4753{ 4754 // See if C++-style comments work. 4755 // Iterate through items via the restricted pointer. 4756 // Also check for declarations in for loops. 4757 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4758 continue; 4759 return 0; 4760} 4761 4762// Check varargs and va_copy. 4763static void 4764test_varargs (const char *format, ...) 4765{ 4766 va_list args; 4767 va_start (args, format); 4768 va_list args_copy; 4769 va_copy (args_copy, args); 4770 4771 const char *str; 4772 int number; 4773 float fnumber; 4774 4775 while (*format) 4776 { 4777 switch (*format++) 4778 { 4779 case 's': // string 4780 str = va_arg (args_copy, const char *); 4781 break; 4782 case 'd': // int 4783 number = va_arg (args_copy, int); 4784 break; 4785 case 'f': // float 4786 fnumber = va_arg (args_copy, double); 4787 break; 4788 default: 4789 break; 4790 } 4791 } 4792 va_end (args_copy); 4793 va_end (args); 4794} 4795 4796int 4797main () 4798{ 4799 4800 // Check bool. 4801 _Bool success = false; 4802 4803 // Check restrict. 4804 if (test_restrict ("String literal") == 0) 4805 success = true; 4806 char *restrict newvar = "Another string"; 4807 4808 // Check varargs. 4809 test_varargs ("s, d' f .", "string", 65, 34.234); 4810 test_varargs_macros (); 4811 4812 // Check flexible array members. 4813 struct incomplete_array *ia = 4814 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4815 ia->datasize = 10; 4816 for (int i = 0; i < ia->datasize; ++i) 4817 ia->data[i] = i * 1.234; 4818 4819 // Check named initializers. 4820 struct named_init ni = { 4821 .number = 34, 4822 .name = L"Test wide string", 4823 .average = 543.34343, 4824 }; 4825 4826 ni.number = 58; 4827 4828 int dynamic_array[ni.number]; 4829 dynamic_array[ni.number - 1] = 543; 4830 4831 // work around unused variable warnings 4832 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4833 || dynamic_array[ni.number - 1] != 543); 4834 4835 ; 4836 return 0; 4837} 4838_ACEOF 4839for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4840do 4841 CC="$ac_save_CC $ac_arg" 4842 if ac_fn_c_try_compile "$LINENO"; then : 4843 ac_cv_prog_cc_c99=$ac_arg 4844fi 4845rm -f core conftest.err conftest.$ac_objext 4846 test "x$ac_cv_prog_cc_c99" != "xno" && break 4847done 4848rm -f conftest.$ac_ext 4849CC=$ac_save_CC 4850 4851fi 4852# AC_CACHE_VAL 4853case "x$ac_cv_prog_cc_c99" in 4854 x) 4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4856$as_echo "none needed" >&6; } ;; 4857 xno) 4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4859$as_echo "unsupported" >&6; } ;; 4860 *) 4861 CC="$CC $ac_cv_prog_cc_c99" 4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4863$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4864esac 4865if test "x$ac_cv_prog_cc_c99" != xno; then : 4866 4867fi 4868 4869 4870 4871 4872 4873 4874ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4875if test "x$ac_cv_have_decl___clang__" = xyes; then : 4876 CLANGCC="yes" 4877else 4878 CLANGCC="no" 4879fi 4880 4881ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4882if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4883 INTELCC="yes" 4884else 4885 INTELCC="no" 4886fi 4887 4888ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4889if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4890 SUNCC="yes" 4891else 4892 SUNCC="no" 4893fi 4894 4895 4896 4897 4898if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4899 if test -n "$ac_tool_prefix"; then 4900 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4901set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4903$as_echo_n "checking for $ac_word... " >&6; } 4904if ${ac_cv_path_PKG_CONFIG+:} false; then : 4905 $as_echo_n "(cached) " >&6 4906else 4907 case $PKG_CONFIG in 4908 [\\/]* | ?:[\\/]*) 4909 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4910 ;; 4911 *) 4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4913for as_dir in $PATH 4914do 4915 IFS=$as_save_IFS 4916 test -z "$as_dir" && as_dir=. 4917 for ac_exec_ext in '' $ac_executable_extensions; do 4918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4919 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4921 break 2 4922 fi 4923done 4924 done 4925IFS=$as_save_IFS 4926 4927 ;; 4928esac 4929fi 4930PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4931if test -n "$PKG_CONFIG"; then 4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4933$as_echo "$PKG_CONFIG" >&6; } 4934else 4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4936$as_echo "no" >&6; } 4937fi 4938 4939 4940fi 4941if test -z "$ac_cv_path_PKG_CONFIG"; then 4942 ac_pt_PKG_CONFIG=$PKG_CONFIG 4943 # Extract the first word of "pkg-config", so it can be a program name with args. 4944set dummy pkg-config; ac_word=$2 4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4946$as_echo_n "checking for $ac_word... " >&6; } 4947if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4948 $as_echo_n "(cached) " >&6 4949else 4950 case $ac_pt_PKG_CONFIG in 4951 [\\/]* | ?:[\\/]*) 4952 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4953 ;; 4954 *) 4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4956for as_dir in $PATH 4957do 4958 IFS=$as_save_IFS 4959 test -z "$as_dir" && as_dir=. 4960 for ac_exec_ext in '' $ac_executable_extensions; do 4961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4962 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4964 break 2 4965 fi 4966done 4967 done 4968IFS=$as_save_IFS 4969 4970 ;; 4971esac 4972fi 4973ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4974if test -n "$ac_pt_PKG_CONFIG"; then 4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4976$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4977else 4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4979$as_echo "no" >&6; } 4980fi 4981 4982 if test "x$ac_pt_PKG_CONFIG" = x; then 4983 PKG_CONFIG="" 4984 else 4985 case $cross_compiling:$ac_tool_warned in 4986yes:) 4987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4989ac_tool_warned=yes ;; 4990esac 4991 PKG_CONFIG=$ac_pt_PKG_CONFIG 4992 fi 4993else 4994 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4995fi 4996 4997fi 4998if test -n "$PKG_CONFIG"; then 4999 _pkg_min_version=0.9.0 5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5001$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5002 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5004$as_echo "yes" >&6; } 5005 else 5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5007$as_echo "no" >&6; } 5008 PKG_CONFIG="" 5009 fi 5010 5011fi 5012# Make sure we can run config.sub. 5013$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5014 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5015 5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5017$as_echo_n "checking build system type... " >&6; } 5018if ${ac_cv_build+:} false; then : 5019 $as_echo_n "(cached) " >&6 5020else 5021 ac_build_alias=$build_alias 5022test "x$ac_build_alias" = x && 5023 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5024test "x$ac_build_alias" = x && 5025 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5026ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5027 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5028 5029fi 5030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5031$as_echo "$ac_cv_build" >&6; } 5032case $ac_cv_build in 5033*-*-*) ;; 5034*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5035esac 5036build=$ac_cv_build 5037ac_save_IFS=$IFS; IFS='-' 5038set x $ac_cv_build 5039shift 5040build_cpu=$1 5041build_vendor=$2 5042shift; shift 5043# Remember, the first character of IFS is used to create $*, 5044# except with old shells: 5045build_os=$* 5046IFS=$ac_save_IFS 5047case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5048 5049 5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5051$as_echo_n "checking host system type... " >&6; } 5052if ${ac_cv_host+:} false; then : 5053 $as_echo_n "(cached) " >&6 5054else 5055 if test "x$host_alias" = x; then 5056 ac_cv_host=$ac_cv_build 5057else 5058 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5059 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5060fi 5061 5062fi 5063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5064$as_echo "$ac_cv_host" >&6; } 5065case $ac_cv_host in 5066*-*-*) ;; 5067*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5068esac 5069host=$ac_cv_host 5070ac_save_IFS=$IFS; IFS='-' 5071set x $ac_cv_host 5072shift 5073host_cpu=$1 5074host_vendor=$2 5075shift; shift 5076# Remember, the first character of IFS is used to create $*, 5077# except with old shells: 5078host_os=$* 5079IFS=$ac_save_IFS 5080case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5081 5082 5083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5084$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5085if ${ac_cv_path_SED+:} false; then : 5086 $as_echo_n "(cached) " >&6 5087else 5088 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5089 for ac_i in 1 2 3 4 5 6 7; do 5090 ac_script="$ac_script$as_nl$ac_script" 5091 done 5092 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5093 { ac_script=; unset ac_script;} 5094 if test -z "$SED"; then 5095 ac_path_SED_found=false 5096 # Loop through the user's path and test for each of PROGNAME-LIST 5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5098for as_dir in $PATH 5099do 5100 IFS=$as_save_IFS 5101 test -z "$as_dir" && as_dir=. 5102 for ac_prog in sed gsed; do 5103 for ac_exec_ext in '' $ac_executable_extensions; do 5104 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5105 as_fn_executable_p "$ac_path_SED" || continue 5106# Check for GNU ac_path_SED and select it if it is found. 5107 # Check for GNU $ac_path_SED 5108case `"$ac_path_SED" --version 2>&1` in 5109*GNU*) 5110 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5111*) 5112 ac_count=0 5113 $as_echo_n 0123456789 >"conftest.in" 5114 while : 5115 do 5116 cat "conftest.in" "conftest.in" >"conftest.tmp" 5117 mv "conftest.tmp" "conftest.in" 5118 cp "conftest.in" "conftest.nl" 5119 $as_echo '' >> "conftest.nl" 5120 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5122 as_fn_arith $ac_count + 1 && ac_count=$as_val 5123 if test $ac_count -gt ${ac_path_SED_max-0}; then 5124 # Best one so far, save it but keep looking for a better one 5125 ac_cv_path_SED="$ac_path_SED" 5126 ac_path_SED_max=$ac_count 5127 fi 5128 # 10*(2^10) chars as input seems more than enough 5129 test $ac_count -gt 10 && break 5130 done 5131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5132esac 5133 5134 $ac_path_SED_found && break 3 5135 done 5136 done 5137 done 5138IFS=$as_save_IFS 5139 if test -z "$ac_cv_path_SED"; then 5140 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5141 fi 5142else 5143 ac_cv_path_SED=$SED 5144fi 5145 5146fi 5147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5148$as_echo "$ac_cv_path_SED" >&6; } 5149 SED="$ac_cv_path_SED" 5150 rm -f conftest.sed 5151 5152 5153 5154 5155 5156 5157# Check whether --enable-selective-werror was given. 5158if test "${enable_selective_werror+set}" = set; then : 5159 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5160else 5161 SELECTIVE_WERROR=yes 5162fi 5163 5164 5165 5166 5167 5168# -v is too short to test reliably with XORG_TESTSET_CFLAG 5169if test "x$SUNCC" = "xyes"; then 5170 BASE_CFLAGS="-v" 5171else 5172 BASE_CFLAGS="" 5173fi 5174 5175# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189xorg_testset_save_CFLAGS="$CFLAGS" 5190 5191if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5194$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5195if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5196 $as_echo_n "(cached) " >&6 5197else 5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5199/* end confdefs.h. */ 5200int i; 5201_ACEOF 5202if ac_fn_c_try_compile "$LINENO"; then : 5203 xorg_cv_cc_flag_unknown_warning_option=yes 5204else 5205 xorg_cv_cc_flag_unknown_warning_option=no 5206fi 5207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5208fi 5209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5210$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5212 CFLAGS="$xorg_testset_save_CFLAGS" 5213fi 5214 5215if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5218 fi 5219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5221$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5222if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5223 $as_echo_n "(cached) " >&6 5224else 5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5226/* end confdefs.h. */ 5227int i; 5228_ACEOF 5229if ac_fn_c_try_compile "$LINENO"; then : 5230 xorg_cv_cc_flag_unused_command_line_argument=yes 5231else 5232 xorg_cv_cc_flag_unused_command_line_argument=no 5233fi 5234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5235fi 5236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5237$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5239 CFLAGS="$xorg_testset_save_CFLAGS" 5240fi 5241 5242found="no" 5243 5244 if test $found = "no" ; then 5245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5247 fi 5248 5249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5251 fi 5252 5253 CFLAGS="$CFLAGS -Wall" 5254 5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5256$as_echo_n "checking if $CC supports -Wall... " >&6; } 5257 cacheid=xorg_cv_cc_flag__Wall 5258 if eval \${$cacheid+:} false; then : 5259 $as_echo_n "(cached) " >&6 5260else 5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5262/* end confdefs.h. */ 5263int i; 5264int 5265main () 5266{ 5267 5268 ; 5269 return 0; 5270} 5271_ACEOF 5272if ac_fn_c_try_link "$LINENO"; then : 5273 eval $cacheid=yes 5274else 5275 eval $cacheid=no 5276fi 5277rm -f core conftest.err conftest.$ac_objext \ 5278 conftest$ac_exeext conftest.$ac_ext 5279fi 5280 5281 5282 CFLAGS="$xorg_testset_save_CFLAGS" 5283 5284 eval supported=\$$cacheid 5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5286$as_echo "$supported" >&6; } 5287 if test "$supported" = "yes" ; then 5288 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5289 found="yes" 5290 fi 5291 fi 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307xorg_testset_save_CFLAGS="$CFLAGS" 5308 5309if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5312$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5313if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5314 $as_echo_n "(cached) " >&6 5315else 5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5317/* end confdefs.h. */ 5318int i; 5319_ACEOF 5320if ac_fn_c_try_compile "$LINENO"; then : 5321 xorg_cv_cc_flag_unknown_warning_option=yes 5322else 5323 xorg_cv_cc_flag_unknown_warning_option=no 5324fi 5325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5326fi 5327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5328$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5329 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5330 CFLAGS="$xorg_testset_save_CFLAGS" 5331fi 5332 5333if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5336 fi 5337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5339$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5340if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5341 $as_echo_n "(cached) " >&6 5342else 5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5344/* end confdefs.h. */ 5345int i; 5346_ACEOF 5347if ac_fn_c_try_compile "$LINENO"; then : 5348 xorg_cv_cc_flag_unused_command_line_argument=yes 5349else 5350 xorg_cv_cc_flag_unused_command_line_argument=no 5351fi 5352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5353fi 5354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5355$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5356 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5357 CFLAGS="$xorg_testset_save_CFLAGS" 5358fi 5359 5360found="no" 5361 5362 if test $found = "no" ; then 5363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5365 fi 5366 5367 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5369 fi 5370 5371 CFLAGS="$CFLAGS -Wpointer-arith" 5372 5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5374$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5375 cacheid=xorg_cv_cc_flag__Wpointer_arith 5376 if eval \${$cacheid+:} false; then : 5377 $as_echo_n "(cached) " >&6 5378else 5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5380/* end confdefs.h. */ 5381int i; 5382int 5383main () 5384{ 5385 5386 ; 5387 return 0; 5388} 5389_ACEOF 5390if ac_fn_c_try_link "$LINENO"; then : 5391 eval $cacheid=yes 5392else 5393 eval $cacheid=no 5394fi 5395rm -f core conftest.err conftest.$ac_objext \ 5396 conftest$ac_exeext conftest.$ac_ext 5397fi 5398 5399 5400 CFLAGS="$xorg_testset_save_CFLAGS" 5401 5402 eval supported=\$$cacheid 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5404$as_echo "$supported" >&6; } 5405 if test "$supported" = "yes" ; then 5406 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5407 found="yes" 5408 fi 5409 fi 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425xorg_testset_save_CFLAGS="$CFLAGS" 5426 5427if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5430$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5431if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5432 $as_echo_n "(cached) " >&6 5433else 5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5435/* end confdefs.h. */ 5436int i; 5437_ACEOF 5438if ac_fn_c_try_compile "$LINENO"; then : 5439 xorg_cv_cc_flag_unknown_warning_option=yes 5440else 5441 xorg_cv_cc_flag_unknown_warning_option=no 5442fi 5443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5444fi 5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5446$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5447 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5448 CFLAGS="$xorg_testset_save_CFLAGS" 5449fi 5450 5451if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5454 fi 5455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5457$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5458if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5459 $as_echo_n "(cached) " >&6 5460else 5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5462/* end confdefs.h. */ 5463int i; 5464_ACEOF 5465if ac_fn_c_try_compile "$LINENO"; then : 5466 xorg_cv_cc_flag_unused_command_line_argument=yes 5467else 5468 xorg_cv_cc_flag_unused_command_line_argument=no 5469fi 5470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5471fi 5472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5473$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5474 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5475 CFLAGS="$xorg_testset_save_CFLAGS" 5476fi 5477 5478found="no" 5479 5480 if test $found = "no" ; then 5481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5483 fi 5484 5485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5487 fi 5488 5489 CFLAGS="$CFLAGS -Wmissing-declarations" 5490 5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5492$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5493 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5494 if eval \${$cacheid+:} false; then : 5495 $as_echo_n "(cached) " >&6 5496else 5497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5498/* end confdefs.h. */ 5499int i; 5500int 5501main () 5502{ 5503 5504 ; 5505 return 0; 5506} 5507_ACEOF 5508if ac_fn_c_try_link "$LINENO"; then : 5509 eval $cacheid=yes 5510else 5511 eval $cacheid=no 5512fi 5513rm -f core conftest.err conftest.$ac_objext \ 5514 conftest$ac_exeext conftest.$ac_ext 5515fi 5516 5517 5518 CFLAGS="$xorg_testset_save_CFLAGS" 5519 5520 eval supported=\$$cacheid 5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5522$as_echo "$supported" >&6; } 5523 if test "$supported" = "yes" ; then 5524 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5525 found="yes" 5526 fi 5527 fi 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543xorg_testset_save_CFLAGS="$CFLAGS" 5544 5545if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5548$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5549if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5550 $as_echo_n "(cached) " >&6 5551else 5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5553/* end confdefs.h. */ 5554int i; 5555_ACEOF 5556if ac_fn_c_try_compile "$LINENO"; then : 5557 xorg_cv_cc_flag_unknown_warning_option=yes 5558else 5559 xorg_cv_cc_flag_unknown_warning_option=no 5560fi 5561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5562fi 5563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5564$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5565 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5566 CFLAGS="$xorg_testset_save_CFLAGS" 5567fi 5568 5569if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5572 fi 5573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5575$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5576if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5577 $as_echo_n "(cached) " >&6 5578else 5579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5580/* end confdefs.h. */ 5581int i; 5582_ACEOF 5583if ac_fn_c_try_compile "$LINENO"; then : 5584 xorg_cv_cc_flag_unused_command_line_argument=yes 5585else 5586 xorg_cv_cc_flag_unused_command_line_argument=no 5587fi 5588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5589fi 5590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5591$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5592 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5593 CFLAGS="$xorg_testset_save_CFLAGS" 5594fi 5595 5596found="no" 5597 5598 if test $found = "no" ; then 5599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5601 fi 5602 5603 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5605 fi 5606 5607 CFLAGS="$CFLAGS -Wformat=2" 5608 5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5610$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5611 cacheid=xorg_cv_cc_flag__Wformat_2 5612 if eval \${$cacheid+:} false; then : 5613 $as_echo_n "(cached) " >&6 5614else 5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5616/* end confdefs.h. */ 5617int i; 5618int 5619main () 5620{ 5621 5622 ; 5623 return 0; 5624} 5625_ACEOF 5626if ac_fn_c_try_link "$LINENO"; then : 5627 eval $cacheid=yes 5628else 5629 eval $cacheid=no 5630fi 5631rm -f core conftest.err conftest.$ac_objext \ 5632 conftest$ac_exeext conftest.$ac_ext 5633fi 5634 5635 5636 CFLAGS="$xorg_testset_save_CFLAGS" 5637 5638 eval supported=\$$cacheid 5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5640$as_echo "$supported" >&6; } 5641 if test "$supported" = "yes" ; then 5642 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5643 found="yes" 5644 fi 5645 fi 5646 5647 if test $found = "no" ; then 5648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5650 fi 5651 5652 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5654 fi 5655 5656 CFLAGS="$CFLAGS -Wformat" 5657 5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5659$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5660 cacheid=xorg_cv_cc_flag__Wformat 5661 if eval \${$cacheid+:} false; then : 5662 $as_echo_n "(cached) " >&6 5663else 5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5665/* end confdefs.h. */ 5666int i; 5667int 5668main () 5669{ 5670 5671 ; 5672 return 0; 5673} 5674_ACEOF 5675if ac_fn_c_try_link "$LINENO"; then : 5676 eval $cacheid=yes 5677else 5678 eval $cacheid=no 5679fi 5680rm -f core conftest.err conftest.$ac_objext \ 5681 conftest$ac_exeext conftest.$ac_ext 5682fi 5683 5684 5685 CFLAGS="$xorg_testset_save_CFLAGS" 5686 5687 eval supported=\$$cacheid 5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5689$as_echo "$supported" >&6; } 5690 if test "$supported" = "yes" ; then 5691 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5692 found="yes" 5693 fi 5694 fi 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712xorg_testset_save_CFLAGS="$CFLAGS" 5713 5714if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5717$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5718if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5719 $as_echo_n "(cached) " >&6 5720else 5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5722/* end confdefs.h. */ 5723int i; 5724_ACEOF 5725if ac_fn_c_try_compile "$LINENO"; then : 5726 xorg_cv_cc_flag_unknown_warning_option=yes 5727else 5728 xorg_cv_cc_flag_unknown_warning_option=no 5729fi 5730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5731fi 5732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5733$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5734 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5735 CFLAGS="$xorg_testset_save_CFLAGS" 5736fi 5737 5738if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5741 fi 5742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5744$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5745if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5746 $as_echo_n "(cached) " >&6 5747else 5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5749/* end confdefs.h. */ 5750int i; 5751_ACEOF 5752if ac_fn_c_try_compile "$LINENO"; then : 5753 xorg_cv_cc_flag_unused_command_line_argument=yes 5754else 5755 xorg_cv_cc_flag_unused_command_line_argument=no 5756fi 5757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5758fi 5759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5760$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5761 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5762 CFLAGS="$xorg_testset_save_CFLAGS" 5763fi 5764 5765found="no" 5766 5767 if test $found = "no" ; then 5768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5770 fi 5771 5772 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5774 fi 5775 5776 CFLAGS="$CFLAGS -Wstrict-prototypes" 5777 5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5779$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5780 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5781 if eval \${$cacheid+:} false; then : 5782 $as_echo_n "(cached) " >&6 5783else 5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5785/* end confdefs.h. */ 5786int i; 5787int 5788main () 5789{ 5790 5791 ; 5792 return 0; 5793} 5794_ACEOF 5795if ac_fn_c_try_link "$LINENO"; then : 5796 eval $cacheid=yes 5797else 5798 eval $cacheid=no 5799fi 5800rm -f core conftest.err conftest.$ac_objext \ 5801 conftest$ac_exeext conftest.$ac_ext 5802fi 5803 5804 5805 CFLAGS="$xorg_testset_save_CFLAGS" 5806 5807 eval supported=\$$cacheid 5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5809$as_echo "$supported" >&6; } 5810 if test "$supported" = "yes" ; then 5811 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5812 found="yes" 5813 fi 5814 fi 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830xorg_testset_save_CFLAGS="$CFLAGS" 5831 5832if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5835$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5836if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5837 $as_echo_n "(cached) " >&6 5838else 5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5840/* end confdefs.h. */ 5841int i; 5842_ACEOF 5843if ac_fn_c_try_compile "$LINENO"; then : 5844 xorg_cv_cc_flag_unknown_warning_option=yes 5845else 5846 xorg_cv_cc_flag_unknown_warning_option=no 5847fi 5848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5849fi 5850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5851$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5853 CFLAGS="$xorg_testset_save_CFLAGS" 5854fi 5855 5856if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5859 fi 5860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5862$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5863if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5864 $as_echo_n "(cached) " >&6 5865else 5866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5867/* end confdefs.h. */ 5868int i; 5869_ACEOF 5870if ac_fn_c_try_compile "$LINENO"; then : 5871 xorg_cv_cc_flag_unused_command_line_argument=yes 5872else 5873 xorg_cv_cc_flag_unused_command_line_argument=no 5874fi 5875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5876fi 5877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5878$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5879 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5880 CFLAGS="$xorg_testset_save_CFLAGS" 5881fi 5882 5883found="no" 5884 5885 if test $found = "no" ; then 5886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5888 fi 5889 5890 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5892 fi 5893 5894 CFLAGS="$CFLAGS -Wmissing-prototypes" 5895 5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5897$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5898 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5899 if eval \${$cacheid+:} false; then : 5900 $as_echo_n "(cached) " >&6 5901else 5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5903/* end confdefs.h. */ 5904int i; 5905int 5906main () 5907{ 5908 5909 ; 5910 return 0; 5911} 5912_ACEOF 5913if ac_fn_c_try_link "$LINENO"; then : 5914 eval $cacheid=yes 5915else 5916 eval $cacheid=no 5917fi 5918rm -f core conftest.err conftest.$ac_objext \ 5919 conftest$ac_exeext conftest.$ac_ext 5920fi 5921 5922 5923 CFLAGS="$xorg_testset_save_CFLAGS" 5924 5925 eval supported=\$$cacheid 5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5927$as_echo "$supported" >&6; } 5928 if test "$supported" = "yes" ; then 5929 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5930 found="yes" 5931 fi 5932 fi 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948xorg_testset_save_CFLAGS="$CFLAGS" 5949 5950if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5953$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5954if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5955 $as_echo_n "(cached) " >&6 5956else 5957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5958/* end confdefs.h. */ 5959int i; 5960_ACEOF 5961if ac_fn_c_try_compile "$LINENO"; then : 5962 xorg_cv_cc_flag_unknown_warning_option=yes 5963else 5964 xorg_cv_cc_flag_unknown_warning_option=no 5965fi 5966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5967fi 5968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5969$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5970 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5971 CFLAGS="$xorg_testset_save_CFLAGS" 5972fi 5973 5974if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5977 fi 5978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5980$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5981if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5982 $as_echo_n "(cached) " >&6 5983else 5984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5985/* end confdefs.h. */ 5986int i; 5987_ACEOF 5988if ac_fn_c_try_compile "$LINENO"; then : 5989 xorg_cv_cc_flag_unused_command_line_argument=yes 5990else 5991 xorg_cv_cc_flag_unused_command_line_argument=no 5992fi 5993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5994fi 5995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5996$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5997 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5998 CFLAGS="$xorg_testset_save_CFLAGS" 5999fi 6000 6001found="no" 6002 6003 if test $found = "no" ; then 6004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6006 fi 6007 6008 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6010 fi 6011 6012 CFLAGS="$CFLAGS -Wnested-externs" 6013 6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6015$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 6016 cacheid=xorg_cv_cc_flag__Wnested_externs 6017 if eval \${$cacheid+:} false; then : 6018 $as_echo_n "(cached) " >&6 6019else 6020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6021/* end confdefs.h. */ 6022int i; 6023int 6024main () 6025{ 6026 6027 ; 6028 return 0; 6029} 6030_ACEOF 6031if ac_fn_c_try_link "$LINENO"; then : 6032 eval $cacheid=yes 6033else 6034 eval $cacheid=no 6035fi 6036rm -f core conftest.err conftest.$ac_objext \ 6037 conftest$ac_exeext conftest.$ac_ext 6038fi 6039 6040 6041 CFLAGS="$xorg_testset_save_CFLAGS" 6042 6043 eval supported=\$$cacheid 6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6045$as_echo "$supported" >&6; } 6046 if test "$supported" = "yes" ; then 6047 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6048 found="yes" 6049 fi 6050 fi 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066xorg_testset_save_CFLAGS="$CFLAGS" 6067 6068if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6071$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6072if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6073 $as_echo_n "(cached) " >&6 6074else 6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6076/* end confdefs.h. */ 6077int i; 6078_ACEOF 6079if ac_fn_c_try_compile "$LINENO"; then : 6080 xorg_cv_cc_flag_unknown_warning_option=yes 6081else 6082 xorg_cv_cc_flag_unknown_warning_option=no 6083fi 6084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6085fi 6086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6087$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6088 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6089 CFLAGS="$xorg_testset_save_CFLAGS" 6090fi 6091 6092if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6095 fi 6096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6098$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6099if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6100 $as_echo_n "(cached) " >&6 6101else 6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6103/* end confdefs.h. */ 6104int i; 6105_ACEOF 6106if ac_fn_c_try_compile "$LINENO"; then : 6107 xorg_cv_cc_flag_unused_command_line_argument=yes 6108else 6109 xorg_cv_cc_flag_unused_command_line_argument=no 6110fi 6111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6112fi 6113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6114$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6115 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6116 CFLAGS="$xorg_testset_save_CFLAGS" 6117fi 6118 6119found="no" 6120 6121 if test $found = "no" ; then 6122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6124 fi 6125 6126 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6128 fi 6129 6130 CFLAGS="$CFLAGS -Wbad-function-cast" 6131 6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6133$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 6134 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6135 if eval \${$cacheid+:} false; then : 6136 $as_echo_n "(cached) " >&6 6137else 6138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6139/* end confdefs.h. */ 6140int i; 6141int 6142main () 6143{ 6144 6145 ; 6146 return 0; 6147} 6148_ACEOF 6149if ac_fn_c_try_link "$LINENO"; then : 6150 eval $cacheid=yes 6151else 6152 eval $cacheid=no 6153fi 6154rm -f core conftest.err conftest.$ac_objext \ 6155 conftest$ac_exeext conftest.$ac_ext 6156fi 6157 6158 6159 CFLAGS="$xorg_testset_save_CFLAGS" 6160 6161 eval supported=\$$cacheid 6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6163$as_echo "$supported" >&6; } 6164 if test "$supported" = "yes" ; then 6165 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6166 found="yes" 6167 fi 6168 fi 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184xorg_testset_save_CFLAGS="$CFLAGS" 6185 6186if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6189$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6190if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6191 $as_echo_n "(cached) " >&6 6192else 6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6194/* end confdefs.h. */ 6195int i; 6196_ACEOF 6197if ac_fn_c_try_compile "$LINENO"; then : 6198 xorg_cv_cc_flag_unknown_warning_option=yes 6199else 6200 xorg_cv_cc_flag_unknown_warning_option=no 6201fi 6202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6203fi 6204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6205$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6206 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6207 CFLAGS="$xorg_testset_save_CFLAGS" 6208fi 6209 6210if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6213 fi 6214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6216$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6217if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6218 $as_echo_n "(cached) " >&6 6219else 6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6221/* end confdefs.h. */ 6222int i; 6223_ACEOF 6224if ac_fn_c_try_compile "$LINENO"; then : 6225 xorg_cv_cc_flag_unused_command_line_argument=yes 6226else 6227 xorg_cv_cc_flag_unused_command_line_argument=no 6228fi 6229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6230fi 6231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6232$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6233 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6234 CFLAGS="$xorg_testset_save_CFLAGS" 6235fi 6236 6237found="no" 6238 6239 if test $found = "no" ; then 6240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6242 fi 6243 6244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6246 fi 6247 6248 CFLAGS="$CFLAGS -Wold-style-definition" 6249 6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6251$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 6252 cacheid=xorg_cv_cc_flag__Wold_style_definition 6253 if eval \${$cacheid+:} false; then : 6254 $as_echo_n "(cached) " >&6 6255else 6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6257/* end confdefs.h. */ 6258int i; 6259int 6260main () 6261{ 6262 6263 ; 6264 return 0; 6265} 6266_ACEOF 6267if ac_fn_c_try_link "$LINENO"; then : 6268 eval $cacheid=yes 6269else 6270 eval $cacheid=no 6271fi 6272rm -f core conftest.err conftest.$ac_objext \ 6273 conftest$ac_exeext conftest.$ac_ext 6274fi 6275 6276 6277 CFLAGS="$xorg_testset_save_CFLAGS" 6278 6279 eval supported=\$$cacheid 6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6281$as_echo "$supported" >&6; } 6282 if test "$supported" = "yes" ; then 6283 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6284 found="yes" 6285 fi 6286 fi 6287 6288 if test $found = "no" ; then 6289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6291 fi 6292 6293 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6295 fi 6296 6297 CFLAGS="$CFLAGS -fd" 6298 6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6300$as_echo_n "checking if $CC supports -fd... " >&6; } 6301 cacheid=xorg_cv_cc_flag__fd 6302 if eval \${$cacheid+:} false; then : 6303 $as_echo_n "(cached) " >&6 6304else 6305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6306/* end confdefs.h. */ 6307int i; 6308int 6309main () 6310{ 6311 6312 ; 6313 return 0; 6314} 6315_ACEOF 6316if ac_fn_c_try_link "$LINENO"; then : 6317 eval $cacheid=yes 6318else 6319 eval $cacheid=no 6320fi 6321rm -f core conftest.err conftest.$ac_objext \ 6322 conftest$ac_exeext conftest.$ac_ext 6323fi 6324 6325 6326 CFLAGS="$xorg_testset_save_CFLAGS" 6327 6328 eval supported=\$$cacheid 6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6330$as_echo "$supported" >&6; } 6331 if test "$supported" = "yes" ; then 6332 BASE_CFLAGS="$BASE_CFLAGS -fd" 6333 found="yes" 6334 fi 6335 fi 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351xorg_testset_save_CFLAGS="$CFLAGS" 6352 6353if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6356$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6357if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6358 $as_echo_n "(cached) " >&6 6359else 6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6361/* end confdefs.h. */ 6362int i; 6363_ACEOF 6364if ac_fn_c_try_compile "$LINENO"; then : 6365 xorg_cv_cc_flag_unknown_warning_option=yes 6366else 6367 xorg_cv_cc_flag_unknown_warning_option=no 6368fi 6369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6370fi 6371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6372$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6373 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6374 CFLAGS="$xorg_testset_save_CFLAGS" 6375fi 6376 6377if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6380 fi 6381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6383$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6384if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6385 $as_echo_n "(cached) " >&6 6386else 6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6388/* end confdefs.h. */ 6389int i; 6390_ACEOF 6391if ac_fn_c_try_compile "$LINENO"; then : 6392 xorg_cv_cc_flag_unused_command_line_argument=yes 6393else 6394 xorg_cv_cc_flag_unused_command_line_argument=no 6395fi 6396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6397fi 6398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6399$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6400 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6401 CFLAGS="$xorg_testset_save_CFLAGS" 6402fi 6403 6404found="no" 6405 6406 if test $found = "no" ; then 6407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6409 fi 6410 6411 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6413 fi 6414 6415 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6416 6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6418$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6419 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6420 if eval \${$cacheid+:} false; then : 6421 $as_echo_n "(cached) " >&6 6422else 6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6424/* end confdefs.h. */ 6425int i; 6426int 6427main () 6428{ 6429 6430 ; 6431 return 0; 6432} 6433_ACEOF 6434if ac_fn_c_try_link "$LINENO"; then : 6435 eval $cacheid=yes 6436else 6437 eval $cacheid=no 6438fi 6439rm -f core conftest.err conftest.$ac_objext \ 6440 conftest$ac_exeext conftest.$ac_ext 6441fi 6442 6443 6444 CFLAGS="$xorg_testset_save_CFLAGS" 6445 6446 eval supported=\$$cacheid 6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6448$as_echo "$supported" >&6; } 6449 if test "$supported" = "yes" ; then 6450 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6451 found="yes" 6452 fi 6453 fi 6454 6455 6456 6457 6458 6459# This chunk adds additional warnings that could catch undesired effects. 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473xorg_testset_save_CFLAGS="$CFLAGS" 6474 6475if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6478$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6479if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6480 $as_echo_n "(cached) " >&6 6481else 6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6483/* end confdefs.h. */ 6484int i; 6485_ACEOF 6486if ac_fn_c_try_compile "$LINENO"; then : 6487 xorg_cv_cc_flag_unknown_warning_option=yes 6488else 6489 xorg_cv_cc_flag_unknown_warning_option=no 6490fi 6491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6492fi 6493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6494$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6495 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6496 CFLAGS="$xorg_testset_save_CFLAGS" 6497fi 6498 6499if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6502 fi 6503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6505$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6506if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6507 $as_echo_n "(cached) " >&6 6508else 6509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6510/* end confdefs.h. */ 6511int i; 6512_ACEOF 6513if ac_fn_c_try_compile "$LINENO"; then : 6514 xorg_cv_cc_flag_unused_command_line_argument=yes 6515else 6516 xorg_cv_cc_flag_unused_command_line_argument=no 6517fi 6518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6519fi 6520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6521$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6523 CFLAGS="$xorg_testset_save_CFLAGS" 6524fi 6525 6526found="no" 6527 6528 if test $found = "no" ; then 6529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6531 fi 6532 6533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6535 fi 6536 6537 CFLAGS="$CFLAGS -Wunused" 6538 6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6540$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6541 cacheid=xorg_cv_cc_flag__Wunused 6542 if eval \${$cacheid+:} false; then : 6543 $as_echo_n "(cached) " >&6 6544else 6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6546/* end confdefs.h. */ 6547int i; 6548int 6549main () 6550{ 6551 6552 ; 6553 return 0; 6554} 6555_ACEOF 6556if ac_fn_c_try_link "$LINENO"; then : 6557 eval $cacheid=yes 6558else 6559 eval $cacheid=no 6560fi 6561rm -f core conftest.err conftest.$ac_objext \ 6562 conftest$ac_exeext conftest.$ac_ext 6563fi 6564 6565 6566 CFLAGS="$xorg_testset_save_CFLAGS" 6567 6568 eval supported=\$$cacheid 6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6570$as_echo "$supported" >&6; } 6571 if test "$supported" = "yes" ; then 6572 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6573 found="yes" 6574 fi 6575 fi 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591xorg_testset_save_CFLAGS="$CFLAGS" 6592 6593if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6596$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6597if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6598 $as_echo_n "(cached) " >&6 6599else 6600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6601/* end confdefs.h. */ 6602int i; 6603_ACEOF 6604if ac_fn_c_try_compile "$LINENO"; then : 6605 xorg_cv_cc_flag_unknown_warning_option=yes 6606else 6607 xorg_cv_cc_flag_unknown_warning_option=no 6608fi 6609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6610fi 6611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6612$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6613 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6614 CFLAGS="$xorg_testset_save_CFLAGS" 6615fi 6616 6617if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6620 fi 6621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6623$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6624if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6625 $as_echo_n "(cached) " >&6 6626else 6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6628/* end confdefs.h. */ 6629int i; 6630_ACEOF 6631if ac_fn_c_try_compile "$LINENO"; then : 6632 xorg_cv_cc_flag_unused_command_line_argument=yes 6633else 6634 xorg_cv_cc_flag_unused_command_line_argument=no 6635fi 6636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6637fi 6638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6639$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6641 CFLAGS="$xorg_testset_save_CFLAGS" 6642fi 6643 6644found="no" 6645 6646 if test $found = "no" ; then 6647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6649 fi 6650 6651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6653 fi 6654 6655 CFLAGS="$CFLAGS -Wuninitialized" 6656 6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6658$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6659 cacheid=xorg_cv_cc_flag__Wuninitialized 6660 if eval \${$cacheid+:} false; then : 6661 $as_echo_n "(cached) " >&6 6662else 6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6664/* end confdefs.h. */ 6665int i; 6666int 6667main () 6668{ 6669 6670 ; 6671 return 0; 6672} 6673_ACEOF 6674if ac_fn_c_try_link "$LINENO"; then : 6675 eval $cacheid=yes 6676else 6677 eval $cacheid=no 6678fi 6679rm -f core conftest.err conftest.$ac_objext \ 6680 conftest$ac_exeext conftest.$ac_ext 6681fi 6682 6683 6684 CFLAGS="$xorg_testset_save_CFLAGS" 6685 6686 eval supported=\$$cacheid 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6688$as_echo "$supported" >&6; } 6689 if test "$supported" = "yes" ; then 6690 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6691 found="yes" 6692 fi 6693 fi 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709xorg_testset_save_CFLAGS="$CFLAGS" 6710 6711if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6714$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6715if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6716 $as_echo_n "(cached) " >&6 6717else 6718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6719/* end confdefs.h. */ 6720int i; 6721_ACEOF 6722if ac_fn_c_try_compile "$LINENO"; then : 6723 xorg_cv_cc_flag_unknown_warning_option=yes 6724else 6725 xorg_cv_cc_flag_unknown_warning_option=no 6726fi 6727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6728fi 6729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6730$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6731 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6732 CFLAGS="$xorg_testset_save_CFLAGS" 6733fi 6734 6735if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6738 fi 6739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6741$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6742if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6743 $as_echo_n "(cached) " >&6 6744else 6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6746/* end confdefs.h. */ 6747int i; 6748_ACEOF 6749if ac_fn_c_try_compile "$LINENO"; then : 6750 xorg_cv_cc_flag_unused_command_line_argument=yes 6751else 6752 xorg_cv_cc_flag_unused_command_line_argument=no 6753fi 6754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6755fi 6756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6757$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6758 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6759 CFLAGS="$xorg_testset_save_CFLAGS" 6760fi 6761 6762found="no" 6763 6764 if test $found = "no" ; then 6765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6767 fi 6768 6769 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6771 fi 6772 6773 CFLAGS="$CFLAGS -Wshadow" 6774 6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6776$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6777 cacheid=xorg_cv_cc_flag__Wshadow 6778 if eval \${$cacheid+:} false; then : 6779 $as_echo_n "(cached) " >&6 6780else 6781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6782/* end confdefs.h. */ 6783int i; 6784int 6785main () 6786{ 6787 6788 ; 6789 return 0; 6790} 6791_ACEOF 6792if ac_fn_c_try_link "$LINENO"; then : 6793 eval $cacheid=yes 6794else 6795 eval $cacheid=no 6796fi 6797rm -f core conftest.err conftest.$ac_objext \ 6798 conftest$ac_exeext conftest.$ac_ext 6799fi 6800 6801 6802 CFLAGS="$xorg_testset_save_CFLAGS" 6803 6804 eval supported=\$$cacheid 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6806$as_echo "$supported" >&6; } 6807 if test "$supported" = "yes" ; then 6808 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6809 found="yes" 6810 fi 6811 fi 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827xorg_testset_save_CFLAGS="$CFLAGS" 6828 6829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6832$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6833if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6834 $as_echo_n "(cached) " >&6 6835else 6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6837/* end confdefs.h. */ 6838int i; 6839_ACEOF 6840if ac_fn_c_try_compile "$LINENO"; then : 6841 xorg_cv_cc_flag_unknown_warning_option=yes 6842else 6843 xorg_cv_cc_flag_unknown_warning_option=no 6844fi 6845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6846fi 6847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6848$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6850 CFLAGS="$xorg_testset_save_CFLAGS" 6851fi 6852 6853if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6856 fi 6857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6859$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6860if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6861 $as_echo_n "(cached) " >&6 6862else 6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6864/* end confdefs.h. */ 6865int i; 6866_ACEOF 6867if ac_fn_c_try_compile "$LINENO"; then : 6868 xorg_cv_cc_flag_unused_command_line_argument=yes 6869else 6870 xorg_cv_cc_flag_unused_command_line_argument=no 6871fi 6872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6873fi 6874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6875$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6877 CFLAGS="$xorg_testset_save_CFLAGS" 6878fi 6879 6880found="no" 6881 6882 if test $found = "no" ; then 6883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6885 fi 6886 6887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6889 fi 6890 6891 CFLAGS="$CFLAGS -Wmissing-noreturn" 6892 6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6894$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6895 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6896 if eval \${$cacheid+:} false; then : 6897 $as_echo_n "(cached) " >&6 6898else 6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6900/* end confdefs.h. */ 6901int i; 6902int 6903main () 6904{ 6905 6906 ; 6907 return 0; 6908} 6909_ACEOF 6910if ac_fn_c_try_link "$LINENO"; then : 6911 eval $cacheid=yes 6912else 6913 eval $cacheid=no 6914fi 6915rm -f core conftest.err conftest.$ac_objext \ 6916 conftest$ac_exeext conftest.$ac_ext 6917fi 6918 6919 6920 CFLAGS="$xorg_testset_save_CFLAGS" 6921 6922 eval supported=\$$cacheid 6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6924$as_echo "$supported" >&6; } 6925 if test "$supported" = "yes" ; then 6926 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6927 found="yes" 6928 fi 6929 fi 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945xorg_testset_save_CFLAGS="$CFLAGS" 6946 6947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6950$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6951if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6952 $as_echo_n "(cached) " >&6 6953else 6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6955/* end confdefs.h. */ 6956int i; 6957_ACEOF 6958if ac_fn_c_try_compile "$LINENO"; then : 6959 xorg_cv_cc_flag_unknown_warning_option=yes 6960else 6961 xorg_cv_cc_flag_unknown_warning_option=no 6962fi 6963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6964fi 6965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6966$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6967 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6968 CFLAGS="$xorg_testset_save_CFLAGS" 6969fi 6970 6971if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6974 fi 6975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6977$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6978if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6979 $as_echo_n "(cached) " >&6 6980else 6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6982/* end confdefs.h. */ 6983int i; 6984_ACEOF 6985if ac_fn_c_try_compile "$LINENO"; then : 6986 xorg_cv_cc_flag_unused_command_line_argument=yes 6987else 6988 xorg_cv_cc_flag_unused_command_line_argument=no 6989fi 6990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6991fi 6992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6993$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6994 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6995 CFLAGS="$xorg_testset_save_CFLAGS" 6996fi 6997 6998found="no" 6999 7000 if test $found = "no" ; then 7001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7003 fi 7004 7005 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7007 fi 7008 7009 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7010 7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7012$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7013 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7014 if eval \${$cacheid+:} false; then : 7015 $as_echo_n "(cached) " >&6 7016else 7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7018/* end confdefs.h. */ 7019int i; 7020int 7021main () 7022{ 7023 7024 ; 7025 return 0; 7026} 7027_ACEOF 7028if ac_fn_c_try_link "$LINENO"; then : 7029 eval $cacheid=yes 7030else 7031 eval $cacheid=no 7032fi 7033rm -f core conftest.err conftest.$ac_objext \ 7034 conftest$ac_exeext conftest.$ac_ext 7035fi 7036 7037 7038 CFLAGS="$xorg_testset_save_CFLAGS" 7039 7040 eval supported=\$$cacheid 7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7042$as_echo "$supported" >&6; } 7043 if test "$supported" = "yes" ; then 7044 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7045 found="yes" 7046 fi 7047 fi 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063xorg_testset_save_CFLAGS="$CFLAGS" 7064 7065if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7068$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7069if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7070 $as_echo_n "(cached) " >&6 7071else 7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7073/* end confdefs.h. */ 7074int i; 7075_ACEOF 7076if ac_fn_c_try_compile "$LINENO"; then : 7077 xorg_cv_cc_flag_unknown_warning_option=yes 7078else 7079 xorg_cv_cc_flag_unknown_warning_option=no 7080fi 7081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7082fi 7083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7084$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7086 CFLAGS="$xorg_testset_save_CFLAGS" 7087fi 7088 7089if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7092 fi 7093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7095$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7096if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7097 $as_echo_n "(cached) " >&6 7098else 7099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7100/* end confdefs.h. */ 7101int i; 7102_ACEOF 7103if ac_fn_c_try_compile "$LINENO"; then : 7104 xorg_cv_cc_flag_unused_command_line_argument=yes 7105else 7106 xorg_cv_cc_flag_unused_command_line_argument=no 7107fi 7108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7109fi 7110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7111$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7113 CFLAGS="$xorg_testset_save_CFLAGS" 7114fi 7115 7116found="no" 7117 7118 if test $found = "no" ; then 7119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7121 fi 7122 7123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7125 fi 7126 7127 CFLAGS="$CFLAGS -Wredundant-decls" 7128 7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7130$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 7131 cacheid=xorg_cv_cc_flag__Wredundant_decls 7132 if eval \${$cacheid+:} false; then : 7133 $as_echo_n "(cached) " >&6 7134else 7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7136/* end confdefs.h. */ 7137int i; 7138int 7139main () 7140{ 7141 7142 ; 7143 return 0; 7144} 7145_ACEOF 7146if ac_fn_c_try_link "$LINENO"; then : 7147 eval $cacheid=yes 7148else 7149 eval $cacheid=no 7150fi 7151rm -f core conftest.err conftest.$ac_objext \ 7152 conftest$ac_exeext conftest.$ac_ext 7153fi 7154 7155 7156 CFLAGS="$xorg_testset_save_CFLAGS" 7157 7158 eval supported=\$$cacheid 7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7160$as_echo "$supported" >&6; } 7161 if test "$supported" = "yes" ; then 7162 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7163 found="yes" 7164 fi 7165 fi 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181xorg_testset_save_CFLAGS="$CFLAGS" 7182 7183if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7186$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7187if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7188 $as_echo_n "(cached) " >&6 7189else 7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7191/* end confdefs.h. */ 7192int i; 7193_ACEOF 7194if ac_fn_c_try_compile "$LINENO"; then : 7195 xorg_cv_cc_flag_unknown_warning_option=yes 7196else 7197 xorg_cv_cc_flag_unknown_warning_option=no 7198fi 7199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7200fi 7201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7202$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7204 CFLAGS="$xorg_testset_save_CFLAGS" 7205fi 7206 7207if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7210 fi 7211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7213$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7214if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7215 $as_echo_n "(cached) " >&6 7216else 7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7218/* end confdefs.h. */ 7219int i; 7220_ACEOF 7221if ac_fn_c_try_compile "$LINENO"; then : 7222 xorg_cv_cc_flag_unused_command_line_argument=yes 7223else 7224 xorg_cv_cc_flag_unused_command_line_argument=no 7225fi 7226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7227fi 7228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7229$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7231 CFLAGS="$xorg_testset_save_CFLAGS" 7232fi 7233 7234found="no" 7235 7236 if test $found = "no" ; then 7237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7239 fi 7240 7241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7243 fi 7244 7245 CFLAGS="$CFLAGS -Wlogical-op" 7246 7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7248$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 7249 cacheid=xorg_cv_cc_flag__Wlogical_op 7250 if eval \${$cacheid+:} false; then : 7251 $as_echo_n "(cached) " >&6 7252else 7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7254/* end confdefs.h. */ 7255int i; 7256int 7257main () 7258{ 7259 7260 ; 7261 return 0; 7262} 7263_ACEOF 7264if ac_fn_c_try_link "$LINENO"; then : 7265 eval $cacheid=yes 7266else 7267 eval $cacheid=no 7268fi 7269rm -f core conftest.err conftest.$ac_objext \ 7270 conftest$ac_exeext conftest.$ac_ext 7271fi 7272 7273 7274 CFLAGS="$xorg_testset_save_CFLAGS" 7275 7276 eval supported=\$$cacheid 7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7278$as_echo "$supported" >&6; } 7279 if test "$supported" = "yes" ; then 7280 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7281 found="yes" 7282 fi 7283 fi 7284 7285 7286 7287# These are currently disabled because they are noisy. They will be enabled 7288# in the future once the codebase is sufficiently modernized to silence 7289# them. For now, I don't want them to drown out the other warnings. 7290# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7291# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7292# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7293 7294# Turn some warnings into errors, so we don't accidently get successful builds 7295# when there are problems that should be fixed. 7296 7297if test "x$SELECTIVE_WERROR" = "xyes" ; then 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311xorg_testset_save_CFLAGS="$CFLAGS" 7312 7313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7316$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7317if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7318 $as_echo_n "(cached) " >&6 7319else 7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7321/* end confdefs.h. */ 7322int i; 7323_ACEOF 7324if ac_fn_c_try_compile "$LINENO"; then : 7325 xorg_cv_cc_flag_unknown_warning_option=yes 7326else 7327 xorg_cv_cc_flag_unknown_warning_option=no 7328fi 7329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7330fi 7331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7332$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7334 CFLAGS="$xorg_testset_save_CFLAGS" 7335fi 7336 7337if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7340 fi 7341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7343$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7344if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7345 $as_echo_n "(cached) " >&6 7346else 7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7348/* end confdefs.h. */ 7349int i; 7350_ACEOF 7351if ac_fn_c_try_compile "$LINENO"; then : 7352 xorg_cv_cc_flag_unused_command_line_argument=yes 7353else 7354 xorg_cv_cc_flag_unused_command_line_argument=no 7355fi 7356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7357fi 7358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7359$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7360 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7361 CFLAGS="$xorg_testset_save_CFLAGS" 7362fi 7363 7364found="no" 7365 7366 if test $found = "no" ; then 7367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7369 fi 7370 7371 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7373 fi 7374 7375 CFLAGS="$CFLAGS -Werror=implicit" 7376 7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7378$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7379 cacheid=xorg_cv_cc_flag__Werror_implicit 7380 if eval \${$cacheid+:} false; then : 7381 $as_echo_n "(cached) " >&6 7382else 7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7384/* end confdefs.h. */ 7385int i; 7386int 7387main () 7388{ 7389 7390 ; 7391 return 0; 7392} 7393_ACEOF 7394if ac_fn_c_try_link "$LINENO"; then : 7395 eval $cacheid=yes 7396else 7397 eval $cacheid=no 7398fi 7399rm -f core conftest.err conftest.$ac_objext \ 7400 conftest$ac_exeext conftest.$ac_ext 7401fi 7402 7403 7404 CFLAGS="$xorg_testset_save_CFLAGS" 7405 7406 eval supported=\$$cacheid 7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7408$as_echo "$supported" >&6; } 7409 if test "$supported" = "yes" ; then 7410 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7411 found="yes" 7412 fi 7413 fi 7414 7415 if test $found = "no" ; then 7416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7418 fi 7419 7420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7422 fi 7423 7424 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7425 7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7427$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7428 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7429 if eval \${$cacheid+:} false; then : 7430 $as_echo_n "(cached) " >&6 7431else 7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7433/* end confdefs.h. */ 7434int i; 7435int 7436main () 7437{ 7438 7439 ; 7440 return 0; 7441} 7442_ACEOF 7443if ac_fn_c_try_link "$LINENO"; then : 7444 eval $cacheid=yes 7445else 7446 eval $cacheid=no 7447fi 7448rm -f core conftest.err conftest.$ac_objext \ 7449 conftest$ac_exeext conftest.$ac_ext 7450fi 7451 7452 7453 CFLAGS="$xorg_testset_save_CFLAGS" 7454 7455 eval supported=\$$cacheid 7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7457$as_echo "$supported" >&6; } 7458 if test "$supported" = "yes" ; then 7459 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7460 found="yes" 7461 fi 7462 fi 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478xorg_testset_save_CFLAGS="$CFLAGS" 7479 7480if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7483$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7484if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7485 $as_echo_n "(cached) " >&6 7486else 7487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7488/* end confdefs.h. */ 7489int i; 7490_ACEOF 7491if ac_fn_c_try_compile "$LINENO"; then : 7492 xorg_cv_cc_flag_unknown_warning_option=yes 7493else 7494 xorg_cv_cc_flag_unknown_warning_option=no 7495fi 7496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7497fi 7498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7499$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7500 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7501 CFLAGS="$xorg_testset_save_CFLAGS" 7502fi 7503 7504if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7507 fi 7508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7510$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7511if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7512 $as_echo_n "(cached) " >&6 7513else 7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7515/* end confdefs.h. */ 7516int i; 7517_ACEOF 7518if ac_fn_c_try_compile "$LINENO"; then : 7519 xorg_cv_cc_flag_unused_command_line_argument=yes 7520else 7521 xorg_cv_cc_flag_unused_command_line_argument=no 7522fi 7523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7524fi 7525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7526$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7527 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7528 CFLAGS="$xorg_testset_save_CFLAGS" 7529fi 7530 7531found="no" 7532 7533 if test $found = "no" ; then 7534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7536 fi 7537 7538 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7540 fi 7541 7542 CFLAGS="$CFLAGS -Werror=nonnull" 7543 7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7545$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7546 cacheid=xorg_cv_cc_flag__Werror_nonnull 7547 if eval \${$cacheid+:} false; then : 7548 $as_echo_n "(cached) " >&6 7549else 7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7551/* end confdefs.h. */ 7552int i; 7553int 7554main () 7555{ 7556 7557 ; 7558 return 0; 7559} 7560_ACEOF 7561if ac_fn_c_try_link "$LINENO"; then : 7562 eval $cacheid=yes 7563else 7564 eval $cacheid=no 7565fi 7566rm -f core conftest.err conftest.$ac_objext \ 7567 conftest$ac_exeext conftest.$ac_ext 7568fi 7569 7570 7571 CFLAGS="$xorg_testset_save_CFLAGS" 7572 7573 eval supported=\$$cacheid 7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7575$as_echo "$supported" >&6; } 7576 if test "$supported" = "yes" ; then 7577 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7578 found="yes" 7579 fi 7580 fi 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596xorg_testset_save_CFLAGS="$CFLAGS" 7597 7598if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7601$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7602if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7603 $as_echo_n "(cached) " >&6 7604else 7605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7606/* end confdefs.h. */ 7607int i; 7608_ACEOF 7609if ac_fn_c_try_compile "$LINENO"; then : 7610 xorg_cv_cc_flag_unknown_warning_option=yes 7611else 7612 xorg_cv_cc_flag_unknown_warning_option=no 7613fi 7614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7615fi 7616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7617$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7619 CFLAGS="$xorg_testset_save_CFLAGS" 7620fi 7621 7622if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7625 fi 7626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7628$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7629if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7630 $as_echo_n "(cached) " >&6 7631else 7632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7633/* end confdefs.h. */ 7634int i; 7635_ACEOF 7636if ac_fn_c_try_compile "$LINENO"; then : 7637 xorg_cv_cc_flag_unused_command_line_argument=yes 7638else 7639 xorg_cv_cc_flag_unused_command_line_argument=no 7640fi 7641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7642fi 7643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7644$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7645 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7646 CFLAGS="$xorg_testset_save_CFLAGS" 7647fi 7648 7649found="no" 7650 7651 if test $found = "no" ; then 7652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7654 fi 7655 7656 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7658 fi 7659 7660 CFLAGS="$CFLAGS -Werror=init-self" 7661 7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7663$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7664 cacheid=xorg_cv_cc_flag__Werror_init_self 7665 if eval \${$cacheid+:} false; then : 7666 $as_echo_n "(cached) " >&6 7667else 7668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7669/* end confdefs.h. */ 7670int i; 7671int 7672main () 7673{ 7674 7675 ; 7676 return 0; 7677} 7678_ACEOF 7679if ac_fn_c_try_link "$LINENO"; then : 7680 eval $cacheid=yes 7681else 7682 eval $cacheid=no 7683fi 7684rm -f core conftest.err conftest.$ac_objext \ 7685 conftest$ac_exeext conftest.$ac_ext 7686fi 7687 7688 7689 CFLAGS="$xorg_testset_save_CFLAGS" 7690 7691 eval supported=\$$cacheid 7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7693$as_echo "$supported" >&6; } 7694 if test "$supported" = "yes" ; then 7695 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7696 found="yes" 7697 fi 7698 fi 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714xorg_testset_save_CFLAGS="$CFLAGS" 7715 7716if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7719$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7720if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7721 $as_echo_n "(cached) " >&6 7722else 7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7724/* end confdefs.h. */ 7725int i; 7726_ACEOF 7727if ac_fn_c_try_compile "$LINENO"; then : 7728 xorg_cv_cc_flag_unknown_warning_option=yes 7729else 7730 xorg_cv_cc_flag_unknown_warning_option=no 7731fi 7732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7733fi 7734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7735$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7736 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7737 CFLAGS="$xorg_testset_save_CFLAGS" 7738fi 7739 7740if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7743 fi 7744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7746$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7747if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7748 $as_echo_n "(cached) " >&6 7749else 7750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7751/* end confdefs.h. */ 7752int i; 7753_ACEOF 7754if ac_fn_c_try_compile "$LINENO"; then : 7755 xorg_cv_cc_flag_unused_command_line_argument=yes 7756else 7757 xorg_cv_cc_flag_unused_command_line_argument=no 7758fi 7759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7760fi 7761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7762$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7763 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7764 CFLAGS="$xorg_testset_save_CFLAGS" 7765fi 7766 7767found="no" 7768 7769 if test $found = "no" ; then 7770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7772 fi 7773 7774 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7776 fi 7777 7778 CFLAGS="$CFLAGS -Werror=main" 7779 7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7781$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7782 cacheid=xorg_cv_cc_flag__Werror_main 7783 if eval \${$cacheid+:} false; then : 7784 $as_echo_n "(cached) " >&6 7785else 7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7787/* end confdefs.h. */ 7788int i; 7789int 7790main () 7791{ 7792 7793 ; 7794 return 0; 7795} 7796_ACEOF 7797if ac_fn_c_try_link "$LINENO"; then : 7798 eval $cacheid=yes 7799else 7800 eval $cacheid=no 7801fi 7802rm -f core conftest.err conftest.$ac_objext \ 7803 conftest$ac_exeext conftest.$ac_ext 7804fi 7805 7806 7807 CFLAGS="$xorg_testset_save_CFLAGS" 7808 7809 eval supported=\$$cacheid 7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7811$as_echo "$supported" >&6; } 7812 if test "$supported" = "yes" ; then 7813 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7814 found="yes" 7815 fi 7816 fi 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832xorg_testset_save_CFLAGS="$CFLAGS" 7833 7834if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7837$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7838if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7839 $as_echo_n "(cached) " >&6 7840else 7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7842/* end confdefs.h. */ 7843int i; 7844_ACEOF 7845if ac_fn_c_try_compile "$LINENO"; then : 7846 xorg_cv_cc_flag_unknown_warning_option=yes 7847else 7848 xorg_cv_cc_flag_unknown_warning_option=no 7849fi 7850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7851fi 7852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7853$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7854 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7855 CFLAGS="$xorg_testset_save_CFLAGS" 7856fi 7857 7858if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7861 fi 7862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7864$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7865if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7866 $as_echo_n "(cached) " >&6 7867else 7868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7869/* end confdefs.h. */ 7870int i; 7871_ACEOF 7872if ac_fn_c_try_compile "$LINENO"; then : 7873 xorg_cv_cc_flag_unused_command_line_argument=yes 7874else 7875 xorg_cv_cc_flag_unused_command_line_argument=no 7876fi 7877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7878fi 7879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7880$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7882 CFLAGS="$xorg_testset_save_CFLAGS" 7883fi 7884 7885found="no" 7886 7887 if test $found = "no" ; then 7888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7890 fi 7891 7892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7894 fi 7895 7896 CFLAGS="$CFLAGS -Werror=missing-braces" 7897 7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7899$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7900 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7901 if eval \${$cacheid+:} false; then : 7902 $as_echo_n "(cached) " >&6 7903else 7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7905/* end confdefs.h. */ 7906int i; 7907int 7908main () 7909{ 7910 7911 ; 7912 return 0; 7913} 7914_ACEOF 7915if ac_fn_c_try_link "$LINENO"; then : 7916 eval $cacheid=yes 7917else 7918 eval $cacheid=no 7919fi 7920rm -f core conftest.err conftest.$ac_objext \ 7921 conftest$ac_exeext conftest.$ac_ext 7922fi 7923 7924 7925 CFLAGS="$xorg_testset_save_CFLAGS" 7926 7927 eval supported=\$$cacheid 7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7929$as_echo "$supported" >&6; } 7930 if test "$supported" = "yes" ; then 7931 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7932 found="yes" 7933 fi 7934 fi 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950xorg_testset_save_CFLAGS="$CFLAGS" 7951 7952if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7955$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7956if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7957 $as_echo_n "(cached) " >&6 7958else 7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7960/* end confdefs.h. */ 7961int i; 7962_ACEOF 7963if ac_fn_c_try_compile "$LINENO"; then : 7964 xorg_cv_cc_flag_unknown_warning_option=yes 7965else 7966 xorg_cv_cc_flag_unknown_warning_option=no 7967fi 7968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7969fi 7970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7971$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7973 CFLAGS="$xorg_testset_save_CFLAGS" 7974fi 7975 7976if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7979 fi 7980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7982$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7983if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7984 $as_echo_n "(cached) " >&6 7985else 7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7987/* end confdefs.h. */ 7988int i; 7989_ACEOF 7990if ac_fn_c_try_compile "$LINENO"; then : 7991 xorg_cv_cc_flag_unused_command_line_argument=yes 7992else 7993 xorg_cv_cc_flag_unused_command_line_argument=no 7994fi 7995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7996fi 7997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7998$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8000 CFLAGS="$xorg_testset_save_CFLAGS" 8001fi 8002 8003found="no" 8004 8005 if test $found = "no" ; then 8006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8008 fi 8009 8010 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8012 fi 8013 8014 CFLAGS="$CFLAGS -Werror=sequence-point" 8015 8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8017$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 8018 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8019 if eval \${$cacheid+:} false; then : 8020 $as_echo_n "(cached) " >&6 8021else 8022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8023/* end confdefs.h. */ 8024int i; 8025int 8026main () 8027{ 8028 8029 ; 8030 return 0; 8031} 8032_ACEOF 8033if ac_fn_c_try_link "$LINENO"; then : 8034 eval $cacheid=yes 8035else 8036 eval $cacheid=no 8037fi 8038rm -f core conftest.err conftest.$ac_objext \ 8039 conftest$ac_exeext conftest.$ac_ext 8040fi 8041 8042 8043 CFLAGS="$xorg_testset_save_CFLAGS" 8044 8045 eval supported=\$$cacheid 8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8047$as_echo "$supported" >&6; } 8048 if test "$supported" = "yes" ; then 8049 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8050 found="yes" 8051 fi 8052 fi 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068xorg_testset_save_CFLAGS="$CFLAGS" 8069 8070if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8073$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8074if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8075 $as_echo_n "(cached) " >&6 8076else 8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8078/* end confdefs.h. */ 8079int i; 8080_ACEOF 8081if ac_fn_c_try_compile "$LINENO"; then : 8082 xorg_cv_cc_flag_unknown_warning_option=yes 8083else 8084 xorg_cv_cc_flag_unknown_warning_option=no 8085fi 8086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8087fi 8088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8089$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8090 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8091 CFLAGS="$xorg_testset_save_CFLAGS" 8092fi 8093 8094if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8097 fi 8098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8100$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8101if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8102 $as_echo_n "(cached) " >&6 8103else 8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8105/* end confdefs.h. */ 8106int i; 8107_ACEOF 8108if ac_fn_c_try_compile "$LINENO"; then : 8109 xorg_cv_cc_flag_unused_command_line_argument=yes 8110else 8111 xorg_cv_cc_flag_unused_command_line_argument=no 8112fi 8113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8114fi 8115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8116$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8117 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8118 CFLAGS="$xorg_testset_save_CFLAGS" 8119fi 8120 8121found="no" 8122 8123 if test $found = "no" ; then 8124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8126 fi 8127 8128 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8130 fi 8131 8132 CFLAGS="$CFLAGS -Werror=return-type" 8133 8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8135$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 8136 cacheid=xorg_cv_cc_flag__Werror_return_type 8137 if eval \${$cacheid+:} false; then : 8138 $as_echo_n "(cached) " >&6 8139else 8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8141/* end confdefs.h. */ 8142int i; 8143int 8144main () 8145{ 8146 8147 ; 8148 return 0; 8149} 8150_ACEOF 8151if ac_fn_c_try_link "$LINENO"; then : 8152 eval $cacheid=yes 8153else 8154 eval $cacheid=no 8155fi 8156rm -f core conftest.err conftest.$ac_objext \ 8157 conftest$ac_exeext conftest.$ac_ext 8158fi 8159 8160 8161 CFLAGS="$xorg_testset_save_CFLAGS" 8162 8163 eval supported=\$$cacheid 8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8165$as_echo "$supported" >&6; } 8166 if test "$supported" = "yes" ; then 8167 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8168 found="yes" 8169 fi 8170 fi 8171 8172 if test $found = "no" ; then 8173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8175 fi 8176 8177 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8179 fi 8180 8181 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8182 8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8184$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8185 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8186 if eval \${$cacheid+:} false; then : 8187 $as_echo_n "(cached) " >&6 8188else 8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8190/* end confdefs.h. */ 8191int i; 8192int 8193main () 8194{ 8195 8196 ; 8197 return 0; 8198} 8199_ACEOF 8200if ac_fn_c_try_link "$LINENO"; then : 8201 eval $cacheid=yes 8202else 8203 eval $cacheid=no 8204fi 8205rm -f core conftest.err conftest.$ac_objext \ 8206 conftest$ac_exeext conftest.$ac_ext 8207fi 8208 8209 8210 CFLAGS="$xorg_testset_save_CFLAGS" 8211 8212 eval supported=\$$cacheid 8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8214$as_echo "$supported" >&6; } 8215 if test "$supported" = "yes" ; then 8216 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8217 found="yes" 8218 fi 8219 fi 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235xorg_testset_save_CFLAGS="$CFLAGS" 8236 8237if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8240$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8241if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8242 $as_echo_n "(cached) " >&6 8243else 8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8245/* end confdefs.h. */ 8246int i; 8247_ACEOF 8248if ac_fn_c_try_compile "$LINENO"; then : 8249 xorg_cv_cc_flag_unknown_warning_option=yes 8250else 8251 xorg_cv_cc_flag_unknown_warning_option=no 8252fi 8253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8254fi 8255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8256$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8258 CFLAGS="$xorg_testset_save_CFLAGS" 8259fi 8260 8261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8264 fi 8265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8267$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8268if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8269 $as_echo_n "(cached) " >&6 8270else 8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8272/* end confdefs.h. */ 8273int i; 8274_ACEOF 8275if ac_fn_c_try_compile "$LINENO"; then : 8276 xorg_cv_cc_flag_unused_command_line_argument=yes 8277else 8278 xorg_cv_cc_flag_unused_command_line_argument=no 8279fi 8280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8281fi 8282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8283$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8284 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8285 CFLAGS="$xorg_testset_save_CFLAGS" 8286fi 8287 8288found="no" 8289 8290 if test $found = "no" ; then 8291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8293 fi 8294 8295 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8297 fi 8298 8299 CFLAGS="$CFLAGS -Werror=trigraphs" 8300 8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8302$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 8303 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8304 if eval \${$cacheid+:} false; then : 8305 $as_echo_n "(cached) " >&6 8306else 8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8308/* end confdefs.h. */ 8309int i; 8310int 8311main () 8312{ 8313 8314 ; 8315 return 0; 8316} 8317_ACEOF 8318if ac_fn_c_try_link "$LINENO"; then : 8319 eval $cacheid=yes 8320else 8321 eval $cacheid=no 8322fi 8323rm -f core conftest.err conftest.$ac_objext \ 8324 conftest$ac_exeext conftest.$ac_ext 8325fi 8326 8327 8328 CFLAGS="$xorg_testset_save_CFLAGS" 8329 8330 eval supported=\$$cacheid 8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8332$as_echo "$supported" >&6; } 8333 if test "$supported" = "yes" ; then 8334 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8335 found="yes" 8336 fi 8337 fi 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353xorg_testset_save_CFLAGS="$CFLAGS" 8354 8355if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8358$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8359if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8360 $as_echo_n "(cached) " >&6 8361else 8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8363/* end confdefs.h. */ 8364int i; 8365_ACEOF 8366if ac_fn_c_try_compile "$LINENO"; then : 8367 xorg_cv_cc_flag_unknown_warning_option=yes 8368else 8369 xorg_cv_cc_flag_unknown_warning_option=no 8370fi 8371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8372fi 8373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8374$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8375 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8376 CFLAGS="$xorg_testset_save_CFLAGS" 8377fi 8378 8379if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8382 fi 8383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8385$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8386if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8387 $as_echo_n "(cached) " >&6 8388else 8389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8390/* end confdefs.h. */ 8391int i; 8392_ACEOF 8393if ac_fn_c_try_compile "$LINENO"; then : 8394 xorg_cv_cc_flag_unused_command_line_argument=yes 8395else 8396 xorg_cv_cc_flag_unused_command_line_argument=no 8397fi 8398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8399fi 8400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8401$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8402 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8403 CFLAGS="$xorg_testset_save_CFLAGS" 8404fi 8405 8406found="no" 8407 8408 if test $found = "no" ; then 8409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8411 fi 8412 8413 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8415 fi 8416 8417 CFLAGS="$CFLAGS -Werror=array-bounds" 8418 8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8420$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8421 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8422 if eval \${$cacheid+:} false; then : 8423 $as_echo_n "(cached) " >&6 8424else 8425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8426/* end confdefs.h. */ 8427int i; 8428int 8429main () 8430{ 8431 8432 ; 8433 return 0; 8434} 8435_ACEOF 8436if ac_fn_c_try_link "$LINENO"; then : 8437 eval $cacheid=yes 8438else 8439 eval $cacheid=no 8440fi 8441rm -f core conftest.err conftest.$ac_objext \ 8442 conftest$ac_exeext conftest.$ac_ext 8443fi 8444 8445 8446 CFLAGS="$xorg_testset_save_CFLAGS" 8447 8448 eval supported=\$$cacheid 8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8450$as_echo "$supported" >&6; } 8451 if test "$supported" = "yes" ; then 8452 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8453 found="yes" 8454 fi 8455 fi 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471xorg_testset_save_CFLAGS="$CFLAGS" 8472 8473if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8476$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8477if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8478 $as_echo_n "(cached) " >&6 8479else 8480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8481/* end confdefs.h. */ 8482int i; 8483_ACEOF 8484if ac_fn_c_try_compile "$LINENO"; then : 8485 xorg_cv_cc_flag_unknown_warning_option=yes 8486else 8487 xorg_cv_cc_flag_unknown_warning_option=no 8488fi 8489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8490fi 8491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8492$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8494 CFLAGS="$xorg_testset_save_CFLAGS" 8495fi 8496 8497if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8500 fi 8501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8503$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8504if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8505 $as_echo_n "(cached) " >&6 8506else 8507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8508/* end confdefs.h. */ 8509int i; 8510_ACEOF 8511if ac_fn_c_try_compile "$LINENO"; then : 8512 xorg_cv_cc_flag_unused_command_line_argument=yes 8513else 8514 xorg_cv_cc_flag_unused_command_line_argument=no 8515fi 8516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8517fi 8518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8519$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8520 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8521 CFLAGS="$xorg_testset_save_CFLAGS" 8522fi 8523 8524found="no" 8525 8526 if test $found = "no" ; then 8527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8529 fi 8530 8531 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8533 fi 8534 8535 CFLAGS="$CFLAGS -Werror=write-strings" 8536 8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8538$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8539 cacheid=xorg_cv_cc_flag__Werror_write_strings 8540 if eval \${$cacheid+:} false; then : 8541 $as_echo_n "(cached) " >&6 8542else 8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8544/* end confdefs.h. */ 8545int i; 8546int 8547main () 8548{ 8549 8550 ; 8551 return 0; 8552} 8553_ACEOF 8554if ac_fn_c_try_link "$LINENO"; then : 8555 eval $cacheid=yes 8556else 8557 eval $cacheid=no 8558fi 8559rm -f core conftest.err conftest.$ac_objext \ 8560 conftest$ac_exeext conftest.$ac_ext 8561fi 8562 8563 8564 CFLAGS="$xorg_testset_save_CFLAGS" 8565 8566 eval supported=\$$cacheid 8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8568$as_echo "$supported" >&6; } 8569 if test "$supported" = "yes" ; then 8570 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8571 found="yes" 8572 fi 8573 fi 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589xorg_testset_save_CFLAGS="$CFLAGS" 8590 8591if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8594$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8595if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8596 $as_echo_n "(cached) " >&6 8597else 8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8599/* end confdefs.h. */ 8600int i; 8601_ACEOF 8602if ac_fn_c_try_compile "$LINENO"; then : 8603 xorg_cv_cc_flag_unknown_warning_option=yes 8604else 8605 xorg_cv_cc_flag_unknown_warning_option=no 8606fi 8607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8608fi 8609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8610$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8611 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8612 CFLAGS="$xorg_testset_save_CFLAGS" 8613fi 8614 8615if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8618 fi 8619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8621$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8622if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8623 $as_echo_n "(cached) " >&6 8624else 8625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8626/* end confdefs.h. */ 8627int i; 8628_ACEOF 8629if ac_fn_c_try_compile "$LINENO"; then : 8630 xorg_cv_cc_flag_unused_command_line_argument=yes 8631else 8632 xorg_cv_cc_flag_unused_command_line_argument=no 8633fi 8634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8635fi 8636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8637$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8638 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8639 CFLAGS="$xorg_testset_save_CFLAGS" 8640fi 8641 8642found="no" 8643 8644 if test $found = "no" ; then 8645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8647 fi 8648 8649 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8651 fi 8652 8653 CFLAGS="$CFLAGS -Werror=address" 8654 8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8656$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8657 cacheid=xorg_cv_cc_flag__Werror_address 8658 if eval \${$cacheid+:} false; then : 8659 $as_echo_n "(cached) " >&6 8660else 8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8662/* end confdefs.h. */ 8663int i; 8664int 8665main () 8666{ 8667 8668 ; 8669 return 0; 8670} 8671_ACEOF 8672if ac_fn_c_try_link "$LINENO"; then : 8673 eval $cacheid=yes 8674else 8675 eval $cacheid=no 8676fi 8677rm -f core conftest.err conftest.$ac_objext \ 8678 conftest$ac_exeext conftest.$ac_ext 8679fi 8680 8681 8682 CFLAGS="$xorg_testset_save_CFLAGS" 8683 8684 eval supported=\$$cacheid 8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8686$as_echo "$supported" >&6; } 8687 if test "$supported" = "yes" ; then 8688 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8689 found="yes" 8690 fi 8691 fi 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707xorg_testset_save_CFLAGS="$CFLAGS" 8708 8709if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8712$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8713if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8714 $as_echo_n "(cached) " >&6 8715else 8716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8717/* end confdefs.h. */ 8718int i; 8719_ACEOF 8720if ac_fn_c_try_compile "$LINENO"; then : 8721 xorg_cv_cc_flag_unknown_warning_option=yes 8722else 8723 xorg_cv_cc_flag_unknown_warning_option=no 8724fi 8725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8726fi 8727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8728$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8729 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8730 CFLAGS="$xorg_testset_save_CFLAGS" 8731fi 8732 8733if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8736 fi 8737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8739$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8740if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8741 $as_echo_n "(cached) " >&6 8742else 8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8744/* end confdefs.h. */ 8745int i; 8746_ACEOF 8747if ac_fn_c_try_compile "$LINENO"; then : 8748 xorg_cv_cc_flag_unused_command_line_argument=yes 8749else 8750 xorg_cv_cc_flag_unused_command_line_argument=no 8751fi 8752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8753fi 8754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8755$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8757 CFLAGS="$xorg_testset_save_CFLAGS" 8758fi 8759 8760found="no" 8761 8762 if test $found = "no" ; then 8763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8765 fi 8766 8767 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8769 fi 8770 8771 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8772 8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8774$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8775 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8776 if eval \${$cacheid+:} false; then : 8777 $as_echo_n "(cached) " >&6 8778else 8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8780/* end confdefs.h. */ 8781int i; 8782int 8783main () 8784{ 8785 8786 ; 8787 return 0; 8788} 8789_ACEOF 8790if ac_fn_c_try_link "$LINENO"; then : 8791 eval $cacheid=yes 8792else 8793 eval $cacheid=no 8794fi 8795rm -f core conftest.err conftest.$ac_objext \ 8796 conftest$ac_exeext conftest.$ac_ext 8797fi 8798 8799 8800 CFLAGS="$xorg_testset_save_CFLAGS" 8801 8802 eval supported=\$$cacheid 8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8804$as_echo "$supported" >&6; } 8805 if test "$supported" = "yes" ; then 8806 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8807 found="yes" 8808 fi 8809 fi 8810 8811 if test $found = "no" ; then 8812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8814 fi 8815 8816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8818 fi 8819 8820 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8821 8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8823$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8824 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8825 if eval \${$cacheid+:} false; then : 8826 $as_echo_n "(cached) " >&6 8827else 8828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8829/* end confdefs.h. */ 8830int i; 8831int 8832main () 8833{ 8834 8835 ; 8836 return 0; 8837} 8838_ACEOF 8839if ac_fn_c_try_link "$LINENO"; then : 8840 eval $cacheid=yes 8841else 8842 eval $cacheid=no 8843fi 8844rm -f core conftest.err conftest.$ac_objext \ 8845 conftest$ac_exeext conftest.$ac_ext 8846fi 8847 8848 8849 CFLAGS="$xorg_testset_save_CFLAGS" 8850 8851 eval supported=\$$cacheid 8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8853$as_echo "$supported" >&6; } 8854 if test "$supported" = "yes" ; then 8855 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8856 found="yes" 8857 fi 8858 fi 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874xorg_testset_save_CFLAGS="$CFLAGS" 8875 8876if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8879$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8880if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8881 $as_echo_n "(cached) " >&6 8882else 8883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8884/* end confdefs.h. */ 8885int i; 8886_ACEOF 8887if ac_fn_c_try_compile "$LINENO"; then : 8888 xorg_cv_cc_flag_unknown_warning_option=yes 8889else 8890 xorg_cv_cc_flag_unknown_warning_option=no 8891fi 8892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8893fi 8894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8895$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8896 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8897 CFLAGS="$xorg_testset_save_CFLAGS" 8898fi 8899 8900if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8903 fi 8904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8906$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8907if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8908 $as_echo_n "(cached) " >&6 8909else 8910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8911/* end confdefs.h. */ 8912int i; 8913_ACEOF 8914if ac_fn_c_try_compile "$LINENO"; then : 8915 xorg_cv_cc_flag_unused_command_line_argument=yes 8916else 8917 xorg_cv_cc_flag_unused_command_line_argument=no 8918fi 8919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8920fi 8921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8922$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8923 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8924 CFLAGS="$xorg_testset_save_CFLAGS" 8925fi 8926 8927found="no" 8928 8929 if test $found = "no" ; then 8930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8932 fi 8933 8934 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8936 fi 8937 8938 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8939 8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8941$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8942 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8943 if eval \${$cacheid+:} false; then : 8944 $as_echo_n "(cached) " >&6 8945else 8946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8947/* end confdefs.h. */ 8948int i; 8949int 8950main () 8951{ 8952 8953 ; 8954 return 0; 8955} 8956_ACEOF 8957if ac_fn_c_try_link "$LINENO"; then : 8958 eval $cacheid=yes 8959else 8960 eval $cacheid=no 8961fi 8962rm -f core conftest.err conftest.$ac_objext \ 8963 conftest$ac_exeext conftest.$ac_ext 8964fi 8965 8966 8967 CFLAGS="$xorg_testset_save_CFLAGS" 8968 8969 eval supported=\$$cacheid 8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8971$as_echo "$supported" >&6; } 8972 if test "$supported" = "yes" ; then 8973 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8974 found="yes" 8975 fi 8976 fi 8977 8978 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8979else 8980{ $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 8981$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;} 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995xorg_testset_save_CFLAGS="$CFLAGS" 8996 8997if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9000$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9001if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9002 $as_echo_n "(cached) " >&6 9003else 9004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9005/* end confdefs.h. */ 9006int i; 9007_ACEOF 9008if ac_fn_c_try_compile "$LINENO"; then : 9009 xorg_cv_cc_flag_unknown_warning_option=yes 9010else 9011 xorg_cv_cc_flag_unknown_warning_option=no 9012fi 9013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9014fi 9015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9016$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9018 CFLAGS="$xorg_testset_save_CFLAGS" 9019fi 9020 9021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9024 fi 9025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9027$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9028if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9029 $as_echo_n "(cached) " >&6 9030else 9031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9032/* end confdefs.h. */ 9033int i; 9034_ACEOF 9035if ac_fn_c_try_compile "$LINENO"; then : 9036 xorg_cv_cc_flag_unused_command_line_argument=yes 9037else 9038 xorg_cv_cc_flag_unused_command_line_argument=no 9039fi 9040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9041fi 9042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9043$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9044 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9045 CFLAGS="$xorg_testset_save_CFLAGS" 9046fi 9047 9048found="no" 9049 9050 if test $found = "no" ; then 9051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9053 fi 9054 9055 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9057 fi 9058 9059 CFLAGS="$CFLAGS -Wimplicit" 9060 9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9062$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 9063 cacheid=xorg_cv_cc_flag__Wimplicit 9064 if eval \${$cacheid+:} false; then : 9065 $as_echo_n "(cached) " >&6 9066else 9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9068/* end confdefs.h. */ 9069int i; 9070int 9071main () 9072{ 9073 9074 ; 9075 return 0; 9076} 9077_ACEOF 9078if ac_fn_c_try_link "$LINENO"; then : 9079 eval $cacheid=yes 9080else 9081 eval $cacheid=no 9082fi 9083rm -f core conftest.err conftest.$ac_objext \ 9084 conftest$ac_exeext conftest.$ac_ext 9085fi 9086 9087 9088 CFLAGS="$xorg_testset_save_CFLAGS" 9089 9090 eval supported=\$$cacheid 9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9092$as_echo "$supported" >&6; } 9093 if test "$supported" = "yes" ; then 9094 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9095 found="yes" 9096 fi 9097 fi 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113xorg_testset_save_CFLAGS="$CFLAGS" 9114 9115if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9118$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9119if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9120 $as_echo_n "(cached) " >&6 9121else 9122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9123/* end confdefs.h. */ 9124int i; 9125_ACEOF 9126if ac_fn_c_try_compile "$LINENO"; then : 9127 xorg_cv_cc_flag_unknown_warning_option=yes 9128else 9129 xorg_cv_cc_flag_unknown_warning_option=no 9130fi 9131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9132fi 9133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9134$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9135 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9136 CFLAGS="$xorg_testset_save_CFLAGS" 9137fi 9138 9139if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9142 fi 9143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9145$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9146if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9147 $as_echo_n "(cached) " >&6 9148else 9149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9150/* end confdefs.h. */ 9151int i; 9152_ACEOF 9153if ac_fn_c_try_compile "$LINENO"; then : 9154 xorg_cv_cc_flag_unused_command_line_argument=yes 9155else 9156 xorg_cv_cc_flag_unused_command_line_argument=no 9157fi 9158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9159fi 9160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9161$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9163 CFLAGS="$xorg_testset_save_CFLAGS" 9164fi 9165 9166found="no" 9167 9168 if test $found = "no" ; then 9169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9171 fi 9172 9173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9175 fi 9176 9177 CFLAGS="$CFLAGS -Wnonnull" 9178 9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9180$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 9181 cacheid=xorg_cv_cc_flag__Wnonnull 9182 if eval \${$cacheid+:} false; then : 9183 $as_echo_n "(cached) " >&6 9184else 9185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9186/* end confdefs.h. */ 9187int i; 9188int 9189main () 9190{ 9191 9192 ; 9193 return 0; 9194} 9195_ACEOF 9196if ac_fn_c_try_link "$LINENO"; then : 9197 eval $cacheid=yes 9198else 9199 eval $cacheid=no 9200fi 9201rm -f core conftest.err conftest.$ac_objext \ 9202 conftest$ac_exeext conftest.$ac_ext 9203fi 9204 9205 9206 CFLAGS="$xorg_testset_save_CFLAGS" 9207 9208 eval supported=\$$cacheid 9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9210$as_echo "$supported" >&6; } 9211 if test "$supported" = "yes" ; then 9212 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9213 found="yes" 9214 fi 9215 fi 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231xorg_testset_save_CFLAGS="$CFLAGS" 9232 9233if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9236$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9237if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9238 $as_echo_n "(cached) " >&6 9239else 9240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9241/* end confdefs.h. */ 9242int i; 9243_ACEOF 9244if ac_fn_c_try_compile "$LINENO"; then : 9245 xorg_cv_cc_flag_unknown_warning_option=yes 9246else 9247 xorg_cv_cc_flag_unknown_warning_option=no 9248fi 9249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9250fi 9251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9252$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9253 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9254 CFLAGS="$xorg_testset_save_CFLAGS" 9255fi 9256 9257if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9260 fi 9261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9263$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9264if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9265 $as_echo_n "(cached) " >&6 9266else 9267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9268/* end confdefs.h. */ 9269int i; 9270_ACEOF 9271if ac_fn_c_try_compile "$LINENO"; then : 9272 xorg_cv_cc_flag_unused_command_line_argument=yes 9273else 9274 xorg_cv_cc_flag_unused_command_line_argument=no 9275fi 9276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9277fi 9278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9279$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9281 CFLAGS="$xorg_testset_save_CFLAGS" 9282fi 9283 9284found="no" 9285 9286 if test $found = "no" ; then 9287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9289 fi 9290 9291 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9293 fi 9294 9295 CFLAGS="$CFLAGS -Winit-self" 9296 9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9298$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 9299 cacheid=xorg_cv_cc_flag__Winit_self 9300 if eval \${$cacheid+:} false; then : 9301 $as_echo_n "(cached) " >&6 9302else 9303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9304/* end confdefs.h. */ 9305int i; 9306int 9307main () 9308{ 9309 9310 ; 9311 return 0; 9312} 9313_ACEOF 9314if ac_fn_c_try_link "$LINENO"; then : 9315 eval $cacheid=yes 9316else 9317 eval $cacheid=no 9318fi 9319rm -f core conftest.err conftest.$ac_objext \ 9320 conftest$ac_exeext conftest.$ac_ext 9321fi 9322 9323 9324 CFLAGS="$xorg_testset_save_CFLAGS" 9325 9326 eval supported=\$$cacheid 9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9328$as_echo "$supported" >&6; } 9329 if test "$supported" = "yes" ; then 9330 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9331 found="yes" 9332 fi 9333 fi 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349xorg_testset_save_CFLAGS="$CFLAGS" 9350 9351if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9354$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9355if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9356 $as_echo_n "(cached) " >&6 9357else 9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9359/* end confdefs.h. */ 9360int i; 9361_ACEOF 9362if ac_fn_c_try_compile "$LINENO"; then : 9363 xorg_cv_cc_flag_unknown_warning_option=yes 9364else 9365 xorg_cv_cc_flag_unknown_warning_option=no 9366fi 9367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9368fi 9369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9370$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9371 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9372 CFLAGS="$xorg_testset_save_CFLAGS" 9373fi 9374 9375if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9378 fi 9379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9381$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9382if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9383 $as_echo_n "(cached) " >&6 9384else 9385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9386/* end confdefs.h. */ 9387int i; 9388_ACEOF 9389if ac_fn_c_try_compile "$LINENO"; then : 9390 xorg_cv_cc_flag_unused_command_line_argument=yes 9391else 9392 xorg_cv_cc_flag_unused_command_line_argument=no 9393fi 9394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9395fi 9396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9397$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9398 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9399 CFLAGS="$xorg_testset_save_CFLAGS" 9400fi 9401 9402found="no" 9403 9404 if test $found = "no" ; then 9405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9407 fi 9408 9409 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9411 fi 9412 9413 CFLAGS="$CFLAGS -Wmain" 9414 9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9416$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9417 cacheid=xorg_cv_cc_flag__Wmain 9418 if eval \${$cacheid+:} false; then : 9419 $as_echo_n "(cached) " >&6 9420else 9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9422/* end confdefs.h. */ 9423int i; 9424int 9425main () 9426{ 9427 9428 ; 9429 return 0; 9430} 9431_ACEOF 9432if ac_fn_c_try_link "$LINENO"; then : 9433 eval $cacheid=yes 9434else 9435 eval $cacheid=no 9436fi 9437rm -f core conftest.err conftest.$ac_objext \ 9438 conftest$ac_exeext conftest.$ac_ext 9439fi 9440 9441 9442 CFLAGS="$xorg_testset_save_CFLAGS" 9443 9444 eval supported=\$$cacheid 9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9446$as_echo "$supported" >&6; } 9447 if test "$supported" = "yes" ; then 9448 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9449 found="yes" 9450 fi 9451 fi 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467xorg_testset_save_CFLAGS="$CFLAGS" 9468 9469if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9472$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9473if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9474 $as_echo_n "(cached) " >&6 9475else 9476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9477/* end confdefs.h. */ 9478int i; 9479_ACEOF 9480if ac_fn_c_try_compile "$LINENO"; then : 9481 xorg_cv_cc_flag_unknown_warning_option=yes 9482else 9483 xorg_cv_cc_flag_unknown_warning_option=no 9484fi 9485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9486fi 9487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9488$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9489 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9490 CFLAGS="$xorg_testset_save_CFLAGS" 9491fi 9492 9493if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9496 fi 9497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9499$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9500if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9501 $as_echo_n "(cached) " >&6 9502else 9503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9504/* end confdefs.h. */ 9505int i; 9506_ACEOF 9507if ac_fn_c_try_compile "$LINENO"; then : 9508 xorg_cv_cc_flag_unused_command_line_argument=yes 9509else 9510 xorg_cv_cc_flag_unused_command_line_argument=no 9511fi 9512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9513fi 9514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9515$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9517 CFLAGS="$xorg_testset_save_CFLAGS" 9518fi 9519 9520found="no" 9521 9522 if test $found = "no" ; then 9523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9525 fi 9526 9527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9529 fi 9530 9531 CFLAGS="$CFLAGS -Wmissing-braces" 9532 9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9534$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9535 cacheid=xorg_cv_cc_flag__Wmissing_braces 9536 if eval \${$cacheid+:} false; then : 9537 $as_echo_n "(cached) " >&6 9538else 9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9540/* end confdefs.h. */ 9541int i; 9542int 9543main () 9544{ 9545 9546 ; 9547 return 0; 9548} 9549_ACEOF 9550if ac_fn_c_try_link "$LINENO"; then : 9551 eval $cacheid=yes 9552else 9553 eval $cacheid=no 9554fi 9555rm -f core conftest.err conftest.$ac_objext \ 9556 conftest$ac_exeext conftest.$ac_ext 9557fi 9558 9559 9560 CFLAGS="$xorg_testset_save_CFLAGS" 9561 9562 eval supported=\$$cacheid 9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9564$as_echo "$supported" >&6; } 9565 if test "$supported" = "yes" ; then 9566 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9567 found="yes" 9568 fi 9569 fi 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585xorg_testset_save_CFLAGS="$CFLAGS" 9586 9587if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9590$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9591if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9592 $as_echo_n "(cached) " >&6 9593else 9594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9595/* end confdefs.h. */ 9596int i; 9597_ACEOF 9598if ac_fn_c_try_compile "$LINENO"; then : 9599 xorg_cv_cc_flag_unknown_warning_option=yes 9600else 9601 xorg_cv_cc_flag_unknown_warning_option=no 9602fi 9603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9604fi 9605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9606$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9607 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9608 CFLAGS="$xorg_testset_save_CFLAGS" 9609fi 9610 9611if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9614 fi 9615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9617$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9618if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9619 $as_echo_n "(cached) " >&6 9620else 9621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9622/* end confdefs.h. */ 9623int i; 9624_ACEOF 9625if ac_fn_c_try_compile "$LINENO"; then : 9626 xorg_cv_cc_flag_unused_command_line_argument=yes 9627else 9628 xorg_cv_cc_flag_unused_command_line_argument=no 9629fi 9630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9631fi 9632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9633$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9634 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9635 CFLAGS="$xorg_testset_save_CFLAGS" 9636fi 9637 9638found="no" 9639 9640 if test $found = "no" ; then 9641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9643 fi 9644 9645 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9647 fi 9648 9649 CFLAGS="$CFLAGS -Wsequence-point" 9650 9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9652$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9653 cacheid=xorg_cv_cc_flag__Wsequence_point 9654 if eval \${$cacheid+:} false; then : 9655 $as_echo_n "(cached) " >&6 9656else 9657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9658/* end confdefs.h. */ 9659int i; 9660int 9661main () 9662{ 9663 9664 ; 9665 return 0; 9666} 9667_ACEOF 9668if ac_fn_c_try_link "$LINENO"; then : 9669 eval $cacheid=yes 9670else 9671 eval $cacheid=no 9672fi 9673rm -f core conftest.err conftest.$ac_objext \ 9674 conftest$ac_exeext conftest.$ac_ext 9675fi 9676 9677 9678 CFLAGS="$xorg_testset_save_CFLAGS" 9679 9680 eval supported=\$$cacheid 9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9682$as_echo "$supported" >&6; } 9683 if test "$supported" = "yes" ; then 9684 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9685 found="yes" 9686 fi 9687 fi 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703xorg_testset_save_CFLAGS="$CFLAGS" 9704 9705if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9708$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9709if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9710 $as_echo_n "(cached) " >&6 9711else 9712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9713/* end confdefs.h. */ 9714int i; 9715_ACEOF 9716if ac_fn_c_try_compile "$LINENO"; then : 9717 xorg_cv_cc_flag_unknown_warning_option=yes 9718else 9719 xorg_cv_cc_flag_unknown_warning_option=no 9720fi 9721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9722fi 9723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9724$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9725 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9726 CFLAGS="$xorg_testset_save_CFLAGS" 9727fi 9728 9729if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9732 fi 9733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9735$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9736if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9737 $as_echo_n "(cached) " >&6 9738else 9739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9740/* end confdefs.h. */ 9741int i; 9742_ACEOF 9743if ac_fn_c_try_compile "$LINENO"; then : 9744 xorg_cv_cc_flag_unused_command_line_argument=yes 9745else 9746 xorg_cv_cc_flag_unused_command_line_argument=no 9747fi 9748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9749fi 9750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9751$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9753 CFLAGS="$xorg_testset_save_CFLAGS" 9754fi 9755 9756found="no" 9757 9758 if test $found = "no" ; then 9759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9761 fi 9762 9763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9765 fi 9766 9767 CFLAGS="$CFLAGS -Wreturn-type" 9768 9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9770$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9771 cacheid=xorg_cv_cc_flag__Wreturn_type 9772 if eval \${$cacheid+:} false; then : 9773 $as_echo_n "(cached) " >&6 9774else 9775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9776/* end confdefs.h. */ 9777int i; 9778int 9779main () 9780{ 9781 9782 ; 9783 return 0; 9784} 9785_ACEOF 9786if ac_fn_c_try_link "$LINENO"; then : 9787 eval $cacheid=yes 9788else 9789 eval $cacheid=no 9790fi 9791rm -f core conftest.err conftest.$ac_objext \ 9792 conftest$ac_exeext conftest.$ac_ext 9793fi 9794 9795 9796 CFLAGS="$xorg_testset_save_CFLAGS" 9797 9798 eval supported=\$$cacheid 9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9800$as_echo "$supported" >&6; } 9801 if test "$supported" = "yes" ; then 9802 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9803 found="yes" 9804 fi 9805 fi 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821xorg_testset_save_CFLAGS="$CFLAGS" 9822 9823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9826$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9827if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9828 $as_echo_n "(cached) " >&6 9829else 9830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9831/* end confdefs.h. */ 9832int i; 9833_ACEOF 9834if ac_fn_c_try_compile "$LINENO"; then : 9835 xorg_cv_cc_flag_unknown_warning_option=yes 9836else 9837 xorg_cv_cc_flag_unknown_warning_option=no 9838fi 9839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9840fi 9841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9842$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9844 CFLAGS="$xorg_testset_save_CFLAGS" 9845fi 9846 9847if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9850 fi 9851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9853$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9854if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9855 $as_echo_n "(cached) " >&6 9856else 9857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9858/* end confdefs.h. */ 9859int i; 9860_ACEOF 9861if ac_fn_c_try_compile "$LINENO"; then : 9862 xorg_cv_cc_flag_unused_command_line_argument=yes 9863else 9864 xorg_cv_cc_flag_unused_command_line_argument=no 9865fi 9866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9867fi 9868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9869$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9870 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9871 CFLAGS="$xorg_testset_save_CFLAGS" 9872fi 9873 9874found="no" 9875 9876 if test $found = "no" ; then 9877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9879 fi 9880 9881 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9883 fi 9884 9885 CFLAGS="$CFLAGS -Wtrigraphs" 9886 9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9888$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9889 cacheid=xorg_cv_cc_flag__Wtrigraphs 9890 if eval \${$cacheid+:} false; then : 9891 $as_echo_n "(cached) " >&6 9892else 9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9894/* end confdefs.h. */ 9895int i; 9896int 9897main () 9898{ 9899 9900 ; 9901 return 0; 9902} 9903_ACEOF 9904if ac_fn_c_try_link "$LINENO"; then : 9905 eval $cacheid=yes 9906else 9907 eval $cacheid=no 9908fi 9909rm -f core conftest.err conftest.$ac_objext \ 9910 conftest$ac_exeext conftest.$ac_ext 9911fi 9912 9913 9914 CFLAGS="$xorg_testset_save_CFLAGS" 9915 9916 eval supported=\$$cacheid 9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9918$as_echo "$supported" >&6; } 9919 if test "$supported" = "yes" ; then 9920 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9921 found="yes" 9922 fi 9923 fi 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939xorg_testset_save_CFLAGS="$CFLAGS" 9940 9941if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9944$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9945if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9946 $as_echo_n "(cached) " >&6 9947else 9948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9949/* end confdefs.h. */ 9950int i; 9951_ACEOF 9952if ac_fn_c_try_compile "$LINENO"; then : 9953 xorg_cv_cc_flag_unknown_warning_option=yes 9954else 9955 xorg_cv_cc_flag_unknown_warning_option=no 9956fi 9957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9958fi 9959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9960$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9961 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9962 CFLAGS="$xorg_testset_save_CFLAGS" 9963fi 9964 9965if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9968 fi 9969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9971$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9972if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9973 $as_echo_n "(cached) " >&6 9974else 9975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9976/* end confdefs.h. */ 9977int i; 9978_ACEOF 9979if ac_fn_c_try_compile "$LINENO"; then : 9980 xorg_cv_cc_flag_unused_command_line_argument=yes 9981else 9982 xorg_cv_cc_flag_unused_command_line_argument=no 9983fi 9984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9985fi 9986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9987$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9988 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9989 CFLAGS="$xorg_testset_save_CFLAGS" 9990fi 9991 9992found="no" 9993 9994 if test $found = "no" ; then 9995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9997 fi 9998 9999 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10001 fi 10002 10003 CFLAGS="$CFLAGS -Warray-bounds" 10004 10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10006$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 10007 cacheid=xorg_cv_cc_flag__Warray_bounds 10008 if eval \${$cacheid+:} false; then : 10009 $as_echo_n "(cached) " >&6 10010else 10011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10012/* end confdefs.h. */ 10013int i; 10014int 10015main () 10016{ 10017 10018 ; 10019 return 0; 10020} 10021_ACEOF 10022if ac_fn_c_try_link "$LINENO"; then : 10023 eval $cacheid=yes 10024else 10025 eval $cacheid=no 10026fi 10027rm -f core conftest.err conftest.$ac_objext \ 10028 conftest$ac_exeext conftest.$ac_ext 10029fi 10030 10031 10032 CFLAGS="$xorg_testset_save_CFLAGS" 10033 10034 eval supported=\$$cacheid 10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10036$as_echo "$supported" >&6; } 10037 if test "$supported" = "yes" ; then 10038 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10039 found="yes" 10040 fi 10041 fi 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057xorg_testset_save_CFLAGS="$CFLAGS" 10058 10059if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10062$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10063if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes 10072else 10073 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5 10078$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10080 CFLAGS="$xorg_testset_save_CFLAGS" 10081fi 10082 10083if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10086 fi 10087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10089$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10090if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10091 $as_echo_n "(cached) " >&6 10092else 10093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10094/* end confdefs.h. */ 10095int i; 10096_ACEOF 10097if ac_fn_c_try_compile "$LINENO"; then : 10098 xorg_cv_cc_flag_unused_command_line_argument=yes 10099else 10100 xorg_cv_cc_flag_unused_command_line_argument=no 10101fi 10102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10103fi 10104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10105$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10107 CFLAGS="$xorg_testset_save_CFLAGS" 10108fi 10109 10110found="no" 10111 10112 if test $found = "no" ; then 10113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10115 fi 10116 10117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10119 fi 10120 10121 CFLAGS="$CFLAGS -Wwrite-strings" 10122 10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10124$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 10125 cacheid=xorg_cv_cc_flag__Wwrite_strings 10126 if eval \${$cacheid+:} false; then : 10127 $as_echo_n "(cached) " >&6 10128else 10129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10130/* end confdefs.h. */ 10131int i; 10132int 10133main () 10134{ 10135 10136 ; 10137 return 0; 10138} 10139_ACEOF 10140if ac_fn_c_try_link "$LINENO"; then : 10141 eval $cacheid=yes 10142else 10143 eval $cacheid=no 10144fi 10145rm -f core conftest.err conftest.$ac_objext \ 10146 conftest$ac_exeext conftest.$ac_ext 10147fi 10148 10149 10150 CFLAGS="$xorg_testset_save_CFLAGS" 10151 10152 eval supported=\$$cacheid 10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10154$as_echo "$supported" >&6; } 10155 if test "$supported" = "yes" ; then 10156 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10157 found="yes" 10158 fi 10159 fi 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175xorg_testset_save_CFLAGS="$CFLAGS" 10176 10177if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10180$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10181if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes 10190else 10191 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5 10196$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10198 CFLAGS="$xorg_testset_save_CFLAGS" 10199fi 10200 10201if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10204 fi 10205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10207$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10208if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10209 $as_echo_n "(cached) " >&6 10210else 10211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10212/* end confdefs.h. */ 10213int i; 10214_ACEOF 10215if ac_fn_c_try_compile "$LINENO"; then : 10216 xorg_cv_cc_flag_unused_command_line_argument=yes 10217else 10218 xorg_cv_cc_flag_unused_command_line_argument=no 10219fi 10220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10221fi 10222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10223$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10225 CFLAGS="$xorg_testset_save_CFLAGS" 10226fi 10227 10228found="no" 10229 10230 if test $found = "no" ; then 10231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10233 fi 10234 10235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10237 fi 10238 10239 CFLAGS="$CFLAGS -Waddress" 10240 10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10242$as_echo_n "checking if $CC supports -Waddress... " >&6; } 10243 cacheid=xorg_cv_cc_flag__Waddress 10244 if eval \${$cacheid+:} false; then : 10245 $as_echo_n "(cached) " >&6 10246else 10247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10248/* end confdefs.h. */ 10249int i; 10250int 10251main () 10252{ 10253 10254 ; 10255 return 0; 10256} 10257_ACEOF 10258if ac_fn_c_try_link "$LINENO"; then : 10259 eval $cacheid=yes 10260else 10261 eval $cacheid=no 10262fi 10263rm -f core conftest.err conftest.$ac_objext \ 10264 conftest$ac_exeext conftest.$ac_ext 10265fi 10266 10267 10268 CFLAGS="$xorg_testset_save_CFLAGS" 10269 10270 eval supported=\$$cacheid 10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10272$as_echo "$supported" >&6; } 10273 if test "$supported" = "yes" ; then 10274 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10275 found="yes" 10276 fi 10277 fi 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293xorg_testset_save_CFLAGS="$CFLAGS" 10294 10295if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10298$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10299if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10300 $as_echo_n "(cached) " >&6 10301else 10302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10303/* end confdefs.h. */ 10304int i; 10305_ACEOF 10306if ac_fn_c_try_compile "$LINENO"; then : 10307 xorg_cv_cc_flag_unknown_warning_option=yes 10308else 10309 xorg_cv_cc_flag_unknown_warning_option=no 10310fi 10311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10312fi 10313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10314$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10315 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10316 CFLAGS="$xorg_testset_save_CFLAGS" 10317fi 10318 10319if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10322 fi 10323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10325$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10326if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10327 $as_echo_n "(cached) " >&6 10328else 10329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10330/* end confdefs.h. */ 10331int i; 10332_ACEOF 10333if ac_fn_c_try_compile "$LINENO"; then : 10334 xorg_cv_cc_flag_unused_command_line_argument=yes 10335else 10336 xorg_cv_cc_flag_unused_command_line_argument=no 10337fi 10338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10339fi 10340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10341$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10343 CFLAGS="$xorg_testset_save_CFLAGS" 10344fi 10345 10346found="no" 10347 10348 if test $found = "no" ; then 10349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10351 fi 10352 10353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10355 fi 10356 10357 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10358 10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10360$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10361 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10362 if eval \${$cacheid+:} false; then : 10363 $as_echo_n "(cached) " >&6 10364else 10365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10366/* end confdefs.h. */ 10367int i; 10368int 10369main () 10370{ 10371 10372 ; 10373 return 0; 10374} 10375_ACEOF 10376if ac_fn_c_try_link "$LINENO"; then : 10377 eval $cacheid=yes 10378else 10379 eval $cacheid=no 10380fi 10381rm -f core conftest.err conftest.$ac_objext \ 10382 conftest$ac_exeext conftest.$ac_ext 10383fi 10384 10385 10386 CFLAGS="$xorg_testset_save_CFLAGS" 10387 10388 eval supported=\$$cacheid 10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10390$as_echo "$supported" >&6; } 10391 if test "$supported" = "yes" ; then 10392 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10393 found="yes" 10394 fi 10395 fi 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411xorg_testset_save_CFLAGS="$CFLAGS" 10412 10413if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10416$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10417if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10418 $as_echo_n "(cached) " >&6 10419else 10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10421/* end confdefs.h. */ 10422int i; 10423_ACEOF 10424if ac_fn_c_try_compile "$LINENO"; then : 10425 xorg_cv_cc_flag_unknown_warning_option=yes 10426else 10427 xorg_cv_cc_flag_unknown_warning_option=no 10428fi 10429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10430fi 10431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10432$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10434 CFLAGS="$xorg_testset_save_CFLAGS" 10435fi 10436 10437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10440 fi 10441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10443$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10444if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10445 $as_echo_n "(cached) " >&6 10446else 10447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10448/* end confdefs.h. */ 10449int i; 10450_ACEOF 10451if ac_fn_c_try_compile "$LINENO"; then : 10452 xorg_cv_cc_flag_unused_command_line_argument=yes 10453else 10454 xorg_cv_cc_flag_unused_command_line_argument=no 10455fi 10456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10457fi 10458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10459$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10461 CFLAGS="$xorg_testset_save_CFLAGS" 10462fi 10463 10464found="no" 10465 10466 if test $found = "no" ; then 10467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10469 fi 10470 10471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10473 fi 10474 10475 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10476 10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10478$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10479 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10480 if eval \${$cacheid+:} false; then : 10481 $as_echo_n "(cached) " >&6 10482else 10483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10484/* end confdefs.h. */ 10485int i; 10486int 10487main () 10488{ 10489 10490 ; 10491 return 0; 10492} 10493_ACEOF 10494if ac_fn_c_try_link "$LINENO"; then : 10495 eval $cacheid=yes 10496else 10497 eval $cacheid=no 10498fi 10499rm -f core conftest.err conftest.$ac_objext \ 10500 conftest$ac_exeext conftest.$ac_ext 10501fi 10502 10503 10504 CFLAGS="$xorg_testset_save_CFLAGS" 10505 10506 eval supported=\$$cacheid 10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10508$as_echo "$supported" >&6; } 10509 if test "$supported" = "yes" ; then 10510 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10511 found="yes" 10512 fi 10513 fi 10514 10515 10516fi 10517 10518 10519 10520 10521 10522 10523 10524 CWARNFLAGS="$BASE_CFLAGS" 10525 if test "x$GCC" = xyes ; then 10526 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10527 fi 10528 10529 10530 10531 10532 10533 10534 10535 10536# Check whether --enable-strict-compilation was given. 10537if test "${enable_strict_compilation+set}" = set; then : 10538 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10539else 10540 STRICT_COMPILE=no 10541fi 10542 10543 10544 10545 10546 10547 10548STRICT_CFLAGS="" 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562xorg_testset_save_CFLAGS="$CFLAGS" 10563 10564if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10567$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10568if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10569 $as_echo_n "(cached) " >&6 10570else 10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10572/* end confdefs.h. */ 10573int i; 10574_ACEOF 10575if ac_fn_c_try_compile "$LINENO"; then : 10576 xorg_cv_cc_flag_unknown_warning_option=yes 10577else 10578 xorg_cv_cc_flag_unknown_warning_option=no 10579fi 10580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10581fi 10582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10583$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10585 CFLAGS="$xorg_testset_save_CFLAGS" 10586fi 10587 10588if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10591 fi 10592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10594$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10595if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10596 $as_echo_n "(cached) " >&6 10597else 10598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10599/* end confdefs.h. */ 10600int i; 10601_ACEOF 10602if ac_fn_c_try_compile "$LINENO"; then : 10603 xorg_cv_cc_flag_unused_command_line_argument=yes 10604else 10605 xorg_cv_cc_flag_unused_command_line_argument=no 10606fi 10607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10608fi 10609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10610$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10612 CFLAGS="$xorg_testset_save_CFLAGS" 10613fi 10614 10615found="no" 10616 10617 if test $found = "no" ; then 10618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10620 fi 10621 10622 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10624 fi 10625 10626 CFLAGS="$CFLAGS -pedantic" 10627 10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10629$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10630 cacheid=xorg_cv_cc_flag__pedantic 10631 if eval \${$cacheid+:} false; then : 10632 $as_echo_n "(cached) " >&6 10633else 10634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10635/* end confdefs.h. */ 10636int i; 10637int 10638main () 10639{ 10640 10641 ; 10642 return 0; 10643} 10644_ACEOF 10645if ac_fn_c_try_link "$LINENO"; then : 10646 eval $cacheid=yes 10647else 10648 eval $cacheid=no 10649fi 10650rm -f core conftest.err conftest.$ac_objext \ 10651 conftest$ac_exeext conftest.$ac_ext 10652fi 10653 10654 10655 CFLAGS="$xorg_testset_save_CFLAGS" 10656 10657 eval supported=\$$cacheid 10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10659$as_echo "$supported" >&6; } 10660 if test "$supported" = "yes" ; then 10661 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10662 found="yes" 10663 fi 10664 fi 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680xorg_testset_save_CFLAGS="$CFLAGS" 10681 10682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10685$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10686if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10687 $as_echo_n "(cached) " >&6 10688else 10689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10690/* end confdefs.h. */ 10691int i; 10692_ACEOF 10693if ac_fn_c_try_compile "$LINENO"; then : 10694 xorg_cv_cc_flag_unknown_warning_option=yes 10695else 10696 xorg_cv_cc_flag_unknown_warning_option=no 10697fi 10698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10699fi 10700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10701$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10703 CFLAGS="$xorg_testset_save_CFLAGS" 10704fi 10705 10706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10709 fi 10710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10712$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10713if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10714 $as_echo_n "(cached) " >&6 10715else 10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10717/* end confdefs.h. */ 10718int i; 10719_ACEOF 10720if ac_fn_c_try_compile "$LINENO"; then : 10721 xorg_cv_cc_flag_unused_command_line_argument=yes 10722else 10723 xorg_cv_cc_flag_unused_command_line_argument=no 10724fi 10725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10726fi 10727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10728$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10730 CFLAGS="$xorg_testset_save_CFLAGS" 10731fi 10732 10733found="no" 10734 10735 if test $found = "no" ; then 10736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10738 fi 10739 10740 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10742 fi 10743 10744 CFLAGS="$CFLAGS -Werror" 10745 10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10747$as_echo_n "checking if $CC supports -Werror... " >&6; } 10748 cacheid=xorg_cv_cc_flag__Werror 10749 if eval \${$cacheid+:} false; then : 10750 $as_echo_n "(cached) " >&6 10751else 10752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10753/* end confdefs.h. */ 10754int i; 10755int 10756main () 10757{ 10758 10759 ; 10760 return 0; 10761} 10762_ACEOF 10763if ac_fn_c_try_link "$LINENO"; then : 10764 eval $cacheid=yes 10765else 10766 eval $cacheid=no 10767fi 10768rm -f core conftest.err conftest.$ac_objext \ 10769 conftest$ac_exeext conftest.$ac_ext 10770fi 10771 10772 10773 CFLAGS="$xorg_testset_save_CFLAGS" 10774 10775 eval supported=\$$cacheid 10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10777$as_echo "$supported" >&6; } 10778 if test "$supported" = "yes" ; then 10779 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10780 found="yes" 10781 fi 10782 fi 10783 10784 if test $found = "no" ; then 10785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10787 fi 10788 10789 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10791 fi 10792 10793 CFLAGS="$CFLAGS -errwarn" 10794 10795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10796$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10797 cacheid=xorg_cv_cc_flag__errwarn 10798 if eval \${$cacheid+:} false; then : 10799 $as_echo_n "(cached) " >&6 10800else 10801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10802/* end confdefs.h. */ 10803int i; 10804int 10805main () 10806{ 10807 10808 ; 10809 return 0; 10810} 10811_ACEOF 10812if ac_fn_c_try_link "$LINENO"; then : 10813 eval $cacheid=yes 10814else 10815 eval $cacheid=no 10816fi 10817rm -f core conftest.err conftest.$ac_objext \ 10818 conftest$ac_exeext conftest.$ac_ext 10819fi 10820 10821 10822 CFLAGS="$xorg_testset_save_CFLAGS" 10823 10824 eval supported=\$$cacheid 10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10826$as_echo "$supported" >&6; } 10827 if test "$supported" = "yes" ; then 10828 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10829 found="yes" 10830 fi 10831 fi 10832 10833 10834 10835# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10836# activate it with -Werror, so we add it here explicitly. 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850xorg_testset_save_CFLAGS="$CFLAGS" 10851 10852if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10855$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10856if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10857 $as_echo_n "(cached) " >&6 10858else 10859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10860/* end confdefs.h. */ 10861int i; 10862_ACEOF 10863if ac_fn_c_try_compile "$LINENO"; then : 10864 xorg_cv_cc_flag_unknown_warning_option=yes 10865else 10866 xorg_cv_cc_flag_unknown_warning_option=no 10867fi 10868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10869fi 10870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10871$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10872 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10873 CFLAGS="$xorg_testset_save_CFLAGS" 10874fi 10875 10876if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10879 fi 10880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10882$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10883if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10884 $as_echo_n "(cached) " >&6 10885else 10886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10887/* end confdefs.h. */ 10888int i; 10889_ACEOF 10890if ac_fn_c_try_compile "$LINENO"; then : 10891 xorg_cv_cc_flag_unused_command_line_argument=yes 10892else 10893 xorg_cv_cc_flag_unused_command_line_argument=no 10894fi 10895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10896fi 10897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10898$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10899 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10900 CFLAGS="$xorg_testset_save_CFLAGS" 10901fi 10902 10903found="no" 10904 10905 if test $found = "no" ; then 10906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10908 fi 10909 10910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10912 fi 10913 10914 CFLAGS="$CFLAGS -Werror=attributes" 10915 10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10917$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10918 cacheid=xorg_cv_cc_flag__Werror_attributes 10919 if eval \${$cacheid+:} false; then : 10920 $as_echo_n "(cached) " >&6 10921else 10922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10923/* end confdefs.h. */ 10924int i; 10925int 10926main () 10927{ 10928 10929 ; 10930 return 0; 10931} 10932_ACEOF 10933if ac_fn_c_try_link "$LINENO"; then : 10934 eval $cacheid=yes 10935else 10936 eval $cacheid=no 10937fi 10938rm -f core conftest.err conftest.$ac_objext \ 10939 conftest$ac_exeext conftest.$ac_ext 10940fi 10941 10942 10943 CFLAGS="$xorg_testset_save_CFLAGS" 10944 10945 eval supported=\$$cacheid 10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10947$as_echo "$supported" >&6; } 10948 if test "$supported" = "yes" ; then 10949 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10950 found="yes" 10951 fi 10952 fi 10953 10954 10955 10956if test "x$STRICT_COMPILE" = "xyes"; then 10957 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10958 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10959fi 10960 10961 10962 10963 10964 10965 10966cat >>confdefs.h <<_ACEOF 10967#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10968_ACEOF 10969 10970 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10971 if test "x$PVM" = "x"; then 10972 PVM="0" 10973 fi 10974 10975cat >>confdefs.h <<_ACEOF 10976#define PACKAGE_VERSION_MINOR $PVM 10977_ACEOF 10978 10979 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10980 if test "x$PVP" = "x"; then 10981 PVP="0" 10982 fi 10983 10984cat >>confdefs.h <<_ACEOF 10985#define PACKAGE_VERSION_PATCHLEVEL $PVP 10986_ACEOF 10987 10988 10989 10990CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10991mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10992|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10993echo 'git directory not found: installing possibly empty changelog.' >&2)" 10994 10995 10996 10997 10998macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10999INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11000mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11001|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 11002echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 11003 11004 11005 11006 11007 11008 11009if test x$APP_MAN_SUFFIX = x ; then 11010 APP_MAN_SUFFIX=1 11011fi 11012if test x$APP_MAN_DIR = x ; then 11013 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11014fi 11015 11016if test x$LIB_MAN_SUFFIX = x ; then 11017 LIB_MAN_SUFFIX=3 11018fi 11019if test x$LIB_MAN_DIR = x ; then 11020 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11021fi 11022 11023if test x$FILE_MAN_SUFFIX = x ; then 11024 case $host_os in 11025 solaris*) FILE_MAN_SUFFIX=4 ;; 11026 *) FILE_MAN_SUFFIX=5 ;; 11027 esac 11028fi 11029if test x$FILE_MAN_DIR = x ; then 11030 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11031fi 11032 11033if test x$MISC_MAN_SUFFIX = x ; then 11034 case $host_os in 11035 solaris*) MISC_MAN_SUFFIX=5 ;; 11036 *) MISC_MAN_SUFFIX=7 ;; 11037 esac 11038fi 11039if test x$MISC_MAN_DIR = x ; then 11040 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11041fi 11042 11043if test x$DRIVER_MAN_SUFFIX = x ; then 11044 case $host_os in 11045 solaris*) DRIVER_MAN_SUFFIX=7 ;; 11046 *) DRIVER_MAN_SUFFIX=4 ;; 11047 esac 11048fi 11049if test x$DRIVER_MAN_DIR = x ; then 11050 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11051fi 11052 11053if test x$ADMIN_MAN_SUFFIX = x ; then 11054 case $host_os in 11055 solaris*) ADMIN_MAN_SUFFIX=1m ;; 11056 *) ADMIN_MAN_SUFFIX=8 ;; 11057 esac 11058fi 11059if test x$ADMIN_MAN_DIR = x ; then 11060 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11061fi 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077XORG_MAN_PAGE="X Version 11" 11078 11079MAN_SUBSTS="\ 11080 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11081 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11082 -e 's|__xservername__|Xorg|g' \ 11083 -e 's|__xconfigfile__|xorg.conf|g' \ 11084 -e 's|__projectroot__|\$(prefix)|g' \ 11085 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11086 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11087 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11088 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11089 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11090 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11091 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11092 11093 11094 11095# Check whether --enable-silent-rules was given. 11096if test "${enable_silent_rules+set}" = set; then : 11097 enableval=$enable_silent_rules; 11098fi 11099 11100case $enable_silent_rules in # ((( 11101 yes) AM_DEFAULT_VERBOSITY=0;; 11102 no) AM_DEFAULT_VERBOSITY=1;; 11103 *) AM_DEFAULT_VERBOSITY=0;; 11104esac 11105am_make=${MAKE-make} 11106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11107$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 11108if ${am_cv_make_support_nested_variables+:} false; then : 11109 $as_echo_n "(cached) " >&6 11110else 11111 if $as_echo 'TRUE=$(BAR$(V)) 11112BAR0=false 11113BAR1=true 11114V=1 11115am__doit: 11116 @$(TRUE) 11117.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11118 am_cv_make_support_nested_variables=yes 11119else 11120 am_cv_make_support_nested_variables=no 11121fi 11122fi 11123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11124$as_echo "$am_cv_make_support_nested_variables" >&6; } 11125if test $am_cv_make_support_nested_variables = yes; then 11126 AM_V='$(V)' 11127 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11128else 11129 AM_V=$AM_DEFAULT_VERBOSITY 11130 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11131fi 11132AM_BACKSLASH='\' 11133 11134 11135 11136 11137 11138 11139 11140# Check whether --with-lint was given. 11141if test "${with_lint+set}" = set; then : 11142 withval=$with_lint; use_lint=$withval 11143else 11144 use_lint=no 11145fi 11146 11147 11148# Obtain platform specific info like program name and options 11149# The lint program on FreeBSD and NetBSD is different from the one on Solaris 11150case $host_os in 11151 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 11152 lint_name=splint 11153 lint_options="-badflag" 11154 ;; 11155 *freebsd* | *netbsd*) 11156 lint_name=lint 11157 lint_options="-u -b" 11158 ;; 11159 *solaris*) 11160 lint_name=lint 11161 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 11162 ;; 11163esac 11164 11165# Test for the presence of the program (either guessed by the code or spelled out by the user) 11166if test "x$use_lint" = x"yes" ; then 11167 # Extract the first word of "$lint_name", so it can be a program name with args. 11168set dummy $lint_name; ac_word=$2 11169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11170$as_echo_n "checking for $ac_word... " >&6; } 11171if ${ac_cv_path_LINT+:} false; then : 11172 $as_echo_n "(cached) " >&6 11173else 11174 case $LINT in 11175 [\\/]* | ?:[\\/]*) 11176 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 11177 ;; 11178 *) 11179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11180for as_dir in $PATH 11181do 11182 IFS=$as_save_IFS 11183 test -z "$as_dir" && as_dir=. 11184 for ac_exec_ext in '' $ac_executable_extensions; do 11185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11186 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 11187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11188 break 2 11189 fi 11190done 11191 done 11192IFS=$as_save_IFS 11193 11194 ;; 11195esac 11196fi 11197LINT=$ac_cv_path_LINT 11198if test -n "$LINT"; then 11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 11200$as_echo "$LINT" >&6; } 11201else 11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11203$as_echo "no" >&6; } 11204fi 11205 11206 11207 if test "x$LINT" = "x"; then 11208 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 11209 fi 11210elif test "x$use_lint" = x"no" ; then 11211 if test "x$LINT" != "x"; then 11212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 11213$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 11214 fi 11215else 11216 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 11217fi 11218 11219# User supplied flags override default flags 11220if test "x$LINT_FLAGS" != "x"; then 11221 lint_options=$LINT_FLAGS 11222fi 11223 11224LINT_FLAGS=$lint_options 11225 11226 if test "x$LINT" != x; then 11227 LINT_TRUE= 11228 LINT_FALSE='#' 11229else 11230 LINT_TRUE='#' 11231 LINT_FALSE= 11232fi 11233 11234 11235 11236 11237# Checks for header files. 11238for ac_header in lastlog.h pwd.h utmp.h utmpx.h sys/param.h 11239do : 11240 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11241ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11242if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11243 cat >>confdefs.h <<_ACEOF 11244#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11245_ACEOF 11246 11247fi 11248 11249done 11250 11251 11252# Checks for typedefs, structures, and compiler characteristics. 11253ac_fn_c_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" " 11254 #include <sys/types.h> 11255 #include <utmp.h> 11256 11257" 11258if test "x$ac_cv_member_struct_utmp_ut_host" = xyes; then : 11259 11260cat >>confdefs.h <<_ACEOF 11261#define HAVE_STRUCT_UTMP_UT_HOST 1 11262_ACEOF 11263 11264 11265fi 11266ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" " 11267 #include <sys/types.h> 11268 #include <utmp.h> 11269 11270" 11271if test "x$ac_cv_member_struct_utmp_ut_id" = xyes; then : 11272 11273cat >>confdefs.h <<_ACEOF 11274#define HAVE_STRUCT_UTMP_UT_ID 1 11275_ACEOF 11276 11277 11278fi 11279ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" " 11280 #include <sys/types.h> 11281 #include <utmp.h> 11282 11283" 11284if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then : 11285 11286cat >>confdefs.h <<_ACEOF 11287#define HAVE_STRUCT_UTMP_UT_PID 1 11288_ACEOF 11289 11290 11291fi 11292ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" " 11293 #include <sys/types.h> 11294 #include <utmp.h> 11295 11296" 11297if test "x$ac_cv_member_struct_utmp_ut_type" = xyes; then : 11298 11299cat >>confdefs.h <<_ACEOF 11300#define HAVE_STRUCT_UTMP_UT_TYPE 1 11301_ACEOF 11302 11303 11304fi 11305 11306ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_syslen" "ac_cv_member_struct_utmpx_ut_syslen" "#include <utmpx.h> 11307" 11308if test "x$ac_cv_member_struct_utmpx_ut_syslen" = xyes; then : 11309 11310cat >>confdefs.h <<_ACEOF 11311#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1 11312_ACEOF 11313 11314 11315fi 11316 11317ac_fn_c_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" " 11318 #include <sys/types.h> 11319 #ifdef HAVE_UTMP_H 11320 #include <utmp.h> 11321 #endif 11322 #ifdef HAVE_LASTLOG_H 11323 #include <lastlog.h> 11324 #endif 11325 11326" 11327if test "x$ac_cv_type_struct_lastlog" = xyes; then : 11328 11329cat >>confdefs.h <<_ACEOF 11330#define HAVE_STRUCT_LASTLOG 1 11331_ACEOF 11332 11333 11334fi 11335 11336 11337# Checks for library functions. 11338for ac_func in pututline updwtmpx utmpxname 11339do : 11340 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11341ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11342if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11343 cat >>confdefs.h <<_ACEOF 11344#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11345_ACEOF 11346 11347fi 11348done 11349 11350 11351# Obtain compiler/linker options for depedencies 11352 11353pkg_failed=no 11354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SESSREG" >&5 11355$as_echo_n "checking for SESSREG... " >&6; } 11356 11357if test -n "$SESSREG_CFLAGS"; then 11358 pkg_cv_SESSREG_CFLAGS="$SESSREG_CFLAGS" 11359 elif test -n "$PKG_CONFIG"; then 11360 if test -n "$PKG_CONFIG" && \ 11361 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5 11362 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5 11363 ac_status=$? 11364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11365 test $ac_status = 0; }; then 11366 pkg_cv_SESSREG_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.25" 2>/dev/null` 11367else 11368 pkg_failed=yes 11369fi 11370 else 11371 pkg_failed=untried 11372fi 11373if test -n "$SESSREG_LIBS"; then 11374 pkg_cv_SESSREG_LIBS="$SESSREG_LIBS" 11375 elif test -n "$PKG_CONFIG"; then 11376 if test -n "$PKG_CONFIG" && \ 11377 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5 11378 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5 11379 ac_status=$? 11380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11381 test $ac_status = 0; }; then 11382 pkg_cv_SESSREG_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.25" 2>/dev/null` 11383else 11384 pkg_failed=yes 11385fi 11386 else 11387 pkg_failed=untried 11388fi 11389 11390 11391 11392if test $pkg_failed = yes; then 11393 11394if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11395 _pkg_short_errors_supported=yes 11396else 11397 _pkg_short_errors_supported=no 11398fi 11399 if test $_pkg_short_errors_supported = yes; then 11400 SESSREG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.25" 2>&1` 11401 else 11402 SESSREG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.25" 2>&1` 11403 fi 11404 # Put the nasty error message in config.log where it belongs 11405 echo "$SESSREG_PKG_ERRORS" >&5 11406 11407 as_fn_error $? "Package requirements (xproto >= 7.0.25) were not met: 11408 11409$SESSREG_PKG_ERRORS 11410 11411Consider adjusting the PKG_CONFIG_PATH environment variable if you 11412installed software in a non-standard prefix. 11413 11414Alternatively, you may set the environment variables SESSREG_CFLAGS 11415and SESSREG_LIBS to avoid the need to call pkg-config. 11416See the pkg-config man page for more details. 11417" "$LINENO" 5 11418elif test $pkg_failed = untried; then 11419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11421as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11422is in your PATH or set the PKG_CONFIG environment variable to the full 11423path to pkg-config. 11424 11425Alternatively, you may set the environment variables SESSREG_CFLAGS 11426and SESSREG_LIBS to avoid the need to call pkg-config. 11427See the pkg-config man page for more details. 11428 11429To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11430See \`config.log' for more details" "$LINENO" 5; } 11431else 11432 SESSREG_CFLAGS=$pkg_cv_SESSREG_CFLAGS 11433 SESSREG_LIBS=$pkg_cv_SESSREG_LIBS 11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11435$as_echo "yes" >&6; } 11436 : 11437fi 11438 11439ac_config_files="$ac_config_files Makefile man/Makefile" 11440 11441cat >confcache <<\_ACEOF 11442# This file is a shell script that caches the results of configure 11443# tests run on this system so they can be shared between configure 11444# scripts and configure runs, see configure's option --config-cache. 11445# It is not useful on other systems. If it contains results you don't 11446# want to keep, you may remove or edit it. 11447# 11448# config.status only pays attention to the cache file if you give it 11449# the --recheck option to rerun configure. 11450# 11451# `ac_cv_env_foo' variables (set or unset) will be overridden when 11452# loading this file, other *unset* `ac_cv_foo' will be assigned the 11453# following values. 11454 11455_ACEOF 11456 11457# The following way of writing the cache mishandles newlines in values, 11458# but we know of no workaround that is simple, portable, and efficient. 11459# So, we kill variables containing newlines. 11460# Ultrix sh set writes to stderr and can't be redirected directly, 11461# and sets the high bit in the cache file unless we assign to the vars. 11462( 11463 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11464 eval ac_val=\$$ac_var 11465 case $ac_val in #( 11466 *${as_nl}*) 11467 case $ac_var in #( 11468 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11469$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11470 esac 11471 case $ac_var in #( 11472 _ | IFS | as_nl) ;; #( 11473 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11474 *) { eval $ac_var=; unset $ac_var;} ;; 11475 esac ;; 11476 esac 11477 done 11478 11479 (set) 2>&1 | 11480 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11481 *${as_nl}ac_space=\ *) 11482 # `set' does not quote correctly, so add quotes: double-quote 11483 # substitution turns \\\\ into \\, and sed turns \\ into \. 11484 sed -n \ 11485 "s/'/'\\\\''/g; 11486 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11487 ;; #( 11488 *) 11489 # `set' quotes correctly as required by POSIX, so do not add quotes. 11490 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11491 ;; 11492 esac | 11493 sort 11494) | 11495 sed ' 11496 /^ac_cv_env_/b end 11497 t clear 11498 :clear 11499 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11500 t end 11501 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11502 :end' >>confcache 11503if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11504 if test -w "$cache_file"; then 11505 if test "x$cache_file" != "x/dev/null"; then 11506 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11507$as_echo "$as_me: updating cache $cache_file" >&6;} 11508 if test ! -f "$cache_file" || test -h "$cache_file"; then 11509 cat confcache >"$cache_file" 11510 else 11511 case $cache_file in #( 11512 */* | ?:*) 11513 mv -f confcache "$cache_file"$$ && 11514 mv -f "$cache_file"$$ "$cache_file" ;; #( 11515 *) 11516 mv -f confcache "$cache_file" ;; 11517 esac 11518 fi 11519 fi 11520 else 11521 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11522$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11523 fi 11524fi 11525rm -f confcache 11526 11527test "x$prefix" = xNONE && prefix=$ac_default_prefix 11528# Let make expand exec_prefix. 11529test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11530 11531DEFS=-DHAVE_CONFIG_H 11532 11533ac_libobjs= 11534ac_ltlibobjs= 11535U= 11536for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11537 # 1. Remove the extension, and $U if already installed. 11538 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11539 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11540 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11541 # will be set to the directory where LIBOBJS objects are built. 11542 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11543 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11544done 11545LIBOBJS=$ac_libobjs 11546 11547LTLIBOBJS=$ac_ltlibobjs 11548 11549 11550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11551$as_echo_n "checking that generated files are newer than configure... " >&6; } 11552 if test -n "$am_sleep_pid"; then 11553 # Hide warnings about reused PIDs. 11554 wait $am_sleep_pid 2>/dev/null 11555 fi 11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11557$as_echo "done" >&6; } 11558if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11559 as_fn_error $? "conditional \"AMDEP\" was never defined. 11560Usually this means the macro was only invoked conditionally." "$LINENO" 5 11561fi 11562if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11563 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11564Usually this means the macro was only invoked conditionally." "$LINENO" 5 11565fi 11566 if test -n "$EXEEXT"; then 11567 am__EXEEXT_TRUE= 11568 am__EXEEXT_FALSE='#' 11569else 11570 am__EXEEXT_TRUE='#' 11571 am__EXEEXT_FALSE= 11572fi 11573 11574if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 11575 as_fn_error $? "conditional \"LINT\" was never defined. 11576Usually this means the macro was only invoked conditionally." "$LINENO" 5 11577fi 11578 11579: "${CONFIG_STATUS=./config.status}" 11580ac_write_fail=0 11581ac_clean_files_save=$ac_clean_files 11582ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11583{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11584$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11585as_write_fail=0 11586cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11587#! $SHELL 11588# Generated by $as_me. 11589# Run this file to recreate the current configuration. 11590# Compiler output produced by configure, useful for debugging 11591# configure, is in config.log if it exists. 11592 11593debug=false 11594ac_cs_recheck=false 11595ac_cs_silent=false 11596 11597SHELL=\${CONFIG_SHELL-$SHELL} 11598export SHELL 11599_ASEOF 11600cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11601## -------------------- ## 11602## M4sh Initialization. ## 11603## -------------------- ## 11604 11605# Be more Bourne compatible 11606DUALCASE=1; export DUALCASE # for MKS sh 11607if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11608 emulate sh 11609 NULLCMD=: 11610 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11611 # is contrary to our usage. Disable this feature. 11612 alias -g '${1+"$@"}'='"$@"' 11613 setopt NO_GLOB_SUBST 11614else 11615 case `(set -o) 2>/dev/null` in #( 11616 *posix*) : 11617 set -o posix ;; #( 11618 *) : 11619 ;; 11620esac 11621fi 11622 11623 11624as_nl=' 11625' 11626export as_nl 11627# Printing a long string crashes Solaris 7 /usr/bin/printf. 11628as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11629as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11630as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11631# Prefer a ksh shell builtin over an external printf program on Solaris, 11632# but without wasting forks for bash or zsh. 11633if test -z "$BASH_VERSION$ZSH_VERSION" \ 11634 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11635 as_echo='print -r --' 11636 as_echo_n='print -rn --' 11637elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11638 as_echo='printf %s\n' 11639 as_echo_n='printf %s' 11640else 11641 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11642 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11643 as_echo_n='/usr/ucb/echo -n' 11644 else 11645 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11646 as_echo_n_body='eval 11647 arg=$1; 11648 case $arg in #( 11649 *"$as_nl"*) 11650 expr "X$arg" : "X\\(.*\\)$as_nl"; 11651 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11652 esac; 11653 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11654 ' 11655 export as_echo_n_body 11656 as_echo_n='sh -c $as_echo_n_body as_echo' 11657 fi 11658 export as_echo_body 11659 as_echo='sh -c $as_echo_body as_echo' 11660fi 11661 11662# The user is always right. 11663if test "${PATH_SEPARATOR+set}" != set; then 11664 PATH_SEPARATOR=: 11665 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11666 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11667 PATH_SEPARATOR=';' 11668 } 11669fi 11670 11671 11672# IFS 11673# We need space, tab and new line, in precisely that order. Quoting is 11674# there to prevent editors from complaining about space-tab. 11675# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11676# splitting by setting IFS to empty value.) 11677IFS=" "" $as_nl" 11678 11679# Find who we are. Look in the path if we contain no directory separator. 11680as_myself= 11681case $0 in #(( 11682 *[\\/]* ) as_myself=$0 ;; 11683 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11684for as_dir in $PATH 11685do 11686 IFS=$as_save_IFS 11687 test -z "$as_dir" && as_dir=. 11688 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11689 done 11690IFS=$as_save_IFS 11691 11692 ;; 11693esac 11694# We did not find ourselves, most probably we were run as `sh COMMAND' 11695# in which case we are not to be found in the path. 11696if test "x$as_myself" = x; then 11697 as_myself=$0 11698fi 11699if test ! -f "$as_myself"; then 11700 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11701 exit 1 11702fi 11703 11704# Unset variables that we do not need and which cause bugs (e.g. in 11705# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11706# suppresses any "Segmentation fault" message there. '((' could 11707# trigger a bug in pdksh 5.2.14. 11708for as_var in BASH_ENV ENV MAIL MAILPATH 11709do eval test x\${$as_var+set} = xset \ 11710 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11711done 11712PS1='$ ' 11713PS2='> ' 11714PS4='+ ' 11715 11716# NLS nuisances. 11717LC_ALL=C 11718export LC_ALL 11719LANGUAGE=C 11720export LANGUAGE 11721 11722# CDPATH. 11723(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11724 11725 11726# as_fn_error STATUS ERROR [LINENO LOG_FD] 11727# ---------------------------------------- 11728# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11729# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11730# script with STATUS, using 1 if that was 0. 11731as_fn_error () 11732{ 11733 as_status=$1; test $as_status -eq 0 && as_status=1 11734 if test "$4"; then 11735 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11736 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11737 fi 11738 $as_echo "$as_me: error: $2" >&2 11739 as_fn_exit $as_status 11740} # as_fn_error 11741 11742 11743# as_fn_set_status STATUS 11744# ----------------------- 11745# Set $? to STATUS, without forking. 11746as_fn_set_status () 11747{ 11748 return $1 11749} # as_fn_set_status 11750 11751# as_fn_exit STATUS 11752# ----------------- 11753# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11754as_fn_exit () 11755{ 11756 set +e 11757 as_fn_set_status $1 11758 exit $1 11759} # as_fn_exit 11760 11761# as_fn_unset VAR 11762# --------------- 11763# Portably unset VAR. 11764as_fn_unset () 11765{ 11766 { eval $1=; unset $1;} 11767} 11768as_unset=as_fn_unset 11769# as_fn_append VAR VALUE 11770# ---------------------- 11771# Append the text in VALUE to the end of the definition contained in VAR. Take 11772# advantage of any shell optimizations that allow amortized linear growth over 11773# repeated appends, instead of the typical quadratic growth present in naive 11774# implementations. 11775if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11776 eval 'as_fn_append () 11777 { 11778 eval $1+=\$2 11779 }' 11780else 11781 as_fn_append () 11782 { 11783 eval $1=\$$1\$2 11784 } 11785fi # as_fn_append 11786 11787# as_fn_arith ARG... 11788# ------------------ 11789# Perform arithmetic evaluation on the ARGs, and store the result in the 11790# global $as_val. Take advantage of shells that can avoid forks. The arguments 11791# must be portable across $(()) and expr. 11792if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11793 eval 'as_fn_arith () 11794 { 11795 as_val=$(( $* )) 11796 }' 11797else 11798 as_fn_arith () 11799 { 11800 as_val=`expr "$@" || test $? -eq 1` 11801 } 11802fi # as_fn_arith 11803 11804 11805if expr a : '\(a\)' >/dev/null 2>&1 && 11806 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11807 as_expr=expr 11808else 11809 as_expr=false 11810fi 11811 11812if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11813 as_basename=basename 11814else 11815 as_basename=false 11816fi 11817 11818if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11819 as_dirname=dirname 11820else 11821 as_dirname=false 11822fi 11823 11824as_me=`$as_basename -- "$0" || 11825$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11826 X"$0" : 'X\(//\)$' \| \ 11827 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11828$as_echo X/"$0" | 11829 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11830 s//\1/ 11831 q 11832 } 11833 /^X\/\(\/\/\)$/{ 11834 s//\1/ 11835 q 11836 } 11837 /^X\/\(\/\).*/{ 11838 s//\1/ 11839 q 11840 } 11841 s/.*/./; q'` 11842 11843# Avoid depending upon Character Ranges. 11844as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11845as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11846as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11847as_cr_digits='0123456789' 11848as_cr_alnum=$as_cr_Letters$as_cr_digits 11849 11850ECHO_C= ECHO_N= ECHO_T= 11851case `echo -n x` in #((((( 11852-n*) 11853 case `echo 'xy\c'` in 11854 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11855 xy) ECHO_C='\c';; 11856 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11857 ECHO_T=' ';; 11858 esac;; 11859*) 11860 ECHO_N='-n';; 11861esac 11862 11863rm -f conf$$ conf$$.exe conf$$.file 11864if test -d conf$$.dir; then 11865 rm -f conf$$.dir/conf$$.file 11866else 11867 rm -f conf$$.dir 11868 mkdir conf$$.dir 2>/dev/null 11869fi 11870if (echo >conf$$.file) 2>/dev/null; then 11871 if ln -s conf$$.file conf$$ 2>/dev/null; then 11872 as_ln_s='ln -s' 11873 # ... but there are two gotchas: 11874 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11875 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11876 # In both cases, we have to default to `cp -pR'. 11877 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11878 as_ln_s='cp -pR' 11879 elif ln conf$$.file conf$$ 2>/dev/null; then 11880 as_ln_s=ln 11881 else 11882 as_ln_s='cp -pR' 11883 fi 11884else 11885 as_ln_s='cp -pR' 11886fi 11887rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11888rmdir conf$$.dir 2>/dev/null 11889 11890 11891# as_fn_mkdir_p 11892# ------------- 11893# Create "$as_dir" as a directory, including parents if necessary. 11894as_fn_mkdir_p () 11895{ 11896 11897 case $as_dir in #( 11898 -*) as_dir=./$as_dir;; 11899 esac 11900 test -d "$as_dir" || eval $as_mkdir_p || { 11901 as_dirs= 11902 while :; do 11903 case $as_dir in #( 11904 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11905 *) as_qdir=$as_dir;; 11906 esac 11907 as_dirs="'$as_qdir' $as_dirs" 11908 as_dir=`$as_dirname -- "$as_dir" || 11909$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11910 X"$as_dir" : 'X\(//\)[^/]' \| \ 11911 X"$as_dir" : 'X\(//\)$' \| \ 11912 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11913$as_echo X"$as_dir" | 11914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11915 s//\1/ 11916 q 11917 } 11918 /^X\(\/\/\)[^/].*/{ 11919 s//\1/ 11920 q 11921 } 11922 /^X\(\/\/\)$/{ 11923 s//\1/ 11924 q 11925 } 11926 /^X\(\/\).*/{ 11927 s//\1/ 11928 q 11929 } 11930 s/.*/./; q'` 11931 test -d "$as_dir" && break 11932 done 11933 test -z "$as_dirs" || eval "mkdir $as_dirs" 11934 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11935 11936 11937} # as_fn_mkdir_p 11938if mkdir -p . 2>/dev/null; then 11939 as_mkdir_p='mkdir -p "$as_dir"' 11940else 11941 test -d ./-p && rmdir ./-p 11942 as_mkdir_p=false 11943fi 11944 11945 11946# as_fn_executable_p FILE 11947# ----------------------- 11948# Test if FILE is an executable regular file. 11949as_fn_executable_p () 11950{ 11951 test -f "$1" && test -x "$1" 11952} # as_fn_executable_p 11953as_test_x='test -x' 11954as_executable_p=as_fn_executable_p 11955 11956# Sed expression to map a string onto a valid CPP name. 11957as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11958 11959# Sed expression to map a string onto a valid variable name. 11960as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11961 11962 11963exec 6>&1 11964## ----------------------------------- ## 11965## Main body of $CONFIG_STATUS script. ## 11966## ----------------------------------- ## 11967_ASEOF 11968test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11969 11970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11971# Save the log message, to keep $0 and so on meaningful, and to 11972# report actual input values of CONFIG_FILES etc. instead of their 11973# values after options handling. 11974ac_log=" 11975This file was extended by sessreg $as_me 1.1.0, which was 11976generated by GNU Autoconf 2.69. Invocation command line was 11977 11978 CONFIG_FILES = $CONFIG_FILES 11979 CONFIG_HEADERS = $CONFIG_HEADERS 11980 CONFIG_LINKS = $CONFIG_LINKS 11981 CONFIG_COMMANDS = $CONFIG_COMMANDS 11982 $ $0 $@ 11983 11984on `(hostname || uname -n) 2>/dev/null | sed 1q` 11985" 11986 11987_ACEOF 11988 11989case $ac_config_files in *" 11990"*) set x $ac_config_files; shift; ac_config_files=$*;; 11991esac 11992 11993case $ac_config_headers in *" 11994"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11995esac 11996 11997 11998cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11999# Files that config.status was made for. 12000config_files="$ac_config_files" 12001config_headers="$ac_config_headers" 12002config_commands="$ac_config_commands" 12003 12004_ACEOF 12005 12006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12007ac_cs_usage="\ 12008\`$as_me' instantiates files and other configuration actions 12009from templates according to the current configuration. Unless the files 12010and actions are specified as TAGs, all are instantiated by default. 12011 12012Usage: $0 [OPTION]... [TAG]... 12013 12014 -h, --help print this help, then exit 12015 -V, --version print version number and configuration settings, then exit 12016 --config print configuration, then exit 12017 -q, --quiet, --silent 12018 do not print progress messages 12019 -d, --debug don't remove temporary files 12020 --recheck update $as_me by reconfiguring in the same conditions 12021 --file=FILE[:TEMPLATE] 12022 instantiate the configuration file FILE 12023 --header=FILE[:TEMPLATE] 12024 instantiate the configuration header FILE 12025 12026Configuration files: 12027$config_files 12028 12029Configuration headers: 12030$config_headers 12031 12032Configuration commands: 12033$config_commands 12034 12035Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 12036 12037_ACEOF 12038cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12039ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12040ac_cs_version="\\ 12041sessreg config.status 1.1.0 12042configured by $0, generated by GNU Autoconf 2.69, 12043 with options \\"\$ac_cs_config\\" 12044 12045Copyright (C) 2012 Free Software Foundation, Inc. 12046This config.status script is free software; the Free Software Foundation 12047gives unlimited permission to copy, distribute and modify it." 12048 12049ac_pwd='$ac_pwd' 12050srcdir='$srcdir' 12051INSTALL='$INSTALL' 12052MKDIR_P='$MKDIR_P' 12053AWK='$AWK' 12054test -n "\$AWK" || AWK=awk 12055_ACEOF 12056 12057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12058# The default lists apply if the user does not specify any file. 12059ac_need_defaults=: 12060while test $# != 0 12061do 12062 case $1 in 12063 --*=?*) 12064 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12065 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12066 ac_shift=: 12067 ;; 12068 --*=) 12069 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12070 ac_optarg= 12071 ac_shift=: 12072 ;; 12073 *) 12074 ac_option=$1 12075 ac_optarg=$2 12076 ac_shift=shift 12077 ;; 12078 esac 12079 12080 case $ac_option in 12081 # Handling of the options. 12082 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12083 ac_cs_recheck=: ;; 12084 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12085 $as_echo "$ac_cs_version"; exit ;; 12086 --config | --confi | --conf | --con | --co | --c ) 12087 $as_echo "$ac_cs_config"; exit ;; 12088 --debug | --debu | --deb | --de | --d | -d ) 12089 debug=: ;; 12090 --file | --fil | --fi | --f ) 12091 $ac_shift 12092 case $ac_optarg in 12093 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12094 '') as_fn_error $? "missing file argument" ;; 12095 esac 12096 as_fn_append CONFIG_FILES " '$ac_optarg'" 12097 ac_need_defaults=false;; 12098 --header | --heade | --head | --hea ) 12099 $ac_shift 12100 case $ac_optarg in 12101 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12102 esac 12103 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12104 ac_need_defaults=false;; 12105 --he | --h) 12106 # Conflict between --help and --header 12107 as_fn_error $? "ambiguous option: \`$1' 12108Try \`$0 --help' for more information.";; 12109 --help | --hel | -h ) 12110 $as_echo "$ac_cs_usage"; exit ;; 12111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12112 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12113 ac_cs_silent=: ;; 12114 12115 # This is an error. 12116 -*) as_fn_error $? "unrecognized option: \`$1' 12117Try \`$0 --help' for more information." ;; 12118 12119 *) as_fn_append ac_config_targets " $1" 12120 ac_need_defaults=false ;; 12121 12122 esac 12123 shift 12124done 12125 12126ac_configure_extra_args= 12127 12128if $ac_cs_silent; then 12129 exec 6>/dev/null 12130 ac_configure_extra_args="$ac_configure_extra_args --silent" 12131fi 12132 12133_ACEOF 12134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12135if \$ac_cs_recheck; then 12136 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12137 shift 12138 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12139 CONFIG_SHELL='$SHELL' 12140 export CONFIG_SHELL 12141 exec "\$@" 12142fi 12143 12144_ACEOF 12145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12146exec 5>>config.log 12147{ 12148 echo 12149 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12150## Running $as_me. ## 12151_ASBOX 12152 $as_echo "$ac_log" 12153} >&5 12154 12155_ACEOF 12156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12157# 12158# INIT-COMMANDS 12159# 12160AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12161 12162_ACEOF 12163 12164cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12165 12166# Handling of arguments. 12167for ac_config_target in $ac_config_targets 12168do 12169 case $ac_config_target in 12170 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12171 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12172 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12173 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12174 12175 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12176 esac 12177done 12178 12179 12180# If the user did not use the arguments to specify the items to instantiate, 12181# then the envvar interface is used. Set only those that are not. 12182# We use the long form for the default assignment because of an extremely 12183# bizarre bug on SunOS 4.1.3. 12184if $ac_need_defaults; then 12185 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12186 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12187 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12188fi 12189 12190# Have a temporary directory for convenience. Make it in the build tree 12191# simply because there is no reason against having it here, and in addition, 12192# creating and moving files from /tmp can sometimes cause problems. 12193# Hook for its removal unless debugging. 12194# Note that there is a small window in which the directory will not be cleaned: 12195# after its creation but before its name has been assigned to `$tmp'. 12196$debug || 12197{ 12198 tmp= ac_tmp= 12199 trap 'exit_status=$? 12200 : "${ac_tmp:=$tmp}" 12201 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12202' 0 12203 trap 'as_fn_exit 1' 1 2 13 15 12204} 12205# Create a (secure) tmp directory for tmp files. 12206 12207{ 12208 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12209 test -d "$tmp" 12210} || 12211{ 12212 tmp=./conf$$-$RANDOM 12213 (umask 077 && mkdir "$tmp") 12214} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12215ac_tmp=$tmp 12216 12217# Set up the scripts for CONFIG_FILES section. 12218# No need to generate them if there are no CONFIG_FILES. 12219# This happens for instance with `./config.status config.h'. 12220if test -n "$CONFIG_FILES"; then 12221 12222 12223ac_cr=`echo X | tr X '\015'` 12224# On cygwin, bash can eat \r inside `` if the user requested igncr. 12225# But we know of no other shell where ac_cr would be empty at this 12226# point, so we can use a bashism as a fallback. 12227if test "x$ac_cr" = x; then 12228 eval ac_cr=\$\'\\r\' 12229fi 12230ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12231if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12232 ac_cs_awk_cr='\\r' 12233else 12234 ac_cs_awk_cr=$ac_cr 12235fi 12236 12237echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12238_ACEOF 12239 12240 12241{ 12242 echo "cat >conf$$subs.awk <<_ACEOF" && 12243 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12244 echo "_ACEOF" 12245} >conf$$subs.sh || 12246 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12247ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12248ac_delim='%!_!# ' 12249for ac_last_try in false false false false false :; do 12250 . ./conf$$subs.sh || 12251 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12252 12253 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12254 if test $ac_delim_n = $ac_delim_num; then 12255 break 12256 elif $ac_last_try; then 12257 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12258 else 12259 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12260 fi 12261done 12262rm -f conf$$subs.sh 12263 12264cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12265cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12266_ACEOF 12267sed -n ' 12268h 12269s/^/S["/; s/!.*/"]=/ 12270p 12271g 12272s/^[^!]*!// 12273:repl 12274t repl 12275s/'"$ac_delim"'$// 12276t delim 12277:nl 12278h 12279s/\(.\{148\}\)..*/\1/ 12280t more1 12281s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12282p 12283n 12284b repl 12285:more1 12286s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12287p 12288g 12289s/.\{148\}// 12290t nl 12291:delim 12292h 12293s/\(.\{148\}\)..*/\1/ 12294t more2 12295s/["\\]/\\&/g; s/^/"/; s/$/"/ 12296p 12297b 12298:more2 12299s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12300p 12301g 12302s/.\{148\}// 12303t delim 12304' <conf$$subs.awk | sed ' 12305/^[^""]/{ 12306 N 12307 s/\n// 12308} 12309' >>$CONFIG_STATUS || ac_write_fail=1 12310rm -f conf$$subs.awk 12311cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12312_ACAWK 12313cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12314 for (key in S) S_is_set[key] = 1 12315 FS = "" 12316 12317} 12318{ 12319 line = $ 0 12320 nfields = split(line, field, "@") 12321 substed = 0 12322 len = length(field[1]) 12323 for (i = 2; i < nfields; i++) { 12324 key = field[i] 12325 keylen = length(key) 12326 if (S_is_set[key]) { 12327 value = S[key] 12328 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12329 len += length(value) + length(field[++i]) 12330 substed = 1 12331 } else 12332 len += 1 + keylen 12333 } 12334 12335 print line 12336} 12337 12338_ACAWK 12339_ACEOF 12340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12341if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12342 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12343else 12344 cat 12345fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12346 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12347_ACEOF 12348 12349# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12350# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12351# trailing colons and then remove the whole line if VPATH becomes empty 12352# (actually we leave an empty line to preserve line numbers). 12353if test "x$srcdir" = x.; then 12354 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12355h 12356s/// 12357s/^/:/ 12358s/[ ]*$/:/ 12359s/:\$(srcdir):/:/g 12360s/:\${srcdir}:/:/g 12361s/:@srcdir@:/:/g 12362s/^:*// 12363s/:*$// 12364x 12365s/\(=[ ]*\).*/\1/ 12366G 12367s/\n// 12368s/^[^=]*=[ ]*$// 12369}' 12370fi 12371 12372cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12373fi # test -n "$CONFIG_FILES" 12374 12375# Set up the scripts for CONFIG_HEADERS section. 12376# No need to generate them if there are no CONFIG_HEADERS. 12377# This happens for instance with `./config.status Makefile'. 12378if test -n "$CONFIG_HEADERS"; then 12379cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12380BEGIN { 12381_ACEOF 12382 12383# Transform confdefs.h into an awk script `defines.awk', embedded as 12384# here-document in config.status, that substitutes the proper values into 12385# config.h.in to produce config.h. 12386 12387# Create a delimiter string that does not exist in confdefs.h, to ease 12388# handling of long lines. 12389ac_delim='%!_!# ' 12390for ac_last_try in false false :; do 12391 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12392 if test -z "$ac_tt"; then 12393 break 12394 elif $ac_last_try; then 12395 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12396 else 12397 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12398 fi 12399done 12400 12401# For the awk script, D is an array of macro values keyed by name, 12402# likewise P contains macro parameters if any. Preserve backslash 12403# newline sequences. 12404 12405ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12406sed -n ' 12407s/.\{148\}/&'"$ac_delim"'/g 12408t rset 12409:rset 12410s/^[ ]*#[ ]*define[ ][ ]*/ / 12411t def 12412d 12413:def 12414s/\\$// 12415t bsnl 12416s/["\\]/\\&/g 12417s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12418D["\1"]=" \3"/p 12419s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12420d 12421:bsnl 12422s/["\\]/\\&/g 12423s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12424D["\1"]=" \3\\\\\\n"\\/p 12425t cont 12426s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12427t cont 12428d 12429:cont 12430n 12431s/.\{148\}/&'"$ac_delim"'/g 12432t clear 12433:clear 12434s/\\$// 12435t bsnlc 12436s/["\\]/\\&/g; s/^/"/; s/$/"/p 12437d 12438:bsnlc 12439s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12440b cont 12441' <confdefs.h | sed ' 12442s/'"$ac_delim"'/"\\\ 12443"/g' >>$CONFIG_STATUS || ac_write_fail=1 12444 12445cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12446 for (key in D) D_is_set[key] = 1 12447 FS = "" 12448} 12449/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12450 line = \$ 0 12451 split(line, arg, " ") 12452 if (arg[1] == "#") { 12453 defundef = arg[2] 12454 mac1 = arg[3] 12455 } else { 12456 defundef = substr(arg[1], 2) 12457 mac1 = arg[2] 12458 } 12459 split(mac1, mac2, "(") #) 12460 macro = mac2[1] 12461 prefix = substr(line, 1, index(line, defundef) - 1) 12462 if (D_is_set[macro]) { 12463 # Preserve the white space surrounding the "#". 12464 print prefix "define", macro P[macro] D[macro] 12465 next 12466 } else { 12467 # Replace #undef with comments. This is necessary, for example, 12468 # in the case of _POSIX_SOURCE, which is predefined and required 12469 # on some systems where configure will not decide to define it. 12470 if (defundef == "undef") { 12471 print "/*", prefix defundef, macro, "*/" 12472 next 12473 } 12474 } 12475} 12476{ print } 12477_ACAWK 12478_ACEOF 12479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12480 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12481fi # test -n "$CONFIG_HEADERS" 12482 12483 12484eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12485shift 12486for ac_tag 12487do 12488 case $ac_tag in 12489 :[FHLC]) ac_mode=$ac_tag; continue;; 12490 esac 12491 case $ac_mode$ac_tag in 12492 :[FHL]*:*);; 12493 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12494 :[FH]-) ac_tag=-:-;; 12495 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12496 esac 12497 ac_save_IFS=$IFS 12498 IFS=: 12499 set x $ac_tag 12500 IFS=$ac_save_IFS 12501 shift 12502 ac_file=$1 12503 shift 12504 12505 case $ac_mode in 12506 :L) ac_source=$1;; 12507 :[FH]) 12508 ac_file_inputs= 12509 for ac_f 12510 do 12511 case $ac_f in 12512 -) ac_f="$ac_tmp/stdin";; 12513 *) # Look for the file first in the build tree, then in the source tree 12514 # (if the path is not absolute). The absolute path cannot be DOS-style, 12515 # because $ac_f cannot contain `:'. 12516 test -f "$ac_f" || 12517 case $ac_f in 12518 [\\/$]*) false;; 12519 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12520 esac || 12521 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12522 esac 12523 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12524 as_fn_append ac_file_inputs " '$ac_f'" 12525 done 12526 12527 # Let's still pretend it is `configure' which instantiates (i.e., don't 12528 # use $as_me), people would be surprised to read: 12529 # /* config.h. Generated by config.status. */ 12530 configure_input='Generated from '` 12531 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12532 `' by configure.' 12533 if test x"$ac_file" != x-; then 12534 configure_input="$ac_file. $configure_input" 12535 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12536$as_echo "$as_me: creating $ac_file" >&6;} 12537 fi 12538 # Neutralize special characters interpreted by sed in replacement strings. 12539 case $configure_input in #( 12540 *\&* | *\|* | *\\* ) 12541 ac_sed_conf_input=`$as_echo "$configure_input" | 12542 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12543 *) ac_sed_conf_input=$configure_input;; 12544 esac 12545 12546 case $ac_tag in 12547 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12548 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12549 esac 12550 ;; 12551 esac 12552 12553 ac_dir=`$as_dirname -- "$ac_file" || 12554$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12555 X"$ac_file" : 'X\(//\)[^/]' \| \ 12556 X"$ac_file" : 'X\(//\)$' \| \ 12557 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12558$as_echo X"$ac_file" | 12559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12560 s//\1/ 12561 q 12562 } 12563 /^X\(\/\/\)[^/].*/{ 12564 s//\1/ 12565 q 12566 } 12567 /^X\(\/\/\)$/{ 12568 s//\1/ 12569 q 12570 } 12571 /^X\(\/\).*/{ 12572 s//\1/ 12573 q 12574 } 12575 s/.*/./; q'` 12576 as_dir="$ac_dir"; as_fn_mkdir_p 12577 ac_builddir=. 12578 12579case "$ac_dir" in 12580.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12581*) 12582 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12583 # A ".." for each directory in $ac_dir_suffix. 12584 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12585 case $ac_top_builddir_sub in 12586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12588 esac ;; 12589esac 12590ac_abs_top_builddir=$ac_pwd 12591ac_abs_builddir=$ac_pwd$ac_dir_suffix 12592# for backward compatibility: 12593ac_top_builddir=$ac_top_build_prefix 12594 12595case $srcdir in 12596 .) # We are building in place. 12597 ac_srcdir=. 12598 ac_top_srcdir=$ac_top_builddir_sub 12599 ac_abs_top_srcdir=$ac_pwd ;; 12600 [\\/]* | ?:[\\/]* ) # Absolute name. 12601 ac_srcdir=$srcdir$ac_dir_suffix; 12602 ac_top_srcdir=$srcdir 12603 ac_abs_top_srcdir=$srcdir ;; 12604 *) # Relative name. 12605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12606 ac_top_srcdir=$ac_top_build_prefix$srcdir 12607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12608esac 12609ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12610 12611 12612 case $ac_mode in 12613 :F) 12614 # 12615 # CONFIG_FILE 12616 # 12617 12618 case $INSTALL in 12619 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12620 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12621 esac 12622 ac_MKDIR_P=$MKDIR_P 12623 case $MKDIR_P in 12624 [\\/$]* | ?:[\\/]* ) ;; 12625 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12626 esac 12627_ACEOF 12628 12629cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12630# If the template does not know about datarootdir, expand it. 12631# FIXME: This hack should be removed a few years after 2.60. 12632ac_datarootdir_hack=; ac_datarootdir_seen= 12633ac_sed_dataroot=' 12634/datarootdir/ { 12635 p 12636 q 12637} 12638/@datadir@/p 12639/@docdir@/p 12640/@infodir@/p 12641/@localedir@/p 12642/@mandir@/p' 12643case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12644*datarootdir*) ac_datarootdir_seen=yes;; 12645*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12647$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12648_ACEOF 12649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12650 ac_datarootdir_hack=' 12651 s&@datadir@&$datadir&g 12652 s&@docdir@&$docdir&g 12653 s&@infodir@&$infodir&g 12654 s&@localedir@&$localedir&g 12655 s&@mandir@&$mandir&g 12656 s&\\\${datarootdir}&$datarootdir&g' ;; 12657esac 12658_ACEOF 12659 12660# Neutralize VPATH when `$srcdir' = `.'. 12661# Shell code in configure.ac might set extrasub. 12662# FIXME: do we really want to maintain this feature? 12663cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12664ac_sed_extra="$ac_vpsub 12665$extrasub 12666_ACEOF 12667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12668:t 12669/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12670s|@configure_input@|$ac_sed_conf_input|;t t 12671s&@top_builddir@&$ac_top_builddir_sub&;t t 12672s&@top_build_prefix@&$ac_top_build_prefix&;t t 12673s&@srcdir@&$ac_srcdir&;t t 12674s&@abs_srcdir@&$ac_abs_srcdir&;t t 12675s&@top_srcdir@&$ac_top_srcdir&;t t 12676s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12677s&@builddir@&$ac_builddir&;t t 12678s&@abs_builddir@&$ac_abs_builddir&;t t 12679s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12680s&@INSTALL@&$ac_INSTALL&;t t 12681s&@MKDIR_P@&$ac_MKDIR_P&;t t 12682$ac_datarootdir_hack 12683" 12684eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12685 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12686 12687test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12688 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12689 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12690 "$ac_tmp/out"`; test -z "$ac_out"; } && 12691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12692which seems to be undefined. Please make sure it is defined" >&5 12693$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12694which seems to be undefined. Please make sure it is defined" >&2;} 12695 12696 rm -f "$ac_tmp/stdin" 12697 case $ac_file in 12698 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12699 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12700 esac \ 12701 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12702 ;; 12703 :H) 12704 # 12705 # CONFIG_HEADER 12706 # 12707 if test x"$ac_file" != x-; then 12708 { 12709 $as_echo "/* $configure_input */" \ 12710 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12711 } >"$ac_tmp/config.h" \ 12712 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12713 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12714 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12715$as_echo "$as_me: $ac_file is unchanged" >&6;} 12716 else 12717 rm -f "$ac_file" 12718 mv "$ac_tmp/config.h" "$ac_file" \ 12719 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12720 fi 12721 else 12722 $as_echo "/* $configure_input */" \ 12723 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12724 || as_fn_error $? "could not create -" "$LINENO" 5 12725 fi 12726# Compute "$ac_file"'s index in $config_headers. 12727_am_arg="$ac_file" 12728_am_stamp_count=1 12729for _am_header in $config_headers :; do 12730 case $_am_header in 12731 $_am_arg | $_am_arg:* ) 12732 break ;; 12733 * ) 12734 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12735 esac 12736done 12737echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12738$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12739 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12740 X"$_am_arg" : 'X\(//\)$' \| \ 12741 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12742$as_echo X"$_am_arg" | 12743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12744 s//\1/ 12745 q 12746 } 12747 /^X\(\/\/\)[^/].*/{ 12748 s//\1/ 12749 q 12750 } 12751 /^X\(\/\/\)$/{ 12752 s//\1/ 12753 q 12754 } 12755 /^X\(\/\).*/{ 12756 s//\1/ 12757 q 12758 } 12759 s/.*/./; q'`/stamp-h$_am_stamp_count 12760 ;; 12761 12762 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12763$as_echo "$as_me: executing $ac_file commands" >&6;} 12764 ;; 12765 esac 12766 12767 12768 case $ac_file$ac_mode in 12769 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12770 # Older Autoconf quotes --file arguments for eval, but not when files 12771 # are listed without --file. Let's play safe and only enable the eval 12772 # if we detect the quoting. 12773 case $CONFIG_FILES in 12774 *\'*) eval set x "$CONFIG_FILES" ;; 12775 *) set x $CONFIG_FILES ;; 12776 esac 12777 shift 12778 for mf 12779 do 12780 # Strip MF so we end up with the name of the file. 12781 mf=`echo "$mf" | sed -e 's/:.*$//'` 12782 # Check whether this is an Automake generated Makefile or not. 12783 # We used to match only the files named 'Makefile.in', but 12784 # some people rename them; so instead we look at the file content. 12785 # Grep'ing the first line is not enough: some people post-process 12786 # each Makefile.in and add a new line on top of each file to say so. 12787 # Grep'ing the whole file is not good either: AIX grep has a line 12788 # limit of 2048, but all sed's we know have understand at least 4000. 12789 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12790 dirpart=`$as_dirname -- "$mf" || 12791$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12792 X"$mf" : 'X\(//\)[^/]' \| \ 12793 X"$mf" : 'X\(//\)$' \| \ 12794 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12795$as_echo X"$mf" | 12796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12797 s//\1/ 12798 q 12799 } 12800 /^X\(\/\/\)[^/].*/{ 12801 s//\1/ 12802 q 12803 } 12804 /^X\(\/\/\)$/{ 12805 s//\1/ 12806 q 12807 } 12808 /^X\(\/\).*/{ 12809 s//\1/ 12810 q 12811 } 12812 s/.*/./; q'` 12813 else 12814 continue 12815 fi 12816 # Extract the definition of DEPDIR, am__include, and am__quote 12817 # from the Makefile without running 'make'. 12818 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12819 test -z "$DEPDIR" && continue 12820 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12821 test -z "$am__include" && continue 12822 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12823 # Find all dependency output files, they are included files with 12824 # $(DEPDIR) in their names. We invoke sed twice because it is the 12825 # simplest approach to changing $(DEPDIR) to its actual value in the 12826 # expansion. 12827 for file in `sed -n " 12828 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12829 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12830 # Make sure the directory exists. 12831 test -f "$dirpart/$file" && continue 12832 fdir=`$as_dirname -- "$file" || 12833$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12834 X"$file" : 'X\(//\)[^/]' \| \ 12835 X"$file" : 'X\(//\)$' \| \ 12836 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12837$as_echo X"$file" | 12838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12839 s//\1/ 12840 q 12841 } 12842 /^X\(\/\/\)[^/].*/{ 12843 s//\1/ 12844 q 12845 } 12846 /^X\(\/\/\)$/{ 12847 s//\1/ 12848 q 12849 } 12850 /^X\(\/\).*/{ 12851 s//\1/ 12852 q 12853 } 12854 s/.*/./; q'` 12855 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12856 # echo "creating $dirpart/$file" 12857 echo '# dummy' > "$dirpart/$file" 12858 done 12859 done 12860} 12861 ;; 12862 12863 esac 12864done # for ac_tag 12865 12866 12867as_fn_exit 0 12868_ACEOF 12869ac_clean_files=$ac_clean_files_save 12870 12871test $ac_write_fail = 0 || 12872 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12873 12874 12875# configure is writing to config.log, and then calls config.status. 12876# config.status does its own redirection, appending to config.log. 12877# Unfortunately, on DOS this fails, as config.log is still kept open 12878# by configure, so config.status won't be able to write to it; its 12879# output is simply discarded. So we exec the FD to /dev/null, 12880# effectively closing config.log, so it can be properly (re)opened and 12881# appended to by config.status. When coming back to configure, we 12882# need to make the FD available again. 12883if test "$no_create" != yes; then 12884 ac_cs_success=: 12885 ac_config_status_args= 12886 test "$silent" = yes && 12887 ac_config_status_args="$ac_config_status_args --quiet" 12888 exec 5>/dev/null 12889 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12890 exec 5>>config.log 12891 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12892 # would make configure fail if this is the last instruction. 12893 $ac_cs_success || as_fn_exit 1 12894fi 12895if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12897$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12898fi 12899 12900