configure revision 39ae6282
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for lndir 1.0.3. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 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='lndir' 563PACKAGE_TARNAME='lndir' 564PACKAGE_VERSION='1.0.3' 565PACKAGE_STRING='lndir 1.0.3' 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 612AM_BACKSLASH 613AM_DEFAULT_VERBOSITY 614MAN_SUBSTS 615XORG_MAN_PAGE 616ADMIN_MAN_DIR 617DRIVER_MAN_DIR 618MISC_MAN_DIR 619FILE_MAN_DIR 620LIB_MAN_DIR 621APP_MAN_DIR 622ADMIN_MAN_SUFFIX 623DRIVER_MAN_SUFFIX 624MISC_MAN_SUFFIX 625FILE_MAN_SUFFIX 626LIB_MAN_SUFFIX 627APP_MAN_SUFFIX 628SED 629host_os 630host_vendor 631host_cpu 632host 633build_os 634build_vendor 635build_cpu 636build 637INSTALL_CMD 638PKG_CONFIG 639CHANGELOG_CMD 640STRICT_CFLAGS 641CWARNFLAGS 642BASE_CFLAGS 643MAINT 644MAINTAINER_MODE_FALSE 645MAINTAINER_MODE_TRUE 646am__fastdepCC_FALSE 647am__fastdepCC_TRUE 648CCDEPMODE 649AMDEPBACKSLASH 650AMDEP_FALSE 651AMDEP_TRUE 652am__quote 653am__include 654DEPDIR 655am__untar 656am__tar 657AMTAR 658am__leading_dot 659SET_MAKE 660AWK 661mkdir_p 662MKDIR_P 663INSTALL_STRIP_PROGRAM 664STRIP 665install_sh 666MAKEINFO 667AUTOHEADER 668AUTOMAKE 669AUTOCONF 670ACLOCAL 671VERSION 672PACKAGE 673CYGPATH_W 674am__isrc 675INSTALL_DATA 676INSTALL_SCRIPT 677INSTALL_PROGRAM 678EGREP 679GREP 680CPP 681OBJEXT 682EXEEXT 683ac_ct_CC 684CPPFLAGS 685LDFLAGS 686CFLAGS 687CC 688target_alias 689host_alias 690build_alias 691LIBS 692ECHO_T 693ECHO_N 694ECHO_C 695DEFS 696mandir 697localedir 698libdir 699psdir 700pdfdir 701dvidir 702htmldir 703infodir 704docdir 705oldincludedir 706includedir 707localstatedir 708sharedstatedir 709sysconfdir 710datadir 711datarootdir 712libexecdir 713sbindir 714bindir 715program_transform_name 716prefix 717exec_prefix 718PACKAGE_URL 719PACKAGE_BUGREPORT 720PACKAGE_STRING 721PACKAGE_VERSION 722PACKAGE_TARNAME 723PACKAGE_NAME 724PATH_SEPARATOR 725SHELL' 726ac_subst_files='' 727ac_user_opts=' 728enable_option_checking 729enable_dependency_tracking 730enable_maintainer_mode 731enable_selective_werror 732enable_strict_compilation 733enable_silent_rules 734enable_largefile 735' 736 ac_precious_vars='build_alias 737host_alias 738target_alias 739CC 740CFLAGS 741LDFLAGS 742LIBS 743CPPFLAGS 744CPP 745PKG_CONFIG 746XPROTO_CFLAGS 747XPROTO_LIBS' 748 749 750# Initialize some variables set by options. 751ac_init_help= 752ac_init_version=false 753ac_unrecognized_opts= 754ac_unrecognized_sep= 755# The variables have the same names as the options, with 756# dashes changed to underlines. 757cache_file=/dev/null 758exec_prefix=NONE 759no_create= 760no_recursion= 761prefix=NONE 762program_prefix=NONE 763program_suffix=NONE 764program_transform_name=s,x,x, 765silent= 766site= 767srcdir= 768verbose= 769x_includes=NONE 770x_libraries=NONE 771 772# Installation directory options. 773# These are left unexpanded so users can "make install exec_prefix=/foo" 774# and all the variables that are supposed to be based on exec_prefix 775# by default will actually change. 776# Use braces instead of parens because sh, perl, etc. also accept them. 777# (The list follows the same order as the GNU Coding Standards.) 778bindir='${exec_prefix}/bin' 779sbindir='${exec_prefix}/sbin' 780libexecdir='${exec_prefix}/libexec' 781datarootdir='${prefix}/share' 782datadir='${datarootdir}' 783sysconfdir='${prefix}/etc' 784sharedstatedir='${prefix}/com' 785localstatedir='${prefix}/var' 786includedir='${prefix}/include' 787oldincludedir='/usr/include' 788docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 789infodir='${datarootdir}/info' 790htmldir='${docdir}' 791dvidir='${docdir}' 792pdfdir='${docdir}' 793psdir='${docdir}' 794libdir='${exec_prefix}/lib' 795localedir='${datarootdir}/locale' 796mandir='${datarootdir}/man' 797 798ac_prev= 799ac_dashdash= 800for ac_option 801do 802 # If the previous option needs an argument, assign it. 803 if test -n "$ac_prev"; then 804 eval $ac_prev=\$ac_option 805 ac_prev= 806 continue 807 fi 808 809 case $ac_option in 810 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 811 *=) ac_optarg= ;; 812 *) ac_optarg=yes ;; 813 esac 814 815 # Accept the important Cygnus configure options, so we can diagnose typos. 816 817 case $ac_dashdash$ac_option in 818 --) 819 ac_dashdash=yes ;; 820 821 -bindir | --bindir | --bindi | --bind | --bin | --bi) 822 ac_prev=bindir ;; 823 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 824 bindir=$ac_optarg ;; 825 826 -build | --build | --buil | --bui | --bu) 827 ac_prev=build_alias ;; 828 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 829 build_alias=$ac_optarg ;; 830 831 -cache-file | --cache-file | --cache-fil | --cache-fi \ 832 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 833 ac_prev=cache_file ;; 834 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 835 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 836 cache_file=$ac_optarg ;; 837 838 --config-cache | -C) 839 cache_file=config.cache ;; 840 841 -datadir | --datadir | --datadi | --datad) 842 ac_prev=datadir ;; 843 -datadir=* | --datadir=* | --datadi=* | --datad=*) 844 datadir=$ac_optarg ;; 845 846 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 847 | --dataroo | --dataro | --datar) 848 ac_prev=datarootdir ;; 849 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 850 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 851 datarootdir=$ac_optarg ;; 852 853 -disable-* | --disable-*) 854 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 855 # Reject names that are not valid shell variable names. 856 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 857 as_fn_error $? "invalid feature name: $ac_useropt" 858 ac_useropt_orig=$ac_useropt 859 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 860 case $ac_user_opts in 861 *" 862"enable_$ac_useropt" 863"*) ;; 864 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 865 ac_unrecognized_sep=', ';; 866 esac 867 eval enable_$ac_useropt=no ;; 868 869 -docdir | --docdir | --docdi | --doc | --do) 870 ac_prev=docdir ;; 871 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 872 docdir=$ac_optarg ;; 873 874 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 875 ac_prev=dvidir ;; 876 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 877 dvidir=$ac_optarg ;; 878 879 -enable-* | --enable-*) 880 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 881 # Reject names that are not valid shell variable names. 882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 883 as_fn_error $? "invalid feature name: $ac_useropt" 884 ac_useropt_orig=$ac_useropt 885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 886 case $ac_user_opts in 887 *" 888"enable_$ac_useropt" 889"*) ;; 890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 891 ac_unrecognized_sep=', ';; 892 esac 893 eval enable_$ac_useropt=\$ac_optarg ;; 894 895 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 896 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 897 | --exec | --exe | --ex) 898 ac_prev=exec_prefix ;; 899 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 900 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 901 | --exec=* | --exe=* | --ex=*) 902 exec_prefix=$ac_optarg ;; 903 904 -gas | --gas | --ga | --g) 905 # Obsolete; use --with-gas. 906 with_gas=yes ;; 907 908 -help | --help | --hel | --he | -h) 909 ac_init_help=long ;; 910 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 911 ac_init_help=recursive ;; 912 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 913 ac_init_help=short ;; 914 915 -host | --host | --hos | --ho) 916 ac_prev=host_alias ;; 917 -host=* | --host=* | --hos=* | --ho=*) 918 host_alias=$ac_optarg ;; 919 920 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 921 ac_prev=htmldir ;; 922 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 923 | --ht=*) 924 htmldir=$ac_optarg ;; 925 926 -includedir | --includedir | --includedi | --included | --include \ 927 | --includ | --inclu | --incl | --inc) 928 ac_prev=includedir ;; 929 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 930 | --includ=* | --inclu=* | --incl=* | --inc=*) 931 includedir=$ac_optarg ;; 932 933 -infodir | --infodir | --infodi | --infod | --info | --inf) 934 ac_prev=infodir ;; 935 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 936 infodir=$ac_optarg ;; 937 938 -libdir | --libdir | --libdi | --libd) 939 ac_prev=libdir ;; 940 -libdir=* | --libdir=* | --libdi=* | --libd=*) 941 libdir=$ac_optarg ;; 942 943 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 944 | --libexe | --libex | --libe) 945 ac_prev=libexecdir ;; 946 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 947 | --libexe=* | --libex=* | --libe=*) 948 libexecdir=$ac_optarg ;; 949 950 -localedir | --localedir | --localedi | --localed | --locale) 951 ac_prev=localedir ;; 952 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 953 localedir=$ac_optarg ;; 954 955 -localstatedir | --localstatedir | --localstatedi | --localstated \ 956 | --localstate | --localstat | --localsta | --localst | --locals) 957 ac_prev=localstatedir ;; 958 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 959 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 960 localstatedir=$ac_optarg ;; 961 962 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 963 ac_prev=mandir ;; 964 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 965 mandir=$ac_optarg ;; 966 967 -nfp | --nfp | --nf) 968 # Obsolete; use --without-fp. 969 with_fp=no ;; 970 971 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 972 | --no-cr | --no-c | -n) 973 no_create=yes ;; 974 975 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 976 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 977 no_recursion=yes ;; 978 979 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 980 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 981 | --oldin | --oldi | --old | --ol | --o) 982 ac_prev=oldincludedir ;; 983 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 984 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 985 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 986 oldincludedir=$ac_optarg ;; 987 988 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 989 ac_prev=prefix ;; 990 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 991 prefix=$ac_optarg ;; 992 993 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 994 | --program-pre | --program-pr | --program-p) 995 ac_prev=program_prefix ;; 996 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 997 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 998 program_prefix=$ac_optarg ;; 999 1000 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1001 | --program-suf | --program-su | --program-s) 1002 ac_prev=program_suffix ;; 1003 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1004 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1005 program_suffix=$ac_optarg ;; 1006 1007 -program-transform-name | --program-transform-name \ 1008 | --program-transform-nam | --program-transform-na \ 1009 | --program-transform-n | --program-transform- \ 1010 | --program-transform | --program-transfor \ 1011 | --program-transfo | --program-transf \ 1012 | --program-trans | --program-tran \ 1013 | --progr-tra | --program-tr | --program-t) 1014 ac_prev=program_transform_name ;; 1015 -program-transform-name=* | --program-transform-name=* \ 1016 | --program-transform-nam=* | --program-transform-na=* \ 1017 | --program-transform-n=* | --program-transform-=* \ 1018 | --program-transform=* | --program-transfor=* \ 1019 | --program-transfo=* | --program-transf=* \ 1020 | --program-trans=* | --program-tran=* \ 1021 | --progr-tra=* | --program-tr=* | --program-t=*) 1022 program_transform_name=$ac_optarg ;; 1023 1024 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1025 ac_prev=pdfdir ;; 1026 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1027 pdfdir=$ac_optarg ;; 1028 1029 -psdir | --psdir | --psdi | --psd | --ps) 1030 ac_prev=psdir ;; 1031 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1032 psdir=$ac_optarg ;; 1033 1034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1035 | -silent | --silent | --silen | --sile | --sil) 1036 silent=yes ;; 1037 1038 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1039 ac_prev=sbindir ;; 1040 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1041 | --sbi=* | --sb=*) 1042 sbindir=$ac_optarg ;; 1043 1044 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1045 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1046 | --sharedst | --shareds | --shared | --share | --shar \ 1047 | --sha | --sh) 1048 ac_prev=sharedstatedir ;; 1049 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1050 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1051 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1052 | --sha=* | --sh=*) 1053 sharedstatedir=$ac_optarg ;; 1054 1055 -site | --site | --sit) 1056 ac_prev=site ;; 1057 -site=* | --site=* | --sit=*) 1058 site=$ac_optarg ;; 1059 1060 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1061 ac_prev=srcdir ;; 1062 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1063 srcdir=$ac_optarg ;; 1064 1065 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1066 | --syscon | --sysco | --sysc | --sys | --sy) 1067 ac_prev=sysconfdir ;; 1068 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1069 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1070 sysconfdir=$ac_optarg ;; 1071 1072 -target | --target | --targe | --targ | --tar | --ta | --t) 1073 ac_prev=target_alias ;; 1074 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1075 target_alias=$ac_optarg ;; 1076 1077 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1078 verbose=yes ;; 1079 1080 -version | --version | --versio | --versi | --vers | -V) 1081 ac_init_version=: ;; 1082 1083 -with-* | --with-*) 1084 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1085 # Reject names that are not valid shell variable names. 1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1087 as_fn_error $? "invalid package name: $ac_useropt" 1088 ac_useropt_orig=$ac_useropt 1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1090 case $ac_user_opts in 1091 *" 1092"with_$ac_useropt" 1093"*) ;; 1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1095 ac_unrecognized_sep=', ';; 1096 esac 1097 eval with_$ac_useropt=\$ac_optarg ;; 1098 1099 -without-* | --without-*) 1100 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1101 # Reject names that are not valid shell variable names. 1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1103 as_fn_error $? "invalid package name: $ac_useropt" 1104 ac_useropt_orig=$ac_useropt 1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1106 case $ac_user_opts in 1107 *" 1108"with_$ac_useropt" 1109"*) ;; 1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1111 ac_unrecognized_sep=', ';; 1112 esac 1113 eval with_$ac_useropt=no ;; 1114 1115 --x) 1116 # Obsolete; use --with-x. 1117 with_x=yes ;; 1118 1119 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1120 | --x-incl | --x-inc | --x-in | --x-i) 1121 ac_prev=x_includes ;; 1122 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1123 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1124 x_includes=$ac_optarg ;; 1125 1126 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1127 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1128 ac_prev=x_libraries ;; 1129 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1130 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1131 x_libraries=$ac_optarg ;; 1132 1133 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1134Try \`$0 --help' for more information" 1135 ;; 1136 1137 *=*) 1138 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1139 # Reject names that are not valid shell variable names. 1140 case $ac_envvar in #( 1141 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1142 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1143 esac 1144 eval $ac_envvar=\$ac_optarg 1145 export $ac_envvar ;; 1146 1147 *) 1148 # FIXME: should be removed in autoconf 3.0. 1149 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1150 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1151 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1152 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1153 ;; 1154 1155 esac 1156done 1157 1158if test -n "$ac_prev"; then 1159 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1160 as_fn_error $? "missing argument to $ac_option" 1161fi 1162 1163if test -n "$ac_unrecognized_opts"; then 1164 case $enable_option_checking in 1165 no) ;; 1166 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1167 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1168 esac 1169fi 1170 1171# Check all directory arguments for consistency. 1172for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1173 datadir sysconfdir sharedstatedir localstatedir includedir \ 1174 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1175 libdir localedir mandir 1176do 1177 eval ac_val=\$$ac_var 1178 # Remove trailing slashes. 1179 case $ac_val in 1180 */ ) 1181 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1182 eval $ac_var=\$ac_val;; 1183 esac 1184 # Be sure to have absolute directory names. 1185 case $ac_val in 1186 [\\/$]* | ?:[\\/]* ) continue;; 1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1188 esac 1189 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1190done 1191 1192# There might be people who depend on the old broken behavior: `$host' 1193# used to hold the argument of --host etc. 1194# FIXME: To remove some day. 1195build=$build_alias 1196host=$host_alias 1197target=$target_alias 1198 1199# FIXME: To remove some day. 1200if test "x$host_alias" != x; then 1201 if test "x$build_alias" = x; then 1202 cross_compiling=maybe 1203 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1204 If a cross compiler is detected then cross compile mode will be used" >&2 1205 elif test "x$build_alias" != "x$host_alias"; then 1206 cross_compiling=yes 1207 fi 1208fi 1209 1210ac_tool_prefix= 1211test -n "$host_alias" && ac_tool_prefix=$host_alias- 1212 1213test "$silent" = yes && exec 6>/dev/null 1214 1215 1216ac_pwd=`pwd` && test -n "$ac_pwd" && 1217ac_ls_di=`ls -di .` && 1218ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1219 as_fn_error $? "working directory cannot be determined" 1220test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1221 as_fn_error $? "pwd does not report name of working directory" 1222 1223 1224# Find the source files, if location was not specified. 1225if test -z "$srcdir"; then 1226 ac_srcdir_defaulted=yes 1227 # Try the directory containing this script, then the parent directory. 1228 ac_confdir=`$as_dirname -- "$as_myself" || 1229$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1230 X"$as_myself" : 'X\(//\)[^/]' \| \ 1231 X"$as_myself" : 'X\(//\)$' \| \ 1232 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1233$as_echo X"$as_myself" | 1234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1235 s//\1/ 1236 q 1237 } 1238 /^X\(\/\/\)[^/].*/{ 1239 s//\1/ 1240 q 1241 } 1242 /^X\(\/\/\)$/{ 1243 s//\1/ 1244 q 1245 } 1246 /^X\(\/\).*/{ 1247 s//\1/ 1248 q 1249 } 1250 s/.*/./; q'` 1251 srcdir=$ac_confdir 1252 if test ! -r "$srcdir/$ac_unique_file"; then 1253 srcdir=.. 1254 fi 1255else 1256 ac_srcdir_defaulted=no 1257fi 1258if test ! -r "$srcdir/$ac_unique_file"; then 1259 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1260 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1261fi 1262ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1263ac_abs_confdir=`( 1264 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1265 pwd)` 1266# When building in place, set srcdir=. 1267if test "$ac_abs_confdir" = "$ac_pwd"; then 1268 srcdir=. 1269fi 1270# Remove unnecessary trailing slashes from srcdir. 1271# Double slashes in file names in object file debugging info 1272# mess up M-x gdb in Emacs. 1273case $srcdir in 1274*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1275esac 1276for ac_var in $ac_precious_vars; do 1277 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1278 eval ac_env_${ac_var}_value=\$${ac_var} 1279 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1280 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1281done 1282 1283# 1284# Report the --help message. 1285# 1286if test "$ac_init_help" = "long"; then 1287 # Omit some internal or obsolete options to make the list less imposing. 1288 # This message is too long to be a string in the A/UX 3.1 sh. 1289 cat <<_ACEOF 1290\`configure' configures lndir 1.0.3 to adapt to many kinds of systems. 1291 1292Usage: $0 [OPTION]... [VAR=VALUE]... 1293 1294To assign environment variables (e.g., CC, CFLAGS...), specify them as 1295VAR=VALUE. See below for descriptions of some of the useful variables. 1296 1297Defaults for the options are specified in brackets. 1298 1299Configuration: 1300 -h, --help display this help and exit 1301 --help=short display options specific to this package 1302 --help=recursive display the short help of all the included packages 1303 -V, --version display version information and exit 1304 -q, --quiet, --silent do not print \`checking ...' messages 1305 --cache-file=FILE cache test results in FILE [disabled] 1306 -C, --config-cache alias for \`--cache-file=config.cache' 1307 -n, --no-create do not create output files 1308 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1309 1310Installation directories: 1311 --prefix=PREFIX install architecture-independent files in PREFIX 1312 [$ac_default_prefix] 1313 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1314 [PREFIX] 1315 1316By default, \`make install' will install all the files in 1317\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1318an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1319for instance \`--prefix=\$HOME'. 1320 1321For better control, use the options below. 1322 1323Fine tuning of the installation directories: 1324 --bindir=DIR user executables [EPREFIX/bin] 1325 --sbindir=DIR system admin executables [EPREFIX/sbin] 1326 --libexecdir=DIR program executables [EPREFIX/libexec] 1327 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1328 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1329 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1330 --libdir=DIR object code libraries [EPREFIX/lib] 1331 --includedir=DIR C header files [PREFIX/include] 1332 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1333 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1334 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1335 --infodir=DIR info documentation [DATAROOTDIR/info] 1336 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1337 --mandir=DIR man documentation [DATAROOTDIR/man] 1338 --docdir=DIR documentation root [DATAROOTDIR/doc/lndir] 1339 --htmldir=DIR html documentation [DOCDIR] 1340 --dvidir=DIR dvi documentation [DOCDIR] 1341 --pdfdir=DIR pdf documentation [DOCDIR] 1342 --psdir=DIR ps documentation [DOCDIR] 1343_ACEOF 1344 1345 cat <<\_ACEOF 1346 1347Program names: 1348 --program-prefix=PREFIX prepend PREFIX to installed program names 1349 --program-suffix=SUFFIX append SUFFIX to installed program names 1350 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1351 1352System types: 1353 --build=BUILD configure for building on BUILD [guessed] 1354 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1355_ACEOF 1356fi 1357 1358if test -n "$ac_init_help"; then 1359 case $ac_init_help in 1360 short | recursive ) echo "Configuration of lndir 1.0.3:";; 1361 esac 1362 cat <<\_ACEOF 1363 1364Optional Features: 1365 --disable-option-checking ignore unrecognized --enable/--with options 1366 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1367 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1368 --disable-dependency-tracking speeds up one-time build 1369 --enable-dependency-tracking do not reject slow dependency extractors 1370 --enable-maintainer-mode enable make rules and dependencies not useful 1371 (and sometimes confusing) to the casual installer 1372 --disable-selective-werror 1373 Turn off selective compiler errors. (default: 1374 enabled) 1375 --enable-strict-compilation 1376 Enable all warnings from compiler and make them 1377 errors (default: disabled) 1378 --enable-silent-rules less verbose build output (undo: `make V=1') 1379 --disable-silent-rules verbose build output (undo: `make V=0') 1380 --disable-largefile omit support for large files 1381 1382Some influential environment variables: 1383 CC C compiler command 1384 CFLAGS C compiler flags 1385 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1386 nonstandard directory <lib dir> 1387 LIBS libraries to pass to the linker, e.g. -l<library> 1388 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1389 you have headers in a nonstandard directory <include dir> 1390 CPP C preprocessor 1391 PKG_CONFIG path to pkg-config utility 1392 XPROTO_CFLAGS 1393 C compiler flags for XPROTO, overriding pkg-config 1394 XPROTO_LIBS linker flags for XPROTO, overriding pkg-config 1395 1396Use these variables to override the choices made by `configure' or to help 1397it to find libraries and programs with nonstandard names/locations. 1398 1399Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1400_ACEOF 1401ac_status=$? 1402fi 1403 1404if test "$ac_init_help" = "recursive"; then 1405 # If there are subdirs, report their specific --help. 1406 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1407 test -d "$ac_dir" || 1408 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1409 continue 1410 ac_builddir=. 1411 1412case "$ac_dir" in 1413.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1414*) 1415 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1416 # A ".." for each directory in $ac_dir_suffix. 1417 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1418 case $ac_top_builddir_sub in 1419 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1420 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1421 esac ;; 1422esac 1423ac_abs_top_builddir=$ac_pwd 1424ac_abs_builddir=$ac_pwd$ac_dir_suffix 1425# for backward compatibility: 1426ac_top_builddir=$ac_top_build_prefix 1427 1428case $srcdir in 1429 .) # We are building in place. 1430 ac_srcdir=. 1431 ac_top_srcdir=$ac_top_builddir_sub 1432 ac_abs_top_srcdir=$ac_pwd ;; 1433 [\\/]* | ?:[\\/]* ) # Absolute name. 1434 ac_srcdir=$srcdir$ac_dir_suffix; 1435 ac_top_srcdir=$srcdir 1436 ac_abs_top_srcdir=$srcdir ;; 1437 *) # Relative name. 1438 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1439 ac_top_srcdir=$ac_top_build_prefix$srcdir 1440 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1441esac 1442ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1443 1444 cd "$ac_dir" || { ac_status=$?; continue; } 1445 # Check for guested configure. 1446 if test -f "$ac_srcdir/configure.gnu"; then 1447 echo && 1448 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1449 elif test -f "$ac_srcdir/configure"; then 1450 echo && 1451 $SHELL "$ac_srcdir/configure" --help=recursive 1452 else 1453 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1454 fi || ac_status=$? 1455 cd "$ac_pwd" || { ac_status=$?; break; } 1456 done 1457fi 1458 1459test -n "$ac_init_help" && exit $ac_status 1460if $ac_init_version; then 1461 cat <<\_ACEOF 1462lndir configure 1.0.3 1463generated by GNU Autoconf 2.68 1464 1465Copyright (C) 2010 Free Software Foundation, Inc. 1466This configure script is free software; the Free Software Foundation 1467gives unlimited permission to copy, distribute and modify it. 1468_ACEOF 1469 exit 1470fi 1471 1472## ------------------------ ## 1473## Autoconf initialization. ## 1474## ------------------------ ## 1475 1476# ac_fn_c_try_compile LINENO 1477# -------------------------- 1478# Try to compile conftest.$ac_ext, and return whether this succeeded. 1479ac_fn_c_try_compile () 1480{ 1481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1482 rm -f conftest.$ac_objext 1483 if { { ac_try="$ac_compile" 1484case "(($ac_try" in 1485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1486 *) ac_try_echo=$ac_try;; 1487esac 1488eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1489$as_echo "$ac_try_echo"; } >&5 1490 (eval "$ac_compile") 2>conftest.err 1491 ac_status=$? 1492 if test -s conftest.err; then 1493 grep -v '^ *+' conftest.err >conftest.er1 1494 cat conftest.er1 >&5 1495 mv -f conftest.er1 conftest.err 1496 fi 1497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1498 test $ac_status = 0; } && { 1499 test -z "$ac_c_werror_flag" || 1500 test ! -s conftest.err 1501 } && test -s conftest.$ac_objext; then : 1502 ac_retval=0 1503else 1504 $as_echo "$as_me: failed program was:" >&5 1505sed 's/^/| /' conftest.$ac_ext >&5 1506 1507 ac_retval=1 1508fi 1509 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1510 as_fn_set_status $ac_retval 1511 1512} # ac_fn_c_try_compile 1513 1514# ac_fn_c_try_cpp LINENO 1515# ---------------------- 1516# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1517ac_fn_c_try_cpp () 1518{ 1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1520 if { { ac_try="$ac_cpp conftest.$ac_ext" 1521case "(($ac_try" in 1522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1523 *) ac_try_echo=$ac_try;; 1524esac 1525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1526$as_echo "$ac_try_echo"; } >&5 1527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1528 ac_status=$? 1529 if test -s conftest.err; then 1530 grep -v '^ *+' conftest.err >conftest.er1 1531 cat conftest.er1 >&5 1532 mv -f conftest.er1 conftest.err 1533 fi 1534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1535 test $ac_status = 0; } > conftest.i && { 1536 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1537 test ! -s conftest.err 1538 }; then : 1539 ac_retval=0 1540else 1541 $as_echo "$as_me: failed program was:" >&5 1542sed 's/^/| /' conftest.$ac_ext >&5 1543 1544 ac_retval=1 1545fi 1546 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1547 as_fn_set_status $ac_retval 1548 1549} # ac_fn_c_try_cpp 1550 1551# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1552# ------------------------------------------------------- 1553# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1554# the include files in INCLUDES and setting the cache variable VAR 1555# accordingly. 1556ac_fn_c_check_header_mongrel () 1557{ 1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1559 if eval \${$3+:} false; then : 1560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1561$as_echo_n "checking for $2... " >&6; } 1562if eval \${$3+:} false; then : 1563 $as_echo_n "(cached) " >&6 1564fi 1565eval ac_res=\$$3 1566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1567$as_echo "$ac_res" >&6; } 1568else 1569 # Is the header compilable? 1570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1571$as_echo_n "checking $2 usability... " >&6; } 1572cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1573/* end confdefs.h. */ 1574$4 1575#include <$2> 1576_ACEOF 1577if ac_fn_c_try_compile "$LINENO"; then : 1578 ac_header_compiler=yes 1579else 1580 ac_header_compiler=no 1581fi 1582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1584$as_echo "$ac_header_compiler" >&6; } 1585 1586# Is the header present? 1587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1588$as_echo_n "checking $2 presence... " >&6; } 1589cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1590/* end confdefs.h. */ 1591#include <$2> 1592_ACEOF 1593if ac_fn_c_try_cpp "$LINENO"; then : 1594 ac_header_preproc=yes 1595else 1596 ac_header_preproc=no 1597fi 1598rm -f conftest.err conftest.i conftest.$ac_ext 1599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1600$as_echo "$ac_header_preproc" >&6; } 1601 1602# So? What about this header? 1603case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1604 yes:no: ) 1605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1606$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1608$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1609 ;; 1610 no:yes:* ) 1611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1612$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1614$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1616$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1618$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1620$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1621( $as_echo "## ---------------------------------------------------------------------- ## 1622## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1623## ---------------------------------------------------------------------- ##" 1624 ) | sed "s/^/$as_me: WARNING: /" >&2 1625 ;; 1626esac 1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1628$as_echo_n "checking for $2... " >&6; } 1629if eval \${$3+:} false; then : 1630 $as_echo_n "(cached) " >&6 1631else 1632 eval "$3=\$ac_header_compiler" 1633fi 1634eval ac_res=\$$3 1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1636$as_echo "$ac_res" >&6; } 1637fi 1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1639 1640} # ac_fn_c_check_header_mongrel 1641 1642# ac_fn_c_try_run LINENO 1643# ---------------------- 1644# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1645# that executables *can* be run. 1646ac_fn_c_try_run () 1647{ 1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1649 if { { ac_try="$ac_link" 1650case "(($ac_try" in 1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1652 *) ac_try_echo=$ac_try;; 1653esac 1654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1655$as_echo "$ac_try_echo"; } >&5 1656 (eval "$ac_link") 2>&5 1657 ac_status=$? 1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1659 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1660 { { case "(($ac_try" in 1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1662 *) ac_try_echo=$ac_try;; 1663esac 1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1665$as_echo "$ac_try_echo"; } >&5 1666 (eval "$ac_try") 2>&5 1667 ac_status=$? 1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1669 test $ac_status = 0; }; }; then : 1670 ac_retval=0 1671else 1672 $as_echo "$as_me: program exited with status $ac_status" >&5 1673 $as_echo "$as_me: failed program was:" >&5 1674sed 's/^/| /' conftest.$ac_ext >&5 1675 1676 ac_retval=$ac_status 1677fi 1678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1680 as_fn_set_status $ac_retval 1681 1682} # ac_fn_c_try_run 1683 1684# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1685# ------------------------------------------------------- 1686# Tests whether HEADER exists and can be compiled using the include files in 1687# INCLUDES, setting the cache variable VAR accordingly. 1688ac_fn_c_check_header_compile () 1689{ 1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1692$as_echo_n "checking for $2... " >&6; } 1693if eval \${$3+:} false; then : 1694 $as_echo_n "(cached) " >&6 1695else 1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1697/* end confdefs.h. */ 1698$4 1699#include <$2> 1700_ACEOF 1701if ac_fn_c_try_compile "$LINENO"; then : 1702 eval "$3=yes" 1703else 1704 eval "$3=no" 1705fi 1706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1707fi 1708eval ac_res=\$$3 1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1710$as_echo "$ac_res" >&6; } 1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1712 1713} # ac_fn_c_check_header_compile 1714 1715# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1716# --------------------------------------------- 1717# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1718# accordingly. 1719ac_fn_c_check_decl () 1720{ 1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1722 as_decl_name=`echo $2|sed 's/ *(.*//'` 1723 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1725$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1726if eval \${$3+:} false; then : 1727 $as_echo_n "(cached) " >&6 1728else 1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1730/* end confdefs.h. */ 1731$4 1732int 1733main () 1734{ 1735#ifndef $as_decl_name 1736#ifdef __cplusplus 1737 (void) $as_decl_use; 1738#else 1739 (void) $as_decl_name; 1740#endif 1741#endif 1742 1743 ; 1744 return 0; 1745} 1746_ACEOF 1747if ac_fn_c_try_compile "$LINENO"; then : 1748 eval "$3=yes" 1749else 1750 eval "$3=no" 1751fi 1752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1753fi 1754eval ac_res=\$$3 1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1756$as_echo "$ac_res" >&6; } 1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1758 1759} # ac_fn_c_check_decl 1760 1761# ac_fn_c_try_link LINENO 1762# ----------------------- 1763# Try to link conftest.$ac_ext, and return whether this succeeded. 1764ac_fn_c_try_link () 1765{ 1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1767 rm -f conftest.$ac_objext conftest$ac_exeext 1768 if { { ac_try="$ac_link" 1769case "(($ac_try" in 1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1771 *) ac_try_echo=$ac_try;; 1772esac 1773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1774$as_echo "$ac_try_echo"; } >&5 1775 (eval "$ac_link") 2>conftest.err 1776 ac_status=$? 1777 if test -s conftest.err; then 1778 grep -v '^ *+' conftest.err >conftest.er1 1779 cat conftest.er1 >&5 1780 mv -f conftest.er1 conftest.err 1781 fi 1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1783 test $ac_status = 0; } && { 1784 test -z "$ac_c_werror_flag" || 1785 test ! -s conftest.err 1786 } && test -s conftest$ac_exeext && { 1787 test "$cross_compiling" = yes || 1788 $as_test_x conftest$ac_exeext 1789 }; then : 1790 ac_retval=0 1791else 1792 $as_echo "$as_me: failed program was:" >&5 1793sed 's/^/| /' conftest.$ac_ext >&5 1794 1795 ac_retval=1 1796fi 1797 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1798 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1799 # interfere with the next link command; also delete a directory that is 1800 # left behind by Apple's compiler. We do this before executing the actions. 1801 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1803 as_fn_set_status $ac_retval 1804 1805} # ac_fn_c_try_link 1806cat >config.log <<_ACEOF 1807This file contains any messages produced by compilers while 1808running configure, to aid debugging if configure makes a mistake. 1809 1810It was created by lndir $as_me 1.0.3, which was 1811generated by GNU Autoconf 2.68. Invocation command line was 1812 1813 $ $0 $@ 1814 1815_ACEOF 1816exec 5>>config.log 1817{ 1818cat <<_ASUNAME 1819## --------- ## 1820## Platform. ## 1821## --------- ## 1822 1823hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1824uname -m = `(uname -m) 2>/dev/null || echo unknown` 1825uname -r = `(uname -r) 2>/dev/null || echo unknown` 1826uname -s = `(uname -s) 2>/dev/null || echo unknown` 1827uname -v = `(uname -v) 2>/dev/null || echo unknown` 1828 1829/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1830/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1831 1832/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1833/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1834/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1835/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1836/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1837/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1838/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1839 1840_ASUNAME 1841 1842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1843for as_dir in $PATH 1844do 1845 IFS=$as_save_IFS 1846 test -z "$as_dir" && as_dir=. 1847 $as_echo "PATH: $as_dir" 1848 done 1849IFS=$as_save_IFS 1850 1851} >&5 1852 1853cat >&5 <<_ACEOF 1854 1855 1856## ----------- ## 1857## Core tests. ## 1858## ----------- ## 1859 1860_ACEOF 1861 1862 1863# Keep a trace of the command line. 1864# Strip out --no-create and --no-recursion so they do not pile up. 1865# Strip out --silent because we don't want to record it for future runs. 1866# Also quote any args containing shell meta-characters. 1867# Make two passes to allow for proper duplicate-argument suppression. 1868ac_configure_args= 1869ac_configure_args0= 1870ac_configure_args1= 1871ac_must_keep_next=false 1872for ac_pass in 1 2 1873do 1874 for ac_arg 1875 do 1876 case $ac_arg in 1877 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1878 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1879 | -silent | --silent | --silen | --sile | --sil) 1880 continue ;; 1881 *\'*) 1882 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1883 esac 1884 case $ac_pass in 1885 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1886 2) 1887 as_fn_append ac_configure_args1 " '$ac_arg'" 1888 if test $ac_must_keep_next = true; then 1889 ac_must_keep_next=false # Got value, back to normal. 1890 else 1891 case $ac_arg in 1892 *=* | --config-cache | -C | -disable-* | --disable-* \ 1893 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1894 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1895 | -with-* | --with-* | -without-* | --without-* | --x) 1896 case "$ac_configure_args0 " in 1897 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1898 esac 1899 ;; 1900 -* ) ac_must_keep_next=true ;; 1901 esac 1902 fi 1903 as_fn_append ac_configure_args " '$ac_arg'" 1904 ;; 1905 esac 1906 done 1907done 1908{ ac_configure_args0=; unset ac_configure_args0;} 1909{ ac_configure_args1=; unset ac_configure_args1;} 1910 1911# When interrupted or exit'd, cleanup temporary files, and complete 1912# config.log. We remove comments because anyway the quotes in there 1913# would cause problems or look ugly. 1914# WARNING: Use '\'' to represent an apostrophe within the trap. 1915# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1916trap 'exit_status=$? 1917 # Save into config.log some information that might help in debugging. 1918 { 1919 echo 1920 1921 $as_echo "## ---------------- ## 1922## Cache variables. ## 1923## ---------------- ##" 1924 echo 1925 # The following way of writing the cache mishandles newlines in values, 1926( 1927 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1928 eval ac_val=\$$ac_var 1929 case $ac_val in #( 1930 *${as_nl}*) 1931 case $ac_var in #( 1932 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1933$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1934 esac 1935 case $ac_var in #( 1936 _ | IFS | as_nl) ;; #( 1937 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1938 *) { eval $ac_var=; unset $ac_var;} ;; 1939 esac ;; 1940 esac 1941 done 1942 (set) 2>&1 | 1943 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1944 *${as_nl}ac_space=\ *) 1945 sed -n \ 1946 "s/'\''/'\''\\\\'\'''\''/g; 1947 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1948 ;; #( 1949 *) 1950 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1951 ;; 1952 esac | 1953 sort 1954) 1955 echo 1956 1957 $as_echo "## ----------------- ## 1958## Output variables. ## 1959## ----------------- ##" 1960 echo 1961 for ac_var in $ac_subst_vars 1962 do 1963 eval ac_val=\$$ac_var 1964 case $ac_val in 1965 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1966 esac 1967 $as_echo "$ac_var='\''$ac_val'\''" 1968 done | sort 1969 echo 1970 1971 if test -n "$ac_subst_files"; then 1972 $as_echo "## ------------------- ## 1973## File substitutions. ## 1974## ------------------- ##" 1975 echo 1976 for ac_var in $ac_subst_files 1977 do 1978 eval ac_val=\$$ac_var 1979 case $ac_val in 1980 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1981 esac 1982 $as_echo "$ac_var='\''$ac_val'\''" 1983 done | sort 1984 echo 1985 fi 1986 1987 if test -s confdefs.h; then 1988 $as_echo "## ----------- ## 1989## confdefs.h. ## 1990## ----------- ##" 1991 echo 1992 cat confdefs.h 1993 echo 1994 fi 1995 test "$ac_signal" != 0 && 1996 $as_echo "$as_me: caught signal $ac_signal" 1997 $as_echo "$as_me: exit $exit_status" 1998 } >&5 1999 rm -f core *.core core.conftest.* && 2000 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2001 exit $exit_status 2002' 0 2003for ac_signal in 1 2 13 15; do 2004 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2005done 2006ac_signal=0 2007 2008# confdefs.h avoids OS command line length limits that DEFS can exceed. 2009rm -f -r conftest* confdefs.h 2010 2011$as_echo "/* confdefs.h */" > confdefs.h 2012 2013# Predefined preprocessor variables. 2014 2015cat >>confdefs.h <<_ACEOF 2016#define PACKAGE_NAME "$PACKAGE_NAME" 2017_ACEOF 2018 2019cat >>confdefs.h <<_ACEOF 2020#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2021_ACEOF 2022 2023cat >>confdefs.h <<_ACEOF 2024#define PACKAGE_VERSION "$PACKAGE_VERSION" 2025_ACEOF 2026 2027cat >>confdefs.h <<_ACEOF 2028#define PACKAGE_STRING "$PACKAGE_STRING" 2029_ACEOF 2030 2031cat >>confdefs.h <<_ACEOF 2032#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2033_ACEOF 2034 2035cat >>confdefs.h <<_ACEOF 2036#define PACKAGE_URL "$PACKAGE_URL" 2037_ACEOF 2038 2039 2040# Let the site file select an alternate cache file if it wants to. 2041# Prefer an explicitly selected file to automatically selected ones. 2042ac_site_file1=NONE 2043ac_site_file2=NONE 2044if test -n "$CONFIG_SITE"; then 2045 # We do not want a PATH search for config.site. 2046 case $CONFIG_SITE in #(( 2047 -*) ac_site_file1=./$CONFIG_SITE;; 2048 */*) ac_site_file1=$CONFIG_SITE;; 2049 *) ac_site_file1=./$CONFIG_SITE;; 2050 esac 2051elif test "x$prefix" != xNONE; then 2052 ac_site_file1=$prefix/share/config.site 2053 ac_site_file2=$prefix/etc/config.site 2054else 2055 ac_site_file1=$ac_default_prefix/share/config.site 2056 ac_site_file2=$ac_default_prefix/etc/config.site 2057fi 2058for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2059do 2060 test "x$ac_site_file" = xNONE && continue 2061 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2062 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2063$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2064 sed 's/^/| /' "$ac_site_file" >&5 2065 . "$ac_site_file" \ 2066 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2068as_fn_error $? "failed to load site script $ac_site_file 2069See \`config.log' for more details" "$LINENO" 5; } 2070 fi 2071done 2072 2073if test -r "$cache_file"; then 2074 # Some versions of bash will fail to source /dev/null (special files 2075 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2076 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2077 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2078$as_echo "$as_me: loading cache $cache_file" >&6;} 2079 case $cache_file in 2080 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2081 *) . "./$cache_file";; 2082 esac 2083 fi 2084else 2085 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2086$as_echo "$as_me: creating cache $cache_file" >&6;} 2087 >$cache_file 2088fi 2089 2090# Check that the precious variables saved in the cache have kept the same 2091# value. 2092ac_cache_corrupted=false 2093for ac_var in $ac_precious_vars; do 2094 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2095 eval ac_new_set=\$ac_env_${ac_var}_set 2096 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2097 eval ac_new_val=\$ac_env_${ac_var}_value 2098 case $ac_old_set,$ac_new_set in 2099 set,) 2100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2101$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2102 ac_cache_corrupted=: ;; 2103 ,set) 2104 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2105$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2106 ac_cache_corrupted=: ;; 2107 ,);; 2108 *) 2109 if test "x$ac_old_val" != "x$ac_new_val"; then 2110 # differences in whitespace do not lead to failure. 2111 ac_old_val_w=`echo x $ac_old_val` 2112 ac_new_val_w=`echo x $ac_new_val` 2113 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2115$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2116 ac_cache_corrupted=: 2117 else 2118 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2119$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2120 eval $ac_var=\$ac_old_val 2121 fi 2122 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2123$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2124 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2125$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2126 fi;; 2127 esac 2128 # Pass precious variables to config.status. 2129 if test "$ac_new_set" = set; then 2130 case $ac_new_val in 2131 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2132 *) ac_arg=$ac_var=$ac_new_val ;; 2133 esac 2134 case " $ac_configure_args " in 2135 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2136 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2137 esac 2138 fi 2139done 2140if $ac_cache_corrupted; then 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2144$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2145 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2146fi 2147## -------------------- ## 2148## Main body of script. ## 2149## -------------------- ## 2150 2151ac_ext=c 2152ac_cpp='$CPP $CPPFLAGS' 2153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2155ac_compiler_gnu=$ac_cv_c_compiler_gnu 2156 2157 2158 2159ac_config_headers="$ac_config_headers config.h" 2160 2161ac_ext=c 2162ac_cpp='$CPP $CPPFLAGS' 2163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2165ac_compiler_gnu=$ac_cv_c_compiler_gnu 2166if test -n "$ac_tool_prefix"; then 2167 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2168set dummy ${ac_tool_prefix}gcc; ac_word=$2 2169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2170$as_echo_n "checking for $ac_word... " >&6; } 2171if ${ac_cv_prog_CC+:} false; then : 2172 $as_echo_n "(cached) " >&6 2173else 2174 if test -n "$CC"; then 2175 ac_cv_prog_CC="$CC" # Let the user override the test. 2176else 2177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2178for as_dir in $PATH 2179do 2180 IFS=$as_save_IFS 2181 test -z "$as_dir" && as_dir=. 2182 for ac_exec_ext in '' $ac_executable_extensions; do 2183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2184 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2186 break 2 2187 fi 2188done 2189 done 2190IFS=$as_save_IFS 2191 2192fi 2193fi 2194CC=$ac_cv_prog_CC 2195if test -n "$CC"; then 2196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2197$as_echo "$CC" >&6; } 2198else 2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2200$as_echo "no" >&6; } 2201fi 2202 2203 2204fi 2205if test -z "$ac_cv_prog_CC"; then 2206 ac_ct_CC=$CC 2207 # Extract the first word of "gcc", so it can be a program name with args. 2208set dummy gcc; ac_word=$2 2209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2210$as_echo_n "checking for $ac_word... " >&6; } 2211if ${ac_cv_prog_ac_ct_CC+:} false; then : 2212 $as_echo_n "(cached) " >&6 2213else 2214 if test -n "$ac_ct_CC"; then 2215 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2216else 2217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2218for as_dir in $PATH 2219do 2220 IFS=$as_save_IFS 2221 test -z "$as_dir" && as_dir=. 2222 for ac_exec_ext in '' $ac_executable_extensions; do 2223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2224 ac_cv_prog_ac_ct_CC="gcc" 2225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2226 break 2 2227 fi 2228done 2229 done 2230IFS=$as_save_IFS 2231 2232fi 2233fi 2234ac_ct_CC=$ac_cv_prog_ac_ct_CC 2235if test -n "$ac_ct_CC"; then 2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2237$as_echo "$ac_ct_CC" >&6; } 2238else 2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2240$as_echo "no" >&6; } 2241fi 2242 2243 if test "x$ac_ct_CC" = x; then 2244 CC="" 2245 else 2246 case $cross_compiling:$ac_tool_warned in 2247yes:) 2248{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2250ac_tool_warned=yes ;; 2251esac 2252 CC=$ac_ct_CC 2253 fi 2254else 2255 CC="$ac_cv_prog_CC" 2256fi 2257 2258if test -z "$CC"; then 2259 if test -n "$ac_tool_prefix"; then 2260 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2261set dummy ${ac_tool_prefix}cc; ac_word=$2 2262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2263$as_echo_n "checking for $ac_word... " >&6; } 2264if ${ac_cv_prog_CC+:} false; then : 2265 $as_echo_n "(cached) " >&6 2266else 2267 if test -n "$CC"; then 2268 ac_cv_prog_CC="$CC" # Let the user override the test. 2269else 2270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2271for as_dir in $PATH 2272do 2273 IFS=$as_save_IFS 2274 test -z "$as_dir" && as_dir=. 2275 for ac_exec_ext in '' $ac_executable_extensions; do 2276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2277 ac_cv_prog_CC="${ac_tool_prefix}cc" 2278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2279 break 2 2280 fi 2281done 2282 done 2283IFS=$as_save_IFS 2284 2285fi 2286fi 2287CC=$ac_cv_prog_CC 2288if test -n "$CC"; then 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2290$as_echo "$CC" >&6; } 2291else 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2293$as_echo "no" >&6; } 2294fi 2295 2296 2297 fi 2298fi 2299if test -z "$CC"; then 2300 # Extract the first word of "cc", so it can be a program name with args. 2301set dummy cc; ac_word=$2 2302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2303$as_echo_n "checking for $ac_word... " >&6; } 2304if ${ac_cv_prog_CC+:} false; then : 2305 $as_echo_n "(cached) " >&6 2306else 2307 if test -n "$CC"; then 2308 ac_cv_prog_CC="$CC" # Let the user override the test. 2309else 2310 ac_prog_rejected=no 2311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2312for as_dir in $PATH 2313do 2314 IFS=$as_save_IFS 2315 test -z "$as_dir" && as_dir=. 2316 for ac_exec_ext in '' $ac_executable_extensions; do 2317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2318 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2319 ac_prog_rejected=yes 2320 continue 2321 fi 2322 ac_cv_prog_CC="cc" 2323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2324 break 2 2325 fi 2326done 2327 done 2328IFS=$as_save_IFS 2329 2330if test $ac_prog_rejected = yes; then 2331 # We found a bogon in the path, so make sure we never use it. 2332 set dummy $ac_cv_prog_CC 2333 shift 2334 if test $# != 0; then 2335 # We chose a different compiler from the bogus one. 2336 # However, it has the same basename, so the bogon will be chosen 2337 # first if we set CC to just the basename; use the full file name. 2338 shift 2339 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2340 fi 2341fi 2342fi 2343fi 2344CC=$ac_cv_prog_CC 2345if test -n "$CC"; then 2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2347$as_echo "$CC" >&6; } 2348else 2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2350$as_echo "no" >&6; } 2351fi 2352 2353 2354fi 2355if test -z "$CC"; then 2356 if test -n "$ac_tool_prefix"; then 2357 for ac_prog in cl.exe 2358 do 2359 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2360set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2362$as_echo_n "checking for $ac_word... " >&6; } 2363if ${ac_cv_prog_CC+:} false; then : 2364 $as_echo_n "(cached) " >&6 2365else 2366 if test -n "$CC"; then 2367 ac_cv_prog_CC="$CC" # Let the user override the test. 2368else 2369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2370for as_dir in $PATH 2371do 2372 IFS=$as_save_IFS 2373 test -z "$as_dir" && as_dir=. 2374 for ac_exec_ext in '' $ac_executable_extensions; do 2375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2376 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2378 break 2 2379 fi 2380done 2381 done 2382IFS=$as_save_IFS 2383 2384fi 2385fi 2386CC=$ac_cv_prog_CC 2387if test -n "$CC"; then 2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2389$as_echo "$CC" >&6; } 2390else 2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2392$as_echo "no" >&6; } 2393fi 2394 2395 2396 test -n "$CC" && break 2397 done 2398fi 2399if test -z "$CC"; then 2400 ac_ct_CC=$CC 2401 for ac_prog in cl.exe 2402do 2403 # Extract the first word of "$ac_prog", so it can be a program name with args. 2404set dummy $ac_prog; ac_word=$2 2405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2406$as_echo_n "checking for $ac_word... " >&6; } 2407if ${ac_cv_prog_ac_ct_CC+:} false; then : 2408 $as_echo_n "(cached) " >&6 2409else 2410 if test -n "$ac_ct_CC"; then 2411 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2412else 2413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2414for as_dir in $PATH 2415do 2416 IFS=$as_save_IFS 2417 test -z "$as_dir" && as_dir=. 2418 for ac_exec_ext in '' $ac_executable_extensions; do 2419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2420 ac_cv_prog_ac_ct_CC="$ac_prog" 2421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2422 break 2 2423 fi 2424done 2425 done 2426IFS=$as_save_IFS 2427 2428fi 2429fi 2430ac_ct_CC=$ac_cv_prog_ac_ct_CC 2431if test -n "$ac_ct_CC"; then 2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2433$as_echo "$ac_ct_CC" >&6; } 2434else 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2436$as_echo "no" >&6; } 2437fi 2438 2439 2440 test -n "$ac_ct_CC" && break 2441done 2442 2443 if test "x$ac_ct_CC" = x; then 2444 CC="" 2445 else 2446 case $cross_compiling:$ac_tool_warned in 2447yes:) 2448{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2449$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2450ac_tool_warned=yes ;; 2451esac 2452 CC=$ac_ct_CC 2453 fi 2454fi 2455 2456fi 2457 2458 2459test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2461as_fn_error $? "no acceptable C compiler found in \$PATH 2462See \`config.log' for more details" "$LINENO" 5; } 2463 2464# Provide some information about the compiler. 2465$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2466set X $ac_compile 2467ac_compiler=$2 2468for ac_option in --version -v -V -qversion; do 2469 { { ac_try="$ac_compiler $ac_option >&5" 2470case "(($ac_try" in 2471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2472 *) ac_try_echo=$ac_try;; 2473esac 2474eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2475$as_echo "$ac_try_echo"; } >&5 2476 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2477 ac_status=$? 2478 if test -s conftest.err; then 2479 sed '10a\ 2480... rest of stderr output deleted ... 2481 10q' conftest.err >conftest.er1 2482 cat conftest.er1 >&5 2483 fi 2484 rm -f conftest.er1 conftest.err 2485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2486 test $ac_status = 0; } 2487done 2488 2489cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2490/* end confdefs.h. */ 2491 2492int 2493main () 2494{ 2495 2496 ; 2497 return 0; 2498} 2499_ACEOF 2500ac_clean_files_save=$ac_clean_files 2501ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2502# Try to create an executable without -o first, disregard a.out. 2503# It will help us diagnose broken compilers, and finding out an intuition 2504# of exeext. 2505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2506$as_echo_n "checking whether the C compiler works... " >&6; } 2507ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2508 2509# The possible output files: 2510ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2511 2512ac_rmfiles= 2513for ac_file in $ac_files 2514do 2515 case $ac_file in 2516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2517 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2518 esac 2519done 2520rm -f $ac_rmfiles 2521 2522if { { ac_try="$ac_link_default" 2523case "(($ac_try" in 2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2525 *) ac_try_echo=$ac_try;; 2526esac 2527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2528$as_echo "$ac_try_echo"; } >&5 2529 (eval "$ac_link_default") 2>&5 2530 ac_status=$? 2531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2532 test $ac_status = 0; }; then : 2533 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2534# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2535# in a Makefile. We should not override ac_cv_exeext if it was cached, 2536# so that the user can short-circuit this test for compilers unknown to 2537# Autoconf. 2538for ac_file in $ac_files '' 2539do 2540 test -f "$ac_file" || continue 2541 case $ac_file in 2542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2543 ;; 2544 [ab].out ) 2545 # We found the default executable, but exeext='' is most 2546 # certainly right. 2547 break;; 2548 *.* ) 2549 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2550 then :; else 2551 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2552 fi 2553 # We set ac_cv_exeext here because the later test for it is not 2554 # safe: cross compilers may not add the suffix if given an `-o' 2555 # argument, so we may need to know it at that point already. 2556 # Even if this section looks crufty: it has the advantage of 2557 # actually working. 2558 break;; 2559 * ) 2560 break;; 2561 esac 2562done 2563test "$ac_cv_exeext" = no && ac_cv_exeext= 2564 2565else 2566 ac_file='' 2567fi 2568if test -z "$ac_file"; then : 2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2570$as_echo "no" >&6; } 2571$as_echo "$as_me: failed program was:" >&5 2572sed 's/^/| /' conftest.$ac_ext >&5 2573 2574{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2576as_fn_error 77 "C compiler cannot create executables 2577See \`config.log' for more details" "$LINENO" 5; } 2578else 2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2580$as_echo "yes" >&6; } 2581fi 2582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2583$as_echo_n "checking for C compiler default output file name... " >&6; } 2584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2585$as_echo "$ac_file" >&6; } 2586ac_exeext=$ac_cv_exeext 2587 2588rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2589ac_clean_files=$ac_clean_files_save 2590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2591$as_echo_n "checking for suffix of executables... " >&6; } 2592if { { ac_try="$ac_link" 2593case "(($ac_try" in 2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2595 *) ac_try_echo=$ac_try;; 2596esac 2597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2598$as_echo "$ac_try_echo"; } >&5 2599 (eval "$ac_link") 2>&5 2600 ac_status=$? 2601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2602 test $ac_status = 0; }; then : 2603 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2604# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2605# work properly (i.e., refer to `conftest.exe'), while it won't with 2606# `rm'. 2607for ac_file in conftest.exe conftest conftest.*; do 2608 test -f "$ac_file" || continue 2609 case $ac_file in 2610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2611 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2612 break;; 2613 * ) break;; 2614 esac 2615done 2616else 2617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2618$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2619as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2620See \`config.log' for more details" "$LINENO" 5; } 2621fi 2622rm -f conftest conftest$ac_cv_exeext 2623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2624$as_echo "$ac_cv_exeext" >&6; } 2625 2626rm -f conftest.$ac_ext 2627EXEEXT=$ac_cv_exeext 2628ac_exeext=$EXEEXT 2629cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2630/* end confdefs.h. */ 2631#include <stdio.h> 2632int 2633main () 2634{ 2635FILE *f = fopen ("conftest.out", "w"); 2636 return ferror (f) || fclose (f) != 0; 2637 2638 ; 2639 return 0; 2640} 2641_ACEOF 2642ac_clean_files="$ac_clean_files conftest.out" 2643# Check that the compiler produces executables we can run. If not, either 2644# the compiler is broken, or we cross compile. 2645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2646$as_echo_n "checking whether we are cross compiling... " >&6; } 2647if test "$cross_compiling" != yes; then 2648 { { ac_try="$ac_link" 2649case "(($ac_try" in 2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2651 *) ac_try_echo=$ac_try;; 2652esac 2653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2654$as_echo "$ac_try_echo"; } >&5 2655 (eval "$ac_link") 2>&5 2656 ac_status=$? 2657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2658 test $ac_status = 0; } 2659 if { ac_try='./conftest$ac_cv_exeext' 2660 { { case "(($ac_try" in 2661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2662 *) ac_try_echo=$ac_try;; 2663esac 2664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2665$as_echo "$ac_try_echo"; } >&5 2666 (eval "$ac_try") 2>&5 2667 ac_status=$? 2668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2669 test $ac_status = 0; }; }; then 2670 cross_compiling=no 2671 else 2672 if test "$cross_compiling" = maybe; then 2673 cross_compiling=yes 2674 else 2675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2677as_fn_error $? "cannot run C compiled programs. 2678If you meant to cross compile, use \`--host'. 2679See \`config.log' for more details" "$LINENO" 5; } 2680 fi 2681 fi 2682fi 2683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2684$as_echo "$cross_compiling" >&6; } 2685 2686rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2687ac_clean_files=$ac_clean_files_save 2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2689$as_echo_n "checking for suffix of object files... " >&6; } 2690if ${ac_cv_objext+:} false; then : 2691 $as_echo_n "(cached) " >&6 2692else 2693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2694/* end confdefs.h. */ 2695 2696int 2697main () 2698{ 2699 2700 ; 2701 return 0; 2702} 2703_ACEOF 2704rm -f conftest.o conftest.obj 2705if { { ac_try="$ac_compile" 2706case "(($ac_try" in 2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2708 *) ac_try_echo=$ac_try;; 2709esac 2710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2711$as_echo "$ac_try_echo"; } >&5 2712 (eval "$ac_compile") 2>&5 2713 ac_status=$? 2714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2715 test $ac_status = 0; }; then : 2716 for ac_file in conftest.o conftest.obj conftest.*; do 2717 test -f "$ac_file" || continue; 2718 case $ac_file in 2719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2720 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2721 break;; 2722 esac 2723done 2724else 2725 $as_echo "$as_me: failed program was:" >&5 2726sed 's/^/| /' conftest.$ac_ext >&5 2727 2728{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2729$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2730as_fn_error $? "cannot compute suffix of object files: cannot compile 2731See \`config.log' for more details" "$LINENO" 5; } 2732fi 2733rm -f conftest.$ac_cv_objext conftest.$ac_ext 2734fi 2735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2736$as_echo "$ac_cv_objext" >&6; } 2737OBJEXT=$ac_cv_objext 2738ac_objext=$OBJEXT 2739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2740$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2741if ${ac_cv_c_compiler_gnu+:} false; then : 2742 $as_echo_n "(cached) " >&6 2743else 2744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2745/* end confdefs.h. */ 2746 2747int 2748main () 2749{ 2750#ifndef __GNUC__ 2751 choke me 2752#endif 2753 2754 ; 2755 return 0; 2756} 2757_ACEOF 2758if ac_fn_c_try_compile "$LINENO"; then : 2759 ac_compiler_gnu=yes 2760else 2761 ac_compiler_gnu=no 2762fi 2763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2764ac_cv_c_compiler_gnu=$ac_compiler_gnu 2765 2766fi 2767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2768$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2769if test $ac_compiler_gnu = yes; then 2770 GCC=yes 2771else 2772 GCC= 2773fi 2774ac_test_CFLAGS=${CFLAGS+set} 2775ac_save_CFLAGS=$CFLAGS 2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2777$as_echo_n "checking whether $CC accepts -g... " >&6; } 2778if ${ac_cv_prog_cc_g+:} false; then : 2779 $as_echo_n "(cached) " >&6 2780else 2781 ac_save_c_werror_flag=$ac_c_werror_flag 2782 ac_c_werror_flag=yes 2783 ac_cv_prog_cc_g=no 2784 CFLAGS="-g" 2785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2786/* end confdefs.h. */ 2787 2788int 2789main () 2790{ 2791 2792 ; 2793 return 0; 2794} 2795_ACEOF 2796if ac_fn_c_try_compile "$LINENO"; then : 2797 ac_cv_prog_cc_g=yes 2798else 2799 CFLAGS="" 2800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2801/* end confdefs.h. */ 2802 2803int 2804main () 2805{ 2806 2807 ; 2808 return 0; 2809} 2810_ACEOF 2811if ac_fn_c_try_compile "$LINENO"; then : 2812 2813else 2814 ac_c_werror_flag=$ac_save_c_werror_flag 2815 CFLAGS="-g" 2816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2817/* end confdefs.h. */ 2818 2819int 2820main () 2821{ 2822 2823 ; 2824 return 0; 2825} 2826_ACEOF 2827if ac_fn_c_try_compile "$LINENO"; then : 2828 ac_cv_prog_cc_g=yes 2829fi 2830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2831fi 2832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2833fi 2834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2835 ac_c_werror_flag=$ac_save_c_werror_flag 2836fi 2837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2838$as_echo "$ac_cv_prog_cc_g" >&6; } 2839if test "$ac_test_CFLAGS" = set; then 2840 CFLAGS=$ac_save_CFLAGS 2841elif test $ac_cv_prog_cc_g = yes; then 2842 if test "$GCC" = yes; then 2843 CFLAGS="-g -O2" 2844 else 2845 CFLAGS="-g" 2846 fi 2847else 2848 if test "$GCC" = yes; then 2849 CFLAGS="-O2" 2850 else 2851 CFLAGS= 2852 fi 2853fi 2854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2855$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2856if ${ac_cv_prog_cc_c89+:} false; then : 2857 $as_echo_n "(cached) " >&6 2858else 2859 ac_cv_prog_cc_c89=no 2860ac_save_CC=$CC 2861cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2862/* end confdefs.h. */ 2863#include <stdarg.h> 2864#include <stdio.h> 2865#include <sys/types.h> 2866#include <sys/stat.h> 2867/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2868struct buf { int x; }; 2869FILE * (*rcsopen) (struct buf *, struct stat *, int); 2870static char *e (p, i) 2871 char **p; 2872 int i; 2873{ 2874 return p[i]; 2875} 2876static char *f (char * (*g) (char **, int), char **p, ...) 2877{ 2878 char *s; 2879 va_list v; 2880 va_start (v,p); 2881 s = g (p, va_arg (v,int)); 2882 va_end (v); 2883 return s; 2884} 2885 2886/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2887 function prototypes and stuff, but not '\xHH' hex character constants. 2888 These don't provoke an error unfortunately, instead are silently treated 2889 as 'x'. The following induces an error, until -std is added to get 2890 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2891 array size at least. It's necessary to write '\x00'==0 to get something 2892 that's true only with -std. */ 2893int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2894 2895/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2896 inside strings and character constants. */ 2897#define FOO(x) 'x' 2898int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2899 2900int test (int i, double x); 2901struct s1 {int (*f) (int a);}; 2902struct s2 {int (*f) (double a);}; 2903int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2904int argc; 2905char **argv; 2906int 2907main () 2908{ 2909return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2910 ; 2911 return 0; 2912} 2913_ACEOF 2914for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2915 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2916do 2917 CC="$ac_save_CC $ac_arg" 2918 if ac_fn_c_try_compile "$LINENO"; then : 2919 ac_cv_prog_cc_c89=$ac_arg 2920fi 2921rm -f core conftest.err conftest.$ac_objext 2922 test "x$ac_cv_prog_cc_c89" != "xno" && break 2923done 2924rm -f conftest.$ac_ext 2925CC=$ac_save_CC 2926 2927fi 2928# AC_CACHE_VAL 2929case "x$ac_cv_prog_cc_c89" in 2930 x) 2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 2932$as_echo "none needed" >&6; } ;; 2933 xno) 2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 2935$as_echo "unsupported" >&6; } ;; 2936 *) 2937 CC="$CC $ac_cv_prog_cc_c89" 2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 2939$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 2940esac 2941if test "x$ac_cv_prog_cc_c89" != xno; then : 2942 2943fi 2944 2945ac_ext=c 2946ac_cpp='$CPP $CPPFLAGS' 2947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2949ac_compiler_gnu=$ac_cv_c_compiler_gnu 2950 2951 2952ac_ext=c 2953ac_cpp='$CPP $CPPFLAGS' 2954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2956ac_compiler_gnu=$ac_cv_c_compiler_gnu 2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 2958$as_echo_n "checking how to run the C preprocessor... " >&6; } 2959# On Suns, sometimes $CPP names a directory. 2960if test -n "$CPP" && test -d "$CPP"; then 2961 CPP= 2962fi 2963if test -z "$CPP"; then 2964 if ${ac_cv_prog_CPP+:} false; then : 2965 $as_echo_n "(cached) " >&6 2966else 2967 # Double quotes because CPP needs to be expanded 2968 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2969 do 2970 ac_preproc_ok=false 2971for ac_c_preproc_warn_flag in '' yes 2972do 2973 # Use a header file that comes with gcc, so configuring glibc 2974 # with a fresh cross-compiler works. 2975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2976 # <limits.h> exists even on freestanding compilers. 2977 # On the NeXT, cc -E runs the code through the compiler's parser, 2978 # not just through cpp. "Syntax error" is here to catch this case. 2979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2980/* end confdefs.h. */ 2981#ifdef __STDC__ 2982# include <limits.h> 2983#else 2984# include <assert.h> 2985#endif 2986 Syntax error 2987_ACEOF 2988if ac_fn_c_try_cpp "$LINENO"; then : 2989 2990else 2991 # Broken: fails on valid input. 2992continue 2993fi 2994rm -f conftest.err conftest.i conftest.$ac_ext 2995 2996 # OK, works on sane cases. Now check whether nonexistent headers 2997 # can be detected and how. 2998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2999/* end confdefs.h. */ 3000#include <ac_nonexistent.h> 3001_ACEOF 3002if ac_fn_c_try_cpp "$LINENO"; then : 3003 # Broken: success on invalid input. 3004continue 3005else 3006 # Passes both tests. 3007ac_preproc_ok=: 3008break 3009fi 3010rm -f conftest.err conftest.i conftest.$ac_ext 3011 3012done 3013# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3014rm -f conftest.i conftest.err conftest.$ac_ext 3015if $ac_preproc_ok; then : 3016 break 3017fi 3018 3019 done 3020 ac_cv_prog_CPP=$CPP 3021 3022fi 3023 CPP=$ac_cv_prog_CPP 3024else 3025 ac_cv_prog_CPP=$CPP 3026fi 3027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3028$as_echo "$CPP" >&6; } 3029ac_preproc_ok=false 3030for ac_c_preproc_warn_flag in '' yes 3031do 3032 # Use a header file that comes with gcc, so configuring glibc 3033 # with a fresh cross-compiler works. 3034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3035 # <limits.h> exists even on freestanding compilers. 3036 # On the NeXT, cc -E runs the code through the compiler's parser, 3037 # not just through cpp. "Syntax error" is here to catch this case. 3038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3039/* end confdefs.h. */ 3040#ifdef __STDC__ 3041# include <limits.h> 3042#else 3043# include <assert.h> 3044#endif 3045 Syntax error 3046_ACEOF 3047if ac_fn_c_try_cpp "$LINENO"; then : 3048 3049else 3050 # Broken: fails on valid input. 3051continue 3052fi 3053rm -f conftest.err conftest.i conftest.$ac_ext 3054 3055 # OK, works on sane cases. Now check whether nonexistent headers 3056 # can be detected and how. 3057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3058/* end confdefs.h. */ 3059#include <ac_nonexistent.h> 3060_ACEOF 3061if ac_fn_c_try_cpp "$LINENO"; then : 3062 # Broken: success on invalid input. 3063continue 3064else 3065 # Passes both tests. 3066ac_preproc_ok=: 3067break 3068fi 3069rm -f conftest.err conftest.i conftest.$ac_ext 3070 3071done 3072# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3073rm -f conftest.i conftest.err conftest.$ac_ext 3074if $ac_preproc_ok; then : 3075 3076else 3077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3079as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3080See \`config.log' for more details" "$LINENO" 5; } 3081fi 3082 3083ac_ext=c 3084ac_cpp='$CPP $CPPFLAGS' 3085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3087ac_compiler_gnu=$ac_cv_c_compiler_gnu 3088 3089 3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3091$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3092if ${ac_cv_path_GREP+:} false; then : 3093 $as_echo_n "(cached) " >&6 3094else 3095 if test -z "$GREP"; then 3096 ac_path_GREP_found=false 3097 # Loop through the user's path and test for each of PROGNAME-LIST 3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3099for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3100do 3101 IFS=$as_save_IFS 3102 test -z "$as_dir" && as_dir=. 3103 for ac_prog in grep ggrep; do 3104 for ac_exec_ext in '' $ac_executable_extensions; do 3105 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3106 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3107# Check for GNU ac_path_GREP and select it if it is found. 3108 # Check for GNU $ac_path_GREP 3109case `"$ac_path_GREP" --version 2>&1` in 3110*GNU*) 3111 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3112*) 3113 ac_count=0 3114 $as_echo_n 0123456789 >"conftest.in" 3115 while : 3116 do 3117 cat "conftest.in" "conftest.in" >"conftest.tmp" 3118 mv "conftest.tmp" "conftest.in" 3119 cp "conftest.in" "conftest.nl" 3120 $as_echo 'GREP' >> "conftest.nl" 3121 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3122 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3123 as_fn_arith $ac_count + 1 && ac_count=$as_val 3124 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3125 # Best one so far, save it but keep looking for a better one 3126 ac_cv_path_GREP="$ac_path_GREP" 3127 ac_path_GREP_max=$ac_count 3128 fi 3129 # 10*(2^10) chars as input seems more than enough 3130 test $ac_count -gt 10 && break 3131 done 3132 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3133esac 3134 3135 $ac_path_GREP_found && break 3 3136 done 3137 done 3138 done 3139IFS=$as_save_IFS 3140 if test -z "$ac_cv_path_GREP"; then 3141 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3142 fi 3143else 3144 ac_cv_path_GREP=$GREP 3145fi 3146 3147fi 3148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3149$as_echo "$ac_cv_path_GREP" >&6; } 3150 GREP="$ac_cv_path_GREP" 3151 3152 3153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3154$as_echo_n "checking for egrep... " >&6; } 3155if ${ac_cv_path_EGREP+:} false; then : 3156 $as_echo_n "(cached) " >&6 3157else 3158 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3159 then ac_cv_path_EGREP="$GREP -E" 3160 else 3161 if test -z "$EGREP"; then 3162 ac_path_EGREP_found=false 3163 # Loop through the user's path and test for each of PROGNAME-LIST 3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3165for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3166do 3167 IFS=$as_save_IFS 3168 test -z "$as_dir" && as_dir=. 3169 for ac_prog in egrep; do 3170 for ac_exec_ext in '' $ac_executable_extensions; do 3171 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3172 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3173# Check for GNU ac_path_EGREP and select it if it is found. 3174 # Check for GNU $ac_path_EGREP 3175case `"$ac_path_EGREP" --version 2>&1` in 3176*GNU*) 3177 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3178*) 3179 ac_count=0 3180 $as_echo_n 0123456789 >"conftest.in" 3181 while : 3182 do 3183 cat "conftest.in" "conftest.in" >"conftest.tmp" 3184 mv "conftest.tmp" "conftest.in" 3185 cp "conftest.in" "conftest.nl" 3186 $as_echo 'EGREP' >> "conftest.nl" 3187 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3189 as_fn_arith $ac_count + 1 && ac_count=$as_val 3190 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3191 # Best one so far, save it but keep looking for a better one 3192 ac_cv_path_EGREP="$ac_path_EGREP" 3193 ac_path_EGREP_max=$ac_count 3194 fi 3195 # 10*(2^10) chars as input seems more than enough 3196 test $ac_count -gt 10 && break 3197 done 3198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3199esac 3200 3201 $ac_path_EGREP_found && break 3 3202 done 3203 done 3204 done 3205IFS=$as_save_IFS 3206 if test -z "$ac_cv_path_EGREP"; then 3207 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3208 fi 3209else 3210 ac_cv_path_EGREP=$EGREP 3211fi 3212 3213 fi 3214fi 3215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3216$as_echo "$ac_cv_path_EGREP" >&6; } 3217 EGREP="$ac_cv_path_EGREP" 3218 3219 3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3221$as_echo_n "checking for ANSI C header files... " >&6; } 3222if ${ac_cv_header_stdc+:} false; then : 3223 $as_echo_n "(cached) " >&6 3224else 3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3226/* end confdefs.h. */ 3227#include <stdlib.h> 3228#include <stdarg.h> 3229#include <string.h> 3230#include <float.h> 3231 3232int 3233main () 3234{ 3235 3236 ; 3237 return 0; 3238} 3239_ACEOF 3240if ac_fn_c_try_compile "$LINENO"; then : 3241 ac_cv_header_stdc=yes 3242else 3243 ac_cv_header_stdc=no 3244fi 3245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3246 3247if test $ac_cv_header_stdc = yes; then 3248 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3250/* end confdefs.h. */ 3251#include <string.h> 3252 3253_ACEOF 3254if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3255 $EGREP "memchr" >/dev/null 2>&1; then : 3256 3257else 3258 ac_cv_header_stdc=no 3259fi 3260rm -f conftest* 3261 3262fi 3263 3264if test $ac_cv_header_stdc = yes; then 3265 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3267/* end confdefs.h. */ 3268#include <stdlib.h> 3269 3270_ACEOF 3271if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3272 $EGREP "free" >/dev/null 2>&1; then : 3273 3274else 3275 ac_cv_header_stdc=no 3276fi 3277rm -f conftest* 3278 3279fi 3280 3281if test $ac_cv_header_stdc = yes; then 3282 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3283 if test "$cross_compiling" = yes; then : 3284 : 3285else 3286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3287/* end confdefs.h. */ 3288#include <ctype.h> 3289#include <stdlib.h> 3290#if ((' ' & 0x0FF) == 0x020) 3291# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3292# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3293#else 3294# define ISLOWER(c) \ 3295 (('a' <= (c) && (c) <= 'i') \ 3296 || ('j' <= (c) && (c) <= 'r') \ 3297 || ('s' <= (c) && (c) <= 'z')) 3298# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3299#endif 3300 3301#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3302int 3303main () 3304{ 3305 int i; 3306 for (i = 0; i < 256; i++) 3307 if (XOR (islower (i), ISLOWER (i)) 3308 || toupper (i) != TOUPPER (i)) 3309 return 2; 3310 return 0; 3311} 3312_ACEOF 3313if ac_fn_c_try_run "$LINENO"; then : 3314 3315else 3316 ac_cv_header_stdc=no 3317fi 3318rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3319 conftest.$ac_objext conftest.beam conftest.$ac_ext 3320fi 3321 3322fi 3323fi 3324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3325$as_echo "$ac_cv_header_stdc" >&6; } 3326if test $ac_cv_header_stdc = yes; then 3327 3328$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3329 3330fi 3331 3332# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3333for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3334 inttypes.h stdint.h unistd.h 3335do : 3336 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3337ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3338" 3339if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3340 cat >>confdefs.h <<_ACEOF 3341#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3342_ACEOF 3343 3344fi 3345 3346done 3347 3348 3349 3350 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3351if test "x$ac_cv_header_minix_config_h" = xyes; then : 3352 MINIX=yes 3353else 3354 MINIX= 3355fi 3356 3357 3358 if test "$MINIX" = yes; then 3359 3360$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3361 3362 3363$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3364 3365 3366$as_echo "#define _MINIX 1" >>confdefs.h 3367 3368 fi 3369 3370 3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3372$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3373if ${ac_cv_safe_to_define___extensions__+:} false; then : 3374 $as_echo_n "(cached) " >&6 3375else 3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3377/* end confdefs.h. */ 3378 3379# define __EXTENSIONS__ 1 3380 $ac_includes_default 3381int 3382main () 3383{ 3384 3385 ; 3386 return 0; 3387} 3388_ACEOF 3389if ac_fn_c_try_compile "$LINENO"; then : 3390 ac_cv_safe_to_define___extensions__=yes 3391else 3392 ac_cv_safe_to_define___extensions__=no 3393fi 3394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3395fi 3396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3397$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3398 test $ac_cv_safe_to_define___extensions__ = yes && 3399 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3400 3401 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3402 3403 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3404 3405 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3406 3407 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3408 3409 3410 3411# Initialize Automake 3412am__api_version='1.11' 3413 3414ac_aux_dir= 3415for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3416 if test -f "$ac_dir/install-sh"; then 3417 ac_aux_dir=$ac_dir 3418 ac_install_sh="$ac_aux_dir/install-sh -c" 3419 break 3420 elif test -f "$ac_dir/install.sh"; then 3421 ac_aux_dir=$ac_dir 3422 ac_install_sh="$ac_aux_dir/install.sh -c" 3423 break 3424 elif test -f "$ac_dir/shtool"; then 3425 ac_aux_dir=$ac_dir 3426 ac_install_sh="$ac_aux_dir/shtool install -c" 3427 break 3428 fi 3429done 3430if test -z "$ac_aux_dir"; then 3431 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3432fi 3433 3434# These three variables are undocumented and unsupported, 3435# and are intended to be withdrawn in a future Autoconf release. 3436# They can cause serious problems if a builder's source tree is in a directory 3437# whose full name contains unusual characters. 3438ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3439ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3440ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3441 3442 3443# Find a good install program. We prefer a C program (faster), 3444# so one script is as good as another. But avoid the broken or 3445# incompatible versions: 3446# SysV /etc/install, /usr/sbin/install 3447# SunOS /usr/etc/install 3448# IRIX /sbin/install 3449# AIX /bin/install 3450# AmigaOS /C/install, which installs bootblocks on floppy discs 3451# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3452# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3453# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3454# OS/2's system install, which has a completely different semantic 3455# ./install, which can be erroneously created by make from ./install.sh. 3456# Reject install programs that cannot install multiple files. 3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3458$as_echo_n "checking for a BSD-compatible install... " >&6; } 3459if test -z "$INSTALL"; then 3460if ${ac_cv_path_install+:} false; then : 3461 $as_echo_n "(cached) " >&6 3462else 3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3464for as_dir in $PATH 3465do 3466 IFS=$as_save_IFS 3467 test -z "$as_dir" && as_dir=. 3468 # Account for people who put trailing slashes in PATH elements. 3469case $as_dir/ in #(( 3470 ./ | .// | /[cC]/* | \ 3471 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3472 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3473 /usr/ucb/* ) ;; 3474 *) 3475 # OSF1 and SCO ODT 3.0 have their own names for install. 3476 # Don't use installbsd from OSF since it installs stuff as root 3477 # by default. 3478 for ac_prog in ginstall scoinst install; do 3479 for ac_exec_ext in '' $ac_executable_extensions; do 3480 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3481 if test $ac_prog = install && 3482 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3483 # AIX install. It has an incompatible calling convention. 3484 : 3485 elif test $ac_prog = install && 3486 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3487 # program-specific install script used by HP pwplus--don't use. 3488 : 3489 else 3490 rm -rf conftest.one conftest.two conftest.dir 3491 echo one > conftest.one 3492 echo two > conftest.two 3493 mkdir conftest.dir 3494 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3495 test -s conftest.one && test -s conftest.two && 3496 test -s conftest.dir/conftest.one && 3497 test -s conftest.dir/conftest.two 3498 then 3499 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3500 break 3 3501 fi 3502 fi 3503 fi 3504 done 3505 done 3506 ;; 3507esac 3508 3509 done 3510IFS=$as_save_IFS 3511 3512rm -rf conftest.one conftest.two conftest.dir 3513 3514fi 3515 if test "${ac_cv_path_install+set}" = set; then 3516 INSTALL=$ac_cv_path_install 3517 else 3518 # As a last resort, use the slow shell script. Don't cache a 3519 # value for INSTALL within a source directory, because that will 3520 # break other packages using the cache if that directory is 3521 # removed, or if the value is a relative name. 3522 INSTALL=$ac_install_sh 3523 fi 3524fi 3525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3526$as_echo "$INSTALL" >&6; } 3527 3528# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3529# It thinks the first close brace ends the variable substitution. 3530test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3531 3532test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3533 3534test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3535 3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3537$as_echo_n "checking whether build environment is sane... " >&6; } 3538# Just in case 3539sleep 1 3540echo timestamp > conftest.file 3541# Reject unsafe characters in $srcdir or the absolute working directory 3542# name. Accept space and tab only in the latter. 3543am_lf=' 3544' 3545case `pwd` in 3546 *[\\\"\#\$\&\'\`$am_lf]*) 3547 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3548esac 3549case $srcdir in 3550 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3551 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 3552esac 3553 3554# Do `set' in a subshell so we don't clobber the current shell's 3555# arguments. Must try -L first in case configure is actually a 3556# symlink; some systems play weird games with the mod time of symlinks 3557# (eg FreeBSD returns the mod time of the symlink's containing 3558# directory). 3559if ( 3560 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3561 if test "$*" = "X"; then 3562 # -L didn't work. 3563 set X `ls -t "$srcdir/configure" conftest.file` 3564 fi 3565 rm -f conftest.file 3566 if test "$*" != "X $srcdir/configure conftest.file" \ 3567 && test "$*" != "X conftest.file $srcdir/configure"; then 3568 3569 # If neither matched, then we have a broken ls. This can happen 3570 # if, for instance, CONFIG_SHELL is bash and it inherits a 3571 # broken ls alias from the environment. This has actually 3572 # happened. Such a system could not be considered "sane". 3573 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3574alias in your environment" "$LINENO" 5 3575 fi 3576 3577 test "$2" = conftest.file 3578 ) 3579then 3580 # Ok. 3581 : 3582else 3583 as_fn_error $? "newly created file is older than distributed files! 3584Check your system clock" "$LINENO" 5 3585fi 3586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3587$as_echo "yes" >&6; } 3588test "$program_prefix" != NONE && 3589 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3590# Use a double $ so make ignores it. 3591test "$program_suffix" != NONE && 3592 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3593# Double any \ or $. 3594# By default was `s,x,x', remove it if useless. 3595ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3596program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3597 3598# expand $ac_aux_dir to an absolute path 3599am_aux_dir=`cd $ac_aux_dir && pwd` 3600 3601if test x"${MISSING+set}" != xset; then 3602 case $am_aux_dir in 3603 *\ * | *\ *) 3604 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3605 *) 3606 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3607 esac 3608fi 3609# Use eval to expand $SHELL 3610if eval "$MISSING --run true"; then 3611 am_missing_run="$MISSING --run " 3612else 3613 am_missing_run= 3614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3615$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3616fi 3617 3618if test x"${install_sh}" != xset; then 3619 case $am_aux_dir in 3620 *\ * | *\ *) 3621 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3622 *) 3623 install_sh="\${SHELL} $am_aux_dir/install-sh" 3624 esac 3625fi 3626 3627# Installed binaries are usually stripped using `strip' when the user 3628# run `make install-strip'. However `strip' might not be the right 3629# tool to use in cross-compilation environments, therefore Automake 3630# will honor the `STRIP' environment variable to overrule this program. 3631if test "$cross_compiling" != no; then 3632 if test -n "$ac_tool_prefix"; then 3633 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3634set dummy ${ac_tool_prefix}strip; ac_word=$2 3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3636$as_echo_n "checking for $ac_word... " >&6; } 3637if ${ac_cv_prog_STRIP+:} false; then : 3638 $as_echo_n "(cached) " >&6 3639else 3640 if test -n "$STRIP"; then 3641 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3642else 3643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3644for as_dir in $PATH 3645do 3646 IFS=$as_save_IFS 3647 test -z "$as_dir" && as_dir=. 3648 for ac_exec_ext in '' $ac_executable_extensions; do 3649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3650 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3652 break 2 3653 fi 3654done 3655 done 3656IFS=$as_save_IFS 3657 3658fi 3659fi 3660STRIP=$ac_cv_prog_STRIP 3661if test -n "$STRIP"; then 3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3663$as_echo "$STRIP" >&6; } 3664else 3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3666$as_echo "no" >&6; } 3667fi 3668 3669 3670fi 3671if test -z "$ac_cv_prog_STRIP"; then 3672 ac_ct_STRIP=$STRIP 3673 # Extract the first word of "strip", so it can be a program name with args. 3674set dummy strip; ac_word=$2 3675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3676$as_echo_n "checking for $ac_word... " >&6; } 3677if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3678 $as_echo_n "(cached) " >&6 3679else 3680 if test -n "$ac_ct_STRIP"; then 3681 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3682else 3683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3684for as_dir in $PATH 3685do 3686 IFS=$as_save_IFS 3687 test -z "$as_dir" && as_dir=. 3688 for ac_exec_ext in '' $ac_executable_extensions; do 3689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3690 ac_cv_prog_ac_ct_STRIP="strip" 3691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3692 break 2 3693 fi 3694done 3695 done 3696IFS=$as_save_IFS 3697 3698fi 3699fi 3700ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3701if test -n "$ac_ct_STRIP"; then 3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3703$as_echo "$ac_ct_STRIP" >&6; } 3704else 3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3706$as_echo "no" >&6; } 3707fi 3708 3709 if test "x$ac_ct_STRIP" = x; then 3710 STRIP=":" 3711 else 3712 case $cross_compiling:$ac_tool_warned in 3713yes:) 3714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3716ac_tool_warned=yes ;; 3717esac 3718 STRIP=$ac_ct_STRIP 3719 fi 3720else 3721 STRIP="$ac_cv_prog_STRIP" 3722fi 3723 3724fi 3725INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3726 3727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3728$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3729if test -z "$MKDIR_P"; then 3730 if ${ac_cv_path_mkdir+:} false; then : 3731 $as_echo_n "(cached) " >&6 3732else 3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3734for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3735do 3736 IFS=$as_save_IFS 3737 test -z "$as_dir" && as_dir=. 3738 for ac_prog in mkdir gmkdir; do 3739 for ac_exec_ext in '' $ac_executable_extensions; do 3740 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3741 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3742 'mkdir (GNU coreutils) '* | \ 3743 'mkdir (coreutils) '* | \ 3744 'mkdir (fileutils) '4.1*) 3745 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3746 break 3;; 3747 esac 3748 done 3749 done 3750 done 3751IFS=$as_save_IFS 3752 3753fi 3754 3755 test -d ./--version && rmdir ./--version 3756 if test "${ac_cv_path_mkdir+set}" = set; then 3757 MKDIR_P="$ac_cv_path_mkdir -p" 3758 else 3759 # As a last resort, use the slow shell script. Don't cache a 3760 # value for MKDIR_P within a source directory, because that will 3761 # break other packages using the cache if that directory is 3762 # removed, or if the value is a relative name. 3763 MKDIR_P="$ac_install_sh -d" 3764 fi 3765fi 3766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3767$as_echo "$MKDIR_P" >&6; } 3768 3769mkdir_p="$MKDIR_P" 3770case $mkdir_p in 3771 [\\/$]* | ?:[\\/]*) ;; 3772 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3773esac 3774 3775for ac_prog in gawk mawk nawk awk 3776do 3777 # Extract the first word of "$ac_prog", so it can be a program name with args. 3778set dummy $ac_prog; ac_word=$2 3779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3780$as_echo_n "checking for $ac_word... " >&6; } 3781if ${ac_cv_prog_AWK+:} false; then : 3782 $as_echo_n "(cached) " >&6 3783else 3784 if test -n "$AWK"; then 3785 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3786else 3787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3788for as_dir in $PATH 3789do 3790 IFS=$as_save_IFS 3791 test -z "$as_dir" && as_dir=. 3792 for ac_exec_ext in '' $ac_executable_extensions; do 3793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3794 ac_cv_prog_AWK="$ac_prog" 3795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3796 break 2 3797 fi 3798done 3799 done 3800IFS=$as_save_IFS 3801 3802fi 3803fi 3804AWK=$ac_cv_prog_AWK 3805if test -n "$AWK"; then 3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3807$as_echo "$AWK" >&6; } 3808else 3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3810$as_echo "no" >&6; } 3811fi 3812 3813 3814 test -n "$AWK" && break 3815done 3816 3817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3818$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3819set x ${MAKE-make} 3820ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3821if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3822 $as_echo_n "(cached) " >&6 3823else 3824 cat >conftest.make <<\_ACEOF 3825SHELL = /bin/sh 3826all: 3827 @echo '@@@%%%=$(MAKE)=@@@%%%' 3828_ACEOF 3829# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3830case `${MAKE-make} -f conftest.make 2>/dev/null` in 3831 *@@@%%%=?*=@@@%%%*) 3832 eval ac_cv_prog_make_${ac_make}_set=yes;; 3833 *) 3834 eval ac_cv_prog_make_${ac_make}_set=no;; 3835esac 3836rm -f conftest.make 3837fi 3838if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3840$as_echo "yes" >&6; } 3841 SET_MAKE= 3842else 3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3844$as_echo "no" >&6; } 3845 SET_MAKE="MAKE=${MAKE-make}" 3846fi 3847 3848rm -rf .tst 2>/dev/null 3849mkdir .tst 2>/dev/null 3850if test -d .tst; then 3851 am__leading_dot=. 3852else 3853 am__leading_dot=_ 3854fi 3855rmdir .tst 2>/dev/null 3856 3857DEPDIR="${am__leading_dot}deps" 3858 3859ac_config_commands="$ac_config_commands depfiles" 3860 3861 3862am_make=${MAKE-make} 3863cat > confinc << 'END' 3864am__doit: 3865 @echo this is the am__doit target 3866.PHONY: am__doit 3867END 3868# If we don't find an include directive, just comment out the code. 3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3870$as_echo_n "checking for style of include used by $am_make... " >&6; } 3871am__include="#" 3872am__quote= 3873_am_result=none 3874# First try GNU make style include. 3875echo "include confinc" > confmf 3876# Ignore all kinds of additional output from `make'. 3877case `$am_make -s -f confmf 2> /dev/null` in #( 3878*the\ am__doit\ target*) 3879 am__include=include 3880 am__quote= 3881 _am_result=GNU 3882 ;; 3883esac 3884# Now try BSD make style include. 3885if test "$am__include" = "#"; then 3886 echo '.include "confinc"' > confmf 3887 case `$am_make -s -f confmf 2> /dev/null` in #( 3888 *the\ am__doit\ target*) 3889 am__include=.include 3890 am__quote="\"" 3891 _am_result=BSD 3892 ;; 3893 esac 3894fi 3895 3896 3897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3898$as_echo "$_am_result" >&6; } 3899rm -f confinc confmf 3900 3901# Check whether --enable-dependency-tracking was given. 3902if test "${enable_dependency_tracking+set}" = set; then : 3903 enableval=$enable_dependency_tracking; 3904fi 3905 3906if test "x$enable_dependency_tracking" != xno; then 3907 am_depcomp="$ac_aux_dir/depcomp" 3908 AMDEPBACKSLASH='\' 3909fi 3910 if test "x$enable_dependency_tracking" != xno; then 3911 AMDEP_TRUE= 3912 AMDEP_FALSE='#' 3913else 3914 AMDEP_TRUE='#' 3915 AMDEP_FALSE= 3916fi 3917 3918 3919if test "`cd $srcdir && pwd`" != "`pwd`"; then 3920 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3921 # is not polluted with repeated "-I." 3922 am__isrc=' -I$(srcdir)' 3923 # test to see if srcdir already configured 3924 if test -f $srcdir/config.status; then 3925 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3926 fi 3927fi 3928 3929# test whether we have cygpath 3930if test -z "$CYGPATH_W"; then 3931 if (cygpath --version) >/dev/null 2>/dev/null; then 3932 CYGPATH_W='cygpath -w' 3933 else 3934 CYGPATH_W=echo 3935 fi 3936fi 3937 3938 3939# Define the identity of the package. 3940 PACKAGE='lndir' 3941 VERSION='1.0.3' 3942 3943 3944cat >>confdefs.h <<_ACEOF 3945#define PACKAGE "$PACKAGE" 3946_ACEOF 3947 3948 3949cat >>confdefs.h <<_ACEOF 3950#define VERSION "$VERSION" 3951_ACEOF 3952 3953# Some tools Automake needs. 3954 3955ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3956 3957 3958AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3959 3960 3961AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3962 3963 3964AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3965 3966 3967MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3968 3969# We need awk for the "check" target. The system "awk" is bad on 3970# some platforms. 3971# Always define AMTAR for backward compatibility. 3972 3973AMTAR=${AMTAR-"${am_missing_run}tar"} 3974 3975am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3976 3977 3978 3979 3980depcc="$CC" am_compiler_list= 3981 3982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3983$as_echo_n "checking dependency style of $depcc... " >&6; } 3984if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3985 $as_echo_n "(cached) " >&6 3986else 3987 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3988 # We make a subdir and do the tests there. Otherwise we can end up 3989 # making bogus files that we don't know about and never remove. For 3990 # instance it was reported that on HP-UX the gcc test will end up 3991 # making a dummy file named `D' -- because `-MD' means `put the output 3992 # in D'. 3993 mkdir conftest.dir 3994 # Copy depcomp to subdir because otherwise we won't find it if we're 3995 # using a relative directory. 3996 cp "$am_depcomp" conftest.dir 3997 cd conftest.dir 3998 # We will build objects and dependencies in a subdirectory because 3999 # it helps to detect inapplicable dependency modes. For instance 4000 # both Tru64's cc and ICC support -MD to output dependencies as a 4001 # side effect of compilation, but ICC will put the dependencies in 4002 # the current directory while Tru64 will put them in the object 4003 # directory. 4004 mkdir sub 4005 4006 am_cv_CC_dependencies_compiler_type=none 4007 if test "$am_compiler_list" = ""; then 4008 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4009 fi 4010 am__universal=false 4011 case " $depcc " in #( 4012 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4013 esac 4014 4015 for depmode in $am_compiler_list; do 4016 # Setup a source with many dependencies, because some compilers 4017 # like to wrap large dependency lists on column 80 (with \), and 4018 # we should not choose a depcomp mode which is confused by this. 4019 # 4020 # We need to recreate these files for each test, as the compiler may 4021 # overwrite some of them when testing with obscure command lines. 4022 # This happens at least with the AIX C compiler. 4023 : > sub/conftest.c 4024 for i in 1 2 3 4 5 6; do 4025 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4026 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4027 # Solaris 8's {/usr,}/bin/sh. 4028 touch sub/conftst$i.h 4029 done 4030 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4031 4032 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4033 # mode. It turns out that the SunPro C++ compiler does not properly 4034 # handle `-M -o', and we need to detect this. Also, some Intel 4035 # versions had trouble with output in subdirs 4036 am__obj=sub/conftest.${OBJEXT-o} 4037 am__minus_obj="-o $am__obj" 4038 case $depmode in 4039 gcc) 4040 # This depmode causes a compiler race in universal mode. 4041 test "$am__universal" = false || continue 4042 ;; 4043 nosideeffect) 4044 # after this tag, mechanisms are not by side-effect, so they'll 4045 # only be used when explicitly requested 4046 if test "x$enable_dependency_tracking" = xyes; then 4047 continue 4048 else 4049 break 4050 fi 4051 ;; 4052 msvisualcpp | msvcmsys) 4053 # This compiler won't grok `-c -o', but also, the minuso test has 4054 # not run yet. These depmodes are late enough in the game, and 4055 # so weak that their functioning should not be impacted. 4056 am__obj=conftest.${OBJEXT-o} 4057 am__minus_obj= 4058 ;; 4059 none) break ;; 4060 esac 4061 if depmode=$depmode \ 4062 source=sub/conftest.c object=$am__obj \ 4063 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4064 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4065 >/dev/null 2>conftest.err && 4066 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4067 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4068 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4069 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4070 # icc doesn't choke on unknown options, it will just issue warnings 4071 # or remarks (even with -Werror). So we grep stderr for any message 4072 # that says an option was ignored or not supported. 4073 # When given -MP, icc 7.0 and 7.1 complain thusly: 4074 # icc: Command line warning: ignoring option '-M'; no argument required 4075 # The diagnosis changed in icc 8.0: 4076 # icc: Command line remark: option '-MP' not supported 4077 if (grep 'ignoring option' conftest.err || 4078 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4079 am_cv_CC_dependencies_compiler_type=$depmode 4080 break 4081 fi 4082 fi 4083 done 4084 4085 cd .. 4086 rm -rf conftest.dir 4087else 4088 am_cv_CC_dependencies_compiler_type=none 4089fi 4090 4091fi 4092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4093$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4094CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4095 4096 if 4097 test "x$enable_dependency_tracking" != xno \ 4098 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4099 am__fastdepCC_TRUE= 4100 am__fastdepCC_FALSE='#' 4101else 4102 am__fastdepCC_TRUE='#' 4103 am__fastdepCC_FALSE= 4104fi 4105 4106 4107 4108 4109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4110$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4111 # Check whether --enable-maintainer-mode was given. 4112if test "${enable_maintainer_mode+set}" = set; then : 4113 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4114else 4115 USE_MAINTAINER_MODE=no 4116fi 4117 4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4119$as_echo "$USE_MAINTAINER_MODE" >&6; } 4120 if test $USE_MAINTAINER_MODE = yes; then 4121 MAINTAINER_MODE_TRUE= 4122 MAINTAINER_MODE_FALSE='#' 4123else 4124 MAINTAINER_MODE_TRUE='#' 4125 MAINTAINER_MODE_FALSE= 4126fi 4127 4128 MAINT=$MAINTAINER_MODE_TRUE 4129 4130 4131 4132# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4145$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4146if ${ac_cv_prog_cc_c99+:} false; then : 4147 $as_echo_n "(cached) " >&6 4148else 4149 ac_cv_prog_cc_c99=no 4150ac_save_CC=$CC 4151cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4152/* end confdefs.h. */ 4153#include <stdarg.h> 4154#include <stdbool.h> 4155#include <stdlib.h> 4156#include <wchar.h> 4157#include <stdio.h> 4158 4159// Check varargs macros. These examples are taken from C99 6.10.3.5. 4160#define debug(...) fprintf (stderr, __VA_ARGS__) 4161#define showlist(...) puts (#__VA_ARGS__) 4162#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4163static void 4164test_varargs_macros (void) 4165{ 4166 int x = 1234; 4167 int y = 5678; 4168 debug ("Flag"); 4169 debug ("X = %d\n", x); 4170 showlist (The first, second, and third items.); 4171 report (x>y, "x is %d but y is %d", x, y); 4172} 4173 4174// Check long long types. 4175#define BIG64 18446744073709551615ull 4176#define BIG32 4294967295ul 4177#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4178#if !BIG_OK 4179 your preprocessor is broken; 4180#endif 4181#if BIG_OK 4182#else 4183 your preprocessor is broken; 4184#endif 4185static long long int bignum = -9223372036854775807LL; 4186static unsigned long long int ubignum = BIG64; 4187 4188struct incomplete_array 4189{ 4190 int datasize; 4191 double data[]; 4192}; 4193 4194struct named_init { 4195 int number; 4196 const wchar_t *name; 4197 double average; 4198}; 4199 4200typedef const char *ccp; 4201 4202static inline int 4203test_restrict (ccp restrict text) 4204{ 4205 // See if C++-style comments work. 4206 // Iterate through items via the restricted pointer. 4207 // Also check for declarations in for loops. 4208 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4209 continue; 4210 return 0; 4211} 4212 4213// Check varargs and va_copy. 4214static void 4215test_varargs (const char *format, ...) 4216{ 4217 va_list args; 4218 va_start (args, format); 4219 va_list args_copy; 4220 va_copy (args_copy, args); 4221 4222 const char *str; 4223 int number; 4224 float fnumber; 4225 4226 while (*format) 4227 { 4228 switch (*format++) 4229 { 4230 case 's': // string 4231 str = va_arg (args_copy, const char *); 4232 break; 4233 case 'd': // int 4234 number = va_arg (args_copy, int); 4235 break; 4236 case 'f': // float 4237 fnumber = va_arg (args_copy, double); 4238 break; 4239 default: 4240 break; 4241 } 4242 } 4243 va_end (args_copy); 4244 va_end (args); 4245} 4246 4247int 4248main () 4249{ 4250 4251 // Check bool. 4252 _Bool success = false; 4253 4254 // Check restrict. 4255 if (test_restrict ("String literal") == 0) 4256 success = true; 4257 char *restrict newvar = "Another string"; 4258 4259 // Check varargs. 4260 test_varargs ("s, d' f .", "string", 65, 34.234); 4261 test_varargs_macros (); 4262 4263 // Check flexible array members. 4264 struct incomplete_array *ia = 4265 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4266 ia->datasize = 10; 4267 for (int i = 0; i < ia->datasize; ++i) 4268 ia->data[i] = i * 1.234; 4269 4270 // Check named initializers. 4271 struct named_init ni = { 4272 .number = 34, 4273 .name = L"Test wide string", 4274 .average = 543.34343, 4275 }; 4276 4277 ni.number = 58; 4278 4279 int dynamic_array[ni.number]; 4280 dynamic_array[ni.number - 1] = 543; 4281 4282 // work around unused variable warnings 4283 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4284 || dynamic_array[ni.number - 1] != 543); 4285 4286 ; 4287 return 0; 4288} 4289_ACEOF 4290for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4291do 4292 CC="$ac_save_CC $ac_arg" 4293 if ac_fn_c_try_compile "$LINENO"; then : 4294 ac_cv_prog_cc_c99=$ac_arg 4295fi 4296rm -f core conftest.err conftest.$ac_objext 4297 test "x$ac_cv_prog_cc_c99" != "xno" && break 4298done 4299rm -f conftest.$ac_ext 4300CC=$ac_save_CC 4301 4302fi 4303# AC_CACHE_VAL 4304case "x$ac_cv_prog_cc_c99" in 4305 x) 4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4307$as_echo "none needed" >&6; } ;; 4308 xno) 4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4310$as_echo "unsupported" >&6; } ;; 4311 *) 4312 CC="$CC $ac_cv_prog_cc_c99" 4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4314$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4315esac 4316if test "x$ac_cv_prog_cc_c99" != xno; then : 4317 4318fi 4319 4320 4321 4322 4323 4324 4325ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4326if test "x$ac_cv_have_decl___clang__" = xyes; then : 4327 CLANGCC="yes" 4328else 4329 CLANGCC="no" 4330fi 4331 4332ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4333if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4334 INTELCC="yes" 4335else 4336 INTELCC="no" 4337fi 4338 4339ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4340if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4341 SUNCC="yes" 4342else 4343 SUNCC="no" 4344fi 4345 4346 4347 4348 4349if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4350 if test -n "$ac_tool_prefix"; then 4351 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4352set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4354$as_echo_n "checking for $ac_word... " >&6; } 4355if ${ac_cv_path_PKG_CONFIG+:} false; then : 4356 $as_echo_n "(cached) " >&6 4357else 4358 case $PKG_CONFIG in 4359 [\\/]* | ?:[\\/]*) 4360 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4361 ;; 4362 *) 4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4364for as_dir in $PATH 4365do 4366 IFS=$as_save_IFS 4367 test -z "$as_dir" && as_dir=. 4368 for ac_exec_ext in '' $ac_executable_extensions; do 4369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4370 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4372 break 2 4373 fi 4374done 4375 done 4376IFS=$as_save_IFS 4377 4378 ;; 4379esac 4380fi 4381PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4382if test -n "$PKG_CONFIG"; then 4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4384$as_echo "$PKG_CONFIG" >&6; } 4385else 4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4387$as_echo "no" >&6; } 4388fi 4389 4390 4391fi 4392if test -z "$ac_cv_path_PKG_CONFIG"; then 4393 ac_pt_PKG_CONFIG=$PKG_CONFIG 4394 # Extract the first word of "pkg-config", so it can be a program name with args. 4395set dummy pkg-config; ac_word=$2 4396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4397$as_echo_n "checking for $ac_word... " >&6; } 4398if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4399 $as_echo_n "(cached) " >&6 4400else 4401 case $ac_pt_PKG_CONFIG in 4402 [\\/]* | ?:[\\/]*) 4403 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4404 ;; 4405 *) 4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4407for as_dir in $PATH 4408do 4409 IFS=$as_save_IFS 4410 test -z "$as_dir" && as_dir=. 4411 for ac_exec_ext in '' $ac_executable_extensions; do 4412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4413 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4415 break 2 4416 fi 4417done 4418 done 4419IFS=$as_save_IFS 4420 4421 ;; 4422esac 4423fi 4424ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4425if test -n "$ac_pt_PKG_CONFIG"; then 4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4427$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4428else 4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4430$as_echo "no" >&6; } 4431fi 4432 4433 if test "x$ac_pt_PKG_CONFIG" = x; then 4434 PKG_CONFIG="" 4435 else 4436 case $cross_compiling:$ac_tool_warned in 4437yes:) 4438{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4440ac_tool_warned=yes ;; 4441esac 4442 PKG_CONFIG=$ac_pt_PKG_CONFIG 4443 fi 4444else 4445 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4446fi 4447 4448fi 4449if test -n "$PKG_CONFIG"; then 4450 _pkg_min_version=0.9.0 4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4452$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4453 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4455$as_echo "yes" >&6; } 4456 else 4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4458$as_echo "no" >&6; } 4459 PKG_CONFIG="" 4460 fi 4461 4462fi 4463# Make sure we can run config.sub. 4464$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4465 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4466 4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4468$as_echo_n "checking build system type... " >&6; } 4469if ${ac_cv_build+:} false; then : 4470 $as_echo_n "(cached) " >&6 4471else 4472 ac_build_alias=$build_alias 4473test "x$ac_build_alias" = x && 4474 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4475test "x$ac_build_alias" = x && 4476 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4477ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4478 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4479 4480fi 4481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4482$as_echo "$ac_cv_build" >&6; } 4483case $ac_cv_build in 4484*-*-*) ;; 4485*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4486esac 4487build=$ac_cv_build 4488ac_save_IFS=$IFS; IFS='-' 4489set x $ac_cv_build 4490shift 4491build_cpu=$1 4492build_vendor=$2 4493shift; shift 4494# Remember, the first character of IFS is used to create $*, 4495# except with old shells: 4496build_os=$* 4497IFS=$ac_save_IFS 4498case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4499 4500 4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4502$as_echo_n "checking host system type... " >&6; } 4503if ${ac_cv_host+:} false; then : 4504 $as_echo_n "(cached) " >&6 4505else 4506 if test "x$host_alias" = x; then 4507 ac_cv_host=$ac_cv_build 4508else 4509 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4510 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4511fi 4512 4513fi 4514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4515$as_echo "$ac_cv_host" >&6; } 4516case $ac_cv_host in 4517*-*-*) ;; 4518*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4519esac 4520host=$ac_cv_host 4521ac_save_IFS=$IFS; IFS='-' 4522set x $ac_cv_host 4523shift 4524host_cpu=$1 4525host_vendor=$2 4526shift; shift 4527# Remember, the first character of IFS is used to create $*, 4528# except with old shells: 4529host_os=$* 4530IFS=$ac_save_IFS 4531case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4532 4533 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4535$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4536if ${ac_cv_path_SED+:} false; then : 4537 $as_echo_n "(cached) " >&6 4538else 4539 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4540 for ac_i in 1 2 3 4 5 6 7; do 4541 ac_script="$ac_script$as_nl$ac_script" 4542 done 4543 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4544 { ac_script=; unset ac_script;} 4545 if test -z "$SED"; then 4546 ac_path_SED_found=false 4547 # Loop through the user's path and test for each of PROGNAME-LIST 4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4549for as_dir in $PATH 4550do 4551 IFS=$as_save_IFS 4552 test -z "$as_dir" && as_dir=. 4553 for ac_prog in sed gsed; do 4554 for ac_exec_ext in '' $ac_executable_extensions; do 4555 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4556 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4557# Check for GNU ac_path_SED and select it if it is found. 4558 # Check for GNU $ac_path_SED 4559case `"$ac_path_SED" --version 2>&1` in 4560*GNU*) 4561 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4562*) 4563 ac_count=0 4564 $as_echo_n 0123456789 >"conftest.in" 4565 while : 4566 do 4567 cat "conftest.in" "conftest.in" >"conftest.tmp" 4568 mv "conftest.tmp" "conftest.in" 4569 cp "conftest.in" "conftest.nl" 4570 $as_echo '' >> "conftest.nl" 4571 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4572 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4573 as_fn_arith $ac_count + 1 && ac_count=$as_val 4574 if test $ac_count -gt ${ac_path_SED_max-0}; then 4575 # Best one so far, save it but keep looking for a better one 4576 ac_cv_path_SED="$ac_path_SED" 4577 ac_path_SED_max=$ac_count 4578 fi 4579 # 10*(2^10) chars as input seems more than enough 4580 test $ac_count -gt 10 && break 4581 done 4582 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4583esac 4584 4585 $ac_path_SED_found && break 3 4586 done 4587 done 4588 done 4589IFS=$as_save_IFS 4590 if test -z "$ac_cv_path_SED"; then 4591 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4592 fi 4593else 4594 ac_cv_path_SED=$SED 4595fi 4596 4597fi 4598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4599$as_echo "$ac_cv_path_SED" >&6; } 4600 SED="$ac_cv_path_SED" 4601 rm -f conftest.sed 4602 4603 4604 4605 4606 4607 4608# Check whether --enable-selective-werror was given. 4609if test "${enable_selective_werror+set}" = set; then : 4610 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4611else 4612 SELECTIVE_WERROR=yes 4613fi 4614 4615 4616 4617 4618 4619# -v is too short to test reliably with XORG_TESTSET_CFLAG 4620if test "x$SUNCC" = "xyes"; then 4621 BASE_CFLAGS="-v" 4622else 4623 BASE_CFLAGS="" 4624fi 4625 4626# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638xorg_testset_save_CFLAGS="$CFLAGS" 4639 4640if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 4643$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 4644if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 4645 $as_echo_n "(cached) " >&6 4646else 4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4648/* end confdefs.h. */ 4649int i; 4650_ACEOF 4651if ac_fn_c_try_compile "$LINENO"; then : 4652 xorg_cv_compiler_flag_unknown_warning_option=yes 4653else 4654 xorg_cv_compiler_flag_unknown_warning_option=no 4655fi 4656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4657fi 4658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 4659$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 4660 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 4661 CFLAGS="$xorg_testset_save_CFLAGS" 4662fi 4663 4664if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4665 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4667 fi 4668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 4670$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 4671if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 4672 $as_echo_n "(cached) " >&6 4673else 4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4675/* end confdefs.h. */ 4676int i; 4677_ACEOF 4678if ac_fn_c_try_compile "$LINENO"; then : 4679 xorg_cv_compiler_flag_unused_command_line_argument=yes 4680else 4681 xorg_cv_compiler_flag_unused_command_line_argument=no 4682fi 4683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4684fi 4685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 4686$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 4687 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 4688 CFLAGS="$xorg_testset_save_CFLAGS" 4689fi 4690 4691found="no" 4692 4693 if test $found = "no" ; then 4694 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4696 fi 4697 4698 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4700 fi 4701 4702 CFLAGS="$CFLAGS -Wall" 4703 4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4705$as_echo_n "checking if $CC supports -Wall... " >&6; } 4706 cacheid=`$as_echo xorg_cv_cc_flag_-Wall` 4707 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4708 $as_echo_n "(cached) " >&6 4709else 4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4711/* end confdefs.h. */ 4712int i; 4713int 4714main () 4715{ 4716 4717 ; 4718 return 0; 4719} 4720_ACEOF 4721if ac_fn_c_try_link "$LINENO"; then : 4722 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 4723else 4724 eval `$as_echo "$cacheid" | $as_tr_sh`=no 4725fi 4726rm -f core conftest.err conftest.$ac_objext \ 4727 conftest$ac_exeext conftest.$ac_ext 4728fi 4729 4730 4731 CFLAGS="$xorg_testset_save_CFLAGS" 4732 4733 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4735$as_echo "$supported" >&6; } 4736 if test "$supported" = "yes" ; then 4737 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4738 found="yes" 4739 fi 4740 fi 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754xorg_testset_save_CFLAGS="$CFLAGS" 4755 4756if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 4759$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 4760if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 4761 $as_echo_n "(cached) " >&6 4762else 4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4764/* end confdefs.h. */ 4765int i; 4766_ACEOF 4767if ac_fn_c_try_compile "$LINENO"; then : 4768 xorg_cv_compiler_flag_unknown_warning_option=yes 4769else 4770 xorg_cv_compiler_flag_unknown_warning_option=no 4771fi 4772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4773fi 4774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 4775$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 4776 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 4777 CFLAGS="$xorg_testset_save_CFLAGS" 4778fi 4779 4780if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4781 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4783 fi 4784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 4786$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 4787if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 4788 $as_echo_n "(cached) " >&6 4789else 4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4791/* end confdefs.h. */ 4792int i; 4793_ACEOF 4794if ac_fn_c_try_compile "$LINENO"; then : 4795 xorg_cv_compiler_flag_unused_command_line_argument=yes 4796else 4797 xorg_cv_compiler_flag_unused_command_line_argument=no 4798fi 4799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4800fi 4801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 4802$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 4803 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 4804 CFLAGS="$xorg_testset_save_CFLAGS" 4805fi 4806 4807found="no" 4808 4809 if test $found = "no" ; then 4810 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4812 fi 4813 4814 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4816 fi 4817 4818 CFLAGS="$CFLAGS -Wpointer-arith" 4819 4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4821$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4822 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith` 4823 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4824 $as_echo_n "(cached) " >&6 4825else 4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4827/* end confdefs.h. */ 4828int i; 4829int 4830main () 4831{ 4832 4833 ; 4834 return 0; 4835} 4836_ACEOF 4837if ac_fn_c_try_link "$LINENO"; then : 4838 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 4839else 4840 eval `$as_echo "$cacheid" | $as_tr_sh`=no 4841fi 4842rm -f core conftest.err conftest.$ac_objext \ 4843 conftest$ac_exeext conftest.$ac_ext 4844fi 4845 4846 4847 CFLAGS="$xorg_testset_save_CFLAGS" 4848 4849 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4851$as_echo "$supported" >&6; } 4852 if test "$supported" = "yes" ; then 4853 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4854 found="yes" 4855 fi 4856 fi 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870xorg_testset_save_CFLAGS="$CFLAGS" 4871 4872if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 4875$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 4876if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 4877 $as_echo_n "(cached) " >&6 4878else 4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4880/* end confdefs.h. */ 4881int i; 4882_ACEOF 4883if ac_fn_c_try_compile "$LINENO"; then : 4884 xorg_cv_compiler_flag_unknown_warning_option=yes 4885else 4886 xorg_cv_compiler_flag_unknown_warning_option=no 4887fi 4888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4889fi 4890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 4891$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 4892 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 4893 CFLAGS="$xorg_testset_save_CFLAGS" 4894fi 4895 4896if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 4897 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4899 fi 4900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 4902$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 4903if ${xorg_cv_compiler_flag_unused_command_line_argument+:} 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_compiler_flag_unused_command_line_argument=yes 4912else 4913 xorg_cv_compiler_flag_unused_command_line_argument=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_compiler_flag_unused_command_line_argument" >&5 4918$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 4919 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 4920 CFLAGS="$xorg_testset_save_CFLAGS" 4921fi 4922 4923found="no" 4924 4925 if test $found = "no" ; then 4926 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4928 fi 4929 4930 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4932 fi 4933 4934 CFLAGS="$CFLAGS -Wmissing-declarations" 4935 4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4937$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 4938 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations` 4939 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 4940 $as_echo_n "(cached) " >&6 4941else 4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4943/* end confdefs.h. */ 4944int i; 4945int 4946main () 4947{ 4948 4949 ; 4950 return 0; 4951} 4952_ACEOF 4953if ac_fn_c_try_link "$LINENO"; then : 4954 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 4955else 4956 eval `$as_echo "$cacheid" | $as_tr_sh`=no 4957fi 4958rm -f core conftest.err conftest.$ac_objext \ 4959 conftest$ac_exeext conftest.$ac_ext 4960fi 4961 4962 4963 CFLAGS="$xorg_testset_save_CFLAGS" 4964 4965 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4967$as_echo "$supported" >&6; } 4968 if test "$supported" = "yes" ; then 4969 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4970 found="yes" 4971 fi 4972 fi 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986xorg_testset_save_CFLAGS="$CFLAGS" 4987 4988if test "x$xorg_testset_unknown_warning_option" = "x" ; then 4989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 4991$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 4992if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 4993 $as_echo_n "(cached) " >&6 4994else 4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4996/* end confdefs.h. */ 4997int i; 4998_ACEOF 4999if ac_fn_c_try_compile "$LINENO"; then : 5000 xorg_cv_compiler_flag_unknown_warning_option=yes 5001else 5002 xorg_cv_compiler_flag_unknown_warning_option=no 5003fi 5004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5005fi 5006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 5007$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 5008 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 5009 CFLAGS="$xorg_testset_save_CFLAGS" 5010fi 5011 5012if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5013 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5015 fi 5016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 5018$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 5019if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 5020 $as_echo_n "(cached) " >&6 5021else 5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5023/* end confdefs.h. */ 5024int i; 5025_ACEOF 5026if ac_fn_c_try_compile "$LINENO"; then : 5027 xorg_cv_compiler_flag_unused_command_line_argument=yes 5028else 5029 xorg_cv_compiler_flag_unused_command_line_argument=no 5030fi 5031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5032fi 5033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 5034$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 5035 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 5036 CFLAGS="$xorg_testset_save_CFLAGS" 5037fi 5038 5039found="no" 5040 5041 if test $found = "no" ; then 5042 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5044 fi 5045 5046 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5048 fi 5049 5050 CFLAGS="$CFLAGS -Wformat=2" 5051 5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5053$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5054 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2` 5055 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5056 $as_echo_n "(cached) " >&6 5057else 5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5059/* end confdefs.h. */ 5060int i; 5061int 5062main () 5063{ 5064 5065 ; 5066 return 0; 5067} 5068_ACEOF 5069if ac_fn_c_try_link "$LINENO"; then : 5070 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5071else 5072 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5073fi 5074rm -f core conftest.err conftest.$ac_objext \ 5075 conftest$ac_exeext conftest.$ac_ext 5076fi 5077 5078 5079 CFLAGS="$xorg_testset_save_CFLAGS" 5080 5081 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5083$as_echo "$supported" >&6; } 5084 if test "$supported" = "yes" ; then 5085 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5086 found="yes" 5087 fi 5088 fi 5089 5090 if test $found = "no" ; then 5091 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5093 fi 5094 5095 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5097 fi 5098 5099 CFLAGS="$CFLAGS -Wformat" 5100 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5102$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5103 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat` 5104 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5105 $as_echo_n "(cached) " >&6 5106else 5107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5108/* end confdefs.h. */ 5109int i; 5110int 5111main () 5112{ 5113 5114 ; 5115 return 0; 5116} 5117_ACEOF 5118if ac_fn_c_try_link "$LINENO"; then : 5119 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5120else 5121 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5122fi 5123rm -f core conftest.err conftest.$ac_objext \ 5124 conftest$ac_exeext conftest.$ac_ext 5125fi 5126 5127 5128 CFLAGS="$xorg_testset_save_CFLAGS" 5129 5130 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5132$as_echo "$supported" >&6; } 5133 if test "$supported" = "yes" ; then 5134 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5135 found="yes" 5136 fi 5137 fi 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153xorg_testset_save_CFLAGS="$CFLAGS" 5154 5155if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 5158$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 5159if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 5160 $as_echo_n "(cached) " >&6 5161else 5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5163/* end confdefs.h. */ 5164int i; 5165_ACEOF 5166if ac_fn_c_try_compile "$LINENO"; then : 5167 xorg_cv_compiler_flag_unknown_warning_option=yes 5168else 5169 xorg_cv_compiler_flag_unknown_warning_option=no 5170fi 5171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5172fi 5173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 5174$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 5175 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 5176 CFLAGS="$xorg_testset_save_CFLAGS" 5177fi 5178 5179if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5180 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5182 fi 5183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 5185$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 5186if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 5187 $as_echo_n "(cached) " >&6 5188else 5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5190/* end confdefs.h. */ 5191int i; 5192_ACEOF 5193if ac_fn_c_try_compile "$LINENO"; then : 5194 xorg_cv_compiler_flag_unused_command_line_argument=yes 5195else 5196 xorg_cv_compiler_flag_unused_command_line_argument=no 5197fi 5198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5199fi 5200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 5201$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 5202 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 5203 CFLAGS="$xorg_testset_save_CFLAGS" 5204fi 5205 5206found="no" 5207 5208 if test $found = "no" ; then 5209 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5211 fi 5212 5213 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5215 fi 5216 5217 CFLAGS="$CFLAGS -Wstrict-prototypes" 5218 5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5220$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5221 cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes` 5222 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5223 $as_echo_n "(cached) " >&6 5224else 5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5226/* end confdefs.h. */ 5227int i; 5228int 5229main () 5230{ 5231 5232 ; 5233 return 0; 5234} 5235_ACEOF 5236if ac_fn_c_try_link "$LINENO"; then : 5237 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5238else 5239 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5240fi 5241rm -f core conftest.err conftest.$ac_objext \ 5242 conftest$ac_exeext conftest.$ac_ext 5243fi 5244 5245 5246 CFLAGS="$xorg_testset_save_CFLAGS" 5247 5248 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5250$as_echo "$supported" >&6; } 5251 if test "$supported" = "yes" ; then 5252 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5253 found="yes" 5254 fi 5255 fi 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269xorg_testset_save_CFLAGS="$CFLAGS" 5270 5271if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 5274$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 5275if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 5276 $as_echo_n "(cached) " >&6 5277else 5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5279/* end confdefs.h. */ 5280int i; 5281_ACEOF 5282if ac_fn_c_try_compile "$LINENO"; then : 5283 xorg_cv_compiler_flag_unknown_warning_option=yes 5284else 5285 xorg_cv_compiler_flag_unknown_warning_option=no 5286fi 5287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5288fi 5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 5290$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 5291 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 5292 CFLAGS="$xorg_testset_save_CFLAGS" 5293fi 5294 5295if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5296 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5298 fi 5299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 5301$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 5302if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 5303 $as_echo_n "(cached) " >&6 5304else 5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5306/* end confdefs.h. */ 5307int i; 5308_ACEOF 5309if ac_fn_c_try_compile "$LINENO"; then : 5310 xorg_cv_compiler_flag_unused_command_line_argument=yes 5311else 5312 xorg_cv_compiler_flag_unused_command_line_argument=no 5313fi 5314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5315fi 5316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 5317$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 5318 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 5319 CFLAGS="$xorg_testset_save_CFLAGS" 5320fi 5321 5322found="no" 5323 5324 if test $found = "no" ; then 5325 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5327 fi 5328 5329 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5331 fi 5332 5333 CFLAGS="$CFLAGS -Wmissing-prototypes" 5334 5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5336$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5337 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes` 5338 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5339 $as_echo_n "(cached) " >&6 5340else 5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5342/* end confdefs.h. */ 5343int i; 5344int 5345main () 5346{ 5347 5348 ; 5349 return 0; 5350} 5351_ACEOF 5352if ac_fn_c_try_link "$LINENO"; then : 5353 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5354else 5355 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5356fi 5357rm -f core conftest.err conftest.$ac_objext \ 5358 conftest$ac_exeext conftest.$ac_ext 5359fi 5360 5361 5362 CFLAGS="$xorg_testset_save_CFLAGS" 5363 5364 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5366$as_echo "$supported" >&6; } 5367 if test "$supported" = "yes" ; then 5368 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5369 found="yes" 5370 fi 5371 fi 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385xorg_testset_save_CFLAGS="$CFLAGS" 5386 5387if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 5390$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 5391if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 5392 $as_echo_n "(cached) " >&6 5393else 5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5395/* end confdefs.h. */ 5396int i; 5397_ACEOF 5398if ac_fn_c_try_compile "$LINENO"; then : 5399 xorg_cv_compiler_flag_unknown_warning_option=yes 5400else 5401 xorg_cv_compiler_flag_unknown_warning_option=no 5402fi 5403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5404fi 5405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 5406$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 5407 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 5408 CFLAGS="$xorg_testset_save_CFLAGS" 5409fi 5410 5411if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5412 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5414 fi 5415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 5417$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 5418if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 5419 $as_echo_n "(cached) " >&6 5420else 5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5422/* end confdefs.h. */ 5423int i; 5424_ACEOF 5425if ac_fn_c_try_compile "$LINENO"; then : 5426 xorg_cv_compiler_flag_unused_command_line_argument=yes 5427else 5428 xorg_cv_compiler_flag_unused_command_line_argument=no 5429fi 5430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5431fi 5432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 5433$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 5434 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 5435 CFLAGS="$xorg_testset_save_CFLAGS" 5436fi 5437 5438found="no" 5439 5440 if test $found = "no" ; then 5441 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5443 fi 5444 5445 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5447 fi 5448 5449 CFLAGS="$CFLAGS -Wnested-externs" 5450 5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5452$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5453 cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs` 5454 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5455 $as_echo_n "(cached) " >&6 5456else 5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5458/* end confdefs.h. */ 5459int i; 5460int 5461main () 5462{ 5463 5464 ; 5465 return 0; 5466} 5467_ACEOF 5468if ac_fn_c_try_link "$LINENO"; then : 5469 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5470else 5471 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5472fi 5473rm -f core conftest.err conftest.$ac_objext \ 5474 conftest$ac_exeext conftest.$ac_ext 5475fi 5476 5477 5478 CFLAGS="$xorg_testset_save_CFLAGS" 5479 5480 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5482$as_echo "$supported" >&6; } 5483 if test "$supported" = "yes" ; then 5484 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5485 found="yes" 5486 fi 5487 fi 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501xorg_testset_save_CFLAGS="$CFLAGS" 5502 5503if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 5506$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 5507if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 5508 $as_echo_n "(cached) " >&6 5509else 5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5511/* end confdefs.h. */ 5512int i; 5513_ACEOF 5514if ac_fn_c_try_compile "$LINENO"; then : 5515 xorg_cv_compiler_flag_unknown_warning_option=yes 5516else 5517 xorg_cv_compiler_flag_unknown_warning_option=no 5518fi 5519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5520fi 5521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 5522$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 5523 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 5524 CFLAGS="$xorg_testset_save_CFLAGS" 5525fi 5526 5527if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5528 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5530 fi 5531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 5533$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 5534if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 5535 $as_echo_n "(cached) " >&6 5536else 5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5538/* end confdefs.h. */ 5539int i; 5540_ACEOF 5541if ac_fn_c_try_compile "$LINENO"; then : 5542 xorg_cv_compiler_flag_unused_command_line_argument=yes 5543else 5544 xorg_cv_compiler_flag_unused_command_line_argument=no 5545fi 5546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5547fi 5548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 5549$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 5550 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 5551 CFLAGS="$xorg_testset_save_CFLAGS" 5552fi 5553 5554found="no" 5555 5556 if test $found = "no" ; then 5557 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5559 fi 5560 5561 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5563 fi 5564 5565 CFLAGS="$CFLAGS -Wbad-function-cast" 5566 5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5568$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5569 cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast` 5570 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5571 $as_echo_n "(cached) " >&6 5572else 5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5574/* end confdefs.h. */ 5575int i; 5576int 5577main () 5578{ 5579 5580 ; 5581 return 0; 5582} 5583_ACEOF 5584if ac_fn_c_try_link "$LINENO"; then : 5585 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5586else 5587 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5588fi 5589rm -f core conftest.err conftest.$ac_objext \ 5590 conftest$ac_exeext conftest.$ac_ext 5591fi 5592 5593 5594 CFLAGS="$xorg_testset_save_CFLAGS" 5595 5596 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5598$as_echo "$supported" >&6; } 5599 if test "$supported" = "yes" ; then 5600 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5601 found="yes" 5602 fi 5603 fi 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617xorg_testset_save_CFLAGS="$CFLAGS" 5618 5619if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 5622$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 5623if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 5624 $as_echo_n "(cached) " >&6 5625else 5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5627/* end confdefs.h. */ 5628int i; 5629_ACEOF 5630if ac_fn_c_try_compile "$LINENO"; then : 5631 xorg_cv_compiler_flag_unknown_warning_option=yes 5632else 5633 xorg_cv_compiler_flag_unknown_warning_option=no 5634fi 5635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5636fi 5637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 5638$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 5639 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 5640 CFLAGS="$xorg_testset_save_CFLAGS" 5641fi 5642 5643if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5644 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5646 fi 5647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 5649$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 5650if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 5651 $as_echo_n "(cached) " >&6 5652else 5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5654/* end confdefs.h. */ 5655int i; 5656_ACEOF 5657if ac_fn_c_try_compile "$LINENO"; then : 5658 xorg_cv_compiler_flag_unused_command_line_argument=yes 5659else 5660 xorg_cv_compiler_flag_unused_command_line_argument=no 5661fi 5662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5663fi 5664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 5665$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 5666 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 5667 CFLAGS="$xorg_testset_save_CFLAGS" 5668fi 5669 5670found="no" 5671 5672 if test $found = "no" ; then 5673 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5675 fi 5676 5677 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5679 fi 5680 5681 CFLAGS="$CFLAGS -Wold-style-definition" 5682 5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5684$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5685 cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition` 5686 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5687 $as_echo_n "(cached) " >&6 5688else 5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5690/* end confdefs.h. */ 5691int i; 5692int 5693main () 5694{ 5695 5696 ; 5697 return 0; 5698} 5699_ACEOF 5700if ac_fn_c_try_link "$LINENO"; then : 5701 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5702else 5703 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5704fi 5705rm -f core conftest.err conftest.$ac_objext \ 5706 conftest$ac_exeext conftest.$ac_ext 5707fi 5708 5709 5710 CFLAGS="$xorg_testset_save_CFLAGS" 5711 5712 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5714$as_echo "$supported" >&6; } 5715 if test "$supported" = "yes" ; then 5716 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5717 found="yes" 5718 fi 5719 fi 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733xorg_testset_save_CFLAGS="$CFLAGS" 5734 5735if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 5738$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 5739if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 5740 $as_echo_n "(cached) " >&6 5741else 5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5743/* end confdefs.h. */ 5744int i; 5745_ACEOF 5746if ac_fn_c_try_compile "$LINENO"; then : 5747 xorg_cv_compiler_flag_unknown_warning_option=yes 5748else 5749 xorg_cv_compiler_flag_unknown_warning_option=no 5750fi 5751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5752fi 5753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 5754$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 5755 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 5756 CFLAGS="$xorg_testset_save_CFLAGS" 5757fi 5758 5759if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5760 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5762 fi 5763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 5765$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 5766if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 5767 $as_echo_n "(cached) " >&6 5768else 5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5770/* end confdefs.h. */ 5771int i; 5772_ACEOF 5773if ac_fn_c_try_compile "$LINENO"; then : 5774 xorg_cv_compiler_flag_unused_command_line_argument=yes 5775else 5776 xorg_cv_compiler_flag_unused_command_line_argument=no 5777fi 5778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5779fi 5780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 5781$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 5782 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 5783 CFLAGS="$xorg_testset_save_CFLAGS" 5784fi 5785 5786found="no" 5787 5788 if test $found = "no" ; then 5789 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5791 fi 5792 5793 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5795 fi 5796 5797 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5798 5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5800$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5801 cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement` 5802 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5803 $as_echo_n "(cached) " >&6 5804else 5805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5806/* end confdefs.h. */ 5807int i; 5808int 5809main () 5810{ 5811 5812 ; 5813 return 0; 5814} 5815_ACEOF 5816if ac_fn_c_try_link "$LINENO"; then : 5817 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5818else 5819 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5820fi 5821rm -f core conftest.err conftest.$ac_objext \ 5822 conftest$ac_exeext conftest.$ac_ext 5823fi 5824 5825 5826 CFLAGS="$xorg_testset_save_CFLAGS" 5827 5828 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5830$as_echo "$supported" >&6; } 5831 if test "$supported" = "yes" ; then 5832 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5833 found="yes" 5834 fi 5835 fi 5836 5837 5838 5839 5840 5841# This chunk adds additional warnings that could catch undesired effects. 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853xorg_testset_save_CFLAGS="$CFLAGS" 5854 5855if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 5858$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 5859if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 5860 $as_echo_n "(cached) " >&6 5861else 5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5863/* end confdefs.h. */ 5864int i; 5865_ACEOF 5866if ac_fn_c_try_compile "$LINENO"; then : 5867 xorg_cv_compiler_flag_unknown_warning_option=yes 5868else 5869 xorg_cv_compiler_flag_unknown_warning_option=no 5870fi 5871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5872fi 5873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 5874$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 5875 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 5876 CFLAGS="$xorg_testset_save_CFLAGS" 5877fi 5878 5879if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5880 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5882 fi 5883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 5885$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 5886if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 5887 $as_echo_n "(cached) " >&6 5888else 5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5890/* end confdefs.h. */ 5891int i; 5892_ACEOF 5893if ac_fn_c_try_compile "$LINENO"; then : 5894 xorg_cv_compiler_flag_unused_command_line_argument=yes 5895else 5896 xorg_cv_compiler_flag_unused_command_line_argument=no 5897fi 5898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5899fi 5900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 5901$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 5902 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 5903 CFLAGS="$xorg_testset_save_CFLAGS" 5904fi 5905 5906found="no" 5907 5908 if test $found = "no" ; then 5909 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5911 fi 5912 5913 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5915 fi 5916 5917 CFLAGS="$CFLAGS -Wunused" 5918 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5920$as_echo_n "checking if $CC supports -Wunused... " >&6; } 5921 cacheid=`$as_echo xorg_cv_cc_flag_-Wunused` 5922 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 5923 $as_echo_n "(cached) " >&6 5924else 5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5926/* end confdefs.h. */ 5927int i; 5928int 5929main () 5930{ 5931 5932 ; 5933 return 0; 5934} 5935_ACEOF 5936if ac_fn_c_try_link "$LINENO"; then : 5937 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 5938else 5939 eval `$as_echo "$cacheid" | $as_tr_sh`=no 5940fi 5941rm -f core conftest.err conftest.$ac_objext \ 5942 conftest$ac_exeext conftest.$ac_ext 5943fi 5944 5945 5946 CFLAGS="$xorg_testset_save_CFLAGS" 5947 5948 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5950$as_echo "$supported" >&6; } 5951 if test "$supported" = "yes" ; then 5952 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5953 found="yes" 5954 fi 5955 fi 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969xorg_testset_save_CFLAGS="$CFLAGS" 5970 5971if test "x$xorg_testset_unknown_warning_option" = "x" ; then 5972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 5974$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 5975if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 5976 $as_echo_n "(cached) " >&6 5977else 5978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5979/* end confdefs.h. */ 5980int i; 5981_ACEOF 5982if ac_fn_c_try_compile "$LINENO"; then : 5983 xorg_cv_compiler_flag_unknown_warning_option=yes 5984else 5985 xorg_cv_compiler_flag_unknown_warning_option=no 5986fi 5987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5988fi 5989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 5990$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 5991 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 5992 CFLAGS="$xorg_testset_save_CFLAGS" 5993fi 5994 5995if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 5996 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5998 fi 5999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 6001$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 6002if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 6003 $as_echo_n "(cached) " >&6 6004else 6005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6006/* end confdefs.h. */ 6007int i; 6008_ACEOF 6009if ac_fn_c_try_compile "$LINENO"; then : 6010 xorg_cv_compiler_flag_unused_command_line_argument=yes 6011else 6012 xorg_cv_compiler_flag_unused_command_line_argument=no 6013fi 6014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6015fi 6016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 6017$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 6018 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 6019 CFLAGS="$xorg_testset_save_CFLAGS" 6020fi 6021 6022found="no" 6023 6024 if test $found = "no" ; then 6025 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6027 fi 6028 6029 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6031 fi 6032 6033 CFLAGS="$CFLAGS -Wuninitialized" 6034 6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6036$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6037 cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized` 6038 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6039 $as_echo_n "(cached) " >&6 6040else 6041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6042/* end confdefs.h. */ 6043int i; 6044int 6045main () 6046{ 6047 6048 ; 6049 return 0; 6050} 6051_ACEOF 6052if ac_fn_c_try_link "$LINENO"; then : 6053 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6054else 6055 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6056fi 6057rm -f core conftest.err conftest.$ac_objext \ 6058 conftest$ac_exeext conftest.$ac_ext 6059fi 6060 6061 6062 CFLAGS="$xorg_testset_save_CFLAGS" 6063 6064 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6066$as_echo "$supported" >&6; } 6067 if test "$supported" = "yes" ; then 6068 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6069 found="yes" 6070 fi 6071 fi 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085xorg_testset_save_CFLAGS="$CFLAGS" 6086 6087if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 6090$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 6091if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 6092 $as_echo_n "(cached) " >&6 6093else 6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6095/* end confdefs.h. */ 6096int i; 6097_ACEOF 6098if ac_fn_c_try_compile "$LINENO"; then : 6099 xorg_cv_compiler_flag_unknown_warning_option=yes 6100else 6101 xorg_cv_compiler_flag_unknown_warning_option=no 6102fi 6103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6104fi 6105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 6106$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 6107 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 6108 CFLAGS="$xorg_testset_save_CFLAGS" 6109fi 6110 6111if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6112 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6114 fi 6115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 6117$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 6118if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 6119 $as_echo_n "(cached) " >&6 6120else 6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6122/* end confdefs.h. */ 6123int i; 6124_ACEOF 6125if ac_fn_c_try_compile "$LINENO"; then : 6126 xorg_cv_compiler_flag_unused_command_line_argument=yes 6127else 6128 xorg_cv_compiler_flag_unused_command_line_argument=no 6129fi 6130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6131fi 6132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 6133$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 6134 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 6135 CFLAGS="$xorg_testset_save_CFLAGS" 6136fi 6137 6138found="no" 6139 6140 if test $found = "no" ; then 6141 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6143 fi 6144 6145 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6147 fi 6148 6149 CFLAGS="$CFLAGS -Wshadow" 6150 6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6152$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6153 cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow` 6154 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6155 $as_echo_n "(cached) " >&6 6156else 6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6158/* end confdefs.h. */ 6159int i; 6160int 6161main () 6162{ 6163 6164 ; 6165 return 0; 6166} 6167_ACEOF 6168if ac_fn_c_try_link "$LINENO"; then : 6169 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6170else 6171 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6172fi 6173rm -f core conftest.err conftest.$ac_objext \ 6174 conftest$ac_exeext conftest.$ac_ext 6175fi 6176 6177 6178 CFLAGS="$xorg_testset_save_CFLAGS" 6179 6180 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6182$as_echo "$supported" >&6; } 6183 if test "$supported" = "yes" ; then 6184 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6185 found="yes" 6186 fi 6187 fi 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201xorg_testset_save_CFLAGS="$CFLAGS" 6202 6203if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 6206$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 6207if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 6208 $as_echo_n "(cached) " >&6 6209else 6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6211/* end confdefs.h. */ 6212int i; 6213_ACEOF 6214if ac_fn_c_try_compile "$LINENO"; then : 6215 xorg_cv_compiler_flag_unknown_warning_option=yes 6216else 6217 xorg_cv_compiler_flag_unknown_warning_option=no 6218fi 6219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6220fi 6221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 6222$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 6223 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 6224 CFLAGS="$xorg_testset_save_CFLAGS" 6225fi 6226 6227if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6228 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6230 fi 6231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 6233$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 6234if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 6235 $as_echo_n "(cached) " >&6 6236else 6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6238/* end confdefs.h. */ 6239int i; 6240_ACEOF 6241if ac_fn_c_try_compile "$LINENO"; then : 6242 xorg_cv_compiler_flag_unused_command_line_argument=yes 6243else 6244 xorg_cv_compiler_flag_unused_command_line_argument=no 6245fi 6246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6247fi 6248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 6249$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 6250 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 6251 CFLAGS="$xorg_testset_save_CFLAGS" 6252fi 6253 6254found="no" 6255 6256 if test $found = "no" ; then 6257 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6259 fi 6260 6261 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6263 fi 6264 6265 CFLAGS="$CFLAGS -Wcast-qual" 6266 6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6268$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6269 cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual` 6270 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6271 $as_echo_n "(cached) " >&6 6272else 6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6274/* end confdefs.h. */ 6275int i; 6276int 6277main () 6278{ 6279 6280 ; 6281 return 0; 6282} 6283_ACEOF 6284if ac_fn_c_try_link "$LINENO"; then : 6285 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6286else 6287 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6288fi 6289rm -f core conftest.err conftest.$ac_objext \ 6290 conftest$ac_exeext conftest.$ac_ext 6291fi 6292 6293 6294 CFLAGS="$xorg_testset_save_CFLAGS" 6295 6296 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6298$as_echo "$supported" >&6; } 6299 if test "$supported" = "yes" ; then 6300 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6301 found="yes" 6302 fi 6303 fi 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317xorg_testset_save_CFLAGS="$CFLAGS" 6318 6319if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 6322$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 6323if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 6324 $as_echo_n "(cached) " >&6 6325else 6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6327/* end confdefs.h. */ 6328int i; 6329_ACEOF 6330if ac_fn_c_try_compile "$LINENO"; then : 6331 xorg_cv_compiler_flag_unknown_warning_option=yes 6332else 6333 xorg_cv_compiler_flag_unknown_warning_option=no 6334fi 6335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6336fi 6337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 6338$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 6339 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 6340 CFLAGS="$xorg_testset_save_CFLAGS" 6341fi 6342 6343if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6344 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6346 fi 6347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 6349$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 6350if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 6351 $as_echo_n "(cached) " >&6 6352else 6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6354/* end confdefs.h. */ 6355int i; 6356_ACEOF 6357if ac_fn_c_try_compile "$LINENO"; then : 6358 xorg_cv_compiler_flag_unused_command_line_argument=yes 6359else 6360 xorg_cv_compiler_flag_unused_command_line_argument=no 6361fi 6362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6363fi 6364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 6365$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 6366 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 6367 CFLAGS="$xorg_testset_save_CFLAGS" 6368fi 6369 6370found="no" 6371 6372 if test $found = "no" ; then 6373 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6375 fi 6376 6377 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6379 fi 6380 6381 CFLAGS="$CFLAGS -Wmissing-noreturn" 6382 6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6384$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6385 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn` 6386 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6387 $as_echo_n "(cached) " >&6 6388else 6389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6390/* end confdefs.h. */ 6391int i; 6392int 6393main () 6394{ 6395 6396 ; 6397 return 0; 6398} 6399_ACEOF 6400if ac_fn_c_try_link "$LINENO"; then : 6401 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6402else 6403 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6404fi 6405rm -f core conftest.err conftest.$ac_objext \ 6406 conftest$ac_exeext conftest.$ac_ext 6407fi 6408 6409 6410 CFLAGS="$xorg_testset_save_CFLAGS" 6411 6412 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6414$as_echo "$supported" >&6; } 6415 if test "$supported" = "yes" ; then 6416 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6417 found="yes" 6418 fi 6419 fi 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433xorg_testset_save_CFLAGS="$CFLAGS" 6434 6435if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 6438$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 6439if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 6440 $as_echo_n "(cached) " >&6 6441else 6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6443/* end confdefs.h. */ 6444int i; 6445_ACEOF 6446if ac_fn_c_try_compile "$LINENO"; then : 6447 xorg_cv_compiler_flag_unknown_warning_option=yes 6448else 6449 xorg_cv_compiler_flag_unknown_warning_option=no 6450fi 6451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6452fi 6453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 6454$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 6455 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 6456 CFLAGS="$xorg_testset_save_CFLAGS" 6457fi 6458 6459if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6460 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6462 fi 6463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 6465$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 6466if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 6467 $as_echo_n "(cached) " >&6 6468else 6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6470/* end confdefs.h. */ 6471int i; 6472_ACEOF 6473if ac_fn_c_try_compile "$LINENO"; then : 6474 xorg_cv_compiler_flag_unused_command_line_argument=yes 6475else 6476 xorg_cv_compiler_flag_unused_command_line_argument=no 6477fi 6478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6479fi 6480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 6481$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 6482 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 6483 CFLAGS="$xorg_testset_save_CFLAGS" 6484fi 6485 6486found="no" 6487 6488 if test $found = "no" ; then 6489 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6491 fi 6492 6493 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6495 fi 6496 6497 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6498 6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6500$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6501 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute` 6502 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6503 $as_echo_n "(cached) " >&6 6504else 6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6506/* end confdefs.h. */ 6507int i; 6508int 6509main () 6510{ 6511 6512 ; 6513 return 0; 6514} 6515_ACEOF 6516if ac_fn_c_try_link "$LINENO"; then : 6517 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6518else 6519 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6520fi 6521rm -f core conftest.err conftest.$ac_objext \ 6522 conftest$ac_exeext conftest.$ac_ext 6523fi 6524 6525 6526 CFLAGS="$xorg_testset_save_CFLAGS" 6527 6528 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6530$as_echo "$supported" >&6; } 6531 if test "$supported" = "yes" ; then 6532 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6533 found="yes" 6534 fi 6535 fi 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549xorg_testset_save_CFLAGS="$CFLAGS" 6550 6551if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 6554$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 6555if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 6556 $as_echo_n "(cached) " >&6 6557else 6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6559/* end confdefs.h. */ 6560int i; 6561_ACEOF 6562if ac_fn_c_try_compile "$LINENO"; then : 6563 xorg_cv_compiler_flag_unknown_warning_option=yes 6564else 6565 xorg_cv_compiler_flag_unknown_warning_option=no 6566fi 6567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6568fi 6569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 6570$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 6571 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 6572 CFLAGS="$xorg_testset_save_CFLAGS" 6573fi 6574 6575if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6576 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6578 fi 6579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 6581$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 6582if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 6583 $as_echo_n "(cached) " >&6 6584else 6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6586/* end confdefs.h. */ 6587int i; 6588_ACEOF 6589if ac_fn_c_try_compile "$LINENO"; then : 6590 xorg_cv_compiler_flag_unused_command_line_argument=yes 6591else 6592 xorg_cv_compiler_flag_unused_command_line_argument=no 6593fi 6594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6595fi 6596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 6597$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 6598 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 6599 CFLAGS="$xorg_testset_save_CFLAGS" 6600fi 6601 6602found="no" 6603 6604 if test $found = "no" ; then 6605 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6607 fi 6608 6609 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6611 fi 6612 6613 CFLAGS="$CFLAGS -Wredundant-decls" 6614 6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6616$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6617 cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls` 6618 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6619 $as_echo_n "(cached) " >&6 6620else 6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6622/* end confdefs.h. */ 6623int i; 6624int 6625main () 6626{ 6627 6628 ; 6629 return 0; 6630} 6631_ACEOF 6632if ac_fn_c_try_link "$LINENO"; then : 6633 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6634else 6635 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6636fi 6637rm -f core conftest.err conftest.$ac_objext \ 6638 conftest$ac_exeext conftest.$ac_ext 6639fi 6640 6641 6642 CFLAGS="$xorg_testset_save_CFLAGS" 6643 6644 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6646$as_echo "$supported" >&6; } 6647 if test "$supported" = "yes" ; then 6648 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6649 found="yes" 6650 fi 6651 fi 6652 6653 6654 6655# These are currently disabled because they are noisy. They will be enabled 6656# in the future once the codebase is sufficiently modernized to silence 6657# them. For now, I don't want them to drown out the other warnings. 6658# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6659# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6660# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6661 6662# Turn some warnings into errors, so we don't accidently get successful builds 6663# when there are problems that should be fixed. 6664 6665if test "x$SELECTIVE_WERROR" = "xyes" ; then 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677xorg_testset_save_CFLAGS="$CFLAGS" 6678 6679if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 6682$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 6683if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 6684 $as_echo_n "(cached) " >&6 6685else 6686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6687/* end confdefs.h. */ 6688int i; 6689_ACEOF 6690if ac_fn_c_try_compile "$LINENO"; then : 6691 xorg_cv_compiler_flag_unknown_warning_option=yes 6692else 6693 xorg_cv_compiler_flag_unknown_warning_option=no 6694fi 6695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6696fi 6697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 6698$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 6699 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 6700 CFLAGS="$xorg_testset_save_CFLAGS" 6701fi 6702 6703if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6704 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6706 fi 6707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 6709$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 6710if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 6711 $as_echo_n "(cached) " >&6 6712else 6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6714/* end confdefs.h. */ 6715int i; 6716_ACEOF 6717if ac_fn_c_try_compile "$LINENO"; then : 6718 xorg_cv_compiler_flag_unused_command_line_argument=yes 6719else 6720 xorg_cv_compiler_flag_unused_command_line_argument=no 6721fi 6722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6723fi 6724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 6725$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 6726 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 6727 CFLAGS="$xorg_testset_save_CFLAGS" 6728fi 6729 6730found="no" 6731 6732 if test $found = "no" ; then 6733 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6735 fi 6736 6737 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6739 fi 6740 6741 CFLAGS="$CFLAGS -Werror=implicit" 6742 6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6744$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6745 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit` 6746 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6747 $as_echo_n "(cached) " >&6 6748else 6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6750/* end confdefs.h. */ 6751int i; 6752int 6753main () 6754{ 6755 6756 ; 6757 return 0; 6758} 6759_ACEOF 6760if ac_fn_c_try_link "$LINENO"; then : 6761 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6762else 6763 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6764fi 6765rm -f core conftest.err conftest.$ac_objext \ 6766 conftest$ac_exeext conftest.$ac_ext 6767fi 6768 6769 6770 CFLAGS="$xorg_testset_save_CFLAGS" 6771 6772 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6774$as_echo "$supported" >&6; } 6775 if test "$supported" = "yes" ; then 6776 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6777 found="yes" 6778 fi 6779 fi 6780 6781 if test $found = "no" ; then 6782 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6784 fi 6785 6786 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6788 fi 6789 6790 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6791 6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6793$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6794 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED` 6795 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6796 $as_echo_n "(cached) " >&6 6797else 6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6799/* end confdefs.h. */ 6800int i; 6801int 6802main () 6803{ 6804 6805 ; 6806 return 0; 6807} 6808_ACEOF 6809if ac_fn_c_try_link "$LINENO"; then : 6810 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6811else 6812 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6813fi 6814rm -f core conftest.err conftest.$ac_objext \ 6815 conftest$ac_exeext conftest.$ac_ext 6816fi 6817 6818 6819 CFLAGS="$xorg_testset_save_CFLAGS" 6820 6821 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6823$as_echo "$supported" >&6; } 6824 if test "$supported" = "yes" ; then 6825 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6826 found="yes" 6827 fi 6828 fi 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842xorg_testset_save_CFLAGS="$CFLAGS" 6843 6844if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 6847$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 6848if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 6849 $as_echo_n "(cached) " >&6 6850else 6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6852/* end confdefs.h. */ 6853int i; 6854_ACEOF 6855if ac_fn_c_try_compile "$LINENO"; then : 6856 xorg_cv_compiler_flag_unknown_warning_option=yes 6857else 6858 xorg_cv_compiler_flag_unknown_warning_option=no 6859fi 6860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6861fi 6862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 6863$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 6864 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 6865 CFLAGS="$xorg_testset_save_CFLAGS" 6866fi 6867 6868if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6869 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6871 fi 6872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 6874$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 6875if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 6876 $as_echo_n "(cached) " >&6 6877else 6878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6879/* end confdefs.h. */ 6880int i; 6881_ACEOF 6882if ac_fn_c_try_compile "$LINENO"; then : 6883 xorg_cv_compiler_flag_unused_command_line_argument=yes 6884else 6885 xorg_cv_compiler_flag_unused_command_line_argument=no 6886fi 6887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6888fi 6889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 6890$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 6891 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 6892 CFLAGS="$xorg_testset_save_CFLAGS" 6893fi 6894 6895found="no" 6896 6897 if test $found = "no" ; then 6898 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6900 fi 6901 6902 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6904 fi 6905 6906 CFLAGS="$CFLAGS -Werror=nonnull" 6907 6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6909$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 6910 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull` 6911 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 6912 $as_echo_n "(cached) " >&6 6913else 6914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6915/* end confdefs.h. */ 6916int i; 6917int 6918main () 6919{ 6920 6921 ; 6922 return 0; 6923} 6924_ACEOF 6925if ac_fn_c_try_link "$LINENO"; then : 6926 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 6927else 6928 eval `$as_echo "$cacheid" | $as_tr_sh`=no 6929fi 6930rm -f core conftest.err conftest.$ac_objext \ 6931 conftest$ac_exeext conftest.$ac_ext 6932fi 6933 6934 6935 CFLAGS="$xorg_testset_save_CFLAGS" 6936 6937 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6939$as_echo "$supported" >&6; } 6940 if test "$supported" = "yes" ; then 6941 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6942 found="yes" 6943 fi 6944 fi 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958xorg_testset_save_CFLAGS="$CFLAGS" 6959 6960if test "x$xorg_testset_unknown_warning_option" = "x" ; then 6961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 6963$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 6964if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 6965 $as_echo_n "(cached) " >&6 6966else 6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6968/* end confdefs.h. */ 6969int i; 6970_ACEOF 6971if ac_fn_c_try_compile "$LINENO"; then : 6972 xorg_cv_compiler_flag_unknown_warning_option=yes 6973else 6974 xorg_cv_compiler_flag_unknown_warning_option=no 6975fi 6976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6977fi 6978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 6979$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 6980 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 6981 CFLAGS="$xorg_testset_save_CFLAGS" 6982fi 6983 6984if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 6985 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6987 fi 6988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 6990$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 6991if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 6992 $as_echo_n "(cached) " >&6 6993else 6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6995/* end confdefs.h. */ 6996int i; 6997_ACEOF 6998if ac_fn_c_try_compile "$LINENO"; then : 6999 xorg_cv_compiler_flag_unused_command_line_argument=yes 7000else 7001 xorg_cv_compiler_flag_unused_command_line_argument=no 7002fi 7003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7004fi 7005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 7006$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 7007 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 7008 CFLAGS="$xorg_testset_save_CFLAGS" 7009fi 7010 7011found="no" 7012 7013 if test $found = "no" ; then 7014 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7016 fi 7017 7018 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7020 fi 7021 7022 CFLAGS="$CFLAGS -Werror=init-self" 7023 7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7025$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7026 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self` 7027 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7028 $as_echo_n "(cached) " >&6 7029else 7030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7031/* end confdefs.h. */ 7032int i; 7033int 7034main () 7035{ 7036 7037 ; 7038 return 0; 7039} 7040_ACEOF 7041if ac_fn_c_try_link "$LINENO"; then : 7042 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7043else 7044 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7045fi 7046rm -f core conftest.err conftest.$ac_objext \ 7047 conftest$ac_exeext conftest.$ac_ext 7048fi 7049 7050 7051 CFLAGS="$xorg_testset_save_CFLAGS" 7052 7053 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7055$as_echo "$supported" >&6; } 7056 if test "$supported" = "yes" ; then 7057 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7058 found="yes" 7059 fi 7060 fi 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074xorg_testset_save_CFLAGS="$CFLAGS" 7075 7076if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 7079$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 7080if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 7081 $as_echo_n "(cached) " >&6 7082else 7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7084/* end confdefs.h. */ 7085int i; 7086_ACEOF 7087if ac_fn_c_try_compile "$LINENO"; then : 7088 xorg_cv_compiler_flag_unknown_warning_option=yes 7089else 7090 xorg_cv_compiler_flag_unknown_warning_option=no 7091fi 7092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7093fi 7094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 7095$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 7096 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 7097 CFLAGS="$xorg_testset_save_CFLAGS" 7098fi 7099 7100if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7101 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7103 fi 7104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 7106$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 7107if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 7108 $as_echo_n "(cached) " >&6 7109else 7110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7111/* end confdefs.h. */ 7112int i; 7113_ACEOF 7114if ac_fn_c_try_compile "$LINENO"; then : 7115 xorg_cv_compiler_flag_unused_command_line_argument=yes 7116else 7117 xorg_cv_compiler_flag_unused_command_line_argument=no 7118fi 7119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7120fi 7121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 7122$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 7123 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 7124 CFLAGS="$xorg_testset_save_CFLAGS" 7125fi 7126 7127found="no" 7128 7129 if test $found = "no" ; then 7130 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7132 fi 7133 7134 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7136 fi 7137 7138 CFLAGS="$CFLAGS -Werror=main" 7139 7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7141$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7142 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main` 7143 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7144 $as_echo_n "(cached) " >&6 7145else 7146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7147/* end confdefs.h. */ 7148int i; 7149int 7150main () 7151{ 7152 7153 ; 7154 return 0; 7155} 7156_ACEOF 7157if ac_fn_c_try_link "$LINENO"; then : 7158 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7159else 7160 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7161fi 7162rm -f core conftest.err conftest.$ac_objext \ 7163 conftest$ac_exeext conftest.$ac_ext 7164fi 7165 7166 7167 CFLAGS="$xorg_testset_save_CFLAGS" 7168 7169 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7171$as_echo "$supported" >&6; } 7172 if test "$supported" = "yes" ; then 7173 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7174 found="yes" 7175 fi 7176 fi 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190xorg_testset_save_CFLAGS="$CFLAGS" 7191 7192if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 7195$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 7196if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 7197 $as_echo_n "(cached) " >&6 7198else 7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7200/* end confdefs.h. */ 7201int i; 7202_ACEOF 7203if ac_fn_c_try_compile "$LINENO"; then : 7204 xorg_cv_compiler_flag_unknown_warning_option=yes 7205else 7206 xorg_cv_compiler_flag_unknown_warning_option=no 7207fi 7208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7209fi 7210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 7211$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 7212 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 7213 CFLAGS="$xorg_testset_save_CFLAGS" 7214fi 7215 7216if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7217 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7219 fi 7220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 7222$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 7223if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 7224 $as_echo_n "(cached) " >&6 7225else 7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7227/* end confdefs.h. */ 7228int i; 7229_ACEOF 7230if ac_fn_c_try_compile "$LINENO"; then : 7231 xorg_cv_compiler_flag_unused_command_line_argument=yes 7232else 7233 xorg_cv_compiler_flag_unused_command_line_argument=no 7234fi 7235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7236fi 7237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 7238$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 7239 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 7240 CFLAGS="$xorg_testset_save_CFLAGS" 7241fi 7242 7243found="no" 7244 7245 if test $found = "no" ; then 7246 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7248 fi 7249 7250 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7252 fi 7253 7254 CFLAGS="$CFLAGS -Werror=missing-braces" 7255 7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7257$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7258 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces` 7259 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7260 $as_echo_n "(cached) " >&6 7261else 7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7263/* end confdefs.h. */ 7264int i; 7265int 7266main () 7267{ 7268 7269 ; 7270 return 0; 7271} 7272_ACEOF 7273if ac_fn_c_try_link "$LINENO"; then : 7274 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7275else 7276 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7277fi 7278rm -f core conftest.err conftest.$ac_objext \ 7279 conftest$ac_exeext conftest.$ac_ext 7280fi 7281 7282 7283 CFLAGS="$xorg_testset_save_CFLAGS" 7284 7285 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7287$as_echo "$supported" >&6; } 7288 if test "$supported" = "yes" ; then 7289 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7290 found="yes" 7291 fi 7292 fi 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306xorg_testset_save_CFLAGS="$CFLAGS" 7307 7308if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 7311$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 7312if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 7313 $as_echo_n "(cached) " >&6 7314else 7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7316/* end confdefs.h. */ 7317int i; 7318_ACEOF 7319if ac_fn_c_try_compile "$LINENO"; then : 7320 xorg_cv_compiler_flag_unknown_warning_option=yes 7321else 7322 xorg_cv_compiler_flag_unknown_warning_option=no 7323fi 7324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7325fi 7326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 7327$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 7328 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 7329 CFLAGS="$xorg_testset_save_CFLAGS" 7330fi 7331 7332if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7333 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7335 fi 7336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 7338$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 7339if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 7340 $as_echo_n "(cached) " >&6 7341else 7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7343/* end confdefs.h. */ 7344int i; 7345_ACEOF 7346if ac_fn_c_try_compile "$LINENO"; then : 7347 xorg_cv_compiler_flag_unused_command_line_argument=yes 7348else 7349 xorg_cv_compiler_flag_unused_command_line_argument=no 7350fi 7351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7352fi 7353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 7354$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 7355 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 7356 CFLAGS="$xorg_testset_save_CFLAGS" 7357fi 7358 7359found="no" 7360 7361 if test $found = "no" ; then 7362 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7364 fi 7365 7366 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7368 fi 7369 7370 CFLAGS="$CFLAGS -Werror=sequence-point" 7371 7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7373$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7374 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point` 7375 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7376 $as_echo_n "(cached) " >&6 7377else 7378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7379/* end confdefs.h. */ 7380int i; 7381int 7382main () 7383{ 7384 7385 ; 7386 return 0; 7387} 7388_ACEOF 7389if ac_fn_c_try_link "$LINENO"; then : 7390 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7391else 7392 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7393fi 7394rm -f core conftest.err conftest.$ac_objext \ 7395 conftest$ac_exeext conftest.$ac_ext 7396fi 7397 7398 7399 CFLAGS="$xorg_testset_save_CFLAGS" 7400 7401 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7403$as_echo "$supported" >&6; } 7404 if test "$supported" = "yes" ; then 7405 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7406 found="yes" 7407 fi 7408 fi 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422xorg_testset_save_CFLAGS="$CFLAGS" 7423 7424if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 7427$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 7428if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 7429 $as_echo_n "(cached) " >&6 7430else 7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7432/* end confdefs.h. */ 7433int i; 7434_ACEOF 7435if ac_fn_c_try_compile "$LINENO"; then : 7436 xorg_cv_compiler_flag_unknown_warning_option=yes 7437else 7438 xorg_cv_compiler_flag_unknown_warning_option=no 7439fi 7440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7441fi 7442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 7443$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 7444 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 7445 CFLAGS="$xorg_testset_save_CFLAGS" 7446fi 7447 7448if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7449 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7451 fi 7452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 7454$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 7455if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 7456 $as_echo_n "(cached) " >&6 7457else 7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7459/* end confdefs.h. */ 7460int i; 7461_ACEOF 7462if ac_fn_c_try_compile "$LINENO"; then : 7463 xorg_cv_compiler_flag_unused_command_line_argument=yes 7464else 7465 xorg_cv_compiler_flag_unused_command_line_argument=no 7466fi 7467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7468fi 7469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 7470$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 7471 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 7472 CFLAGS="$xorg_testset_save_CFLAGS" 7473fi 7474 7475found="no" 7476 7477 if test $found = "no" ; then 7478 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7480 fi 7481 7482 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7484 fi 7485 7486 CFLAGS="$CFLAGS -Werror=return-type" 7487 7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7489$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7490 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type` 7491 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7492 $as_echo_n "(cached) " >&6 7493else 7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7495/* end confdefs.h. */ 7496int i; 7497int 7498main () 7499{ 7500 7501 ; 7502 return 0; 7503} 7504_ACEOF 7505if ac_fn_c_try_link "$LINENO"; then : 7506 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7507else 7508 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7509fi 7510rm -f core conftest.err conftest.$ac_objext \ 7511 conftest$ac_exeext conftest.$ac_ext 7512fi 7513 7514 7515 CFLAGS="$xorg_testset_save_CFLAGS" 7516 7517 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7519$as_echo "$supported" >&6; } 7520 if test "$supported" = "yes" ; then 7521 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7522 found="yes" 7523 fi 7524 fi 7525 7526 if test $found = "no" ; then 7527 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7529 fi 7530 7531 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7533 fi 7534 7535 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7536 7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7538$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7539 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT` 7540 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7541 $as_echo_n "(cached) " >&6 7542else 7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7544/* end confdefs.h. */ 7545int i; 7546int 7547main () 7548{ 7549 7550 ; 7551 return 0; 7552} 7553_ACEOF 7554if ac_fn_c_try_link "$LINENO"; then : 7555 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7556else 7557 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7558fi 7559rm -f core conftest.err conftest.$ac_objext \ 7560 conftest$ac_exeext conftest.$ac_ext 7561fi 7562 7563 7564 CFLAGS="$xorg_testset_save_CFLAGS" 7565 7566 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7568$as_echo "$supported" >&6; } 7569 if test "$supported" = "yes" ; then 7570 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7571 found="yes" 7572 fi 7573 fi 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587xorg_testset_save_CFLAGS="$CFLAGS" 7588 7589if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 7592$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 7593if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 7594 $as_echo_n "(cached) " >&6 7595else 7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7597/* end confdefs.h. */ 7598int i; 7599_ACEOF 7600if ac_fn_c_try_compile "$LINENO"; then : 7601 xorg_cv_compiler_flag_unknown_warning_option=yes 7602else 7603 xorg_cv_compiler_flag_unknown_warning_option=no 7604fi 7605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7606fi 7607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 7608$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 7609 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 7610 CFLAGS="$xorg_testset_save_CFLAGS" 7611fi 7612 7613if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7614 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7616 fi 7617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 7619$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 7620if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 7621 $as_echo_n "(cached) " >&6 7622else 7623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7624/* end confdefs.h. */ 7625int i; 7626_ACEOF 7627if ac_fn_c_try_compile "$LINENO"; then : 7628 xorg_cv_compiler_flag_unused_command_line_argument=yes 7629else 7630 xorg_cv_compiler_flag_unused_command_line_argument=no 7631fi 7632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7633fi 7634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 7635$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 7636 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 7637 CFLAGS="$xorg_testset_save_CFLAGS" 7638fi 7639 7640found="no" 7641 7642 if test $found = "no" ; then 7643 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7645 fi 7646 7647 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7649 fi 7650 7651 CFLAGS="$CFLAGS -Werror=trigraphs" 7652 7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7654$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7655 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs` 7656 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7657 $as_echo_n "(cached) " >&6 7658else 7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7660/* end confdefs.h. */ 7661int i; 7662int 7663main () 7664{ 7665 7666 ; 7667 return 0; 7668} 7669_ACEOF 7670if ac_fn_c_try_link "$LINENO"; then : 7671 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7672else 7673 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7674fi 7675rm -f core conftest.err conftest.$ac_objext \ 7676 conftest$ac_exeext conftest.$ac_ext 7677fi 7678 7679 7680 CFLAGS="$xorg_testset_save_CFLAGS" 7681 7682 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7684$as_echo "$supported" >&6; } 7685 if test "$supported" = "yes" ; then 7686 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7687 found="yes" 7688 fi 7689 fi 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703xorg_testset_save_CFLAGS="$CFLAGS" 7704 7705if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 7708$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 7709if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 7710 $as_echo_n "(cached) " >&6 7711else 7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7713/* end confdefs.h. */ 7714int i; 7715_ACEOF 7716if ac_fn_c_try_compile "$LINENO"; then : 7717 xorg_cv_compiler_flag_unknown_warning_option=yes 7718else 7719 xorg_cv_compiler_flag_unknown_warning_option=no 7720fi 7721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7722fi 7723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 7724$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 7725 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 7726 CFLAGS="$xorg_testset_save_CFLAGS" 7727fi 7728 7729if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7730 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7732 fi 7733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 7735$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 7736if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 7737 $as_echo_n "(cached) " >&6 7738else 7739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7740/* end confdefs.h. */ 7741int i; 7742_ACEOF 7743if ac_fn_c_try_compile "$LINENO"; then : 7744 xorg_cv_compiler_flag_unused_command_line_argument=yes 7745else 7746 xorg_cv_compiler_flag_unused_command_line_argument=no 7747fi 7748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7749fi 7750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 7751$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 7752 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 7753 CFLAGS="$xorg_testset_save_CFLAGS" 7754fi 7755 7756found="no" 7757 7758 if test $found = "no" ; then 7759 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7761 fi 7762 7763 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7765 fi 7766 7767 CFLAGS="$CFLAGS -Werror=array-bounds" 7768 7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7770$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7771 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds` 7772 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7773 $as_echo_n "(cached) " >&6 7774else 7775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7776/* end confdefs.h. */ 7777int i; 7778int 7779main () 7780{ 7781 7782 ; 7783 return 0; 7784} 7785_ACEOF 7786if ac_fn_c_try_link "$LINENO"; then : 7787 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7788else 7789 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7790fi 7791rm -f core conftest.err conftest.$ac_objext \ 7792 conftest$ac_exeext conftest.$ac_ext 7793fi 7794 7795 7796 CFLAGS="$xorg_testset_save_CFLAGS" 7797 7798 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7800$as_echo "$supported" >&6; } 7801 if test "$supported" = "yes" ; then 7802 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7803 found="yes" 7804 fi 7805 fi 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819xorg_testset_save_CFLAGS="$CFLAGS" 7820 7821if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 7824$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 7825if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 7826 $as_echo_n "(cached) " >&6 7827else 7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7829/* end confdefs.h. */ 7830int i; 7831_ACEOF 7832if ac_fn_c_try_compile "$LINENO"; then : 7833 xorg_cv_compiler_flag_unknown_warning_option=yes 7834else 7835 xorg_cv_compiler_flag_unknown_warning_option=no 7836fi 7837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7838fi 7839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 7840$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 7841 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 7842 CFLAGS="$xorg_testset_save_CFLAGS" 7843fi 7844 7845if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7846 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7848 fi 7849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 7851$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 7852if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 7853 $as_echo_n "(cached) " >&6 7854else 7855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7856/* end confdefs.h. */ 7857int i; 7858_ACEOF 7859if ac_fn_c_try_compile "$LINENO"; then : 7860 xorg_cv_compiler_flag_unused_command_line_argument=yes 7861else 7862 xorg_cv_compiler_flag_unused_command_line_argument=no 7863fi 7864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7865fi 7866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 7867$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 7868 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 7869 CFLAGS="$xorg_testset_save_CFLAGS" 7870fi 7871 7872found="no" 7873 7874 if test $found = "no" ; then 7875 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7877 fi 7878 7879 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7881 fi 7882 7883 CFLAGS="$CFLAGS -Werror=write-strings" 7884 7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7886$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 7887 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings` 7888 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 7889 $as_echo_n "(cached) " >&6 7890else 7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7892/* end confdefs.h. */ 7893int i; 7894int 7895main () 7896{ 7897 7898 ; 7899 return 0; 7900} 7901_ACEOF 7902if ac_fn_c_try_link "$LINENO"; then : 7903 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 7904else 7905 eval `$as_echo "$cacheid" | $as_tr_sh`=no 7906fi 7907rm -f core conftest.err conftest.$ac_objext \ 7908 conftest$ac_exeext conftest.$ac_ext 7909fi 7910 7911 7912 CFLAGS="$xorg_testset_save_CFLAGS" 7913 7914 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7916$as_echo "$supported" >&6; } 7917 if test "$supported" = "yes" ; then 7918 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7919 found="yes" 7920 fi 7921 fi 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935xorg_testset_save_CFLAGS="$CFLAGS" 7936 7937if test "x$xorg_testset_unknown_warning_option" = "x" ; then 7938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 7940$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 7941if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 7942 $as_echo_n "(cached) " >&6 7943else 7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7945/* end confdefs.h. */ 7946int i; 7947_ACEOF 7948if ac_fn_c_try_compile "$LINENO"; then : 7949 xorg_cv_compiler_flag_unknown_warning_option=yes 7950else 7951 xorg_cv_compiler_flag_unknown_warning_option=no 7952fi 7953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7954fi 7955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 7956$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 7957 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 7958 CFLAGS="$xorg_testset_save_CFLAGS" 7959fi 7960 7961if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 7962 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7964 fi 7965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 7967$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 7968if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 7969 $as_echo_n "(cached) " >&6 7970else 7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7972/* end confdefs.h. */ 7973int i; 7974_ACEOF 7975if ac_fn_c_try_compile "$LINENO"; then : 7976 xorg_cv_compiler_flag_unused_command_line_argument=yes 7977else 7978 xorg_cv_compiler_flag_unused_command_line_argument=no 7979fi 7980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7981fi 7982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 7983$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 7984 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 7985 CFLAGS="$xorg_testset_save_CFLAGS" 7986fi 7987 7988found="no" 7989 7990 if test $found = "no" ; then 7991 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7993 fi 7994 7995 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7997 fi 7998 7999 CFLAGS="$CFLAGS -Werror=address" 8000 8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8002$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8003 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address` 8004 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8005 $as_echo_n "(cached) " >&6 8006else 8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8008/* end confdefs.h. */ 8009int i; 8010int 8011main () 8012{ 8013 8014 ; 8015 return 0; 8016} 8017_ACEOF 8018if ac_fn_c_try_link "$LINENO"; then : 8019 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8020else 8021 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8022fi 8023rm -f core conftest.err conftest.$ac_objext \ 8024 conftest$ac_exeext conftest.$ac_ext 8025fi 8026 8027 8028 CFLAGS="$xorg_testset_save_CFLAGS" 8029 8030 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8032$as_echo "$supported" >&6; } 8033 if test "$supported" = "yes" ; then 8034 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8035 found="yes" 8036 fi 8037 fi 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051xorg_testset_save_CFLAGS="$CFLAGS" 8052 8053if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 8056$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 8057if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 8058 $as_echo_n "(cached) " >&6 8059else 8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8061/* end confdefs.h. */ 8062int i; 8063_ACEOF 8064if ac_fn_c_try_compile "$LINENO"; then : 8065 xorg_cv_compiler_flag_unknown_warning_option=yes 8066else 8067 xorg_cv_compiler_flag_unknown_warning_option=no 8068fi 8069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8070fi 8071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 8072$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 8073 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 8074 CFLAGS="$xorg_testset_save_CFLAGS" 8075fi 8076 8077if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8078 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8080 fi 8081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 8083$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 8084if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 8085 $as_echo_n "(cached) " >&6 8086else 8087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8088/* end confdefs.h. */ 8089int i; 8090_ACEOF 8091if ac_fn_c_try_compile "$LINENO"; then : 8092 xorg_cv_compiler_flag_unused_command_line_argument=yes 8093else 8094 xorg_cv_compiler_flag_unused_command_line_argument=no 8095fi 8096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8097fi 8098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 8099$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 8100 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 8101 CFLAGS="$xorg_testset_save_CFLAGS" 8102fi 8103 8104found="no" 8105 8106 if test $found = "no" ; then 8107 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8109 fi 8110 8111 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8113 fi 8114 8115 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8116 8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8118$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8119 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast` 8120 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8121 $as_echo_n "(cached) " >&6 8122else 8123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8124/* end confdefs.h. */ 8125int i; 8126int 8127main () 8128{ 8129 8130 ; 8131 return 0; 8132} 8133_ACEOF 8134if ac_fn_c_try_link "$LINENO"; then : 8135 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8136else 8137 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8138fi 8139rm -f core conftest.err conftest.$ac_objext \ 8140 conftest$ac_exeext conftest.$ac_ext 8141fi 8142 8143 8144 CFLAGS="$xorg_testset_save_CFLAGS" 8145 8146 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8148$as_echo "$supported" >&6; } 8149 if test "$supported" = "yes" ; then 8150 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8151 found="yes" 8152 fi 8153 fi 8154 8155 if test $found = "no" ; then 8156 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8158 fi 8159 8160 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8162 fi 8163 8164 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8165 8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8167$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8168 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION` 8169 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8170 $as_echo_n "(cached) " >&6 8171else 8172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8173/* end confdefs.h. */ 8174int i; 8175int 8176main () 8177{ 8178 8179 ; 8180 return 0; 8181} 8182_ACEOF 8183if ac_fn_c_try_link "$LINENO"; then : 8184 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8185else 8186 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8187fi 8188rm -f core conftest.err conftest.$ac_objext \ 8189 conftest$ac_exeext conftest.$ac_ext 8190fi 8191 8192 8193 CFLAGS="$xorg_testset_save_CFLAGS" 8194 8195 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8197$as_echo "$supported" >&6; } 8198 if test "$supported" = "yes" ; then 8199 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8200 found="yes" 8201 fi 8202 fi 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216xorg_testset_save_CFLAGS="$CFLAGS" 8217 8218if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 8221$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 8222if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 8223 $as_echo_n "(cached) " >&6 8224else 8225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8226/* end confdefs.h. */ 8227int i; 8228_ACEOF 8229if ac_fn_c_try_compile "$LINENO"; then : 8230 xorg_cv_compiler_flag_unknown_warning_option=yes 8231else 8232 xorg_cv_compiler_flag_unknown_warning_option=no 8233fi 8234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8235fi 8236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 8237$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 8238 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 8239 CFLAGS="$xorg_testset_save_CFLAGS" 8240fi 8241 8242if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8243 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8245 fi 8246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 8248$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 8249if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 8250 $as_echo_n "(cached) " >&6 8251else 8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8253/* end confdefs.h. */ 8254int i; 8255_ACEOF 8256if ac_fn_c_try_compile "$LINENO"; then : 8257 xorg_cv_compiler_flag_unused_command_line_argument=yes 8258else 8259 xorg_cv_compiler_flag_unused_command_line_argument=no 8260fi 8261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8262fi 8263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 8264$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 8265 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 8266 CFLAGS="$xorg_testset_save_CFLAGS" 8267fi 8268 8269found="no" 8270 8271 if test $found = "no" ; then 8272 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8274 fi 8275 8276 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8278 fi 8279 8280 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8281 8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8283$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8284 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast` 8285 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8286 $as_echo_n "(cached) " >&6 8287else 8288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8289/* end confdefs.h. */ 8290int i; 8291int 8292main () 8293{ 8294 8295 ; 8296 return 0; 8297} 8298_ACEOF 8299if ac_fn_c_try_link "$LINENO"; then : 8300 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8301else 8302 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8303fi 8304rm -f core conftest.err conftest.$ac_objext \ 8305 conftest$ac_exeext conftest.$ac_ext 8306fi 8307 8308 8309 CFLAGS="$xorg_testset_save_CFLAGS" 8310 8311 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8313$as_echo "$supported" >&6; } 8314 if test "$supported" = "yes" ; then 8315 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8316 found="yes" 8317 fi 8318 fi 8319 8320 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8321else 8322{ $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 8323$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;} 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335xorg_testset_save_CFLAGS="$CFLAGS" 8336 8337if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 8340$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 8341if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 8342 $as_echo_n "(cached) " >&6 8343else 8344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8345/* end confdefs.h. */ 8346int i; 8347_ACEOF 8348if ac_fn_c_try_compile "$LINENO"; then : 8349 xorg_cv_compiler_flag_unknown_warning_option=yes 8350else 8351 xorg_cv_compiler_flag_unknown_warning_option=no 8352fi 8353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8354fi 8355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 8356$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 8357 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 8358 CFLAGS="$xorg_testset_save_CFLAGS" 8359fi 8360 8361if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8362 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8364 fi 8365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 8367$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 8368if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 8369 $as_echo_n "(cached) " >&6 8370else 8371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8372/* end confdefs.h. */ 8373int i; 8374_ACEOF 8375if ac_fn_c_try_compile "$LINENO"; then : 8376 xorg_cv_compiler_flag_unused_command_line_argument=yes 8377else 8378 xorg_cv_compiler_flag_unused_command_line_argument=no 8379fi 8380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8381fi 8382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 8383$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 8384 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 8385 CFLAGS="$xorg_testset_save_CFLAGS" 8386fi 8387 8388found="no" 8389 8390 if test $found = "no" ; then 8391 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8393 fi 8394 8395 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8397 fi 8398 8399 CFLAGS="$CFLAGS -Wimplicit" 8400 8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8402$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8403 cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit` 8404 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8405 $as_echo_n "(cached) " >&6 8406else 8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8408/* end confdefs.h. */ 8409int i; 8410int 8411main () 8412{ 8413 8414 ; 8415 return 0; 8416} 8417_ACEOF 8418if ac_fn_c_try_link "$LINENO"; then : 8419 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8420else 8421 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8422fi 8423rm -f core conftest.err conftest.$ac_objext \ 8424 conftest$ac_exeext conftest.$ac_ext 8425fi 8426 8427 8428 CFLAGS="$xorg_testset_save_CFLAGS" 8429 8430 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8432$as_echo "$supported" >&6; } 8433 if test "$supported" = "yes" ; then 8434 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8435 found="yes" 8436 fi 8437 fi 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451xorg_testset_save_CFLAGS="$CFLAGS" 8452 8453if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 8456$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 8457if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 8458 $as_echo_n "(cached) " >&6 8459else 8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8461/* end confdefs.h. */ 8462int i; 8463_ACEOF 8464if ac_fn_c_try_compile "$LINENO"; then : 8465 xorg_cv_compiler_flag_unknown_warning_option=yes 8466else 8467 xorg_cv_compiler_flag_unknown_warning_option=no 8468fi 8469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8470fi 8471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 8472$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 8473 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 8474 CFLAGS="$xorg_testset_save_CFLAGS" 8475fi 8476 8477if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8478 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8480 fi 8481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 8483$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 8484if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 8485 $as_echo_n "(cached) " >&6 8486else 8487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8488/* end confdefs.h. */ 8489int i; 8490_ACEOF 8491if ac_fn_c_try_compile "$LINENO"; then : 8492 xorg_cv_compiler_flag_unused_command_line_argument=yes 8493else 8494 xorg_cv_compiler_flag_unused_command_line_argument=no 8495fi 8496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8497fi 8498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 8499$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 8500 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 8501 CFLAGS="$xorg_testset_save_CFLAGS" 8502fi 8503 8504found="no" 8505 8506 if test $found = "no" ; then 8507 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8509 fi 8510 8511 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8513 fi 8514 8515 CFLAGS="$CFLAGS -Wnonnull" 8516 8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8518$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8519 cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull` 8520 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8521 $as_echo_n "(cached) " >&6 8522else 8523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8524/* end confdefs.h. */ 8525int i; 8526int 8527main () 8528{ 8529 8530 ; 8531 return 0; 8532} 8533_ACEOF 8534if ac_fn_c_try_link "$LINENO"; then : 8535 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8536else 8537 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8538fi 8539rm -f core conftest.err conftest.$ac_objext \ 8540 conftest$ac_exeext conftest.$ac_ext 8541fi 8542 8543 8544 CFLAGS="$xorg_testset_save_CFLAGS" 8545 8546 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8548$as_echo "$supported" >&6; } 8549 if test "$supported" = "yes" ; then 8550 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8551 found="yes" 8552 fi 8553 fi 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567xorg_testset_save_CFLAGS="$CFLAGS" 8568 8569if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 8572$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 8573if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 8574 $as_echo_n "(cached) " >&6 8575else 8576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8577/* end confdefs.h. */ 8578int i; 8579_ACEOF 8580if ac_fn_c_try_compile "$LINENO"; then : 8581 xorg_cv_compiler_flag_unknown_warning_option=yes 8582else 8583 xorg_cv_compiler_flag_unknown_warning_option=no 8584fi 8585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8586fi 8587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 8588$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 8589 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 8590 CFLAGS="$xorg_testset_save_CFLAGS" 8591fi 8592 8593if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8594 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8596 fi 8597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 8599$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 8600if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 8601 $as_echo_n "(cached) " >&6 8602else 8603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8604/* end confdefs.h. */ 8605int i; 8606_ACEOF 8607if ac_fn_c_try_compile "$LINENO"; then : 8608 xorg_cv_compiler_flag_unused_command_line_argument=yes 8609else 8610 xorg_cv_compiler_flag_unused_command_line_argument=no 8611fi 8612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8613fi 8614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 8615$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 8616 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 8617 CFLAGS="$xorg_testset_save_CFLAGS" 8618fi 8619 8620found="no" 8621 8622 if test $found = "no" ; then 8623 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8625 fi 8626 8627 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8629 fi 8630 8631 CFLAGS="$CFLAGS -Winit-self" 8632 8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8634$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8635 cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self` 8636 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8637 $as_echo_n "(cached) " >&6 8638else 8639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8640/* end confdefs.h. */ 8641int i; 8642int 8643main () 8644{ 8645 8646 ; 8647 return 0; 8648} 8649_ACEOF 8650if ac_fn_c_try_link "$LINENO"; then : 8651 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8652else 8653 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8654fi 8655rm -f core conftest.err conftest.$ac_objext \ 8656 conftest$ac_exeext conftest.$ac_ext 8657fi 8658 8659 8660 CFLAGS="$xorg_testset_save_CFLAGS" 8661 8662 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8664$as_echo "$supported" >&6; } 8665 if test "$supported" = "yes" ; then 8666 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8667 found="yes" 8668 fi 8669 fi 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683xorg_testset_save_CFLAGS="$CFLAGS" 8684 8685if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 8688$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 8689if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 8690 $as_echo_n "(cached) " >&6 8691else 8692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8693/* end confdefs.h. */ 8694int i; 8695_ACEOF 8696if ac_fn_c_try_compile "$LINENO"; then : 8697 xorg_cv_compiler_flag_unknown_warning_option=yes 8698else 8699 xorg_cv_compiler_flag_unknown_warning_option=no 8700fi 8701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8702fi 8703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 8704$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 8705 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 8706 CFLAGS="$xorg_testset_save_CFLAGS" 8707fi 8708 8709if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8710 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8712 fi 8713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 8715$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 8716if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 8717 $as_echo_n "(cached) " >&6 8718else 8719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8720/* end confdefs.h. */ 8721int i; 8722_ACEOF 8723if ac_fn_c_try_compile "$LINENO"; then : 8724 xorg_cv_compiler_flag_unused_command_line_argument=yes 8725else 8726 xorg_cv_compiler_flag_unused_command_line_argument=no 8727fi 8728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8729fi 8730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 8731$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 8732 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 8733 CFLAGS="$xorg_testset_save_CFLAGS" 8734fi 8735 8736found="no" 8737 8738 if test $found = "no" ; then 8739 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8741 fi 8742 8743 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8745 fi 8746 8747 CFLAGS="$CFLAGS -Wmain" 8748 8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8750$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8751 cacheid=`$as_echo xorg_cv_cc_flag_-Wmain` 8752 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8753 $as_echo_n "(cached) " >&6 8754else 8755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8756/* end confdefs.h. */ 8757int i; 8758int 8759main () 8760{ 8761 8762 ; 8763 return 0; 8764} 8765_ACEOF 8766if ac_fn_c_try_link "$LINENO"; then : 8767 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8768else 8769 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8770fi 8771rm -f core conftest.err conftest.$ac_objext \ 8772 conftest$ac_exeext conftest.$ac_ext 8773fi 8774 8775 8776 CFLAGS="$xorg_testset_save_CFLAGS" 8777 8778 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8780$as_echo "$supported" >&6; } 8781 if test "$supported" = "yes" ; then 8782 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8783 found="yes" 8784 fi 8785 fi 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799xorg_testset_save_CFLAGS="$CFLAGS" 8800 8801if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 8804$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 8805if ${xorg_cv_compiler_flag_unknown_warning_option+:} 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_compiler_flag_unknown_warning_option=yes 8814else 8815 xorg_cv_compiler_flag_unknown_warning_option=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_compiler_flag_unknown_warning_option" >&5 8820$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 8821 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 8822 CFLAGS="$xorg_testset_save_CFLAGS" 8823fi 8824 8825if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8826 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8828 fi 8829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 8831$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 8832if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 8833 $as_echo_n "(cached) " >&6 8834else 8835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8836/* end confdefs.h. */ 8837int i; 8838_ACEOF 8839if ac_fn_c_try_compile "$LINENO"; then : 8840 xorg_cv_compiler_flag_unused_command_line_argument=yes 8841else 8842 xorg_cv_compiler_flag_unused_command_line_argument=no 8843fi 8844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8845fi 8846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 8847$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 8848 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 8849 CFLAGS="$xorg_testset_save_CFLAGS" 8850fi 8851 8852found="no" 8853 8854 if test $found = "no" ; then 8855 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8857 fi 8858 8859 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8861 fi 8862 8863 CFLAGS="$CFLAGS -Wmissing-braces" 8864 8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8866$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 8867 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces` 8868 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8869 $as_echo_n "(cached) " >&6 8870else 8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8872/* end confdefs.h. */ 8873int i; 8874int 8875main () 8876{ 8877 8878 ; 8879 return 0; 8880} 8881_ACEOF 8882if ac_fn_c_try_link "$LINENO"; then : 8883 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 8884else 8885 eval `$as_echo "$cacheid" | $as_tr_sh`=no 8886fi 8887rm -f core conftest.err conftest.$ac_objext \ 8888 conftest$ac_exeext conftest.$ac_ext 8889fi 8890 8891 8892 CFLAGS="$xorg_testset_save_CFLAGS" 8893 8894 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8896$as_echo "$supported" >&6; } 8897 if test "$supported" = "yes" ; then 8898 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8899 found="yes" 8900 fi 8901 fi 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915xorg_testset_save_CFLAGS="$CFLAGS" 8916 8917if test "x$xorg_testset_unknown_warning_option" = "x" ; then 8918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 8920$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 8921if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 8922 $as_echo_n "(cached) " >&6 8923else 8924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8925/* end confdefs.h. */ 8926int i; 8927_ACEOF 8928if ac_fn_c_try_compile "$LINENO"; then : 8929 xorg_cv_compiler_flag_unknown_warning_option=yes 8930else 8931 xorg_cv_compiler_flag_unknown_warning_option=no 8932fi 8933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8934fi 8935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 8936$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 8937 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 8938 CFLAGS="$xorg_testset_save_CFLAGS" 8939fi 8940 8941if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 8942 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8944 fi 8945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 8947$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 8948if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 8949 $as_echo_n "(cached) " >&6 8950else 8951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8952/* end confdefs.h. */ 8953int i; 8954_ACEOF 8955if ac_fn_c_try_compile "$LINENO"; then : 8956 xorg_cv_compiler_flag_unused_command_line_argument=yes 8957else 8958 xorg_cv_compiler_flag_unused_command_line_argument=no 8959fi 8960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8961fi 8962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 8963$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 8964 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 8965 CFLAGS="$xorg_testset_save_CFLAGS" 8966fi 8967 8968found="no" 8969 8970 if test $found = "no" ; then 8971 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8973 fi 8974 8975 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8977 fi 8978 8979 CFLAGS="$CFLAGS -Wsequence-point" 8980 8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 8982$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 8983 cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point` 8984 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 8985 $as_echo_n "(cached) " >&6 8986else 8987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8988/* end confdefs.h. */ 8989int i; 8990int 8991main () 8992{ 8993 8994 ; 8995 return 0; 8996} 8997_ACEOF 8998if ac_fn_c_try_link "$LINENO"; then : 8999 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9000else 9001 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9002fi 9003rm -f core conftest.err conftest.$ac_objext \ 9004 conftest$ac_exeext conftest.$ac_ext 9005fi 9006 9007 9008 CFLAGS="$xorg_testset_save_CFLAGS" 9009 9010 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9012$as_echo "$supported" >&6; } 9013 if test "$supported" = "yes" ; then 9014 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9015 found="yes" 9016 fi 9017 fi 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031xorg_testset_save_CFLAGS="$CFLAGS" 9032 9033if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 9036$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 9037if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 9038 $as_echo_n "(cached) " >&6 9039else 9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9041/* end confdefs.h. */ 9042int i; 9043_ACEOF 9044if ac_fn_c_try_compile "$LINENO"; then : 9045 xorg_cv_compiler_flag_unknown_warning_option=yes 9046else 9047 xorg_cv_compiler_flag_unknown_warning_option=no 9048fi 9049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9050fi 9051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 9052$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 9053 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 9054 CFLAGS="$xorg_testset_save_CFLAGS" 9055fi 9056 9057if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9058 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9060 fi 9061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 9063$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 9064if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 9065 $as_echo_n "(cached) " >&6 9066else 9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9068/* end confdefs.h. */ 9069int i; 9070_ACEOF 9071if ac_fn_c_try_compile "$LINENO"; then : 9072 xorg_cv_compiler_flag_unused_command_line_argument=yes 9073else 9074 xorg_cv_compiler_flag_unused_command_line_argument=no 9075fi 9076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9077fi 9078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 9079$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 9080 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 9081 CFLAGS="$xorg_testset_save_CFLAGS" 9082fi 9083 9084found="no" 9085 9086 if test $found = "no" ; then 9087 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9089 fi 9090 9091 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9093 fi 9094 9095 CFLAGS="$CFLAGS -Wreturn-type" 9096 9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9098$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9099 cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type` 9100 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9101 $as_echo_n "(cached) " >&6 9102else 9103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9104/* end confdefs.h. */ 9105int i; 9106int 9107main () 9108{ 9109 9110 ; 9111 return 0; 9112} 9113_ACEOF 9114if ac_fn_c_try_link "$LINENO"; then : 9115 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9116else 9117 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9118fi 9119rm -f core conftest.err conftest.$ac_objext \ 9120 conftest$ac_exeext conftest.$ac_ext 9121fi 9122 9123 9124 CFLAGS="$xorg_testset_save_CFLAGS" 9125 9126 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9128$as_echo "$supported" >&6; } 9129 if test "$supported" = "yes" ; then 9130 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9131 found="yes" 9132 fi 9133 fi 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147xorg_testset_save_CFLAGS="$CFLAGS" 9148 9149if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 9152$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 9153if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 9154 $as_echo_n "(cached) " >&6 9155else 9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9157/* end confdefs.h. */ 9158int i; 9159_ACEOF 9160if ac_fn_c_try_compile "$LINENO"; then : 9161 xorg_cv_compiler_flag_unknown_warning_option=yes 9162else 9163 xorg_cv_compiler_flag_unknown_warning_option=no 9164fi 9165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9166fi 9167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 9168$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 9169 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 9170 CFLAGS="$xorg_testset_save_CFLAGS" 9171fi 9172 9173if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9174 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9176 fi 9177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 9179$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 9180if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 9181 $as_echo_n "(cached) " >&6 9182else 9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9184/* end confdefs.h. */ 9185int i; 9186_ACEOF 9187if ac_fn_c_try_compile "$LINENO"; then : 9188 xorg_cv_compiler_flag_unused_command_line_argument=yes 9189else 9190 xorg_cv_compiler_flag_unused_command_line_argument=no 9191fi 9192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9193fi 9194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 9195$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 9196 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 9197 CFLAGS="$xorg_testset_save_CFLAGS" 9198fi 9199 9200found="no" 9201 9202 if test $found = "no" ; then 9203 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9205 fi 9206 9207 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9209 fi 9210 9211 CFLAGS="$CFLAGS -Wtrigraphs" 9212 9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9214$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9215 cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs` 9216 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9217 $as_echo_n "(cached) " >&6 9218else 9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9220/* end confdefs.h. */ 9221int i; 9222int 9223main () 9224{ 9225 9226 ; 9227 return 0; 9228} 9229_ACEOF 9230if ac_fn_c_try_link "$LINENO"; then : 9231 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9232else 9233 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9234fi 9235rm -f core conftest.err conftest.$ac_objext \ 9236 conftest$ac_exeext conftest.$ac_ext 9237fi 9238 9239 9240 CFLAGS="$xorg_testset_save_CFLAGS" 9241 9242 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9244$as_echo "$supported" >&6; } 9245 if test "$supported" = "yes" ; then 9246 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9247 found="yes" 9248 fi 9249 fi 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263xorg_testset_save_CFLAGS="$CFLAGS" 9264 9265if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 9268$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 9269if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 9270 $as_echo_n "(cached) " >&6 9271else 9272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9273/* end confdefs.h. */ 9274int i; 9275_ACEOF 9276if ac_fn_c_try_compile "$LINENO"; then : 9277 xorg_cv_compiler_flag_unknown_warning_option=yes 9278else 9279 xorg_cv_compiler_flag_unknown_warning_option=no 9280fi 9281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9282fi 9283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 9284$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 9285 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 9286 CFLAGS="$xorg_testset_save_CFLAGS" 9287fi 9288 9289if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9290 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9292 fi 9293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 9295$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 9296if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 9297 $as_echo_n "(cached) " >&6 9298else 9299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9300/* end confdefs.h. */ 9301int i; 9302_ACEOF 9303if ac_fn_c_try_compile "$LINENO"; then : 9304 xorg_cv_compiler_flag_unused_command_line_argument=yes 9305else 9306 xorg_cv_compiler_flag_unused_command_line_argument=no 9307fi 9308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9309fi 9310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 9311$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 9312 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 9313 CFLAGS="$xorg_testset_save_CFLAGS" 9314fi 9315 9316found="no" 9317 9318 if test $found = "no" ; then 9319 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9321 fi 9322 9323 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9325 fi 9326 9327 CFLAGS="$CFLAGS -Warray-bounds" 9328 9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9330$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9331 cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds` 9332 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9333 $as_echo_n "(cached) " >&6 9334else 9335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9336/* end confdefs.h. */ 9337int i; 9338int 9339main () 9340{ 9341 9342 ; 9343 return 0; 9344} 9345_ACEOF 9346if ac_fn_c_try_link "$LINENO"; then : 9347 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9348else 9349 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9350fi 9351rm -f core conftest.err conftest.$ac_objext \ 9352 conftest$ac_exeext conftest.$ac_ext 9353fi 9354 9355 9356 CFLAGS="$xorg_testset_save_CFLAGS" 9357 9358 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9360$as_echo "$supported" >&6; } 9361 if test "$supported" = "yes" ; then 9362 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9363 found="yes" 9364 fi 9365 fi 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379xorg_testset_save_CFLAGS="$CFLAGS" 9380 9381if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 9384$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 9385if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 9386 $as_echo_n "(cached) " >&6 9387else 9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9389/* end confdefs.h. */ 9390int i; 9391_ACEOF 9392if ac_fn_c_try_compile "$LINENO"; then : 9393 xorg_cv_compiler_flag_unknown_warning_option=yes 9394else 9395 xorg_cv_compiler_flag_unknown_warning_option=no 9396fi 9397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9398fi 9399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 9400$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 9401 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 9402 CFLAGS="$xorg_testset_save_CFLAGS" 9403fi 9404 9405if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9406 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9408 fi 9409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 9411$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 9412if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 9413 $as_echo_n "(cached) " >&6 9414else 9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9416/* end confdefs.h. */ 9417int i; 9418_ACEOF 9419if ac_fn_c_try_compile "$LINENO"; then : 9420 xorg_cv_compiler_flag_unused_command_line_argument=yes 9421else 9422 xorg_cv_compiler_flag_unused_command_line_argument=no 9423fi 9424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9425fi 9426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 9427$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 9428 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 9429 CFLAGS="$xorg_testset_save_CFLAGS" 9430fi 9431 9432found="no" 9433 9434 if test $found = "no" ; then 9435 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9437 fi 9438 9439 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9441 fi 9442 9443 CFLAGS="$CFLAGS -Wwrite-strings" 9444 9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9446$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9447 cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings` 9448 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9449 $as_echo_n "(cached) " >&6 9450else 9451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9452/* end confdefs.h. */ 9453int i; 9454int 9455main () 9456{ 9457 9458 ; 9459 return 0; 9460} 9461_ACEOF 9462if ac_fn_c_try_link "$LINENO"; then : 9463 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9464else 9465 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9466fi 9467rm -f core conftest.err conftest.$ac_objext \ 9468 conftest$ac_exeext conftest.$ac_ext 9469fi 9470 9471 9472 CFLAGS="$xorg_testset_save_CFLAGS" 9473 9474 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9476$as_echo "$supported" >&6; } 9477 if test "$supported" = "yes" ; then 9478 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9479 found="yes" 9480 fi 9481 fi 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495xorg_testset_save_CFLAGS="$CFLAGS" 9496 9497if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 9500$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 9501if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 9502 $as_echo_n "(cached) " >&6 9503else 9504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9505/* end confdefs.h. */ 9506int i; 9507_ACEOF 9508if ac_fn_c_try_compile "$LINENO"; then : 9509 xorg_cv_compiler_flag_unknown_warning_option=yes 9510else 9511 xorg_cv_compiler_flag_unknown_warning_option=no 9512fi 9513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9514fi 9515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 9516$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 9517 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 9518 CFLAGS="$xorg_testset_save_CFLAGS" 9519fi 9520 9521if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9522 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9524 fi 9525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 9527$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 9528if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 9529 $as_echo_n "(cached) " >&6 9530else 9531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9532/* end confdefs.h. */ 9533int i; 9534_ACEOF 9535if ac_fn_c_try_compile "$LINENO"; then : 9536 xorg_cv_compiler_flag_unused_command_line_argument=yes 9537else 9538 xorg_cv_compiler_flag_unused_command_line_argument=no 9539fi 9540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9541fi 9542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 9543$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 9544 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 9545 CFLAGS="$xorg_testset_save_CFLAGS" 9546fi 9547 9548found="no" 9549 9550 if test $found = "no" ; then 9551 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9553 fi 9554 9555 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9557 fi 9558 9559 CFLAGS="$CFLAGS -Waddress" 9560 9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9562$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9563 cacheid=`$as_echo xorg_cv_cc_flag_-Waddress` 9564 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9565 $as_echo_n "(cached) " >&6 9566else 9567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9568/* end confdefs.h. */ 9569int i; 9570int 9571main () 9572{ 9573 9574 ; 9575 return 0; 9576} 9577_ACEOF 9578if ac_fn_c_try_link "$LINENO"; then : 9579 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9580else 9581 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9582fi 9583rm -f core conftest.err conftest.$ac_objext \ 9584 conftest$ac_exeext conftest.$ac_ext 9585fi 9586 9587 9588 CFLAGS="$xorg_testset_save_CFLAGS" 9589 9590 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9592$as_echo "$supported" >&6; } 9593 if test "$supported" = "yes" ; then 9594 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9595 found="yes" 9596 fi 9597 fi 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611xorg_testset_save_CFLAGS="$CFLAGS" 9612 9613if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 9616$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 9617if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 9618 $as_echo_n "(cached) " >&6 9619else 9620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9621/* end confdefs.h. */ 9622int i; 9623_ACEOF 9624if ac_fn_c_try_compile "$LINENO"; then : 9625 xorg_cv_compiler_flag_unknown_warning_option=yes 9626else 9627 xorg_cv_compiler_flag_unknown_warning_option=no 9628fi 9629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9630fi 9631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 9632$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 9633 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 9634 CFLAGS="$xorg_testset_save_CFLAGS" 9635fi 9636 9637if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9638 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9640 fi 9641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 9643$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 9644if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 9645 $as_echo_n "(cached) " >&6 9646else 9647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9648/* end confdefs.h. */ 9649int i; 9650_ACEOF 9651if ac_fn_c_try_compile "$LINENO"; then : 9652 xorg_cv_compiler_flag_unused_command_line_argument=yes 9653else 9654 xorg_cv_compiler_flag_unused_command_line_argument=no 9655fi 9656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9657fi 9658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 9659$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 9660 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 9661 CFLAGS="$xorg_testset_save_CFLAGS" 9662fi 9663 9664found="no" 9665 9666 if test $found = "no" ; then 9667 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9669 fi 9670 9671 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9673 fi 9674 9675 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9676 9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9678$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9679 cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast` 9680 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9681 $as_echo_n "(cached) " >&6 9682else 9683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9684/* end confdefs.h. */ 9685int i; 9686int 9687main () 9688{ 9689 9690 ; 9691 return 0; 9692} 9693_ACEOF 9694if ac_fn_c_try_link "$LINENO"; then : 9695 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9696else 9697 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9698fi 9699rm -f core conftest.err conftest.$ac_objext \ 9700 conftest$ac_exeext conftest.$ac_ext 9701fi 9702 9703 9704 CFLAGS="$xorg_testset_save_CFLAGS" 9705 9706 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9708$as_echo "$supported" >&6; } 9709 if test "$supported" = "yes" ; then 9710 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9711 found="yes" 9712 fi 9713 fi 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727xorg_testset_save_CFLAGS="$CFLAGS" 9728 9729if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 9732$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 9733if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 9734 $as_echo_n "(cached) " >&6 9735else 9736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9737/* end confdefs.h. */ 9738int i; 9739_ACEOF 9740if ac_fn_c_try_compile "$LINENO"; then : 9741 xorg_cv_compiler_flag_unknown_warning_option=yes 9742else 9743 xorg_cv_compiler_flag_unknown_warning_option=no 9744fi 9745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9746fi 9747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 9748$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 9749 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 9750 CFLAGS="$xorg_testset_save_CFLAGS" 9751fi 9752 9753if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9754 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9756 fi 9757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 9759$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 9760if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 9761 $as_echo_n "(cached) " >&6 9762else 9763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9764/* end confdefs.h. */ 9765int i; 9766_ACEOF 9767if ac_fn_c_try_compile "$LINENO"; then : 9768 xorg_cv_compiler_flag_unused_command_line_argument=yes 9769else 9770 xorg_cv_compiler_flag_unused_command_line_argument=no 9771fi 9772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9773fi 9774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 9775$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 9776 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 9777 CFLAGS="$xorg_testset_save_CFLAGS" 9778fi 9779 9780found="no" 9781 9782 if test $found = "no" ; then 9783 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9785 fi 9786 9787 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9789 fi 9790 9791 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9792 9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9794$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9795 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast` 9796 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9797 $as_echo_n "(cached) " >&6 9798else 9799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9800/* end confdefs.h. */ 9801int i; 9802int 9803main () 9804{ 9805 9806 ; 9807 return 0; 9808} 9809_ACEOF 9810if ac_fn_c_try_link "$LINENO"; then : 9811 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9812else 9813 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9814fi 9815rm -f core conftest.err conftest.$ac_objext \ 9816 conftest$ac_exeext conftest.$ac_ext 9817fi 9818 9819 9820 CFLAGS="$xorg_testset_save_CFLAGS" 9821 9822 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9824$as_echo "$supported" >&6; } 9825 if test "$supported" = "yes" ; then 9826 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9827 found="yes" 9828 fi 9829 fi 9830 9831 9832fi 9833 9834 9835 9836 9837 9838 9839 9840 CWARNFLAGS="$BASE_CFLAGS" 9841 if test "x$GCC" = xyes ; then 9842 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9843 fi 9844 9845 9846 9847 9848 9849 9850 9851 9852# Check whether --enable-strict-compilation was given. 9853if test "${enable_strict_compilation+set}" = set; then : 9854 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9855else 9856 STRICT_COMPILE=no 9857fi 9858 9859 9860 9861 9862 9863 9864STRICT_CFLAGS="" 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876xorg_testset_save_CFLAGS="$CFLAGS" 9877 9878if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 9881$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 9882if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 9883 $as_echo_n "(cached) " >&6 9884else 9885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9886/* end confdefs.h. */ 9887int i; 9888_ACEOF 9889if ac_fn_c_try_compile "$LINENO"; then : 9890 xorg_cv_compiler_flag_unknown_warning_option=yes 9891else 9892 xorg_cv_compiler_flag_unknown_warning_option=no 9893fi 9894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9895fi 9896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 9897$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 9898 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 9899 CFLAGS="$xorg_testset_save_CFLAGS" 9900fi 9901 9902if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 9903 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9905 fi 9906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 9908$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 9909if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 9910 $as_echo_n "(cached) " >&6 9911else 9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9913/* end confdefs.h. */ 9914int i; 9915_ACEOF 9916if ac_fn_c_try_compile "$LINENO"; then : 9917 xorg_cv_compiler_flag_unused_command_line_argument=yes 9918else 9919 xorg_cv_compiler_flag_unused_command_line_argument=no 9920fi 9921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9922fi 9923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 9924$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 9925 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 9926 CFLAGS="$xorg_testset_save_CFLAGS" 9927fi 9928 9929found="no" 9930 9931 if test $found = "no" ; then 9932 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9934 fi 9935 9936 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9938 fi 9939 9940 CFLAGS="$CFLAGS -pedantic" 9941 9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 9943$as_echo_n "checking if $CC supports -pedantic... " >&6; } 9944 cacheid=`$as_echo xorg_cv_cc_flag_-pedantic` 9945 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 9946 $as_echo_n "(cached) " >&6 9947else 9948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9949/* end confdefs.h. */ 9950int i; 9951int 9952main () 9953{ 9954 9955 ; 9956 return 0; 9957} 9958_ACEOF 9959if ac_fn_c_try_link "$LINENO"; then : 9960 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 9961else 9962 eval `$as_echo "$cacheid" | $as_tr_sh`=no 9963fi 9964rm -f core conftest.err conftest.$ac_objext \ 9965 conftest$ac_exeext conftest.$ac_ext 9966fi 9967 9968 9969 CFLAGS="$xorg_testset_save_CFLAGS" 9970 9971 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9973$as_echo "$supported" >&6; } 9974 if test "$supported" = "yes" ; then 9975 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 9976 found="yes" 9977 fi 9978 fi 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992xorg_testset_save_CFLAGS="$CFLAGS" 9993 9994if test "x$xorg_testset_unknown_warning_option" = "x" ; then 9995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 9997$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 9998if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 9999 $as_echo_n "(cached) " >&6 10000else 10001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10002/* end confdefs.h. */ 10003int i; 10004_ACEOF 10005if ac_fn_c_try_compile "$LINENO"; then : 10006 xorg_cv_compiler_flag_unknown_warning_option=yes 10007else 10008 xorg_cv_compiler_flag_unknown_warning_option=no 10009fi 10010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10011fi 10012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 10013$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 10014 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 10015 CFLAGS="$xorg_testset_save_CFLAGS" 10016fi 10017 10018if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 10019 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10021 fi 10022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 10024$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 10025if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 10026 $as_echo_n "(cached) " >&6 10027else 10028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10029/* end confdefs.h. */ 10030int i; 10031_ACEOF 10032if ac_fn_c_try_compile "$LINENO"; then : 10033 xorg_cv_compiler_flag_unused_command_line_argument=yes 10034else 10035 xorg_cv_compiler_flag_unused_command_line_argument=no 10036fi 10037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10038fi 10039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 10040$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 10041 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 10042 CFLAGS="$xorg_testset_save_CFLAGS" 10043fi 10044 10045found="no" 10046 10047 if test $found = "no" ; then 10048 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10050 fi 10051 10052 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10054 fi 10055 10056 CFLAGS="$CFLAGS -Werror" 10057 10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10059$as_echo_n "checking if $CC supports -Werror... " >&6; } 10060 cacheid=`$as_echo xorg_cv_cc_flag_-Werror` 10061 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 10062 $as_echo_n "(cached) " >&6 10063else 10064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10065/* end confdefs.h. */ 10066int i; 10067int 10068main () 10069{ 10070 10071 ; 10072 return 0; 10073} 10074_ACEOF 10075if ac_fn_c_try_link "$LINENO"; then : 10076 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 10077else 10078 eval `$as_echo "$cacheid" | $as_tr_sh`=no 10079fi 10080rm -f core conftest.err conftest.$ac_objext \ 10081 conftest$ac_exeext conftest.$ac_ext 10082fi 10083 10084 10085 CFLAGS="$xorg_testset_save_CFLAGS" 10086 10087 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10089$as_echo "$supported" >&6; } 10090 if test "$supported" = "yes" ; then 10091 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10092 found="yes" 10093 fi 10094 fi 10095 10096 if test $found = "no" ; then 10097 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10099 fi 10100 10101 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10103 fi 10104 10105 CFLAGS="$CFLAGS -errwarn" 10106 10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10108$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10109 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn` 10110 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 10111 $as_echo_n "(cached) " >&6 10112else 10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10114/* end confdefs.h. */ 10115int i; 10116int 10117main () 10118{ 10119 10120 ; 10121 return 0; 10122} 10123_ACEOF 10124if ac_fn_c_try_link "$LINENO"; then : 10125 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 10126else 10127 eval `$as_echo "$cacheid" | $as_tr_sh`=no 10128fi 10129rm -f core conftest.err conftest.$ac_objext \ 10130 conftest$ac_exeext conftest.$ac_ext 10131fi 10132 10133 10134 CFLAGS="$xorg_testset_save_CFLAGS" 10135 10136 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10138$as_echo "$supported" >&6; } 10139 if test "$supported" = "yes" ; then 10140 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10141 found="yes" 10142 fi 10143 fi 10144 10145 10146 10147# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10148# activate it with -Werror, so we add it here explicitly. 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160xorg_testset_save_CFLAGS="$CFLAGS" 10161 10162if test "x$xorg_testset_unknown_warning_option" = "x" ; then 10163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5 10165$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; } 10166if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then : 10167 $as_echo_n "(cached) " >&6 10168else 10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10170/* end confdefs.h. */ 10171int i; 10172_ACEOF 10173if ac_fn_c_try_compile "$LINENO"; then : 10174 xorg_cv_compiler_flag_unknown_warning_option=yes 10175else 10176 xorg_cv_compiler_flag_unknown_warning_option=no 10177fi 10178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10179fi 10180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5 10181$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; } 10182 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option 10183 CFLAGS="$xorg_testset_save_CFLAGS" 10184fi 10185 10186if test "x$xorg_testset_unused_command_line_argument" = "x" ; then 10187 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10189 fi 10190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5 10192$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; } 10193if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then : 10194 $as_echo_n "(cached) " >&6 10195else 10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10197/* end confdefs.h. */ 10198int i; 10199_ACEOF 10200if ac_fn_c_try_compile "$LINENO"; then : 10201 xorg_cv_compiler_flag_unused_command_line_argument=yes 10202else 10203 xorg_cv_compiler_flag_unused_command_line_argument=no 10204fi 10205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10206fi 10207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5 10208$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; } 10209 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument 10210 CFLAGS="$xorg_testset_save_CFLAGS" 10211fi 10212 10213found="no" 10214 10215 if test $found = "no" ; then 10216 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10218 fi 10219 10220 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10222 fi 10223 10224 CFLAGS="$CFLAGS -Werror=attributes" 10225 10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10227$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10228 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes` 10229 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 10230 $as_echo_n "(cached) " >&6 10231else 10232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10233/* end confdefs.h. */ 10234int i; 10235int 10236main () 10237{ 10238 10239 ; 10240 return 0; 10241} 10242_ACEOF 10243if ac_fn_c_try_link "$LINENO"; then : 10244 eval `$as_echo "$cacheid" | $as_tr_sh`=yes 10245else 10246 eval `$as_echo "$cacheid" | $as_tr_sh`=no 10247fi 10248rm -f core conftest.err conftest.$ac_objext \ 10249 conftest$ac_exeext conftest.$ac_ext 10250fi 10251 10252 10253 CFLAGS="$xorg_testset_save_CFLAGS" 10254 10255 eval supported=$`$as_echo "$cacheid" | $as_tr_sh` 10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10257$as_echo "$supported" >&6; } 10258 if test "$supported" = "yes" ; then 10259 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10260 found="yes" 10261 fi 10262 fi 10263 10264 10265 10266if test "x$STRICT_COMPILE" = "xyes"; then 10267 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10268 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10269fi 10270 10271 10272 10273 10274 10275 10276cat >>confdefs.h <<_ACEOF 10277#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10278_ACEOF 10279 10280 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10281 if test "x$PVM" = "x"; then 10282 PVM="0" 10283 fi 10284 10285cat >>confdefs.h <<_ACEOF 10286#define PACKAGE_VERSION_MINOR $PVM 10287_ACEOF 10288 10289 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10290 if test "x$PVP" = "x"; then 10291 PVP="0" 10292 fi 10293 10294cat >>confdefs.h <<_ACEOF 10295#define PACKAGE_VERSION_PATCHLEVEL $PVP 10296_ACEOF 10297 10298 10299 10300CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10301mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10302|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10303echo 'git directory not found: installing possibly empty changelog.' >&2)" 10304 10305 10306 10307 10308macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10309INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10310mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10311|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10312echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10313 10314 10315 10316 10317 10318 10319if test x$APP_MAN_SUFFIX = x ; then 10320 APP_MAN_SUFFIX=1 10321fi 10322if test x$APP_MAN_DIR = x ; then 10323 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10324fi 10325 10326if test x$LIB_MAN_SUFFIX = x ; then 10327 LIB_MAN_SUFFIX=3 10328fi 10329if test x$LIB_MAN_DIR = x ; then 10330 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10331fi 10332 10333if test x$FILE_MAN_SUFFIX = x ; then 10334 case $host_os in 10335 solaris*) FILE_MAN_SUFFIX=4 ;; 10336 *) FILE_MAN_SUFFIX=5 ;; 10337 esac 10338fi 10339if test x$FILE_MAN_DIR = x ; then 10340 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10341fi 10342 10343if test x$MISC_MAN_SUFFIX = x ; then 10344 case $host_os in 10345 solaris*) MISC_MAN_SUFFIX=5 ;; 10346 *) MISC_MAN_SUFFIX=7 ;; 10347 esac 10348fi 10349if test x$MISC_MAN_DIR = x ; then 10350 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10351fi 10352 10353if test x$DRIVER_MAN_SUFFIX = x ; then 10354 case $host_os in 10355 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10356 *) DRIVER_MAN_SUFFIX=4 ;; 10357 esac 10358fi 10359if test x$DRIVER_MAN_DIR = x ; then 10360 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10361fi 10362 10363if test x$ADMIN_MAN_SUFFIX = x ; then 10364 case $host_os in 10365 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10366 *) ADMIN_MAN_SUFFIX=8 ;; 10367 esac 10368fi 10369if test x$ADMIN_MAN_DIR = x ; then 10370 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10371fi 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387XORG_MAN_PAGE="X Version 11" 10388 10389MAN_SUBSTS="\ 10390 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10391 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10392 -e 's|__xservername__|Xorg|g' \ 10393 -e 's|__xconfigfile__|xorg.conf|g' \ 10394 -e 's|__projectroot__|\$(prefix)|g' \ 10395 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10396 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10397 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10398 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10399 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10400 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10401 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10402 10403 10404 10405# Check whether --enable-silent-rules was given. 10406if test "${enable_silent_rules+set}" = set; then : 10407 enableval=$enable_silent_rules; 10408fi 10409 10410case $enable_silent_rules in 10411yes) AM_DEFAULT_VERBOSITY=0;; 10412no) AM_DEFAULT_VERBOSITY=1;; 10413*) AM_DEFAULT_VERBOSITY=0;; 10414esac 10415AM_BACKSLASH='\' 10416 10417 10418 10419# Avoid stat() failures if a file has a size that doesn't fit in 32-bits 10420# Check whether --enable-largefile was given. 10421if test "${enable_largefile+set}" = set; then : 10422 enableval=$enable_largefile; 10423fi 10424 10425if test "$enable_largefile" != no; then 10426 10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 10428$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 10429if ${ac_cv_sys_largefile_CC+:} false; then : 10430 $as_echo_n "(cached) " >&6 10431else 10432 ac_cv_sys_largefile_CC=no 10433 if test "$GCC" != yes; then 10434 ac_save_CC=$CC 10435 while :; do 10436 # IRIX 6.2 and later do not support large files by default, 10437 # so use the C compiler's -n32 option if that helps. 10438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10439/* end confdefs.h. */ 10440#include <sys/types.h> 10441 /* Check that off_t can represent 2**63 - 1 correctly. 10442 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10443 since some C++ compilers masquerading as C compilers 10444 incorrectly reject 9223372036854775807. */ 10445#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10446 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10447 && LARGE_OFF_T % 2147483647 == 1) 10448 ? 1 : -1]; 10449int 10450main () 10451{ 10452 10453 ; 10454 return 0; 10455} 10456_ACEOF 10457 if ac_fn_c_try_compile "$LINENO"; then : 10458 break 10459fi 10460rm -f core conftest.err conftest.$ac_objext 10461 CC="$CC -n32" 10462 if ac_fn_c_try_compile "$LINENO"; then : 10463 ac_cv_sys_largefile_CC=' -n32'; break 10464fi 10465rm -f core conftest.err conftest.$ac_objext 10466 break 10467 done 10468 CC=$ac_save_CC 10469 rm -f conftest.$ac_ext 10470 fi 10471fi 10472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 10473$as_echo "$ac_cv_sys_largefile_CC" >&6; } 10474 if test "$ac_cv_sys_largefile_CC" != no; then 10475 CC=$CC$ac_cv_sys_largefile_CC 10476 fi 10477 10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 10479$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 10480if ${ac_cv_sys_file_offset_bits+:} false; then : 10481 $as_echo_n "(cached) " >&6 10482else 10483 while :; do 10484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10485/* end confdefs.h. */ 10486#include <sys/types.h> 10487 /* Check that off_t can represent 2**63 - 1 correctly. 10488 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10489 since some C++ compilers masquerading as C compilers 10490 incorrectly reject 9223372036854775807. */ 10491#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10492 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10493 && LARGE_OFF_T % 2147483647 == 1) 10494 ? 1 : -1]; 10495int 10496main () 10497{ 10498 10499 ; 10500 return 0; 10501} 10502_ACEOF 10503if ac_fn_c_try_compile "$LINENO"; then : 10504 ac_cv_sys_file_offset_bits=no; break 10505fi 10506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10508/* end confdefs.h. */ 10509#define _FILE_OFFSET_BITS 64 10510#include <sys/types.h> 10511 /* Check that off_t can represent 2**63 - 1 correctly. 10512 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10513 since some C++ compilers masquerading as C compilers 10514 incorrectly reject 9223372036854775807. */ 10515#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10516 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10517 && LARGE_OFF_T % 2147483647 == 1) 10518 ? 1 : -1]; 10519int 10520main () 10521{ 10522 10523 ; 10524 return 0; 10525} 10526_ACEOF 10527if ac_fn_c_try_compile "$LINENO"; then : 10528 ac_cv_sys_file_offset_bits=64; break 10529fi 10530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10531 ac_cv_sys_file_offset_bits=unknown 10532 break 10533done 10534fi 10535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 10536$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 10537case $ac_cv_sys_file_offset_bits in #( 10538 no | unknown) ;; 10539 *) 10540cat >>confdefs.h <<_ACEOF 10541#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 10542_ACEOF 10543;; 10544esac 10545rm -rf conftest* 10546 if test $ac_cv_sys_file_offset_bits = unknown; then 10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 10548$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 10549if ${ac_cv_sys_large_files+:} false; then : 10550 $as_echo_n "(cached) " >&6 10551else 10552 while :; do 10553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10554/* end confdefs.h. */ 10555#include <sys/types.h> 10556 /* Check that off_t can represent 2**63 - 1 correctly. 10557 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10558 since some C++ compilers masquerading as C compilers 10559 incorrectly reject 9223372036854775807. */ 10560#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10561 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10562 && LARGE_OFF_T % 2147483647 == 1) 10563 ? 1 : -1]; 10564int 10565main () 10566{ 10567 10568 ; 10569 return 0; 10570} 10571_ACEOF 10572if ac_fn_c_try_compile "$LINENO"; then : 10573 ac_cv_sys_large_files=no; break 10574fi 10575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10577/* end confdefs.h. */ 10578#define _LARGE_FILES 1 10579#include <sys/types.h> 10580 /* Check that off_t can represent 2**63 - 1 correctly. 10581 We can't simply define LARGE_OFF_T to be 9223372036854775807, 10582 since some C++ compilers masquerading as C compilers 10583 incorrectly reject 9223372036854775807. */ 10584#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10585 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10586 && LARGE_OFF_T % 2147483647 == 1) 10587 ? 1 : -1]; 10588int 10589main () 10590{ 10591 10592 ; 10593 return 0; 10594} 10595_ACEOF 10596if ac_fn_c_try_compile "$LINENO"; then : 10597 ac_cv_sys_large_files=1; break 10598fi 10599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10600 ac_cv_sys_large_files=unknown 10601 break 10602done 10603fi 10604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 10605$as_echo "$ac_cv_sys_large_files" >&6; } 10606case $ac_cv_sys_large_files in #( 10607 no | unknown) ;; 10608 *) 10609cat >>confdefs.h <<_ACEOF 10610#define _LARGE_FILES $ac_cv_sys_large_files 10611_ACEOF 10612;; 10613esac 10614rm -rf conftest* 10615 fi 10616fi 10617 10618 10619# Checks for pkg-config packages 10620 10621pkg_failed=no 10622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPROTO" >&5 10623$as_echo_n "checking for XPROTO... " >&6; } 10624 10625if test -n "$XPROTO_CFLAGS"; then 10626 pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS" 10627 elif test -n "$PKG_CONFIG"; then 10628 if test -n "$PKG_CONFIG" && \ 10629 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17\""; } >&5 10630 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17") 2>&5 10631 ac_status=$? 10632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10633 test $ac_status = 0; }; then 10634 pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17" 2>/dev/null` 10635else 10636 pkg_failed=yes 10637fi 10638 else 10639 pkg_failed=untried 10640fi 10641if test -n "$XPROTO_LIBS"; then 10642 pkg_cv_XPROTO_LIBS="$XPROTO_LIBS" 10643 elif test -n "$PKG_CONFIG"; then 10644 if test -n "$PKG_CONFIG" && \ 10645 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17\""; } >&5 10646 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17") 2>&5 10647 ac_status=$? 10648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10649 test $ac_status = 0; }; then 10650 pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17" 2>/dev/null` 10651else 10652 pkg_failed=yes 10653fi 10654 else 10655 pkg_failed=untried 10656fi 10657 10658 10659 10660if test $pkg_failed = yes; then 10661 10662if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10663 _pkg_short_errors_supported=yes 10664else 10665 _pkg_short_errors_supported=no 10666fi 10667 if test $_pkg_short_errors_supported = yes; then 10668 XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.17" 2>&1` 10669 else 10670 XPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.17" 2>&1` 10671 fi 10672 # Put the nasty error message in config.log where it belongs 10673 echo "$XPROTO_PKG_ERRORS" >&5 10674 10675 as_fn_error $? "Package requirements (xproto >= 7.0.17) were not met: 10676 10677$XPROTO_PKG_ERRORS 10678 10679Consider adjusting the PKG_CONFIG_PATH environment variable if you 10680installed software in a non-standard prefix. 10681 10682Alternatively, you may set the environment variables XPROTO_CFLAGS 10683and XPROTO_LIBS to avoid the need to call pkg-config. 10684See the pkg-config man page for more details. 10685" "$LINENO" 5 10686elif test $pkg_failed = untried; then 10687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10689as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10690is in your PATH or set the PKG_CONFIG environment variable to the full 10691path to pkg-config. 10692 10693Alternatively, you may set the environment variables XPROTO_CFLAGS 10694and XPROTO_LIBS to avoid the need to call pkg-config. 10695See the pkg-config man page for more details. 10696 10697To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10698See \`config.log' for more details" "$LINENO" 5; } 10699else 10700 XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS 10701 XPROTO_LIBS=$pkg_cv_XPROTO_LIBS 10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10703$as_echo "yes" >&6; } 10704 : 10705fi 10706 10707ac_config_files="$ac_config_files Makefile" 10708 10709cat >confcache <<\_ACEOF 10710# This file is a shell script that caches the results of configure 10711# tests run on this system so they can be shared between configure 10712# scripts and configure runs, see configure's option --config-cache. 10713# It is not useful on other systems. If it contains results you don't 10714# want to keep, you may remove or edit it. 10715# 10716# config.status only pays attention to the cache file if you give it 10717# the --recheck option to rerun configure. 10718# 10719# `ac_cv_env_foo' variables (set or unset) will be overridden when 10720# loading this file, other *unset* `ac_cv_foo' will be assigned the 10721# following values. 10722 10723_ACEOF 10724 10725# The following way of writing the cache mishandles newlines in values, 10726# but we know of no workaround that is simple, portable, and efficient. 10727# So, we kill variables containing newlines. 10728# Ultrix sh set writes to stderr and can't be redirected directly, 10729# and sets the high bit in the cache file unless we assign to the vars. 10730( 10731 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10732 eval ac_val=\$$ac_var 10733 case $ac_val in #( 10734 *${as_nl}*) 10735 case $ac_var in #( 10736 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10737$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10738 esac 10739 case $ac_var in #( 10740 _ | IFS | as_nl) ;; #( 10741 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10742 *) { eval $ac_var=; unset $ac_var;} ;; 10743 esac ;; 10744 esac 10745 done 10746 10747 (set) 2>&1 | 10748 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10749 *${as_nl}ac_space=\ *) 10750 # `set' does not quote correctly, so add quotes: double-quote 10751 # substitution turns \\\\ into \\, and sed turns \\ into \. 10752 sed -n \ 10753 "s/'/'\\\\''/g; 10754 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10755 ;; #( 10756 *) 10757 # `set' quotes correctly as required by POSIX, so do not add quotes. 10758 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10759 ;; 10760 esac | 10761 sort 10762) | 10763 sed ' 10764 /^ac_cv_env_/b end 10765 t clear 10766 :clear 10767 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10768 t end 10769 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10770 :end' >>confcache 10771if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10772 if test -w "$cache_file"; then 10773 if test "x$cache_file" != "x/dev/null"; then 10774 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10775$as_echo "$as_me: updating cache $cache_file" >&6;} 10776 if test ! -f "$cache_file" || test -h "$cache_file"; then 10777 cat confcache >"$cache_file" 10778 else 10779 case $cache_file in #( 10780 */* | ?:*) 10781 mv -f confcache "$cache_file"$$ && 10782 mv -f "$cache_file"$$ "$cache_file" ;; #( 10783 *) 10784 mv -f confcache "$cache_file" ;; 10785 esac 10786 fi 10787 fi 10788 else 10789 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10790$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10791 fi 10792fi 10793rm -f confcache 10794 10795test "x$prefix" = xNONE && prefix=$ac_default_prefix 10796# Let make expand exec_prefix. 10797test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10798 10799DEFS=-DHAVE_CONFIG_H 10800 10801ac_libobjs= 10802ac_ltlibobjs= 10803U= 10804for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10805 # 1. Remove the extension, and $U if already installed. 10806 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10807 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10808 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10809 # will be set to the directory where LIBOBJS objects are built. 10810 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10811 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10812done 10813LIBOBJS=$ac_libobjs 10814 10815LTLIBOBJS=$ac_ltlibobjs 10816 10817 10818if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10819 as_fn_error $? "conditional \"AMDEP\" was never defined. 10820Usually this means the macro was only invoked conditionally." "$LINENO" 5 10821fi 10822if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10823 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10824Usually this means the macro was only invoked conditionally." "$LINENO" 5 10825fi 10826 if test -n "$EXEEXT"; then 10827 am__EXEEXT_TRUE= 10828 am__EXEEXT_FALSE='#' 10829else 10830 am__EXEEXT_TRUE='#' 10831 am__EXEEXT_FALSE= 10832fi 10833 10834if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 10835 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 10836Usually this means the macro was only invoked conditionally." "$LINENO" 5 10837fi 10838 10839: "${CONFIG_STATUS=./config.status}" 10840ac_write_fail=0 10841ac_clean_files_save=$ac_clean_files 10842ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10843{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10844$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10845as_write_fail=0 10846cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10847#! $SHELL 10848# Generated by $as_me. 10849# Run this file to recreate the current configuration. 10850# Compiler output produced by configure, useful for debugging 10851# configure, is in config.log if it exists. 10852 10853debug=false 10854ac_cs_recheck=false 10855ac_cs_silent=false 10856 10857SHELL=\${CONFIG_SHELL-$SHELL} 10858export SHELL 10859_ASEOF 10860cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10861## -------------------- ## 10862## M4sh Initialization. ## 10863## -------------------- ## 10864 10865# Be more Bourne compatible 10866DUALCASE=1; export DUALCASE # for MKS sh 10867if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10868 emulate sh 10869 NULLCMD=: 10870 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10871 # is contrary to our usage. Disable this feature. 10872 alias -g '${1+"$@"}'='"$@"' 10873 setopt NO_GLOB_SUBST 10874else 10875 case `(set -o) 2>/dev/null` in #( 10876 *posix*) : 10877 set -o posix ;; #( 10878 *) : 10879 ;; 10880esac 10881fi 10882 10883 10884as_nl=' 10885' 10886export as_nl 10887# Printing a long string crashes Solaris 7 /usr/bin/printf. 10888as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10889as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10890as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10891# Prefer a ksh shell builtin over an external printf program on Solaris, 10892# but without wasting forks for bash or zsh. 10893if test -z "$BASH_VERSION$ZSH_VERSION" \ 10894 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10895 as_echo='print -r --' 10896 as_echo_n='print -rn --' 10897elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10898 as_echo='printf %s\n' 10899 as_echo_n='printf %s' 10900else 10901 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10902 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10903 as_echo_n='/usr/ucb/echo -n' 10904 else 10905 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10906 as_echo_n_body='eval 10907 arg=$1; 10908 case $arg in #( 10909 *"$as_nl"*) 10910 expr "X$arg" : "X\\(.*\\)$as_nl"; 10911 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10912 esac; 10913 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10914 ' 10915 export as_echo_n_body 10916 as_echo_n='sh -c $as_echo_n_body as_echo' 10917 fi 10918 export as_echo_body 10919 as_echo='sh -c $as_echo_body as_echo' 10920fi 10921 10922# The user is always right. 10923if test "${PATH_SEPARATOR+set}" != set; then 10924 PATH_SEPARATOR=: 10925 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10926 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10927 PATH_SEPARATOR=';' 10928 } 10929fi 10930 10931 10932# IFS 10933# We need space, tab and new line, in precisely that order. Quoting is 10934# there to prevent editors from complaining about space-tab. 10935# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10936# splitting by setting IFS to empty value.) 10937IFS=" "" $as_nl" 10938 10939# Find who we are. Look in the path if we contain no directory separator. 10940as_myself= 10941case $0 in #(( 10942 *[\\/]* ) as_myself=$0 ;; 10943 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10944for as_dir in $PATH 10945do 10946 IFS=$as_save_IFS 10947 test -z "$as_dir" && as_dir=. 10948 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10949 done 10950IFS=$as_save_IFS 10951 10952 ;; 10953esac 10954# We did not find ourselves, most probably we were run as `sh COMMAND' 10955# in which case we are not to be found in the path. 10956if test "x$as_myself" = x; then 10957 as_myself=$0 10958fi 10959if test ! -f "$as_myself"; then 10960 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10961 exit 1 10962fi 10963 10964# Unset variables that we do not need and which cause bugs (e.g. in 10965# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10966# suppresses any "Segmentation fault" message there. '((' could 10967# trigger a bug in pdksh 5.2.14. 10968for as_var in BASH_ENV ENV MAIL MAILPATH 10969do eval test x\${$as_var+set} = xset \ 10970 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10971done 10972PS1='$ ' 10973PS2='> ' 10974PS4='+ ' 10975 10976# NLS nuisances. 10977LC_ALL=C 10978export LC_ALL 10979LANGUAGE=C 10980export LANGUAGE 10981 10982# CDPATH. 10983(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10984 10985 10986# as_fn_error STATUS ERROR [LINENO LOG_FD] 10987# ---------------------------------------- 10988# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10989# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10990# script with STATUS, using 1 if that was 0. 10991as_fn_error () 10992{ 10993 as_status=$1; test $as_status -eq 0 && as_status=1 10994 if test "$4"; then 10995 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10996 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10997 fi 10998 $as_echo "$as_me: error: $2" >&2 10999 as_fn_exit $as_status 11000} # as_fn_error 11001 11002 11003# as_fn_set_status STATUS 11004# ----------------------- 11005# Set $? to STATUS, without forking. 11006as_fn_set_status () 11007{ 11008 return $1 11009} # as_fn_set_status 11010 11011# as_fn_exit STATUS 11012# ----------------- 11013# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11014as_fn_exit () 11015{ 11016 set +e 11017 as_fn_set_status $1 11018 exit $1 11019} # as_fn_exit 11020 11021# as_fn_unset VAR 11022# --------------- 11023# Portably unset VAR. 11024as_fn_unset () 11025{ 11026 { eval $1=; unset $1;} 11027} 11028as_unset=as_fn_unset 11029# as_fn_append VAR VALUE 11030# ---------------------- 11031# Append the text in VALUE to the end of the definition contained in VAR. Take 11032# advantage of any shell optimizations that allow amortized linear growth over 11033# repeated appends, instead of the typical quadratic growth present in naive 11034# implementations. 11035if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11036 eval 'as_fn_append () 11037 { 11038 eval $1+=\$2 11039 }' 11040else 11041 as_fn_append () 11042 { 11043 eval $1=\$$1\$2 11044 } 11045fi # as_fn_append 11046 11047# as_fn_arith ARG... 11048# ------------------ 11049# Perform arithmetic evaluation on the ARGs, and store the result in the 11050# global $as_val. Take advantage of shells that can avoid forks. The arguments 11051# must be portable across $(()) and expr. 11052if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11053 eval 'as_fn_arith () 11054 { 11055 as_val=$(( $* )) 11056 }' 11057else 11058 as_fn_arith () 11059 { 11060 as_val=`expr "$@" || test $? -eq 1` 11061 } 11062fi # as_fn_arith 11063 11064 11065if expr a : '\(a\)' >/dev/null 2>&1 && 11066 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11067 as_expr=expr 11068else 11069 as_expr=false 11070fi 11071 11072if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11073 as_basename=basename 11074else 11075 as_basename=false 11076fi 11077 11078if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11079 as_dirname=dirname 11080else 11081 as_dirname=false 11082fi 11083 11084as_me=`$as_basename -- "$0" || 11085$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11086 X"$0" : 'X\(//\)$' \| \ 11087 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11088$as_echo X/"$0" | 11089 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11090 s//\1/ 11091 q 11092 } 11093 /^X\/\(\/\/\)$/{ 11094 s//\1/ 11095 q 11096 } 11097 /^X\/\(\/\).*/{ 11098 s//\1/ 11099 q 11100 } 11101 s/.*/./; q'` 11102 11103# Avoid depending upon Character Ranges. 11104as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11105as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11106as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11107as_cr_digits='0123456789' 11108as_cr_alnum=$as_cr_Letters$as_cr_digits 11109 11110ECHO_C= ECHO_N= ECHO_T= 11111case `echo -n x` in #((((( 11112-n*) 11113 case `echo 'xy\c'` in 11114 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11115 xy) ECHO_C='\c';; 11116 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11117 ECHO_T=' ';; 11118 esac;; 11119*) 11120 ECHO_N='-n';; 11121esac 11122 11123rm -f conf$$ conf$$.exe conf$$.file 11124if test -d conf$$.dir; then 11125 rm -f conf$$.dir/conf$$.file 11126else 11127 rm -f conf$$.dir 11128 mkdir conf$$.dir 2>/dev/null 11129fi 11130if (echo >conf$$.file) 2>/dev/null; then 11131 if ln -s conf$$.file conf$$ 2>/dev/null; then 11132 as_ln_s='ln -s' 11133 # ... but there are two gotchas: 11134 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11135 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11136 # In both cases, we have to default to `cp -p'. 11137 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11138 as_ln_s='cp -p' 11139 elif ln conf$$.file conf$$ 2>/dev/null; then 11140 as_ln_s=ln 11141 else 11142 as_ln_s='cp -p' 11143 fi 11144else 11145 as_ln_s='cp -p' 11146fi 11147rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11148rmdir conf$$.dir 2>/dev/null 11149 11150 11151# as_fn_mkdir_p 11152# ------------- 11153# Create "$as_dir" as a directory, including parents if necessary. 11154as_fn_mkdir_p () 11155{ 11156 11157 case $as_dir in #( 11158 -*) as_dir=./$as_dir;; 11159 esac 11160 test -d "$as_dir" || eval $as_mkdir_p || { 11161 as_dirs= 11162 while :; do 11163 case $as_dir in #( 11164 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11165 *) as_qdir=$as_dir;; 11166 esac 11167 as_dirs="'$as_qdir' $as_dirs" 11168 as_dir=`$as_dirname -- "$as_dir" || 11169$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11170 X"$as_dir" : 'X\(//\)[^/]' \| \ 11171 X"$as_dir" : 'X\(//\)$' \| \ 11172 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11173$as_echo X"$as_dir" | 11174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11175 s//\1/ 11176 q 11177 } 11178 /^X\(\/\/\)[^/].*/{ 11179 s//\1/ 11180 q 11181 } 11182 /^X\(\/\/\)$/{ 11183 s//\1/ 11184 q 11185 } 11186 /^X\(\/\).*/{ 11187 s//\1/ 11188 q 11189 } 11190 s/.*/./; q'` 11191 test -d "$as_dir" && break 11192 done 11193 test -z "$as_dirs" || eval "mkdir $as_dirs" 11194 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11195 11196 11197} # as_fn_mkdir_p 11198if mkdir -p . 2>/dev/null; then 11199 as_mkdir_p='mkdir -p "$as_dir"' 11200else 11201 test -d ./-p && rmdir ./-p 11202 as_mkdir_p=false 11203fi 11204 11205if test -x / >/dev/null 2>&1; then 11206 as_test_x='test -x' 11207else 11208 if ls -dL / >/dev/null 2>&1; then 11209 as_ls_L_option=L 11210 else 11211 as_ls_L_option= 11212 fi 11213 as_test_x=' 11214 eval sh -c '\'' 11215 if test -d "$1"; then 11216 test -d "$1/."; 11217 else 11218 case $1 in #( 11219 -*)set "./$1";; 11220 esac; 11221 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11222 ???[sx]*):;;*)false;;esac;fi 11223 '\'' sh 11224 ' 11225fi 11226as_executable_p=$as_test_x 11227 11228# Sed expression to map a string onto a valid CPP name. 11229as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11230 11231# Sed expression to map a string onto a valid variable name. 11232as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11233 11234 11235exec 6>&1 11236## ----------------------------------- ## 11237## Main body of $CONFIG_STATUS script. ## 11238## ----------------------------------- ## 11239_ASEOF 11240test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11241 11242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11243# Save the log message, to keep $0 and so on meaningful, and to 11244# report actual input values of CONFIG_FILES etc. instead of their 11245# values after options handling. 11246ac_log=" 11247This file was extended by lndir $as_me 1.0.3, which was 11248generated by GNU Autoconf 2.68. Invocation command line was 11249 11250 CONFIG_FILES = $CONFIG_FILES 11251 CONFIG_HEADERS = $CONFIG_HEADERS 11252 CONFIG_LINKS = $CONFIG_LINKS 11253 CONFIG_COMMANDS = $CONFIG_COMMANDS 11254 $ $0 $@ 11255 11256on `(hostname || uname -n) 2>/dev/null | sed 1q` 11257" 11258 11259_ACEOF 11260 11261case $ac_config_files in *" 11262"*) set x $ac_config_files; shift; ac_config_files=$*;; 11263esac 11264 11265case $ac_config_headers in *" 11266"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11267esac 11268 11269 11270cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11271# Files that config.status was made for. 11272config_files="$ac_config_files" 11273config_headers="$ac_config_headers" 11274config_commands="$ac_config_commands" 11275 11276_ACEOF 11277 11278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11279ac_cs_usage="\ 11280\`$as_me' instantiates files and other configuration actions 11281from templates according to the current configuration. Unless the files 11282and actions are specified as TAGs, all are instantiated by default. 11283 11284Usage: $0 [OPTION]... [TAG]... 11285 11286 -h, --help print this help, then exit 11287 -V, --version print version number and configuration settings, then exit 11288 --config print configuration, then exit 11289 -q, --quiet, --silent 11290 do not print progress messages 11291 -d, --debug don't remove temporary files 11292 --recheck update $as_me by reconfiguring in the same conditions 11293 --file=FILE[:TEMPLATE] 11294 instantiate the configuration file FILE 11295 --header=FILE[:TEMPLATE] 11296 instantiate the configuration header FILE 11297 11298Configuration files: 11299$config_files 11300 11301Configuration headers: 11302$config_headers 11303 11304Configuration commands: 11305$config_commands 11306 11307Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11308 11309_ACEOF 11310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11311ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11312ac_cs_version="\\ 11313lndir config.status 1.0.3 11314configured by $0, generated by GNU Autoconf 2.68, 11315 with options \\"\$ac_cs_config\\" 11316 11317Copyright (C) 2010 Free Software Foundation, Inc. 11318This config.status script is free software; the Free Software Foundation 11319gives unlimited permission to copy, distribute and modify it." 11320 11321ac_pwd='$ac_pwd' 11322srcdir='$srcdir' 11323INSTALL='$INSTALL' 11324MKDIR_P='$MKDIR_P' 11325AWK='$AWK' 11326test -n "\$AWK" || AWK=awk 11327_ACEOF 11328 11329cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11330# The default lists apply if the user does not specify any file. 11331ac_need_defaults=: 11332while test $# != 0 11333do 11334 case $1 in 11335 --*=?*) 11336 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11337 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11338 ac_shift=: 11339 ;; 11340 --*=) 11341 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11342 ac_optarg= 11343 ac_shift=: 11344 ;; 11345 *) 11346 ac_option=$1 11347 ac_optarg=$2 11348 ac_shift=shift 11349 ;; 11350 esac 11351 11352 case $ac_option in 11353 # Handling of the options. 11354 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11355 ac_cs_recheck=: ;; 11356 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11357 $as_echo "$ac_cs_version"; exit ;; 11358 --config | --confi | --conf | --con | --co | --c ) 11359 $as_echo "$ac_cs_config"; exit ;; 11360 --debug | --debu | --deb | --de | --d | -d ) 11361 debug=: ;; 11362 --file | --fil | --fi | --f ) 11363 $ac_shift 11364 case $ac_optarg in 11365 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11366 '') as_fn_error $? "missing file argument" ;; 11367 esac 11368 as_fn_append CONFIG_FILES " '$ac_optarg'" 11369 ac_need_defaults=false;; 11370 --header | --heade | --head | --hea ) 11371 $ac_shift 11372 case $ac_optarg in 11373 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11374 esac 11375 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11376 ac_need_defaults=false;; 11377 --he | --h) 11378 # Conflict between --help and --header 11379 as_fn_error $? "ambiguous option: \`$1' 11380Try \`$0 --help' for more information.";; 11381 --help | --hel | -h ) 11382 $as_echo "$ac_cs_usage"; exit ;; 11383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11384 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11385 ac_cs_silent=: ;; 11386 11387 # This is an error. 11388 -*) as_fn_error $? "unrecognized option: \`$1' 11389Try \`$0 --help' for more information." ;; 11390 11391 *) as_fn_append ac_config_targets " $1" 11392 ac_need_defaults=false ;; 11393 11394 esac 11395 shift 11396done 11397 11398ac_configure_extra_args= 11399 11400if $ac_cs_silent; then 11401 exec 6>/dev/null 11402 ac_configure_extra_args="$ac_configure_extra_args --silent" 11403fi 11404 11405_ACEOF 11406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11407if \$ac_cs_recheck; then 11408 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11409 shift 11410 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11411 CONFIG_SHELL='$SHELL' 11412 export CONFIG_SHELL 11413 exec "\$@" 11414fi 11415 11416_ACEOF 11417cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11418exec 5>>config.log 11419{ 11420 echo 11421 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11422## Running $as_me. ## 11423_ASBOX 11424 $as_echo "$ac_log" 11425} >&5 11426 11427_ACEOF 11428cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11429# 11430# INIT-COMMANDS 11431# 11432AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11433 11434_ACEOF 11435 11436cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11437 11438# Handling of arguments. 11439for ac_config_target in $ac_config_targets 11440do 11441 case $ac_config_target in 11442 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11443 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11444 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11445 11446 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11447 esac 11448done 11449 11450 11451# If the user did not use the arguments to specify the items to instantiate, 11452# then the envvar interface is used. Set only those that are not. 11453# We use the long form for the default assignment because of an extremely 11454# bizarre bug on SunOS 4.1.3. 11455if $ac_need_defaults; then 11456 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11457 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11458 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11459fi 11460 11461# Have a temporary directory for convenience. Make it in the build tree 11462# simply because there is no reason against having it here, and in addition, 11463# creating and moving files from /tmp can sometimes cause problems. 11464# Hook for its removal unless debugging. 11465# Note that there is a small window in which the directory will not be cleaned: 11466# after its creation but before its name has been assigned to `$tmp'. 11467$debug || 11468{ 11469 tmp= ac_tmp= 11470 trap 'exit_status=$? 11471 : "${ac_tmp:=$tmp}" 11472 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11473' 0 11474 trap 'as_fn_exit 1' 1 2 13 15 11475} 11476# Create a (secure) tmp directory for tmp files. 11477 11478{ 11479 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11480 test -d "$tmp" 11481} || 11482{ 11483 tmp=./conf$$-$RANDOM 11484 (umask 077 && mkdir "$tmp") 11485} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11486ac_tmp=$tmp 11487 11488# Set up the scripts for CONFIG_FILES section. 11489# No need to generate them if there are no CONFIG_FILES. 11490# This happens for instance with `./config.status config.h'. 11491if test -n "$CONFIG_FILES"; then 11492 11493 11494ac_cr=`echo X | tr X '\015'` 11495# On cygwin, bash can eat \r inside `` if the user requested igncr. 11496# But we know of no other shell where ac_cr would be empty at this 11497# point, so we can use a bashism as a fallback. 11498if test "x$ac_cr" = x; then 11499 eval ac_cr=\$\'\\r\' 11500fi 11501ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11502if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11503 ac_cs_awk_cr='\\r' 11504else 11505 ac_cs_awk_cr=$ac_cr 11506fi 11507 11508echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11509_ACEOF 11510 11511 11512{ 11513 echo "cat >conf$$subs.awk <<_ACEOF" && 11514 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11515 echo "_ACEOF" 11516} >conf$$subs.sh || 11517 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11518ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11519ac_delim='%!_!# ' 11520for ac_last_try in false false false false false :; do 11521 . ./conf$$subs.sh || 11522 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11523 11524 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11525 if test $ac_delim_n = $ac_delim_num; then 11526 break 11527 elif $ac_last_try; then 11528 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11529 else 11530 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11531 fi 11532done 11533rm -f conf$$subs.sh 11534 11535cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11536cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11537_ACEOF 11538sed -n ' 11539h 11540s/^/S["/; s/!.*/"]=/ 11541p 11542g 11543s/^[^!]*!// 11544:repl 11545t repl 11546s/'"$ac_delim"'$// 11547t delim 11548:nl 11549h 11550s/\(.\{148\}\)..*/\1/ 11551t more1 11552s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11553p 11554n 11555b repl 11556:more1 11557s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11558p 11559g 11560s/.\{148\}// 11561t nl 11562:delim 11563h 11564s/\(.\{148\}\)..*/\1/ 11565t more2 11566s/["\\]/\\&/g; s/^/"/; s/$/"/ 11567p 11568b 11569:more2 11570s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11571p 11572g 11573s/.\{148\}// 11574t delim 11575' <conf$$subs.awk | sed ' 11576/^[^""]/{ 11577 N 11578 s/\n// 11579} 11580' >>$CONFIG_STATUS || ac_write_fail=1 11581rm -f conf$$subs.awk 11582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11583_ACAWK 11584cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11585 for (key in S) S_is_set[key] = 1 11586 FS = "" 11587 11588} 11589{ 11590 line = $ 0 11591 nfields = split(line, field, "@") 11592 substed = 0 11593 len = length(field[1]) 11594 for (i = 2; i < nfields; i++) { 11595 key = field[i] 11596 keylen = length(key) 11597 if (S_is_set[key]) { 11598 value = S[key] 11599 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11600 len += length(value) + length(field[++i]) 11601 substed = 1 11602 } else 11603 len += 1 + keylen 11604 } 11605 11606 print line 11607} 11608 11609_ACAWK 11610_ACEOF 11611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11612if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11613 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11614else 11615 cat 11616fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11617 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11618_ACEOF 11619 11620# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11621# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11622# trailing colons and then remove the whole line if VPATH becomes empty 11623# (actually we leave an empty line to preserve line numbers). 11624if test "x$srcdir" = x.; then 11625 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11626h 11627s/// 11628s/^/:/ 11629s/[ ]*$/:/ 11630s/:\$(srcdir):/:/g 11631s/:\${srcdir}:/:/g 11632s/:@srcdir@:/:/g 11633s/^:*// 11634s/:*$// 11635x 11636s/\(=[ ]*\).*/\1/ 11637G 11638s/\n// 11639s/^[^=]*=[ ]*$// 11640}' 11641fi 11642 11643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11644fi # test -n "$CONFIG_FILES" 11645 11646# Set up the scripts for CONFIG_HEADERS section. 11647# No need to generate them if there are no CONFIG_HEADERS. 11648# This happens for instance with `./config.status Makefile'. 11649if test -n "$CONFIG_HEADERS"; then 11650cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11651BEGIN { 11652_ACEOF 11653 11654# Transform confdefs.h into an awk script `defines.awk', embedded as 11655# here-document in config.status, that substitutes the proper values into 11656# config.h.in to produce config.h. 11657 11658# Create a delimiter string that does not exist in confdefs.h, to ease 11659# handling of long lines. 11660ac_delim='%!_!# ' 11661for ac_last_try in false false :; do 11662 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11663 if test -z "$ac_tt"; then 11664 break 11665 elif $ac_last_try; then 11666 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11667 else 11668 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11669 fi 11670done 11671 11672# For the awk script, D is an array of macro values keyed by name, 11673# likewise P contains macro parameters if any. Preserve backslash 11674# newline sequences. 11675 11676ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11677sed -n ' 11678s/.\{148\}/&'"$ac_delim"'/g 11679t rset 11680:rset 11681s/^[ ]*#[ ]*define[ ][ ]*/ / 11682t def 11683d 11684:def 11685s/\\$// 11686t bsnl 11687s/["\\]/\\&/g 11688s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11689D["\1"]=" \3"/p 11690s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11691d 11692:bsnl 11693s/["\\]/\\&/g 11694s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11695D["\1"]=" \3\\\\\\n"\\/p 11696t cont 11697s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11698t cont 11699d 11700:cont 11701n 11702s/.\{148\}/&'"$ac_delim"'/g 11703t clear 11704:clear 11705s/\\$// 11706t bsnlc 11707s/["\\]/\\&/g; s/^/"/; s/$/"/p 11708d 11709:bsnlc 11710s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11711b cont 11712' <confdefs.h | sed ' 11713s/'"$ac_delim"'/"\\\ 11714"/g' >>$CONFIG_STATUS || ac_write_fail=1 11715 11716cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11717 for (key in D) D_is_set[key] = 1 11718 FS = "" 11719} 11720/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11721 line = \$ 0 11722 split(line, arg, " ") 11723 if (arg[1] == "#") { 11724 defundef = arg[2] 11725 mac1 = arg[3] 11726 } else { 11727 defundef = substr(arg[1], 2) 11728 mac1 = arg[2] 11729 } 11730 split(mac1, mac2, "(") #) 11731 macro = mac2[1] 11732 prefix = substr(line, 1, index(line, defundef) - 1) 11733 if (D_is_set[macro]) { 11734 # Preserve the white space surrounding the "#". 11735 print prefix "define", macro P[macro] D[macro] 11736 next 11737 } else { 11738 # Replace #undef with comments. This is necessary, for example, 11739 # in the case of _POSIX_SOURCE, which is predefined and required 11740 # on some systems where configure will not decide to define it. 11741 if (defundef == "undef") { 11742 print "/*", prefix defundef, macro, "*/" 11743 next 11744 } 11745 } 11746} 11747{ print } 11748_ACAWK 11749_ACEOF 11750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11751 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11752fi # test -n "$CONFIG_HEADERS" 11753 11754 11755eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11756shift 11757for ac_tag 11758do 11759 case $ac_tag in 11760 :[FHLC]) ac_mode=$ac_tag; continue;; 11761 esac 11762 case $ac_mode$ac_tag in 11763 :[FHL]*:*);; 11764 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11765 :[FH]-) ac_tag=-:-;; 11766 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11767 esac 11768 ac_save_IFS=$IFS 11769 IFS=: 11770 set x $ac_tag 11771 IFS=$ac_save_IFS 11772 shift 11773 ac_file=$1 11774 shift 11775 11776 case $ac_mode in 11777 :L) ac_source=$1;; 11778 :[FH]) 11779 ac_file_inputs= 11780 for ac_f 11781 do 11782 case $ac_f in 11783 -) ac_f="$ac_tmp/stdin";; 11784 *) # Look for the file first in the build tree, then in the source tree 11785 # (if the path is not absolute). The absolute path cannot be DOS-style, 11786 # because $ac_f cannot contain `:'. 11787 test -f "$ac_f" || 11788 case $ac_f in 11789 [\\/$]*) false;; 11790 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11791 esac || 11792 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11793 esac 11794 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11795 as_fn_append ac_file_inputs " '$ac_f'" 11796 done 11797 11798 # Let's still pretend it is `configure' which instantiates (i.e., don't 11799 # use $as_me), people would be surprised to read: 11800 # /* config.h. Generated by config.status. */ 11801 configure_input='Generated from '` 11802 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11803 `' by configure.' 11804 if test x"$ac_file" != x-; then 11805 configure_input="$ac_file. $configure_input" 11806 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11807$as_echo "$as_me: creating $ac_file" >&6;} 11808 fi 11809 # Neutralize special characters interpreted by sed in replacement strings. 11810 case $configure_input in #( 11811 *\&* | *\|* | *\\* ) 11812 ac_sed_conf_input=`$as_echo "$configure_input" | 11813 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11814 *) ac_sed_conf_input=$configure_input;; 11815 esac 11816 11817 case $ac_tag in 11818 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11819 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11820 esac 11821 ;; 11822 esac 11823 11824 ac_dir=`$as_dirname -- "$ac_file" || 11825$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11826 X"$ac_file" : 'X\(//\)[^/]' \| \ 11827 X"$ac_file" : 'X\(//\)$' \| \ 11828 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11829$as_echo X"$ac_file" | 11830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11831 s//\1/ 11832 q 11833 } 11834 /^X\(\/\/\)[^/].*/{ 11835 s//\1/ 11836 q 11837 } 11838 /^X\(\/\/\)$/{ 11839 s//\1/ 11840 q 11841 } 11842 /^X\(\/\).*/{ 11843 s//\1/ 11844 q 11845 } 11846 s/.*/./; q'` 11847 as_dir="$ac_dir"; as_fn_mkdir_p 11848 ac_builddir=. 11849 11850case "$ac_dir" in 11851.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11852*) 11853 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11854 # A ".." for each directory in $ac_dir_suffix. 11855 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11856 case $ac_top_builddir_sub in 11857 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11858 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11859 esac ;; 11860esac 11861ac_abs_top_builddir=$ac_pwd 11862ac_abs_builddir=$ac_pwd$ac_dir_suffix 11863# for backward compatibility: 11864ac_top_builddir=$ac_top_build_prefix 11865 11866case $srcdir in 11867 .) # We are building in place. 11868 ac_srcdir=. 11869 ac_top_srcdir=$ac_top_builddir_sub 11870 ac_abs_top_srcdir=$ac_pwd ;; 11871 [\\/]* | ?:[\\/]* ) # Absolute name. 11872 ac_srcdir=$srcdir$ac_dir_suffix; 11873 ac_top_srcdir=$srcdir 11874 ac_abs_top_srcdir=$srcdir ;; 11875 *) # Relative name. 11876 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11877 ac_top_srcdir=$ac_top_build_prefix$srcdir 11878 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11879esac 11880ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11881 11882 11883 case $ac_mode in 11884 :F) 11885 # 11886 # CONFIG_FILE 11887 # 11888 11889 case $INSTALL in 11890 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11891 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11892 esac 11893 ac_MKDIR_P=$MKDIR_P 11894 case $MKDIR_P in 11895 [\\/$]* | ?:[\\/]* ) ;; 11896 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11897 esac 11898_ACEOF 11899 11900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11901# If the template does not know about datarootdir, expand it. 11902# FIXME: This hack should be removed a few years after 2.60. 11903ac_datarootdir_hack=; ac_datarootdir_seen= 11904ac_sed_dataroot=' 11905/datarootdir/ { 11906 p 11907 q 11908} 11909/@datadir@/p 11910/@docdir@/p 11911/@infodir@/p 11912/@localedir@/p 11913/@mandir@/p' 11914case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11915*datarootdir*) ac_datarootdir_seen=yes;; 11916*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11918$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11919_ACEOF 11920cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11921 ac_datarootdir_hack=' 11922 s&@datadir@&$datadir&g 11923 s&@docdir@&$docdir&g 11924 s&@infodir@&$infodir&g 11925 s&@localedir@&$localedir&g 11926 s&@mandir@&$mandir&g 11927 s&\\\${datarootdir}&$datarootdir&g' ;; 11928esac 11929_ACEOF 11930 11931# Neutralize VPATH when `$srcdir' = `.'. 11932# Shell code in configure.ac might set extrasub. 11933# FIXME: do we really want to maintain this feature? 11934cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11935ac_sed_extra="$ac_vpsub 11936$extrasub 11937_ACEOF 11938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11939:t 11940/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11941s|@configure_input@|$ac_sed_conf_input|;t t 11942s&@top_builddir@&$ac_top_builddir_sub&;t t 11943s&@top_build_prefix@&$ac_top_build_prefix&;t t 11944s&@srcdir@&$ac_srcdir&;t t 11945s&@abs_srcdir@&$ac_abs_srcdir&;t t 11946s&@top_srcdir@&$ac_top_srcdir&;t t 11947s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11948s&@builddir@&$ac_builddir&;t t 11949s&@abs_builddir@&$ac_abs_builddir&;t t 11950s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11951s&@INSTALL@&$ac_INSTALL&;t t 11952s&@MKDIR_P@&$ac_MKDIR_P&;t t 11953$ac_datarootdir_hack 11954" 11955eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11956 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11957 11958test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11959 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11960 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11961 "$ac_tmp/out"`; test -z "$ac_out"; } && 11962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11963which seems to be undefined. Please make sure it is defined" >&5 11964$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11965which seems to be undefined. Please make sure it is defined" >&2;} 11966 11967 rm -f "$ac_tmp/stdin" 11968 case $ac_file in 11969 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11970 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11971 esac \ 11972 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11973 ;; 11974 :H) 11975 # 11976 # CONFIG_HEADER 11977 # 11978 if test x"$ac_file" != x-; then 11979 { 11980 $as_echo "/* $configure_input */" \ 11981 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11982 } >"$ac_tmp/config.h" \ 11983 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11984 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11985 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11986$as_echo "$as_me: $ac_file is unchanged" >&6;} 11987 else 11988 rm -f "$ac_file" 11989 mv "$ac_tmp/config.h" "$ac_file" \ 11990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11991 fi 11992 else 11993 $as_echo "/* $configure_input */" \ 11994 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11995 || as_fn_error $? "could not create -" "$LINENO" 5 11996 fi 11997# Compute "$ac_file"'s index in $config_headers. 11998_am_arg="$ac_file" 11999_am_stamp_count=1 12000for _am_header in $config_headers :; do 12001 case $_am_header in 12002 $_am_arg | $_am_arg:* ) 12003 break ;; 12004 * ) 12005 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12006 esac 12007done 12008echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12009$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12010 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12011 X"$_am_arg" : 'X\(//\)$' \| \ 12012 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12013$as_echo X"$_am_arg" | 12014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12015 s//\1/ 12016 q 12017 } 12018 /^X\(\/\/\)[^/].*/{ 12019 s//\1/ 12020 q 12021 } 12022 /^X\(\/\/\)$/{ 12023 s//\1/ 12024 q 12025 } 12026 /^X\(\/\).*/{ 12027 s//\1/ 12028 q 12029 } 12030 s/.*/./; q'`/stamp-h$_am_stamp_count 12031 ;; 12032 12033 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12034$as_echo "$as_me: executing $ac_file commands" >&6;} 12035 ;; 12036 esac 12037 12038 12039 case $ac_file$ac_mode in 12040 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12041 # Autoconf 2.62 quotes --file arguments for eval, but not when files 12042 # are listed without --file. Let's play safe and only enable the eval 12043 # if we detect the quoting. 12044 case $CONFIG_FILES in 12045 *\'*) eval set x "$CONFIG_FILES" ;; 12046 *) set x $CONFIG_FILES ;; 12047 esac 12048 shift 12049 for mf 12050 do 12051 # Strip MF so we end up with the name of the file. 12052 mf=`echo "$mf" | sed -e 's/:.*$//'` 12053 # Check whether this is an Automake generated Makefile or not. 12054 # We used to match only the files named `Makefile.in', but 12055 # some people rename them; so instead we look at the file content. 12056 # Grep'ing the first line is not enough: some people post-process 12057 # each Makefile.in and add a new line on top of each file to say so. 12058 # Grep'ing the whole file is not good either: AIX grep has a line 12059 # limit of 2048, but all sed's we know have understand at least 4000. 12060 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12061 dirpart=`$as_dirname -- "$mf" || 12062$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12063 X"$mf" : 'X\(//\)[^/]' \| \ 12064 X"$mf" : 'X\(//\)$' \| \ 12065 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12066$as_echo X"$mf" | 12067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12068 s//\1/ 12069 q 12070 } 12071 /^X\(\/\/\)[^/].*/{ 12072 s//\1/ 12073 q 12074 } 12075 /^X\(\/\/\)$/{ 12076 s//\1/ 12077 q 12078 } 12079 /^X\(\/\).*/{ 12080 s//\1/ 12081 q 12082 } 12083 s/.*/./; q'` 12084 else 12085 continue 12086 fi 12087 # Extract the definition of DEPDIR, am__include, and am__quote 12088 # from the Makefile without running `make'. 12089 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12090 test -z "$DEPDIR" && continue 12091 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12092 test -z "am__include" && continue 12093 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12094 # When using ansi2knr, U may be empty or an underscore; expand it 12095 U=`sed -n 's/^U = //p' < "$mf"` 12096 # Find all dependency output files, they are included files with 12097 # $(DEPDIR) in their names. We invoke sed twice because it is the 12098 # simplest approach to changing $(DEPDIR) to its actual value in the 12099 # expansion. 12100 for file in `sed -n " 12101 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12102 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 12103 # Make sure the directory exists. 12104 test -f "$dirpart/$file" && continue 12105 fdir=`$as_dirname -- "$file" || 12106$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12107 X"$file" : 'X\(//\)[^/]' \| \ 12108 X"$file" : 'X\(//\)$' \| \ 12109 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12110$as_echo X"$file" | 12111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12112 s//\1/ 12113 q 12114 } 12115 /^X\(\/\/\)[^/].*/{ 12116 s//\1/ 12117 q 12118 } 12119 /^X\(\/\/\)$/{ 12120 s//\1/ 12121 q 12122 } 12123 /^X\(\/\).*/{ 12124 s//\1/ 12125 q 12126 } 12127 s/.*/./; q'` 12128 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12129 # echo "creating $dirpart/$file" 12130 echo '# dummy' > "$dirpart/$file" 12131 done 12132 done 12133} 12134 ;; 12135 12136 esac 12137done # for ac_tag 12138 12139 12140as_fn_exit 0 12141_ACEOF 12142ac_clean_files=$ac_clean_files_save 12143 12144test $ac_write_fail = 0 || 12145 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12146 12147 12148# configure is writing to config.log, and then calls config.status. 12149# config.status does its own redirection, appending to config.log. 12150# Unfortunately, on DOS this fails, as config.log is still kept open 12151# by configure, so config.status won't be able to write to it; its 12152# output is simply discarded. So we exec the FD to /dev/null, 12153# effectively closing config.log, so it can be properly (re)opened and 12154# appended to by config.status. When coming back to configure, we 12155# need to make the FD available again. 12156if test "$no_create" != yes; then 12157 ac_cs_success=: 12158 ac_config_status_args= 12159 test "$silent" = yes && 12160 ac_config_status_args="$ac_config_status_args --quiet" 12161 exec 5>/dev/null 12162 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12163 exec 5>>config.log 12164 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12165 # would make configure fail if this is the last instruction. 12166 $ac_cs_success || as_fn_exit 1 12167fi 12168if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12170$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12171fi 12172 12173