configure revision 39f9c979
11.15Sbouyer#! /bin/sh 21.2Sbouyer# Guess values for system-dependent variables and create Makefiles. 31.2Sbouyer# Generated by GNU Autoconf 2.68 for imake 1.0.6. 41.2Sbouyer# 51.2Sbouyer# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 61.2Sbouyer# 71.2Sbouyer# 81.2Sbouyer# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 91.2Sbouyer# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 101.2Sbouyer# Foundation, Inc. 111.2Sbouyer# 121.2Sbouyer# 131.2Sbouyer# This configure script is free software; the Free Software Foundation 141.2Sbouyer# gives unlimited permission to copy, distribute and modify it. 151.2Sbouyer## -------------------- ## 161.2Sbouyer## M4sh Initialization. ## 171.2Sbouyer## -------------------- ## 181.2Sbouyer 191.2Sbouyer# Be more Bourne compatible 201.2SbouyerDUALCASE=1; export DUALCASE # for MKS sh 211.2Sbouyerif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 221.2Sbouyer emulate sh 231.2Sbouyer NULLCMD=: 241.2Sbouyer # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 251.2Sbouyer # is contrary to our usage. Disable this feature. 261.2Sbouyer alias -g '${1+"$@"}'='"$@"' 271.2Sbouyer setopt NO_GLOB_SUBST 281.2Sbouyerelse 291.2Sbouyer case `(set -o) 2>/dev/null` in #( 301.2Sbouyer *posix*) : 311.2Sbouyer set -o posix ;; #( 321.2Sbouyer *) : 331.2Sbouyer ;; 341.2Sbouyeresac 351.2Sbouyerfi 361.2Sbouyer 371.10Sbouyer 381.2Sbouyeras_nl=' 391.5Sbouyer' 401.2Sbouyerexport as_nl 411.2Sbouyer# Printing a long string crashes Solaris 7 /usr/bin/printf. 421.2Sbouyeras_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 431.9Syamtas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 441.13Syamtas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 451.6Sbouyer# Prefer a ksh shell builtin over an external printf program on Solaris, 461.5Sbouyer# but without wasting forks for bash or zsh. 471.2Sbouyerif test -z "$BASH_VERSION$ZSH_VERSION" \ 481.15Sbouyer && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 491.15Sbouyer as_echo='print -r --' 501.15Sbouyer as_echo_n='print -rn --' 511.14Sbouyerelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 521.14Sbouyer as_echo='printf %s\n' 531.14Sbouyer as_echo_n='printf %s' 541.5Sbouyerelse 551.5Sbouyer if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 561.5Sbouyer as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 571.5Sbouyer as_echo_n='/usr/ucb/echo -n' 581.2Sbouyer else 591.2Sbouyer as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 601.2Sbouyer as_echo_n_body='eval 611.5Sbouyer arg=$1; 621.2Sbouyer case $arg in #( 631.2Sbouyer *"$as_nl"*) 641.2Sbouyer expr "X$arg" : "X\\(.*\\)$as_nl"; 651.2Sbouyer arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 661.12Sbouyer esac; 671.12Sbouyer expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 681.2Sbouyer ' 691.2Sbouyer export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1" 178 if (eval "$as_required") 2>/dev/null; then : 179 as_have_required=yes 180else 181 as_have_required=no 182fi 183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184 185else 186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187as_found=false 188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189do 190 IFS=$as_save_IFS 191 test -z "$as_dir" && as_dir=. 192 as_found=: 193 case $as_dir in #( 194 /*) 195 for as_base in sh bash ksh sh5; do 196 # Try only shells that exist, to save several forks. 197 as_shell=$as_dir/$as_base 198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 CONFIG_SHELL=$as_shell as_have_required=yes 201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202 break 2 203fi 204fi 205 done;; 206 esac 207 as_found=false 208done 209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211 CONFIG_SHELL=$SHELL as_have_required=yes 212fi; } 213IFS=$as_save_IFS 214 215 216 if test "x$CONFIG_SHELL" != x; then : 217 # We cannot yet assume a decent shell, so we have to provide a 218 # neutralization value for shells without unset; and this also 219 # works around shells that cannot unset nonexistent variables. 220 # Preserve -v and -x to the replacement shell. 221 BASH_ENV=/dev/null 222 ENV=/dev/null 223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224 export CONFIG_SHELL 225 case $- in # (((( 226 *v*x* | *x*v* ) as_opts=-vx ;; 227 *v* ) as_opts=-v ;; 228 *x* ) as_opts=-x ;; 229 * ) as_opts= ;; 230 esac 231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and 242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 243$0: about your system, including any error possibly output 244$0: before this message. Then install a modern shell, or 245$0: manually run the script under such a shell if you do 246$0: have one." 247 fi 248 exit 1 249fi 250fi 251fi 252SHELL=${CONFIG_SHELL-/bin/sh} 253export SHELL 254# Unset more variables known to interfere with behavior of common tools. 255CLICOLOR_FORCE= GREP_OPTIONS= 256unset CLICOLOR_FORCE GREP_OPTIONS 257 258## --------------------- ## 259## M4sh Shell Functions. ## 260## --------------------- ## 261# as_fn_unset VAR 262# --------------- 263# Portably unset VAR. 264as_fn_unset () 265{ 266 { eval $1=; unset $1;} 267} 268as_unset=as_fn_unset 269 270# as_fn_set_status STATUS 271# ----------------------- 272# Set $? to STATUS, without forking. 273as_fn_set_status () 274{ 275 return $1 276} # as_fn_set_status 277 278# as_fn_exit STATUS 279# ----------------- 280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 281as_fn_exit () 282{ 283 set +e 284 as_fn_set_status $1 285 exit $1 286} # as_fn_exit 287 288# as_fn_mkdir_p 289# ------------- 290# Create "$as_dir" as a directory, including parents if necessary. 291as_fn_mkdir_p () 292{ 293 294 case $as_dir in #( 295 -*) as_dir=./$as_dir;; 296 esac 297 test -d "$as_dir" || eval $as_mkdir_p || { 298 as_dirs= 299 while :; do 300 case $as_dir in #( 301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 302 *) as_qdir=$as_dir;; 303 esac 304 as_dirs="'$as_qdir' $as_dirs" 305 as_dir=`$as_dirname -- "$as_dir" || 306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 307 X"$as_dir" : 'X\(//\)[^/]' \| \ 308 X"$as_dir" : 'X\(//\)$' \| \ 309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 310$as_echo X"$as_dir" | 311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\/\)[^/].*/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\/\)$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\).*/{ 324 s//\1/ 325 q 326 } 327 s/.*/./; q'` 328 test -d "$as_dir" && break 329 done 330 test -z "$as_dirs" || eval "mkdir $as_dirs" 331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 332 333 334} # as_fn_mkdir_p 335# as_fn_append VAR VALUE 336# ---------------------- 337# Append the text in VALUE to the end of the definition contained in VAR. Take 338# advantage of any shell optimizations that allow amortized linear growth over 339# repeated appends, instead of the typical quadratic growth present in naive 340# implementations. 341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 342 eval 'as_fn_append () 343 { 344 eval $1+=\$2 345 }' 346else 347 as_fn_append () 348 { 349 eval $1=\$$1\$2 350 } 351fi # as_fn_append 352 353# as_fn_arith ARG... 354# ------------------ 355# Perform arithmetic evaluation on the ARGs, and store the result in the 356# global $as_val. Take advantage of shells that can avoid forks. The arguments 357# must be portable across $(()) and expr. 358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 359 eval 'as_fn_arith () 360 { 361 as_val=$(( $* )) 362 }' 363else 364 as_fn_arith () 365 { 366 as_val=`expr "$@" || test $? -eq 1` 367 } 368fi # as_fn_arith 369 370 371# as_fn_error STATUS ERROR [LINENO LOG_FD] 372# ---------------------------------------- 373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 375# script with STATUS, using 1 if that was 0. 376as_fn_error () 377{ 378 as_status=$1; test $as_status -eq 0 && as_status=1 379 if test "$4"; then 380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 382 fi 383 $as_echo "$as_me: error: $2" >&2 384 as_fn_exit $as_status 385} # as_fn_error 386 387if expr a : '\(a\)' >/dev/null 2>&1 && 388 test "X`expr 00001 : '.*\(...\)'`" = X001; then 389 as_expr=expr 390else 391 as_expr=false 392fi 393 394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 395 as_basename=basename 396else 397 as_basename=false 398fi 399 400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 401 as_dirname=dirname 402else 403 as_dirname=false 404fi 405 406as_me=`$as_basename -- "$0" || 407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 408 X"$0" : 'X\(//\)$' \| \ 409 X"$0" : 'X\(/\)' \| . 2>/dev/null || 410$as_echo X/"$0" | 411 sed '/^.*\/\([^/][^/]*\)\/*$/{ 412 s//\1/ 413 q 414 } 415 /^X\/\(\/\/\)$/{ 416 s//\1/ 417 q 418 } 419 /^X\/\(\/\).*/{ 420 s//\1/ 421 q 422 } 423 s/.*/./; q'` 424 425# Avoid depending upon Character Ranges. 426as_cr_letters='abcdefghijklmnopqrstuvwxyz' 427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 428as_cr_Letters=$as_cr_letters$as_cr_LETTERS 429as_cr_digits='0123456789' 430as_cr_alnum=$as_cr_Letters$as_cr_digits 431 432 433 as_lineno_1=$LINENO as_lineno_1a=$LINENO 434 as_lineno_2=$LINENO as_lineno_2a=$LINENO 435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 455 456 # Don't try to exec as it changes $[0], causing all sort of problems 457 # (the dirname of $[0] is not the place where we might find the 458 # original and so on. Autoconf is especially sensitive to this). 459 . "./$as_me.lineno" 460 # Exit status is that of the last command. 461 exit 462} 463 464ECHO_C= ECHO_N= ECHO_T= 465case `echo -n x` in #((((( 466-n*) 467 case `echo 'xy\c'` in 468 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 469 xy) ECHO_C='\c';; 470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 471 ECHO_T=' ';; 472 esac;; 473*) 474 ECHO_N='-n';; 475esac 476 477rm -f conf$$ conf$$.exe conf$$.file 478if test -d conf$$.dir; then 479 rm -f conf$$.dir/conf$$.file 480else 481 rm -f conf$$.dir 482 mkdir conf$$.dir 2>/dev/null 483fi 484if (echo >conf$$.file) 2>/dev/null; then 485 if ln -s conf$$.file conf$$ 2>/dev/null; then 486 as_ln_s='ln -s' 487 # ... but there are two gotchas: 488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 490 # In both cases, we have to default to `cp -p'. 491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 492 as_ln_s='cp -p' 493 elif ln conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s=ln 495 else 496 as_ln_s='cp -p' 497 fi 498else 499 as_ln_s='cp -p' 500fi 501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 502rmdir conf$$.dir 2>/dev/null 503 504if mkdir -p . 2>/dev/null; then 505 as_mkdir_p='mkdir -p "$as_dir"' 506else 507 test -d ./-p && rmdir ./-p 508 as_mkdir_p=false 509fi 510 511if test -x / >/dev/null 2>&1; then 512 as_test_x='test -x' 513else 514 if ls -dL / >/dev/null 2>&1; then 515 as_ls_L_option=L 516 else 517 as_ls_L_option= 518 fi 519 as_test_x=' 520 eval sh -c '\'' 521 if test -d "$1"; then 522 test -d "$1/."; 523 else 524 case $1 in #( 525 -*)set "./$1";; 526 esac; 527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 528 ???[sx]*):;;*)false;;esac;fi 529 '\'' sh 530 ' 531fi 532as_executable_p=$as_test_x 533 534# Sed expression to map a string onto a valid CPP name. 535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 536 537# Sed expression to map a string onto a valid variable name. 538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 539 540 541test -n "$DJDIR" || exec 7<&0 </dev/null 542exec 6>&1 543 544# Name of the host. 545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 546# so uname gets run too. 547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 548 549# 550# Initializations. 551# 552ac_default_prefix=/usr/local 553ac_clean_files= 554ac_config_libobj_dir=. 555LIBOBJS= 556cross_compiling=no 557subdirs= 558MFLAGS= 559MAKEFLAGS= 560 561# Identity of this package. 562PACKAGE_NAME='imake' 563PACKAGE_TARNAME='imake' 564PACKAGE_VERSION='1.0.6' 565PACKAGE_STRING='imake 1.0.6' 566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567PACKAGE_URL='' 568 569ac_unique_file="Makefile.am" 570# Factoring default headers for most tests. 571ac_includes_default="\ 572#include <stdio.h> 573#ifdef HAVE_SYS_TYPES_H 574# include <sys/types.h> 575#endif 576#ifdef HAVE_SYS_STAT_H 577# include <sys/stat.h> 578#endif 579#ifdef STDC_HEADERS 580# include <stdlib.h> 581# include <stddef.h> 582#else 583# ifdef HAVE_STDLIB_H 584# include <stdlib.h> 585# endif 586#endif 587#ifdef HAVE_STRING_H 588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 589# include <memory.h> 590# endif 591# include <string.h> 592#endif 593#ifdef HAVE_STRINGS_H 594# include <strings.h> 595#endif 596#ifdef HAVE_INTTYPES_H 597# include <inttypes.h> 598#endif 599#ifdef HAVE_STDINT_H 600# include <stdint.h> 601#endif 602#ifdef HAVE_UNISTD_H 603# include <unistd.h> 604#endif" 605 606ac_subst_vars='am__EXEEXT_FALSE 607am__EXEEXT_TRUE 608LTLIBOBJS 609LIBOBJS 610XPROTO_LIBS 611XPROTO_CFLAGS 612BUILD_MKHTMLINDEX_FALSE 613BUILD_MKHTMLINDEX_TRUE 614BUILD_CLEANLINKS_FALSE 615BUILD_CLEANLINKS_TRUE 616BUILD_MKDIRHIER_FALSE 617BUILD_MKDIRHIER_TRUE 618BUILD_MERGELIB_FALSE 619BUILD_MERGELIB_TRUE 620BUILD_CCMAKEDEP_FALSE 621BUILD_CCMAKEDEP_TRUE 622BUILD_XMKMF_FALSE 623BUILD_XMKMF_TRUE 624BUILD_MAKEG_FALSE 625BUILD_MAKEG_TRUE 626BUILD_REVPATH_FALSE 627BUILD_REVPATH_TRUE 628RANLIB 629ARCMD 630PREPROCESSCMD_MKDEPEND 631XCONFDIR 632HAS_PERL_FALSE 633HAS_PERL_TRUE 634HAS_PERL 635CPP_PROGRAM 636RAWCPPFLAGS 637RAWCPP 638MAN_SUBSTS 639XORG_MAN_PAGE 640ADMIN_MAN_DIR 641DRIVER_MAN_DIR 642MISC_MAN_DIR 643FILE_MAN_DIR 644LIB_MAN_DIR 645APP_MAN_DIR 646ADMIN_MAN_SUFFIX 647DRIVER_MAN_SUFFIX 648MISC_MAN_SUFFIX 649FILE_MAN_SUFFIX 650LIB_MAN_SUFFIX 651APP_MAN_SUFFIX 652SED 653host_os 654host_vendor 655host_cpu 656host 657build_os 658build_vendor 659build_cpu 660build 661INSTALL_CMD 662PKG_CONFIG 663CHANGELOG_CMD 664STRICT_CFLAGS 665CWARNFLAGS 666BASE_CFLAGS 667EGREP 668GREP 669CPP 670am__fastdepCC_FALSE 671am__fastdepCC_TRUE 672CCDEPMODE 673am__nodep 674AMDEPBACKSLASH 675AMDEP_FALSE 676AMDEP_TRUE 677am__quote 678am__include 679DEPDIR 680OBJEXT 681EXEEXT 682ac_ct_CC 683CPPFLAGS 684LDFLAGS 685CFLAGS 686CC 687MAINT 688MAINTAINER_MODE_FALSE 689MAINTAINER_MODE_TRUE 690AM_BACKSLASH 691AM_DEFAULT_VERBOSITY 692AM_DEFAULT_V 693AM_V 694am__untar 695am__tar 696AMTAR 697am__leading_dot 698SET_MAKE 699AWK 700mkdir_p 701MKDIR_P 702INSTALL_STRIP_PROGRAM 703STRIP 704install_sh 705MAKEINFO 706AUTOHEADER 707AUTOMAKE 708AUTOCONF 709ACLOCAL 710VERSION 711PACKAGE 712CYGPATH_W 713am__isrc 714INSTALL_DATA 715INSTALL_SCRIPT 716INSTALL_PROGRAM 717target_alias 718host_alias 719build_alias 720LIBS 721ECHO_T 722ECHO_N 723ECHO_C 724DEFS 725mandir 726localedir 727libdir 728psdir 729pdfdir 730dvidir 731htmldir 732infodir 733docdir 734oldincludedir 735includedir 736localstatedir 737sharedstatedir 738sysconfdir 739datadir 740datarootdir 741libexecdir 742sbindir 743bindir 744program_transform_name 745prefix 746exec_prefix 747PACKAGE_URL 748PACKAGE_BUGREPORT 749PACKAGE_STRING 750PACKAGE_VERSION 751PACKAGE_TARNAME 752PACKAGE_NAME 753PATH_SEPARATOR 754SHELL' 755ac_subst_files='' 756ac_user_opts=' 757enable_option_checking 758enable_silent_rules 759enable_maintainer_mode 760enable_dependency_tracking 761enable_selective_werror 762enable_strict_compilation 763with_config_dir 764with_script_preproc_cmd 765with_create_lib_cmd 766with_clean_lib_cmd 767enable_revpath 768enable_makeg 769enable_xmkmf 770enable_ccmakedep 771enable_mergelib 772enable_mkdirhier 773enable_cleanlinks 774enable_mkhtmlindex 775' 776 ac_precious_vars='build_alias 777host_alias 778target_alias 779CC 780CFLAGS 781LDFLAGS 782LIBS 783CPPFLAGS 784CPP 785PKG_CONFIG 786XPROTO_CFLAGS 787XPROTO_LIBS' 788 789 790# Initialize some variables set by options. 791ac_init_help= 792ac_init_version=false 793ac_unrecognized_opts= 794ac_unrecognized_sep= 795# The variables have the same names as the options, with 796# dashes changed to underlines. 797cache_file=/dev/null 798exec_prefix=NONE 799no_create= 800no_recursion= 801prefix=NONE 802program_prefix=NONE 803program_suffix=NONE 804program_transform_name=s,x,x, 805silent= 806site= 807srcdir= 808verbose= 809x_includes=NONE 810x_libraries=NONE 811 812# Installation directory options. 813# These are left unexpanded so users can "make install exec_prefix=/foo" 814# and all the variables that are supposed to be based on exec_prefix 815# by default will actually change. 816# Use braces instead of parens because sh, perl, etc. also accept them. 817# (The list follows the same order as the GNU Coding Standards.) 818bindir='${exec_prefix}/bin' 819sbindir='${exec_prefix}/sbin' 820libexecdir='${exec_prefix}/libexec' 821datarootdir='${prefix}/share' 822datadir='${datarootdir}' 823sysconfdir='${prefix}/etc' 824sharedstatedir='${prefix}/com' 825localstatedir='${prefix}/var' 826includedir='${prefix}/include' 827oldincludedir='/usr/include' 828docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 829infodir='${datarootdir}/info' 830htmldir='${docdir}' 831dvidir='${docdir}' 832pdfdir='${docdir}' 833psdir='${docdir}' 834libdir='${exec_prefix}/lib' 835localedir='${datarootdir}/locale' 836mandir='${datarootdir}/man' 837 838ac_prev= 839ac_dashdash= 840for ac_option 841do 842 # If the previous option needs an argument, assign it. 843 if test -n "$ac_prev"; then 844 eval $ac_prev=\$ac_option 845 ac_prev= 846 continue 847 fi 848 849 case $ac_option in 850 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 851 *=) ac_optarg= ;; 852 *) ac_optarg=yes ;; 853 esac 854 855 # Accept the important Cygnus configure options, so we can diagnose typos. 856 857 case $ac_dashdash$ac_option in 858 --) 859 ac_dashdash=yes ;; 860 861 -bindir | --bindir | --bindi | --bind | --bin | --bi) 862 ac_prev=bindir ;; 863 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 864 bindir=$ac_optarg ;; 865 866 -build | --build | --buil | --bui | --bu) 867 ac_prev=build_alias ;; 868 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 869 build_alias=$ac_optarg ;; 870 871 -cache-file | --cache-file | --cache-fil | --cache-fi \ 872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 873 ac_prev=cache_file ;; 874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 876 cache_file=$ac_optarg ;; 877 878 --config-cache | -C) 879 cache_file=config.cache ;; 880 881 -datadir | --datadir | --datadi | --datad) 882 ac_prev=datadir ;; 883 -datadir=* | --datadir=* | --datadi=* | --datad=*) 884 datadir=$ac_optarg ;; 885 886 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 887 | --dataroo | --dataro | --datar) 888 ac_prev=datarootdir ;; 889 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 890 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 891 datarootdir=$ac_optarg ;; 892 893 -disable-* | --disable-*) 894 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 895 # Reject names that are not valid shell variable names. 896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 897 as_fn_error $? "invalid feature name: $ac_useropt" 898 ac_useropt_orig=$ac_useropt 899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 900 case $ac_user_opts in 901 *" 902"enable_$ac_useropt" 903"*) ;; 904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 905 ac_unrecognized_sep=', ';; 906 esac 907 eval enable_$ac_useropt=no ;; 908 909 -docdir | --docdir | --docdi | --doc | --do) 910 ac_prev=docdir ;; 911 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 912 docdir=$ac_optarg ;; 913 914 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 915 ac_prev=dvidir ;; 916 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 917 dvidir=$ac_optarg ;; 918 919 -enable-* | --enable-*) 920 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 921 # Reject names that are not valid shell variable names. 922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 923 as_fn_error $? "invalid feature name: $ac_useropt" 924 ac_useropt_orig=$ac_useropt 925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 926 case $ac_user_opts in 927 *" 928"enable_$ac_useropt" 929"*) ;; 930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 931 ac_unrecognized_sep=', ';; 932 esac 933 eval enable_$ac_useropt=\$ac_optarg ;; 934 935 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 936 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 937 | --exec | --exe | --ex) 938 ac_prev=exec_prefix ;; 939 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 940 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 941 | --exec=* | --exe=* | --ex=*) 942 exec_prefix=$ac_optarg ;; 943 944 -gas | --gas | --ga | --g) 945 # Obsolete; use --with-gas. 946 with_gas=yes ;; 947 948 -help | --help | --hel | --he | -h) 949 ac_init_help=long ;; 950 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 951 ac_init_help=recursive ;; 952 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 953 ac_init_help=short ;; 954 955 -host | --host | --hos | --ho) 956 ac_prev=host_alias ;; 957 -host=* | --host=* | --hos=* | --ho=*) 958 host_alias=$ac_optarg ;; 959 960 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 961 ac_prev=htmldir ;; 962 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 963 | --ht=*) 964 htmldir=$ac_optarg ;; 965 966 -includedir | --includedir | --includedi | --included | --include \ 967 | --includ | --inclu | --incl | --inc) 968 ac_prev=includedir ;; 969 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 970 | --includ=* | --inclu=* | --incl=* | --inc=*) 971 includedir=$ac_optarg ;; 972 973 -infodir | --infodir | --infodi | --infod | --info | --inf) 974 ac_prev=infodir ;; 975 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 976 infodir=$ac_optarg ;; 977 978 -libdir | --libdir | --libdi | --libd) 979 ac_prev=libdir ;; 980 -libdir=* | --libdir=* | --libdi=* | --libd=*) 981 libdir=$ac_optarg ;; 982 983 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 984 | --libexe | --libex | --libe) 985 ac_prev=libexecdir ;; 986 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 987 | --libexe=* | --libex=* | --libe=*) 988 libexecdir=$ac_optarg ;; 989 990 -localedir | --localedir | --localedi | --localed | --locale) 991 ac_prev=localedir ;; 992 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 993 localedir=$ac_optarg ;; 994 995 -localstatedir | --localstatedir | --localstatedi | --localstated \ 996 | --localstate | --localstat | --localsta | --localst | --locals) 997 ac_prev=localstatedir ;; 998 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 999 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1000 localstatedir=$ac_optarg ;; 1001 1002 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1003 ac_prev=mandir ;; 1004 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1005 mandir=$ac_optarg ;; 1006 1007 -nfp | --nfp | --nf) 1008 # Obsolete; use --without-fp. 1009 with_fp=no ;; 1010 1011 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1012 | --no-cr | --no-c | -n) 1013 no_create=yes ;; 1014 1015 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1016 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1017 no_recursion=yes ;; 1018 1019 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1020 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1021 | --oldin | --oldi | --old | --ol | --o) 1022 ac_prev=oldincludedir ;; 1023 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1024 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1025 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1026 oldincludedir=$ac_optarg ;; 1027 1028 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1029 ac_prev=prefix ;; 1030 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1031 prefix=$ac_optarg ;; 1032 1033 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1034 | --program-pre | --program-pr | --program-p) 1035 ac_prev=program_prefix ;; 1036 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1037 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1038 program_prefix=$ac_optarg ;; 1039 1040 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1041 | --program-suf | --program-su | --program-s) 1042 ac_prev=program_suffix ;; 1043 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1044 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1045 program_suffix=$ac_optarg ;; 1046 1047 -program-transform-name | --program-transform-name \ 1048 | --program-transform-nam | --program-transform-na \ 1049 | --program-transform-n | --program-transform- \ 1050 | --program-transform | --program-transfor \ 1051 | --program-transfo | --program-transf \ 1052 | --program-trans | --program-tran \ 1053 | --progr-tra | --program-tr | --program-t) 1054 ac_prev=program_transform_name ;; 1055 -program-transform-name=* | --program-transform-name=* \ 1056 | --program-transform-nam=* | --program-transform-na=* \ 1057 | --program-transform-n=* | --program-transform-=* \ 1058 | --program-transform=* | --program-transfor=* \ 1059 | --program-transfo=* | --program-transf=* \ 1060 | --program-trans=* | --program-tran=* \ 1061 | --progr-tra=* | --program-tr=* | --program-t=*) 1062 program_transform_name=$ac_optarg ;; 1063 1064 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1065 ac_prev=pdfdir ;; 1066 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1067 pdfdir=$ac_optarg ;; 1068 1069 -psdir | --psdir | --psdi | --psd | --ps) 1070 ac_prev=psdir ;; 1071 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1072 psdir=$ac_optarg ;; 1073 1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1075 | -silent | --silent | --silen | --sile | --sil) 1076 silent=yes ;; 1077 1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1079 ac_prev=sbindir ;; 1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1081 | --sbi=* | --sb=*) 1082 sbindir=$ac_optarg ;; 1083 1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1086 | --sharedst | --shareds | --shared | --share | --shar \ 1087 | --sha | --sh) 1088 ac_prev=sharedstatedir ;; 1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1092 | --sha=* | --sh=*) 1093 sharedstatedir=$ac_optarg ;; 1094 1095 -site | --site | --sit) 1096 ac_prev=site ;; 1097 -site=* | --site=* | --sit=*) 1098 site=$ac_optarg ;; 1099 1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1101 ac_prev=srcdir ;; 1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1103 srcdir=$ac_optarg ;; 1104 1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1106 | --syscon | --sysco | --sysc | --sys | --sy) 1107 ac_prev=sysconfdir ;; 1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1110 sysconfdir=$ac_optarg ;; 1111 1112 -target | --target | --targe | --targ | --tar | --ta | --t) 1113 ac_prev=target_alias ;; 1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1115 target_alias=$ac_optarg ;; 1116 1117 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1118 verbose=yes ;; 1119 1120 -version | --version | --versio | --versi | --vers | -V) 1121 ac_init_version=: ;; 1122 1123 -with-* | --with-*) 1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1125 # Reject names that are not valid shell variable names. 1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1127 as_fn_error $? "invalid package name: $ac_useropt" 1128 ac_useropt_orig=$ac_useropt 1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1130 case $ac_user_opts in 1131 *" 1132"with_$ac_useropt" 1133"*) ;; 1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1135 ac_unrecognized_sep=', ';; 1136 esac 1137 eval with_$ac_useropt=\$ac_optarg ;; 1138 1139 -without-* | --without-*) 1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1141 # Reject names that are not valid shell variable names. 1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1143 as_fn_error $? "invalid package name: $ac_useropt" 1144 ac_useropt_orig=$ac_useropt 1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1146 case $ac_user_opts in 1147 *" 1148"with_$ac_useropt" 1149"*) ;; 1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1151 ac_unrecognized_sep=', ';; 1152 esac 1153 eval with_$ac_useropt=no ;; 1154 1155 --x) 1156 # Obsolete; use --with-x. 1157 with_x=yes ;; 1158 1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1160 | --x-incl | --x-inc | --x-in | --x-i) 1161 ac_prev=x_includes ;; 1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1164 x_includes=$ac_optarg ;; 1165 1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1168 ac_prev=x_libraries ;; 1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1171 x_libraries=$ac_optarg ;; 1172 1173 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1174Try \`$0 --help' for more information" 1175 ;; 1176 1177 *=*) 1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1179 # Reject names that are not valid shell variable names. 1180 case $ac_envvar in #( 1181 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1182 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1183 esac 1184 eval $ac_envvar=\$ac_optarg 1185 export $ac_envvar ;; 1186 1187 *) 1188 # FIXME: should be removed in autoconf 3.0. 1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1192 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1193 ;; 1194 1195 esac 1196done 1197 1198if test -n "$ac_prev"; then 1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1200 as_fn_error $? "missing argument to $ac_option" 1201fi 1202 1203if test -n "$ac_unrecognized_opts"; then 1204 case $enable_option_checking in 1205 no) ;; 1206 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1208 esac 1209fi 1210 1211# Check all directory arguments for consistency. 1212for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1213 datadir sysconfdir sharedstatedir localstatedir includedir \ 1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1215 libdir localedir mandir 1216do 1217 eval ac_val=\$$ac_var 1218 # Remove trailing slashes. 1219 case $ac_val in 1220 */ ) 1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1222 eval $ac_var=\$ac_val;; 1223 esac 1224 # Be sure to have absolute directory names. 1225 case $ac_val in 1226 [\\/$]* | ?:[\\/]* ) continue;; 1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1228 esac 1229 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1230done 1231 1232# There might be people who depend on the old broken behavior: `$host' 1233# used to hold the argument of --host etc. 1234# FIXME: To remove some day. 1235build=$build_alias 1236host=$host_alias 1237target=$target_alias 1238 1239# FIXME: To remove some day. 1240if test "x$host_alias" != x; then 1241 if test "x$build_alias" = x; then 1242 cross_compiling=maybe 1243 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1244 If a cross compiler is detected then cross compile mode will be used" >&2 1245 elif test "x$build_alias" != "x$host_alias"; then 1246 cross_compiling=yes 1247 fi 1248fi 1249 1250ac_tool_prefix= 1251test -n "$host_alias" && ac_tool_prefix=$host_alias- 1252 1253test "$silent" = yes && exec 6>/dev/null 1254 1255 1256ac_pwd=`pwd` && test -n "$ac_pwd" && 1257ac_ls_di=`ls -di .` && 1258ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1259 as_fn_error $? "working directory cannot be determined" 1260test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1261 as_fn_error $? "pwd does not report name of working directory" 1262 1263 1264# Find the source files, if location was not specified. 1265if test -z "$srcdir"; then 1266 ac_srcdir_defaulted=yes 1267 # Try the directory containing this script, then the parent directory. 1268 ac_confdir=`$as_dirname -- "$as_myself" || 1269$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1270 X"$as_myself" : 'X\(//\)[^/]' \| \ 1271 X"$as_myself" : 'X\(//\)$' \| \ 1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1273$as_echo X"$as_myself" | 1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1275 s//\1/ 1276 q 1277 } 1278 /^X\(\/\/\)[^/].*/{ 1279 s//\1/ 1280 q 1281 } 1282 /^X\(\/\/\)$/{ 1283 s//\1/ 1284 q 1285 } 1286 /^X\(\/\).*/{ 1287 s//\1/ 1288 q 1289 } 1290 s/.*/./; q'` 1291 srcdir=$ac_confdir 1292 if test ! -r "$srcdir/$ac_unique_file"; then 1293 srcdir=.. 1294 fi 1295else 1296 ac_srcdir_defaulted=no 1297fi 1298if test ! -r "$srcdir/$ac_unique_file"; then 1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1300 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1301fi 1302ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1303ac_abs_confdir=`( 1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1305 pwd)` 1306# When building in place, set srcdir=. 1307if test "$ac_abs_confdir" = "$ac_pwd"; then 1308 srcdir=. 1309fi 1310# Remove unnecessary trailing slashes from srcdir. 1311# Double slashes in file names in object file debugging info 1312# mess up M-x gdb in Emacs. 1313case $srcdir in 1314*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1315esac 1316for ac_var in $ac_precious_vars; do 1317 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1318 eval ac_env_${ac_var}_value=\$${ac_var} 1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1320 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1321done 1322 1323# 1324# Report the --help message. 1325# 1326if test "$ac_init_help" = "long"; then 1327 # Omit some internal or obsolete options to make the list less imposing. 1328 # This message is too long to be a string in the A/UX 3.1 sh. 1329 cat <<_ACEOF 1330\`configure' configures imake 1.0.6 to adapt to many kinds of systems. 1331 1332Usage: $0 [OPTION]... [VAR=VALUE]... 1333 1334To assign environment variables (e.g., CC, CFLAGS...), specify them as 1335VAR=VALUE. See below for descriptions of some of the useful variables. 1336 1337Defaults for the options are specified in brackets. 1338 1339Configuration: 1340 -h, --help display this help and exit 1341 --help=short display options specific to this package 1342 --help=recursive display the short help of all the included packages 1343 -V, --version display version information and exit 1344 -q, --quiet, --silent do not print \`checking ...' messages 1345 --cache-file=FILE cache test results in FILE [disabled] 1346 -C, --config-cache alias for \`--cache-file=config.cache' 1347 -n, --no-create do not create output files 1348 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1349 1350Installation directories: 1351 --prefix=PREFIX install architecture-independent files in PREFIX 1352 [$ac_default_prefix] 1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1354 [PREFIX] 1355 1356By default, \`make install' will install all the files in 1357\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1358an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1359for instance \`--prefix=\$HOME'. 1360 1361For better control, use the options below. 1362 1363Fine tuning of the installation directories: 1364 --bindir=DIR user executables [EPREFIX/bin] 1365 --sbindir=DIR system admin executables [EPREFIX/sbin] 1366 --libexecdir=DIR program executables [EPREFIX/libexec] 1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1370 --libdir=DIR object code libraries [EPREFIX/lib] 1371 --includedir=DIR C header files [PREFIX/include] 1372 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1375 --infodir=DIR info documentation [DATAROOTDIR/info] 1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1377 --mandir=DIR man documentation [DATAROOTDIR/man] 1378 --docdir=DIR documentation root [DATAROOTDIR/doc/imake] 1379 --htmldir=DIR html documentation [DOCDIR] 1380 --dvidir=DIR dvi documentation [DOCDIR] 1381 --pdfdir=DIR pdf documentation [DOCDIR] 1382 --psdir=DIR ps documentation [DOCDIR] 1383_ACEOF 1384 1385 cat <<\_ACEOF 1386 1387Program names: 1388 --program-prefix=PREFIX prepend PREFIX to installed program names 1389 --program-suffix=SUFFIX append SUFFIX to installed program names 1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1391 1392System types: 1393 --build=BUILD configure for building on BUILD [guessed] 1394 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1395_ACEOF 1396fi 1397 1398if test -n "$ac_init_help"; then 1399 case $ac_init_help in 1400 short | recursive ) echo "Configuration of imake 1.0.6:";; 1401 esac 1402 cat <<\_ACEOF 1403 1404Optional Features: 1405 --disable-option-checking ignore unrecognized --enable/--with options 1406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1408 --enable-silent-rules less verbose build output (undo: "make V=1") 1409 --disable-silent-rules verbose build output (undo: "make V=0") 1410 --enable-maintainer-mode 1411 enable make rules and dependencies not useful (and 1412 sometimes confusing) to the casual installer 1413 --enable-dependency-tracking 1414 do not reject slow dependency extractors 1415 --disable-dependency-tracking 1416 speeds up one-time build 1417 --disable-selective-werror 1418 Turn off selective compiler errors. (default: 1419 enabled) 1420 --enable-strict-compilation 1421 Enable all warnings from compiler and make them 1422 errors (default: disabled) 1423 --disable-revpath Build revpath (default: enabled) 1424 --disable-makeg Build makeg (default: enabled) 1425 --disable-xmkmf Build xmkmf (default: enabled) 1426 --disable-ccmakedep Build ccmakedep (default: enabled) 1427 --disable-mergelib Build mergelib (default: enabled) 1428 --disable-mkdirhier Build mkdirhier (default: enabled) 1429 --disable-cleanlinks Build cleanlinks (default: enabled) 1430 --disable-mkhtmlindex Build mkhtmlindex (default: enabled) 1431 1432Optional Packages: 1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1435 --with-config-dir=<path> 1436 Path to config dir (default: ${libdir}/X11/config) 1437 --with-script-preproc-cmd=CMD 1438 Preprocessor command to run on scripts (default: 1439 "gcc -E") 1440 --with-create-lib-cmd=CMD 1441 Command to create libraries (default: "ar clq") 1442 --with-clean-lib-cmd=CMD 1443 Command to clean up libraries (default: "ranlib") 1444 1445Some influential environment variables: 1446 CC C compiler command 1447 CFLAGS C compiler flags 1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1449 nonstandard directory <lib dir> 1450 LIBS libraries to pass to the linker, e.g. -l<library> 1451 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1452 you have headers in a nonstandard directory <include dir> 1453 CPP C preprocessor 1454 PKG_CONFIG path to pkg-config utility 1455 XPROTO_CFLAGS 1456 C compiler flags for XPROTO, overriding pkg-config 1457 XPROTO_LIBS linker flags for XPROTO, overriding pkg-config 1458 1459Use these variables to override the choices made by `configure' or to help 1460it to find libraries and programs with nonstandard names/locations. 1461 1462Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1463_ACEOF 1464ac_status=$? 1465fi 1466 1467if test "$ac_init_help" = "recursive"; then 1468 # If there are subdirs, report their specific --help. 1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1470 test -d "$ac_dir" || 1471 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1472 continue 1473 ac_builddir=. 1474 1475case "$ac_dir" in 1476.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1477*) 1478 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1479 # A ".." for each directory in $ac_dir_suffix. 1480 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1481 case $ac_top_builddir_sub in 1482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1484 esac ;; 1485esac 1486ac_abs_top_builddir=$ac_pwd 1487ac_abs_builddir=$ac_pwd$ac_dir_suffix 1488# for backward compatibility: 1489ac_top_builddir=$ac_top_build_prefix 1490 1491case $srcdir in 1492 .) # We are building in place. 1493 ac_srcdir=. 1494 ac_top_srcdir=$ac_top_builddir_sub 1495 ac_abs_top_srcdir=$ac_pwd ;; 1496 [\\/]* | ?:[\\/]* ) # Absolute name. 1497 ac_srcdir=$srcdir$ac_dir_suffix; 1498 ac_top_srcdir=$srcdir 1499 ac_abs_top_srcdir=$srcdir ;; 1500 *) # Relative name. 1501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1502 ac_top_srcdir=$ac_top_build_prefix$srcdir 1503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1504esac 1505ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1506 1507 cd "$ac_dir" || { ac_status=$?; continue; } 1508 # Check for guested configure. 1509 if test -f "$ac_srcdir/configure.gnu"; then 1510 echo && 1511 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1512 elif test -f "$ac_srcdir/configure"; then 1513 echo && 1514 $SHELL "$ac_srcdir/configure" --help=recursive 1515 else 1516 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1517 fi || ac_status=$? 1518 cd "$ac_pwd" || { ac_status=$?; break; } 1519 done 1520fi 1521 1522test -n "$ac_init_help" && exit $ac_status 1523if $ac_init_version; then 1524 cat <<\_ACEOF 1525imake configure 1.0.6 1526generated by GNU Autoconf 2.68 1527 1528Copyright (C) 2010 Free Software Foundation, Inc. 1529This configure script is free software; the Free Software Foundation 1530gives unlimited permission to copy, distribute and modify it. 1531_ACEOF 1532 exit 1533fi 1534 1535## ------------------------ ## 1536## Autoconf initialization. ## 1537## ------------------------ ## 1538 1539# ac_fn_c_try_compile LINENO 1540# -------------------------- 1541# Try to compile conftest.$ac_ext, and return whether this succeeded. 1542ac_fn_c_try_compile () 1543{ 1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1545 rm -f conftest.$ac_objext 1546 if { { ac_try="$ac_compile" 1547case "(($ac_try" in 1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1549 *) ac_try_echo=$ac_try;; 1550esac 1551eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1552$as_echo "$ac_try_echo"; } >&5 1553 (eval "$ac_compile") 2>conftest.err 1554 ac_status=$? 1555 if test -s conftest.err; then 1556 grep -v '^ *+' conftest.err >conftest.er1 1557 cat conftest.er1 >&5 1558 mv -f conftest.er1 conftest.err 1559 fi 1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1561 test $ac_status = 0; } && { 1562 test -z "$ac_c_werror_flag" || 1563 test ! -s conftest.err 1564 } && test -s conftest.$ac_objext; then : 1565 ac_retval=0 1566else 1567 $as_echo "$as_me: failed program was:" >&5 1568sed 's/^/| /' conftest.$ac_ext >&5 1569 1570 ac_retval=1 1571fi 1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1573 as_fn_set_status $ac_retval 1574 1575} # ac_fn_c_try_compile 1576 1577# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1578# --------------------------------------------- 1579# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1580# accordingly. 1581ac_fn_c_check_decl () 1582{ 1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1584 as_decl_name=`echo $2|sed 's/ *(.*//'` 1585 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1587$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1588if eval \${$3+:} false; then : 1589 $as_echo_n "(cached) " >&6 1590else 1591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1592/* end confdefs.h. */ 1593$4 1594int 1595main () 1596{ 1597#ifndef $as_decl_name 1598#ifdef __cplusplus 1599 (void) $as_decl_use; 1600#else 1601 (void) $as_decl_name; 1602#endif 1603#endif 1604 1605 ; 1606 return 0; 1607} 1608_ACEOF 1609if ac_fn_c_try_compile "$LINENO"; then : 1610 eval "$3=yes" 1611else 1612 eval "$3=no" 1613fi 1614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1615fi 1616eval ac_res=\$$3 1617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1618$as_echo "$ac_res" >&6; } 1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1620 1621} # ac_fn_c_check_decl 1622 1623# ac_fn_c_try_cpp LINENO 1624# ---------------------- 1625# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1626ac_fn_c_try_cpp () 1627{ 1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1629 if { { ac_try="$ac_cpp conftest.$ac_ext" 1630case "(($ac_try" in 1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1632 *) ac_try_echo=$ac_try;; 1633esac 1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1635$as_echo "$ac_try_echo"; } >&5 1636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1637 ac_status=$? 1638 if test -s conftest.err; then 1639 grep -v '^ *+' conftest.err >conftest.er1 1640 cat conftest.er1 >&5 1641 mv -f conftest.er1 conftest.err 1642 fi 1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1644 test $ac_status = 0; } > conftest.i && { 1645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1646 test ! -s conftest.err 1647 }; then : 1648 ac_retval=0 1649else 1650 $as_echo "$as_me: failed program was:" >&5 1651sed 's/^/| /' conftest.$ac_ext >&5 1652 1653 ac_retval=1 1654fi 1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1656 as_fn_set_status $ac_retval 1657 1658} # ac_fn_c_try_cpp 1659 1660# ac_fn_c_try_run LINENO 1661# ---------------------- 1662# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1663# that executables *can* be run. 1664ac_fn_c_try_run () 1665{ 1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1667 if { { ac_try="$ac_link" 1668case "(($ac_try" in 1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1670 *) ac_try_echo=$ac_try;; 1671esac 1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1673$as_echo "$ac_try_echo"; } >&5 1674 (eval "$ac_link") 2>&5 1675 ac_status=$? 1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1677 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1678 { { case "(($ac_try" in 1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1680 *) ac_try_echo=$ac_try;; 1681esac 1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1683$as_echo "$ac_try_echo"; } >&5 1684 (eval "$ac_try") 2>&5 1685 ac_status=$? 1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1687 test $ac_status = 0; }; }; then : 1688 ac_retval=0 1689else 1690 $as_echo "$as_me: program exited with status $ac_status" >&5 1691 $as_echo "$as_me: failed program was:" >&5 1692sed 's/^/| /' conftest.$ac_ext >&5 1693 1694 ac_retval=$ac_status 1695fi 1696 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1698 as_fn_set_status $ac_retval 1699 1700} # ac_fn_c_try_run 1701 1702# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1703# ------------------------------------------------------- 1704# Tests whether HEADER exists and can be compiled using the include files in 1705# INCLUDES, setting the cache variable VAR accordingly. 1706ac_fn_c_check_header_compile () 1707{ 1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1710$as_echo_n "checking for $2... " >&6; } 1711if eval \${$3+:} false; then : 1712 $as_echo_n "(cached) " >&6 1713else 1714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1715/* end confdefs.h. */ 1716$4 1717#include <$2> 1718_ACEOF 1719if ac_fn_c_try_compile "$LINENO"; then : 1720 eval "$3=yes" 1721else 1722 eval "$3=no" 1723fi 1724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1725fi 1726eval ac_res=\$$3 1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1728$as_echo "$ac_res" >&6; } 1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1730 1731} # ac_fn_c_check_header_compile 1732 1733# ac_fn_c_try_link LINENO 1734# ----------------------- 1735# Try to link conftest.$ac_ext, and return whether this succeeded. 1736ac_fn_c_try_link () 1737{ 1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1739 rm -f conftest.$ac_objext conftest$ac_exeext 1740 if { { ac_try="$ac_link" 1741case "(($ac_try" in 1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1743 *) ac_try_echo=$ac_try;; 1744esac 1745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1746$as_echo "$ac_try_echo"; } >&5 1747 (eval "$ac_link") 2>conftest.err 1748 ac_status=$? 1749 if test -s conftest.err; then 1750 grep -v '^ *+' conftest.err >conftest.er1 1751 cat conftest.er1 >&5 1752 mv -f conftest.er1 conftest.err 1753 fi 1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1755 test $ac_status = 0; } && { 1756 test -z "$ac_c_werror_flag" || 1757 test ! -s conftest.err 1758 } && test -s conftest$ac_exeext && { 1759 test "$cross_compiling" = yes || 1760 $as_test_x conftest$ac_exeext 1761 }; then : 1762 ac_retval=0 1763else 1764 $as_echo "$as_me: failed program was:" >&5 1765sed 's/^/| /' conftest.$ac_ext >&5 1766 1767 ac_retval=1 1768fi 1769 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1770 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1771 # interfere with the next link command; also delete a directory that is 1772 # left behind by Apple's compiler. We do this before executing the actions. 1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1775 as_fn_set_status $ac_retval 1776 1777} # ac_fn_c_try_link 1778 1779# ac_fn_c_check_func LINENO FUNC VAR 1780# ---------------------------------- 1781# Tests whether FUNC exists, setting the cache variable VAR accordingly 1782ac_fn_c_check_func () 1783{ 1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1786$as_echo_n "checking for $2... " >&6; } 1787if eval \${$3+:} false; then : 1788 $as_echo_n "(cached) " >&6 1789else 1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1791/* end confdefs.h. */ 1792/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1793 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1794#define $2 innocuous_$2 1795 1796/* System header to define __stub macros and hopefully few prototypes, 1797 which can conflict with char $2 (); below. 1798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1799 <limits.h> exists even on freestanding compilers. */ 1800 1801#ifdef __STDC__ 1802# include <limits.h> 1803#else 1804# include <assert.h> 1805#endif 1806 1807#undef $2 1808 1809/* Override any GCC internal prototype to avoid an error. 1810 Use char because int might match the return type of a GCC 1811 builtin and then its argument prototype would still apply. */ 1812#ifdef __cplusplus 1813extern "C" 1814#endif 1815char $2 (); 1816/* The GNU C library defines this for functions which it implements 1817 to always fail with ENOSYS. Some functions are actually named 1818 something starting with __ and the normal name is an alias. */ 1819#if defined __stub_$2 || defined __stub___$2 1820choke me 1821#endif 1822 1823int 1824main () 1825{ 1826return $2 (); 1827 ; 1828 return 0; 1829} 1830_ACEOF 1831if ac_fn_c_try_link "$LINENO"; then : 1832 eval "$3=yes" 1833else 1834 eval "$3=no" 1835fi 1836rm -f core conftest.err conftest.$ac_objext \ 1837 conftest$ac_exeext conftest.$ac_ext 1838fi 1839eval ac_res=\$$3 1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1841$as_echo "$ac_res" >&6; } 1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1843 1844} # ac_fn_c_check_func 1845cat >config.log <<_ACEOF 1846This file contains any messages produced by compilers while 1847running configure, to aid debugging if configure makes a mistake. 1848 1849It was created by imake $as_me 1.0.6, which was 1850generated by GNU Autoconf 2.68. Invocation command line was 1851 1852 $ $0 $@ 1853 1854_ACEOF 1855exec 5>>config.log 1856{ 1857cat <<_ASUNAME 1858## --------- ## 1859## Platform. ## 1860## --------- ## 1861 1862hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1863uname -m = `(uname -m) 2>/dev/null || echo unknown` 1864uname -r = `(uname -r) 2>/dev/null || echo unknown` 1865uname -s = `(uname -s) 2>/dev/null || echo unknown` 1866uname -v = `(uname -v) 2>/dev/null || echo unknown` 1867 1868/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1869/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1870 1871/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1872/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1873/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1874/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1875/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1876/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1877/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1878 1879_ASUNAME 1880 1881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1882for as_dir in $PATH 1883do 1884 IFS=$as_save_IFS 1885 test -z "$as_dir" && as_dir=. 1886 $as_echo "PATH: $as_dir" 1887 done 1888IFS=$as_save_IFS 1889 1890} >&5 1891 1892cat >&5 <<_ACEOF 1893 1894 1895## ----------- ## 1896## Core tests. ## 1897## ----------- ## 1898 1899_ACEOF 1900 1901 1902# Keep a trace of the command line. 1903# Strip out --no-create and --no-recursion so they do not pile up. 1904# Strip out --silent because we don't want to record it for future runs. 1905# Also quote any args containing shell meta-characters. 1906# Make two passes to allow for proper duplicate-argument suppression. 1907ac_configure_args= 1908ac_configure_args0= 1909ac_configure_args1= 1910ac_must_keep_next=false 1911for ac_pass in 1 2 1912do 1913 for ac_arg 1914 do 1915 case $ac_arg in 1916 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1917 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1918 | -silent | --silent | --silen | --sile | --sil) 1919 continue ;; 1920 *\'*) 1921 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1922 esac 1923 case $ac_pass in 1924 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1925 2) 1926 as_fn_append ac_configure_args1 " '$ac_arg'" 1927 if test $ac_must_keep_next = true; then 1928 ac_must_keep_next=false # Got value, back to normal. 1929 else 1930 case $ac_arg in 1931 *=* | --config-cache | -C | -disable-* | --disable-* \ 1932 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1933 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1934 | -with-* | --with-* | -without-* | --without-* | --x) 1935 case "$ac_configure_args0 " in 1936 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1937 esac 1938 ;; 1939 -* ) ac_must_keep_next=true ;; 1940 esac 1941 fi 1942 as_fn_append ac_configure_args " '$ac_arg'" 1943 ;; 1944 esac 1945 done 1946done 1947{ ac_configure_args0=; unset ac_configure_args0;} 1948{ ac_configure_args1=; unset ac_configure_args1;} 1949 1950# When interrupted or exit'd, cleanup temporary files, and complete 1951# config.log. We remove comments because anyway the quotes in there 1952# would cause problems or look ugly. 1953# WARNING: Use '\'' to represent an apostrophe within the trap. 1954# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1955trap 'exit_status=$? 1956 # Save into config.log some information that might help in debugging. 1957 { 1958 echo 1959 1960 $as_echo "## ---------------- ## 1961## Cache variables. ## 1962## ---------------- ##" 1963 echo 1964 # The following way of writing the cache mishandles newlines in values, 1965( 1966 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1967 eval ac_val=\$$ac_var 1968 case $ac_val in #( 1969 *${as_nl}*) 1970 case $ac_var in #( 1971 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1972$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1973 esac 1974 case $ac_var in #( 1975 _ | IFS | as_nl) ;; #( 1976 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1977 *) { eval $ac_var=; unset $ac_var;} ;; 1978 esac ;; 1979 esac 1980 done 1981 (set) 2>&1 | 1982 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1983 *${as_nl}ac_space=\ *) 1984 sed -n \ 1985 "s/'\''/'\''\\\\'\'''\''/g; 1986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1987 ;; #( 1988 *) 1989 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1990 ;; 1991 esac | 1992 sort 1993) 1994 echo 1995 1996 $as_echo "## ----------------- ## 1997## Output variables. ## 1998## ----------------- ##" 1999 echo 2000 for ac_var in $ac_subst_vars 2001 do 2002 eval ac_val=\$$ac_var 2003 case $ac_val in 2004 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2005 esac 2006 $as_echo "$ac_var='\''$ac_val'\''" 2007 done | sort 2008 echo 2009 2010 if test -n "$ac_subst_files"; then 2011 $as_echo "## ------------------- ## 2012## File substitutions. ## 2013## ------------------- ##" 2014 echo 2015 for ac_var in $ac_subst_files 2016 do 2017 eval ac_val=\$$ac_var 2018 case $ac_val in 2019 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2020 esac 2021 $as_echo "$ac_var='\''$ac_val'\''" 2022 done | sort 2023 echo 2024 fi 2025 2026 if test -s confdefs.h; then 2027 $as_echo "## ----------- ## 2028## confdefs.h. ## 2029## ----------- ##" 2030 echo 2031 cat confdefs.h 2032 echo 2033 fi 2034 test "$ac_signal" != 0 && 2035 $as_echo "$as_me: caught signal $ac_signal" 2036 $as_echo "$as_me: exit $exit_status" 2037 } >&5 2038 rm -f core *.core core.conftest.* && 2039 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2040 exit $exit_status 2041' 0 2042for ac_signal in 1 2 13 15; do 2043 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2044done 2045ac_signal=0 2046 2047# confdefs.h avoids OS command line length limits that DEFS can exceed. 2048rm -f -r conftest* confdefs.h 2049 2050$as_echo "/* confdefs.h */" > confdefs.h 2051 2052# Predefined preprocessor variables. 2053 2054cat >>confdefs.h <<_ACEOF 2055#define PACKAGE_NAME "$PACKAGE_NAME" 2056_ACEOF 2057 2058cat >>confdefs.h <<_ACEOF 2059#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2060_ACEOF 2061 2062cat >>confdefs.h <<_ACEOF 2063#define PACKAGE_VERSION "$PACKAGE_VERSION" 2064_ACEOF 2065 2066cat >>confdefs.h <<_ACEOF 2067#define PACKAGE_STRING "$PACKAGE_STRING" 2068_ACEOF 2069 2070cat >>confdefs.h <<_ACEOF 2071#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2072_ACEOF 2073 2074cat >>confdefs.h <<_ACEOF 2075#define PACKAGE_URL "$PACKAGE_URL" 2076_ACEOF 2077 2078 2079# Let the site file select an alternate cache file if it wants to. 2080# Prefer an explicitly selected file to automatically selected ones. 2081ac_site_file1=NONE 2082ac_site_file2=NONE 2083if test -n "$CONFIG_SITE"; then 2084 # We do not want a PATH search for config.site. 2085 case $CONFIG_SITE in #(( 2086 -*) ac_site_file1=./$CONFIG_SITE;; 2087 */*) ac_site_file1=$CONFIG_SITE;; 2088 *) ac_site_file1=./$CONFIG_SITE;; 2089 esac 2090elif test "x$prefix" != xNONE; then 2091 ac_site_file1=$prefix/share/config.site 2092 ac_site_file2=$prefix/etc/config.site 2093else 2094 ac_site_file1=$ac_default_prefix/share/config.site 2095 ac_site_file2=$ac_default_prefix/etc/config.site 2096fi 2097for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2098do 2099 test "x$ac_site_file" = xNONE && continue 2100 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2101 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2102$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2103 sed 's/^/| /' "$ac_site_file" >&5 2104 . "$ac_site_file" \ 2105 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2106$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2107as_fn_error $? "failed to load site script $ac_site_file 2108See \`config.log' for more details" "$LINENO" 5; } 2109 fi 2110done 2111 2112if test -r "$cache_file"; then 2113 # Some versions of bash will fail to source /dev/null (special files 2114 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2115 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2116 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2117$as_echo "$as_me: loading cache $cache_file" >&6;} 2118 case $cache_file in 2119 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2120 *) . "./$cache_file";; 2121 esac 2122 fi 2123else 2124 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2125$as_echo "$as_me: creating cache $cache_file" >&6;} 2126 >$cache_file 2127fi 2128 2129# Check that the precious variables saved in the cache have kept the same 2130# value. 2131ac_cache_corrupted=false 2132for ac_var in $ac_precious_vars; do 2133 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2134 eval ac_new_set=\$ac_env_${ac_var}_set 2135 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2136 eval ac_new_val=\$ac_env_${ac_var}_value 2137 case $ac_old_set,$ac_new_set in 2138 set,) 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2140$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2141 ac_cache_corrupted=: ;; 2142 ,set) 2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2144$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2145 ac_cache_corrupted=: ;; 2146 ,);; 2147 *) 2148 if test "x$ac_old_val" != "x$ac_new_val"; then 2149 # differences in whitespace do not lead to failure. 2150 ac_old_val_w=`echo x $ac_old_val` 2151 ac_new_val_w=`echo x $ac_new_val` 2152 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2154$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2155 ac_cache_corrupted=: 2156 else 2157 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2158$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2159 eval $ac_var=\$ac_old_val 2160 fi 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2162$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2164$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2165 fi;; 2166 esac 2167 # Pass precious variables to config.status. 2168 if test "$ac_new_set" = set; then 2169 case $ac_new_val in 2170 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2171 *) ac_arg=$ac_var=$ac_new_val ;; 2172 esac 2173 case " $ac_configure_args " in 2174 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2175 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2176 esac 2177 fi 2178done 2179if $ac_cache_corrupted; then 2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2183$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2184 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2185fi 2186## -------------------- ## 2187## Main body of script. ## 2188## -------------------- ## 2189 2190ac_ext=c 2191ac_cpp='$CPP $CPPFLAGS' 2192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2194ac_compiler_gnu=$ac_cv_c_compiler_gnu 2195 2196 2197 2198ac_config_headers="$ac_config_headers config.h" 2199 2200 2201# Initialize Automake 2202am__api_version='1.14' 2203 2204ac_aux_dir= 2205for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2206 if test -f "$ac_dir/install-sh"; then 2207 ac_aux_dir=$ac_dir 2208 ac_install_sh="$ac_aux_dir/install-sh -c" 2209 break 2210 elif test -f "$ac_dir/install.sh"; then 2211 ac_aux_dir=$ac_dir 2212 ac_install_sh="$ac_aux_dir/install.sh -c" 2213 break 2214 elif test -f "$ac_dir/shtool"; then 2215 ac_aux_dir=$ac_dir 2216 ac_install_sh="$ac_aux_dir/shtool install -c" 2217 break 2218 fi 2219done 2220if test -z "$ac_aux_dir"; then 2221 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2222fi 2223 2224# These three variables are undocumented and unsupported, 2225# and are intended to be withdrawn in a future Autoconf release. 2226# They can cause serious problems if a builder's source tree is in a directory 2227# whose full name contains unusual characters. 2228ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2229ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2230ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2231 2232 2233# Find a good install program. We prefer a C program (faster), 2234# so one script is as good as another. But avoid the broken or 2235# incompatible versions: 2236# SysV /etc/install, /usr/sbin/install 2237# SunOS /usr/etc/install 2238# IRIX /sbin/install 2239# AIX /bin/install 2240# AmigaOS /C/install, which installs bootblocks on floppy discs 2241# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2242# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2243# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2244# OS/2's system install, which has a completely different semantic 2245# ./install, which can be erroneously created by make from ./install.sh. 2246# Reject install programs that cannot install multiple files. 2247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2248$as_echo_n "checking for a BSD-compatible install... " >&6; } 2249if test -z "$INSTALL"; then 2250if ${ac_cv_path_install+:} false; then : 2251 $as_echo_n "(cached) " >&6 2252else 2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2254for as_dir in $PATH 2255do 2256 IFS=$as_save_IFS 2257 test -z "$as_dir" && as_dir=. 2258 # Account for people who put trailing slashes in PATH elements. 2259case $as_dir/ in #(( 2260 ./ | .// | /[cC]/* | \ 2261 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2262 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2263 /usr/ucb/* ) ;; 2264 *) 2265 # OSF1 and SCO ODT 3.0 have their own names for install. 2266 # Don't use installbsd from OSF since it installs stuff as root 2267 # by default. 2268 for ac_prog in ginstall scoinst install; do 2269 for ac_exec_ext in '' $ac_executable_extensions; do 2270 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2271 if test $ac_prog = install && 2272 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2273 # AIX install. It has an incompatible calling convention. 2274 : 2275 elif test $ac_prog = install && 2276 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2277 # program-specific install script used by HP pwplus--don't use. 2278 : 2279 else 2280 rm -rf conftest.one conftest.two conftest.dir 2281 echo one > conftest.one 2282 echo two > conftest.two 2283 mkdir conftest.dir 2284 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2285 test -s conftest.one && test -s conftest.two && 2286 test -s conftest.dir/conftest.one && 2287 test -s conftest.dir/conftest.two 2288 then 2289 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2290 break 3 2291 fi 2292 fi 2293 fi 2294 done 2295 done 2296 ;; 2297esac 2298 2299 done 2300IFS=$as_save_IFS 2301 2302rm -rf conftest.one conftest.two conftest.dir 2303 2304fi 2305 if test "${ac_cv_path_install+set}" = set; then 2306 INSTALL=$ac_cv_path_install 2307 else 2308 # As a last resort, use the slow shell script. Don't cache a 2309 # value for INSTALL within a source directory, because that will 2310 # break other packages using the cache if that directory is 2311 # removed, or if the value is a relative name. 2312 INSTALL=$ac_install_sh 2313 fi 2314fi 2315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2316$as_echo "$INSTALL" >&6; } 2317 2318# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2319# It thinks the first close brace ends the variable substitution. 2320test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2321 2322test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2323 2324test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2325 2326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2327$as_echo_n "checking whether build environment is sane... " >&6; } 2328# Reject unsafe characters in $srcdir or the absolute working directory 2329# name. Accept space and tab only in the latter. 2330am_lf=' 2331' 2332case `pwd` in 2333 *[\\\"\#\$\&\'\`$am_lf]*) 2334 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2335esac 2336case $srcdir in 2337 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2338 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2339esac 2340 2341# Do 'set' in a subshell so we don't clobber the current shell's 2342# arguments. Must try -L first in case configure is actually a 2343# symlink; some systems play weird games with the mod time of symlinks 2344# (eg FreeBSD returns the mod time of the symlink's containing 2345# directory). 2346if ( 2347 am_has_slept=no 2348 for am_try in 1 2; do 2349 echo "timestamp, slept: $am_has_slept" > conftest.file 2350 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2351 if test "$*" = "X"; then 2352 # -L didn't work. 2353 set X `ls -t "$srcdir/configure" conftest.file` 2354 fi 2355 if test "$*" != "X $srcdir/configure conftest.file" \ 2356 && test "$*" != "X conftest.file $srcdir/configure"; then 2357 2358 # If neither matched, then we have a broken ls. This can happen 2359 # if, for instance, CONFIG_SHELL is bash and it inherits a 2360 # broken ls alias from the environment. This has actually 2361 # happened. Such a system could not be considered "sane". 2362 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2363 alias in your environment" "$LINENO" 5 2364 fi 2365 if test "$2" = conftest.file || test $am_try -eq 2; then 2366 break 2367 fi 2368 # Just in case. 2369 sleep 1 2370 am_has_slept=yes 2371 done 2372 test "$2" = conftest.file 2373 ) 2374then 2375 # Ok. 2376 : 2377else 2378 as_fn_error $? "newly created file is older than distributed files! 2379Check your system clock" "$LINENO" 5 2380fi 2381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2382$as_echo "yes" >&6; } 2383# If we didn't sleep, we still need to ensure time stamps of config.status and 2384# generated files are strictly newer. 2385am_sleep_pid= 2386if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2387 ( sleep 1 ) & 2388 am_sleep_pid=$! 2389fi 2390 2391rm -f conftest.file 2392 2393test "$program_prefix" != NONE && 2394 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2395# Use a double $ so make ignores it. 2396test "$program_suffix" != NONE && 2397 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2398# Double any \ or $. 2399# By default was `s,x,x', remove it if useless. 2400ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2401program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2402 2403# expand $ac_aux_dir to an absolute path 2404am_aux_dir=`cd $ac_aux_dir && pwd` 2405 2406if test x"${MISSING+set}" != xset; then 2407 case $am_aux_dir in 2408 *\ * | *\ *) 2409 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2410 *) 2411 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2412 esac 2413fi 2414# Use eval to expand $SHELL 2415if eval "$MISSING --is-lightweight"; then 2416 am_missing_run="$MISSING " 2417else 2418 am_missing_run= 2419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2420$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2421fi 2422 2423if test x"${install_sh}" != xset; then 2424 case $am_aux_dir in 2425 *\ * | *\ *) 2426 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2427 *) 2428 install_sh="\${SHELL} $am_aux_dir/install-sh" 2429 esac 2430fi 2431 2432# Installed binaries are usually stripped using 'strip' when the user 2433# run "make install-strip". However 'strip' might not be the right 2434# tool to use in cross-compilation environments, therefore Automake 2435# will honor the 'STRIP' environment variable to overrule this program. 2436if test "$cross_compiling" != no; then 2437 if test -n "$ac_tool_prefix"; then 2438 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2439set dummy ${ac_tool_prefix}strip; ac_word=$2 2440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2441$as_echo_n "checking for $ac_word... " >&6; } 2442if ${ac_cv_prog_STRIP+:} false; then : 2443 $as_echo_n "(cached) " >&6 2444else 2445 if test -n "$STRIP"; then 2446 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2447else 2448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2449for as_dir in $PATH 2450do 2451 IFS=$as_save_IFS 2452 test -z "$as_dir" && as_dir=. 2453 for ac_exec_ext in '' $ac_executable_extensions; do 2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2455 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2457 break 2 2458 fi 2459done 2460 done 2461IFS=$as_save_IFS 2462 2463fi 2464fi 2465STRIP=$ac_cv_prog_STRIP 2466if test -n "$STRIP"; then 2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2468$as_echo "$STRIP" >&6; } 2469else 2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2471$as_echo "no" >&6; } 2472fi 2473 2474 2475fi 2476if test -z "$ac_cv_prog_STRIP"; then 2477 ac_ct_STRIP=$STRIP 2478 # Extract the first word of "strip", so it can be a program name with args. 2479set dummy strip; ac_word=$2 2480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2481$as_echo_n "checking for $ac_word... " >&6; } 2482if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2483 $as_echo_n "(cached) " >&6 2484else 2485 if test -n "$ac_ct_STRIP"; then 2486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2487else 2488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2489for as_dir in $PATH 2490do 2491 IFS=$as_save_IFS 2492 test -z "$as_dir" && as_dir=. 2493 for ac_exec_ext in '' $ac_executable_extensions; do 2494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2495 ac_cv_prog_ac_ct_STRIP="strip" 2496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2497 break 2 2498 fi 2499done 2500 done 2501IFS=$as_save_IFS 2502 2503fi 2504fi 2505ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2506if test -n "$ac_ct_STRIP"; then 2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2508$as_echo "$ac_ct_STRIP" >&6; } 2509else 2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2511$as_echo "no" >&6; } 2512fi 2513 2514 if test "x$ac_ct_STRIP" = x; then 2515 STRIP=":" 2516 else 2517 case $cross_compiling:$ac_tool_warned in 2518yes:) 2519{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2521ac_tool_warned=yes ;; 2522esac 2523 STRIP=$ac_ct_STRIP 2524 fi 2525else 2526 STRIP="$ac_cv_prog_STRIP" 2527fi 2528 2529fi 2530INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2531 2532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2533$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2534if test -z "$MKDIR_P"; then 2535 if ${ac_cv_path_mkdir+:} false; then : 2536 $as_echo_n "(cached) " >&6 2537else 2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2539for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2540do 2541 IFS=$as_save_IFS 2542 test -z "$as_dir" && as_dir=. 2543 for ac_prog in mkdir gmkdir; do 2544 for ac_exec_ext in '' $ac_executable_extensions; do 2545 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2546 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2547 'mkdir (GNU coreutils) '* | \ 2548 'mkdir (coreutils) '* | \ 2549 'mkdir (fileutils) '4.1*) 2550 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2551 break 3;; 2552 esac 2553 done 2554 done 2555 done 2556IFS=$as_save_IFS 2557 2558fi 2559 2560 test -d ./--version && rmdir ./--version 2561 if test "${ac_cv_path_mkdir+set}" = set; then 2562 MKDIR_P="$ac_cv_path_mkdir -p" 2563 else 2564 # As a last resort, use the slow shell script. Don't cache a 2565 # value for MKDIR_P within a source directory, because that will 2566 # break other packages using the cache if that directory is 2567 # removed, or if the value is a relative name. 2568 MKDIR_P="$ac_install_sh -d" 2569 fi 2570fi 2571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2572$as_echo "$MKDIR_P" >&6; } 2573 2574for ac_prog in gawk mawk nawk awk 2575do 2576 # Extract the first word of "$ac_prog", so it can be a program name with args. 2577set dummy $ac_prog; ac_word=$2 2578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2579$as_echo_n "checking for $ac_word... " >&6; } 2580if ${ac_cv_prog_AWK+:} false; then : 2581 $as_echo_n "(cached) " >&6 2582else 2583 if test -n "$AWK"; then 2584 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2585else 2586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2587for as_dir in $PATH 2588do 2589 IFS=$as_save_IFS 2590 test -z "$as_dir" && as_dir=. 2591 for ac_exec_ext in '' $ac_executable_extensions; do 2592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2593 ac_cv_prog_AWK="$ac_prog" 2594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2595 break 2 2596 fi 2597done 2598 done 2599IFS=$as_save_IFS 2600 2601fi 2602fi 2603AWK=$ac_cv_prog_AWK 2604if test -n "$AWK"; then 2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2606$as_echo "$AWK" >&6; } 2607else 2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2609$as_echo "no" >&6; } 2610fi 2611 2612 2613 test -n "$AWK" && break 2614done 2615 2616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2617$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2618set x ${MAKE-make} 2619ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2620if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2621 $as_echo_n "(cached) " >&6 2622else 2623 cat >conftest.make <<\_ACEOF 2624SHELL = /bin/sh 2625all: 2626 @echo '@@@%%%=$(MAKE)=@@@%%%' 2627_ACEOF 2628# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2629case `${MAKE-make} -f conftest.make 2>/dev/null` in 2630 *@@@%%%=?*=@@@%%%*) 2631 eval ac_cv_prog_make_${ac_make}_set=yes;; 2632 *) 2633 eval ac_cv_prog_make_${ac_make}_set=no;; 2634esac 2635rm -f conftest.make 2636fi 2637if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2639$as_echo "yes" >&6; } 2640 SET_MAKE= 2641else 2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2643$as_echo "no" >&6; } 2644 SET_MAKE="MAKE=${MAKE-make}" 2645fi 2646 2647rm -rf .tst 2>/dev/null 2648mkdir .tst 2>/dev/null 2649if test -d .tst; then 2650 am__leading_dot=. 2651else 2652 am__leading_dot=_ 2653fi 2654rmdir .tst 2>/dev/null 2655 2656# Check whether --enable-silent-rules was given. 2657if test "${enable_silent_rules+set}" = set; then : 2658 enableval=$enable_silent_rules; 2659fi 2660 2661case $enable_silent_rules in # ((( 2662 yes) AM_DEFAULT_VERBOSITY=0;; 2663 no) AM_DEFAULT_VERBOSITY=1;; 2664 *) AM_DEFAULT_VERBOSITY=1;; 2665esac 2666am_make=${MAKE-make} 2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2668$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2669if ${am_cv_make_support_nested_variables+:} false; then : 2670 $as_echo_n "(cached) " >&6 2671else 2672 if $as_echo 'TRUE=$(BAR$(V)) 2673BAR0=false 2674BAR1=true 2675V=1 2676am__doit: 2677 @$(TRUE) 2678.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2679 am_cv_make_support_nested_variables=yes 2680else 2681 am_cv_make_support_nested_variables=no 2682fi 2683fi 2684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2685$as_echo "$am_cv_make_support_nested_variables" >&6; } 2686if test $am_cv_make_support_nested_variables = yes; then 2687 AM_V='$(V)' 2688 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2689else 2690 AM_V=$AM_DEFAULT_VERBOSITY 2691 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2692fi 2693AM_BACKSLASH='\' 2694 2695if test "`cd $srcdir && pwd`" != "`pwd`"; then 2696 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2697 # is not polluted with repeated "-I." 2698 am__isrc=' -I$(srcdir)' 2699 # test to see if srcdir already configured 2700 if test -f $srcdir/config.status; then 2701 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2702 fi 2703fi 2704 2705# test whether we have cygpath 2706if test -z "$CYGPATH_W"; then 2707 if (cygpath --version) >/dev/null 2>/dev/null; then 2708 CYGPATH_W='cygpath -w' 2709 else 2710 CYGPATH_W=echo 2711 fi 2712fi 2713 2714 2715# Define the identity of the package. 2716 PACKAGE='imake' 2717 VERSION='1.0.6' 2718 2719 2720cat >>confdefs.h <<_ACEOF 2721#define PACKAGE "$PACKAGE" 2722_ACEOF 2723 2724 2725cat >>confdefs.h <<_ACEOF 2726#define VERSION "$VERSION" 2727_ACEOF 2728 2729# Some tools Automake needs. 2730 2731ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2732 2733 2734AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2735 2736 2737AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2738 2739 2740AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2741 2742 2743MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2744 2745# For better backward compatibility. To be removed once Automake 1.9.x 2746# dies out for good. For more background, see: 2747# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2748# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2749mkdir_p='$(MKDIR_P)' 2750 2751# We need awk for the "check" target. The system "awk" is bad on 2752# some platforms. 2753# Always define AMTAR for backward compatibility. Yes, it's still used 2754# in the wild :-( We should find a proper way to deprecate it ... 2755AMTAR='$${TAR-tar}' 2756 2757 2758# We'll loop over all known methods to create a tar archive until one works. 2759_am_tools='gnutar pax cpio none' 2760 2761am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2762 2763 2764 2765 2766 2767 2768# POSIX will say in a future version that running "rm -f" with no argument 2769# is OK; and we want to be able to make that assumption in our Makefile 2770# recipes. So use an aggressive probe to check that the usage we want is 2771# actually supported "in the wild" to an acceptable degree. 2772# See automake bug#10828. 2773# To make any issue more visible, cause the running configure to be aborted 2774# by default if the 'rm' program in use doesn't match our expectations; the 2775# user can still override this though. 2776if rm -f && rm -fr && rm -rf; then : OK; else 2777 cat >&2 <<'END' 2778Oops! 2779 2780Your 'rm' program seems unable to run without file operands specified 2781on the command line, even when the '-f' option is present. This is contrary 2782to the behaviour of most rm programs out there, and not conforming with 2783the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2784 2785Please tell bug-automake@gnu.org about your system, including the value 2786of your $PATH and any error possibly output before this message. This 2787can help us improve future automake versions. 2788 2789END 2790 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2791 echo 'Configuration will proceed anyway, since you have set the' >&2 2792 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2793 echo >&2 2794 else 2795 cat >&2 <<'END' 2796Aborting the configuration process, to ensure you take notice of the issue. 2797 2798You can download and install GNU coreutils to get an 'rm' implementation 2799that behaves properly: <http://www.gnu.org/software/coreutils/>. 2800 2801If you want to complete the configuration process using your problematic 2802'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2803to "yes", and re-run configure. 2804 2805END 2806 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2807 fi 2808fi 2809 2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2811$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2812 # Check whether --enable-maintainer-mode was given. 2813if test "${enable_maintainer_mode+set}" = set; then : 2814 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2815else 2816 USE_MAINTAINER_MODE=no 2817fi 2818 2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2820$as_echo "$USE_MAINTAINER_MODE" >&6; } 2821 if test $USE_MAINTAINER_MODE = yes; then 2822 MAINTAINER_MODE_TRUE= 2823 MAINTAINER_MODE_FALSE='#' 2824else 2825 MAINTAINER_MODE_TRUE='#' 2826 MAINTAINER_MODE_FALSE= 2827fi 2828 2829 MAINT=$MAINTAINER_MODE_TRUE 2830 2831 2832 2833# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845DEPDIR="${am__leading_dot}deps" 2846 2847ac_config_commands="$ac_config_commands depfiles" 2848 2849 2850am_make=${MAKE-make} 2851cat > confinc << 'END' 2852am__doit: 2853 @echo this is the am__doit target 2854.PHONY: am__doit 2855END 2856# If we don't find an include directive, just comment out the code. 2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2858$as_echo_n "checking for style of include used by $am_make... " >&6; } 2859am__include="#" 2860am__quote= 2861_am_result=none 2862# First try GNU make style include. 2863echo "include confinc" > confmf 2864# Ignore all kinds of additional output from 'make'. 2865case `$am_make -s -f confmf 2> /dev/null` in #( 2866*the\ am__doit\ target*) 2867 am__include=include 2868 am__quote= 2869 _am_result=GNU 2870 ;; 2871esac 2872# Now try BSD make style include. 2873if test "$am__include" = "#"; then 2874 echo '.include "confinc"' > confmf 2875 case `$am_make -s -f confmf 2> /dev/null` in #( 2876 *the\ am__doit\ target*) 2877 am__include=.include 2878 am__quote="\"" 2879 _am_result=BSD 2880 ;; 2881 esac 2882fi 2883 2884 2885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2886$as_echo "$_am_result" >&6; } 2887rm -f confinc confmf 2888 2889# Check whether --enable-dependency-tracking was given. 2890if test "${enable_dependency_tracking+set}" = set; then : 2891 enableval=$enable_dependency_tracking; 2892fi 2893 2894if test "x$enable_dependency_tracking" != xno; then 2895 am_depcomp="$ac_aux_dir/depcomp" 2896 AMDEPBACKSLASH='\' 2897 am__nodep='_no' 2898fi 2899 if test "x$enable_dependency_tracking" != xno; then 2900 AMDEP_TRUE= 2901 AMDEP_FALSE='#' 2902else 2903 AMDEP_TRUE='#' 2904 AMDEP_FALSE= 2905fi 2906 2907 2908ac_ext=c 2909ac_cpp='$CPP $CPPFLAGS' 2910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2912ac_compiler_gnu=$ac_cv_c_compiler_gnu 2913if test -n "$ac_tool_prefix"; then 2914 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2915set dummy ${ac_tool_prefix}gcc; ac_word=$2 2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2917$as_echo_n "checking for $ac_word... " >&6; } 2918if ${ac_cv_prog_CC+:} false; then : 2919 $as_echo_n "(cached) " >&6 2920else 2921 if test -n "$CC"; then 2922 ac_cv_prog_CC="$CC" # Let the user override the test. 2923else 2924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2925for as_dir in $PATH 2926do 2927 IFS=$as_save_IFS 2928 test -z "$as_dir" && as_dir=. 2929 for ac_exec_ext in '' $ac_executable_extensions; do 2930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2931 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2933 break 2 2934 fi 2935done 2936 done 2937IFS=$as_save_IFS 2938 2939fi 2940fi 2941CC=$ac_cv_prog_CC 2942if test -n "$CC"; then 2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2944$as_echo "$CC" >&6; } 2945else 2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2947$as_echo "no" >&6; } 2948fi 2949 2950 2951fi 2952if test -z "$ac_cv_prog_CC"; then 2953 ac_ct_CC=$CC 2954 # Extract the first word of "gcc", so it can be a program name with args. 2955set dummy gcc; ac_word=$2 2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2957$as_echo_n "checking for $ac_word... " >&6; } 2958if ${ac_cv_prog_ac_ct_CC+:} false; then : 2959 $as_echo_n "(cached) " >&6 2960else 2961 if test -n "$ac_ct_CC"; then 2962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2963else 2964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2965for as_dir in $PATH 2966do 2967 IFS=$as_save_IFS 2968 test -z "$as_dir" && as_dir=. 2969 for ac_exec_ext in '' $ac_executable_extensions; do 2970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2971 ac_cv_prog_ac_ct_CC="gcc" 2972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2973 break 2 2974 fi 2975done 2976 done 2977IFS=$as_save_IFS 2978 2979fi 2980fi 2981ac_ct_CC=$ac_cv_prog_ac_ct_CC 2982if test -n "$ac_ct_CC"; then 2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2984$as_echo "$ac_ct_CC" >&6; } 2985else 2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2987$as_echo "no" >&6; } 2988fi 2989 2990 if test "x$ac_ct_CC" = x; then 2991 CC="" 2992 else 2993 case $cross_compiling:$ac_tool_warned in 2994yes:) 2995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2997ac_tool_warned=yes ;; 2998esac 2999 CC=$ac_ct_CC 3000 fi 3001else 3002 CC="$ac_cv_prog_CC" 3003fi 3004 3005if test -z "$CC"; then 3006 if test -n "$ac_tool_prefix"; then 3007 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3008set dummy ${ac_tool_prefix}cc; ac_word=$2 3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3010$as_echo_n "checking for $ac_word... " >&6; } 3011if ${ac_cv_prog_CC+:} false; then : 3012 $as_echo_n "(cached) " >&6 3013else 3014 if test -n "$CC"; then 3015 ac_cv_prog_CC="$CC" # Let the user override the test. 3016else 3017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3018for as_dir in $PATH 3019do 3020 IFS=$as_save_IFS 3021 test -z "$as_dir" && as_dir=. 3022 for ac_exec_ext in '' $ac_executable_extensions; do 3023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3024 ac_cv_prog_CC="${ac_tool_prefix}cc" 3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3026 break 2 3027 fi 3028done 3029 done 3030IFS=$as_save_IFS 3031 3032fi 3033fi 3034CC=$ac_cv_prog_CC 3035if test -n "$CC"; then 3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3037$as_echo "$CC" >&6; } 3038else 3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3040$as_echo "no" >&6; } 3041fi 3042 3043 3044 fi 3045fi 3046if test -z "$CC"; then 3047 # Extract the first word of "cc", so it can be a program name with args. 3048set dummy cc; ac_word=$2 3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3050$as_echo_n "checking for $ac_word... " >&6; } 3051if ${ac_cv_prog_CC+:} false; then : 3052 $as_echo_n "(cached) " >&6 3053else 3054 if test -n "$CC"; then 3055 ac_cv_prog_CC="$CC" # Let the user override the test. 3056else 3057 ac_prog_rejected=no 3058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3059for as_dir in $PATH 3060do 3061 IFS=$as_save_IFS 3062 test -z "$as_dir" && as_dir=. 3063 for ac_exec_ext in '' $ac_executable_extensions; do 3064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3065 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3066 ac_prog_rejected=yes 3067 continue 3068 fi 3069 ac_cv_prog_CC="cc" 3070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3071 break 2 3072 fi 3073done 3074 done 3075IFS=$as_save_IFS 3076 3077if test $ac_prog_rejected = yes; then 3078 # We found a bogon in the path, so make sure we never use it. 3079 set dummy $ac_cv_prog_CC 3080 shift 3081 if test $# != 0; then 3082 # We chose a different compiler from the bogus one. 3083 # However, it has the same basename, so the bogon will be chosen 3084 # first if we set CC to just the basename; use the full file name. 3085 shift 3086 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3087 fi 3088fi 3089fi 3090fi 3091CC=$ac_cv_prog_CC 3092if test -n "$CC"; then 3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3094$as_echo "$CC" >&6; } 3095else 3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3097$as_echo "no" >&6; } 3098fi 3099 3100 3101fi 3102if test -z "$CC"; then 3103 if test -n "$ac_tool_prefix"; then 3104 for ac_prog in cl.exe 3105 do 3106 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3107set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3109$as_echo_n "checking for $ac_word... " >&6; } 3110if ${ac_cv_prog_CC+:} false; then : 3111 $as_echo_n "(cached) " >&6 3112else 3113 if test -n "$CC"; then 3114 ac_cv_prog_CC="$CC" # Let the user override the test. 3115else 3116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3117for as_dir in $PATH 3118do 3119 IFS=$as_save_IFS 3120 test -z "$as_dir" && as_dir=. 3121 for ac_exec_ext in '' $ac_executable_extensions; do 3122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3123 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3125 break 2 3126 fi 3127done 3128 done 3129IFS=$as_save_IFS 3130 3131fi 3132fi 3133CC=$ac_cv_prog_CC 3134if test -n "$CC"; then 3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3136$as_echo "$CC" >&6; } 3137else 3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3139$as_echo "no" >&6; } 3140fi 3141 3142 3143 test -n "$CC" && break 3144 done 3145fi 3146if test -z "$CC"; then 3147 ac_ct_CC=$CC 3148 for ac_prog in cl.exe 3149do 3150 # Extract the first word of "$ac_prog", so it can be a program name with args. 3151set dummy $ac_prog; ac_word=$2 3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3153$as_echo_n "checking for $ac_word... " >&6; } 3154if ${ac_cv_prog_ac_ct_CC+:} false; then : 3155 $as_echo_n "(cached) " >&6 3156else 3157 if test -n "$ac_ct_CC"; then 3158 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3159else 3160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3161for as_dir in $PATH 3162do 3163 IFS=$as_save_IFS 3164 test -z "$as_dir" && as_dir=. 3165 for ac_exec_ext in '' $ac_executable_extensions; do 3166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3167 ac_cv_prog_ac_ct_CC="$ac_prog" 3168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3169 break 2 3170 fi 3171done 3172 done 3173IFS=$as_save_IFS 3174 3175fi 3176fi 3177ac_ct_CC=$ac_cv_prog_ac_ct_CC 3178if test -n "$ac_ct_CC"; then 3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3180$as_echo "$ac_ct_CC" >&6; } 3181else 3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3183$as_echo "no" >&6; } 3184fi 3185 3186 3187 test -n "$ac_ct_CC" && break 3188done 3189 3190 if test "x$ac_ct_CC" = x; then 3191 CC="" 3192 else 3193 case $cross_compiling:$ac_tool_warned in 3194yes:) 3195{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3196$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3197ac_tool_warned=yes ;; 3198esac 3199 CC=$ac_ct_CC 3200 fi 3201fi 3202 3203fi 3204 3205 3206test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3208as_fn_error $? "no acceptable C compiler found in \$PATH 3209See \`config.log' for more details" "$LINENO" 5; } 3210 3211# Provide some information about the compiler. 3212$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3213set X $ac_compile 3214ac_compiler=$2 3215for ac_option in --version -v -V -qversion; do 3216 { { ac_try="$ac_compiler $ac_option >&5" 3217case "(($ac_try" in 3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3219 *) ac_try_echo=$ac_try;; 3220esac 3221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3222$as_echo "$ac_try_echo"; } >&5 3223 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3224 ac_status=$? 3225 if test -s conftest.err; then 3226 sed '10a\ 3227... rest of stderr output deleted ... 3228 10q' conftest.err >conftest.er1 3229 cat conftest.er1 >&5 3230 fi 3231 rm -f conftest.er1 conftest.err 3232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3233 test $ac_status = 0; } 3234done 3235 3236cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3237/* end confdefs.h. */ 3238 3239int 3240main () 3241{ 3242 3243 ; 3244 return 0; 3245} 3246_ACEOF 3247ac_clean_files_save=$ac_clean_files 3248ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3249# Try to create an executable without -o first, disregard a.out. 3250# It will help us diagnose broken compilers, and finding out an intuition 3251# of exeext. 3252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3253$as_echo_n "checking whether the C compiler works... " >&6; } 3254ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3255 3256# The possible output files: 3257ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3258 3259ac_rmfiles= 3260for ac_file in $ac_files 3261do 3262 case $ac_file in 3263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3264 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3265 esac 3266done 3267rm -f $ac_rmfiles 3268 3269if { { ac_try="$ac_link_default" 3270case "(($ac_try" in 3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3272 *) ac_try_echo=$ac_try;; 3273esac 3274eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3275$as_echo "$ac_try_echo"; } >&5 3276 (eval "$ac_link_default") 2>&5 3277 ac_status=$? 3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3279 test $ac_status = 0; }; then : 3280 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3281# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3282# in a Makefile. We should not override ac_cv_exeext if it was cached, 3283# so that the user can short-circuit this test for compilers unknown to 3284# Autoconf. 3285for ac_file in $ac_files '' 3286do 3287 test -f "$ac_file" || continue 3288 case $ac_file in 3289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3290 ;; 3291 [ab].out ) 3292 # We found the default executable, but exeext='' is most 3293 # certainly right. 3294 break;; 3295 *.* ) 3296 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3297 then :; else 3298 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3299 fi 3300 # We set ac_cv_exeext here because the later test for it is not 3301 # safe: cross compilers may not add the suffix if given an `-o' 3302 # argument, so we may need to know it at that point already. 3303 # Even if this section looks crufty: it has the advantage of 3304 # actually working. 3305 break;; 3306 * ) 3307 break;; 3308 esac 3309done 3310test "$ac_cv_exeext" = no && ac_cv_exeext= 3311 3312else 3313 ac_file='' 3314fi 3315if test -z "$ac_file"; then : 3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3317$as_echo "no" >&6; } 3318$as_echo "$as_me: failed program was:" >&5 3319sed 's/^/| /' conftest.$ac_ext >&5 3320 3321{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3322$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3323as_fn_error 77 "C compiler cannot create executables 3324See \`config.log' for more details" "$LINENO" 5; } 3325else 3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3327$as_echo "yes" >&6; } 3328fi 3329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3330$as_echo_n "checking for C compiler default output file name... " >&6; } 3331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3332$as_echo "$ac_file" >&6; } 3333ac_exeext=$ac_cv_exeext 3334 3335rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3336ac_clean_files=$ac_clean_files_save 3337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3338$as_echo_n "checking for suffix of executables... " >&6; } 3339if { { ac_try="$ac_link" 3340case "(($ac_try" in 3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3342 *) ac_try_echo=$ac_try;; 3343esac 3344eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3345$as_echo "$ac_try_echo"; } >&5 3346 (eval "$ac_link") 2>&5 3347 ac_status=$? 3348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3349 test $ac_status = 0; }; then : 3350 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3351# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3352# work properly (i.e., refer to `conftest.exe'), while it won't with 3353# `rm'. 3354for ac_file in conftest.exe conftest conftest.*; do 3355 test -f "$ac_file" || continue 3356 case $ac_file in 3357 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3358 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3359 break;; 3360 * ) break;; 3361 esac 3362done 3363else 3364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3366as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3367See \`config.log' for more details" "$LINENO" 5; } 3368fi 3369rm -f conftest conftest$ac_cv_exeext 3370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3371$as_echo "$ac_cv_exeext" >&6; } 3372 3373rm -f conftest.$ac_ext 3374EXEEXT=$ac_cv_exeext 3375ac_exeext=$EXEEXT 3376cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3377/* end confdefs.h. */ 3378#include <stdio.h> 3379int 3380main () 3381{ 3382FILE *f = fopen ("conftest.out", "w"); 3383 return ferror (f) || fclose (f) != 0; 3384 3385 ; 3386 return 0; 3387} 3388_ACEOF 3389ac_clean_files="$ac_clean_files conftest.out" 3390# Check that the compiler produces executables we can run. If not, either 3391# the compiler is broken, or we cross compile. 3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3393$as_echo_n "checking whether we are cross compiling... " >&6; } 3394if test "$cross_compiling" != yes; then 3395 { { ac_try="$ac_link" 3396case "(($ac_try" in 3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3398 *) ac_try_echo=$ac_try;; 3399esac 3400eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3401$as_echo "$ac_try_echo"; } >&5 3402 (eval "$ac_link") 2>&5 3403 ac_status=$? 3404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3405 test $ac_status = 0; } 3406 if { ac_try='./conftest$ac_cv_exeext' 3407 { { case "(($ac_try" in 3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3409 *) ac_try_echo=$ac_try;; 3410esac 3411eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3412$as_echo "$ac_try_echo"; } >&5 3413 (eval "$ac_try") 2>&5 3414 ac_status=$? 3415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3416 test $ac_status = 0; }; }; then 3417 cross_compiling=no 3418 else 3419 if test "$cross_compiling" = maybe; then 3420 cross_compiling=yes 3421 else 3422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3424as_fn_error $? "cannot run C compiled programs. 3425If you meant to cross compile, use \`--host'. 3426See \`config.log' for more details" "$LINENO" 5; } 3427 fi 3428 fi 3429fi 3430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3431$as_echo "$cross_compiling" >&6; } 3432 3433rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3434ac_clean_files=$ac_clean_files_save 3435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3436$as_echo_n "checking for suffix of object files... " >&6; } 3437if ${ac_cv_objext+:} false; then : 3438 $as_echo_n "(cached) " >&6 3439else 3440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3441/* end confdefs.h. */ 3442 3443int 3444main () 3445{ 3446 3447 ; 3448 return 0; 3449} 3450_ACEOF 3451rm -f conftest.o conftest.obj 3452if { { ac_try="$ac_compile" 3453case "(($ac_try" in 3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3455 *) ac_try_echo=$ac_try;; 3456esac 3457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3458$as_echo "$ac_try_echo"; } >&5 3459 (eval "$ac_compile") 2>&5 3460 ac_status=$? 3461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3462 test $ac_status = 0; }; then : 3463 for ac_file in conftest.o conftest.obj conftest.*; do 3464 test -f "$ac_file" || continue; 3465 case $ac_file in 3466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3467 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3468 break;; 3469 esac 3470done 3471else 3472 $as_echo "$as_me: failed program was:" >&5 3473sed 's/^/| /' conftest.$ac_ext >&5 3474 3475{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3477as_fn_error $? "cannot compute suffix of object files: cannot compile 3478See \`config.log' for more details" "$LINENO" 5; } 3479fi 3480rm -f conftest.$ac_cv_objext conftest.$ac_ext 3481fi 3482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3483$as_echo "$ac_cv_objext" >&6; } 3484OBJEXT=$ac_cv_objext 3485ac_objext=$OBJEXT 3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3487$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3488if ${ac_cv_c_compiler_gnu+:} false; then : 3489 $as_echo_n "(cached) " >&6 3490else 3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3492/* end confdefs.h. */ 3493 3494int 3495main () 3496{ 3497#ifndef __GNUC__ 3498 choke me 3499#endif 3500 3501 ; 3502 return 0; 3503} 3504_ACEOF 3505if ac_fn_c_try_compile "$LINENO"; then : 3506 ac_compiler_gnu=yes 3507else 3508 ac_compiler_gnu=no 3509fi 3510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3511ac_cv_c_compiler_gnu=$ac_compiler_gnu 3512 3513fi 3514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3515$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3516if test $ac_compiler_gnu = yes; then 3517 GCC=yes 3518else 3519 GCC= 3520fi 3521ac_test_CFLAGS=${CFLAGS+set} 3522ac_save_CFLAGS=$CFLAGS 3523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3524$as_echo_n "checking whether $CC accepts -g... " >&6; } 3525if ${ac_cv_prog_cc_g+:} false; then : 3526 $as_echo_n "(cached) " >&6 3527else 3528 ac_save_c_werror_flag=$ac_c_werror_flag 3529 ac_c_werror_flag=yes 3530 ac_cv_prog_cc_g=no 3531 CFLAGS="-g" 3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3533/* end confdefs.h. */ 3534 3535int 3536main () 3537{ 3538 3539 ; 3540 return 0; 3541} 3542_ACEOF 3543if ac_fn_c_try_compile "$LINENO"; then : 3544 ac_cv_prog_cc_g=yes 3545else 3546 CFLAGS="" 3547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3548/* end confdefs.h. */ 3549 3550int 3551main () 3552{ 3553 3554 ; 3555 return 0; 3556} 3557_ACEOF 3558if ac_fn_c_try_compile "$LINENO"; then : 3559 3560else 3561 ac_c_werror_flag=$ac_save_c_werror_flag 3562 CFLAGS="-g" 3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3564/* end confdefs.h. */ 3565 3566int 3567main () 3568{ 3569 3570 ; 3571 return 0; 3572} 3573_ACEOF 3574if ac_fn_c_try_compile "$LINENO"; then : 3575 ac_cv_prog_cc_g=yes 3576fi 3577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3578fi 3579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3580fi 3581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3582 ac_c_werror_flag=$ac_save_c_werror_flag 3583fi 3584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3585$as_echo "$ac_cv_prog_cc_g" >&6; } 3586if test "$ac_test_CFLAGS" = set; then 3587 CFLAGS=$ac_save_CFLAGS 3588elif test $ac_cv_prog_cc_g = yes; then 3589 if test "$GCC" = yes; then 3590 CFLAGS="-g -O2" 3591 else 3592 CFLAGS="-g" 3593 fi 3594else 3595 if test "$GCC" = yes; then 3596 CFLAGS="-O2" 3597 else 3598 CFLAGS= 3599 fi 3600fi 3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3602$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3603if ${ac_cv_prog_cc_c89+:} false; then : 3604 $as_echo_n "(cached) " >&6 3605else 3606 ac_cv_prog_cc_c89=no 3607ac_save_CC=$CC 3608cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3609/* end confdefs.h. */ 3610#include <stdarg.h> 3611#include <stdio.h> 3612#include <sys/types.h> 3613#include <sys/stat.h> 3614/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3615struct buf { int x; }; 3616FILE * (*rcsopen) (struct buf *, struct stat *, int); 3617static char *e (p, i) 3618 char **p; 3619 int i; 3620{ 3621 return p[i]; 3622} 3623static char *f (char * (*g) (char **, int), char **p, ...) 3624{ 3625 char *s; 3626 va_list v; 3627 va_start (v,p); 3628 s = g (p, va_arg (v,int)); 3629 va_end (v); 3630 return s; 3631} 3632 3633/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3634 function prototypes and stuff, but not '\xHH' hex character constants. 3635 These don't provoke an error unfortunately, instead are silently treated 3636 as 'x'. The following induces an error, until -std is added to get 3637 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3638 array size at least. It's necessary to write '\x00'==0 to get something 3639 that's true only with -std. */ 3640int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3641 3642/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3643 inside strings and character constants. */ 3644#define FOO(x) 'x' 3645int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3646 3647int test (int i, double x); 3648struct s1 {int (*f) (int a);}; 3649struct s2 {int (*f) (double a);}; 3650int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3651int argc; 3652char **argv; 3653int 3654main () 3655{ 3656return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3657 ; 3658 return 0; 3659} 3660_ACEOF 3661for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3662 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3663do 3664 CC="$ac_save_CC $ac_arg" 3665 if ac_fn_c_try_compile "$LINENO"; then : 3666 ac_cv_prog_cc_c89=$ac_arg 3667fi 3668rm -f core conftest.err conftest.$ac_objext 3669 test "x$ac_cv_prog_cc_c89" != "xno" && break 3670done 3671rm -f conftest.$ac_ext 3672CC=$ac_save_CC 3673 3674fi 3675# AC_CACHE_VAL 3676case "x$ac_cv_prog_cc_c89" in 3677 x) 3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3679$as_echo "none needed" >&6; } ;; 3680 xno) 3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3682$as_echo "unsupported" >&6; } ;; 3683 *) 3684 CC="$CC $ac_cv_prog_cc_c89" 3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3686$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3687esac 3688if test "x$ac_cv_prog_cc_c89" != xno; then : 3689 3690fi 3691 3692ac_ext=c 3693ac_cpp='$CPP $CPPFLAGS' 3694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3696ac_compiler_gnu=$ac_cv_c_compiler_gnu 3697 3698ac_ext=c 3699ac_cpp='$CPP $CPPFLAGS' 3700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3702ac_compiler_gnu=$ac_cv_c_compiler_gnu 3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3704$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3705if ${am_cv_prog_cc_c_o+:} false; then : 3706 $as_echo_n "(cached) " >&6 3707else 3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3709/* end confdefs.h. */ 3710 3711int 3712main () 3713{ 3714 3715 ; 3716 return 0; 3717} 3718_ACEOF 3719 # Make sure it works both with $CC and with simple cc. 3720 # Following AC_PROG_CC_C_O, we do the test twice because some 3721 # compilers refuse to overwrite an existing .o file with -o, 3722 # though they will create one. 3723 am_cv_prog_cc_c_o=yes 3724 for am_i in 1 2; do 3725 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3726 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3727 ac_status=$? 3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3729 (exit $ac_status); } \ 3730 && test -f conftest2.$ac_objext; then 3731 : OK 3732 else 3733 am_cv_prog_cc_c_o=no 3734 break 3735 fi 3736 done 3737 rm -f core conftest* 3738 unset am_i 3739fi 3740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3741$as_echo "$am_cv_prog_cc_c_o" >&6; } 3742if test "$am_cv_prog_cc_c_o" != yes; then 3743 # Losing compiler, so override with the script. 3744 # FIXME: It is wrong to rewrite CC. 3745 # But if we don't then we get into trouble of one sort or another. 3746 # A longer-term fix would be to have automake use am__CC in this case, 3747 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3748 CC="$am_aux_dir/compile $CC" 3749fi 3750ac_ext=c 3751ac_cpp='$CPP $CPPFLAGS' 3752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3754ac_compiler_gnu=$ac_cv_c_compiler_gnu 3755 3756 3757depcc="$CC" am_compiler_list= 3758 3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3760$as_echo_n "checking dependency style of $depcc... " >&6; } 3761if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3762 $as_echo_n "(cached) " >&6 3763else 3764 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3765 # We make a subdir and do the tests there. Otherwise we can end up 3766 # making bogus files that we don't know about and never remove. For 3767 # instance it was reported that on HP-UX the gcc test will end up 3768 # making a dummy file named 'D' -- because '-MD' means "put the output 3769 # in D". 3770 rm -rf conftest.dir 3771 mkdir conftest.dir 3772 # Copy depcomp to subdir because otherwise we won't find it if we're 3773 # using a relative directory. 3774 cp "$am_depcomp" conftest.dir 3775 cd conftest.dir 3776 # We will build objects and dependencies in a subdirectory because 3777 # it helps to detect inapplicable dependency modes. For instance 3778 # both Tru64's cc and ICC support -MD to output dependencies as a 3779 # side effect of compilation, but ICC will put the dependencies in 3780 # the current directory while Tru64 will put them in the object 3781 # directory. 3782 mkdir sub 3783 3784 am_cv_CC_dependencies_compiler_type=none 3785 if test "$am_compiler_list" = ""; then 3786 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3787 fi 3788 am__universal=false 3789 case " $depcc " in #( 3790 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3791 esac 3792 3793 for depmode in $am_compiler_list; do 3794 # Setup a source with many dependencies, because some compilers 3795 # like to wrap large dependency lists on column 80 (with \), and 3796 # we should not choose a depcomp mode which is confused by this. 3797 # 3798 # We need to recreate these files for each test, as the compiler may 3799 # overwrite some of them when testing with obscure command lines. 3800 # This happens at least with the AIX C compiler. 3801 : > sub/conftest.c 3802 for i in 1 2 3 4 5 6; do 3803 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3804 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3805 # Solaris 10 /bin/sh. 3806 echo '/* dummy */' > sub/conftst$i.h 3807 done 3808 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3809 3810 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3811 # mode. It turns out that the SunPro C++ compiler does not properly 3812 # handle '-M -o', and we need to detect this. Also, some Intel 3813 # versions had trouble with output in subdirs. 3814 am__obj=sub/conftest.${OBJEXT-o} 3815 am__minus_obj="-o $am__obj" 3816 case $depmode in 3817 gcc) 3818 # This depmode causes a compiler race in universal mode. 3819 test "$am__universal" = false || continue 3820 ;; 3821 nosideeffect) 3822 # After this tag, mechanisms are not by side-effect, so they'll 3823 # only be used when explicitly requested. 3824 if test "x$enable_dependency_tracking" = xyes; then 3825 continue 3826 else 3827 break 3828 fi 3829 ;; 3830 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3831 # This compiler won't grok '-c -o', but also, the minuso test has 3832 # not run yet. These depmodes are late enough in the game, and 3833 # so weak that their functioning should not be impacted. 3834 am__obj=conftest.${OBJEXT-o} 3835 am__minus_obj= 3836 ;; 3837 none) break ;; 3838 esac 3839 if depmode=$depmode \ 3840 source=sub/conftest.c object=$am__obj \ 3841 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3842 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3843 >/dev/null 2>conftest.err && 3844 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3845 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3846 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3847 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3848 # icc doesn't choke on unknown options, it will just issue warnings 3849 # or remarks (even with -Werror). So we grep stderr for any message 3850 # that says an option was ignored or not supported. 3851 # When given -MP, icc 7.0 and 7.1 complain thusly: 3852 # icc: Command line warning: ignoring option '-M'; no argument required 3853 # The diagnosis changed in icc 8.0: 3854 # icc: Command line remark: option '-MP' not supported 3855 if (grep 'ignoring option' conftest.err || 3856 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3857 am_cv_CC_dependencies_compiler_type=$depmode 3858 break 3859 fi 3860 fi 3861 done 3862 3863 cd .. 3864 rm -rf conftest.dir 3865else 3866 am_cv_CC_dependencies_compiler_type=none 3867fi 3868 3869fi 3870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3871$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3872CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3873 3874 if 3875 test "x$enable_dependency_tracking" != xno \ 3876 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3877 am__fastdepCC_TRUE= 3878 am__fastdepCC_FALSE='#' 3879else 3880 am__fastdepCC_TRUE='#' 3881 am__fastdepCC_FALSE= 3882fi 3883 3884 3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3886$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3887if ${ac_cv_prog_cc_c99+:} false; then : 3888 $as_echo_n "(cached) " >&6 3889else 3890 ac_cv_prog_cc_c99=no 3891ac_save_CC=$CC 3892cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3893/* end confdefs.h. */ 3894#include <stdarg.h> 3895#include <stdbool.h> 3896#include <stdlib.h> 3897#include <wchar.h> 3898#include <stdio.h> 3899 3900// Check varargs macros. These examples are taken from C99 6.10.3.5. 3901#define debug(...) fprintf (stderr, __VA_ARGS__) 3902#define showlist(...) puts (#__VA_ARGS__) 3903#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3904static void 3905test_varargs_macros (void) 3906{ 3907 int x = 1234; 3908 int y = 5678; 3909 debug ("Flag"); 3910 debug ("X = %d\n", x); 3911 showlist (The first, second, and third items.); 3912 report (x>y, "x is %d but y is %d", x, y); 3913} 3914 3915// Check long long types. 3916#define BIG64 18446744073709551615ull 3917#define BIG32 4294967295ul 3918#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3919#if !BIG_OK 3920 your preprocessor is broken; 3921#endif 3922#if BIG_OK 3923#else 3924 your preprocessor is broken; 3925#endif 3926static long long int bignum = -9223372036854775807LL; 3927static unsigned long long int ubignum = BIG64; 3928 3929struct incomplete_array 3930{ 3931 int datasize; 3932 double data[]; 3933}; 3934 3935struct named_init { 3936 int number; 3937 const wchar_t *name; 3938 double average; 3939}; 3940 3941typedef const char *ccp; 3942 3943static inline int 3944test_restrict (ccp restrict text) 3945{ 3946 // See if C++-style comments work. 3947 // Iterate through items via the restricted pointer. 3948 // Also check for declarations in for loops. 3949 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3950 continue; 3951 return 0; 3952} 3953 3954// Check varargs and va_copy. 3955static void 3956test_varargs (const char *format, ...) 3957{ 3958 va_list args; 3959 va_start (args, format); 3960 va_list args_copy; 3961 va_copy (args_copy, args); 3962 3963 const char *str; 3964 int number; 3965 float fnumber; 3966 3967 while (*format) 3968 { 3969 switch (*format++) 3970 { 3971 case 's': // string 3972 str = va_arg (args_copy, const char *); 3973 break; 3974 case 'd': // int 3975 number = va_arg (args_copy, int); 3976 break; 3977 case 'f': // float 3978 fnumber = va_arg (args_copy, double); 3979 break; 3980 default: 3981 break; 3982 } 3983 } 3984 va_end (args_copy); 3985 va_end (args); 3986} 3987 3988int 3989main () 3990{ 3991 3992 // Check bool. 3993 _Bool success = false; 3994 3995 // Check restrict. 3996 if (test_restrict ("String literal") == 0) 3997 success = true; 3998 char *restrict newvar = "Another string"; 3999 4000 // Check varargs. 4001 test_varargs ("s, d' f .", "string", 65, 34.234); 4002 test_varargs_macros (); 4003 4004 // Check flexible array members. 4005 struct incomplete_array *ia = 4006 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4007 ia->datasize = 10; 4008 for (int i = 0; i < ia->datasize; ++i) 4009 ia->data[i] = i * 1.234; 4010 4011 // Check named initializers. 4012 struct named_init ni = { 4013 .number = 34, 4014 .name = L"Test wide string", 4015 .average = 543.34343, 4016 }; 4017 4018 ni.number = 58; 4019 4020 int dynamic_array[ni.number]; 4021 dynamic_array[ni.number - 1] = 543; 4022 4023 // work around unused variable warnings 4024 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4025 || dynamic_array[ni.number - 1] != 543); 4026 4027 ; 4028 return 0; 4029} 4030_ACEOF 4031for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4032do 4033 CC="$ac_save_CC $ac_arg" 4034 if ac_fn_c_try_compile "$LINENO"; then : 4035 ac_cv_prog_cc_c99=$ac_arg 4036fi 4037rm -f core conftest.err conftest.$ac_objext 4038 test "x$ac_cv_prog_cc_c99" != "xno" && break 4039done 4040rm -f conftest.$ac_ext 4041CC=$ac_save_CC 4042 4043fi 4044# AC_CACHE_VAL 4045case "x$ac_cv_prog_cc_c99" in 4046 x) 4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4048$as_echo "none needed" >&6; } ;; 4049 xno) 4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4051$as_echo "unsupported" >&6; } ;; 4052 *) 4053 CC="$CC $ac_cv_prog_cc_c99" 4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4055$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4056esac 4057if test "x$ac_cv_prog_cc_c99" != xno; then : 4058 4059fi 4060 4061 4062 4063ac_ext=c 4064ac_cpp='$CPP $CPPFLAGS' 4065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4067ac_compiler_gnu=$ac_cv_c_compiler_gnu 4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4069$as_echo_n "checking how to run the C preprocessor... " >&6; } 4070# On Suns, sometimes $CPP names a directory. 4071if test -n "$CPP" && test -d "$CPP"; then 4072 CPP= 4073fi 4074if test -z "$CPP"; then 4075 if ${ac_cv_prog_CPP+:} false; then : 4076 $as_echo_n "(cached) " >&6 4077else 4078 # Double quotes because CPP needs to be expanded 4079 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4080 do 4081 ac_preproc_ok=false 4082for ac_c_preproc_warn_flag in '' yes 4083do 4084 # Use a header file that comes with gcc, so configuring glibc 4085 # with a fresh cross-compiler works. 4086 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4087 # <limits.h> exists even on freestanding compilers. 4088 # On the NeXT, cc -E runs the code through the compiler's parser, 4089 # not just through cpp. "Syntax error" is here to catch this case. 4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4091/* end confdefs.h. */ 4092#ifdef __STDC__ 4093# include <limits.h> 4094#else 4095# include <assert.h> 4096#endif 4097 Syntax error 4098_ACEOF 4099if ac_fn_c_try_cpp "$LINENO"; then : 4100 4101else 4102 # Broken: fails on valid input. 4103continue 4104fi 4105rm -f conftest.err conftest.i conftest.$ac_ext 4106 4107 # OK, works on sane cases. Now check whether nonexistent headers 4108 # can be detected and how. 4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4110/* end confdefs.h. */ 4111#include <ac_nonexistent.h> 4112_ACEOF 4113if ac_fn_c_try_cpp "$LINENO"; then : 4114 # Broken: success on invalid input. 4115continue 4116else 4117 # Passes both tests. 4118ac_preproc_ok=: 4119break 4120fi 4121rm -f conftest.err conftest.i conftest.$ac_ext 4122 4123done 4124# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4125rm -f conftest.i conftest.err conftest.$ac_ext 4126if $ac_preproc_ok; then : 4127 break 4128fi 4129 4130 done 4131 ac_cv_prog_CPP=$CPP 4132 4133fi 4134 CPP=$ac_cv_prog_CPP 4135else 4136 ac_cv_prog_CPP=$CPP 4137fi 4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4139$as_echo "$CPP" >&6; } 4140ac_preproc_ok=false 4141for ac_c_preproc_warn_flag in '' yes 4142do 4143 # Use a header file that comes with gcc, so configuring glibc 4144 # with a fresh cross-compiler works. 4145 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4146 # <limits.h> exists even on freestanding compilers. 4147 # On the NeXT, cc -E runs the code through the compiler's parser, 4148 # not just through cpp. "Syntax error" is here to catch this case. 4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4150/* end confdefs.h. */ 4151#ifdef __STDC__ 4152# include <limits.h> 4153#else 4154# include <assert.h> 4155#endif 4156 Syntax error 4157_ACEOF 4158if ac_fn_c_try_cpp "$LINENO"; then : 4159 4160else 4161 # Broken: fails on valid input. 4162continue 4163fi 4164rm -f conftest.err conftest.i conftest.$ac_ext 4165 4166 # OK, works on sane cases. Now check whether nonexistent headers 4167 # can be detected and how. 4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4169/* end confdefs.h. */ 4170#include <ac_nonexistent.h> 4171_ACEOF 4172if ac_fn_c_try_cpp "$LINENO"; then : 4173 # Broken: success on invalid input. 4174continue 4175else 4176 # Passes both tests. 4177ac_preproc_ok=: 4178break 4179fi 4180rm -f conftest.err conftest.i conftest.$ac_ext 4181 4182done 4183# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4184rm -f conftest.i conftest.err conftest.$ac_ext 4185if $ac_preproc_ok; then : 4186 4187else 4188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4190as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4191See \`config.log' for more details" "$LINENO" 5; } 4192fi 4193 4194ac_ext=c 4195ac_cpp='$CPP $CPPFLAGS' 4196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4198ac_compiler_gnu=$ac_cv_c_compiler_gnu 4199 4200 4201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4202$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4203if ${ac_cv_path_GREP+:} false; then : 4204 $as_echo_n "(cached) " >&6 4205else 4206 if test -z "$GREP"; then 4207 ac_path_GREP_found=false 4208 # Loop through the user's path and test for each of PROGNAME-LIST 4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4210for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4211do 4212 IFS=$as_save_IFS 4213 test -z "$as_dir" && as_dir=. 4214 for ac_prog in grep ggrep; do 4215 for ac_exec_ext in '' $ac_executable_extensions; do 4216 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4217 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4218# Check for GNU ac_path_GREP and select it if it is found. 4219 # Check for GNU $ac_path_GREP 4220case `"$ac_path_GREP" --version 2>&1` in 4221*GNU*) 4222 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4223*) 4224 ac_count=0 4225 $as_echo_n 0123456789 >"conftest.in" 4226 while : 4227 do 4228 cat "conftest.in" "conftest.in" >"conftest.tmp" 4229 mv "conftest.tmp" "conftest.in" 4230 cp "conftest.in" "conftest.nl" 4231 $as_echo 'GREP' >> "conftest.nl" 4232 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4233 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4234 as_fn_arith $ac_count + 1 && ac_count=$as_val 4235 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4236 # Best one so far, save it but keep looking for a better one 4237 ac_cv_path_GREP="$ac_path_GREP" 4238 ac_path_GREP_max=$ac_count 4239 fi 4240 # 10*(2^10) chars as input seems more than enough 4241 test $ac_count -gt 10 && break 4242 done 4243 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4244esac 4245 4246 $ac_path_GREP_found && break 3 4247 done 4248 done 4249 done 4250IFS=$as_save_IFS 4251 if test -z "$ac_cv_path_GREP"; then 4252 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4253 fi 4254else 4255 ac_cv_path_GREP=$GREP 4256fi 4257 4258fi 4259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4260$as_echo "$ac_cv_path_GREP" >&6; } 4261 GREP="$ac_cv_path_GREP" 4262 4263 4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4265$as_echo_n "checking for egrep... " >&6; } 4266if ${ac_cv_path_EGREP+:} false; then : 4267 $as_echo_n "(cached) " >&6 4268else 4269 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4270 then ac_cv_path_EGREP="$GREP -E" 4271 else 4272 if test -z "$EGREP"; then 4273 ac_path_EGREP_found=false 4274 # Loop through the user's path and test for each of PROGNAME-LIST 4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4276for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4277do 4278 IFS=$as_save_IFS 4279 test -z "$as_dir" && as_dir=. 4280 for ac_prog in egrep; do 4281 for ac_exec_ext in '' $ac_executable_extensions; do 4282 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4283 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4284# Check for GNU ac_path_EGREP and select it if it is found. 4285 # Check for GNU $ac_path_EGREP 4286case `"$ac_path_EGREP" --version 2>&1` in 4287*GNU*) 4288 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4289*) 4290 ac_count=0 4291 $as_echo_n 0123456789 >"conftest.in" 4292 while : 4293 do 4294 cat "conftest.in" "conftest.in" >"conftest.tmp" 4295 mv "conftest.tmp" "conftest.in" 4296 cp "conftest.in" "conftest.nl" 4297 $as_echo 'EGREP' >> "conftest.nl" 4298 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4299 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4300 as_fn_arith $ac_count + 1 && ac_count=$as_val 4301 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4302 # Best one so far, save it but keep looking for a better one 4303 ac_cv_path_EGREP="$ac_path_EGREP" 4304 ac_path_EGREP_max=$ac_count 4305 fi 4306 # 10*(2^10) chars as input seems more than enough 4307 test $ac_count -gt 10 && break 4308 done 4309 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4310esac 4311 4312 $ac_path_EGREP_found && break 3 4313 done 4314 done 4315 done 4316IFS=$as_save_IFS 4317 if test -z "$ac_cv_path_EGREP"; then 4318 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4319 fi 4320else 4321 ac_cv_path_EGREP=$EGREP 4322fi 4323 4324 fi 4325fi 4326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4327$as_echo "$ac_cv_path_EGREP" >&6; } 4328 EGREP="$ac_cv_path_EGREP" 4329 4330 4331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4332$as_echo_n "checking for ANSI C header files... " >&6; } 4333if ${ac_cv_header_stdc+:} false; then : 4334 $as_echo_n "(cached) " >&6 4335else 4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4337/* end confdefs.h. */ 4338#include <stdlib.h> 4339#include <stdarg.h> 4340#include <string.h> 4341#include <float.h> 4342 4343int 4344main () 4345{ 4346 4347 ; 4348 return 0; 4349} 4350_ACEOF 4351if ac_fn_c_try_compile "$LINENO"; then : 4352 ac_cv_header_stdc=yes 4353else 4354 ac_cv_header_stdc=no 4355fi 4356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4357 4358if test $ac_cv_header_stdc = yes; then 4359 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4361/* end confdefs.h. */ 4362#include <string.h> 4363 4364_ACEOF 4365if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4366 $EGREP "memchr" >/dev/null 2>&1; then : 4367 4368else 4369 ac_cv_header_stdc=no 4370fi 4371rm -f conftest* 4372 4373fi 4374 4375if test $ac_cv_header_stdc = yes; then 4376 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4378/* end confdefs.h. */ 4379#include <stdlib.h> 4380 4381_ACEOF 4382if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4383 $EGREP "free" >/dev/null 2>&1; then : 4384 4385else 4386 ac_cv_header_stdc=no 4387fi 4388rm -f conftest* 4389 4390fi 4391 4392if test $ac_cv_header_stdc = yes; then 4393 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4394 if test "$cross_compiling" = yes; then : 4395 : 4396else 4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4398/* end confdefs.h. */ 4399#include <ctype.h> 4400#include <stdlib.h> 4401#if ((' ' & 0x0FF) == 0x020) 4402# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4403# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4404#else 4405# define ISLOWER(c) \ 4406 (('a' <= (c) && (c) <= 'i') \ 4407 || ('j' <= (c) && (c) <= 'r') \ 4408 || ('s' <= (c) && (c) <= 'z')) 4409# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4410#endif 4411 4412#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4413int 4414main () 4415{ 4416 int i; 4417 for (i = 0; i < 256; i++) 4418 if (XOR (islower (i), ISLOWER (i)) 4419 || toupper (i) != TOUPPER (i)) 4420 return 2; 4421 return 0; 4422} 4423_ACEOF 4424if ac_fn_c_try_run "$LINENO"; then : 4425 4426else 4427 ac_cv_header_stdc=no 4428fi 4429rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4430 conftest.$ac_objext conftest.beam conftest.$ac_ext 4431fi 4432 4433fi 4434fi 4435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4436$as_echo "$ac_cv_header_stdc" >&6; } 4437if test $ac_cv_header_stdc = yes; then 4438 4439$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4440 4441fi 4442 4443# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4444for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4445 inttypes.h stdint.h unistd.h 4446do : 4447 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4448ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4449" 4450if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4451 cat >>confdefs.h <<_ACEOF 4452#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4453_ACEOF 4454 4455fi 4456 4457done 4458 4459 4460 4461 4462 4463 4464ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4465if test "x$ac_cv_have_decl___clang__" = xyes; then : 4466 CLANGCC="yes" 4467else 4468 CLANGCC="no" 4469fi 4470 4471ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4472if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4473 INTELCC="yes" 4474else 4475 INTELCC="no" 4476fi 4477 4478ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4479if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4480 SUNCC="yes" 4481else 4482 SUNCC="no" 4483fi 4484 4485 4486 4487 4488if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4489 if test -n "$ac_tool_prefix"; then 4490 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4491set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4493$as_echo_n "checking for $ac_word... " >&6; } 4494if ${ac_cv_path_PKG_CONFIG+:} false; then : 4495 $as_echo_n "(cached) " >&6 4496else 4497 case $PKG_CONFIG in 4498 [\\/]* | ?:[\\/]*) 4499 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4500 ;; 4501 *) 4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4503for as_dir in $PATH 4504do 4505 IFS=$as_save_IFS 4506 test -z "$as_dir" && as_dir=. 4507 for ac_exec_ext in '' $ac_executable_extensions; do 4508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4509 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4511 break 2 4512 fi 4513done 4514 done 4515IFS=$as_save_IFS 4516 4517 ;; 4518esac 4519fi 4520PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4521if test -n "$PKG_CONFIG"; then 4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4523$as_echo "$PKG_CONFIG" >&6; } 4524else 4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4526$as_echo "no" >&6; } 4527fi 4528 4529 4530fi 4531if test -z "$ac_cv_path_PKG_CONFIG"; then 4532 ac_pt_PKG_CONFIG=$PKG_CONFIG 4533 # Extract the first word of "pkg-config", so it can be a program name with args. 4534set dummy pkg-config; ac_word=$2 4535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4536$as_echo_n "checking for $ac_word... " >&6; } 4537if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4538 $as_echo_n "(cached) " >&6 4539else 4540 case $ac_pt_PKG_CONFIG in 4541 [\\/]* | ?:[\\/]*) 4542 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4543 ;; 4544 *) 4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4546for as_dir in $PATH 4547do 4548 IFS=$as_save_IFS 4549 test -z "$as_dir" && as_dir=. 4550 for ac_exec_ext in '' $ac_executable_extensions; do 4551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4552 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4554 break 2 4555 fi 4556done 4557 done 4558IFS=$as_save_IFS 4559 4560 ;; 4561esac 4562fi 4563ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4564if test -n "$ac_pt_PKG_CONFIG"; then 4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4566$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4567else 4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4569$as_echo "no" >&6; } 4570fi 4571 4572 if test "x$ac_pt_PKG_CONFIG" = x; then 4573 PKG_CONFIG="" 4574 else 4575 case $cross_compiling:$ac_tool_warned in 4576yes:) 4577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4579ac_tool_warned=yes ;; 4580esac 4581 PKG_CONFIG=$ac_pt_PKG_CONFIG 4582 fi 4583else 4584 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4585fi 4586 4587fi 4588if test -n "$PKG_CONFIG"; then 4589 _pkg_min_version=0.9.0 4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4591$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4592 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4594$as_echo "yes" >&6; } 4595 else 4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4597$as_echo "no" >&6; } 4598 PKG_CONFIG="" 4599 fi 4600 4601fi 4602# Make sure we can run config.sub. 4603$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4604 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4605 4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4607$as_echo_n "checking build system type... " >&6; } 4608if ${ac_cv_build+:} false; then : 4609 $as_echo_n "(cached) " >&6 4610else 4611 ac_build_alias=$build_alias 4612test "x$ac_build_alias" = x && 4613 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4614test "x$ac_build_alias" = x && 4615 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4616ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4617 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4618 4619fi 4620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4621$as_echo "$ac_cv_build" >&6; } 4622case $ac_cv_build in 4623*-*-*) ;; 4624*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4625esac 4626build=$ac_cv_build 4627ac_save_IFS=$IFS; IFS='-' 4628set x $ac_cv_build 4629shift 4630build_cpu=$1 4631build_vendor=$2 4632shift; shift 4633# Remember, the first character of IFS is used to create $*, 4634# except with old shells: 4635build_os=$* 4636IFS=$ac_save_IFS 4637case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4638 4639 4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4641$as_echo_n "checking host system type... " >&6; } 4642if ${ac_cv_host+:} false; then : 4643 $as_echo_n "(cached) " >&6 4644else 4645 if test "x$host_alias" = x; then 4646 ac_cv_host=$ac_cv_build 4647else 4648 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4649 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4650fi 4651 4652fi 4653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4654$as_echo "$ac_cv_host" >&6; } 4655case $ac_cv_host in 4656*-*-*) ;; 4657*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4658esac 4659host=$ac_cv_host 4660ac_save_IFS=$IFS; IFS='-' 4661set x $ac_cv_host 4662shift 4663host_cpu=$1 4664host_vendor=$2 4665shift; shift 4666# Remember, the first character of IFS is used to create $*, 4667# except with old shells: 4668host_os=$* 4669IFS=$ac_save_IFS 4670case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4671 4672 4673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4674$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4675if ${ac_cv_path_SED+:} false; then : 4676 $as_echo_n "(cached) " >&6 4677else 4678 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4679 for ac_i in 1 2 3 4 5 6 7; do 4680 ac_script="$ac_script$as_nl$ac_script" 4681 done 4682 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4683 { ac_script=; unset ac_script;} 4684 if test -z "$SED"; then 4685 ac_path_SED_found=false 4686 # Loop through the user's path and test for each of PROGNAME-LIST 4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4688for as_dir in $PATH 4689do 4690 IFS=$as_save_IFS 4691 test -z "$as_dir" && as_dir=. 4692 for ac_prog in sed gsed; do 4693 for ac_exec_ext in '' $ac_executable_extensions; do 4694 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4695 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4696# Check for GNU ac_path_SED and select it if it is found. 4697 # Check for GNU $ac_path_SED 4698case `"$ac_path_SED" --version 2>&1` in 4699*GNU*) 4700 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4701*) 4702 ac_count=0 4703 $as_echo_n 0123456789 >"conftest.in" 4704 while : 4705 do 4706 cat "conftest.in" "conftest.in" >"conftest.tmp" 4707 mv "conftest.tmp" "conftest.in" 4708 cp "conftest.in" "conftest.nl" 4709 $as_echo '' >> "conftest.nl" 4710 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4711 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4712 as_fn_arith $ac_count + 1 && ac_count=$as_val 4713 if test $ac_count -gt ${ac_path_SED_max-0}; then 4714 # Best one so far, save it but keep looking for a better one 4715 ac_cv_path_SED="$ac_path_SED" 4716 ac_path_SED_max=$ac_count 4717 fi 4718 # 10*(2^10) chars as input seems more than enough 4719 test $ac_count -gt 10 && break 4720 done 4721 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4722esac 4723 4724 $ac_path_SED_found && break 3 4725 done 4726 done 4727 done 4728IFS=$as_save_IFS 4729 if test -z "$ac_cv_path_SED"; then 4730 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4731 fi 4732else 4733 ac_cv_path_SED=$SED 4734fi 4735 4736fi 4737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4738$as_echo "$ac_cv_path_SED" >&6; } 4739 SED="$ac_cv_path_SED" 4740 rm -f conftest.sed 4741 4742 4743 4744 4745 4746 4747# Check whether --enable-selective-werror was given. 4748if test "${enable_selective_werror+set}" = set; then : 4749 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4750else 4751 SELECTIVE_WERROR=yes 4752fi 4753 4754 4755 4756 4757 4758# -v is too short to test reliably with XORG_TESTSET_CFLAG 4759if test "x$SUNCC" = "xyes"; then 4760 BASE_CFLAGS="-v" 4761else 4762 BASE_CFLAGS="" 4763fi 4764 4765# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779xorg_testset_save_CFLAGS="$CFLAGS" 4780 4781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4784$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4785if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4786 $as_echo_n "(cached) " >&6 4787else 4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4789/* end confdefs.h. */ 4790int i; 4791_ACEOF 4792if ac_fn_c_try_compile "$LINENO"; then : 4793 xorg_cv_cc_flag_unknown_warning_option=yes 4794else 4795 xorg_cv_cc_flag_unknown_warning_option=no 4796fi 4797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4798fi 4799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4800$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4802 CFLAGS="$xorg_testset_save_CFLAGS" 4803fi 4804 4805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4808 fi 4809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4811$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4812if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4813 $as_echo_n "(cached) " >&6 4814else 4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4816/* end confdefs.h. */ 4817int i; 4818_ACEOF 4819if ac_fn_c_try_compile "$LINENO"; then : 4820 xorg_cv_cc_flag_unused_command_line_argument=yes 4821else 4822 xorg_cv_cc_flag_unused_command_line_argument=no 4823fi 4824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4825fi 4826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4827$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4828 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4829 CFLAGS="$xorg_testset_save_CFLAGS" 4830fi 4831 4832found="no" 4833 4834 if test $found = "no" ; then 4835 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4837 fi 4838 4839 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4841 fi 4842 4843 CFLAGS="$CFLAGS -Wall" 4844 4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4846$as_echo_n "checking if $CC supports -Wall... " >&6; } 4847 cacheid=xorg_cv_cc_flag__Wall 4848 if eval \${$cacheid+:} false; then : 4849 $as_echo_n "(cached) " >&6 4850else 4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4852/* end confdefs.h. */ 4853int i; 4854int 4855main () 4856{ 4857 4858 ; 4859 return 0; 4860} 4861_ACEOF 4862if ac_fn_c_try_link "$LINENO"; then : 4863 eval $cacheid=yes 4864else 4865 eval $cacheid=no 4866fi 4867rm -f core conftest.err conftest.$ac_objext \ 4868 conftest$ac_exeext conftest.$ac_ext 4869fi 4870 4871 4872 CFLAGS="$xorg_testset_save_CFLAGS" 4873 4874 eval supported=\$$cacheid 4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4876$as_echo "$supported" >&6; } 4877 if test "$supported" = "yes" ; then 4878 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4879 found="yes" 4880 fi 4881 fi 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897xorg_testset_save_CFLAGS="$CFLAGS" 4898 4899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4902$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4903if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4904 $as_echo_n "(cached) " >&6 4905else 4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4907/* end confdefs.h. */ 4908int i; 4909_ACEOF 4910if ac_fn_c_try_compile "$LINENO"; then : 4911 xorg_cv_cc_flag_unknown_warning_option=yes 4912else 4913 xorg_cv_cc_flag_unknown_warning_option=no 4914fi 4915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4916fi 4917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4918$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4919 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4920 CFLAGS="$xorg_testset_save_CFLAGS" 4921fi 4922 4923if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4926 fi 4927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4929$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4930if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4931 $as_echo_n "(cached) " >&6 4932else 4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4934/* end confdefs.h. */ 4935int i; 4936_ACEOF 4937if ac_fn_c_try_compile "$LINENO"; then : 4938 xorg_cv_cc_flag_unused_command_line_argument=yes 4939else 4940 xorg_cv_cc_flag_unused_command_line_argument=no 4941fi 4942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4943fi 4944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4945$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4947 CFLAGS="$xorg_testset_save_CFLAGS" 4948fi 4949 4950found="no" 4951 4952 if test $found = "no" ; then 4953 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4955 fi 4956 4957 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4959 fi 4960 4961 CFLAGS="$CFLAGS -Wpointer-arith" 4962 4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4964$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4965 cacheid=xorg_cv_cc_flag__Wpointer_arith 4966 if eval \${$cacheid+:} false; then : 4967 $as_echo_n "(cached) " >&6 4968else 4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4970/* end confdefs.h. */ 4971int i; 4972int 4973main () 4974{ 4975 4976 ; 4977 return 0; 4978} 4979_ACEOF 4980if ac_fn_c_try_link "$LINENO"; then : 4981 eval $cacheid=yes 4982else 4983 eval $cacheid=no 4984fi 4985rm -f core conftest.err conftest.$ac_objext \ 4986 conftest$ac_exeext conftest.$ac_ext 4987fi 4988 4989 4990 CFLAGS="$xorg_testset_save_CFLAGS" 4991 4992 eval supported=\$$cacheid 4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4994$as_echo "$supported" >&6; } 4995 if test "$supported" = "yes" ; then 4996 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4997 found="yes" 4998 fi 4999 fi 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015xorg_testset_save_CFLAGS="$CFLAGS" 5016 5017if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5020$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5021if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5022 $as_echo_n "(cached) " >&6 5023else 5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5025/* end confdefs.h. */ 5026int i; 5027_ACEOF 5028if ac_fn_c_try_compile "$LINENO"; then : 5029 xorg_cv_cc_flag_unknown_warning_option=yes 5030else 5031 xorg_cv_cc_flag_unknown_warning_option=no 5032fi 5033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5034fi 5035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5036$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5037 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5038 CFLAGS="$xorg_testset_save_CFLAGS" 5039fi 5040 5041if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5044 fi 5045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5047$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5048if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5049 $as_echo_n "(cached) " >&6 5050else 5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5052/* end confdefs.h. */ 5053int i; 5054_ACEOF 5055if ac_fn_c_try_compile "$LINENO"; then : 5056 xorg_cv_cc_flag_unused_command_line_argument=yes 5057else 5058 xorg_cv_cc_flag_unused_command_line_argument=no 5059fi 5060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5061fi 5062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5063$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5065 CFLAGS="$xorg_testset_save_CFLAGS" 5066fi 5067 5068found="no" 5069 5070 if test $found = "no" ; then 5071 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5073 fi 5074 5075 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5077 fi 5078 5079 CFLAGS="$CFLAGS -Wmissing-declarations" 5080 5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5082$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5083 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5084 if eval \${$cacheid+:} false; then : 5085 $as_echo_n "(cached) " >&6 5086else 5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5088/* end confdefs.h. */ 5089int i; 5090int 5091main () 5092{ 5093 5094 ; 5095 return 0; 5096} 5097_ACEOF 5098if ac_fn_c_try_link "$LINENO"; then : 5099 eval $cacheid=yes 5100else 5101 eval $cacheid=no 5102fi 5103rm -f core conftest.err conftest.$ac_objext \ 5104 conftest$ac_exeext conftest.$ac_ext 5105fi 5106 5107 5108 CFLAGS="$xorg_testset_save_CFLAGS" 5109 5110 eval supported=\$$cacheid 5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5112$as_echo "$supported" >&6; } 5113 if test "$supported" = "yes" ; then 5114 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5115 found="yes" 5116 fi 5117 fi 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133xorg_testset_save_CFLAGS="$CFLAGS" 5134 5135if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5138$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5139if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5140 $as_echo_n "(cached) " >&6 5141else 5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5143/* end confdefs.h. */ 5144int i; 5145_ACEOF 5146if ac_fn_c_try_compile "$LINENO"; then : 5147 xorg_cv_cc_flag_unknown_warning_option=yes 5148else 5149 xorg_cv_cc_flag_unknown_warning_option=no 5150fi 5151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5152fi 5153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5154$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5155 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5156 CFLAGS="$xorg_testset_save_CFLAGS" 5157fi 5158 5159if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5162 fi 5163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5165$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5166if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5167 $as_echo_n "(cached) " >&6 5168else 5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5170/* end confdefs.h. */ 5171int i; 5172_ACEOF 5173if ac_fn_c_try_compile "$LINENO"; then : 5174 xorg_cv_cc_flag_unused_command_line_argument=yes 5175else 5176 xorg_cv_cc_flag_unused_command_line_argument=no 5177fi 5178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5179fi 5180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5181$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5182 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5183 CFLAGS="$xorg_testset_save_CFLAGS" 5184fi 5185 5186found="no" 5187 5188 if test $found = "no" ; then 5189 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5191 fi 5192 5193 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5195 fi 5196 5197 CFLAGS="$CFLAGS -Wformat=2" 5198 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5200$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5201 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 5202 if eval \${$cacheid+:} false; then : 5203 $as_echo_n "(cached) " >&6 5204else 5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5206/* end confdefs.h. */ 5207int i; 5208int 5209main () 5210{ 5211 5212 ; 5213 return 0; 5214} 5215_ACEOF 5216if ac_fn_c_try_link "$LINENO"; then : 5217 eval $cacheid=yes 5218else 5219 eval $cacheid=no 5220fi 5221rm -f core conftest.err conftest.$ac_objext \ 5222 conftest$ac_exeext conftest.$ac_ext 5223fi 5224 5225 5226 CFLAGS="$xorg_testset_save_CFLAGS" 5227 5228 eval supported=\$$cacheid 5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5230$as_echo "$supported" >&6; } 5231 if test "$supported" = "yes" ; then 5232 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5233 found="yes" 5234 fi 5235 fi 5236 5237 if test $found = "no" ; then 5238 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5240 fi 5241 5242 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5244 fi 5245 5246 CFLAGS="$CFLAGS -Wformat" 5247 5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5249$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5250 cacheid=xorg_cv_cc_flag__Wformat 5251 if eval \${$cacheid+:} false; then : 5252 $as_echo_n "(cached) " >&6 5253else 5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5255/* end confdefs.h. */ 5256int i; 5257int 5258main () 5259{ 5260 5261 ; 5262 return 0; 5263} 5264_ACEOF 5265if ac_fn_c_try_link "$LINENO"; then : 5266 eval $cacheid=yes 5267else 5268 eval $cacheid=no 5269fi 5270rm -f core conftest.err conftest.$ac_objext \ 5271 conftest$ac_exeext conftest.$ac_ext 5272fi 5273 5274 5275 CFLAGS="$xorg_testset_save_CFLAGS" 5276 5277 eval supported=\$$cacheid 5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5279$as_echo "$supported" >&6; } 5280 if test "$supported" = "yes" ; then 5281 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5282 found="yes" 5283 fi 5284 fi 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302xorg_testset_save_CFLAGS="$CFLAGS" 5303 5304if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5307$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5308if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5309 $as_echo_n "(cached) " >&6 5310else 5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5312/* end confdefs.h. */ 5313int i; 5314_ACEOF 5315if ac_fn_c_try_compile "$LINENO"; then : 5316 xorg_cv_cc_flag_unknown_warning_option=yes 5317else 5318 xorg_cv_cc_flag_unknown_warning_option=no 5319fi 5320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5321fi 5322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5323$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5324 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5325 CFLAGS="$xorg_testset_save_CFLAGS" 5326fi 5327 5328if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5331 fi 5332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5334$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5335if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5336 $as_echo_n "(cached) " >&6 5337else 5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5339/* end confdefs.h. */ 5340int i; 5341_ACEOF 5342if ac_fn_c_try_compile "$LINENO"; then : 5343 xorg_cv_cc_flag_unused_command_line_argument=yes 5344else 5345 xorg_cv_cc_flag_unused_command_line_argument=no 5346fi 5347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5348fi 5349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5350$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5351 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5352 CFLAGS="$xorg_testset_save_CFLAGS" 5353fi 5354 5355found="no" 5356 5357 if test $found = "no" ; then 5358 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5360 fi 5361 5362 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5364 fi 5365 5366 CFLAGS="$CFLAGS -Wstrict-prototypes" 5367 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5369$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5370 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5371 if eval \${$cacheid+:} false; then : 5372 $as_echo_n "(cached) " >&6 5373else 5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5375/* end confdefs.h. */ 5376int i; 5377int 5378main () 5379{ 5380 5381 ; 5382 return 0; 5383} 5384_ACEOF 5385if ac_fn_c_try_link "$LINENO"; then : 5386 eval $cacheid=yes 5387else 5388 eval $cacheid=no 5389fi 5390rm -f core conftest.err conftest.$ac_objext \ 5391 conftest$ac_exeext conftest.$ac_ext 5392fi 5393 5394 5395 CFLAGS="$xorg_testset_save_CFLAGS" 5396 5397 eval supported=\$$cacheid 5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5399$as_echo "$supported" >&6; } 5400 if test "$supported" = "yes" ; then 5401 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5402 found="yes" 5403 fi 5404 fi 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420xorg_testset_save_CFLAGS="$CFLAGS" 5421 5422if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5425$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5426if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5427 $as_echo_n "(cached) " >&6 5428else 5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5430/* end confdefs.h. */ 5431int i; 5432_ACEOF 5433if ac_fn_c_try_compile "$LINENO"; then : 5434 xorg_cv_cc_flag_unknown_warning_option=yes 5435else 5436 xorg_cv_cc_flag_unknown_warning_option=no 5437fi 5438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5439fi 5440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5441$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5442 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5443 CFLAGS="$xorg_testset_save_CFLAGS" 5444fi 5445 5446if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5449 fi 5450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5452$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5453if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5454 $as_echo_n "(cached) " >&6 5455else 5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5457/* end confdefs.h. */ 5458int i; 5459_ACEOF 5460if ac_fn_c_try_compile "$LINENO"; then : 5461 xorg_cv_cc_flag_unused_command_line_argument=yes 5462else 5463 xorg_cv_cc_flag_unused_command_line_argument=no 5464fi 5465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5466fi 5467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5468$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5469 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5470 CFLAGS="$xorg_testset_save_CFLAGS" 5471fi 5472 5473found="no" 5474 5475 if test $found = "no" ; then 5476 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5478 fi 5479 5480 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5482 fi 5483 5484 CFLAGS="$CFLAGS -Wmissing-prototypes" 5485 5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5487$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5488 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5489 if eval \${$cacheid+:} false; then : 5490 $as_echo_n "(cached) " >&6 5491else 5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5493/* end confdefs.h. */ 5494int i; 5495int 5496main () 5497{ 5498 5499 ; 5500 return 0; 5501} 5502_ACEOF 5503if ac_fn_c_try_link "$LINENO"; then : 5504 eval $cacheid=yes 5505else 5506 eval $cacheid=no 5507fi 5508rm -f core conftest.err conftest.$ac_objext \ 5509 conftest$ac_exeext conftest.$ac_ext 5510fi 5511 5512 5513 CFLAGS="$xorg_testset_save_CFLAGS" 5514 5515 eval supported=\$$cacheid 5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5517$as_echo "$supported" >&6; } 5518 if test "$supported" = "yes" ; then 5519 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5520 found="yes" 5521 fi 5522 fi 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538xorg_testset_save_CFLAGS="$CFLAGS" 5539 5540if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5543$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5544if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5545 $as_echo_n "(cached) " >&6 5546else 5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5548/* end confdefs.h. */ 5549int i; 5550_ACEOF 5551if ac_fn_c_try_compile "$LINENO"; then : 5552 xorg_cv_cc_flag_unknown_warning_option=yes 5553else 5554 xorg_cv_cc_flag_unknown_warning_option=no 5555fi 5556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5557fi 5558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5559$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5560 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5561 CFLAGS="$xorg_testset_save_CFLAGS" 5562fi 5563 5564if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5567 fi 5568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5570$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5571if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5572 $as_echo_n "(cached) " >&6 5573else 5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5575/* end confdefs.h. */ 5576int i; 5577_ACEOF 5578if ac_fn_c_try_compile "$LINENO"; then : 5579 xorg_cv_cc_flag_unused_command_line_argument=yes 5580else 5581 xorg_cv_cc_flag_unused_command_line_argument=no 5582fi 5583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5584fi 5585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5586$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5587 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5588 CFLAGS="$xorg_testset_save_CFLAGS" 5589fi 5590 5591found="no" 5592 5593 if test $found = "no" ; then 5594 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5596 fi 5597 5598 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5600 fi 5601 5602 CFLAGS="$CFLAGS -Wnested-externs" 5603 5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5605$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5606 cacheid=xorg_cv_cc_flag__Wnested_externs 5607 if eval \${$cacheid+:} false; then : 5608 $as_echo_n "(cached) " >&6 5609else 5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5611/* end confdefs.h. */ 5612int i; 5613int 5614main () 5615{ 5616 5617 ; 5618 return 0; 5619} 5620_ACEOF 5621if ac_fn_c_try_link "$LINENO"; then : 5622 eval $cacheid=yes 5623else 5624 eval $cacheid=no 5625fi 5626rm -f core conftest.err conftest.$ac_objext \ 5627 conftest$ac_exeext conftest.$ac_ext 5628fi 5629 5630 5631 CFLAGS="$xorg_testset_save_CFLAGS" 5632 5633 eval supported=\$$cacheid 5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5635$as_echo "$supported" >&6; } 5636 if test "$supported" = "yes" ; then 5637 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5638 found="yes" 5639 fi 5640 fi 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656xorg_testset_save_CFLAGS="$CFLAGS" 5657 5658if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5661$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5662if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5663 $as_echo_n "(cached) " >&6 5664else 5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5666/* end confdefs.h. */ 5667int i; 5668_ACEOF 5669if ac_fn_c_try_compile "$LINENO"; then : 5670 xorg_cv_cc_flag_unknown_warning_option=yes 5671else 5672 xorg_cv_cc_flag_unknown_warning_option=no 5673fi 5674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5675fi 5676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5677$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5678 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5679 CFLAGS="$xorg_testset_save_CFLAGS" 5680fi 5681 5682if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5685 fi 5686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5688$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5689if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5690 $as_echo_n "(cached) " >&6 5691else 5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5693/* end confdefs.h. */ 5694int i; 5695_ACEOF 5696if ac_fn_c_try_compile "$LINENO"; then : 5697 xorg_cv_cc_flag_unused_command_line_argument=yes 5698else 5699 xorg_cv_cc_flag_unused_command_line_argument=no 5700fi 5701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5702fi 5703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5704$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5705 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5706 CFLAGS="$xorg_testset_save_CFLAGS" 5707fi 5708 5709found="no" 5710 5711 if test $found = "no" ; then 5712 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5714 fi 5715 5716 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5718 fi 5719 5720 CFLAGS="$CFLAGS -Wbad-function-cast" 5721 5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5723$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5724 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5725 if eval \${$cacheid+:} false; then : 5726 $as_echo_n "(cached) " >&6 5727else 5728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5729/* end confdefs.h. */ 5730int i; 5731int 5732main () 5733{ 5734 5735 ; 5736 return 0; 5737} 5738_ACEOF 5739if ac_fn_c_try_link "$LINENO"; then : 5740 eval $cacheid=yes 5741else 5742 eval $cacheid=no 5743fi 5744rm -f core conftest.err conftest.$ac_objext \ 5745 conftest$ac_exeext conftest.$ac_ext 5746fi 5747 5748 5749 CFLAGS="$xorg_testset_save_CFLAGS" 5750 5751 eval supported=\$$cacheid 5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5753$as_echo "$supported" >&6; } 5754 if test "$supported" = "yes" ; then 5755 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5756 found="yes" 5757 fi 5758 fi 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774xorg_testset_save_CFLAGS="$CFLAGS" 5775 5776if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5779$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5780if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5781 $as_echo_n "(cached) " >&6 5782else 5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5784/* end confdefs.h. */ 5785int i; 5786_ACEOF 5787if ac_fn_c_try_compile "$LINENO"; then : 5788 xorg_cv_cc_flag_unknown_warning_option=yes 5789else 5790 xorg_cv_cc_flag_unknown_warning_option=no 5791fi 5792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5793fi 5794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5795$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5796 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5797 CFLAGS="$xorg_testset_save_CFLAGS" 5798fi 5799 5800if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5803 fi 5804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5806$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5807if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5808 $as_echo_n "(cached) " >&6 5809else 5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5811/* end confdefs.h. */ 5812int i; 5813_ACEOF 5814if ac_fn_c_try_compile "$LINENO"; then : 5815 xorg_cv_cc_flag_unused_command_line_argument=yes 5816else 5817 xorg_cv_cc_flag_unused_command_line_argument=no 5818fi 5819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5820fi 5821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5822$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5823 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5824 CFLAGS="$xorg_testset_save_CFLAGS" 5825fi 5826 5827found="no" 5828 5829 if test $found = "no" ; then 5830 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5832 fi 5833 5834 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5836 fi 5837 5838 CFLAGS="$CFLAGS -Wold-style-definition" 5839 5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5841$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5842 cacheid=xorg_cv_cc_flag__Wold_style_definition 5843 if eval \${$cacheid+:} false; then : 5844 $as_echo_n "(cached) " >&6 5845else 5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5847/* end confdefs.h. */ 5848int i; 5849int 5850main () 5851{ 5852 5853 ; 5854 return 0; 5855} 5856_ACEOF 5857if ac_fn_c_try_link "$LINENO"; then : 5858 eval $cacheid=yes 5859else 5860 eval $cacheid=no 5861fi 5862rm -f core conftest.err conftest.$ac_objext \ 5863 conftest$ac_exeext conftest.$ac_ext 5864fi 5865 5866 5867 CFLAGS="$xorg_testset_save_CFLAGS" 5868 5869 eval supported=\$$cacheid 5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5871$as_echo "$supported" >&6; } 5872 if test "$supported" = "yes" ; then 5873 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5874 found="yes" 5875 fi 5876 fi 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892xorg_testset_save_CFLAGS="$CFLAGS" 5893 5894if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5897$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5898if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5899 $as_echo_n "(cached) " >&6 5900else 5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5902/* end confdefs.h. */ 5903int i; 5904_ACEOF 5905if ac_fn_c_try_compile "$LINENO"; then : 5906 xorg_cv_cc_flag_unknown_warning_option=yes 5907else 5908 xorg_cv_cc_flag_unknown_warning_option=no 5909fi 5910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5911fi 5912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5913$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5914 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5915 CFLAGS="$xorg_testset_save_CFLAGS" 5916fi 5917 5918if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5921 fi 5922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5924$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5925if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5926 $as_echo_n "(cached) " >&6 5927else 5928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5929/* end confdefs.h. */ 5930int i; 5931_ACEOF 5932if ac_fn_c_try_compile "$LINENO"; then : 5933 xorg_cv_cc_flag_unused_command_line_argument=yes 5934else 5935 xorg_cv_cc_flag_unused_command_line_argument=no 5936fi 5937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5938fi 5939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5940$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5941 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5942 CFLAGS="$xorg_testset_save_CFLAGS" 5943fi 5944 5945found="no" 5946 5947 if test $found = "no" ; then 5948 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5950 fi 5951 5952 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5954 fi 5955 5956 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5957 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5959$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5960 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5961 if eval \${$cacheid+:} false; then : 5962 $as_echo_n "(cached) " >&6 5963else 5964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5965/* end confdefs.h. */ 5966int i; 5967int 5968main () 5969{ 5970 5971 ; 5972 return 0; 5973} 5974_ACEOF 5975if ac_fn_c_try_link "$LINENO"; then : 5976 eval $cacheid=yes 5977else 5978 eval $cacheid=no 5979fi 5980rm -f core conftest.err conftest.$ac_objext \ 5981 conftest$ac_exeext conftest.$ac_ext 5982fi 5983 5984 5985 CFLAGS="$xorg_testset_save_CFLAGS" 5986 5987 eval supported=\$$cacheid 5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5989$as_echo "$supported" >&6; } 5990 if test "$supported" = "yes" ; then 5991 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5992 found="yes" 5993 fi 5994 fi 5995 5996 5997 5998 5999 6000# This chunk adds additional warnings that could catch undesired effects. 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014xorg_testset_save_CFLAGS="$CFLAGS" 6015 6016if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6019$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6020if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6021 $as_echo_n "(cached) " >&6 6022else 6023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6024/* end confdefs.h. */ 6025int i; 6026_ACEOF 6027if ac_fn_c_try_compile "$LINENO"; then : 6028 xorg_cv_cc_flag_unknown_warning_option=yes 6029else 6030 xorg_cv_cc_flag_unknown_warning_option=no 6031fi 6032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6033fi 6034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6035$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6037 CFLAGS="$xorg_testset_save_CFLAGS" 6038fi 6039 6040if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6043 fi 6044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6046$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6047if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6048 $as_echo_n "(cached) " >&6 6049else 6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6051/* end confdefs.h. */ 6052int i; 6053_ACEOF 6054if ac_fn_c_try_compile "$LINENO"; then : 6055 xorg_cv_cc_flag_unused_command_line_argument=yes 6056else 6057 xorg_cv_cc_flag_unused_command_line_argument=no 6058fi 6059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6060fi 6061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6062$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6064 CFLAGS="$xorg_testset_save_CFLAGS" 6065fi 6066 6067found="no" 6068 6069 if test $found = "no" ; then 6070 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6072 fi 6073 6074 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6076 fi 6077 6078 CFLAGS="$CFLAGS -Wunused" 6079 6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6081$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6082 cacheid=xorg_cv_cc_flag__Wunused 6083 if eval \${$cacheid+:} false; then : 6084 $as_echo_n "(cached) " >&6 6085else 6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6087/* end confdefs.h. */ 6088int i; 6089int 6090main () 6091{ 6092 6093 ; 6094 return 0; 6095} 6096_ACEOF 6097if ac_fn_c_try_link "$LINENO"; then : 6098 eval $cacheid=yes 6099else 6100 eval $cacheid=no 6101fi 6102rm -f core conftest.err conftest.$ac_objext \ 6103 conftest$ac_exeext conftest.$ac_ext 6104fi 6105 6106 6107 CFLAGS="$xorg_testset_save_CFLAGS" 6108 6109 eval supported=\$$cacheid 6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6111$as_echo "$supported" >&6; } 6112 if test "$supported" = "yes" ; then 6113 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6114 found="yes" 6115 fi 6116 fi 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132xorg_testset_save_CFLAGS="$CFLAGS" 6133 6134if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6137$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6138if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6139 $as_echo_n "(cached) " >&6 6140else 6141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6142/* end confdefs.h. */ 6143int i; 6144_ACEOF 6145if ac_fn_c_try_compile "$LINENO"; then : 6146 xorg_cv_cc_flag_unknown_warning_option=yes 6147else 6148 xorg_cv_cc_flag_unknown_warning_option=no 6149fi 6150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6151fi 6152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6153$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6155 CFLAGS="$xorg_testset_save_CFLAGS" 6156fi 6157 6158if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6161 fi 6162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6164$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6165if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6166 $as_echo_n "(cached) " >&6 6167else 6168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6169/* end confdefs.h. */ 6170int i; 6171_ACEOF 6172if ac_fn_c_try_compile "$LINENO"; then : 6173 xorg_cv_cc_flag_unused_command_line_argument=yes 6174else 6175 xorg_cv_cc_flag_unused_command_line_argument=no 6176fi 6177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6178fi 6179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6180$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6181 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6182 CFLAGS="$xorg_testset_save_CFLAGS" 6183fi 6184 6185found="no" 6186 6187 if test $found = "no" ; then 6188 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6190 fi 6191 6192 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6194 fi 6195 6196 CFLAGS="$CFLAGS -Wuninitialized" 6197 6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6199$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6200 cacheid=xorg_cv_cc_flag__Wuninitialized 6201 if eval \${$cacheid+:} false; then : 6202 $as_echo_n "(cached) " >&6 6203else 6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6205/* end confdefs.h. */ 6206int i; 6207int 6208main () 6209{ 6210 6211 ; 6212 return 0; 6213} 6214_ACEOF 6215if ac_fn_c_try_link "$LINENO"; then : 6216 eval $cacheid=yes 6217else 6218 eval $cacheid=no 6219fi 6220rm -f core conftest.err conftest.$ac_objext \ 6221 conftest$ac_exeext conftest.$ac_ext 6222fi 6223 6224 6225 CFLAGS="$xorg_testset_save_CFLAGS" 6226 6227 eval supported=\$$cacheid 6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6229$as_echo "$supported" >&6; } 6230 if test "$supported" = "yes" ; then 6231 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6232 found="yes" 6233 fi 6234 fi 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250xorg_testset_save_CFLAGS="$CFLAGS" 6251 6252if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6255$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6256if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6257 $as_echo_n "(cached) " >&6 6258else 6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6260/* end confdefs.h. */ 6261int i; 6262_ACEOF 6263if ac_fn_c_try_compile "$LINENO"; then : 6264 xorg_cv_cc_flag_unknown_warning_option=yes 6265else 6266 xorg_cv_cc_flag_unknown_warning_option=no 6267fi 6268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6269fi 6270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6271$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6272 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6273 CFLAGS="$xorg_testset_save_CFLAGS" 6274fi 6275 6276if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6279 fi 6280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6282$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6283if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6284 $as_echo_n "(cached) " >&6 6285else 6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6287/* end confdefs.h. */ 6288int i; 6289_ACEOF 6290if ac_fn_c_try_compile "$LINENO"; then : 6291 xorg_cv_cc_flag_unused_command_line_argument=yes 6292else 6293 xorg_cv_cc_flag_unused_command_line_argument=no 6294fi 6295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6296fi 6297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6298$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6299 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6300 CFLAGS="$xorg_testset_save_CFLAGS" 6301fi 6302 6303found="no" 6304 6305 if test $found = "no" ; then 6306 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6308 fi 6309 6310 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6312 fi 6313 6314 CFLAGS="$CFLAGS -Wshadow" 6315 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6317$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6318 cacheid=xorg_cv_cc_flag__Wshadow 6319 if eval \${$cacheid+:} false; then : 6320 $as_echo_n "(cached) " >&6 6321else 6322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6323/* end confdefs.h. */ 6324int i; 6325int 6326main () 6327{ 6328 6329 ; 6330 return 0; 6331} 6332_ACEOF 6333if ac_fn_c_try_link "$LINENO"; then : 6334 eval $cacheid=yes 6335else 6336 eval $cacheid=no 6337fi 6338rm -f core conftest.err conftest.$ac_objext \ 6339 conftest$ac_exeext conftest.$ac_ext 6340fi 6341 6342 6343 CFLAGS="$xorg_testset_save_CFLAGS" 6344 6345 eval supported=\$$cacheid 6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6347$as_echo "$supported" >&6; } 6348 if test "$supported" = "yes" ; then 6349 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6350 found="yes" 6351 fi 6352 fi 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368xorg_testset_save_CFLAGS="$CFLAGS" 6369 6370if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6373$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6374if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6375 $as_echo_n "(cached) " >&6 6376else 6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6378/* end confdefs.h. */ 6379int i; 6380_ACEOF 6381if ac_fn_c_try_compile "$LINENO"; then : 6382 xorg_cv_cc_flag_unknown_warning_option=yes 6383else 6384 xorg_cv_cc_flag_unknown_warning_option=no 6385fi 6386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6387fi 6388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6389$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6391 CFLAGS="$xorg_testset_save_CFLAGS" 6392fi 6393 6394if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6397 fi 6398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6400$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6401if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6402 $as_echo_n "(cached) " >&6 6403else 6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6405/* end confdefs.h. */ 6406int i; 6407_ACEOF 6408if ac_fn_c_try_compile "$LINENO"; then : 6409 xorg_cv_cc_flag_unused_command_line_argument=yes 6410else 6411 xorg_cv_cc_flag_unused_command_line_argument=no 6412fi 6413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6414fi 6415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6416$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6417 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6418 CFLAGS="$xorg_testset_save_CFLAGS" 6419fi 6420 6421found="no" 6422 6423 if test $found = "no" ; then 6424 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6426 fi 6427 6428 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6430 fi 6431 6432 CFLAGS="$CFLAGS -Wcast-qual" 6433 6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6435$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6436 cacheid=xorg_cv_cc_flag__Wcast_qual 6437 if eval \${$cacheid+:} false; then : 6438 $as_echo_n "(cached) " >&6 6439else 6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6441/* end confdefs.h. */ 6442int i; 6443int 6444main () 6445{ 6446 6447 ; 6448 return 0; 6449} 6450_ACEOF 6451if ac_fn_c_try_link "$LINENO"; then : 6452 eval $cacheid=yes 6453else 6454 eval $cacheid=no 6455fi 6456rm -f core conftest.err conftest.$ac_objext \ 6457 conftest$ac_exeext conftest.$ac_ext 6458fi 6459 6460 6461 CFLAGS="$xorg_testset_save_CFLAGS" 6462 6463 eval supported=\$$cacheid 6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6465$as_echo "$supported" >&6; } 6466 if test "$supported" = "yes" ; then 6467 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6468 found="yes" 6469 fi 6470 fi 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486xorg_testset_save_CFLAGS="$CFLAGS" 6487 6488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6491$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6492if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6493 $as_echo_n "(cached) " >&6 6494else 6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6496/* end confdefs.h. */ 6497int i; 6498_ACEOF 6499if ac_fn_c_try_compile "$LINENO"; then : 6500 xorg_cv_cc_flag_unknown_warning_option=yes 6501else 6502 xorg_cv_cc_flag_unknown_warning_option=no 6503fi 6504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6505fi 6506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6507$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6509 CFLAGS="$xorg_testset_save_CFLAGS" 6510fi 6511 6512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6515 fi 6516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6518$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6519if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6520 $as_echo_n "(cached) " >&6 6521else 6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6523/* end confdefs.h. */ 6524int i; 6525_ACEOF 6526if ac_fn_c_try_compile "$LINENO"; then : 6527 xorg_cv_cc_flag_unused_command_line_argument=yes 6528else 6529 xorg_cv_cc_flag_unused_command_line_argument=no 6530fi 6531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6532fi 6533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6534$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6536 CFLAGS="$xorg_testset_save_CFLAGS" 6537fi 6538 6539found="no" 6540 6541 if test $found = "no" ; then 6542 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6544 fi 6545 6546 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6548 fi 6549 6550 CFLAGS="$CFLAGS -Wmissing-noreturn" 6551 6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6553$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6554 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6555 if eval \${$cacheid+:} false; then : 6556 $as_echo_n "(cached) " >&6 6557else 6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6559/* end confdefs.h. */ 6560int i; 6561int 6562main () 6563{ 6564 6565 ; 6566 return 0; 6567} 6568_ACEOF 6569if ac_fn_c_try_link "$LINENO"; then : 6570 eval $cacheid=yes 6571else 6572 eval $cacheid=no 6573fi 6574rm -f core conftest.err conftest.$ac_objext \ 6575 conftest$ac_exeext conftest.$ac_ext 6576fi 6577 6578 6579 CFLAGS="$xorg_testset_save_CFLAGS" 6580 6581 eval supported=\$$cacheid 6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6583$as_echo "$supported" >&6; } 6584 if test "$supported" = "yes" ; then 6585 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6586 found="yes" 6587 fi 6588 fi 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604xorg_testset_save_CFLAGS="$CFLAGS" 6605 6606if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6609$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6610if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6611 $as_echo_n "(cached) " >&6 6612else 6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6614/* end confdefs.h. */ 6615int i; 6616_ACEOF 6617if ac_fn_c_try_compile "$LINENO"; then : 6618 xorg_cv_cc_flag_unknown_warning_option=yes 6619else 6620 xorg_cv_cc_flag_unknown_warning_option=no 6621fi 6622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6623fi 6624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6625$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6627 CFLAGS="$xorg_testset_save_CFLAGS" 6628fi 6629 6630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6633 fi 6634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6636$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6637if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6638 $as_echo_n "(cached) " >&6 6639else 6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6641/* end confdefs.h. */ 6642int i; 6643_ACEOF 6644if ac_fn_c_try_compile "$LINENO"; then : 6645 xorg_cv_cc_flag_unused_command_line_argument=yes 6646else 6647 xorg_cv_cc_flag_unused_command_line_argument=no 6648fi 6649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6650fi 6651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6652$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6654 CFLAGS="$xorg_testset_save_CFLAGS" 6655fi 6656 6657found="no" 6658 6659 if test $found = "no" ; then 6660 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6662 fi 6663 6664 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6666 fi 6667 6668 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6669 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6671$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6672 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6673 if eval \${$cacheid+:} false; then : 6674 $as_echo_n "(cached) " >&6 6675else 6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6677/* end confdefs.h. */ 6678int i; 6679int 6680main () 6681{ 6682 6683 ; 6684 return 0; 6685} 6686_ACEOF 6687if ac_fn_c_try_link "$LINENO"; then : 6688 eval $cacheid=yes 6689else 6690 eval $cacheid=no 6691fi 6692rm -f core conftest.err conftest.$ac_objext \ 6693 conftest$ac_exeext conftest.$ac_ext 6694fi 6695 6696 6697 CFLAGS="$xorg_testset_save_CFLAGS" 6698 6699 eval supported=\$$cacheid 6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6701$as_echo "$supported" >&6; } 6702 if test "$supported" = "yes" ; then 6703 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6704 found="yes" 6705 fi 6706 fi 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722xorg_testset_save_CFLAGS="$CFLAGS" 6723 6724if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6727$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6728if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6729 $as_echo_n "(cached) " >&6 6730else 6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6732/* end confdefs.h. */ 6733int i; 6734_ACEOF 6735if ac_fn_c_try_compile "$LINENO"; then : 6736 xorg_cv_cc_flag_unknown_warning_option=yes 6737else 6738 xorg_cv_cc_flag_unknown_warning_option=no 6739fi 6740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6741fi 6742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6743$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6745 CFLAGS="$xorg_testset_save_CFLAGS" 6746fi 6747 6748if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6751 fi 6752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6754$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6755if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6756 $as_echo_n "(cached) " >&6 6757else 6758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6759/* end confdefs.h. */ 6760int i; 6761_ACEOF 6762if ac_fn_c_try_compile "$LINENO"; then : 6763 xorg_cv_cc_flag_unused_command_line_argument=yes 6764else 6765 xorg_cv_cc_flag_unused_command_line_argument=no 6766fi 6767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6768fi 6769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6770$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6772 CFLAGS="$xorg_testset_save_CFLAGS" 6773fi 6774 6775found="no" 6776 6777 if test $found = "no" ; then 6778 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6780 fi 6781 6782 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6784 fi 6785 6786 CFLAGS="$CFLAGS -Wredundant-decls" 6787 6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6789$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6790 cacheid=xorg_cv_cc_flag__Wredundant_decls 6791 if eval \${$cacheid+:} false; then : 6792 $as_echo_n "(cached) " >&6 6793else 6794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6795/* end confdefs.h. */ 6796int i; 6797int 6798main () 6799{ 6800 6801 ; 6802 return 0; 6803} 6804_ACEOF 6805if ac_fn_c_try_link "$LINENO"; then : 6806 eval $cacheid=yes 6807else 6808 eval $cacheid=no 6809fi 6810rm -f core conftest.err conftest.$ac_objext \ 6811 conftest$ac_exeext conftest.$ac_ext 6812fi 6813 6814 6815 CFLAGS="$xorg_testset_save_CFLAGS" 6816 6817 eval supported=\$$cacheid 6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6819$as_echo "$supported" >&6; } 6820 if test "$supported" = "yes" ; then 6821 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6822 found="yes" 6823 fi 6824 fi 6825 6826 6827 6828# These are currently disabled because they are noisy. They will be enabled 6829# in the future once the codebase is sufficiently modernized to silence 6830# them. For now, I don't want them to drown out the other warnings. 6831# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6832# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6833# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6834 6835# Turn some warnings into errors, so we don't accidently get successful builds 6836# when there are problems that should be fixed. 6837 6838if test "x$SELECTIVE_WERROR" = "xyes" ; then 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852xorg_testset_save_CFLAGS="$CFLAGS" 6853 6854if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6857$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6858if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6859 $as_echo_n "(cached) " >&6 6860else 6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6862/* end confdefs.h. */ 6863int i; 6864_ACEOF 6865if ac_fn_c_try_compile "$LINENO"; then : 6866 xorg_cv_cc_flag_unknown_warning_option=yes 6867else 6868 xorg_cv_cc_flag_unknown_warning_option=no 6869fi 6870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6871fi 6872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6873$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6875 CFLAGS="$xorg_testset_save_CFLAGS" 6876fi 6877 6878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6881 fi 6882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6884$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6885if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6886 $as_echo_n "(cached) " >&6 6887else 6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6889/* end confdefs.h. */ 6890int i; 6891_ACEOF 6892if ac_fn_c_try_compile "$LINENO"; then : 6893 xorg_cv_cc_flag_unused_command_line_argument=yes 6894else 6895 xorg_cv_cc_flag_unused_command_line_argument=no 6896fi 6897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6898fi 6899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6900$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6902 CFLAGS="$xorg_testset_save_CFLAGS" 6903fi 6904 6905found="no" 6906 6907 if test $found = "no" ; then 6908 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6910 fi 6911 6912 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6914 fi 6915 6916 CFLAGS="$CFLAGS -Werror=implicit" 6917 6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6919$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6920 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 6921 if eval \${$cacheid+:} false; then : 6922 $as_echo_n "(cached) " >&6 6923else 6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6925/* end confdefs.h. */ 6926int i; 6927int 6928main () 6929{ 6930 6931 ; 6932 return 0; 6933} 6934_ACEOF 6935if ac_fn_c_try_link "$LINENO"; then : 6936 eval $cacheid=yes 6937else 6938 eval $cacheid=no 6939fi 6940rm -f core conftest.err conftest.$ac_objext \ 6941 conftest$ac_exeext conftest.$ac_ext 6942fi 6943 6944 6945 CFLAGS="$xorg_testset_save_CFLAGS" 6946 6947 eval supported=\$$cacheid 6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6949$as_echo "$supported" >&6; } 6950 if test "$supported" = "yes" ; then 6951 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6952 found="yes" 6953 fi 6954 fi 6955 6956 if test $found = "no" ; then 6957 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6959 fi 6960 6961 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6963 fi 6964 6965 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6966 6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6968$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6969 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 6970 if eval \${$cacheid+:} false; then : 6971 $as_echo_n "(cached) " >&6 6972else 6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6974/* end confdefs.h. */ 6975int i; 6976int 6977main () 6978{ 6979 6980 ; 6981 return 0; 6982} 6983_ACEOF 6984if ac_fn_c_try_link "$LINENO"; then : 6985 eval $cacheid=yes 6986else 6987 eval $cacheid=no 6988fi 6989rm -f core conftest.err conftest.$ac_objext \ 6990 conftest$ac_exeext conftest.$ac_ext 6991fi 6992 6993 6994 CFLAGS="$xorg_testset_save_CFLAGS" 6995 6996 eval supported=\$$cacheid 6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6998$as_echo "$supported" >&6; } 6999 if test "$supported" = "yes" ; then 7000 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7001 found="yes" 7002 fi 7003 fi 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019xorg_testset_save_CFLAGS="$CFLAGS" 7020 7021if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7024$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7025if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7026 $as_echo_n "(cached) " >&6 7027else 7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7029/* end confdefs.h. */ 7030int i; 7031_ACEOF 7032if ac_fn_c_try_compile "$LINENO"; then : 7033 xorg_cv_cc_flag_unknown_warning_option=yes 7034else 7035 xorg_cv_cc_flag_unknown_warning_option=no 7036fi 7037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7038fi 7039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7040$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7042 CFLAGS="$xorg_testset_save_CFLAGS" 7043fi 7044 7045if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7048 fi 7049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7051$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7052if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7053 $as_echo_n "(cached) " >&6 7054else 7055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7056/* end confdefs.h. */ 7057int i; 7058_ACEOF 7059if ac_fn_c_try_compile "$LINENO"; then : 7060 xorg_cv_cc_flag_unused_command_line_argument=yes 7061else 7062 xorg_cv_cc_flag_unused_command_line_argument=no 7063fi 7064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7065fi 7066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7067$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7068 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7069 CFLAGS="$xorg_testset_save_CFLAGS" 7070fi 7071 7072found="no" 7073 7074 if test $found = "no" ; then 7075 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7077 fi 7078 7079 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7081 fi 7082 7083 CFLAGS="$CFLAGS -Werror=nonnull" 7084 7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7086$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7087 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 7088 if eval \${$cacheid+:} false; then : 7089 $as_echo_n "(cached) " >&6 7090else 7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7092/* end confdefs.h. */ 7093int i; 7094int 7095main () 7096{ 7097 7098 ; 7099 return 0; 7100} 7101_ACEOF 7102if ac_fn_c_try_link "$LINENO"; then : 7103 eval $cacheid=yes 7104else 7105 eval $cacheid=no 7106fi 7107rm -f core conftest.err conftest.$ac_objext \ 7108 conftest$ac_exeext conftest.$ac_ext 7109fi 7110 7111 7112 CFLAGS="$xorg_testset_save_CFLAGS" 7113 7114 eval supported=\$$cacheid 7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7116$as_echo "$supported" >&6; } 7117 if test "$supported" = "yes" ; then 7118 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7119 found="yes" 7120 fi 7121 fi 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137xorg_testset_save_CFLAGS="$CFLAGS" 7138 7139if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7142$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7143if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7144 $as_echo_n "(cached) " >&6 7145else 7146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7147/* end confdefs.h. */ 7148int i; 7149_ACEOF 7150if ac_fn_c_try_compile "$LINENO"; then : 7151 xorg_cv_cc_flag_unknown_warning_option=yes 7152else 7153 xorg_cv_cc_flag_unknown_warning_option=no 7154fi 7155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7156fi 7157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7158$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7159 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7160 CFLAGS="$xorg_testset_save_CFLAGS" 7161fi 7162 7163if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7166 fi 7167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7169$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7170if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7171 $as_echo_n "(cached) " >&6 7172else 7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7174/* end confdefs.h. */ 7175int i; 7176_ACEOF 7177if ac_fn_c_try_compile "$LINENO"; then : 7178 xorg_cv_cc_flag_unused_command_line_argument=yes 7179else 7180 xorg_cv_cc_flag_unused_command_line_argument=no 7181fi 7182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7183fi 7184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7185$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7186 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7187 CFLAGS="$xorg_testset_save_CFLAGS" 7188fi 7189 7190found="no" 7191 7192 if test $found = "no" ; then 7193 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7195 fi 7196 7197 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7199 fi 7200 7201 CFLAGS="$CFLAGS -Werror=init-self" 7202 7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7204$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7205 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 7206 if eval \${$cacheid+:} false; then : 7207 $as_echo_n "(cached) " >&6 7208else 7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7210/* end confdefs.h. */ 7211int i; 7212int 7213main () 7214{ 7215 7216 ; 7217 return 0; 7218} 7219_ACEOF 7220if ac_fn_c_try_link "$LINENO"; then : 7221 eval $cacheid=yes 7222else 7223 eval $cacheid=no 7224fi 7225rm -f core conftest.err conftest.$ac_objext \ 7226 conftest$ac_exeext conftest.$ac_ext 7227fi 7228 7229 7230 CFLAGS="$xorg_testset_save_CFLAGS" 7231 7232 eval supported=\$$cacheid 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7234$as_echo "$supported" >&6; } 7235 if test "$supported" = "yes" ; then 7236 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7237 found="yes" 7238 fi 7239 fi 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255xorg_testset_save_CFLAGS="$CFLAGS" 7256 7257if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7260$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7261if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7262 $as_echo_n "(cached) " >&6 7263else 7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7265/* end confdefs.h. */ 7266int i; 7267_ACEOF 7268if ac_fn_c_try_compile "$LINENO"; then : 7269 xorg_cv_cc_flag_unknown_warning_option=yes 7270else 7271 xorg_cv_cc_flag_unknown_warning_option=no 7272fi 7273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7274fi 7275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7276$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7277 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7278 CFLAGS="$xorg_testset_save_CFLAGS" 7279fi 7280 7281if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7284 fi 7285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7287$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7288if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7289 $as_echo_n "(cached) " >&6 7290else 7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7292/* end confdefs.h. */ 7293int i; 7294_ACEOF 7295if ac_fn_c_try_compile "$LINENO"; then : 7296 xorg_cv_cc_flag_unused_command_line_argument=yes 7297else 7298 xorg_cv_cc_flag_unused_command_line_argument=no 7299fi 7300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7301fi 7302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7303$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7304 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7305 CFLAGS="$xorg_testset_save_CFLAGS" 7306fi 7307 7308found="no" 7309 7310 if test $found = "no" ; then 7311 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7313 fi 7314 7315 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7317 fi 7318 7319 CFLAGS="$CFLAGS -Werror=main" 7320 7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7322$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7323 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 7324 if eval \${$cacheid+:} false; then : 7325 $as_echo_n "(cached) " >&6 7326else 7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7328/* end confdefs.h. */ 7329int i; 7330int 7331main () 7332{ 7333 7334 ; 7335 return 0; 7336} 7337_ACEOF 7338if ac_fn_c_try_link "$LINENO"; then : 7339 eval $cacheid=yes 7340else 7341 eval $cacheid=no 7342fi 7343rm -f core conftest.err conftest.$ac_objext \ 7344 conftest$ac_exeext conftest.$ac_ext 7345fi 7346 7347 7348 CFLAGS="$xorg_testset_save_CFLAGS" 7349 7350 eval supported=\$$cacheid 7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7352$as_echo "$supported" >&6; } 7353 if test "$supported" = "yes" ; then 7354 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7355 found="yes" 7356 fi 7357 fi 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373xorg_testset_save_CFLAGS="$CFLAGS" 7374 7375if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7378$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7379if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7380 $as_echo_n "(cached) " >&6 7381else 7382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7383/* end confdefs.h. */ 7384int i; 7385_ACEOF 7386if ac_fn_c_try_compile "$LINENO"; then : 7387 xorg_cv_cc_flag_unknown_warning_option=yes 7388else 7389 xorg_cv_cc_flag_unknown_warning_option=no 7390fi 7391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7392fi 7393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7394$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7395 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7396 CFLAGS="$xorg_testset_save_CFLAGS" 7397fi 7398 7399if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7402 fi 7403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7405$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7406if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7407 $as_echo_n "(cached) " >&6 7408else 7409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7410/* end confdefs.h. */ 7411int i; 7412_ACEOF 7413if ac_fn_c_try_compile "$LINENO"; then : 7414 xorg_cv_cc_flag_unused_command_line_argument=yes 7415else 7416 xorg_cv_cc_flag_unused_command_line_argument=no 7417fi 7418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7419fi 7420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7421$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7422 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7423 CFLAGS="$xorg_testset_save_CFLAGS" 7424fi 7425 7426found="no" 7427 7428 if test $found = "no" ; then 7429 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7431 fi 7432 7433 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7435 fi 7436 7437 CFLAGS="$CFLAGS -Werror=missing-braces" 7438 7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7440$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7441 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 7442 if eval \${$cacheid+:} false; then : 7443 $as_echo_n "(cached) " >&6 7444else 7445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7446/* end confdefs.h. */ 7447int i; 7448int 7449main () 7450{ 7451 7452 ; 7453 return 0; 7454} 7455_ACEOF 7456if ac_fn_c_try_link "$LINENO"; then : 7457 eval $cacheid=yes 7458else 7459 eval $cacheid=no 7460fi 7461rm -f core conftest.err conftest.$ac_objext \ 7462 conftest$ac_exeext conftest.$ac_ext 7463fi 7464 7465 7466 CFLAGS="$xorg_testset_save_CFLAGS" 7467 7468 eval supported=\$$cacheid 7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7470$as_echo "$supported" >&6; } 7471 if test "$supported" = "yes" ; then 7472 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7473 found="yes" 7474 fi 7475 fi 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491xorg_testset_save_CFLAGS="$CFLAGS" 7492 7493if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7496$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7497if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7498 $as_echo_n "(cached) " >&6 7499else 7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7501/* end confdefs.h. */ 7502int i; 7503_ACEOF 7504if ac_fn_c_try_compile "$LINENO"; then : 7505 xorg_cv_cc_flag_unknown_warning_option=yes 7506else 7507 xorg_cv_cc_flag_unknown_warning_option=no 7508fi 7509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7510fi 7511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7512$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7513 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7514 CFLAGS="$xorg_testset_save_CFLAGS" 7515fi 7516 7517if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7520 fi 7521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7523$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7524if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7525 $as_echo_n "(cached) " >&6 7526else 7527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7528/* end confdefs.h. */ 7529int i; 7530_ACEOF 7531if ac_fn_c_try_compile "$LINENO"; then : 7532 xorg_cv_cc_flag_unused_command_line_argument=yes 7533else 7534 xorg_cv_cc_flag_unused_command_line_argument=no 7535fi 7536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7537fi 7538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7539$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7540 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7541 CFLAGS="$xorg_testset_save_CFLAGS" 7542fi 7543 7544found="no" 7545 7546 if test $found = "no" ; then 7547 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7549 fi 7550 7551 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7553 fi 7554 7555 CFLAGS="$CFLAGS -Werror=sequence-point" 7556 7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7558$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7559 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 7560 if eval \${$cacheid+:} false; then : 7561 $as_echo_n "(cached) " >&6 7562else 7563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7564/* end confdefs.h. */ 7565int i; 7566int 7567main () 7568{ 7569 7570 ; 7571 return 0; 7572} 7573_ACEOF 7574if ac_fn_c_try_link "$LINENO"; then : 7575 eval $cacheid=yes 7576else 7577 eval $cacheid=no 7578fi 7579rm -f core conftest.err conftest.$ac_objext \ 7580 conftest$ac_exeext conftest.$ac_ext 7581fi 7582 7583 7584 CFLAGS="$xorg_testset_save_CFLAGS" 7585 7586 eval supported=\$$cacheid 7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7588$as_echo "$supported" >&6; } 7589 if test "$supported" = "yes" ; then 7590 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7591 found="yes" 7592 fi 7593 fi 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609xorg_testset_save_CFLAGS="$CFLAGS" 7610 7611if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7614$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7615if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7616 $as_echo_n "(cached) " >&6 7617else 7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7619/* end confdefs.h. */ 7620int i; 7621_ACEOF 7622if ac_fn_c_try_compile "$LINENO"; then : 7623 xorg_cv_cc_flag_unknown_warning_option=yes 7624else 7625 xorg_cv_cc_flag_unknown_warning_option=no 7626fi 7627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7628fi 7629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7630$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7631 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7632 CFLAGS="$xorg_testset_save_CFLAGS" 7633fi 7634 7635if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7638 fi 7639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7641$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7642if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7643 $as_echo_n "(cached) " >&6 7644else 7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7646/* end confdefs.h. */ 7647int i; 7648_ACEOF 7649if ac_fn_c_try_compile "$LINENO"; then : 7650 xorg_cv_cc_flag_unused_command_line_argument=yes 7651else 7652 xorg_cv_cc_flag_unused_command_line_argument=no 7653fi 7654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7655fi 7656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7657$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7658 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7659 CFLAGS="$xorg_testset_save_CFLAGS" 7660fi 7661 7662found="no" 7663 7664 if test $found = "no" ; then 7665 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7667 fi 7668 7669 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7671 fi 7672 7673 CFLAGS="$CFLAGS -Werror=return-type" 7674 7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7676$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7677 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7678 if eval \${$cacheid+:} false; then : 7679 $as_echo_n "(cached) " >&6 7680else 7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7682/* end confdefs.h. */ 7683int i; 7684int 7685main () 7686{ 7687 7688 ; 7689 return 0; 7690} 7691_ACEOF 7692if ac_fn_c_try_link "$LINENO"; then : 7693 eval $cacheid=yes 7694else 7695 eval $cacheid=no 7696fi 7697rm -f core conftest.err conftest.$ac_objext \ 7698 conftest$ac_exeext conftest.$ac_ext 7699fi 7700 7701 7702 CFLAGS="$xorg_testset_save_CFLAGS" 7703 7704 eval supported=\$$cacheid 7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7706$as_echo "$supported" >&6; } 7707 if test "$supported" = "yes" ; then 7708 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7709 found="yes" 7710 fi 7711 fi 7712 7713 if test $found = "no" ; then 7714 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7716 fi 7717 7718 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7720 fi 7721 7722 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7723 7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7725$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7726 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7727 if eval \${$cacheid+:} false; then : 7728 $as_echo_n "(cached) " >&6 7729else 7730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7731/* end confdefs.h. */ 7732int i; 7733int 7734main () 7735{ 7736 7737 ; 7738 return 0; 7739} 7740_ACEOF 7741if ac_fn_c_try_link "$LINENO"; then : 7742 eval $cacheid=yes 7743else 7744 eval $cacheid=no 7745fi 7746rm -f core conftest.err conftest.$ac_objext \ 7747 conftest$ac_exeext conftest.$ac_ext 7748fi 7749 7750 7751 CFLAGS="$xorg_testset_save_CFLAGS" 7752 7753 eval supported=\$$cacheid 7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7755$as_echo "$supported" >&6; } 7756 if test "$supported" = "yes" ; then 7757 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7758 found="yes" 7759 fi 7760 fi 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776xorg_testset_save_CFLAGS="$CFLAGS" 7777 7778if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7781$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7782if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7783 $as_echo_n "(cached) " >&6 7784else 7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7786/* end confdefs.h. */ 7787int i; 7788_ACEOF 7789if ac_fn_c_try_compile "$LINENO"; then : 7790 xorg_cv_cc_flag_unknown_warning_option=yes 7791else 7792 xorg_cv_cc_flag_unknown_warning_option=no 7793fi 7794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7795fi 7796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7797$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7798 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7799 CFLAGS="$xorg_testset_save_CFLAGS" 7800fi 7801 7802if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7805 fi 7806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7808$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7809if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7810 $as_echo_n "(cached) " >&6 7811else 7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7813/* end confdefs.h. */ 7814int i; 7815_ACEOF 7816if ac_fn_c_try_compile "$LINENO"; then : 7817 xorg_cv_cc_flag_unused_command_line_argument=yes 7818else 7819 xorg_cv_cc_flag_unused_command_line_argument=no 7820fi 7821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7822fi 7823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7824$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7825 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7826 CFLAGS="$xorg_testset_save_CFLAGS" 7827fi 7828 7829found="no" 7830 7831 if test $found = "no" ; then 7832 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7834 fi 7835 7836 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7838 fi 7839 7840 CFLAGS="$CFLAGS -Werror=trigraphs" 7841 7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7843$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7844 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 7845 if eval \${$cacheid+:} false; then : 7846 $as_echo_n "(cached) " >&6 7847else 7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7849/* end confdefs.h. */ 7850int i; 7851int 7852main () 7853{ 7854 7855 ; 7856 return 0; 7857} 7858_ACEOF 7859if ac_fn_c_try_link "$LINENO"; then : 7860 eval $cacheid=yes 7861else 7862 eval $cacheid=no 7863fi 7864rm -f core conftest.err conftest.$ac_objext \ 7865 conftest$ac_exeext conftest.$ac_ext 7866fi 7867 7868 7869 CFLAGS="$xorg_testset_save_CFLAGS" 7870 7871 eval supported=\$$cacheid 7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7873$as_echo "$supported" >&6; } 7874 if test "$supported" = "yes" ; then 7875 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7876 found="yes" 7877 fi 7878 fi 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894xorg_testset_save_CFLAGS="$CFLAGS" 7895 7896if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7899$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7900if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7901 $as_echo_n "(cached) " >&6 7902else 7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7904/* end confdefs.h. */ 7905int i; 7906_ACEOF 7907if ac_fn_c_try_compile "$LINENO"; then : 7908 xorg_cv_cc_flag_unknown_warning_option=yes 7909else 7910 xorg_cv_cc_flag_unknown_warning_option=no 7911fi 7912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7913fi 7914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7915$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7916 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7917 CFLAGS="$xorg_testset_save_CFLAGS" 7918fi 7919 7920if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7923 fi 7924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7926$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7927if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7928 $as_echo_n "(cached) " >&6 7929else 7930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7931/* end confdefs.h. */ 7932int i; 7933_ACEOF 7934if ac_fn_c_try_compile "$LINENO"; then : 7935 xorg_cv_cc_flag_unused_command_line_argument=yes 7936else 7937 xorg_cv_cc_flag_unused_command_line_argument=no 7938fi 7939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7940fi 7941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7942$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7943 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7944 CFLAGS="$xorg_testset_save_CFLAGS" 7945fi 7946 7947found="no" 7948 7949 if test $found = "no" ; then 7950 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7952 fi 7953 7954 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7956 fi 7957 7958 CFLAGS="$CFLAGS -Werror=array-bounds" 7959 7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7961$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7962 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 7963 if eval \${$cacheid+:} false; then : 7964 $as_echo_n "(cached) " >&6 7965else 7966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7967/* end confdefs.h. */ 7968int i; 7969int 7970main () 7971{ 7972 7973 ; 7974 return 0; 7975} 7976_ACEOF 7977if ac_fn_c_try_link "$LINENO"; then : 7978 eval $cacheid=yes 7979else 7980 eval $cacheid=no 7981fi 7982rm -f core conftest.err conftest.$ac_objext \ 7983 conftest$ac_exeext conftest.$ac_ext 7984fi 7985 7986 7987 CFLAGS="$xorg_testset_save_CFLAGS" 7988 7989 eval supported=\$$cacheid 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7991$as_echo "$supported" >&6; } 7992 if test "$supported" = "yes" ; then 7993 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7994 found="yes" 7995 fi 7996 fi 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012xorg_testset_save_CFLAGS="$CFLAGS" 8013 8014if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8017$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8018if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8019 $as_echo_n "(cached) " >&6 8020else 8021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8022/* end confdefs.h. */ 8023int i; 8024_ACEOF 8025if ac_fn_c_try_compile "$LINENO"; then : 8026 xorg_cv_cc_flag_unknown_warning_option=yes 8027else 8028 xorg_cv_cc_flag_unknown_warning_option=no 8029fi 8030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8031fi 8032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8033$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8035 CFLAGS="$xorg_testset_save_CFLAGS" 8036fi 8037 8038if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8041 fi 8042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8044$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8045if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8046 $as_echo_n "(cached) " >&6 8047else 8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8049/* end confdefs.h. */ 8050int i; 8051_ACEOF 8052if ac_fn_c_try_compile "$LINENO"; then : 8053 xorg_cv_cc_flag_unused_command_line_argument=yes 8054else 8055 xorg_cv_cc_flag_unused_command_line_argument=no 8056fi 8057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8058fi 8059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8060$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8061 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8062 CFLAGS="$xorg_testset_save_CFLAGS" 8063fi 8064 8065found="no" 8066 8067 if test $found = "no" ; then 8068 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8070 fi 8071 8072 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8074 fi 8075 8076 CFLAGS="$CFLAGS -Werror=write-strings" 8077 8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8079$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8080 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 8081 if eval \${$cacheid+:} false; then : 8082 $as_echo_n "(cached) " >&6 8083else 8084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8085/* end confdefs.h. */ 8086int i; 8087int 8088main () 8089{ 8090 8091 ; 8092 return 0; 8093} 8094_ACEOF 8095if ac_fn_c_try_link "$LINENO"; then : 8096 eval $cacheid=yes 8097else 8098 eval $cacheid=no 8099fi 8100rm -f core conftest.err conftest.$ac_objext \ 8101 conftest$ac_exeext conftest.$ac_ext 8102fi 8103 8104 8105 CFLAGS="$xorg_testset_save_CFLAGS" 8106 8107 eval supported=\$$cacheid 8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8109$as_echo "$supported" >&6; } 8110 if test "$supported" = "yes" ; then 8111 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8112 found="yes" 8113 fi 8114 fi 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130xorg_testset_save_CFLAGS="$CFLAGS" 8131 8132if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8135$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8136if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8137 $as_echo_n "(cached) " >&6 8138else 8139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8140/* end confdefs.h. */ 8141int i; 8142_ACEOF 8143if ac_fn_c_try_compile "$LINENO"; then : 8144 xorg_cv_cc_flag_unknown_warning_option=yes 8145else 8146 xorg_cv_cc_flag_unknown_warning_option=no 8147fi 8148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8149fi 8150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8151$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8152 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8153 CFLAGS="$xorg_testset_save_CFLAGS" 8154fi 8155 8156if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8159 fi 8160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8162$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8163if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8164 $as_echo_n "(cached) " >&6 8165else 8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8167/* end confdefs.h. */ 8168int i; 8169_ACEOF 8170if ac_fn_c_try_compile "$LINENO"; then : 8171 xorg_cv_cc_flag_unused_command_line_argument=yes 8172else 8173 xorg_cv_cc_flag_unused_command_line_argument=no 8174fi 8175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8176fi 8177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8178$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8179 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8180 CFLAGS="$xorg_testset_save_CFLAGS" 8181fi 8182 8183found="no" 8184 8185 if test $found = "no" ; then 8186 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8188 fi 8189 8190 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8192 fi 8193 8194 CFLAGS="$CFLAGS -Werror=address" 8195 8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8197$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8198 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 8199 if eval \${$cacheid+:} false; then : 8200 $as_echo_n "(cached) " >&6 8201else 8202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8203/* end confdefs.h. */ 8204int i; 8205int 8206main () 8207{ 8208 8209 ; 8210 return 0; 8211} 8212_ACEOF 8213if ac_fn_c_try_link "$LINENO"; then : 8214 eval $cacheid=yes 8215else 8216 eval $cacheid=no 8217fi 8218rm -f core conftest.err conftest.$ac_objext \ 8219 conftest$ac_exeext conftest.$ac_ext 8220fi 8221 8222 8223 CFLAGS="$xorg_testset_save_CFLAGS" 8224 8225 eval supported=\$$cacheid 8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8227$as_echo "$supported" >&6; } 8228 if test "$supported" = "yes" ; then 8229 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8230 found="yes" 8231 fi 8232 fi 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248xorg_testset_save_CFLAGS="$CFLAGS" 8249 8250if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8253$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8254if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8255 $as_echo_n "(cached) " >&6 8256else 8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8258/* end confdefs.h. */ 8259int i; 8260_ACEOF 8261if ac_fn_c_try_compile "$LINENO"; then : 8262 xorg_cv_cc_flag_unknown_warning_option=yes 8263else 8264 xorg_cv_cc_flag_unknown_warning_option=no 8265fi 8266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8267fi 8268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8269$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8270 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8271 CFLAGS="$xorg_testset_save_CFLAGS" 8272fi 8273 8274if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8277 fi 8278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8280$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8281if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8282 $as_echo_n "(cached) " >&6 8283else 8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8285/* end confdefs.h. */ 8286int i; 8287_ACEOF 8288if ac_fn_c_try_compile "$LINENO"; then : 8289 xorg_cv_cc_flag_unused_command_line_argument=yes 8290else 8291 xorg_cv_cc_flag_unused_command_line_argument=no 8292fi 8293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8294fi 8295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8296$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8297 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8298 CFLAGS="$xorg_testset_save_CFLAGS" 8299fi 8300 8301found="no" 8302 8303 if test $found = "no" ; then 8304 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8306 fi 8307 8308 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8310 fi 8311 8312 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8313 8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8315$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8316 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 8317 if eval \${$cacheid+:} false; then : 8318 $as_echo_n "(cached) " >&6 8319else 8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8321/* end confdefs.h. */ 8322int i; 8323int 8324main () 8325{ 8326 8327 ; 8328 return 0; 8329} 8330_ACEOF 8331if ac_fn_c_try_link "$LINENO"; then : 8332 eval $cacheid=yes 8333else 8334 eval $cacheid=no 8335fi 8336rm -f core conftest.err conftest.$ac_objext \ 8337 conftest$ac_exeext conftest.$ac_ext 8338fi 8339 8340 8341 CFLAGS="$xorg_testset_save_CFLAGS" 8342 8343 eval supported=\$$cacheid 8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8345$as_echo "$supported" >&6; } 8346 if test "$supported" = "yes" ; then 8347 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8348 found="yes" 8349 fi 8350 fi 8351 8352 if test $found = "no" ; then 8353 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8355 fi 8356 8357 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8359 fi 8360 8361 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8362 8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8364$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8365 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 8366 if eval \${$cacheid+:} false; then : 8367 $as_echo_n "(cached) " >&6 8368else 8369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8370/* end confdefs.h. */ 8371int i; 8372int 8373main () 8374{ 8375 8376 ; 8377 return 0; 8378} 8379_ACEOF 8380if ac_fn_c_try_link "$LINENO"; then : 8381 eval $cacheid=yes 8382else 8383 eval $cacheid=no 8384fi 8385rm -f core conftest.err conftest.$ac_objext \ 8386 conftest$ac_exeext conftest.$ac_ext 8387fi 8388 8389 8390 CFLAGS="$xorg_testset_save_CFLAGS" 8391 8392 eval supported=\$$cacheid 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8394$as_echo "$supported" >&6; } 8395 if test "$supported" = "yes" ; then 8396 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8397 found="yes" 8398 fi 8399 fi 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415xorg_testset_save_CFLAGS="$CFLAGS" 8416 8417if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8420$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8421if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8422 $as_echo_n "(cached) " >&6 8423else 8424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8425/* end confdefs.h. */ 8426int i; 8427_ACEOF 8428if ac_fn_c_try_compile "$LINENO"; then : 8429 xorg_cv_cc_flag_unknown_warning_option=yes 8430else 8431 xorg_cv_cc_flag_unknown_warning_option=no 8432fi 8433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8434fi 8435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8436$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8437 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8438 CFLAGS="$xorg_testset_save_CFLAGS" 8439fi 8440 8441if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8444 fi 8445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8447$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8448if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8449 $as_echo_n "(cached) " >&6 8450else 8451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8452/* end confdefs.h. */ 8453int i; 8454_ACEOF 8455if ac_fn_c_try_compile "$LINENO"; then : 8456 xorg_cv_cc_flag_unused_command_line_argument=yes 8457else 8458 xorg_cv_cc_flag_unused_command_line_argument=no 8459fi 8460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8461fi 8462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8463$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8464 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8465 CFLAGS="$xorg_testset_save_CFLAGS" 8466fi 8467 8468found="no" 8469 8470 if test $found = "no" ; then 8471 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8473 fi 8474 8475 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8477 fi 8478 8479 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8480 8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8482$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8483 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 8484 if eval \${$cacheid+:} false; then : 8485 $as_echo_n "(cached) " >&6 8486else 8487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8488/* end confdefs.h. */ 8489int i; 8490int 8491main () 8492{ 8493 8494 ; 8495 return 0; 8496} 8497_ACEOF 8498if ac_fn_c_try_link "$LINENO"; then : 8499 eval $cacheid=yes 8500else 8501 eval $cacheid=no 8502fi 8503rm -f core conftest.err conftest.$ac_objext \ 8504 conftest$ac_exeext conftest.$ac_ext 8505fi 8506 8507 8508 CFLAGS="$xorg_testset_save_CFLAGS" 8509 8510 eval supported=\$$cacheid 8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8512$as_echo "$supported" >&6; } 8513 if test "$supported" = "yes" ; then 8514 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8515 found="yes" 8516 fi 8517 fi 8518 8519 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8520else 8521{ $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 8522$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;} 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536xorg_testset_save_CFLAGS="$CFLAGS" 8537 8538if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8541$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8542if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8543 $as_echo_n "(cached) " >&6 8544else 8545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8546/* end confdefs.h. */ 8547int i; 8548_ACEOF 8549if ac_fn_c_try_compile "$LINENO"; then : 8550 xorg_cv_cc_flag_unknown_warning_option=yes 8551else 8552 xorg_cv_cc_flag_unknown_warning_option=no 8553fi 8554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8555fi 8556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8557$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8558 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8559 CFLAGS="$xorg_testset_save_CFLAGS" 8560fi 8561 8562if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8565 fi 8566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8568$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8569if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8570 $as_echo_n "(cached) " >&6 8571else 8572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8573/* end confdefs.h. */ 8574int i; 8575_ACEOF 8576if ac_fn_c_try_compile "$LINENO"; then : 8577 xorg_cv_cc_flag_unused_command_line_argument=yes 8578else 8579 xorg_cv_cc_flag_unused_command_line_argument=no 8580fi 8581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8582fi 8583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8584$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8586 CFLAGS="$xorg_testset_save_CFLAGS" 8587fi 8588 8589found="no" 8590 8591 if test $found = "no" ; then 8592 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8594 fi 8595 8596 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8598 fi 8599 8600 CFLAGS="$CFLAGS -Wimplicit" 8601 8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8603$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8604 cacheid=xorg_cv_cc_flag__Wimplicit 8605 if eval \${$cacheid+:} false; then : 8606 $as_echo_n "(cached) " >&6 8607else 8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8609/* end confdefs.h. */ 8610int i; 8611int 8612main () 8613{ 8614 8615 ; 8616 return 0; 8617} 8618_ACEOF 8619if ac_fn_c_try_link "$LINENO"; then : 8620 eval $cacheid=yes 8621else 8622 eval $cacheid=no 8623fi 8624rm -f core conftest.err conftest.$ac_objext \ 8625 conftest$ac_exeext conftest.$ac_ext 8626fi 8627 8628 8629 CFLAGS="$xorg_testset_save_CFLAGS" 8630 8631 eval supported=\$$cacheid 8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8633$as_echo "$supported" >&6; } 8634 if test "$supported" = "yes" ; then 8635 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8636 found="yes" 8637 fi 8638 fi 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654xorg_testset_save_CFLAGS="$CFLAGS" 8655 8656if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8659$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8660if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8661 $as_echo_n "(cached) " >&6 8662else 8663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8664/* end confdefs.h. */ 8665int i; 8666_ACEOF 8667if ac_fn_c_try_compile "$LINENO"; then : 8668 xorg_cv_cc_flag_unknown_warning_option=yes 8669else 8670 xorg_cv_cc_flag_unknown_warning_option=no 8671fi 8672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8673fi 8674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8675$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8676 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8677 CFLAGS="$xorg_testset_save_CFLAGS" 8678fi 8679 8680if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8683 fi 8684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8686$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8687if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8688 $as_echo_n "(cached) " >&6 8689else 8690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8691/* end confdefs.h. */ 8692int i; 8693_ACEOF 8694if ac_fn_c_try_compile "$LINENO"; then : 8695 xorg_cv_cc_flag_unused_command_line_argument=yes 8696else 8697 xorg_cv_cc_flag_unused_command_line_argument=no 8698fi 8699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8700fi 8701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8702$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8704 CFLAGS="$xorg_testset_save_CFLAGS" 8705fi 8706 8707found="no" 8708 8709 if test $found = "no" ; then 8710 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8712 fi 8713 8714 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8716 fi 8717 8718 CFLAGS="$CFLAGS -Wnonnull" 8719 8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8721$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8722 cacheid=xorg_cv_cc_flag__Wnonnull 8723 if eval \${$cacheid+:} false; then : 8724 $as_echo_n "(cached) " >&6 8725else 8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8727/* end confdefs.h. */ 8728int i; 8729int 8730main () 8731{ 8732 8733 ; 8734 return 0; 8735} 8736_ACEOF 8737if ac_fn_c_try_link "$LINENO"; then : 8738 eval $cacheid=yes 8739else 8740 eval $cacheid=no 8741fi 8742rm -f core conftest.err conftest.$ac_objext \ 8743 conftest$ac_exeext conftest.$ac_ext 8744fi 8745 8746 8747 CFLAGS="$xorg_testset_save_CFLAGS" 8748 8749 eval supported=\$$cacheid 8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8751$as_echo "$supported" >&6; } 8752 if test "$supported" = "yes" ; then 8753 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8754 found="yes" 8755 fi 8756 fi 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772xorg_testset_save_CFLAGS="$CFLAGS" 8773 8774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8777$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8778if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8779 $as_echo_n "(cached) " >&6 8780else 8781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8782/* end confdefs.h. */ 8783int i; 8784_ACEOF 8785if ac_fn_c_try_compile "$LINENO"; then : 8786 xorg_cv_cc_flag_unknown_warning_option=yes 8787else 8788 xorg_cv_cc_flag_unknown_warning_option=no 8789fi 8790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8791fi 8792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8793$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8794 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8795 CFLAGS="$xorg_testset_save_CFLAGS" 8796fi 8797 8798if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8801 fi 8802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8804$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8805if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8806 $as_echo_n "(cached) " >&6 8807else 8808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8809/* end confdefs.h. */ 8810int i; 8811_ACEOF 8812if ac_fn_c_try_compile "$LINENO"; then : 8813 xorg_cv_cc_flag_unused_command_line_argument=yes 8814else 8815 xorg_cv_cc_flag_unused_command_line_argument=no 8816fi 8817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8818fi 8819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8820$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8821 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8822 CFLAGS="$xorg_testset_save_CFLAGS" 8823fi 8824 8825found="no" 8826 8827 if test $found = "no" ; then 8828 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8830 fi 8831 8832 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8834 fi 8835 8836 CFLAGS="$CFLAGS -Winit-self" 8837 8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8839$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8840 cacheid=xorg_cv_cc_flag__Winit_self 8841 if eval \${$cacheid+:} false; then : 8842 $as_echo_n "(cached) " >&6 8843else 8844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8845/* end confdefs.h. */ 8846int i; 8847int 8848main () 8849{ 8850 8851 ; 8852 return 0; 8853} 8854_ACEOF 8855if ac_fn_c_try_link "$LINENO"; then : 8856 eval $cacheid=yes 8857else 8858 eval $cacheid=no 8859fi 8860rm -f core conftest.err conftest.$ac_objext \ 8861 conftest$ac_exeext conftest.$ac_ext 8862fi 8863 8864 8865 CFLAGS="$xorg_testset_save_CFLAGS" 8866 8867 eval supported=\$$cacheid 8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8869$as_echo "$supported" >&6; } 8870 if test "$supported" = "yes" ; then 8871 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8872 found="yes" 8873 fi 8874 fi 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890xorg_testset_save_CFLAGS="$CFLAGS" 8891 8892if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8895$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8896if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8897 $as_echo_n "(cached) " >&6 8898else 8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8900/* end confdefs.h. */ 8901int i; 8902_ACEOF 8903if ac_fn_c_try_compile "$LINENO"; then : 8904 xorg_cv_cc_flag_unknown_warning_option=yes 8905else 8906 xorg_cv_cc_flag_unknown_warning_option=no 8907fi 8908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8909fi 8910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8911$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8912 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8913 CFLAGS="$xorg_testset_save_CFLAGS" 8914fi 8915 8916if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8919 fi 8920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8922$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8923if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8924 $as_echo_n "(cached) " >&6 8925else 8926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8927/* end confdefs.h. */ 8928int i; 8929_ACEOF 8930if ac_fn_c_try_compile "$LINENO"; then : 8931 xorg_cv_cc_flag_unused_command_line_argument=yes 8932else 8933 xorg_cv_cc_flag_unused_command_line_argument=no 8934fi 8935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8936fi 8937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8938$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8939 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8940 CFLAGS="$xorg_testset_save_CFLAGS" 8941fi 8942 8943found="no" 8944 8945 if test $found = "no" ; then 8946 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8948 fi 8949 8950 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8952 fi 8953 8954 CFLAGS="$CFLAGS -Wmain" 8955 8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8957$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8958 cacheid=xorg_cv_cc_flag__Wmain 8959 if eval \${$cacheid+:} false; then : 8960 $as_echo_n "(cached) " >&6 8961else 8962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8963/* end confdefs.h. */ 8964int i; 8965int 8966main () 8967{ 8968 8969 ; 8970 return 0; 8971} 8972_ACEOF 8973if ac_fn_c_try_link "$LINENO"; then : 8974 eval $cacheid=yes 8975else 8976 eval $cacheid=no 8977fi 8978rm -f core conftest.err conftest.$ac_objext \ 8979 conftest$ac_exeext conftest.$ac_ext 8980fi 8981 8982 8983 CFLAGS="$xorg_testset_save_CFLAGS" 8984 8985 eval supported=\$$cacheid 8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8987$as_echo "$supported" >&6; } 8988 if test "$supported" = "yes" ; then 8989 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8990 found="yes" 8991 fi 8992 fi 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008xorg_testset_save_CFLAGS="$CFLAGS" 9009 9010if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9013$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9014if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9015 $as_echo_n "(cached) " >&6 9016else 9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9018/* end confdefs.h. */ 9019int i; 9020_ACEOF 9021if ac_fn_c_try_compile "$LINENO"; then : 9022 xorg_cv_cc_flag_unknown_warning_option=yes 9023else 9024 xorg_cv_cc_flag_unknown_warning_option=no 9025fi 9026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9027fi 9028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9029$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9030 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9031 CFLAGS="$xorg_testset_save_CFLAGS" 9032fi 9033 9034if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9037 fi 9038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9040$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9041if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9042 $as_echo_n "(cached) " >&6 9043else 9044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9045/* end confdefs.h. */ 9046int i; 9047_ACEOF 9048if ac_fn_c_try_compile "$LINENO"; then : 9049 xorg_cv_cc_flag_unused_command_line_argument=yes 9050else 9051 xorg_cv_cc_flag_unused_command_line_argument=no 9052fi 9053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9054fi 9055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9056$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9057 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9058 CFLAGS="$xorg_testset_save_CFLAGS" 9059fi 9060 9061found="no" 9062 9063 if test $found = "no" ; then 9064 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9066 fi 9067 9068 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9070 fi 9071 9072 CFLAGS="$CFLAGS -Wmissing-braces" 9073 9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9075$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9076 cacheid=xorg_cv_cc_flag__Wmissing_braces 9077 if eval \${$cacheid+:} false; then : 9078 $as_echo_n "(cached) " >&6 9079else 9080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9081/* end confdefs.h. */ 9082int i; 9083int 9084main () 9085{ 9086 9087 ; 9088 return 0; 9089} 9090_ACEOF 9091if ac_fn_c_try_link "$LINENO"; then : 9092 eval $cacheid=yes 9093else 9094 eval $cacheid=no 9095fi 9096rm -f core conftest.err conftest.$ac_objext \ 9097 conftest$ac_exeext conftest.$ac_ext 9098fi 9099 9100 9101 CFLAGS="$xorg_testset_save_CFLAGS" 9102 9103 eval supported=\$$cacheid 9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9105$as_echo "$supported" >&6; } 9106 if test "$supported" = "yes" ; then 9107 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9108 found="yes" 9109 fi 9110 fi 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126xorg_testset_save_CFLAGS="$CFLAGS" 9127 9128if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9131$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9132if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9133 $as_echo_n "(cached) " >&6 9134else 9135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9136/* end confdefs.h. */ 9137int i; 9138_ACEOF 9139if ac_fn_c_try_compile "$LINENO"; then : 9140 xorg_cv_cc_flag_unknown_warning_option=yes 9141else 9142 xorg_cv_cc_flag_unknown_warning_option=no 9143fi 9144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9145fi 9146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9147$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9148 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9149 CFLAGS="$xorg_testset_save_CFLAGS" 9150fi 9151 9152if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9155 fi 9156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9158$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9159if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9160 $as_echo_n "(cached) " >&6 9161else 9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9163/* end confdefs.h. */ 9164int i; 9165_ACEOF 9166if ac_fn_c_try_compile "$LINENO"; then : 9167 xorg_cv_cc_flag_unused_command_line_argument=yes 9168else 9169 xorg_cv_cc_flag_unused_command_line_argument=no 9170fi 9171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9172fi 9173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9174$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9175 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9176 CFLAGS="$xorg_testset_save_CFLAGS" 9177fi 9178 9179found="no" 9180 9181 if test $found = "no" ; then 9182 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9184 fi 9185 9186 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9188 fi 9189 9190 CFLAGS="$CFLAGS -Wsequence-point" 9191 9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9193$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9194 cacheid=xorg_cv_cc_flag__Wsequence_point 9195 if eval \${$cacheid+:} false; then : 9196 $as_echo_n "(cached) " >&6 9197else 9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9199/* end confdefs.h. */ 9200int i; 9201int 9202main () 9203{ 9204 9205 ; 9206 return 0; 9207} 9208_ACEOF 9209if ac_fn_c_try_link "$LINENO"; then : 9210 eval $cacheid=yes 9211else 9212 eval $cacheid=no 9213fi 9214rm -f core conftest.err conftest.$ac_objext \ 9215 conftest$ac_exeext conftest.$ac_ext 9216fi 9217 9218 9219 CFLAGS="$xorg_testset_save_CFLAGS" 9220 9221 eval supported=\$$cacheid 9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9223$as_echo "$supported" >&6; } 9224 if test "$supported" = "yes" ; then 9225 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9226 found="yes" 9227 fi 9228 fi 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244xorg_testset_save_CFLAGS="$CFLAGS" 9245 9246if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9249$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9250if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9251 $as_echo_n "(cached) " >&6 9252else 9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9254/* end confdefs.h. */ 9255int i; 9256_ACEOF 9257if ac_fn_c_try_compile "$LINENO"; then : 9258 xorg_cv_cc_flag_unknown_warning_option=yes 9259else 9260 xorg_cv_cc_flag_unknown_warning_option=no 9261fi 9262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9263fi 9264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9265$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9266 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9267 CFLAGS="$xorg_testset_save_CFLAGS" 9268fi 9269 9270if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9273 fi 9274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9276$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9277if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9278 $as_echo_n "(cached) " >&6 9279else 9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9281/* end confdefs.h. */ 9282int i; 9283_ACEOF 9284if ac_fn_c_try_compile "$LINENO"; then : 9285 xorg_cv_cc_flag_unused_command_line_argument=yes 9286else 9287 xorg_cv_cc_flag_unused_command_line_argument=no 9288fi 9289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9290fi 9291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9292$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9293 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9294 CFLAGS="$xorg_testset_save_CFLAGS" 9295fi 9296 9297found="no" 9298 9299 if test $found = "no" ; then 9300 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9302 fi 9303 9304 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9306 fi 9307 9308 CFLAGS="$CFLAGS -Wreturn-type" 9309 9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9311$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9312 cacheid=xorg_cv_cc_flag__Wreturn_type 9313 if eval \${$cacheid+:} false; then : 9314 $as_echo_n "(cached) " >&6 9315else 9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9317/* end confdefs.h. */ 9318int i; 9319int 9320main () 9321{ 9322 9323 ; 9324 return 0; 9325} 9326_ACEOF 9327if ac_fn_c_try_link "$LINENO"; then : 9328 eval $cacheid=yes 9329else 9330 eval $cacheid=no 9331fi 9332rm -f core conftest.err conftest.$ac_objext \ 9333 conftest$ac_exeext conftest.$ac_ext 9334fi 9335 9336 9337 CFLAGS="$xorg_testset_save_CFLAGS" 9338 9339 eval supported=\$$cacheid 9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9341$as_echo "$supported" >&6; } 9342 if test "$supported" = "yes" ; then 9343 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9344 found="yes" 9345 fi 9346 fi 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362xorg_testset_save_CFLAGS="$CFLAGS" 9363 9364if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9367$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9368if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9369 $as_echo_n "(cached) " >&6 9370else 9371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9372/* end confdefs.h. */ 9373int i; 9374_ACEOF 9375if ac_fn_c_try_compile "$LINENO"; then : 9376 xorg_cv_cc_flag_unknown_warning_option=yes 9377else 9378 xorg_cv_cc_flag_unknown_warning_option=no 9379fi 9380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9381fi 9382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9383$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9384 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9385 CFLAGS="$xorg_testset_save_CFLAGS" 9386fi 9387 9388if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9391 fi 9392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9394$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9395if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9396 $as_echo_n "(cached) " >&6 9397else 9398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9399/* end confdefs.h. */ 9400int i; 9401_ACEOF 9402if ac_fn_c_try_compile "$LINENO"; then : 9403 xorg_cv_cc_flag_unused_command_line_argument=yes 9404else 9405 xorg_cv_cc_flag_unused_command_line_argument=no 9406fi 9407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9408fi 9409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9410$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9411 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9412 CFLAGS="$xorg_testset_save_CFLAGS" 9413fi 9414 9415found="no" 9416 9417 if test $found = "no" ; then 9418 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9420 fi 9421 9422 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9424 fi 9425 9426 CFLAGS="$CFLAGS -Wtrigraphs" 9427 9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9429$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9430 cacheid=xorg_cv_cc_flag__Wtrigraphs 9431 if eval \${$cacheid+:} false; then : 9432 $as_echo_n "(cached) " >&6 9433else 9434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9435/* end confdefs.h. */ 9436int i; 9437int 9438main () 9439{ 9440 9441 ; 9442 return 0; 9443} 9444_ACEOF 9445if ac_fn_c_try_link "$LINENO"; then : 9446 eval $cacheid=yes 9447else 9448 eval $cacheid=no 9449fi 9450rm -f core conftest.err conftest.$ac_objext \ 9451 conftest$ac_exeext conftest.$ac_ext 9452fi 9453 9454 9455 CFLAGS="$xorg_testset_save_CFLAGS" 9456 9457 eval supported=\$$cacheid 9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9459$as_echo "$supported" >&6; } 9460 if test "$supported" = "yes" ; then 9461 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9462 found="yes" 9463 fi 9464 fi 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480xorg_testset_save_CFLAGS="$CFLAGS" 9481 9482if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9485$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9486if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9487 $as_echo_n "(cached) " >&6 9488else 9489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9490/* end confdefs.h. */ 9491int i; 9492_ACEOF 9493if ac_fn_c_try_compile "$LINENO"; then : 9494 xorg_cv_cc_flag_unknown_warning_option=yes 9495else 9496 xorg_cv_cc_flag_unknown_warning_option=no 9497fi 9498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9499fi 9500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9501$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9503 CFLAGS="$xorg_testset_save_CFLAGS" 9504fi 9505 9506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9509 fi 9510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9512$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9513if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9514 $as_echo_n "(cached) " >&6 9515else 9516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9517/* end confdefs.h. */ 9518int i; 9519_ACEOF 9520if ac_fn_c_try_compile "$LINENO"; then : 9521 xorg_cv_cc_flag_unused_command_line_argument=yes 9522else 9523 xorg_cv_cc_flag_unused_command_line_argument=no 9524fi 9525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9526fi 9527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9528$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9529 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9530 CFLAGS="$xorg_testset_save_CFLAGS" 9531fi 9532 9533found="no" 9534 9535 if test $found = "no" ; then 9536 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9538 fi 9539 9540 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9542 fi 9543 9544 CFLAGS="$CFLAGS -Warray-bounds" 9545 9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9547$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9548 cacheid=xorg_cv_cc_flag__Warray_bounds 9549 if eval \${$cacheid+:} false; then : 9550 $as_echo_n "(cached) " >&6 9551else 9552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9553/* end confdefs.h. */ 9554int i; 9555int 9556main () 9557{ 9558 9559 ; 9560 return 0; 9561} 9562_ACEOF 9563if ac_fn_c_try_link "$LINENO"; then : 9564 eval $cacheid=yes 9565else 9566 eval $cacheid=no 9567fi 9568rm -f core conftest.err conftest.$ac_objext \ 9569 conftest$ac_exeext conftest.$ac_ext 9570fi 9571 9572 9573 CFLAGS="$xorg_testset_save_CFLAGS" 9574 9575 eval supported=\$$cacheid 9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9577$as_echo "$supported" >&6; } 9578 if test "$supported" = "yes" ; then 9579 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9580 found="yes" 9581 fi 9582 fi 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598xorg_testset_save_CFLAGS="$CFLAGS" 9599 9600if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9603$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9604if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9605 $as_echo_n "(cached) " >&6 9606else 9607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9608/* end confdefs.h. */ 9609int i; 9610_ACEOF 9611if ac_fn_c_try_compile "$LINENO"; then : 9612 xorg_cv_cc_flag_unknown_warning_option=yes 9613else 9614 xorg_cv_cc_flag_unknown_warning_option=no 9615fi 9616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9617fi 9618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9619$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9620 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9621 CFLAGS="$xorg_testset_save_CFLAGS" 9622fi 9623 9624if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9627 fi 9628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9630$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9631if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9632 $as_echo_n "(cached) " >&6 9633else 9634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9635/* end confdefs.h. */ 9636int i; 9637_ACEOF 9638if ac_fn_c_try_compile "$LINENO"; then : 9639 xorg_cv_cc_flag_unused_command_line_argument=yes 9640else 9641 xorg_cv_cc_flag_unused_command_line_argument=no 9642fi 9643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9644fi 9645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9646$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9647 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9648 CFLAGS="$xorg_testset_save_CFLAGS" 9649fi 9650 9651found="no" 9652 9653 if test $found = "no" ; then 9654 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9656 fi 9657 9658 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9660 fi 9661 9662 CFLAGS="$CFLAGS -Wwrite-strings" 9663 9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9665$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9666 cacheid=xorg_cv_cc_flag__Wwrite_strings 9667 if eval \${$cacheid+:} false; then : 9668 $as_echo_n "(cached) " >&6 9669else 9670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9671/* end confdefs.h. */ 9672int i; 9673int 9674main () 9675{ 9676 9677 ; 9678 return 0; 9679} 9680_ACEOF 9681if ac_fn_c_try_link "$LINENO"; then : 9682 eval $cacheid=yes 9683else 9684 eval $cacheid=no 9685fi 9686rm -f core conftest.err conftest.$ac_objext \ 9687 conftest$ac_exeext conftest.$ac_ext 9688fi 9689 9690 9691 CFLAGS="$xorg_testset_save_CFLAGS" 9692 9693 eval supported=\$$cacheid 9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9695$as_echo "$supported" >&6; } 9696 if test "$supported" = "yes" ; then 9697 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9698 found="yes" 9699 fi 9700 fi 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716xorg_testset_save_CFLAGS="$CFLAGS" 9717 9718if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9721$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9722if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9723 $as_echo_n "(cached) " >&6 9724else 9725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9726/* end confdefs.h. */ 9727int i; 9728_ACEOF 9729if ac_fn_c_try_compile "$LINENO"; then : 9730 xorg_cv_cc_flag_unknown_warning_option=yes 9731else 9732 xorg_cv_cc_flag_unknown_warning_option=no 9733fi 9734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9735fi 9736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9737$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9739 CFLAGS="$xorg_testset_save_CFLAGS" 9740fi 9741 9742if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9745 fi 9746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9748$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9749if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9750 $as_echo_n "(cached) " >&6 9751else 9752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9753/* end confdefs.h. */ 9754int i; 9755_ACEOF 9756if ac_fn_c_try_compile "$LINENO"; then : 9757 xorg_cv_cc_flag_unused_command_line_argument=yes 9758else 9759 xorg_cv_cc_flag_unused_command_line_argument=no 9760fi 9761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9762fi 9763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9764$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9766 CFLAGS="$xorg_testset_save_CFLAGS" 9767fi 9768 9769found="no" 9770 9771 if test $found = "no" ; then 9772 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9774 fi 9775 9776 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9778 fi 9779 9780 CFLAGS="$CFLAGS -Waddress" 9781 9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9783$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9784 cacheid=xorg_cv_cc_flag__Waddress 9785 if eval \${$cacheid+:} false; then : 9786 $as_echo_n "(cached) " >&6 9787else 9788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9789/* end confdefs.h. */ 9790int i; 9791int 9792main () 9793{ 9794 9795 ; 9796 return 0; 9797} 9798_ACEOF 9799if ac_fn_c_try_link "$LINENO"; then : 9800 eval $cacheid=yes 9801else 9802 eval $cacheid=no 9803fi 9804rm -f core conftest.err conftest.$ac_objext \ 9805 conftest$ac_exeext conftest.$ac_ext 9806fi 9807 9808 9809 CFLAGS="$xorg_testset_save_CFLAGS" 9810 9811 eval supported=\$$cacheid 9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9813$as_echo "$supported" >&6; } 9814 if test "$supported" = "yes" ; then 9815 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9816 found="yes" 9817 fi 9818 fi 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834xorg_testset_save_CFLAGS="$CFLAGS" 9835 9836if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9839$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9840if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9841 $as_echo_n "(cached) " >&6 9842else 9843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9844/* end confdefs.h. */ 9845int i; 9846_ACEOF 9847if ac_fn_c_try_compile "$LINENO"; then : 9848 xorg_cv_cc_flag_unknown_warning_option=yes 9849else 9850 xorg_cv_cc_flag_unknown_warning_option=no 9851fi 9852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9853fi 9854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9855$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9857 CFLAGS="$xorg_testset_save_CFLAGS" 9858fi 9859 9860if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9863 fi 9864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9866$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9867if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9868 $as_echo_n "(cached) " >&6 9869else 9870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9871/* end confdefs.h. */ 9872int i; 9873_ACEOF 9874if ac_fn_c_try_compile "$LINENO"; then : 9875 xorg_cv_cc_flag_unused_command_line_argument=yes 9876else 9877 xorg_cv_cc_flag_unused_command_line_argument=no 9878fi 9879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9880fi 9881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9882$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9884 CFLAGS="$xorg_testset_save_CFLAGS" 9885fi 9886 9887found="no" 9888 9889 if test $found = "no" ; then 9890 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9892 fi 9893 9894 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9896 fi 9897 9898 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9899 9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9901$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9902 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9903 if eval \${$cacheid+:} false; then : 9904 $as_echo_n "(cached) " >&6 9905else 9906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9907/* end confdefs.h. */ 9908int i; 9909int 9910main () 9911{ 9912 9913 ; 9914 return 0; 9915} 9916_ACEOF 9917if ac_fn_c_try_link "$LINENO"; then : 9918 eval $cacheid=yes 9919else 9920 eval $cacheid=no 9921fi 9922rm -f core conftest.err conftest.$ac_objext \ 9923 conftest$ac_exeext conftest.$ac_ext 9924fi 9925 9926 9927 CFLAGS="$xorg_testset_save_CFLAGS" 9928 9929 eval supported=\$$cacheid 9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9931$as_echo "$supported" >&6; } 9932 if test "$supported" = "yes" ; then 9933 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9934 found="yes" 9935 fi 9936 fi 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952xorg_testset_save_CFLAGS="$CFLAGS" 9953 9954if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9957$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9958if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9959 $as_echo_n "(cached) " >&6 9960else 9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9962/* end confdefs.h. */ 9963int i; 9964_ACEOF 9965if ac_fn_c_try_compile "$LINENO"; then : 9966 xorg_cv_cc_flag_unknown_warning_option=yes 9967else 9968 xorg_cv_cc_flag_unknown_warning_option=no 9969fi 9970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9971fi 9972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9973$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9974 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9975 CFLAGS="$xorg_testset_save_CFLAGS" 9976fi 9977 9978if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9981 fi 9982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9984$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9985if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9986 $as_echo_n "(cached) " >&6 9987else 9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9989/* end confdefs.h. */ 9990int i; 9991_ACEOF 9992if ac_fn_c_try_compile "$LINENO"; then : 9993 xorg_cv_cc_flag_unused_command_line_argument=yes 9994else 9995 xorg_cv_cc_flag_unused_command_line_argument=no 9996fi 9997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9998fi 9999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10000$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10002 CFLAGS="$xorg_testset_save_CFLAGS" 10003fi 10004 10005found="no" 10006 10007 if test $found = "no" ; then 10008 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10010 fi 10011 10012 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10014 fi 10015 10016 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10017 10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10019$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10020 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10021 if eval \${$cacheid+:} false; then : 10022 $as_echo_n "(cached) " >&6 10023else 10024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10025/* end confdefs.h. */ 10026int i; 10027int 10028main () 10029{ 10030 10031 ; 10032 return 0; 10033} 10034_ACEOF 10035if ac_fn_c_try_link "$LINENO"; then : 10036 eval $cacheid=yes 10037else 10038 eval $cacheid=no 10039fi 10040rm -f core conftest.err conftest.$ac_objext \ 10041 conftest$ac_exeext conftest.$ac_ext 10042fi 10043 10044 10045 CFLAGS="$xorg_testset_save_CFLAGS" 10046 10047 eval supported=\$$cacheid 10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10049$as_echo "$supported" >&6; } 10050 if test "$supported" = "yes" ; then 10051 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10052 found="yes" 10053 fi 10054 fi 10055 10056 10057fi 10058 10059 10060 10061 10062 10063 10064 10065 CWARNFLAGS="$BASE_CFLAGS" 10066 if test "x$GCC" = xyes ; then 10067 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10068 fi 10069 10070 10071 10072 10073 10074 10075 10076 10077# Check whether --enable-strict-compilation was given. 10078if test "${enable_strict_compilation+set}" = set; then : 10079 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10080else 10081 STRICT_COMPILE=no 10082fi 10083 10084 10085 10086 10087 10088 10089STRICT_CFLAGS="" 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103xorg_testset_save_CFLAGS="$CFLAGS" 10104 10105if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10108$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10109if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10110 $as_echo_n "(cached) " >&6 10111else 10112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10113/* end confdefs.h. */ 10114int i; 10115_ACEOF 10116if ac_fn_c_try_compile "$LINENO"; then : 10117 xorg_cv_cc_flag_unknown_warning_option=yes 10118else 10119 xorg_cv_cc_flag_unknown_warning_option=no 10120fi 10121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10122fi 10123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10124$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10125 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10126 CFLAGS="$xorg_testset_save_CFLAGS" 10127fi 10128 10129if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10132 fi 10133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10135$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10136if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10137 $as_echo_n "(cached) " >&6 10138else 10139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10140/* end confdefs.h. */ 10141int i; 10142_ACEOF 10143if ac_fn_c_try_compile "$LINENO"; then : 10144 xorg_cv_cc_flag_unused_command_line_argument=yes 10145else 10146 xorg_cv_cc_flag_unused_command_line_argument=no 10147fi 10148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10149fi 10150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10151$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10152 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10153 CFLAGS="$xorg_testset_save_CFLAGS" 10154fi 10155 10156found="no" 10157 10158 if test $found = "no" ; then 10159 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10161 fi 10162 10163 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10165 fi 10166 10167 CFLAGS="$CFLAGS -pedantic" 10168 10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10170$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10171 cacheid=xorg_cv_cc_flag__pedantic 10172 if eval \${$cacheid+:} false; then : 10173 $as_echo_n "(cached) " >&6 10174else 10175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10176/* end confdefs.h. */ 10177int i; 10178int 10179main () 10180{ 10181 10182 ; 10183 return 0; 10184} 10185_ACEOF 10186if ac_fn_c_try_link "$LINENO"; then : 10187 eval $cacheid=yes 10188else 10189 eval $cacheid=no 10190fi 10191rm -f core conftest.err conftest.$ac_objext \ 10192 conftest$ac_exeext conftest.$ac_ext 10193fi 10194 10195 10196 CFLAGS="$xorg_testset_save_CFLAGS" 10197 10198 eval supported=\$$cacheid 10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10200$as_echo "$supported" >&6; } 10201 if test "$supported" = "yes" ; then 10202 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10203 found="yes" 10204 fi 10205 fi 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221xorg_testset_save_CFLAGS="$CFLAGS" 10222 10223if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10226$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10227if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10228 $as_echo_n "(cached) " >&6 10229else 10230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10231/* end confdefs.h. */ 10232int i; 10233_ACEOF 10234if ac_fn_c_try_compile "$LINENO"; then : 10235 xorg_cv_cc_flag_unknown_warning_option=yes 10236else 10237 xorg_cv_cc_flag_unknown_warning_option=no 10238fi 10239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10240fi 10241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10242$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10243 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10244 CFLAGS="$xorg_testset_save_CFLAGS" 10245fi 10246 10247if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10250 fi 10251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10253$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10254if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10255 $as_echo_n "(cached) " >&6 10256else 10257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10258/* end confdefs.h. */ 10259int i; 10260_ACEOF 10261if ac_fn_c_try_compile "$LINENO"; then : 10262 xorg_cv_cc_flag_unused_command_line_argument=yes 10263else 10264 xorg_cv_cc_flag_unused_command_line_argument=no 10265fi 10266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10267fi 10268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10269$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10270 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10271 CFLAGS="$xorg_testset_save_CFLAGS" 10272fi 10273 10274found="no" 10275 10276 if test $found = "no" ; then 10277 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10279 fi 10280 10281 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10283 fi 10284 10285 CFLAGS="$CFLAGS -Werror" 10286 10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10288$as_echo_n "checking if $CC supports -Werror... " >&6; } 10289 cacheid=xorg_cv_cc_flag__Werror 10290 if eval \${$cacheid+:} false; then : 10291 $as_echo_n "(cached) " >&6 10292else 10293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10294/* end confdefs.h. */ 10295int i; 10296int 10297main () 10298{ 10299 10300 ; 10301 return 0; 10302} 10303_ACEOF 10304if ac_fn_c_try_link "$LINENO"; then : 10305 eval $cacheid=yes 10306else 10307 eval $cacheid=no 10308fi 10309rm -f core conftest.err conftest.$ac_objext \ 10310 conftest$ac_exeext conftest.$ac_ext 10311fi 10312 10313 10314 CFLAGS="$xorg_testset_save_CFLAGS" 10315 10316 eval supported=\$$cacheid 10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10318$as_echo "$supported" >&6; } 10319 if test "$supported" = "yes" ; then 10320 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10321 found="yes" 10322 fi 10323 fi 10324 10325 if test $found = "no" ; then 10326 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10328 fi 10329 10330 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10332 fi 10333 10334 CFLAGS="$CFLAGS -errwarn" 10335 10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10337$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10338 cacheid=xorg_cv_cc_flag__errwarn 10339 if eval \${$cacheid+:} false; then : 10340 $as_echo_n "(cached) " >&6 10341else 10342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10343/* end confdefs.h. */ 10344int i; 10345int 10346main () 10347{ 10348 10349 ; 10350 return 0; 10351} 10352_ACEOF 10353if ac_fn_c_try_link "$LINENO"; then : 10354 eval $cacheid=yes 10355else 10356 eval $cacheid=no 10357fi 10358rm -f core conftest.err conftest.$ac_objext \ 10359 conftest$ac_exeext conftest.$ac_ext 10360fi 10361 10362 10363 CFLAGS="$xorg_testset_save_CFLAGS" 10364 10365 eval supported=\$$cacheid 10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10367$as_echo "$supported" >&6; } 10368 if test "$supported" = "yes" ; then 10369 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10370 found="yes" 10371 fi 10372 fi 10373 10374 10375 10376# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10377# activate it with -Werror, so we add it here explicitly. 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391xorg_testset_save_CFLAGS="$CFLAGS" 10392 10393if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10396$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10397if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10398 $as_echo_n "(cached) " >&6 10399else 10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10401/* end confdefs.h. */ 10402int i; 10403_ACEOF 10404if ac_fn_c_try_compile "$LINENO"; then : 10405 xorg_cv_cc_flag_unknown_warning_option=yes 10406else 10407 xorg_cv_cc_flag_unknown_warning_option=no 10408fi 10409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10410fi 10411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10412$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10414 CFLAGS="$xorg_testset_save_CFLAGS" 10415fi 10416 10417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10420 fi 10421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10423$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10424if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10425 $as_echo_n "(cached) " >&6 10426else 10427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10428/* end confdefs.h. */ 10429int i; 10430_ACEOF 10431if ac_fn_c_try_compile "$LINENO"; then : 10432 xorg_cv_cc_flag_unused_command_line_argument=yes 10433else 10434 xorg_cv_cc_flag_unused_command_line_argument=no 10435fi 10436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10437fi 10438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10439$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10441 CFLAGS="$xorg_testset_save_CFLAGS" 10442fi 10443 10444found="no" 10445 10446 if test $found = "no" ; then 10447 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10449 fi 10450 10451 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10453 fi 10454 10455 CFLAGS="$CFLAGS -Werror=attributes" 10456 10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10458$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10459 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 10460 if eval \${$cacheid+:} false; then : 10461 $as_echo_n "(cached) " >&6 10462else 10463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10464/* end confdefs.h. */ 10465int i; 10466int 10467main () 10468{ 10469 10470 ; 10471 return 0; 10472} 10473_ACEOF 10474if ac_fn_c_try_link "$LINENO"; then : 10475 eval $cacheid=yes 10476else 10477 eval $cacheid=no 10478fi 10479rm -f core conftest.err conftest.$ac_objext \ 10480 conftest$ac_exeext conftest.$ac_ext 10481fi 10482 10483 10484 CFLAGS="$xorg_testset_save_CFLAGS" 10485 10486 eval supported=\$$cacheid 10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10488$as_echo "$supported" >&6; } 10489 if test "$supported" = "yes" ; then 10490 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10491 found="yes" 10492 fi 10493 fi 10494 10495 10496 10497if test "x$STRICT_COMPILE" = "xyes"; then 10498 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10499 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10500fi 10501 10502 10503 10504 10505 10506 10507cat >>confdefs.h <<_ACEOF 10508#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10509_ACEOF 10510 10511 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10512 if test "x$PVM" = "x"; then 10513 PVM="0" 10514 fi 10515 10516cat >>confdefs.h <<_ACEOF 10517#define PACKAGE_VERSION_MINOR $PVM 10518_ACEOF 10519 10520 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10521 if test "x$PVP" = "x"; then 10522 PVP="0" 10523 fi 10524 10525cat >>confdefs.h <<_ACEOF 10526#define PACKAGE_VERSION_PATCHLEVEL $PVP 10527_ACEOF 10528 10529 10530 10531CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10532mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10533|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10534echo 'git directory not found: installing possibly empty changelog.' >&2)" 10535 10536 10537 10538 10539macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10540INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10541mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10542|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10543echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10544 10545 10546 10547 10548 10549 10550if test x$APP_MAN_SUFFIX = x ; then 10551 APP_MAN_SUFFIX=1 10552fi 10553if test x$APP_MAN_DIR = x ; then 10554 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10555fi 10556 10557if test x$LIB_MAN_SUFFIX = x ; then 10558 LIB_MAN_SUFFIX=3 10559fi 10560if test x$LIB_MAN_DIR = x ; then 10561 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10562fi 10563 10564if test x$FILE_MAN_SUFFIX = x ; then 10565 case $host_os in 10566 solaris*) FILE_MAN_SUFFIX=4 ;; 10567 *) FILE_MAN_SUFFIX=5 ;; 10568 esac 10569fi 10570if test x$FILE_MAN_DIR = x ; then 10571 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10572fi 10573 10574if test x$MISC_MAN_SUFFIX = x ; then 10575 case $host_os in 10576 solaris*) MISC_MAN_SUFFIX=5 ;; 10577 *) MISC_MAN_SUFFIX=7 ;; 10578 esac 10579fi 10580if test x$MISC_MAN_DIR = x ; then 10581 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10582fi 10583 10584if test x$DRIVER_MAN_SUFFIX = x ; then 10585 case $host_os in 10586 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10587 *) DRIVER_MAN_SUFFIX=4 ;; 10588 esac 10589fi 10590if test x$DRIVER_MAN_DIR = x ; then 10591 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10592fi 10593 10594if test x$ADMIN_MAN_SUFFIX = x ; then 10595 case $host_os in 10596 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10597 *) ADMIN_MAN_SUFFIX=8 ;; 10598 esac 10599fi 10600if test x$ADMIN_MAN_DIR = x ; then 10601 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10602fi 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618XORG_MAN_PAGE="X Version 11" 10619 10620MAN_SUBSTS="\ 10621 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10622 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10623 -e 's|__xservername__|Xorg|g' \ 10624 -e 's|__xconfigfile__|xorg.conf|g' \ 10625 -e 's|__projectroot__|\$(prefix)|g' \ 10626 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10627 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10628 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10629 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10630 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10631 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10632 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10633 10634 10635 10636# Check whether --enable-silent-rules was given. 10637if test "${enable_silent_rules+set}" = set; then : 10638 enableval=$enable_silent_rules; 10639fi 10640 10641case $enable_silent_rules in # ((( 10642 yes) AM_DEFAULT_VERBOSITY=0;; 10643 no) AM_DEFAULT_VERBOSITY=1;; 10644 *) AM_DEFAULT_VERBOSITY=0;; 10645esac 10646am_make=${MAKE-make} 10647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10648$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10649if ${am_cv_make_support_nested_variables+:} false; then : 10650 $as_echo_n "(cached) " >&6 10651else 10652 if $as_echo 'TRUE=$(BAR$(V)) 10653BAR0=false 10654BAR1=true 10655V=1 10656am__doit: 10657 @$(TRUE) 10658.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10659 am_cv_make_support_nested_variables=yes 10660else 10661 am_cv_make_support_nested_variables=no 10662fi 10663fi 10664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10665$as_echo "$am_cv_make_support_nested_variables" >&6; } 10666if test $am_cv_make_support_nested_variables = yes; then 10667 AM_V='$(V)' 10668 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10669else 10670 AM_V=$AM_DEFAULT_VERBOSITY 10671 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10672fi 10673AM_BACKSLASH='\' 10674 10675 10676 10677ac_ext=c 10678ac_cpp='$CPP $CPPFLAGS' 10679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10681ac_compiler_gnu=$ac_cv_c_compiler_gnu 10682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 10683$as_echo_n "checking how to run the C preprocessor... " >&6; } 10684# On Suns, sometimes $CPP names a directory. 10685if test -n "$CPP" && test -d "$CPP"; then 10686 CPP= 10687fi 10688if test -z "$CPP"; then 10689 if ${ac_cv_prog_CPP+:} false; then : 10690 $as_echo_n "(cached) " >&6 10691else 10692 # Double quotes because CPP needs to be expanded 10693 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 10694 do 10695 ac_preproc_ok=false 10696for ac_c_preproc_warn_flag in '' yes 10697do 10698 # Use a header file that comes with gcc, so configuring glibc 10699 # with a fresh cross-compiler works. 10700 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10701 # <limits.h> exists even on freestanding compilers. 10702 # On the NeXT, cc -E runs the code through the compiler's parser, 10703 # not just through cpp. "Syntax error" is here to catch this case. 10704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10705/* end confdefs.h. */ 10706#ifdef __STDC__ 10707# include <limits.h> 10708#else 10709# include <assert.h> 10710#endif 10711 Syntax error 10712_ACEOF 10713if ac_fn_c_try_cpp "$LINENO"; then : 10714 10715else 10716 # Broken: fails on valid input. 10717continue 10718fi 10719rm -f conftest.err conftest.i conftest.$ac_ext 10720 10721 # OK, works on sane cases. Now check whether nonexistent headers 10722 # can be detected and how. 10723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10724/* end confdefs.h. */ 10725#include <ac_nonexistent.h> 10726_ACEOF 10727if ac_fn_c_try_cpp "$LINENO"; then : 10728 # Broken: success on invalid input. 10729continue 10730else 10731 # Passes both tests. 10732ac_preproc_ok=: 10733break 10734fi 10735rm -f conftest.err conftest.i conftest.$ac_ext 10736 10737done 10738# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 10739rm -f conftest.i conftest.err conftest.$ac_ext 10740if $ac_preproc_ok; then : 10741 break 10742fi 10743 10744 done 10745 ac_cv_prog_CPP=$CPP 10746 10747fi 10748 CPP=$ac_cv_prog_CPP 10749else 10750 ac_cv_prog_CPP=$CPP 10751fi 10752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 10753$as_echo "$CPP" >&6; } 10754ac_preproc_ok=false 10755for ac_c_preproc_warn_flag in '' yes 10756do 10757 # Use a header file that comes with gcc, so configuring glibc 10758 # with a fresh cross-compiler works. 10759 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10760 # <limits.h> exists even on freestanding compilers. 10761 # On the NeXT, cc -E runs the code through the compiler's parser, 10762 # not just through cpp. "Syntax error" is here to catch this case. 10763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10764/* end confdefs.h. */ 10765#ifdef __STDC__ 10766# include <limits.h> 10767#else 10768# include <assert.h> 10769#endif 10770 Syntax error 10771_ACEOF 10772if ac_fn_c_try_cpp "$LINENO"; then : 10773 10774else 10775 # Broken: fails on valid input. 10776continue 10777fi 10778rm -f conftest.err conftest.i conftest.$ac_ext 10779 10780 # OK, works on sane cases. Now check whether nonexistent headers 10781 # can be detected and how. 10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10783/* end confdefs.h. */ 10784#include <ac_nonexistent.h> 10785_ACEOF 10786if ac_fn_c_try_cpp "$LINENO"; then : 10787 # Broken: success on invalid input. 10788continue 10789else 10790 # Passes both tests. 10791ac_preproc_ok=: 10792break 10793fi 10794rm -f conftest.err conftest.i conftest.$ac_ext 10795 10796done 10797# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 10798rm -f conftest.i conftest.err conftest.$ac_ext 10799if $ac_preproc_ok; then : 10800 10801else 10802 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10804as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 10805See \`config.log' for more details" "$LINENO" 5; } 10806fi 10807 10808ac_ext=c 10809ac_cpp='$CPP $CPPFLAGS' 10810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10812ac_compiler_gnu=$ac_cv_c_compiler_gnu 10813 10814 10815 10816for ac_prog in cpp 10817do 10818 # Extract the first word of "$ac_prog", so it can be a program name with args. 10819set dummy $ac_prog; ac_word=$2 10820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10821$as_echo_n "checking for $ac_word... " >&6; } 10822if ${ac_cv_path_RAWCPP+:} false; then : 10823 $as_echo_n "(cached) " >&6 10824else 10825 case $RAWCPP in 10826 [\\/]* | ?:[\\/]*) 10827 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 10828 ;; 10829 *) 10830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10831as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 10832for as_dir in $as_dummy 10833do 10834 IFS=$as_save_IFS 10835 test -z "$as_dir" && as_dir=. 10836 for ac_exec_ext in '' $ac_executable_extensions; do 10837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10838 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 10839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10840 break 2 10841 fi 10842done 10843 done 10844IFS=$as_save_IFS 10845 10846 ;; 10847esac 10848fi 10849RAWCPP=$ac_cv_path_RAWCPP 10850if test -n "$RAWCPP"; then 10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 10852$as_echo "$RAWCPP" >&6; } 10853else 10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10855$as_echo "no" >&6; } 10856fi 10857 10858 10859 test -n "$RAWCPP" && break 10860done 10861test -n "$RAWCPP" || RAWCPP="${CPP}" 10862 10863 10864# Check for flag to avoid builtin definitions - assumes unix is predefined, 10865# which is not the best choice for supporting other OS'es, but covers most 10866# of the ones we need for now. 10867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 10868$as_echo_n "checking if $RAWCPP requires -undef... " >&6; } 10869cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10870/* end confdefs.h. */ 10871Does cpp redefine unix ? 10872_ACEOF 10873if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10875$as_echo "no" >&6; } 10876else 10877 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 10878 RAWCPPFLAGS=-undef 10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10880$as_echo "yes" >&6; } 10881 # under Cygwin unix is still defined even with -undef 10882 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 10883 RAWCPPFLAGS="-undef -ansi" 10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 10885$as_echo "yes, with -ansi" >&6; } 10886 else 10887 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 10888 fi 10889fi 10890rm -f conftest.$ac_ext 10891 10892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 10893$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; } 10894cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10895/* end confdefs.h. */ 10896Does cpp preserve "whitespace"? 10897_ACEOF 10898if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10900$as_echo "no" >&6; } 10901else 10902 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 10903 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10905$as_echo "yes" >&6; } 10906 else 10907 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 10908 fi 10909fi 10910rm -f conftest.$ac_ext 10911 10912 10913CPP_PROGRAM=${RAWCPP} 10914 10915 10916for ac_func in mkstemp 10917do : 10918 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 10919if test "x$ac_cv_func_mkstemp" = xyes; then : 10920 cat >>confdefs.h <<_ACEOF 10921#define HAVE_MKSTEMP 1 10922_ACEOF 10923 10924fi 10925done 10926 10927 10928# Extract the first word of "perl", so it can be a program name with args. 10929set dummy perl; ac_word=$2 10930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10931$as_echo_n "checking for $ac_word... " >&6; } 10932if ${ac_cv_prog_HAS_PERL+:} false; then : 10933 $as_echo_n "(cached) " >&6 10934else 10935 if test -n "$HAS_PERL"; then 10936 ac_cv_prog_HAS_PERL="$HAS_PERL" # Let the user override the test. 10937else 10938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10939for as_dir in $PATH 10940do 10941 IFS=$as_save_IFS 10942 test -z "$as_dir" && as_dir=. 10943 for ac_exec_ext in '' $ac_executable_extensions; do 10944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10945 ac_cv_prog_HAS_PERL="yes" 10946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10947 break 2 10948 fi 10949done 10950 done 10951IFS=$as_save_IFS 10952 10953fi 10954fi 10955HAS_PERL=$ac_cv_prog_HAS_PERL 10956if test -n "$HAS_PERL"; then 10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_PERL" >&5 10958$as_echo "$HAS_PERL" >&6; } 10959else 10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10961$as_echo "no" >&6; } 10962fi 10963 10964 10965 if test "x$HAS_PERL" = xyes; then 10966 HAS_PERL_TRUE= 10967 HAS_PERL_FALSE='#' 10968else 10969 HAS_PERL_TRUE='#' 10970 HAS_PERL_FALSE= 10971fi 10972 10973 10974 10975 10976DEFAULT_XCONFDIR="${libdir}/X11/config" 10977 10978# Check whether --with-config-dir was given. 10979if test "${with_config_dir+set}" = set; then : 10980 withval=$with_config_dir; XCONFDIR="$withval" 10981else 10982 XCONFDIR="$DEFAULT_XCONFDIR" 10983fi 10984 10985 10986 10987DEFAULT_PREPROCESSCMD_MKDEPEND="gcc -E" 10988 10989# Check whether --with-script-preproc-cmd was given. 10990if test "${with_script_preproc_cmd+set}" = set; then : 10991 withval=$with_script_preproc_cmd; PREPROCESSCMD_MKDEPEND="$withval" 10992else 10993 PREPROCESSCMD_MKDEPEND="$DEFAULT_PREPROCESSCMD_MKDEPEND" 10994fi 10995 10996 10997 10998DEFAULT_ARCMD="ar clq" 10999 11000# Check whether --with-create-lib-cmd was given. 11001if test "${with_create_lib_cmd+set}" = set; then : 11002 withval=$with_create_lib_cmd; ARCMD="$withval" 11003else 11004 ARCMD="$DEFAULT_ARCMD" 11005fi 11006 11007 11008 11009DEFAULT_RANLIB="ranlib" 11010 11011# Check whether --with-clean-lib-cmd was given. 11012if test "${with_clean_lib_cmd+set}" = set; then : 11013 withval=$with_clean_lib_cmd; RANLIB="$withval" 11014else 11015 RANLIB="$DEFAULT_RANLIB" 11016fi 11017 11018 11019 11020# Check whether --enable-revpath was given. 11021if test "${enable_revpath+set}" = set; then : 11022 enableval=$enable_revpath; BUILD_REVPATH="$enableval" 11023else 11024 BUILD_REVPATH=yes 11025fi 11026 11027 if test "x$BUILD_REVPATH" = xyes; then 11028 BUILD_REVPATH_TRUE= 11029 BUILD_REVPATH_FALSE='#' 11030else 11031 BUILD_REVPATH_TRUE='#' 11032 BUILD_REVPATH_FALSE= 11033fi 11034 11035 11036# Check whether --enable-makeg was given. 11037if test "${enable_makeg+set}" = set; then : 11038 enableval=$enable_makeg; BUILD_MAKEG="$enableval" 11039else 11040 BUILD_MAKEG=yes 11041fi 11042 11043 if test "x$BUILD_MAKEG" = xyes; then 11044 BUILD_MAKEG_TRUE= 11045 BUILD_MAKEG_FALSE='#' 11046else 11047 BUILD_MAKEG_TRUE='#' 11048 BUILD_MAKEG_FALSE= 11049fi 11050 11051 11052# Check whether --enable-xmkmf was given. 11053if test "${enable_xmkmf+set}" = set; then : 11054 enableval=$enable_xmkmf; BUILD_XMKMF="$enableval" 11055else 11056 BUILD_XMKMF=yes 11057fi 11058 11059 if test "x$BUILD_XMKMF" = xyes; then 11060 BUILD_XMKMF_TRUE= 11061 BUILD_XMKMF_FALSE='#' 11062else 11063 BUILD_XMKMF_TRUE='#' 11064 BUILD_XMKMF_FALSE= 11065fi 11066 11067 11068# Check whether --enable-ccmakedep was given. 11069if test "${enable_ccmakedep+set}" = set; then : 11070 enableval=$enable_ccmakedep; BUILD_CCMAKEDEP="$enableval" 11071else 11072 BUILD_CCMAKEDEP=yes 11073fi 11074 11075 if test "x$BUILD_CCMAKEDEP" = xyes; then 11076 BUILD_CCMAKEDEP_TRUE= 11077 BUILD_CCMAKEDEP_FALSE='#' 11078else 11079 BUILD_CCMAKEDEP_TRUE='#' 11080 BUILD_CCMAKEDEP_FALSE= 11081fi 11082 11083 11084# Check whether --enable-mergelib was given. 11085if test "${enable_mergelib+set}" = set; then : 11086 enableval=$enable_mergelib; BUILD_MERGELIB="$enableval" 11087else 11088 BUILD_MERGELIB=yes 11089fi 11090 11091 if test "x$BUILD_MERGELIB" = xyes; then 11092 BUILD_MERGELIB_TRUE= 11093 BUILD_MERGELIB_FALSE='#' 11094else 11095 BUILD_MERGELIB_TRUE='#' 11096 BUILD_MERGELIB_FALSE= 11097fi 11098 11099 11100# Check whether --enable-mkdirhier was given. 11101if test "${enable_mkdirhier+set}" = set; then : 11102 enableval=$enable_mkdirhier; BUILD_MKDIRHIER="$enableval" 11103else 11104 BUILD_MKDIRHIER=yes 11105fi 11106 11107 if test "x$BUILD_MKDIRHIER" = xyes; then 11108 BUILD_MKDIRHIER_TRUE= 11109 BUILD_MKDIRHIER_FALSE='#' 11110else 11111 BUILD_MKDIRHIER_TRUE='#' 11112 BUILD_MKDIRHIER_FALSE= 11113fi 11114 11115 11116# Check whether --enable-cleanlinks was given. 11117if test "${enable_cleanlinks+set}" = set; then : 11118 enableval=$enable_cleanlinks; BUILD_CLEANLINKS="$enableval" 11119else 11120 BUILD_CLEANLINKS=yes 11121fi 11122 11123 if test "x$BUILD_CLEANLINKS" = xyes; then 11124 BUILD_CLEANLINKS_TRUE= 11125 BUILD_CLEANLINKS_FALSE='#' 11126else 11127 BUILD_CLEANLINKS_TRUE='#' 11128 BUILD_CLEANLINKS_FALSE= 11129fi 11130 11131 11132# Check whether --enable-mkhtmlindex was given. 11133if test "${enable_mkhtmlindex+set}" = set; then : 11134 enableval=$enable_mkhtmlindex; BUILD_MKHTMLINDEX="$enableval" 11135else 11136 BUILD_MKHTMLINDEX=yes 11137fi 11138 11139 if test "x$BUILD_MKHTMLINDEX" = xyes; then 11140 BUILD_MKHTMLINDEX_TRUE= 11141 BUILD_MKHTMLINDEX_FALSE='#' 11142else 11143 BUILD_MKHTMLINDEX_TRUE='#' 11144 BUILD_MKHTMLINDEX_FALSE= 11145fi 11146 11147 11148# Checks for pkg-config packages 11149 11150pkg_failed=no 11151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPROTO" >&5 11152$as_echo_n "checking for XPROTO... " >&6; } 11153 11154if test -n "$XPROTO_CFLAGS"; then 11155 pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS" 11156 elif test -n "$PKG_CONFIG"; then 11157 if test -n "$PKG_CONFIG" && \ 11158 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 11159 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 11160 ac_status=$? 11161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11162 test $ac_status = 0; }; then 11163 pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null` 11164else 11165 pkg_failed=yes 11166fi 11167 else 11168 pkg_failed=untried 11169fi 11170if test -n "$XPROTO_LIBS"; then 11171 pkg_cv_XPROTO_LIBS="$XPROTO_LIBS" 11172 elif test -n "$PKG_CONFIG"; then 11173 if test -n "$PKG_CONFIG" && \ 11174 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 11175 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 11176 ac_status=$? 11177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11178 test $ac_status = 0; }; then 11179 pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null` 11180else 11181 pkg_failed=yes 11182fi 11183 else 11184 pkg_failed=untried 11185fi 11186 11187 11188 11189if test $pkg_failed = yes; then 11190 11191if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11192 _pkg_short_errors_supported=yes 11193else 11194 _pkg_short_errors_supported=no 11195fi 11196 if test $_pkg_short_errors_supported = yes; then 11197 XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1` 11198 else 11199 XPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1` 11200 fi 11201 # Put the nasty error message in config.log where it belongs 11202 echo "$XPROTO_PKG_ERRORS" >&5 11203 11204 as_fn_error $? "Package requirements (xproto) were not met: 11205 11206$XPROTO_PKG_ERRORS 11207 11208Consider adjusting the PKG_CONFIG_PATH environment variable if you 11209installed software in a non-standard prefix. 11210 11211Alternatively, you may set the environment variables XPROTO_CFLAGS 11212and XPROTO_LIBS to avoid the need to call pkg-config. 11213See the pkg-config man page for more details. 11214" "$LINENO" 5 11215elif test $pkg_failed = untried; then 11216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11218as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11219is in your PATH or set the PKG_CONFIG environment variable to the full 11220path to pkg-config. 11221 11222Alternatively, you may set the environment variables XPROTO_CFLAGS 11223and XPROTO_LIBS to avoid the need to call pkg-config. 11224See the pkg-config man page for more details. 11225 11226To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11227See \`config.log' for more details" "$LINENO" 5; } 11228else 11229 XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS 11230 XPROTO_LIBS=$pkg_cv_XPROTO_LIBS 11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11232$as_echo "yes" >&6; } 11233 : 11234fi 11235 11236ac_config_files="$ac_config_files Makefile" 11237 11238cat >confcache <<\_ACEOF 11239# This file is a shell script that caches the results of configure 11240# tests run on this system so they can be shared between configure 11241# scripts and configure runs, see configure's option --config-cache. 11242# It is not useful on other systems. If it contains results you don't 11243# want to keep, you may remove or edit it. 11244# 11245# config.status only pays attention to the cache file if you give it 11246# the --recheck option to rerun configure. 11247# 11248# `ac_cv_env_foo' variables (set or unset) will be overridden when 11249# loading this file, other *unset* `ac_cv_foo' will be assigned the 11250# following values. 11251 11252_ACEOF 11253 11254# The following way of writing the cache mishandles newlines in values, 11255# but we know of no workaround that is simple, portable, and efficient. 11256# So, we kill variables containing newlines. 11257# Ultrix sh set writes to stderr and can't be redirected directly, 11258# and sets the high bit in the cache file unless we assign to the vars. 11259( 11260 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11261 eval ac_val=\$$ac_var 11262 case $ac_val in #( 11263 *${as_nl}*) 11264 case $ac_var in #( 11265 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11266$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11267 esac 11268 case $ac_var in #( 11269 _ | IFS | as_nl) ;; #( 11270 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11271 *) { eval $ac_var=; unset $ac_var;} ;; 11272 esac ;; 11273 esac 11274 done 11275 11276 (set) 2>&1 | 11277 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11278 *${as_nl}ac_space=\ *) 11279 # `set' does not quote correctly, so add quotes: double-quote 11280 # substitution turns \\\\ into \\, and sed turns \\ into \. 11281 sed -n \ 11282 "s/'/'\\\\''/g; 11283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11284 ;; #( 11285 *) 11286 # `set' quotes correctly as required by POSIX, so do not add quotes. 11287 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11288 ;; 11289 esac | 11290 sort 11291) | 11292 sed ' 11293 /^ac_cv_env_/b end 11294 t clear 11295 :clear 11296 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11297 t end 11298 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11299 :end' >>confcache 11300if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11301 if test -w "$cache_file"; then 11302 if test "x$cache_file" != "x/dev/null"; then 11303 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11304$as_echo "$as_me: updating cache $cache_file" >&6;} 11305 if test ! -f "$cache_file" || test -h "$cache_file"; then 11306 cat confcache >"$cache_file" 11307 else 11308 case $cache_file in #( 11309 */* | ?:*) 11310 mv -f confcache "$cache_file"$$ && 11311 mv -f "$cache_file"$$ "$cache_file" ;; #( 11312 *) 11313 mv -f confcache "$cache_file" ;; 11314 esac 11315 fi 11316 fi 11317 else 11318 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11319$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11320 fi 11321fi 11322rm -f confcache 11323 11324test "x$prefix" = xNONE && prefix=$ac_default_prefix 11325# Let make expand exec_prefix. 11326test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11327 11328DEFS=-DHAVE_CONFIG_H 11329 11330ac_libobjs= 11331ac_ltlibobjs= 11332U= 11333for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11334 # 1. Remove the extension, and $U if already installed. 11335 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11336 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11337 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11338 # will be set to the directory where LIBOBJS objects are built. 11339 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11340 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11341done 11342LIBOBJS=$ac_libobjs 11343 11344LTLIBOBJS=$ac_ltlibobjs 11345 11346 11347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11348$as_echo_n "checking that generated files are newer than configure... " >&6; } 11349 if test -n "$am_sleep_pid"; then 11350 # Hide warnings about reused PIDs. 11351 wait $am_sleep_pid 2>/dev/null 11352 fi 11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11354$as_echo "done" >&6; } 11355 if test -n "$EXEEXT"; then 11356 am__EXEEXT_TRUE= 11357 am__EXEEXT_FALSE='#' 11358else 11359 am__EXEEXT_TRUE='#' 11360 am__EXEEXT_FALSE= 11361fi 11362 11363if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11364 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 11365Usually this means the macro was only invoked conditionally." "$LINENO" 5 11366fi 11367if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11368 as_fn_error $? "conditional \"AMDEP\" was never defined. 11369Usually this means the macro was only invoked conditionally." "$LINENO" 5 11370fi 11371if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11372 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11373Usually this means the macro was only invoked conditionally." "$LINENO" 5 11374fi 11375if test -z "${HAS_PERL_TRUE}" && test -z "${HAS_PERL_FALSE}"; then 11376 as_fn_error $? "conditional \"HAS_PERL\" was never defined. 11377Usually this means the macro was only invoked conditionally." "$LINENO" 5 11378fi 11379if test -z "${BUILD_REVPATH_TRUE}" && test -z "${BUILD_REVPATH_FALSE}"; then 11380 as_fn_error $? "conditional \"BUILD_REVPATH\" was never defined. 11381Usually this means the macro was only invoked conditionally." "$LINENO" 5 11382fi 11383if test -z "${BUILD_MAKEG_TRUE}" && test -z "${BUILD_MAKEG_FALSE}"; then 11384 as_fn_error $? "conditional \"BUILD_MAKEG\" was never defined. 11385Usually this means the macro was only invoked conditionally." "$LINENO" 5 11386fi 11387if test -z "${BUILD_XMKMF_TRUE}" && test -z "${BUILD_XMKMF_FALSE}"; then 11388 as_fn_error $? "conditional \"BUILD_XMKMF\" was never defined. 11389Usually this means the macro was only invoked conditionally." "$LINENO" 5 11390fi 11391if test -z "${BUILD_CCMAKEDEP_TRUE}" && test -z "${BUILD_CCMAKEDEP_FALSE}"; then 11392 as_fn_error $? "conditional \"BUILD_CCMAKEDEP\" was never defined. 11393Usually this means the macro was only invoked conditionally." "$LINENO" 5 11394fi 11395if test -z "${BUILD_MERGELIB_TRUE}" && test -z "${BUILD_MERGELIB_FALSE}"; then 11396 as_fn_error $? "conditional \"BUILD_MERGELIB\" was never defined. 11397Usually this means the macro was only invoked conditionally." "$LINENO" 5 11398fi 11399if test -z "${BUILD_MKDIRHIER_TRUE}" && test -z "${BUILD_MKDIRHIER_FALSE}"; then 11400 as_fn_error $? "conditional \"BUILD_MKDIRHIER\" was never defined. 11401Usually this means the macro was only invoked conditionally." "$LINENO" 5 11402fi 11403if test -z "${BUILD_CLEANLINKS_TRUE}" && test -z "${BUILD_CLEANLINKS_FALSE}"; then 11404 as_fn_error $? "conditional \"BUILD_CLEANLINKS\" was never defined. 11405Usually this means the macro was only invoked conditionally." "$LINENO" 5 11406fi 11407if test -z "${BUILD_MKHTMLINDEX_TRUE}" && test -z "${BUILD_MKHTMLINDEX_FALSE}"; then 11408 as_fn_error $? "conditional \"BUILD_MKHTMLINDEX\" was never defined. 11409Usually this means the macro was only invoked conditionally." "$LINENO" 5 11410fi 11411 11412: "${CONFIG_STATUS=./config.status}" 11413ac_write_fail=0 11414ac_clean_files_save=$ac_clean_files 11415ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11416{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11417$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11418as_write_fail=0 11419cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11420#! $SHELL 11421# Generated by $as_me. 11422# Run this file to recreate the current configuration. 11423# Compiler output produced by configure, useful for debugging 11424# configure, is in config.log if it exists. 11425 11426debug=false 11427ac_cs_recheck=false 11428ac_cs_silent=false 11429 11430SHELL=\${CONFIG_SHELL-$SHELL} 11431export SHELL 11432_ASEOF 11433cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11434## -------------------- ## 11435## M4sh Initialization. ## 11436## -------------------- ## 11437 11438# Be more Bourne compatible 11439DUALCASE=1; export DUALCASE # for MKS sh 11440if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11441 emulate sh 11442 NULLCMD=: 11443 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11444 # is contrary to our usage. Disable this feature. 11445 alias -g '${1+"$@"}'='"$@"' 11446 setopt NO_GLOB_SUBST 11447else 11448 case `(set -o) 2>/dev/null` in #( 11449 *posix*) : 11450 set -o posix ;; #( 11451 *) : 11452 ;; 11453esac 11454fi 11455 11456 11457as_nl=' 11458' 11459export as_nl 11460# Printing a long string crashes Solaris 7 /usr/bin/printf. 11461as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11462as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11463as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11464# Prefer a ksh shell builtin over an external printf program on Solaris, 11465# but without wasting forks for bash or zsh. 11466if test -z "$BASH_VERSION$ZSH_VERSION" \ 11467 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11468 as_echo='print -r --' 11469 as_echo_n='print -rn --' 11470elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11471 as_echo='printf %s\n' 11472 as_echo_n='printf %s' 11473else 11474 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11475 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11476 as_echo_n='/usr/ucb/echo -n' 11477 else 11478 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11479 as_echo_n_body='eval 11480 arg=$1; 11481 case $arg in #( 11482 *"$as_nl"*) 11483 expr "X$arg" : "X\\(.*\\)$as_nl"; 11484 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11485 esac; 11486 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11487 ' 11488 export as_echo_n_body 11489 as_echo_n='sh -c $as_echo_n_body as_echo' 11490 fi 11491 export as_echo_body 11492 as_echo='sh -c $as_echo_body as_echo' 11493fi 11494 11495# The user is always right. 11496if test "${PATH_SEPARATOR+set}" != set; then 11497 PATH_SEPARATOR=: 11498 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11499 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11500 PATH_SEPARATOR=';' 11501 } 11502fi 11503 11504 11505# IFS 11506# We need space, tab and new line, in precisely that order. Quoting is 11507# there to prevent editors from complaining about space-tab. 11508# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11509# splitting by setting IFS to empty value.) 11510IFS=" "" $as_nl" 11511 11512# Find who we are. Look in the path if we contain no directory separator. 11513as_myself= 11514case $0 in #(( 11515 *[\\/]* ) as_myself=$0 ;; 11516 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11517for as_dir in $PATH 11518do 11519 IFS=$as_save_IFS 11520 test -z "$as_dir" && as_dir=. 11521 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11522 done 11523IFS=$as_save_IFS 11524 11525 ;; 11526esac 11527# We did not find ourselves, most probably we were run as `sh COMMAND' 11528# in which case we are not to be found in the path. 11529if test "x$as_myself" = x; then 11530 as_myself=$0 11531fi 11532if test ! -f "$as_myself"; then 11533 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11534 exit 1 11535fi 11536 11537# Unset variables that we do not need and which cause bugs (e.g. in 11538# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11539# suppresses any "Segmentation fault" message there. '((' could 11540# trigger a bug in pdksh 5.2.14. 11541for as_var in BASH_ENV ENV MAIL MAILPATH 11542do eval test x\${$as_var+set} = xset \ 11543 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11544done 11545PS1='$ ' 11546PS2='> ' 11547PS4='+ ' 11548 11549# NLS nuisances. 11550LC_ALL=C 11551export LC_ALL 11552LANGUAGE=C 11553export LANGUAGE 11554 11555# CDPATH. 11556(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11557 11558 11559# as_fn_error STATUS ERROR [LINENO LOG_FD] 11560# ---------------------------------------- 11561# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11562# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11563# script with STATUS, using 1 if that was 0. 11564as_fn_error () 11565{ 11566 as_status=$1; test $as_status -eq 0 && as_status=1 11567 if test "$4"; then 11568 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11569 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11570 fi 11571 $as_echo "$as_me: error: $2" >&2 11572 as_fn_exit $as_status 11573} # as_fn_error 11574 11575 11576# as_fn_set_status STATUS 11577# ----------------------- 11578# Set $? to STATUS, without forking. 11579as_fn_set_status () 11580{ 11581 return $1 11582} # as_fn_set_status 11583 11584# as_fn_exit STATUS 11585# ----------------- 11586# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11587as_fn_exit () 11588{ 11589 set +e 11590 as_fn_set_status $1 11591 exit $1 11592} # as_fn_exit 11593 11594# as_fn_unset VAR 11595# --------------- 11596# Portably unset VAR. 11597as_fn_unset () 11598{ 11599 { eval $1=; unset $1;} 11600} 11601as_unset=as_fn_unset 11602# as_fn_append VAR VALUE 11603# ---------------------- 11604# Append the text in VALUE to the end of the definition contained in VAR. Take 11605# advantage of any shell optimizations that allow amortized linear growth over 11606# repeated appends, instead of the typical quadratic growth present in naive 11607# implementations. 11608if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11609 eval 'as_fn_append () 11610 { 11611 eval $1+=\$2 11612 }' 11613else 11614 as_fn_append () 11615 { 11616 eval $1=\$$1\$2 11617 } 11618fi # as_fn_append 11619 11620# as_fn_arith ARG... 11621# ------------------ 11622# Perform arithmetic evaluation on the ARGs, and store the result in the 11623# global $as_val. Take advantage of shells that can avoid forks. The arguments 11624# must be portable across $(()) and expr. 11625if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11626 eval 'as_fn_arith () 11627 { 11628 as_val=$(( $* )) 11629 }' 11630else 11631 as_fn_arith () 11632 { 11633 as_val=`expr "$@" || test $? -eq 1` 11634 } 11635fi # as_fn_arith 11636 11637 11638if expr a : '\(a\)' >/dev/null 2>&1 && 11639 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11640 as_expr=expr 11641else 11642 as_expr=false 11643fi 11644 11645if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11646 as_basename=basename 11647else 11648 as_basename=false 11649fi 11650 11651if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11652 as_dirname=dirname 11653else 11654 as_dirname=false 11655fi 11656 11657as_me=`$as_basename -- "$0" || 11658$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11659 X"$0" : 'X\(//\)$' \| \ 11660 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11661$as_echo X/"$0" | 11662 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11663 s//\1/ 11664 q 11665 } 11666 /^X\/\(\/\/\)$/{ 11667 s//\1/ 11668 q 11669 } 11670 /^X\/\(\/\).*/{ 11671 s//\1/ 11672 q 11673 } 11674 s/.*/./; q'` 11675 11676# Avoid depending upon Character Ranges. 11677as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11678as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11679as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11680as_cr_digits='0123456789' 11681as_cr_alnum=$as_cr_Letters$as_cr_digits 11682 11683ECHO_C= ECHO_N= ECHO_T= 11684case `echo -n x` in #((((( 11685-n*) 11686 case `echo 'xy\c'` in 11687 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11688 xy) ECHO_C='\c';; 11689 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11690 ECHO_T=' ';; 11691 esac;; 11692*) 11693 ECHO_N='-n';; 11694esac 11695 11696rm -f conf$$ conf$$.exe conf$$.file 11697if test -d conf$$.dir; then 11698 rm -f conf$$.dir/conf$$.file 11699else 11700 rm -f conf$$.dir 11701 mkdir conf$$.dir 2>/dev/null 11702fi 11703if (echo >conf$$.file) 2>/dev/null; then 11704 if ln -s conf$$.file conf$$ 2>/dev/null; then 11705 as_ln_s='ln -s' 11706 # ... but there are two gotchas: 11707 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11708 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11709 # In both cases, we have to default to `cp -p'. 11710 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11711 as_ln_s='cp -p' 11712 elif ln conf$$.file conf$$ 2>/dev/null; then 11713 as_ln_s=ln 11714 else 11715 as_ln_s='cp -p' 11716 fi 11717else 11718 as_ln_s='cp -p' 11719fi 11720rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11721rmdir conf$$.dir 2>/dev/null 11722 11723 11724# as_fn_mkdir_p 11725# ------------- 11726# Create "$as_dir" as a directory, including parents if necessary. 11727as_fn_mkdir_p () 11728{ 11729 11730 case $as_dir in #( 11731 -*) as_dir=./$as_dir;; 11732 esac 11733 test -d "$as_dir" || eval $as_mkdir_p || { 11734 as_dirs= 11735 while :; do 11736 case $as_dir in #( 11737 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11738 *) as_qdir=$as_dir;; 11739 esac 11740 as_dirs="'$as_qdir' $as_dirs" 11741 as_dir=`$as_dirname -- "$as_dir" || 11742$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11743 X"$as_dir" : 'X\(//\)[^/]' \| \ 11744 X"$as_dir" : 'X\(//\)$' \| \ 11745 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11746$as_echo X"$as_dir" | 11747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11748 s//\1/ 11749 q 11750 } 11751 /^X\(\/\/\)[^/].*/{ 11752 s//\1/ 11753 q 11754 } 11755 /^X\(\/\/\)$/{ 11756 s//\1/ 11757 q 11758 } 11759 /^X\(\/\).*/{ 11760 s//\1/ 11761 q 11762 } 11763 s/.*/./; q'` 11764 test -d "$as_dir" && break 11765 done 11766 test -z "$as_dirs" || eval "mkdir $as_dirs" 11767 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11768 11769 11770} # as_fn_mkdir_p 11771if mkdir -p . 2>/dev/null; then 11772 as_mkdir_p='mkdir -p "$as_dir"' 11773else 11774 test -d ./-p && rmdir ./-p 11775 as_mkdir_p=false 11776fi 11777 11778if test -x / >/dev/null 2>&1; then 11779 as_test_x='test -x' 11780else 11781 if ls -dL / >/dev/null 2>&1; then 11782 as_ls_L_option=L 11783 else 11784 as_ls_L_option= 11785 fi 11786 as_test_x=' 11787 eval sh -c '\'' 11788 if test -d "$1"; then 11789 test -d "$1/."; 11790 else 11791 case $1 in #( 11792 -*)set "./$1";; 11793 esac; 11794 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11795 ???[sx]*):;;*)false;;esac;fi 11796 '\'' sh 11797 ' 11798fi 11799as_executable_p=$as_test_x 11800 11801# Sed expression to map a string onto a valid CPP name. 11802as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11803 11804# Sed expression to map a string onto a valid variable name. 11805as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11806 11807 11808exec 6>&1 11809## ----------------------------------- ## 11810## Main body of $CONFIG_STATUS script. ## 11811## ----------------------------------- ## 11812_ASEOF 11813test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11814 11815cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11816# Save the log message, to keep $0 and so on meaningful, and to 11817# report actual input values of CONFIG_FILES etc. instead of their 11818# values after options handling. 11819ac_log=" 11820This file was extended by imake $as_me 1.0.6, which was 11821generated by GNU Autoconf 2.68. Invocation command line was 11822 11823 CONFIG_FILES = $CONFIG_FILES 11824 CONFIG_HEADERS = $CONFIG_HEADERS 11825 CONFIG_LINKS = $CONFIG_LINKS 11826 CONFIG_COMMANDS = $CONFIG_COMMANDS 11827 $ $0 $@ 11828 11829on `(hostname || uname -n) 2>/dev/null | sed 1q` 11830" 11831 11832_ACEOF 11833 11834case $ac_config_files in *" 11835"*) set x $ac_config_files; shift; ac_config_files=$*;; 11836esac 11837 11838case $ac_config_headers in *" 11839"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11840esac 11841 11842 11843cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11844# Files that config.status was made for. 11845config_files="$ac_config_files" 11846config_headers="$ac_config_headers" 11847config_commands="$ac_config_commands" 11848 11849_ACEOF 11850 11851cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11852ac_cs_usage="\ 11853\`$as_me' instantiates files and other configuration actions 11854from templates according to the current configuration. Unless the files 11855and actions are specified as TAGs, all are instantiated by default. 11856 11857Usage: $0 [OPTION]... [TAG]... 11858 11859 -h, --help print this help, then exit 11860 -V, --version print version number and configuration settings, then exit 11861 --config print configuration, then exit 11862 -q, --quiet, --silent 11863 do not print progress messages 11864 -d, --debug don't remove temporary files 11865 --recheck update $as_me by reconfiguring in the same conditions 11866 --file=FILE[:TEMPLATE] 11867 instantiate the configuration file FILE 11868 --header=FILE[:TEMPLATE] 11869 instantiate the configuration header FILE 11870 11871Configuration files: 11872$config_files 11873 11874Configuration headers: 11875$config_headers 11876 11877Configuration commands: 11878$config_commands 11879 11880Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11881 11882_ACEOF 11883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11884ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11885ac_cs_version="\\ 11886imake config.status 1.0.6 11887configured by $0, generated by GNU Autoconf 2.68, 11888 with options \\"\$ac_cs_config\\" 11889 11890Copyright (C) 2010 Free Software Foundation, Inc. 11891This config.status script is free software; the Free Software Foundation 11892gives unlimited permission to copy, distribute and modify it." 11893 11894ac_pwd='$ac_pwd' 11895srcdir='$srcdir' 11896INSTALL='$INSTALL' 11897MKDIR_P='$MKDIR_P' 11898AWK='$AWK' 11899test -n "\$AWK" || AWK=awk 11900_ACEOF 11901 11902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11903# The default lists apply if the user does not specify any file. 11904ac_need_defaults=: 11905while test $# != 0 11906do 11907 case $1 in 11908 --*=?*) 11909 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11910 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11911 ac_shift=: 11912 ;; 11913 --*=) 11914 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11915 ac_optarg= 11916 ac_shift=: 11917 ;; 11918 *) 11919 ac_option=$1 11920 ac_optarg=$2 11921 ac_shift=shift 11922 ;; 11923 esac 11924 11925 case $ac_option in 11926 # Handling of the options. 11927 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11928 ac_cs_recheck=: ;; 11929 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11930 $as_echo "$ac_cs_version"; exit ;; 11931 --config | --confi | --conf | --con | --co | --c ) 11932 $as_echo "$ac_cs_config"; exit ;; 11933 --debug | --debu | --deb | --de | --d | -d ) 11934 debug=: ;; 11935 --file | --fil | --fi | --f ) 11936 $ac_shift 11937 case $ac_optarg in 11938 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11939 '') as_fn_error $? "missing file argument" ;; 11940 esac 11941 as_fn_append CONFIG_FILES " '$ac_optarg'" 11942 ac_need_defaults=false;; 11943 --header | --heade | --head | --hea ) 11944 $ac_shift 11945 case $ac_optarg in 11946 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11947 esac 11948 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11949 ac_need_defaults=false;; 11950 --he | --h) 11951 # Conflict between --help and --header 11952 as_fn_error $? "ambiguous option: \`$1' 11953Try \`$0 --help' for more information.";; 11954 --help | --hel | -h ) 11955 $as_echo "$ac_cs_usage"; exit ;; 11956 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11957 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11958 ac_cs_silent=: ;; 11959 11960 # This is an error. 11961 -*) as_fn_error $? "unrecognized option: \`$1' 11962Try \`$0 --help' for more information." ;; 11963 11964 *) as_fn_append ac_config_targets " $1" 11965 ac_need_defaults=false ;; 11966 11967 esac 11968 shift 11969done 11970 11971ac_configure_extra_args= 11972 11973if $ac_cs_silent; then 11974 exec 6>/dev/null 11975 ac_configure_extra_args="$ac_configure_extra_args --silent" 11976fi 11977 11978_ACEOF 11979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11980if \$ac_cs_recheck; then 11981 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11982 shift 11983 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11984 CONFIG_SHELL='$SHELL' 11985 export CONFIG_SHELL 11986 exec "\$@" 11987fi 11988 11989_ACEOF 11990cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11991exec 5>>config.log 11992{ 11993 echo 11994 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11995## Running $as_me. ## 11996_ASBOX 11997 $as_echo "$ac_log" 11998} >&5 11999 12000_ACEOF 12001cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12002# 12003# INIT-COMMANDS 12004# 12005AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12006 12007_ACEOF 12008 12009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12010 12011# Handling of arguments. 12012for ac_config_target in $ac_config_targets 12013do 12014 case $ac_config_target in 12015 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12016 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12017 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12018 12019 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12020 esac 12021done 12022 12023 12024# If the user did not use the arguments to specify the items to instantiate, 12025# then the envvar interface is used. Set only those that are not. 12026# We use the long form for the default assignment because of an extremely 12027# bizarre bug on SunOS 4.1.3. 12028if $ac_need_defaults; then 12029 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12030 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12031 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12032fi 12033 12034# Have a temporary directory for convenience. Make it in the build tree 12035# simply because there is no reason against having it here, and in addition, 12036# creating and moving files from /tmp can sometimes cause problems. 12037# Hook for its removal unless debugging. 12038# Note that there is a small window in which the directory will not be cleaned: 12039# after its creation but before its name has been assigned to `$tmp'. 12040$debug || 12041{ 12042 tmp= ac_tmp= 12043 trap 'exit_status=$? 12044 : "${ac_tmp:=$tmp}" 12045 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12046' 0 12047 trap 'as_fn_exit 1' 1 2 13 15 12048} 12049# Create a (secure) tmp directory for tmp files. 12050 12051{ 12052 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12053 test -d "$tmp" 12054} || 12055{ 12056 tmp=./conf$$-$RANDOM 12057 (umask 077 && mkdir "$tmp") 12058} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12059ac_tmp=$tmp 12060 12061# Set up the scripts for CONFIG_FILES section. 12062# No need to generate them if there are no CONFIG_FILES. 12063# This happens for instance with `./config.status config.h'. 12064if test -n "$CONFIG_FILES"; then 12065 12066 12067ac_cr=`echo X | tr X '\015'` 12068# On cygwin, bash can eat \r inside `` if the user requested igncr. 12069# But we know of no other shell where ac_cr would be empty at this 12070# point, so we can use a bashism as a fallback. 12071if test "x$ac_cr" = x; then 12072 eval ac_cr=\$\'\\r\' 12073fi 12074ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12075if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12076 ac_cs_awk_cr='\\r' 12077else 12078 ac_cs_awk_cr=$ac_cr 12079fi 12080 12081echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12082_ACEOF 12083 12084 12085{ 12086 echo "cat >conf$$subs.awk <<_ACEOF" && 12087 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12088 echo "_ACEOF" 12089} >conf$$subs.sh || 12090 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12091ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12092ac_delim='%!_!# ' 12093for ac_last_try in false false false false false :; do 12094 . ./conf$$subs.sh || 12095 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12096 12097 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12098 if test $ac_delim_n = $ac_delim_num; then 12099 break 12100 elif $ac_last_try; then 12101 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12102 else 12103 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12104 fi 12105done 12106rm -f conf$$subs.sh 12107 12108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12109cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12110_ACEOF 12111sed -n ' 12112h 12113s/^/S["/; s/!.*/"]=/ 12114p 12115g 12116s/^[^!]*!// 12117:repl 12118t repl 12119s/'"$ac_delim"'$// 12120t delim 12121:nl 12122h 12123s/\(.\{148\}\)..*/\1/ 12124t more1 12125s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12126p 12127n 12128b repl 12129:more1 12130s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12131p 12132g 12133s/.\{148\}// 12134t nl 12135:delim 12136h 12137s/\(.\{148\}\)..*/\1/ 12138t more2 12139s/["\\]/\\&/g; s/^/"/; s/$/"/ 12140p 12141b 12142:more2 12143s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12144p 12145g 12146s/.\{148\}// 12147t delim 12148' <conf$$subs.awk | sed ' 12149/^[^""]/{ 12150 N 12151 s/\n// 12152} 12153' >>$CONFIG_STATUS || ac_write_fail=1 12154rm -f conf$$subs.awk 12155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12156_ACAWK 12157cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12158 for (key in S) S_is_set[key] = 1 12159 FS = "" 12160 12161} 12162{ 12163 line = $ 0 12164 nfields = split(line, field, "@") 12165 substed = 0 12166 len = length(field[1]) 12167 for (i = 2; i < nfields; i++) { 12168 key = field[i] 12169 keylen = length(key) 12170 if (S_is_set[key]) { 12171 value = S[key] 12172 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12173 len += length(value) + length(field[++i]) 12174 substed = 1 12175 } else 12176 len += 1 + keylen 12177 } 12178 12179 print line 12180} 12181 12182_ACAWK 12183_ACEOF 12184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12185if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12186 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12187else 12188 cat 12189fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12190 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12191_ACEOF 12192 12193# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12194# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12195# trailing colons and then remove the whole line if VPATH becomes empty 12196# (actually we leave an empty line to preserve line numbers). 12197if test "x$srcdir" = x.; then 12198 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12199h 12200s/// 12201s/^/:/ 12202s/[ ]*$/:/ 12203s/:\$(srcdir):/:/g 12204s/:\${srcdir}:/:/g 12205s/:@srcdir@:/:/g 12206s/^:*// 12207s/:*$// 12208x 12209s/\(=[ ]*\).*/\1/ 12210G 12211s/\n// 12212s/^[^=]*=[ ]*$// 12213}' 12214fi 12215 12216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12217fi # test -n "$CONFIG_FILES" 12218 12219# Set up the scripts for CONFIG_HEADERS section. 12220# No need to generate them if there are no CONFIG_HEADERS. 12221# This happens for instance with `./config.status Makefile'. 12222if test -n "$CONFIG_HEADERS"; then 12223cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12224BEGIN { 12225_ACEOF 12226 12227# Transform confdefs.h into an awk script `defines.awk', embedded as 12228# here-document in config.status, that substitutes the proper values into 12229# config.h.in to produce config.h. 12230 12231# Create a delimiter string that does not exist in confdefs.h, to ease 12232# handling of long lines. 12233ac_delim='%!_!# ' 12234for ac_last_try in false false :; do 12235 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12236 if test -z "$ac_tt"; then 12237 break 12238 elif $ac_last_try; then 12239 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12240 else 12241 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12242 fi 12243done 12244 12245# For the awk script, D is an array of macro values keyed by name, 12246# likewise P contains macro parameters if any. Preserve backslash 12247# newline sequences. 12248 12249ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12250sed -n ' 12251s/.\{148\}/&'"$ac_delim"'/g 12252t rset 12253:rset 12254s/^[ ]*#[ ]*define[ ][ ]*/ / 12255t def 12256d 12257:def 12258s/\\$// 12259t bsnl 12260s/["\\]/\\&/g 12261s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12262D["\1"]=" \3"/p 12263s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12264d 12265:bsnl 12266s/["\\]/\\&/g 12267s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12268D["\1"]=" \3\\\\\\n"\\/p 12269t cont 12270s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12271t cont 12272d 12273:cont 12274n 12275s/.\{148\}/&'"$ac_delim"'/g 12276t clear 12277:clear 12278s/\\$// 12279t bsnlc 12280s/["\\]/\\&/g; s/^/"/; s/$/"/p 12281d 12282:bsnlc 12283s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12284b cont 12285' <confdefs.h | sed ' 12286s/'"$ac_delim"'/"\\\ 12287"/g' >>$CONFIG_STATUS || ac_write_fail=1 12288 12289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12290 for (key in D) D_is_set[key] = 1 12291 FS = "" 12292} 12293/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12294 line = \$ 0 12295 split(line, arg, " ") 12296 if (arg[1] == "#") { 12297 defundef = arg[2] 12298 mac1 = arg[3] 12299 } else { 12300 defundef = substr(arg[1], 2) 12301 mac1 = arg[2] 12302 } 12303 split(mac1, mac2, "(") #) 12304 macro = mac2[1] 12305 prefix = substr(line, 1, index(line, defundef) - 1) 12306 if (D_is_set[macro]) { 12307 # Preserve the white space surrounding the "#". 12308 print prefix "define", macro P[macro] D[macro] 12309 next 12310 } else { 12311 # Replace #undef with comments. This is necessary, for example, 12312 # in the case of _POSIX_SOURCE, which is predefined and required 12313 # on some systems where configure will not decide to define it. 12314 if (defundef == "undef") { 12315 print "/*", prefix defundef, macro, "*/" 12316 next 12317 } 12318 } 12319} 12320{ print } 12321_ACAWK 12322_ACEOF 12323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12324 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12325fi # test -n "$CONFIG_HEADERS" 12326 12327 12328eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12329shift 12330for ac_tag 12331do 12332 case $ac_tag in 12333 :[FHLC]) ac_mode=$ac_tag; continue;; 12334 esac 12335 case $ac_mode$ac_tag in 12336 :[FHL]*:*);; 12337 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12338 :[FH]-) ac_tag=-:-;; 12339 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12340 esac 12341 ac_save_IFS=$IFS 12342 IFS=: 12343 set x $ac_tag 12344 IFS=$ac_save_IFS 12345 shift 12346 ac_file=$1 12347 shift 12348 12349 case $ac_mode in 12350 :L) ac_source=$1;; 12351 :[FH]) 12352 ac_file_inputs= 12353 for ac_f 12354 do 12355 case $ac_f in 12356 -) ac_f="$ac_tmp/stdin";; 12357 *) # Look for the file first in the build tree, then in the source tree 12358 # (if the path is not absolute). The absolute path cannot be DOS-style, 12359 # because $ac_f cannot contain `:'. 12360 test -f "$ac_f" || 12361 case $ac_f in 12362 [\\/$]*) false;; 12363 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12364 esac || 12365 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12366 esac 12367 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12368 as_fn_append ac_file_inputs " '$ac_f'" 12369 done 12370 12371 # Let's still pretend it is `configure' which instantiates (i.e., don't 12372 # use $as_me), people would be surprised to read: 12373 # /* config.h. Generated by config.status. */ 12374 configure_input='Generated from '` 12375 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12376 `' by configure.' 12377 if test x"$ac_file" != x-; then 12378 configure_input="$ac_file. $configure_input" 12379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12380$as_echo "$as_me: creating $ac_file" >&6;} 12381 fi 12382 # Neutralize special characters interpreted by sed in replacement strings. 12383 case $configure_input in #( 12384 *\&* | *\|* | *\\* ) 12385 ac_sed_conf_input=`$as_echo "$configure_input" | 12386 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12387 *) ac_sed_conf_input=$configure_input;; 12388 esac 12389 12390 case $ac_tag in 12391 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12392 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12393 esac 12394 ;; 12395 esac 12396 12397 ac_dir=`$as_dirname -- "$ac_file" || 12398$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12399 X"$ac_file" : 'X\(//\)[^/]' \| \ 12400 X"$ac_file" : 'X\(//\)$' \| \ 12401 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12402$as_echo X"$ac_file" | 12403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12404 s//\1/ 12405 q 12406 } 12407 /^X\(\/\/\)[^/].*/{ 12408 s//\1/ 12409 q 12410 } 12411 /^X\(\/\/\)$/{ 12412 s//\1/ 12413 q 12414 } 12415 /^X\(\/\).*/{ 12416 s//\1/ 12417 q 12418 } 12419 s/.*/./; q'` 12420 as_dir="$ac_dir"; as_fn_mkdir_p 12421 ac_builddir=. 12422 12423case "$ac_dir" in 12424.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12425*) 12426 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12427 # A ".." for each directory in $ac_dir_suffix. 12428 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12429 case $ac_top_builddir_sub in 12430 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12431 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12432 esac ;; 12433esac 12434ac_abs_top_builddir=$ac_pwd 12435ac_abs_builddir=$ac_pwd$ac_dir_suffix 12436# for backward compatibility: 12437ac_top_builddir=$ac_top_build_prefix 12438 12439case $srcdir in 12440 .) # We are building in place. 12441 ac_srcdir=. 12442 ac_top_srcdir=$ac_top_builddir_sub 12443 ac_abs_top_srcdir=$ac_pwd ;; 12444 [\\/]* | ?:[\\/]* ) # Absolute name. 12445 ac_srcdir=$srcdir$ac_dir_suffix; 12446 ac_top_srcdir=$srcdir 12447 ac_abs_top_srcdir=$srcdir ;; 12448 *) # Relative name. 12449 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12450 ac_top_srcdir=$ac_top_build_prefix$srcdir 12451 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12452esac 12453ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12454 12455 12456 case $ac_mode in 12457 :F) 12458 # 12459 # CONFIG_FILE 12460 # 12461 12462 case $INSTALL in 12463 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12464 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12465 esac 12466 ac_MKDIR_P=$MKDIR_P 12467 case $MKDIR_P in 12468 [\\/$]* | ?:[\\/]* ) ;; 12469 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12470 esac 12471_ACEOF 12472 12473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12474# If the template does not know about datarootdir, expand it. 12475# FIXME: This hack should be removed a few years after 2.60. 12476ac_datarootdir_hack=; ac_datarootdir_seen= 12477ac_sed_dataroot=' 12478/datarootdir/ { 12479 p 12480 q 12481} 12482/@datadir@/p 12483/@docdir@/p 12484/@infodir@/p 12485/@localedir@/p 12486/@mandir@/p' 12487case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12488*datarootdir*) ac_datarootdir_seen=yes;; 12489*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12491$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12492_ACEOF 12493cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12494 ac_datarootdir_hack=' 12495 s&@datadir@&$datadir&g 12496 s&@docdir@&$docdir&g 12497 s&@infodir@&$infodir&g 12498 s&@localedir@&$localedir&g 12499 s&@mandir@&$mandir&g 12500 s&\\\${datarootdir}&$datarootdir&g' ;; 12501esac 12502_ACEOF 12503 12504# Neutralize VPATH when `$srcdir' = `.'. 12505# Shell code in configure.ac might set extrasub. 12506# FIXME: do we really want to maintain this feature? 12507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12508ac_sed_extra="$ac_vpsub 12509$extrasub 12510_ACEOF 12511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12512:t 12513/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12514s|@configure_input@|$ac_sed_conf_input|;t t 12515s&@top_builddir@&$ac_top_builddir_sub&;t t 12516s&@top_build_prefix@&$ac_top_build_prefix&;t t 12517s&@srcdir@&$ac_srcdir&;t t 12518s&@abs_srcdir@&$ac_abs_srcdir&;t t 12519s&@top_srcdir@&$ac_top_srcdir&;t t 12520s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12521s&@builddir@&$ac_builddir&;t t 12522s&@abs_builddir@&$ac_abs_builddir&;t t 12523s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12524s&@INSTALL@&$ac_INSTALL&;t t 12525s&@MKDIR_P@&$ac_MKDIR_P&;t t 12526$ac_datarootdir_hack 12527" 12528eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12529 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12530 12531test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12532 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12533 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12534 "$ac_tmp/out"`; test -z "$ac_out"; } && 12535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12536which seems to be undefined. Please make sure it is defined" >&5 12537$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12538which seems to be undefined. Please make sure it is defined" >&2;} 12539 12540 rm -f "$ac_tmp/stdin" 12541 case $ac_file in 12542 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12543 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12544 esac \ 12545 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12546 ;; 12547 :H) 12548 # 12549 # CONFIG_HEADER 12550 # 12551 if test x"$ac_file" != x-; then 12552 { 12553 $as_echo "/* $configure_input */" \ 12554 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12555 } >"$ac_tmp/config.h" \ 12556 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12557 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12558 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12559$as_echo "$as_me: $ac_file is unchanged" >&6;} 12560 else 12561 rm -f "$ac_file" 12562 mv "$ac_tmp/config.h" "$ac_file" \ 12563 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12564 fi 12565 else 12566 $as_echo "/* $configure_input */" \ 12567 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12568 || as_fn_error $? "could not create -" "$LINENO" 5 12569 fi 12570# Compute "$ac_file"'s index in $config_headers. 12571_am_arg="$ac_file" 12572_am_stamp_count=1 12573for _am_header in $config_headers :; do 12574 case $_am_header in 12575 $_am_arg | $_am_arg:* ) 12576 break ;; 12577 * ) 12578 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12579 esac 12580done 12581echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12582$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12583 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12584 X"$_am_arg" : 'X\(//\)$' \| \ 12585 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12586$as_echo X"$_am_arg" | 12587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12588 s//\1/ 12589 q 12590 } 12591 /^X\(\/\/\)[^/].*/{ 12592 s//\1/ 12593 q 12594 } 12595 /^X\(\/\/\)$/{ 12596 s//\1/ 12597 q 12598 } 12599 /^X\(\/\).*/{ 12600 s//\1/ 12601 q 12602 } 12603 s/.*/./; q'`/stamp-h$_am_stamp_count 12604 ;; 12605 12606 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12607$as_echo "$as_me: executing $ac_file commands" >&6;} 12608 ;; 12609 esac 12610 12611 12612 case $ac_file$ac_mode in 12613 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12614 # Older Autoconf quotes --file arguments for eval, but not when files 12615 # are listed without --file. Let's play safe and only enable the eval 12616 # if we detect the quoting. 12617 case $CONFIG_FILES in 12618 *\'*) eval set x "$CONFIG_FILES" ;; 12619 *) set x $CONFIG_FILES ;; 12620 esac 12621 shift 12622 for mf 12623 do 12624 # Strip MF so we end up with the name of the file. 12625 mf=`echo "$mf" | sed -e 's/:.*$//'` 12626 # Check whether this is an Automake generated Makefile or not. 12627 # We used to match only the files named 'Makefile.in', but 12628 # some people rename them; so instead we look at the file content. 12629 # Grep'ing the first line is not enough: some people post-process 12630 # each Makefile.in and add a new line on top of each file to say so. 12631 # Grep'ing the whole file is not good either: AIX grep has a line 12632 # limit of 2048, but all sed's we know have understand at least 4000. 12633 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12634 dirpart=`$as_dirname -- "$mf" || 12635$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12636 X"$mf" : 'X\(//\)[^/]' \| \ 12637 X"$mf" : 'X\(//\)$' \| \ 12638 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12639$as_echo X"$mf" | 12640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12641 s//\1/ 12642 q 12643 } 12644 /^X\(\/\/\)[^/].*/{ 12645 s//\1/ 12646 q 12647 } 12648 /^X\(\/\/\)$/{ 12649 s//\1/ 12650 q 12651 } 12652 /^X\(\/\).*/{ 12653 s//\1/ 12654 q 12655 } 12656 s/.*/./; q'` 12657 else 12658 continue 12659 fi 12660 # Extract the definition of DEPDIR, am__include, and am__quote 12661 # from the Makefile without running 'make'. 12662 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12663 test -z "$DEPDIR" && continue 12664 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12665 test -z "$am__include" && continue 12666 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12667 # Find all dependency output files, they are included files with 12668 # $(DEPDIR) in their names. We invoke sed twice because it is the 12669 # simplest approach to changing $(DEPDIR) to its actual value in the 12670 # expansion. 12671 for file in `sed -n " 12672 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12673 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12674 # Make sure the directory exists. 12675 test -f "$dirpart/$file" && continue 12676 fdir=`$as_dirname -- "$file" || 12677$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12678 X"$file" : 'X\(//\)[^/]' \| \ 12679 X"$file" : 'X\(//\)$' \| \ 12680 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12681$as_echo X"$file" | 12682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12683 s//\1/ 12684 q 12685 } 12686 /^X\(\/\/\)[^/].*/{ 12687 s//\1/ 12688 q 12689 } 12690 /^X\(\/\/\)$/{ 12691 s//\1/ 12692 q 12693 } 12694 /^X\(\/\).*/{ 12695 s//\1/ 12696 q 12697 } 12698 s/.*/./; q'` 12699 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12700 # echo "creating $dirpart/$file" 12701 echo '# dummy' > "$dirpart/$file" 12702 done 12703 done 12704} 12705 ;; 12706 12707 esac 12708done # for ac_tag 12709 12710 12711as_fn_exit 0 12712_ACEOF 12713ac_clean_files=$ac_clean_files_save 12714 12715test $ac_write_fail = 0 || 12716 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12717 12718 12719# configure is writing to config.log, and then calls config.status. 12720# config.status does its own redirection, appending to config.log. 12721# Unfortunately, on DOS this fails, as config.log is still kept open 12722# by configure, so config.status won't be able to write to it; its 12723# output is simply discarded. So we exec the FD to /dev/null, 12724# effectively closing config.log, so it can be properly (re)opened and 12725# appended to by config.status. When coming back to configure, we 12726# need to make the FD available again. 12727if test "$no_create" != yes; then 12728 ac_cs_success=: 12729 ac_config_status_args= 12730 test "$silent" = yes && 12731 ac_config_status_args="$ac_config_status_args --quiet" 12732 exec 5>/dev/null 12733 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12734 exec 5>>config.log 12735 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12736 # would make configure fail if this is the last instruction. 12737 $ac_cs_success || as_fn_exit 1 12738fi 12739if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12741$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12742fi 12743 12744