configure revision 0d229e23
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for fonttosfnt 1.2.2. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/fonttosfnt/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: https://gitlab.freedesktop.org/xorg/app/fonttosfnt/issues 271$0: about your system, including any error possibly output 272$0: before this message. Then install a modern shell, or 273$0: manually run the script under such a shell if you do 274$0: have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315 316# as_fn_mkdir_p 317# ------------- 318# Create "$as_dir" as a directory, including parents if necessary. 319as_fn_mkdir_p () 320{ 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338$as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362} # as_fn_mkdir_p 363 364# as_fn_executable_p FILE 365# ----------------------- 366# Test if FILE is an executable regular file. 367as_fn_executable_p () 368{ 369 test -f "$1" && test -x "$1" 370} # as_fn_executable_p 371# as_fn_append VAR VALUE 372# ---------------------- 373# Append the text in VALUE to the end of the definition contained in VAR. Take 374# advantage of any shell optimizations that allow amortized linear growth over 375# repeated appends, instead of the typical quadratic growth present in naive 376# implementations. 377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387fi # as_fn_append 388 389# as_fn_arith ARG... 390# ------------------ 391# Perform arithmetic evaluation on the ARGs, and store the result in the 392# global $as_val. Take advantage of shells that can avoid forks. The arguments 393# must be portable across $(()) and expr. 394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404fi # as_fn_arith 405 406 407# as_fn_error STATUS ERROR [LINENO LOG_FD] 408# ---------------------------------------- 409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411# script with STATUS, using 1 if that was 0. 412as_fn_error () 413{ 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421} # as_fn_error 422 423if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426else 427 as_expr=false 428fi 429 430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432else 433 as_basename=false 434fi 435 436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438else 439 as_dirname=false 440fi 441 442as_me=`$as_basename -- "$0" || 443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446$as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461# Avoid depending upon Character Ranges. 462as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465as_cr_digits='0123456789' 466as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502} 503 504ECHO_C= ECHO_N= ECHO_T= 505case `echo -n x` in #((((( 506-n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513*) 514 ECHO_N='-n';; 515esac 516 517rm -f conf$$ conf$$.exe conf$$.file 518if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523fi 524if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538else 539 as_ln_s='cp -pR' 540fi 541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542rmdir conf$$.dir 2>/dev/null 543 544if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549fi 550 551as_test_x='test -x' 552as_executable_p=as_fn_executable_p 553 554# Sed expression to map a string onto a valid CPP name. 555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557# Sed expression to map a string onto a valid variable name. 558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560 561test -n "$DJDIR" || exec 7<&0 </dev/null 562exec 6>&1 563 564# Name of the host. 565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566# so uname gets run too. 567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569# 570# Initializations. 571# 572ac_default_prefix=/usr/local 573ac_clean_files= 574ac_config_libobj_dir=. 575LIBOBJS= 576cross_compiling=no 577subdirs= 578MFLAGS= 579MAKEFLAGS= 580 581# Identity of this package. 582PACKAGE_NAME='fonttosfnt' 583PACKAGE_TARNAME='fonttosfnt' 584PACKAGE_VERSION='1.2.2' 585PACKAGE_STRING='fonttosfnt 1.2.2' 586PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/fonttosfnt/issues' 587PACKAGE_URL='' 588 589ac_unique_file="Makefile.am" 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626ac_subst_vars='am__EXEEXT_FALSE 627am__EXEEXT_TRUE 628LTLIBOBJS 629LIBOBJS 630FONTTOSFNT_LIBS 631FONTTOSFNT_CFLAGS 632NEED_SETENV_FALSE 633NEED_SETENV_TRUE 634MAN_SUBSTS 635XORG_MAN_PAGE 636ADMIN_MAN_DIR 637DRIVER_MAN_DIR 638MISC_MAN_DIR 639FILE_MAN_DIR 640LIB_MAN_DIR 641APP_MAN_DIR 642ADMIN_MAN_SUFFIX 643DRIVER_MAN_SUFFIX 644MISC_MAN_SUFFIX 645FILE_MAN_SUFFIX 646LIB_MAN_SUFFIX 647APP_MAN_SUFFIX 648SED 649host_os 650host_vendor 651host_cpu 652host 653build_os 654build_vendor 655build_cpu 656build 657INSTALL_CMD 658PKG_CONFIG_LIBDIR 659PKG_CONFIG_PATH 660PKG_CONFIG 661CHANGELOG_CMD 662STRICT_CFLAGS 663CWARNFLAGS 664BASE_CFLAGS 665EGREP 666GREP 667CPP 668am__fastdepCC_FALSE 669am__fastdepCC_TRUE 670CCDEPMODE 671am__nodep 672AMDEPBACKSLASH 673AMDEP_FALSE 674AMDEP_TRUE 675am__include 676DEPDIR 677OBJEXT 678EXEEXT 679ac_ct_CC 680CPPFLAGS 681LDFLAGS 682CFLAGS 683CC 684AM_BACKSLASH 685AM_DEFAULT_VERBOSITY 686AM_DEFAULT_V 687AM_V 688am__untar 689am__tar 690AMTAR 691am__leading_dot 692SET_MAKE 693AWK 694mkdir_p 695MKDIR_P 696INSTALL_STRIP_PROGRAM 697STRIP 698install_sh 699MAKEINFO 700AUTOHEADER 701AUTOMAKE 702AUTOCONF 703ACLOCAL 704VERSION 705PACKAGE 706CYGPATH_W 707am__isrc 708INSTALL_DATA 709INSTALL_SCRIPT 710INSTALL_PROGRAM 711target_alias 712host_alias 713build_alias 714LIBS 715ECHO_T 716ECHO_N 717ECHO_C 718DEFS 719mandir 720localedir 721libdir 722psdir 723pdfdir 724dvidir 725htmldir 726infodir 727docdir 728oldincludedir 729includedir 730runstatedir 731localstatedir 732sharedstatedir 733sysconfdir 734datadir 735datarootdir 736libexecdir 737sbindir 738bindir 739program_transform_name 740prefix 741exec_prefix 742PACKAGE_URL 743PACKAGE_BUGREPORT 744PACKAGE_STRING 745PACKAGE_VERSION 746PACKAGE_TARNAME 747PACKAGE_NAME 748PATH_SEPARATOR 749SHELL 750am__quote' 751ac_subst_files='' 752ac_user_opts=' 753enable_option_checking 754enable_silent_rules 755enable_dependency_tracking 756enable_selective_werror 757enable_strict_compilation 758' 759 ac_precious_vars='build_alias 760host_alias 761target_alias 762CC 763CFLAGS 764LDFLAGS 765LIBS 766CPPFLAGS 767CPP 768PKG_CONFIG 769PKG_CONFIG_PATH 770PKG_CONFIG_LIBDIR 771FONTTOSFNT_CFLAGS 772FONTTOSFNT_LIBS' 773 774 775# Initialize some variables set by options. 776ac_init_help= 777ac_init_version=false 778ac_unrecognized_opts= 779ac_unrecognized_sep= 780# The variables have the same names as the options, with 781# dashes changed to underlines. 782cache_file=/dev/null 783exec_prefix=NONE 784no_create= 785no_recursion= 786prefix=NONE 787program_prefix=NONE 788program_suffix=NONE 789program_transform_name=s,x,x, 790silent= 791site= 792srcdir= 793verbose= 794x_includes=NONE 795x_libraries=NONE 796 797# Installation directory options. 798# These are left unexpanded so users can "make install exec_prefix=/foo" 799# and all the variables that are supposed to be based on exec_prefix 800# by default will actually change. 801# Use braces instead of parens because sh, perl, etc. also accept them. 802# (The list follows the same order as the GNU Coding Standards.) 803bindir='${exec_prefix}/bin' 804sbindir='${exec_prefix}/sbin' 805libexecdir='${exec_prefix}/libexec' 806datarootdir='${prefix}/share' 807datadir='${datarootdir}' 808sysconfdir='${prefix}/etc' 809sharedstatedir='${prefix}/com' 810localstatedir='${prefix}/var' 811runstatedir='${localstatedir}/run' 812includedir='${prefix}/include' 813oldincludedir='/usr/include' 814docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 815infodir='${datarootdir}/info' 816htmldir='${docdir}' 817dvidir='${docdir}' 818pdfdir='${docdir}' 819psdir='${docdir}' 820libdir='${exec_prefix}/lib' 821localedir='${datarootdir}/locale' 822mandir='${datarootdir}/man' 823 824ac_prev= 825ac_dashdash= 826for ac_option 827do 828 # If the previous option needs an argument, assign it. 829 if test -n "$ac_prev"; then 830 eval $ac_prev=\$ac_option 831 ac_prev= 832 continue 833 fi 834 835 case $ac_option in 836 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 837 *=) ac_optarg= ;; 838 *) ac_optarg=yes ;; 839 esac 840 841 # Accept the important Cygnus configure options, so we can diagnose typos. 842 843 case $ac_dashdash$ac_option in 844 --) 845 ac_dashdash=yes ;; 846 847 -bindir | --bindir | --bindi | --bind | --bin | --bi) 848 ac_prev=bindir ;; 849 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 850 bindir=$ac_optarg ;; 851 852 -build | --build | --buil | --bui | --bu) 853 ac_prev=build_alias ;; 854 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 855 build_alias=$ac_optarg ;; 856 857 -cache-file | --cache-file | --cache-fil | --cache-fi \ 858 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 859 ac_prev=cache_file ;; 860 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 861 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 862 cache_file=$ac_optarg ;; 863 864 --config-cache | -C) 865 cache_file=config.cache ;; 866 867 -datadir | --datadir | --datadi | --datad) 868 ac_prev=datadir ;; 869 -datadir=* | --datadir=* | --datadi=* | --datad=*) 870 datadir=$ac_optarg ;; 871 872 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 873 | --dataroo | --dataro | --datar) 874 ac_prev=datarootdir ;; 875 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 876 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 877 datarootdir=$ac_optarg ;; 878 879 -disable-* | --disable-*) 880 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 881 # Reject names that are not valid shell variable names. 882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 883 as_fn_error $? "invalid feature name: $ac_useropt" 884 ac_useropt_orig=$ac_useropt 885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 886 case $ac_user_opts in 887 *" 888"enable_$ac_useropt" 889"*) ;; 890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 891 ac_unrecognized_sep=', ';; 892 esac 893 eval enable_$ac_useropt=no ;; 894 895 -docdir | --docdir | --docdi | --doc | --do) 896 ac_prev=docdir ;; 897 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 898 docdir=$ac_optarg ;; 899 900 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 901 ac_prev=dvidir ;; 902 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 903 dvidir=$ac_optarg ;; 904 905 -enable-* | --enable-*) 906 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 907 # Reject names that are not valid shell variable names. 908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 909 as_fn_error $? "invalid feature name: $ac_useropt" 910 ac_useropt_orig=$ac_useropt 911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 912 case $ac_user_opts in 913 *" 914"enable_$ac_useropt" 915"*) ;; 916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 917 ac_unrecognized_sep=', ';; 918 esac 919 eval enable_$ac_useropt=\$ac_optarg ;; 920 921 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 922 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 923 | --exec | --exe | --ex) 924 ac_prev=exec_prefix ;; 925 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 926 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 927 | --exec=* | --exe=* | --ex=*) 928 exec_prefix=$ac_optarg ;; 929 930 -gas | --gas | --ga | --g) 931 # Obsolete; use --with-gas. 932 with_gas=yes ;; 933 934 -help | --help | --hel | --he | -h) 935 ac_init_help=long ;; 936 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 937 ac_init_help=recursive ;; 938 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 939 ac_init_help=short ;; 940 941 -host | --host | --hos | --ho) 942 ac_prev=host_alias ;; 943 -host=* | --host=* | --hos=* | --ho=*) 944 host_alias=$ac_optarg ;; 945 946 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 947 ac_prev=htmldir ;; 948 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 949 | --ht=*) 950 htmldir=$ac_optarg ;; 951 952 -includedir | --includedir | --includedi | --included | --include \ 953 | --includ | --inclu | --incl | --inc) 954 ac_prev=includedir ;; 955 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 956 | --includ=* | --inclu=* | --incl=* | --inc=*) 957 includedir=$ac_optarg ;; 958 959 -infodir | --infodir | --infodi | --infod | --info | --inf) 960 ac_prev=infodir ;; 961 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 962 infodir=$ac_optarg ;; 963 964 -libdir | --libdir | --libdi | --libd) 965 ac_prev=libdir ;; 966 -libdir=* | --libdir=* | --libdi=* | --libd=*) 967 libdir=$ac_optarg ;; 968 969 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 970 | --libexe | --libex | --libe) 971 ac_prev=libexecdir ;; 972 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 973 | --libexe=* | --libex=* | --libe=*) 974 libexecdir=$ac_optarg ;; 975 976 -localedir | --localedir | --localedi | --localed | --locale) 977 ac_prev=localedir ;; 978 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 979 localedir=$ac_optarg ;; 980 981 -localstatedir | --localstatedir | --localstatedi | --localstated \ 982 | --localstate | --localstat | --localsta | --localst | --locals) 983 ac_prev=localstatedir ;; 984 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 985 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 986 localstatedir=$ac_optarg ;; 987 988 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 989 ac_prev=mandir ;; 990 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 991 mandir=$ac_optarg ;; 992 993 -nfp | --nfp | --nf) 994 # Obsolete; use --without-fp. 995 with_fp=no ;; 996 997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 998 | --no-cr | --no-c | -n) 999 no_create=yes ;; 1000 1001 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1002 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1003 no_recursion=yes ;; 1004 1005 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1006 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1007 | --oldin | --oldi | --old | --ol | --o) 1008 ac_prev=oldincludedir ;; 1009 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1010 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1011 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1012 oldincludedir=$ac_optarg ;; 1013 1014 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1015 ac_prev=prefix ;; 1016 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1017 prefix=$ac_optarg ;; 1018 1019 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1020 | --program-pre | --program-pr | --program-p) 1021 ac_prev=program_prefix ;; 1022 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1023 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1024 program_prefix=$ac_optarg ;; 1025 1026 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1027 | --program-suf | --program-su | --program-s) 1028 ac_prev=program_suffix ;; 1029 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1030 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1031 program_suffix=$ac_optarg ;; 1032 1033 -program-transform-name | --program-transform-name \ 1034 | --program-transform-nam | --program-transform-na \ 1035 | --program-transform-n | --program-transform- \ 1036 | --program-transform | --program-transfor \ 1037 | --program-transfo | --program-transf \ 1038 | --program-trans | --program-tran \ 1039 | --progr-tra | --program-tr | --program-t) 1040 ac_prev=program_transform_name ;; 1041 -program-transform-name=* | --program-transform-name=* \ 1042 | --program-transform-nam=* | --program-transform-na=* \ 1043 | --program-transform-n=* | --program-transform-=* \ 1044 | --program-transform=* | --program-transfor=* \ 1045 | --program-transfo=* | --program-transf=* \ 1046 | --program-trans=* | --program-tran=* \ 1047 | --progr-tra=* | --program-tr=* | --program-t=*) 1048 program_transform_name=$ac_optarg ;; 1049 1050 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1051 ac_prev=pdfdir ;; 1052 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1053 pdfdir=$ac_optarg ;; 1054 1055 -psdir | --psdir | --psdi | --psd | --ps) 1056 ac_prev=psdir ;; 1057 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1058 psdir=$ac_optarg ;; 1059 1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1061 | -silent | --silent | --silen | --sile | --sil) 1062 silent=yes ;; 1063 1064 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1065 | --runstate | --runstat | --runsta | --runst | --runs \ 1066 | --run | --ru | --r) 1067 ac_prev=runstatedir ;; 1068 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1069 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1070 | --run=* | --ru=* | --r=*) 1071 runstatedir=$ac_optarg ;; 1072 1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1074 ac_prev=sbindir ;; 1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1076 | --sbi=* | --sb=*) 1077 sbindir=$ac_optarg ;; 1078 1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1081 | --sharedst | --shareds | --shared | --share | --shar \ 1082 | --sha | --sh) 1083 ac_prev=sharedstatedir ;; 1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1087 | --sha=* | --sh=*) 1088 sharedstatedir=$ac_optarg ;; 1089 1090 -site | --site | --sit) 1091 ac_prev=site ;; 1092 -site=* | --site=* | --sit=*) 1093 site=$ac_optarg ;; 1094 1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1096 ac_prev=srcdir ;; 1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1098 srcdir=$ac_optarg ;; 1099 1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1101 | --syscon | --sysco | --sysc | --sys | --sy) 1102 ac_prev=sysconfdir ;; 1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1105 sysconfdir=$ac_optarg ;; 1106 1107 -target | --target | --targe | --targ | --tar | --ta | --t) 1108 ac_prev=target_alias ;; 1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1110 target_alias=$ac_optarg ;; 1111 1112 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1113 verbose=yes ;; 1114 1115 -version | --version | --versio | --versi | --vers | -V) 1116 ac_init_version=: ;; 1117 1118 -with-* | --with-*) 1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1120 # Reject names that are not valid shell variable names. 1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1122 as_fn_error $? "invalid package name: $ac_useropt" 1123 ac_useropt_orig=$ac_useropt 1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1125 case $ac_user_opts in 1126 *" 1127"with_$ac_useropt" 1128"*) ;; 1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1130 ac_unrecognized_sep=', ';; 1131 esac 1132 eval with_$ac_useropt=\$ac_optarg ;; 1133 1134 -without-* | --without-*) 1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1136 # Reject names that are not valid shell variable names. 1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1138 as_fn_error $? "invalid package name: $ac_useropt" 1139 ac_useropt_orig=$ac_useropt 1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1141 case $ac_user_opts in 1142 *" 1143"with_$ac_useropt" 1144"*) ;; 1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1146 ac_unrecognized_sep=', ';; 1147 esac 1148 eval with_$ac_useropt=no ;; 1149 1150 --x) 1151 # Obsolete; use --with-x. 1152 with_x=yes ;; 1153 1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1155 | --x-incl | --x-inc | --x-in | --x-i) 1156 ac_prev=x_includes ;; 1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1159 x_includes=$ac_optarg ;; 1160 1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1163 ac_prev=x_libraries ;; 1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1166 x_libraries=$ac_optarg ;; 1167 1168 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1169Try \`$0 --help' for more information" 1170 ;; 1171 1172 *=*) 1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1174 # Reject names that are not valid shell variable names. 1175 case $ac_envvar in #( 1176 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1177 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1178 esac 1179 eval $ac_envvar=\$ac_optarg 1180 export $ac_envvar ;; 1181 1182 *) 1183 # FIXME: should be removed in autoconf 3.0. 1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1187 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1188 ;; 1189 1190 esac 1191done 1192 1193if test -n "$ac_prev"; then 1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1195 as_fn_error $? "missing argument to $ac_option" 1196fi 1197 1198if test -n "$ac_unrecognized_opts"; then 1199 case $enable_option_checking in 1200 no) ;; 1201 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1203 esac 1204fi 1205 1206# Check all directory arguments for consistency. 1207for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1208 datadir sysconfdir sharedstatedir localstatedir includedir \ 1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1210 libdir localedir mandir runstatedir 1211do 1212 eval ac_val=\$$ac_var 1213 # Remove trailing slashes. 1214 case $ac_val in 1215 */ ) 1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1217 eval $ac_var=\$ac_val;; 1218 esac 1219 # Be sure to have absolute directory names. 1220 case $ac_val in 1221 [\\/$]* | ?:[\\/]* ) continue;; 1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1223 esac 1224 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1225done 1226 1227# There might be people who depend on the old broken behavior: `$host' 1228# used to hold the argument of --host etc. 1229# FIXME: To remove some day. 1230build=$build_alias 1231host=$host_alias 1232target=$target_alias 1233 1234# FIXME: To remove some day. 1235if test "x$host_alias" != x; then 1236 if test "x$build_alias" = x; then 1237 cross_compiling=maybe 1238 elif test "x$build_alias" != "x$host_alias"; then 1239 cross_compiling=yes 1240 fi 1241fi 1242 1243ac_tool_prefix= 1244test -n "$host_alias" && ac_tool_prefix=$host_alias- 1245 1246test "$silent" = yes && exec 6>/dev/null 1247 1248 1249ac_pwd=`pwd` && test -n "$ac_pwd" && 1250ac_ls_di=`ls -di .` && 1251ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1252 as_fn_error $? "working directory cannot be determined" 1253test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1254 as_fn_error $? "pwd does not report name of working directory" 1255 1256 1257# Find the source files, if location was not specified. 1258if test -z "$srcdir"; then 1259 ac_srcdir_defaulted=yes 1260 # Try the directory containing this script, then the parent directory. 1261 ac_confdir=`$as_dirname -- "$as_myself" || 1262$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1263 X"$as_myself" : 'X\(//\)[^/]' \| \ 1264 X"$as_myself" : 'X\(//\)$' \| \ 1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1266$as_echo X"$as_myself" | 1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1268 s//\1/ 1269 q 1270 } 1271 /^X\(\/\/\)[^/].*/{ 1272 s//\1/ 1273 q 1274 } 1275 /^X\(\/\/\)$/{ 1276 s//\1/ 1277 q 1278 } 1279 /^X\(\/\).*/{ 1280 s//\1/ 1281 q 1282 } 1283 s/.*/./; q'` 1284 srcdir=$ac_confdir 1285 if test ! -r "$srcdir/$ac_unique_file"; then 1286 srcdir=.. 1287 fi 1288else 1289 ac_srcdir_defaulted=no 1290fi 1291if test ! -r "$srcdir/$ac_unique_file"; then 1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1293 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1294fi 1295ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1296ac_abs_confdir=`( 1297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1298 pwd)` 1299# When building in place, set srcdir=. 1300if test "$ac_abs_confdir" = "$ac_pwd"; then 1301 srcdir=. 1302fi 1303# Remove unnecessary trailing slashes from srcdir. 1304# Double slashes in file names in object file debugging info 1305# mess up M-x gdb in Emacs. 1306case $srcdir in 1307*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1308esac 1309for ac_var in $ac_precious_vars; do 1310 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1311 eval ac_env_${ac_var}_value=\$${ac_var} 1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1313 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1314done 1315 1316# 1317# Report the --help message. 1318# 1319if test "$ac_init_help" = "long"; then 1320 # Omit some internal or obsolete options to make the list less imposing. 1321 # This message is too long to be a string in the A/UX 3.1 sh. 1322 cat <<_ACEOF 1323\`configure' configures fonttosfnt 1.2.2 to adapt to many kinds of systems. 1324 1325Usage: $0 [OPTION]... [VAR=VALUE]... 1326 1327To assign environment variables (e.g., CC, CFLAGS...), specify them as 1328VAR=VALUE. See below for descriptions of some of the useful variables. 1329 1330Defaults for the options are specified in brackets. 1331 1332Configuration: 1333 -h, --help display this help and exit 1334 --help=short display options specific to this package 1335 --help=recursive display the short help of all the included packages 1336 -V, --version display version information and exit 1337 -q, --quiet, --silent do not print \`checking ...' messages 1338 --cache-file=FILE cache test results in FILE [disabled] 1339 -C, --config-cache alias for \`--cache-file=config.cache' 1340 -n, --no-create do not create output files 1341 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1342 1343Installation directories: 1344 --prefix=PREFIX install architecture-independent files in PREFIX 1345 [$ac_default_prefix] 1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1347 [PREFIX] 1348 1349By default, \`make install' will install all the files in 1350\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1351an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1352for instance \`--prefix=\$HOME'. 1353 1354For better control, use the options below. 1355 1356Fine tuning of the installation directories: 1357 --bindir=DIR user executables [EPREFIX/bin] 1358 --sbindir=DIR system admin executables [EPREFIX/sbin] 1359 --libexecdir=DIR program executables [EPREFIX/libexec] 1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1363 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1364 --libdir=DIR object code libraries [EPREFIX/lib] 1365 --includedir=DIR C header files [PREFIX/include] 1366 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1369 --infodir=DIR info documentation [DATAROOTDIR/info] 1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1371 --mandir=DIR man documentation [DATAROOTDIR/man] 1372 --docdir=DIR documentation root [DATAROOTDIR/doc/fonttosfnt] 1373 --htmldir=DIR html documentation [DOCDIR] 1374 --dvidir=DIR dvi documentation [DOCDIR] 1375 --pdfdir=DIR pdf documentation [DOCDIR] 1376 --psdir=DIR ps documentation [DOCDIR] 1377_ACEOF 1378 1379 cat <<\_ACEOF 1380 1381Program names: 1382 --program-prefix=PREFIX prepend PREFIX to installed program names 1383 --program-suffix=SUFFIX append SUFFIX to installed program names 1384 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1385 1386System types: 1387 --build=BUILD configure for building on BUILD [guessed] 1388 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1389_ACEOF 1390fi 1391 1392if test -n "$ac_init_help"; then 1393 case $ac_init_help in 1394 short | recursive ) echo "Configuration of fonttosfnt 1.2.2:";; 1395 esac 1396 cat <<\_ACEOF 1397 1398Optional Features: 1399 --disable-option-checking ignore unrecognized --enable/--with options 1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1402 --enable-silent-rules less verbose build output (undo: "make V=1") 1403 --disable-silent-rules verbose build output (undo: "make V=0") 1404 --enable-dependency-tracking 1405 do not reject slow dependency extractors 1406 --disable-dependency-tracking 1407 speeds up one-time build 1408 --disable-selective-werror 1409 Turn off selective compiler errors. (default: 1410 enabled) 1411 --enable-strict-compilation 1412 Enable all warnings from compiler and make them 1413 errors (default: disabled) 1414 1415Some influential environment variables: 1416 CC C compiler command 1417 CFLAGS C compiler flags 1418 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1419 nonstandard directory <lib dir> 1420 LIBS libraries to pass to the linker, e.g. -l<library> 1421 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1422 you have headers in a nonstandard directory <include dir> 1423 CPP C preprocessor 1424 PKG_CONFIG path to pkg-config utility 1425 PKG_CONFIG_PATH 1426 directories to add to pkg-config's search path 1427 PKG_CONFIG_LIBDIR 1428 path overriding pkg-config's built-in search path 1429 FONTTOSFNT_CFLAGS 1430 C compiler flags for FONTTOSFNT, overriding pkg-config 1431 FONTTOSFNT_LIBS 1432 linker flags for FONTTOSFNT, overriding pkg-config 1433 1434Use these variables to override the choices made by `configure' or to help 1435it to find libraries and programs with nonstandard names/locations. 1436 1437Report bugs to <https://gitlab.freedesktop.org/xorg/app/fonttosfnt/issues>. 1438_ACEOF 1439ac_status=$? 1440fi 1441 1442if test "$ac_init_help" = "recursive"; then 1443 # If there are subdirs, report their specific --help. 1444 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1445 test -d "$ac_dir" || 1446 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1447 continue 1448 ac_builddir=. 1449 1450case "$ac_dir" in 1451.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1452*) 1453 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1454 # A ".." for each directory in $ac_dir_suffix. 1455 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1456 case $ac_top_builddir_sub in 1457 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1458 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1459 esac ;; 1460esac 1461ac_abs_top_builddir=$ac_pwd 1462ac_abs_builddir=$ac_pwd$ac_dir_suffix 1463# for backward compatibility: 1464ac_top_builddir=$ac_top_build_prefix 1465 1466case $srcdir in 1467 .) # We are building in place. 1468 ac_srcdir=. 1469 ac_top_srcdir=$ac_top_builddir_sub 1470 ac_abs_top_srcdir=$ac_pwd ;; 1471 [\\/]* | ?:[\\/]* ) # Absolute name. 1472 ac_srcdir=$srcdir$ac_dir_suffix; 1473 ac_top_srcdir=$srcdir 1474 ac_abs_top_srcdir=$srcdir ;; 1475 *) # Relative name. 1476 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1477 ac_top_srcdir=$ac_top_build_prefix$srcdir 1478 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1479esac 1480ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1481 1482 cd "$ac_dir" || { ac_status=$?; continue; } 1483 # Check for guested configure. 1484 if test -f "$ac_srcdir/configure.gnu"; then 1485 echo && 1486 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1487 elif test -f "$ac_srcdir/configure"; then 1488 echo && 1489 $SHELL "$ac_srcdir/configure" --help=recursive 1490 else 1491 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1492 fi || ac_status=$? 1493 cd "$ac_pwd" || { ac_status=$?; break; } 1494 done 1495fi 1496 1497test -n "$ac_init_help" && exit $ac_status 1498if $ac_init_version; then 1499 cat <<\_ACEOF 1500fonttosfnt configure 1.2.2 1501generated by GNU Autoconf 2.69 1502 1503Copyright (C) 2012 Free Software Foundation, Inc. 1504This configure script is free software; the Free Software Foundation 1505gives unlimited permission to copy, distribute and modify it. 1506_ACEOF 1507 exit 1508fi 1509 1510## ------------------------ ## 1511## Autoconf initialization. ## 1512## ------------------------ ## 1513 1514# ac_fn_c_try_compile LINENO 1515# -------------------------- 1516# Try to compile conftest.$ac_ext, and return whether this succeeded. 1517ac_fn_c_try_compile () 1518{ 1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1520 rm -f conftest.$ac_objext 1521 if { { ac_try="$ac_compile" 1522case "(($ac_try" in 1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1524 *) ac_try_echo=$ac_try;; 1525esac 1526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1527$as_echo "$ac_try_echo"; } >&5 1528 (eval "$ac_compile") 2>conftest.err 1529 ac_status=$? 1530 if test -s conftest.err; then 1531 grep -v '^ *+' conftest.err >conftest.er1 1532 cat conftest.er1 >&5 1533 mv -f conftest.er1 conftest.err 1534 fi 1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1536 test $ac_status = 0; } && { 1537 test -z "$ac_c_werror_flag" || 1538 test ! -s conftest.err 1539 } && test -s conftest.$ac_objext; then : 1540 ac_retval=0 1541else 1542 $as_echo "$as_me: failed program was:" >&5 1543sed 's/^/| /' conftest.$ac_ext >&5 1544 1545 ac_retval=1 1546fi 1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1548 as_fn_set_status $ac_retval 1549 1550} # ac_fn_c_try_compile 1551 1552# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1553# --------------------------------------------- 1554# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1555# accordingly. 1556ac_fn_c_check_decl () 1557{ 1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1559 as_decl_name=`echo $2|sed 's/ *(.*//'` 1560 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1562$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1563if eval \${$3+:} false; then : 1564 $as_echo_n "(cached) " >&6 1565else 1566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1567/* end confdefs.h. */ 1568$4 1569int 1570main () 1571{ 1572#ifndef $as_decl_name 1573#ifdef __cplusplus 1574 (void) $as_decl_use; 1575#else 1576 (void) $as_decl_name; 1577#endif 1578#endif 1579 1580 ; 1581 return 0; 1582} 1583_ACEOF 1584if ac_fn_c_try_compile "$LINENO"; then : 1585 eval "$3=yes" 1586else 1587 eval "$3=no" 1588fi 1589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1590fi 1591eval ac_res=\$$3 1592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1593$as_echo "$ac_res" >&6; } 1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1595 1596} # ac_fn_c_check_decl 1597 1598# ac_fn_c_try_cpp LINENO 1599# ---------------------- 1600# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1601ac_fn_c_try_cpp () 1602{ 1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1604 if { { ac_try="$ac_cpp conftest.$ac_ext" 1605case "(($ac_try" in 1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1607 *) ac_try_echo=$ac_try;; 1608esac 1609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1610$as_echo "$ac_try_echo"; } >&5 1611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1612 ac_status=$? 1613 if test -s conftest.err; then 1614 grep -v '^ *+' conftest.err >conftest.er1 1615 cat conftest.er1 >&5 1616 mv -f conftest.er1 conftest.err 1617 fi 1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1619 test $ac_status = 0; } > conftest.i && { 1620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1621 test ! -s conftest.err 1622 }; then : 1623 ac_retval=0 1624else 1625 $as_echo "$as_me: failed program was:" >&5 1626sed 's/^/| /' conftest.$ac_ext >&5 1627 1628 ac_retval=1 1629fi 1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1631 as_fn_set_status $ac_retval 1632 1633} # ac_fn_c_try_cpp 1634 1635# ac_fn_c_try_run LINENO 1636# ---------------------- 1637# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1638# that executables *can* be run. 1639ac_fn_c_try_run () 1640{ 1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1642 if { { ac_try="$ac_link" 1643case "(($ac_try" in 1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1645 *) ac_try_echo=$ac_try;; 1646esac 1647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1648$as_echo "$ac_try_echo"; } >&5 1649 (eval "$ac_link") 2>&5 1650 ac_status=$? 1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1652 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1653 { { case "(($ac_try" in 1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1655 *) ac_try_echo=$ac_try;; 1656esac 1657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1658$as_echo "$ac_try_echo"; } >&5 1659 (eval "$ac_try") 2>&5 1660 ac_status=$? 1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1662 test $ac_status = 0; }; }; then : 1663 ac_retval=0 1664else 1665 $as_echo "$as_me: program exited with status $ac_status" >&5 1666 $as_echo "$as_me: failed program was:" >&5 1667sed 's/^/| /' conftest.$ac_ext >&5 1668 1669 ac_retval=$ac_status 1670fi 1671 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1673 as_fn_set_status $ac_retval 1674 1675} # ac_fn_c_try_run 1676 1677# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1678# ------------------------------------------------------- 1679# Tests whether HEADER exists and can be compiled using the include files in 1680# INCLUDES, setting the cache variable VAR accordingly. 1681ac_fn_c_check_header_compile () 1682{ 1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1685$as_echo_n "checking for $2... " >&6; } 1686if eval \${$3+:} false; then : 1687 $as_echo_n "(cached) " >&6 1688else 1689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1690/* end confdefs.h. */ 1691$4 1692#include <$2> 1693_ACEOF 1694if ac_fn_c_try_compile "$LINENO"; then : 1695 eval "$3=yes" 1696else 1697 eval "$3=no" 1698fi 1699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1700fi 1701eval ac_res=\$$3 1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1703$as_echo "$ac_res" >&6; } 1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1705 1706} # ac_fn_c_check_header_compile 1707 1708# ac_fn_c_try_link LINENO 1709# ----------------------- 1710# Try to link conftest.$ac_ext, and return whether this succeeded. 1711ac_fn_c_try_link () 1712{ 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714 rm -f conftest.$ac_objext conftest$ac_exeext 1715 if { { ac_try="$ac_link" 1716case "(($ac_try" in 1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1718 *) ac_try_echo=$ac_try;; 1719esac 1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1721$as_echo "$ac_try_echo"; } >&5 1722 (eval "$ac_link") 2>conftest.err 1723 ac_status=$? 1724 if test -s conftest.err; then 1725 grep -v '^ *+' conftest.err >conftest.er1 1726 cat conftest.er1 >&5 1727 mv -f conftest.er1 conftest.err 1728 fi 1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1730 test $ac_status = 0; } && { 1731 test -z "$ac_c_werror_flag" || 1732 test ! -s conftest.err 1733 } && test -s conftest$ac_exeext && { 1734 test "$cross_compiling" = yes || 1735 test -x conftest$ac_exeext 1736 }; then : 1737 ac_retval=0 1738else 1739 $as_echo "$as_me: failed program was:" >&5 1740sed 's/^/| /' conftest.$ac_ext >&5 1741 1742 ac_retval=1 1743fi 1744 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1745 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1746 # interfere with the next link command; also delete a directory that is 1747 # left behind by Apple's compiler. We do this before executing the actions. 1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1750 as_fn_set_status $ac_retval 1751 1752} # ac_fn_c_try_link 1753 1754# ac_fn_c_check_func LINENO FUNC VAR 1755# ---------------------------------- 1756# Tests whether FUNC exists, setting the cache variable VAR accordingly 1757ac_fn_c_check_func () 1758{ 1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1761$as_echo_n "checking for $2... " >&6; } 1762if eval \${$3+:} false; then : 1763 $as_echo_n "(cached) " >&6 1764else 1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1766/* end confdefs.h. */ 1767/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1768 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1769#define $2 innocuous_$2 1770 1771/* System header to define __stub macros and hopefully few prototypes, 1772 which can conflict with char $2 (); below. 1773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1774 <limits.h> exists even on freestanding compilers. */ 1775 1776#ifdef __STDC__ 1777# include <limits.h> 1778#else 1779# include <assert.h> 1780#endif 1781 1782#undef $2 1783 1784/* Override any GCC internal prototype to avoid an error. 1785 Use char because int might match the return type of a GCC 1786 builtin and then its argument prototype would still apply. */ 1787#ifdef __cplusplus 1788extern "C" 1789#endif 1790char $2 (); 1791/* The GNU C library defines this for functions which it implements 1792 to always fail with ENOSYS. Some functions are actually named 1793 something starting with __ and the normal name is an alias. */ 1794#if defined __stub_$2 || defined __stub___$2 1795choke me 1796#endif 1797 1798int 1799main () 1800{ 1801return $2 (); 1802 ; 1803 return 0; 1804} 1805_ACEOF 1806if ac_fn_c_try_link "$LINENO"; then : 1807 eval "$3=yes" 1808else 1809 eval "$3=no" 1810fi 1811rm -f core conftest.err conftest.$ac_objext \ 1812 conftest$ac_exeext conftest.$ac_ext 1813fi 1814eval ac_res=\$$3 1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1816$as_echo "$ac_res" >&6; } 1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1818 1819} # ac_fn_c_check_func 1820cat >config.log <<_ACEOF 1821This file contains any messages produced by compilers while 1822running configure, to aid debugging if configure makes a mistake. 1823 1824It was created by fonttosfnt $as_me 1.2.2, which was 1825generated by GNU Autoconf 2.69. Invocation command line was 1826 1827 $ $0 $@ 1828 1829_ACEOF 1830exec 5>>config.log 1831{ 1832cat <<_ASUNAME 1833## --------- ## 1834## Platform. ## 1835## --------- ## 1836 1837hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1838uname -m = `(uname -m) 2>/dev/null || echo unknown` 1839uname -r = `(uname -r) 2>/dev/null || echo unknown` 1840uname -s = `(uname -s) 2>/dev/null || echo unknown` 1841uname -v = `(uname -v) 2>/dev/null || echo unknown` 1842 1843/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1844/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1845 1846/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1847/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1848/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1849/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1850/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1851/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1852/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1853 1854_ASUNAME 1855 1856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1857for as_dir in $PATH 1858do 1859 IFS=$as_save_IFS 1860 test -z "$as_dir" && as_dir=. 1861 $as_echo "PATH: $as_dir" 1862 done 1863IFS=$as_save_IFS 1864 1865} >&5 1866 1867cat >&5 <<_ACEOF 1868 1869 1870## ----------- ## 1871## Core tests. ## 1872## ----------- ## 1873 1874_ACEOF 1875 1876 1877# Keep a trace of the command line. 1878# Strip out --no-create and --no-recursion so they do not pile up. 1879# Strip out --silent because we don't want to record it for future runs. 1880# Also quote any args containing shell meta-characters. 1881# Make two passes to allow for proper duplicate-argument suppression. 1882ac_configure_args= 1883ac_configure_args0= 1884ac_configure_args1= 1885ac_must_keep_next=false 1886for ac_pass in 1 2 1887do 1888 for ac_arg 1889 do 1890 case $ac_arg in 1891 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1892 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1893 | -silent | --silent | --silen | --sile | --sil) 1894 continue ;; 1895 *\'*) 1896 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1897 esac 1898 case $ac_pass in 1899 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1900 2) 1901 as_fn_append ac_configure_args1 " '$ac_arg'" 1902 if test $ac_must_keep_next = true; then 1903 ac_must_keep_next=false # Got value, back to normal. 1904 else 1905 case $ac_arg in 1906 *=* | --config-cache | -C | -disable-* | --disable-* \ 1907 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1908 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1909 | -with-* | --with-* | -without-* | --without-* | --x) 1910 case "$ac_configure_args0 " in 1911 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1912 esac 1913 ;; 1914 -* ) ac_must_keep_next=true ;; 1915 esac 1916 fi 1917 as_fn_append ac_configure_args " '$ac_arg'" 1918 ;; 1919 esac 1920 done 1921done 1922{ ac_configure_args0=; unset ac_configure_args0;} 1923{ ac_configure_args1=; unset ac_configure_args1;} 1924 1925# When interrupted or exit'd, cleanup temporary files, and complete 1926# config.log. We remove comments because anyway the quotes in there 1927# would cause problems or look ugly. 1928# WARNING: Use '\'' to represent an apostrophe within the trap. 1929# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1930trap 'exit_status=$? 1931 # Save into config.log some information that might help in debugging. 1932 { 1933 echo 1934 1935 $as_echo "## ---------------- ## 1936## Cache variables. ## 1937## ---------------- ##" 1938 echo 1939 # The following way of writing the cache mishandles newlines in values, 1940( 1941 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1942 eval ac_val=\$$ac_var 1943 case $ac_val in #( 1944 *${as_nl}*) 1945 case $ac_var in #( 1946 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1947$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1948 esac 1949 case $ac_var in #( 1950 _ | IFS | as_nl) ;; #( 1951 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1952 *) { eval $ac_var=; unset $ac_var;} ;; 1953 esac ;; 1954 esac 1955 done 1956 (set) 2>&1 | 1957 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1958 *${as_nl}ac_space=\ *) 1959 sed -n \ 1960 "s/'\''/'\''\\\\'\'''\''/g; 1961 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1962 ;; #( 1963 *) 1964 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1965 ;; 1966 esac | 1967 sort 1968) 1969 echo 1970 1971 $as_echo "## ----------------- ## 1972## Output variables. ## 1973## ----------------- ##" 1974 echo 1975 for ac_var in $ac_subst_vars 1976 do 1977 eval ac_val=\$$ac_var 1978 case $ac_val in 1979 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1980 esac 1981 $as_echo "$ac_var='\''$ac_val'\''" 1982 done | sort 1983 echo 1984 1985 if test -n "$ac_subst_files"; then 1986 $as_echo "## ------------------- ## 1987## File substitutions. ## 1988## ------------------- ##" 1989 echo 1990 for ac_var in $ac_subst_files 1991 do 1992 eval ac_val=\$$ac_var 1993 case $ac_val in 1994 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1995 esac 1996 $as_echo "$ac_var='\''$ac_val'\''" 1997 done | sort 1998 echo 1999 fi 2000 2001 if test -s confdefs.h; then 2002 $as_echo "## ----------- ## 2003## confdefs.h. ## 2004## ----------- ##" 2005 echo 2006 cat confdefs.h 2007 echo 2008 fi 2009 test "$ac_signal" != 0 && 2010 $as_echo "$as_me: caught signal $ac_signal" 2011 $as_echo "$as_me: exit $exit_status" 2012 } >&5 2013 rm -f core *.core core.conftest.* && 2014 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2015 exit $exit_status 2016' 0 2017for ac_signal in 1 2 13 15; do 2018 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2019done 2020ac_signal=0 2021 2022# confdefs.h avoids OS command line length limits that DEFS can exceed. 2023rm -f -r conftest* confdefs.h 2024 2025$as_echo "/* confdefs.h */" > confdefs.h 2026 2027# Predefined preprocessor variables. 2028 2029cat >>confdefs.h <<_ACEOF 2030#define PACKAGE_NAME "$PACKAGE_NAME" 2031_ACEOF 2032 2033cat >>confdefs.h <<_ACEOF 2034#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2035_ACEOF 2036 2037cat >>confdefs.h <<_ACEOF 2038#define PACKAGE_VERSION "$PACKAGE_VERSION" 2039_ACEOF 2040 2041cat >>confdefs.h <<_ACEOF 2042#define PACKAGE_STRING "$PACKAGE_STRING" 2043_ACEOF 2044 2045cat >>confdefs.h <<_ACEOF 2046#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2047_ACEOF 2048 2049cat >>confdefs.h <<_ACEOF 2050#define PACKAGE_URL "$PACKAGE_URL" 2051_ACEOF 2052 2053 2054# Let the site file select an alternate cache file if it wants to. 2055# Prefer an explicitly selected file to automatically selected ones. 2056ac_site_file1=NONE 2057ac_site_file2=NONE 2058if test -n "$CONFIG_SITE"; then 2059 # We do not want a PATH search for config.site. 2060 case $CONFIG_SITE in #(( 2061 -*) ac_site_file1=./$CONFIG_SITE;; 2062 */*) ac_site_file1=$CONFIG_SITE;; 2063 *) ac_site_file1=./$CONFIG_SITE;; 2064 esac 2065elif test "x$prefix" != xNONE; then 2066 ac_site_file1=$prefix/share/config.site 2067 ac_site_file2=$prefix/etc/config.site 2068else 2069 ac_site_file1=$ac_default_prefix/share/config.site 2070 ac_site_file2=$ac_default_prefix/etc/config.site 2071fi 2072for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2073do 2074 test "x$ac_site_file" = xNONE && continue 2075 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2077$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2078 sed 's/^/| /' "$ac_site_file" >&5 2079 . "$ac_site_file" \ 2080 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2082as_fn_error $? "failed to load site script $ac_site_file 2083See \`config.log' for more details" "$LINENO" 5; } 2084 fi 2085done 2086 2087if test -r "$cache_file"; then 2088 # Some versions of bash will fail to source /dev/null (special files 2089 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2090 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2091 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2092$as_echo "$as_me: loading cache $cache_file" >&6;} 2093 case $cache_file in 2094 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2095 *) . "./$cache_file";; 2096 esac 2097 fi 2098else 2099 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2100$as_echo "$as_me: creating cache $cache_file" >&6;} 2101 >$cache_file 2102fi 2103 2104# Check that the precious variables saved in the cache have kept the same 2105# value. 2106ac_cache_corrupted=false 2107for ac_var in $ac_precious_vars; do 2108 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2109 eval ac_new_set=\$ac_env_${ac_var}_set 2110 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2111 eval ac_new_val=\$ac_env_${ac_var}_value 2112 case $ac_old_set,$ac_new_set in 2113 set,) 2114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2115$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2116 ac_cache_corrupted=: ;; 2117 ,set) 2118 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2119$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2120 ac_cache_corrupted=: ;; 2121 ,);; 2122 *) 2123 if test "x$ac_old_val" != "x$ac_new_val"; then 2124 # differences in whitespace do not lead to failure. 2125 ac_old_val_w=`echo x $ac_old_val` 2126 ac_new_val_w=`echo x $ac_new_val` 2127 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2129$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2130 ac_cache_corrupted=: 2131 else 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2133$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2134 eval $ac_var=\$ac_old_val 2135 fi 2136 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2137$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2139$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2140 fi;; 2141 esac 2142 # Pass precious variables to config.status. 2143 if test "$ac_new_set" = set; then 2144 case $ac_new_val in 2145 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2146 *) ac_arg=$ac_var=$ac_new_val ;; 2147 esac 2148 case " $ac_configure_args " in 2149 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2150 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2151 esac 2152 fi 2153done 2154if $ac_cache_corrupted; then 2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2158$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2159 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2160fi 2161## -------------------- ## 2162## Main body of script. ## 2163## -------------------- ## 2164 2165ac_ext=c 2166ac_cpp='$CPP $CPPFLAGS' 2167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2169ac_compiler_gnu=$ac_cv_c_compiler_gnu 2170 2171 2172 2173ac_config_headers="$ac_config_headers config.h" 2174 2175 2176# Initialize Automake 2177am__api_version='1.16' 2178 2179ac_aux_dir= 2180for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2181 if test -f "$ac_dir/install-sh"; then 2182 ac_aux_dir=$ac_dir 2183 ac_install_sh="$ac_aux_dir/install-sh -c" 2184 break 2185 elif test -f "$ac_dir/install.sh"; then 2186 ac_aux_dir=$ac_dir 2187 ac_install_sh="$ac_aux_dir/install.sh -c" 2188 break 2189 elif test -f "$ac_dir/shtool"; then 2190 ac_aux_dir=$ac_dir 2191 ac_install_sh="$ac_aux_dir/shtool install -c" 2192 break 2193 fi 2194done 2195if test -z "$ac_aux_dir"; then 2196 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2197fi 2198 2199# These three variables are undocumented and unsupported, 2200# and are intended to be withdrawn in a future Autoconf release. 2201# They can cause serious problems if a builder's source tree is in a directory 2202# whose full name contains unusual characters. 2203ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2204ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2205ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2206 2207 2208# Find a good install program. We prefer a C program (faster), 2209# so one script is as good as another. But avoid the broken or 2210# incompatible versions: 2211# SysV /etc/install, /usr/sbin/install 2212# SunOS /usr/etc/install 2213# IRIX /sbin/install 2214# AIX /bin/install 2215# AmigaOS /C/install, which installs bootblocks on floppy discs 2216# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2217# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2218# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2219# OS/2's system install, which has a completely different semantic 2220# ./install, which can be erroneously created by make from ./install.sh. 2221# Reject install programs that cannot install multiple files. 2222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2223$as_echo_n "checking for a BSD-compatible install... " >&6; } 2224if test -z "$INSTALL"; then 2225if ${ac_cv_path_install+:} false; then : 2226 $as_echo_n "(cached) " >&6 2227else 2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2229for as_dir in $PATH 2230do 2231 IFS=$as_save_IFS 2232 test -z "$as_dir" && as_dir=. 2233 # Account for people who put trailing slashes in PATH elements. 2234case $as_dir/ in #(( 2235 ./ | .// | /[cC]/* | \ 2236 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2237 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2238 /usr/ucb/* ) ;; 2239 *) 2240 # OSF1 and SCO ODT 3.0 have their own names for install. 2241 # Don't use installbsd from OSF since it installs stuff as root 2242 # by default. 2243 for ac_prog in ginstall scoinst install; do 2244 for ac_exec_ext in '' $ac_executable_extensions; do 2245 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2246 if test $ac_prog = install && 2247 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2248 # AIX install. It has an incompatible calling convention. 2249 : 2250 elif test $ac_prog = install && 2251 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2252 # program-specific install script used by HP pwplus--don't use. 2253 : 2254 else 2255 rm -rf conftest.one conftest.two conftest.dir 2256 echo one > conftest.one 2257 echo two > conftest.two 2258 mkdir conftest.dir 2259 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2260 test -s conftest.one && test -s conftest.two && 2261 test -s conftest.dir/conftest.one && 2262 test -s conftest.dir/conftest.two 2263 then 2264 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2265 break 3 2266 fi 2267 fi 2268 fi 2269 done 2270 done 2271 ;; 2272esac 2273 2274 done 2275IFS=$as_save_IFS 2276 2277rm -rf conftest.one conftest.two conftest.dir 2278 2279fi 2280 if test "${ac_cv_path_install+set}" = set; then 2281 INSTALL=$ac_cv_path_install 2282 else 2283 # As a last resort, use the slow shell script. Don't cache a 2284 # value for INSTALL within a source directory, because that will 2285 # break other packages using the cache if that directory is 2286 # removed, or if the value is a relative name. 2287 INSTALL=$ac_install_sh 2288 fi 2289fi 2290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2291$as_echo "$INSTALL" >&6; } 2292 2293# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2294# It thinks the first close brace ends the variable substitution. 2295test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2296 2297test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2298 2299test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2300 2301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2302$as_echo_n "checking whether build environment is sane... " >&6; } 2303# Reject unsafe characters in $srcdir or the absolute working directory 2304# name. Accept space and tab only in the latter. 2305am_lf=' 2306' 2307case `pwd` in 2308 *[\\\"\#\$\&\'\`$am_lf]*) 2309 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2310esac 2311case $srcdir in 2312 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2313 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2314esac 2315 2316# Do 'set' in a subshell so we don't clobber the current shell's 2317# arguments. Must try -L first in case configure is actually a 2318# symlink; some systems play weird games with the mod time of symlinks 2319# (eg FreeBSD returns the mod time of the symlink's containing 2320# directory). 2321if ( 2322 am_has_slept=no 2323 for am_try in 1 2; do 2324 echo "timestamp, slept: $am_has_slept" > conftest.file 2325 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2326 if test "$*" = "X"; then 2327 # -L didn't work. 2328 set X `ls -t "$srcdir/configure" conftest.file` 2329 fi 2330 if test "$*" != "X $srcdir/configure conftest.file" \ 2331 && test "$*" != "X conftest.file $srcdir/configure"; then 2332 2333 # If neither matched, then we have a broken ls. This can happen 2334 # if, for instance, CONFIG_SHELL is bash and it inherits a 2335 # broken ls alias from the environment. This has actually 2336 # happened. Such a system could not be considered "sane". 2337 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2338 alias in your environment" "$LINENO" 5 2339 fi 2340 if test "$2" = conftest.file || test $am_try -eq 2; then 2341 break 2342 fi 2343 # Just in case. 2344 sleep 1 2345 am_has_slept=yes 2346 done 2347 test "$2" = conftest.file 2348 ) 2349then 2350 # Ok. 2351 : 2352else 2353 as_fn_error $? "newly created file is older than distributed files! 2354Check your system clock" "$LINENO" 5 2355fi 2356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2357$as_echo "yes" >&6; } 2358# If we didn't sleep, we still need to ensure time stamps of config.status and 2359# generated files are strictly newer. 2360am_sleep_pid= 2361if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2362 ( sleep 1 ) & 2363 am_sleep_pid=$! 2364fi 2365 2366rm -f conftest.file 2367 2368test "$program_prefix" != NONE && 2369 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2370# Use a double $ so make ignores it. 2371test "$program_suffix" != NONE && 2372 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2373# Double any \ or $. 2374# By default was `s,x,x', remove it if useless. 2375ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2376program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2377 2378# Expand $ac_aux_dir to an absolute path. 2379am_aux_dir=`cd "$ac_aux_dir" && pwd` 2380 2381if test x"${MISSING+set}" != xset; then 2382 case $am_aux_dir in 2383 *\ * | *\ *) 2384 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2385 *) 2386 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2387 esac 2388fi 2389# Use eval to expand $SHELL 2390if eval "$MISSING --is-lightweight"; then 2391 am_missing_run="$MISSING " 2392else 2393 am_missing_run= 2394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2395$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2396fi 2397 2398if test x"${install_sh+set}" != xset; then 2399 case $am_aux_dir in 2400 *\ * | *\ *) 2401 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2402 *) 2403 install_sh="\${SHELL} $am_aux_dir/install-sh" 2404 esac 2405fi 2406 2407# Installed binaries are usually stripped using 'strip' when the user 2408# run "make install-strip". However 'strip' might not be the right 2409# tool to use in cross-compilation environments, therefore Automake 2410# will honor the 'STRIP' environment variable to overrule this program. 2411if test "$cross_compiling" != no; then 2412 if test -n "$ac_tool_prefix"; then 2413 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2414set dummy ${ac_tool_prefix}strip; ac_word=$2 2415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2416$as_echo_n "checking for $ac_word... " >&6; } 2417if ${ac_cv_prog_STRIP+:} false; then : 2418 $as_echo_n "(cached) " >&6 2419else 2420 if test -n "$STRIP"; then 2421 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2422else 2423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2424for as_dir in $PATH 2425do 2426 IFS=$as_save_IFS 2427 test -z "$as_dir" && as_dir=. 2428 for ac_exec_ext in '' $ac_executable_extensions; do 2429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2430 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2432 break 2 2433 fi 2434done 2435 done 2436IFS=$as_save_IFS 2437 2438fi 2439fi 2440STRIP=$ac_cv_prog_STRIP 2441if test -n "$STRIP"; then 2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2443$as_echo "$STRIP" >&6; } 2444else 2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2446$as_echo "no" >&6; } 2447fi 2448 2449 2450fi 2451if test -z "$ac_cv_prog_STRIP"; then 2452 ac_ct_STRIP=$STRIP 2453 # Extract the first word of "strip", so it can be a program name with args. 2454set dummy strip; ac_word=$2 2455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2456$as_echo_n "checking for $ac_word... " >&6; } 2457if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2458 $as_echo_n "(cached) " >&6 2459else 2460 if test -n "$ac_ct_STRIP"; then 2461 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2462else 2463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2464for as_dir in $PATH 2465do 2466 IFS=$as_save_IFS 2467 test -z "$as_dir" && as_dir=. 2468 for ac_exec_ext in '' $ac_executable_extensions; do 2469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2470 ac_cv_prog_ac_ct_STRIP="strip" 2471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2472 break 2 2473 fi 2474done 2475 done 2476IFS=$as_save_IFS 2477 2478fi 2479fi 2480ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2481if test -n "$ac_ct_STRIP"; then 2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2483$as_echo "$ac_ct_STRIP" >&6; } 2484else 2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2486$as_echo "no" >&6; } 2487fi 2488 2489 if test "x$ac_ct_STRIP" = x; then 2490 STRIP=":" 2491 else 2492 case $cross_compiling:$ac_tool_warned in 2493yes:) 2494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2496ac_tool_warned=yes ;; 2497esac 2498 STRIP=$ac_ct_STRIP 2499 fi 2500else 2501 STRIP="$ac_cv_prog_STRIP" 2502fi 2503 2504fi 2505INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2506 2507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2508$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2509if test -z "$MKDIR_P"; then 2510 if ${ac_cv_path_mkdir+:} false; then : 2511 $as_echo_n "(cached) " >&6 2512else 2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2514for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2515do 2516 IFS=$as_save_IFS 2517 test -z "$as_dir" && as_dir=. 2518 for ac_prog in mkdir gmkdir; do 2519 for ac_exec_ext in '' $ac_executable_extensions; do 2520 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2521 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2522 'mkdir (GNU coreutils) '* | \ 2523 'mkdir (coreutils) '* | \ 2524 'mkdir (fileutils) '4.1*) 2525 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2526 break 3;; 2527 esac 2528 done 2529 done 2530 done 2531IFS=$as_save_IFS 2532 2533fi 2534 2535 test -d ./--version && rmdir ./--version 2536 if test "${ac_cv_path_mkdir+set}" = set; then 2537 MKDIR_P="$ac_cv_path_mkdir -p" 2538 else 2539 # As a last resort, use the slow shell script. Don't cache a 2540 # value for MKDIR_P within a source directory, because that will 2541 # break other packages using the cache if that directory is 2542 # removed, or if the value is a relative name. 2543 MKDIR_P="$ac_install_sh -d" 2544 fi 2545fi 2546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2547$as_echo "$MKDIR_P" >&6; } 2548 2549for ac_prog in gawk mawk nawk awk 2550do 2551 # Extract the first word of "$ac_prog", so it can be a program name with args. 2552set dummy $ac_prog; ac_word=$2 2553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2554$as_echo_n "checking for $ac_word... " >&6; } 2555if ${ac_cv_prog_AWK+:} false; then : 2556 $as_echo_n "(cached) " >&6 2557else 2558 if test -n "$AWK"; then 2559 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2560else 2561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2562for as_dir in $PATH 2563do 2564 IFS=$as_save_IFS 2565 test -z "$as_dir" && as_dir=. 2566 for ac_exec_ext in '' $ac_executable_extensions; do 2567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2568 ac_cv_prog_AWK="$ac_prog" 2569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2570 break 2 2571 fi 2572done 2573 done 2574IFS=$as_save_IFS 2575 2576fi 2577fi 2578AWK=$ac_cv_prog_AWK 2579if test -n "$AWK"; then 2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2581$as_echo "$AWK" >&6; } 2582else 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2584$as_echo "no" >&6; } 2585fi 2586 2587 2588 test -n "$AWK" && break 2589done 2590 2591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2592$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2593set x ${MAKE-make} 2594ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2595if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2596 $as_echo_n "(cached) " >&6 2597else 2598 cat >conftest.make <<\_ACEOF 2599SHELL = /bin/sh 2600all: 2601 @echo '@@@%%%=$(MAKE)=@@@%%%' 2602_ACEOF 2603# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2604case `${MAKE-make} -f conftest.make 2>/dev/null` in 2605 *@@@%%%=?*=@@@%%%*) 2606 eval ac_cv_prog_make_${ac_make}_set=yes;; 2607 *) 2608 eval ac_cv_prog_make_${ac_make}_set=no;; 2609esac 2610rm -f conftest.make 2611fi 2612if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2614$as_echo "yes" >&6; } 2615 SET_MAKE= 2616else 2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2618$as_echo "no" >&6; } 2619 SET_MAKE="MAKE=${MAKE-make}" 2620fi 2621 2622rm -rf .tst 2>/dev/null 2623mkdir .tst 2>/dev/null 2624if test -d .tst; then 2625 am__leading_dot=. 2626else 2627 am__leading_dot=_ 2628fi 2629rmdir .tst 2>/dev/null 2630 2631# Check whether --enable-silent-rules was given. 2632if test "${enable_silent_rules+set}" = set; then : 2633 enableval=$enable_silent_rules; 2634fi 2635 2636case $enable_silent_rules in # ((( 2637 yes) AM_DEFAULT_VERBOSITY=0;; 2638 no) AM_DEFAULT_VERBOSITY=1;; 2639 *) AM_DEFAULT_VERBOSITY=1;; 2640esac 2641am_make=${MAKE-make} 2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2643$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2644if ${am_cv_make_support_nested_variables+:} false; then : 2645 $as_echo_n "(cached) " >&6 2646else 2647 if $as_echo 'TRUE=$(BAR$(V)) 2648BAR0=false 2649BAR1=true 2650V=1 2651am__doit: 2652 @$(TRUE) 2653.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2654 am_cv_make_support_nested_variables=yes 2655else 2656 am_cv_make_support_nested_variables=no 2657fi 2658fi 2659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2660$as_echo "$am_cv_make_support_nested_variables" >&6; } 2661if test $am_cv_make_support_nested_variables = yes; then 2662 AM_V='$(V)' 2663 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2664else 2665 AM_V=$AM_DEFAULT_VERBOSITY 2666 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2667fi 2668AM_BACKSLASH='\' 2669 2670if test "`cd $srcdir && pwd`" != "`pwd`"; then 2671 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2672 # is not polluted with repeated "-I." 2673 am__isrc=' -I$(srcdir)' 2674 # test to see if srcdir already configured 2675 if test -f $srcdir/config.status; then 2676 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2677 fi 2678fi 2679 2680# test whether we have cygpath 2681if test -z "$CYGPATH_W"; then 2682 if (cygpath --version) >/dev/null 2>/dev/null; then 2683 CYGPATH_W='cygpath -w' 2684 else 2685 CYGPATH_W=echo 2686 fi 2687fi 2688 2689 2690# Define the identity of the package. 2691 PACKAGE='fonttosfnt' 2692 VERSION='1.2.2' 2693 2694 2695cat >>confdefs.h <<_ACEOF 2696#define PACKAGE "$PACKAGE" 2697_ACEOF 2698 2699 2700cat >>confdefs.h <<_ACEOF 2701#define VERSION "$VERSION" 2702_ACEOF 2703 2704# Some tools Automake needs. 2705 2706ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2707 2708 2709AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2710 2711 2712AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2713 2714 2715AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2716 2717 2718MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2719 2720# For better backward compatibility. To be removed once Automake 1.9.x 2721# dies out for good. For more background, see: 2722# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2723# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2724mkdir_p='$(MKDIR_P)' 2725 2726# We need awk for the "check" target (and possibly the TAP driver). The 2727# system "awk" is bad on some platforms. 2728# Always define AMTAR for backward compatibility. Yes, it's still used 2729# in the wild :-( We should find a proper way to deprecate it ... 2730AMTAR='$${TAR-tar}' 2731 2732 2733# We'll loop over all known methods to create a tar archive until one works. 2734_am_tools='gnutar pax cpio none' 2735 2736am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2737 2738 2739 2740 2741 2742 2743# POSIX will say in a future version that running "rm -f" with no argument 2744# is OK; and we want to be able to make that assumption in our Makefile 2745# recipes. So use an aggressive probe to check that the usage we want is 2746# actually supported "in the wild" to an acceptable degree. 2747# See automake bug#10828. 2748# To make any issue more visible, cause the running configure to be aborted 2749# by default if the 'rm' program in use doesn't match our expectations; the 2750# user can still override this though. 2751if rm -f && rm -fr && rm -rf; then : OK; else 2752 cat >&2 <<'END' 2753Oops! 2754 2755Your 'rm' program seems unable to run without file operands specified 2756on the command line, even when the '-f' option is present. This is contrary 2757to the behaviour of most rm programs out there, and not conforming with 2758the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2759 2760Please tell bug-automake@gnu.org about your system, including the value 2761of your $PATH and any error possibly output before this message. This 2762can help us improve future automake versions. 2763 2764END 2765 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2766 echo 'Configuration will proceed anyway, since you have set the' >&2 2767 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2768 echo >&2 2769 else 2770 cat >&2 <<'END' 2771Aborting the configuration process, to ensure you take notice of the issue. 2772 2773You can download and install GNU coreutils to get an 'rm' implementation 2774that behaves properly: <https://www.gnu.org/software/coreutils/>. 2775 2776If you want to complete the configuration process using your problematic 2777'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2778to "yes", and re-run configure. 2779 2780END 2781 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2782 fi 2783fi 2784 2785 2786# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798DEPDIR="${am__leading_dot}deps" 2799 2800ac_config_commands="$ac_config_commands depfiles" 2801 2802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 2803$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 2804cat > confinc.mk << 'END' 2805am__doit: 2806 @echo this is the am__doit target >confinc.out 2807.PHONY: am__doit 2808END 2809am__include="#" 2810am__quote= 2811# BSD make does it like this. 2812echo '.include "confinc.mk" # ignored' > confmf.BSD 2813# Other make implementations (GNU, Solaris 10, AIX) do it like this. 2814echo 'include confinc.mk # ignored' > confmf.GNU 2815_am_result=no 2816for s in GNU BSD; do 2817 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 2818 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 2819 ac_status=$? 2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2821 (exit $ac_status); } 2822 case $?:`cat confinc.out 2>/dev/null` in #( 2823 '0:this is the am__doit target') : 2824 case $s in #( 2825 BSD) : 2826 am__include='.include' am__quote='"' ;; #( 2827 *) : 2828 am__include='include' am__quote='' ;; 2829esac ;; #( 2830 *) : 2831 ;; 2832esac 2833 if test "$am__include" != "#"; then 2834 _am_result="yes ($s style)" 2835 break 2836 fi 2837done 2838rm -f confinc.* confmf.* 2839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 2840$as_echo "${_am_result}" >&6; } 2841 2842# Check whether --enable-dependency-tracking was given. 2843if test "${enable_dependency_tracking+set}" = set; then : 2844 enableval=$enable_dependency_tracking; 2845fi 2846 2847if test "x$enable_dependency_tracking" != xno; then 2848 am_depcomp="$ac_aux_dir/depcomp" 2849 AMDEPBACKSLASH='\' 2850 am__nodep='_no' 2851fi 2852 if test "x$enable_dependency_tracking" != xno; then 2853 AMDEP_TRUE= 2854 AMDEP_FALSE='#' 2855else 2856 AMDEP_TRUE='#' 2857 AMDEP_FALSE= 2858fi 2859 2860 2861ac_ext=c 2862ac_cpp='$CPP $CPPFLAGS' 2863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2865ac_compiler_gnu=$ac_cv_c_compiler_gnu 2866if test -n "$ac_tool_prefix"; then 2867 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2868set dummy ${ac_tool_prefix}gcc; ac_word=$2 2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2870$as_echo_n "checking for $ac_word... " >&6; } 2871if ${ac_cv_prog_CC+:} false; then : 2872 $as_echo_n "(cached) " >&6 2873else 2874 if test -n "$CC"; then 2875 ac_cv_prog_CC="$CC" # Let the user override the test. 2876else 2877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2878for as_dir in $PATH 2879do 2880 IFS=$as_save_IFS 2881 test -z "$as_dir" && as_dir=. 2882 for ac_exec_ext in '' $ac_executable_extensions; do 2883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2884 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2886 break 2 2887 fi 2888done 2889 done 2890IFS=$as_save_IFS 2891 2892fi 2893fi 2894CC=$ac_cv_prog_CC 2895if test -n "$CC"; then 2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2897$as_echo "$CC" >&6; } 2898else 2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2900$as_echo "no" >&6; } 2901fi 2902 2903 2904fi 2905if test -z "$ac_cv_prog_CC"; then 2906 ac_ct_CC=$CC 2907 # Extract the first word of "gcc", so it can be a program name with args. 2908set dummy gcc; ac_word=$2 2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2910$as_echo_n "checking for $ac_word... " >&6; } 2911if ${ac_cv_prog_ac_ct_CC+:} false; then : 2912 $as_echo_n "(cached) " >&6 2913else 2914 if test -n "$ac_ct_CC"; then 2915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2916else 2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2918for as_dir in $PATH 2919do 2920 IFS=$as_save_IFS 2921 test -z "$as_dir" && as_dir=. 2922 for ac_exec_ext in '' $ac_executable_extensions; do 2923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2924 ac_cv_prog_ac_ct_CC="gcc" 2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2926 break 2 2927 fi 2928done 2929 done 2930IFS=$as_save_IFS 2931 2932fi 2933fi 2934ac_ct_CC=$ac_cv_prog_ac_ct_CC 2935if test -n "$ac_ct_CC"; then 2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2937$as_echo "$ac_ct_CC" >&6; } 2938else 2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2940$as_echo "no" >&6; } 2941fi 2942 2943 if test "x$ac_ct_CC" = x; then 2944 CC="" 2945 else 2946 case $cross_compiling:$ac_tool_warned in 2947yes:) 2948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2950ac_tool_warned=yes ;; 2951esac 2952 CC=$ac_ct_CC 2953 fi 2954else 2955 CC="$ac_cv_prog_CC" 2956fi 2957 2958if test -z "$CC"; then 2959 if test -n "$ac_tool_prefix"; then 2960 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2961set dummy ${ac_tool_prefix}cc; ac_word=$2 2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2963$as_echo_n "checking for $ac_word... " >&6; } 2964if ${ac_cv_prog_CC+:} false; then : 2965 $as_echo_n "(cached) " >&6 2966else 2967 if test -n "$CC"; then 2968 ac_cv_prog_CC="$CC" # Let the user override the test. 2969else 2970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2971for as_dir in $PATH 2972do 2973 IFS=$as_save_IFS 2974 test -z "$as_dir" && as_dir=. 2975 for ac_exec_ext in '' $ac_executable_extensions; do 2976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2977 ac_cv_prog_CC="${ac_tool_prefix}cc" 2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2979 break 2 2980 fi 2981done 2982 done 2983IFS=$as_save_IFS 2984 2985fi 2986fi 2987CC=$ac_cv_prog_CC 2988if test -n "$CC"; then 2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2990$as_echo "$CC" >&6; } 2991else 2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2993$as_echo "no" >&6; } 2994fi 2995 2996 2997 fi 2998fi 2999if test -z "$CC"; then 3000 # Extract the first word of "cc", so it can be a program name with args. 3001set dummy cc; ac_word=$2 3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3003$as_echo_n "checking for $ac_word... " >&6; } 3004if ${ac_cv_prog_CC+:} false; then : 3005 $as_echo_n "(cached) " >&6 3006else 3007 if test -n "$CC"; then 3008 ac_cv_prog_CC="$CC" # Let the user override the test. 3009else 3010 ac_prog_rejected=no 3011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3012for as_dir in $PATH 3013do 3014 IFS=$as_save_IFS 3015 test -z "$as_dir" && as_dir=. 3016 for ac_exec_ext in '' $ac_executable_extensions; do 3017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3018 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3019 ac_prog_rejected=yes 3020 continue 3021 fi 3022 ac_cv_prog_CC="cc" 3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3024 break 2 3025 fi 3026done 3027 done 3028IFS=$as_save_IFS 3029 3030if test $ac_prog_rejected = yes; then 3031 # We found a bogon in the path, so make sure we never use it. 3032 set dummy $ac_cv_prog_CC 3033 shift 3034 if test $# != 0; then 3035 # We chose a different compiler from the bogus one. 3036 # However, it has the same basename, so the bogon will be chosen 3037 # first if we set CC to just the basename; use the full file name. 3038 shift 3039 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3040 fi 3041fi 3042fi 3043fi 3044CC=$ac_cv_prog_CC 3045if test -n "$CC"; then 3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3047$as_echo "$CC" >&6; } 3048else 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3050$as_echo "no" >&6; } 3051fi 3052 3053 3054fi 3055if test -z "$CC"; then 3056 if test -n "$ac_tool_prefix"; then 3057 for ac_prog in cl.exe 3058 do 3059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3060set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3062$as_echo_n "checking for $ac_word... " >&6; } 3063if ${ac_cv_prog_CC+:} false; then : 3064 $as_echo_n "(cached) " >&6 3065else 3066 if test -n "$CC"; then 3067 ac_cv_prog_CC="$CC" # Let the user override the test. 3068else 3069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3070for as_dir in $PATH 3071do 3072 IFS=$as_save_IFS 3073 test -z "$as_dir" && as_dir=. 3074 for ac_exec_ext in '' $ac_executable_extensions; do 3075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3076 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3078 break 2 3079 fi 3080done 3081 done 3082IFS=$as_save_IFS 3083 3084fi 3085fi 3086CC=$ac_cv_prog_CC 3087if test -n "$CC"; then 3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3089$as_echo "$CC" >&6; } 3090else 3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3092$as_echo "no" >&6; } 3093fi 3094 3095 3096 test -n "$CC" && break 3097 done 3098fi 3099if test -z "$CC"; then 3100 ac_ct_CC=$CC 3101 for ac_prog in cl.exe 3102do 3103 # Extract the first word of "$ac_prog", so it can be a program name with args. 3104set dummy $ac_prog; ac_word=$2 3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3106$as_echo_n "checking for $ac_word... " >&6; } 3107if ${ac_cv_prog_ac_ct_CC+:} false; then : 3108 $as_echo_n "(cached) " >&6 3109else 3110 if test -n "$ac_ct_CC"; then 3111 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3112else 3113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3114for as_dir in $PATH 3115do 3116 IFS=$as_save_IFS 3117 test -z "$as_dir" && as_dir=. 3118 for ac_exec_ext in '' $ac_executable_extensions; do 3119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3120 ac_cv_prog_ac_ct_CC="$ac_prog" 3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3122 break 2 3123 fi 3124done 3125 done 3126IFS=$as_save_IFS 3127 3128fi 3129fi 3130ac_ct_CC=$ac_cv_prog_ac_ct_CC 3131if test -n "$ac_ct_CC"; then 3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3133$as_echo "$ac_ct_CC" >&6; } 3134else 3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3136$as_echo "no" >&6; } 3137fi 3138 3139 3140 test -n "$ac_ct_CC" && break 3141done 3142 3143 if test "x$ac_ct_CC" = x; then 3144 CC="" 3145 else 3146 case $cross_compiling:$ac_tool_warned in 3147yes:) 3148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3150ac_tool_warned=yes ;; 3151esac 3152 CC=$ac_ct_CC 3153 fi 3154fi 3155 3156fi 3157 3158 3159test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3161as_fn_error $? "no acceptable C compiler found in \$PATH 3162See \`config.log' for more details" "$LINENO" 5; } 3163 3164# Provide some information about the compiler. 3165$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3166set X $ac_compile 3167ac_compiler=$2 3168for ac_option in --version -v -V -qversion; do 3169 { { ac_try="$ac_compiler $ac_option >&5" 3170case "(($ac_try" in 3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3172 *) ac_try_echo=$ac_try;; 3173esac 3174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3175$as_echo "$ac_try_echo"; } >&5 3176 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3177 ac_status=$? 3178 if test -s conftest.err; then 3179 sed '10a\ 3180... rest of stderr output deleted ... 3181 10q' conftest.err >conftest.er1 3182 cat conftest.er1 >&5 3183 fi 3184 rm -f conftest.er1 conftest.err 3185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3186 test $ac_status = 0; } 3187done 3188 3189cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3190/* end confdefs.h. */ 3191 3192int 3193main () 3194{ 3195 3196 ; 3197 return 0; 3198} 3199_ACEOF 3200ac_clean_files_save=$ac_clean_files 3201ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3202# Try to create an executable without -o first, disregard a.out. 3203# It will help us diagnose broken compilers, and finding out an intuition 3204# of exeext. 3205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3206$as_echo_n "checking whether the C compiler works... " >&6; } 3207ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3208 3209# The possible output files: 3210ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3211 3212ac_rmfiles= 3213for ac_file in $ac_files 3214do 3215 case $ac_file in 3216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3217 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3218 esac 3219done 3220rm -f $ac_rmfiles 3221 3222if { { ac_try="$ac_link_default" 3223case "(($ac_try" in 3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3225 *) ac_try_echo=$ac_try;; 3226esac 3227eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3228$as_echo "$ac_try_echo"; } >&5 3229 (eval "$ac_link_default") 2>&5 3230 ac_status=$? 3231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3232 test $ac_status = 0; }; then : 3233 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3234# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3235# in a Makefile. We should not override ac_cv_exeext if it was cached, 3236# so that the user can short-circuit this test for compilers unknown to 3237# Autoconf. 3238for ac_file in $ac_files '' 3239do 3240 test -f "$ac_file" || continue 3241 case $ac_file in 3242 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3243 ;; 3244 [ab].out ) 3245 # We found the default executable, but exeext='' is most 3246 # certainly right. 3247 break;; 3248 *.* ) 3249 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3250 then :; else 3251 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3252 fi 3253 # We set ac_cv_exeext here because the later test for it is not 3254 # safe: cross compilers may not add the suffix if given an `-o' 3255 # argument, so we may need to know it at that point already. 3256 # Even if this section looks crufty: it has the advantage of 3257 # actually working. 3258 break;; 3259 * ) 3260 break;; 3261 esac 3262done 3263test "$ac_cv_exeext" = no && ac_cv_exeext= 3264 3265else 3266 ac_file='' 3267fi 3268if test -z "$ac_file"; then : 3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3270$as_echo "no" >&6; } 3271$as_echo "$as_me: failed program was:" >&5 3272sed 's/^/| /' conftest.$ac_ext >&5 3273 3274{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3276as_fn_error 77 "C compiler cannot create executables 3277See \`config.log' for more details" "$LINENO" 5; } 3278else 3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3280$as_echo "yes" >&6; } 3281fi 3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3283$as_echo_n "checking for C compiler default output file name... " >&6; } 3284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3285$as_echo "$ac_file" >&6; } 3286ac_exeext=$ac_cv_exeext 3287 3288rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3289ac_clean_files=$ac_clean_files_save 3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3291$as_echo_n "checking for suffix of executables... " >&6; } 3292if { { ac_try="$ac_link" 3293case "(($ac_try" in 3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3295 *) ac_try_echo=$ac_try;; 3296esac 3297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3298$as_echo "$ac_try_echo"; } >&5 3299 (eval "$ac_link") 2>&5 3300 ac_status=$? 3301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3302 test $ac_status = 0; }; then : 3303 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3304# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3305# work properly (i.e., refer to `conftest.exe'), while it won't with 3306# `rm'. 3307for ac_file in conftest.exe conftest conftest.*; do 3308 test -f "$ac_file" || continue 3309 case $ac_file in 3310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3311 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3312 break;; 3313 * ) break;; 3314 esac 3315done 3316else 3317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3318$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3319as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3320See \`config.log' for more details" "$LINENO" 5; } 3321fi 3322rm -f conftest conftest$ac_cv_exeext 3323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3324$as_echo "$ac_cv_exeext" >&6; } 3325 3326rm -f conftest.$ac_ext 3327EXEEXT=$ac_cv_exeext 3328ac_exeext=$EXEEXT 3329cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3330/* end confdefs.h. */ 3331#include <stdio.h> 3332int 3333main () 3334{ 3335FILE *f = fopen ("conftest.out", "w"); 3336 return ferror (f) || fclose (f) != 0; 3337 3338 ; 3339 return 0; 3340} 3341_ACEOF 3342ac_clean_files="$ac_clean_files conftest.out" 3343# Check that the compiler produces executables we can run. If not, either 3344# the compiler is broken, or we cross compile. 3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3346$as_echo_n "checking whether we are cross compiling... " >&6; } 3347if test "$cross_compiling" != yes; then 3348 { { ac_try="$ac_link" 3349case "(($ac_try" in 3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3351 *) ac_try_echo=$ac_try;; 3352esac 3353eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3354$as_echo "$ac_try_echo"; } >&5 3355 (eval "$ac_link") 2>&5 3356 ac_status=$? 3357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3358 test $ac_status = 0; } 3359 if { ac_try='./conftest$ac_cv_exeext' 3360 { { case "(($ac_try" in 3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3362 *) ac_try_echo=$ac_try;; 3363esac 3364eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3365$as_echo "$ac_try_echo"; } >&5 3366 (eval "$ac_try") 2>&5 3367 ac_status=$? 3368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3369 test $ac_status = 0; }; }; then 3370 cross_compiling=no 3371 else 3372 if test "$cross_compiling" = maybe; then 3373 cross_compiling=yes 3374 else 3375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3377as_fn_error $? "cannot run C compiled programs. 3378If you meant to cross compile, use \`--host'. 3379See \`config.log' for more details" "$LINENO" 5; } 3380 fi 3381 fi 3382fi 3383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3384$as_echo "$cross_compiling" >&6; } 3385 3386rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3387ac_clean_files=$ac_clean_files_save 3388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3389$as_echo_n "checking for suffix of object files... " >&6; } 3390if ${ac_cv_objext+:} false; then : 3391 $as_echo_n "(cached) " >&6 3392else 3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3394/* end confdefs.h. */ 3395 3396int 3397main () 3398{ 3399 3400 ; 3401 return 0; 3402} 3403_ACEOF 3404rm -f conftest.o conftest.obj 3405if { { ac_try="$ac_compile" 3406case "(($ac_try" in 3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3408 *) ac_try_echo=$ac_try;; 3409esac 3410eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3411$as_echo "$ac_try_echo"; } >&5 3412 (eval "$ac_compile") 2>&5 3413 ac_status=$? 3414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3415 test $ac_status = 0; }; then : 3416 for ac_file in conftest.o conftest.obj conftest.*; do 3417 test -f "$ac_file" || continue; 3418 case $ac_file in 3419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3420 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3421 break;; 3422 esac 3423done 3424else 3425 $as_echo "$as_me: failed program was:" >&5 3426sed 's/^/| /' conftest.$ac_ext >&5 3427 3428{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3430as_fn_error $? "cannot compute suffix of object files: cannot compile 3431See \`config.log' for more details" "$LINENO" 5; } 3432fi 3433rm -f conftest.$ac_cv_objext conftest.$ac_ext 3434fi 3435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3436$as_echo "$ac_cv_objext" >&6; } 3437OBJEXT=$ac_cv_objext 3438ac_objext=$OBJEXT 3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3440$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3441if ${ac_cv_c_compiler_gnu+:} false; then : 3442 $as_echo_n "(cached) " >&6 3443else 3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3445/* end confdefs.h. */ 3446 3447int 3448main () 3449{ 3450#ifndef __GNUC__ 3451 choke me 3452#endif 3453 3454 ; 3455 return 0; 3456} 3457_ACEOF 3458if ac_fn_c_try_compile "$LINENO"; then : 3459 ac_compiler_gnu=yes 3460else 3461 ac_compiler_gnu=no 3462fi 3463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3464ac_cv_c_compiler_gnu=$ac_compiler_gnu 3465 3466fi 3467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3468$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3469if test $ac_compiler_gnu = yes; then 3470 GCC=yes 3471else 3472 GCC= 3473fi 3474ac_test_CFLAGS=${CFLAGS+set} 3475ac_save_CFLAGS=$CFLAGS 3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3477$as_echo_n "checking whether $CC accepts -g... " >&6; } 3478if ${ac_cv_prog_cc_g+:} false; then : 3479 $as_echo_n "(cached) " >&6 3480else 3481 ac_save_c_werror_flag=$ac_c_werror_flag 3482 ac_c_werror_flag=yes 3483 ac_cv_prog_cc_g=no 3484 CFLAGS="-g" 3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3486/* end confdefs.h. */ 3487 3488int 3489main () 3490{ 3491 3492 ; 3493 return 0; 3494} 3495_ACEOF 3496if ac_fn_c_try_compile "$LINENO"; then : 3497 ac_cv_prog_cc_g=yes 3498else 3499 CFLAGS="" 3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3501/* end confdefs.h. */ 3502 3503int 3504main () 3505{ 3506 3507 ; 3508 return 0; 3509} 3510_ACEOF 3511if ac_fn_c_try_compile "$LINENO"; then : 3512 3513else 3514 ac_c_werror_flag=$ac_save_c_werror_flag 3515 CFLAGS="-g" 3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3517/* end confdefs.h. */ 3518 3519int 3520main () 3521{ 3522 3523 ; 3524 return 0; 3525} 3526_ACEOF 3527if ac_fn_c_try_compile "$LINENO"; then : 3528 ac_cv_prog_cc_g=yes 3529fi 3530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3531fi 3532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3533fi 3534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3535 ac_c_werror_flag=$ac_save_c_werror_flag 3536fi 3537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3538$as_echo "$ac_cv_prog_cc_g" >&6; } 3539if test "$ac_test_CFLAGS" = set; then 3540 CFLAGS=$ac_save_CFLAGS 3541elif test $ac_cv_prog_cc_g = yes; then 3542 if test "$GCC" = yes; then 3543 CFLAGS="-g -O2" 3544 else 3545 CFLAGS="-g" 3546 fi 3547else 3548 if test "$GCC" = yes; then 3549 CFLAGS="-O2" 3550 else 3551 CFLAGS= 3552 fi 3553fi 3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3555$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3556if ${ac_cv_prog_cc_c89+:} false; then : 3557 $as_echo_n "(cached) " >&6 3558else 3559 ac_cv_prog_cc_c89=no 3560ac_save_CC=$CC 3561cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3562/* end confdefs.h. */ 3563#include <stdarg.h> 3564#include <stdio.h> 3565struct stat; 3566/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3567struct buf { int x; }; 3568FILE * (*rcsopen) (struct buf *, struct stat *, int); 3569static char *e (p, i) 3570 char **p; 3571 int i; 3572{ 3573 return p[i]; 3574} 3575static char *f (char * (*g) (char **, int), char **p, ...) 3576{ 3577 char *s; 3578 va_list v; 3579 va_start (v,p); 3580 s = g (p, va_arg (v,int)); 3581 va_end (v); 3582 return s; 3583} 3584 3585/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3586 function prototypes and stuff, but not '\xHH' hex character constants. 3587 These don't provoke an error unfortunately, instead are silently treated 3588 as 'x'. The following induces an error, until -std is added to get 3589 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3590 array size at least. It's necessary to write '\x00'==0 to get something 3591 that's true only with -std. */ 3592int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3593 3594/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3595 inside strings and character constants. */ 3596#define FOO(x) 'x' 3597int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3598 3599int test (int i, double x); 3600struct s1 {int (*f) (int a);}; 3601struct s2 {int (*f) (double a);}; 3602int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3603int argc; 3604char **argv; 3605int 3606main () 3607{ 3608return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3609 ; 3610 return 0; 3611} 3612_ACEOF 3613for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3614 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3615do 3616 CC="$ac_save_CC $ac_arg" 3617 if ac_fn_c_try_compile "$LINENO"; then : 3618 ac_cv_prog_cc_c89=$ac_arg 3619fi 3620rm -f core conftest.err conftest.$ac_objext 3621 test "x$ac_cv_prog_cc_c89" != "xno" && break 3622done 3623rm -f conftest.$ac_ext 3624CC=$ac_save_CC 3625 3626fi 3627# AC_CACHE_VAL 3628case "x$ac_cv_prog_cc_c89" in 3629 x) 3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3631$as_echo "none needed" >&6; } ;; 3632 xno) 3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3634$as_echo "unsupported" >&6; } ;; 3635 *) 3636 CC="$CC $ac_cv_prog_cc_c89" 3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3638$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3639esac 3640if test "x$ac_cv_prog_cc_c89" != xno; then : 3641 3642fi 3643 3644ac_ext=c 3645ac_cpp='$CPP $CPPFLAGS' 3646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3648ac_compiler_gnu=$ac_cv_c_compiler_gnu 3649 3650ac_ext=c 3651ac_cpp='$CPP $CPPFLAGS' 3652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3654ac_compiler_gnu=$ac_cv_c_compiler_gnu 3655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3656$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3657if ${am_cv_prog_cc_c_o+:} false; then : 3658 $as_echo_n "(cached) " >&6 3659else 3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3661/* end confdefs.h. */ 3662 3663int 3664main () 3665{ 3666 3667 ; 3668 return 0; 3669} 3670_ACEOF 3671 # Make sure it works both with $CC and with simple cc. 3672 # Following AC_PROG_CC_C_O, we do the test twice because some 3673 # compilers refuse to overwrite an existing .o file with -o, 3674 # though they will create one. 3675 am_cv_prog_cc_c_o=yes 3676 for am_i in 1 2; do 3677 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3678 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3679 ac_status=$? 3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3681 (exit $ac_status); } \ 3682 && test -f conftest2.$ac_objext; then 3683 : OK 3684 else 3685 am_cv_prog_cc_c_o=no 3686 break 3687 fi 3688 done 3689 rm -f core conftest* 3690 unset am_i 3691fi 3692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3693$as_echo "$am_cv_prog_cc_c_o" >&6; } 3694if test "$am_cv_prog_cc_c_o" != yes; then 3695 # Losing compiler, so override with the script. 3696 # FIXME: It is wrong to rewrite CC. 3697 # But if we don't then we get into trouble of one sort or another. 3698 # A longer-term fix would be to have automake use am__CC in this case, 3699 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3700 CC="$am_aux_dir/compile $CC" 3701fi 3702ac_ext=c 3703ac_cpp='$CPP $CPPFLAGS' 3704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3706ac_compiler_gnu=$ac_cv_c_compiler_gnu 3707 3708 3709depcc="$CC" am_compiler_list= 3710 3711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3712$as_echo_n "checking dependency style of $depcc... " >&6; } 3713if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3714 $as_echo_n "(cached) " >&6 3715else 3716 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3717 # We make a subdir and do the tests there. Otherwise we can end up 3718 # making bogus files that we don't know about and never remove. For 3719 # instance it was reported that on HP-UX the gcc test will end up 3720 # making a dummy file named 'D' -- because '-MD' means "put the output 3721 # in D". 3722 rm -rf conftest.dir 3723 mkdir conftest.dir 3724 # Copy depcomp to subdir because otherwise we won't find it if we're 3725 # using a relative directory. 3726 cp "$am_depcomp" conftest.dir 3727 cd conftest.dir 3728 # We will build objects and dependencies in a subdirectory because 3729 # it helps to detect inapplicable dependency modes. For instance 3730 # both Tru64's cc and ICC support -MD to output dependencies as a 3731 # side effect of compilation, but ICC will put the dependencies in 3732 # the current directory while Tru64 will put them in the object 3733 # directory. 3734 mkdir sub 3735 3736 am_cv_CC_dependencies_compiler_type=none 3737 if test "$am_compiler_list" = ""; then 3738 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3739 fi 3740 am__universal=false 3741 case " $depcc " in #( 3742 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3743 esac 3744 3745 for depmode in $am_compiler_list; do 3746 # Setup a source with many dependencies, because some compilers 3747 # like to wrap large dependency lists on column 80 (with \), and 3748 # we should not choose a depcomp mode which is confused by this. 3749 # 3750 # We need to recreate these files for each test, as the compiler may 3751 # overwrite some of them when testing with obscure command lines. 3752 # This happens at least with the AIX C compiler. 3753 : > sub/conftest.c 3754 for i in 1 2 3 4 5 6; do 3755 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3756 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3757 # Solaris 10 /bin/sh. 3758 echo '/* dummy */' > sub/conftst$i.h 3759 done 3760 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3761 3762 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3763 # mode. It turns out that the SunPro C++ compiler does not properly 3764 # handle '-M -o', and we need to detect this. Also, some Intel 3765 # versions had trouble with output in subdirs. 3766 am__obj=sub/conftest.${OBJEXT-o} 3767 am__minus_obj="-o $am__obj" 3768 case $depmode in 3769 gcc) 3770 # This depmode causes a compiler race in universal mode. 3771 test "$am__universal" = false || continue 3772 ;; 3773 nosideeffect) 3774 # After this tag, mechanisms are not by side-effect, so they'll 3775 # only be used when explicitly requested. 3776 if test "x$enable_dependency_tracking" = xyes; then 3777 continue 3778 else 3779 break 3780 fi 3781 ;; 3782 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3783 # This compiler won't grok '-c -o', but also, the minuso test has 3784 # not run yet. These depmodes are late enough in the game, and 3785 # so weak that their functioning should not be impacted. 3786 am__obj=conftest.${OBJEXT-o} 3787 am__minus_obj= 3788 ;; 3789 none) break ;; 3790 esac 3791 if depmode=$depmode \ 3792 source=sub/conftest.c object=$am__obj \ 3793 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3794 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3795 >/dev/null 2>conftest.err && 3796 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3797 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3798 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3799 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3800 # icc doesn't choke on unknown options, it will just issue warnings 3801 # or remarks (even with -Werror). So we grep stderr for any message 3802 # that says an option was ignored or not supported. 3803 # When given -MP, icc 7.0 and 7.1 complain thusly: 3804 # icc: Command line warning: ignoring option '-M'; no argument required 3805 # The diagnosis changed in icc 8.0: 3806 # icc: Command line remark: option '-MP' not supported 3807 if (grep 'ignoring option' conftest.err || 3808 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3809 am_cv_CC_dependencies_compiler_type=$depmode 3810 break 3811 fi 3812 fi 3813 done 3814 3815 cd .. 3816 rm -rf conftest.dir 3817else 3818 am_cv_CC_dependencies_compiler_type=none 3819fi 3820 3821fi 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3823$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3824CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3825 3826 if 3827 test "x$enable_dependency_tracking" != xno \ 3828 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3829 am__fastdepCC_TRUE= 3830 am__fastdepCC_FALSE='#' 3831else 3832 am__fastdepCC_TRUE='#' 3833 am__fastdepCC_FALSE= 3834fi 3835 3836 3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3838$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3839if ${ac_cv_prog_cc_c99+:} false; then : 3840 $as_echo_n "(cached) " >&6 3841else 3842 ac_cv_prog_cc_c99=no 3843ac_save_CC=$CC 3844cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3845/* end confdefs.h. */ 3846#include <stdarg.h> 3847#include <stdbool.h> 3848#include <stdlib.h> 3849#include <wchar.h> 3850#include <stdio.h> 3851 3852// Check varargs macros. These examples are taken from C99 6.10.3.5. 3853#define debug(...) fprintf (stderr, __VA_ARGS__) 3854#define showlist(...) puts (#__VA_ARGS__) 3855#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3856static void 3857test_varargs_macros (void) 3858{ 3859 int x = 1234; 3860 int y = 5678; 3861 debug ("Flag"); 3862 debug ("X = %d\n", x); 3863 showlist (The first, second, and third items.); 3864 report (x>y, "x is %d but y is %d", x, y); 3865} 3866 3867// Check long long types. 3868#define BIG64 18446744073709551615ull 3869#define BIG32 4294967295ul 3870#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3871#if !BIG_OK 3872 your preprocessor is broken; 3873#endif 3874#if BIG_OK 3875#else 3876 your preprocessor is broken; 3877#endif 3878static long long int bignum = -9223372036854775807LL; 3879static unsigned long long int ubignum = BIG64; 3880 3881struct incomplete_array 3882{ 3883 int datasize; 3884 double data[]; 3885}; 3886 3887struct named_init { 3888 int number; 3889 const wchar_t *name; 3890 double average; 3891}; 3892 3893typedef const char *ccp; 3894 3895static inline int 3896test_restrict (ccp restrict text) 3897{ 3898 // See if C++-style comments work. 3899 // Iterate through items via the restricted pointer. 3900 // Also check for declarations in for loops. 3901 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3902 continue; 3903 return 0; 3904} 3905 3906// Check varargs and va_copy. 3907static void 3908test_varargs (const char *format, ...) 3909{ 3910 va_list args; 3911 va_start (args, format); 3912 va_list args_copy; 3913 va_copy (args_copy, args); 3914 3915 const char *str; 3916 int number; 3917 float fnumber; 3918 3919 while (*format) 3920 { 3921 switch (*format++) 3922 { 3923 case 's': // string 3924 str = va_arg (args_copy, const char *); 3925 break; 3926 case 'd': // int 3927 number = va_arg (args_copy, int); 3928 break; 3929 case 'f': // float 3930 fnumber = va_arg (args_copy, double); 3931 break; 3932 default: 3933 break; 3934 } 3935 } 3936 va_end (args_copy); 3937 va_end (args); 3938} 3939 3940int 3941main () 3942{ 3943 3944 // Check bool. 3945 _Bool success = false; 3946 3947 // Check restrict. 3948 if (test_restrict ("String literal") == 0) 3949 success = true; 3950 char *restrict newvar = "Another string"; 3951 3952 // Check varargs. 3953 test_varargs ("s, d' f .", "string", 65, 34.234); 3954 test_varargs_macros (); 3955 3956 // Check flexible array members. 3957 struct incomplete_array *ia = 3958 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3959 ia->datasize = 10; 3960 for (int i = 0; i < ia->datasize; ++i) 3961 ia->data[i] = i * 1.234; 3962 3963 // Check named initializers. 3964 struct named_init ni = { 3965 .number = 34, 3966 .name = L"Test wide string", 3967 .average = 543.34343, 3968 }; 3969 3970 ni.number = 58; 3971 3972 int dynamic_array[ni.number]; 3973 dynamic_array[ni.number - 1] = 543; 3974 3975 // work around unused variable warnings 3976 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3977 || dynamic_array[ni.number - 1] != 543); 3978 3979 ; 3980 return 0; 3981} 3982_ACEOF 3983for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3984do 3985 CC="$ac_save_CC $ac_arg" 3986 if ac_fn_c_try_compile "$LINENO"; then : 3987 ac_cv_prog_cc_c99=$ac_arg 3988fi 3989rm -f core conftest.err conftest.$ac_objext 3990 test "x$ac_cv_prog_cc_c99" != "xno" && break 3991done 3992rm -f conftest.$ac_ext 3993CC=$ac_save_CC 3994 3995fi 3996# AC_CACHE_VAL 3997case "x$ac_cv_prog_cc_c99" in 3998 x) 3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4000$as_echo "none needed" >&6; } ;; 4001 xno) 4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4003$as_echo "unsupported" >&6; } ;; 4004 *) 4005 CC="$CC $ac_cv_prog_cc_c99" 4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4007$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4008esac 4009if test "x$ac_cv_prog_cc_c99" != xno; then : 4010 4011fi 4012 4013 4014 4015ac_ext=c 4016ac_cpp='$CPP $CPPFLAGS' 4017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4019ac_compiler_gnu=$ac_cv_c_compiler_gnu 4020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4021$as_echo_n "checking how to run the C preprocessor... " >&6; } 4022# On Suns, sometimes $CPP names a directory. 4023if test -n "$CPP" && test -d "$CPP"; then 4024 CPP= 4025fi 4026if test -z "$CPP"; then 4027 if ${ac_cv_prog_CPP+:} false; then : 4028 $as_echo_n "(cached) " >&6 4029else 4030 # Double quotes because CPP needs to be expanded 4031 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4032 do 4033 ac_preproc_ok=false 4034for ac_c_preproc_warn_flag in '' yes 4035do 4036 # Use a header file that comes with gcc, so configuring glibc 4037 # with a fresh cross-compiler works. 4038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4039 # <limits.h> exists even on freestanding compilers. 4040 # On the NeXT, cc -E runs the code through the compiler's parser, 4041 # not just through cpp. "Syntax error" is here to catch this case. 4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4043/* end confdefs.h. */ 4044#ifdef __STDC__ 4045# include <limits.h> 4046#else 4047# include <assert.h> 4048#endif 4049 Syntax error 4050_ACEOF 4051if ac_fn_c_try_cpp "$LINENO"; then : 4052 4053else 4054 # Broken: fails on valid input. 4055continue 4056fi 4057rm -f conftest.err conftest.i conftest.$ac_ext 4058 4059 # OK, works on sane cases. Now check whether nonexistent headers 4060 # can be detected and how. 4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4062/* end confdefs.h. */ 4063#include <ac_nonexistent.h> 4064_ACEOF 4065if ac_fn_c_try_cpp "$LINENO"; then : 4066 # Broken: success on invalid input. 4067continue 4068else 4069 # Passes both tests. 4070ac_preproc_ok=: 4071break 4072fi 4073rm -f conftest.err conftest.i conftest.$ac_ext 4074 4075done 4076# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4077rm -f conftest.i conftest.err conftest.$ac_ext 4078if $ac_preproc_ok; then : 4079 break 4080fi 4081 4082 done 4083 ac_cv_prog_CPP=$CPP 4084 4085fi 4086 CPP=$ac_cv_prog_CPP 4087else 4088 ac_cv_prog_CPP=$CPP 4089fi 4090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4091$as_echo "$CPP" >&6; } 4092ac_preproc_ok=false 4093for ac_c_preproc_warn_flag in '' yes 4094do 4095 # Use a header file that comes with gcc, so configuring glibc 4096 # with a fresh cross-compiler works. 4097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4098 # <limits.h> exists even on freestanding compilers. 4099 # On the NeXT, cc -E runs the code through the compiler's parser, 4100 # not just through cpp. "Syntax error" is here to catch this case. 4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4102/* end confdefs.h. */ 4103#ifdef __STDC__ 4104# include <limits.h> 4105#else 4106# include <assert.h> 4107#endif 4108 Syntax error 4109_ACEOF 4110if ac_fn_c_try_cpp "$LINENO"; then : 4111 4112else 4113 # Broken: fails on valid input. 4114continue 4115fi 4116rm -f conftest.err conftest.i conftest.$ac_ext 4117 4118 # OK, works on sane cases. Now check whether nonexistent headers 4119 # can be detected and how. 4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4121/* end confdefs.h. */ 4122#include <ac_nonexistent.h> 4123_ACEOF 4124if ac_fn_c_try_cpp "$LINENO"; then : 4125 # Broken: success on invalid input. 4126continue 4127else 4128 # Passes both tests. 4129ac_preproc_ok=: 4130break 4131fi 4132rm -f conftest.err conftest.i conftest.$ac_ext 4133 4134done 4135# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4136rm -f conftest.i conftest.err conftest.$ac_ext 4137if $ac_preproc_ok; then : 4138 4139else 4140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4142as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4143See \`config.log' for more details" "$LINENO" 5; } 4144fi 4145 4146ac_ext=c 4147ac_cpp='$CPP $CPPFLAGS' 4148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4150ac_compiler_gnu=$ac_cv_c_compiler_gnu 4151 4152 4153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4154$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4155if ${ac_cv_path_GREP+:} false; then : 4156 $as_echo_n "(cached) " >&6 4157else 4158 if test -z "$GREP"; then 4159 ac_path_GREP_found=false 4160 # Loop through the user's path and test for each of PROGNAME-LIST 4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4162for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4163do 4164 IFS=$as_save_IFS 4165 test -z "$as_dir" && as_dir=. 4166 for ac_prog in grep ggrep; do 4167 for ac_exec_ext in '' $ac_executable_extensions; do 4168 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4169 as_fn_executable_p "$ac_path_GREP" || continue 4170# Check for GNU ac_path_GREP and select it if it is found. 4171 # Check for GNU $ac_path_GREP 4172case `"$ac_path_GREP" --version 2>&1` in 4173*GNU*) 4174 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4175*) 4176 ac_count=0 4177 $as_echo_n 0123456789 >"conftest.in" 4178 while : 4179 do 4180 cat "conftest.in" "conftest.in" >"conftest.tmp" 4181 mv "conftest.tmp" "conftest.in" 4182 cp "conftest.in" "conftest.nl" 4183 $as_echo 'GREP' >> "conftest.nl" 4184 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4185 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4186 as_fn_arith $ac_count + 1 && ac_count=$as_val 4187 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4188 # Best one so far, save it but keep looking for a better one 4189 ac_cv_path_GREP="$ac_path_GREP" 4190 ac_path_GREP_max=$ac_count 4191 fi 4192 # 10*(2^10) chars as input seems more than enough 4193 test $ac_count -gt 10 && break 4194 done 4195 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4196esac 4197 4198 $ac_path_GREP_found && break 3 4199 done 4200 done 4201 done 4202IFS=$as_save_IFS 4203 if test -z "$ac_cv_path_GREP"; then 4204 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4205 fi 4206else 4207 ac_cv_path_GREP=$GREP 4208fi 4209 4210fi 4211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4212$as_echo "$ac_cv_path_GREP" >&6; } 4213 GREP="$ac_cv_path_GREP" 4214 4215 4216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4217$as_echo_n "checking for egrep... " >&6; } 4218if ${ac_cv_path_EGREP+:} false; then : 4219 $as_echo_n "(cached) " >&6 4220else 4221 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4222 then ac_cv_path_EGREP="$GREP -E" 4223 else 4224 if test -z "$EGREP"; then 4225 ac_path_EGREP_found=false 4226 # Loop through the user's path and test for each of PROGNAME-LIST 4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4228for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4229do 4230 IFS=$as_save_IFS 4231 test -z "$as_dir" && as_dir=. 4232 for ac_prog in egrep; do 4233 for ac_exec_ext in '' $ac_executable_extensions; do 4234 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4235 as_fn_executable_p "$ac_path_EGREP" || continue 4236# Check for GNU ac_path_EGREP and select it if it is found. 4237 # Check for GNU $ac_path_EGREP 4238case `"$ac_path_EGREP" --version 2>&1` in 4239*GNU*) 4240 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4241*) 4242 ac_count=0 4243 $as_echo_n 0123456789 >"conftest.in" 4244 while : 4245 do 4246 cat "conftest.in" "conftest.in" >"conftest.tmp" 4247 mv "conftest.tmp" "conftest.in" 4248 cp "conftest.in" "conftest.nl" 4249 $as_echo 'EGREP' >> "conftest.nl" 4250 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4251 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4252 as_fn_arith $ac_count + 1 && ac_count=$as_val 4253 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4254 # Best one so far, save it but keep looking for a better one 4255 ac_cv_path_EGREP="$ac_path_EGREP" 4256 ac_path_EGREP_max=$ac_count 4257 fi 4258 # 10*(2^10) chars as input seems more than enough 4259 test $ac_count -gt 10 && break 4260 done 4261 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4262esac 4263 4264 $ac_path_EGREP_found && break 3 4265 done 4266 done 4267 done 4268IFS=$as_save_IFS 4269 if test -z "$ac_cv_path_EGREP"; then 4270 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4271 fi 4272else 4273 ac_cv_path_EGREP=$EGREP 4274fi 4275 4276 fi 4277fi 4278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4279$as_echo "$ac_cv_path_EGREP" >&6; } 4280 EGREP="$ac_cv_path_EGREP" 4281 4282 4283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4284$as_echo_n "checking for ANSI C header files... " >&6; } 4285if ${ac_cv_header_stdc+:} false; then : 4286 $as_echo_n "(cached) " >&6 4287else 4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4289/* end confdefs.h. */ 4290#include <stdlib.h> 4291#include <stdarg.h> 4292#include <string.h> 4293#include <float.h> 4294 4295int 4296main () 4297{ 4298 4299 ; 4300 return 0; 4301} 4302_ACEOF 4303if ac_fn_c_try_compile "$LINENO"; then : 4304 ac_cv_header_stdc=yes 4305else 4306 ac_cv_header_stdc=no 4307fi 4308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4309 4310if test $ac_cv_header_stdc = yes; then 4311 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4313/* end confdefs.h. */ 4314#include <string.h> 4315 4316_ACEOF 4317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4318 $EGREP "memchr" >/dev/null 2>&1; then : 4319 4320else 4321 ac_cv_header_stdc=no 4322fi 4323rm -f conftest* 4324 4325fi 4326 4327if test $ac_cv_header_stdc = yes; then 4328 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4330/* end confdefs.h. */ 4331#include <stdlib.h> 4332 4333_ACEOF 4334if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4335 $EGREP "free" >/dev/null 2>&1; then : 4336 4337else 4338 ac_cv_header_stdc=no 4339fi 4340rm -f conftest* 4341 4342fi 4343 4344if test $ac_cv_header_stdc = yes; then 4345 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4346 if test "$cross_compiling" = yes; then : 4347 : 4348else 4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4350/* end confdefs.h. */ 4351#include <ctype.h> 4352#include <stdlib.h> 4353#if ((' ' & 0x0FF) == 0x020) 4354# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4355# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4356#else 4357# define ISLOWER(c) \ 4358 (('a' <= (c) && (c) <= 'i') \ 4359 || ('j' <= (c) && (c) <= 'r') \ 4360 || ('s' <= (c) && (c) <= 'z')) 4361# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4362#endif 4363 4364#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4365int 4366main () 4367{ 4368 int i; 4369 for (i = 0; i < 256; i++) 4370 if (XOR (islower (i), ISLOWER (i)) 4371 || toupper (i) != TOUPPER (i)) 4372 return 2; 4373 return 0; 4374} 4375_ACEOF 4376if ac_fn_c_try_run "$LINENO"; then : 4377 4378else 4379 ac_cv_header_stdc=no 4380fi 4381rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4382 conftest.$ac_objext conftest.beam conftest.$ac_ext 4383fi 4384 4385fi 4386fi 4387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4388$as_echo "$ac_cv_header_stdc" >&6; } 4389if test $ac_cv_header_stdc = yes; then 4390 4391$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4392 4393fi 4394 4395# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4396for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4397 inttypes.h stdint.h unistd.h 4398do : 4399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4400ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4401" 4402if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4403 cat >>confdefs.h <<_ACEOF 4404#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4405_ACEOF 4406 4407fi 4408 4409done 4410 4411 4412 4413 4414 4415 4416ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4417if test "x$ac_cv_have_decl___clang__" = xyes; then : 4418 CLANGCC="yes" 4419else 4420 CLANGCC="no" 4421fi 4422 4423ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4424if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4425 INTELCC="yes" 4426else 4427 INTELCC="no" 4428fi 4429 4430ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4431if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4432 SUNCC="yes" 4433else 4434 SUNCC="no" 4435fi 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4446 if test -n "$ac_tool_prefix"; then 4447 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4448set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4450$as_echo_n "checking for $ac_word... " >&6; } 4451if ${ac_cv_path_PKG_CONFIG+:} false; then : 4452 $as_echo_n "(cached) " >&6 4453else 4454 case $PKG_CONFIG in 4455 [\\/]* | ?:[\\/]*) 4456 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4457 ;; 4458 *) 4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4460for as_dir in $PATH 4461do 4462 IFS=$as_save_IFS 4463 test -z "$as_dir" && as_dir=. 4464 for ac_exec_ext in '' $ac_executable_extensions; do 4465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4466 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4468 break 2 4469 fi 4470done 4471 done 4472IFS=$as_save_IFS 4473 4474 ;; 4475esac 4476fi 4477PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4478if test -n "$PKG_CONFIG"; then 4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4480$as_echo "$PKG_CONFIG" >&6; } 4481else 4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4483$as_echo "no" >&6; } 4484fi 4485 4486 4487fi 4488if test -z "$ac_cv_path_PKG_CONFIG"; then 4489 ac_pt_PKG_CONFIG=$PKG_CONFIG 4490 # Extract the first word of "pkg-config", so it can be a program name with args. 4491set dummy pkg-config; ac_word=$2 4492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4493$as_echo_n "checking for $ac_word... " >&6; } 4494if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4495 $as_echo_n "(cached) " >&6 4496else 4497 case $ac_pt_PKG_CONFIG in 4498 [\\/]* | ?:[\\/]*) 4499 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4500 ;; 4501 *) 4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4503for as_dir in $PATH 4504do 4505 IFS=$as_save_IFS 4506 test -z "$as_dir" && as_dir=. 4507 for ac_exec_ext in '' $ac_executable_extensions; do 4508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4509 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4511 break 2 4512 fi 4513done 4514 done 4515IFS=$as_save_IFS 4516 4517 ;; 4518esac 4519fi 4520ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4521if test -n "$ac_pt_PKG_CONFIG"; then 4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4523$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4524else 4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4526$as_echo "no" >&6; } 4527fi 4528 4529 if test "x$ac_pt_PKG_CONFIG" = x; then 4530 PKG_CONFIG="" 4531 else 4532 case $cross_compiling:$ac_tool_warned in 4533yes:) 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4536ac_tool_warned=yes ;; 4537esac 4538 PKG_CONFIG=$ac_pt_PKG_CONFIG 4539 fi 4540else 4541 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4542fi 4543 4544fi 4545if test -n "$PKG_CONFIG"; then 4546 _pkg_min_version=0.9.0 4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4548$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4549 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4551$as_echo "yes" >&6; } 4552 else 4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4554$as_echo "no" >&6; } 4555 PKG_CONFIG="" 4556 fi 4557fi 4558# Make sure we can run config.sub. 4559$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4560 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4561 4562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4563$as_echo_n "checking build system type... " >&6; } 4564if ${ac_cv_build+:} false; then : 4565 $as_echo_n "(cached) " >&6 4566else 4567 ac_build_alias=$build_alias 4568test "x$ac_build_alias" = x && 4569 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4570test "x$ac_build_alias" = x && 4571 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4572ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4573 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4574 4575fi 4576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4577$as_echo "$ac_cv_build" >&6; } 4578case $ac_cv_build in 4579*-*-*) ;; 4580*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4581esac 4582build=$ac_cv_build 4583ac_save_IFS=$IFS; IFS='-' 4584set x $ac_cv_build 4585shift 4586build_cpu=$1 4587build_vendor=$2 4588shift; shift 4589# Remember, the first character of IFS is used to create $*, 4590# except with old shells: 4591build_os=$* 4592IFS=$ac_save_IFS 4593case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4594 4595 4596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4597$as_echo_n "checking host system type... " >&6; } 4598if ${ac_cv_host+:} false; then : 4599 $as_echo_n "(cached) " >&6 4600else 4601 if test "x$host_alias" = x; then 4602 ac_cv_host=$ac_cv_build 4603else 4604 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4605 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4606fi 4607 4608fi 4609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4610$as_echo "$ac_cv_host" >&6; } 4611case $ac_cv_host in 4612*-*-*) ;; 4613*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4614esac 4615host=$ac_cv_host 4616ac_save_IFS=$IFS; IFS='-' 4617set x $ac_cv_host 4618shift 4619host_cpu=$1 4620host_vendor=$2 4621shift; shift 4622# Remember, the first character of IFS is used to create $*, 4623# except with old shells: 4624host_os=$* 4625IFS=$ac_save_IFS 4626case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4627 4628 4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4630$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4631if ${ac_cv_path_SED+:} false; then : 4632 $as_echo_n "(cached) " >&6 4633else 4634 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4635 for ac_i in 1 2 3 4 5 6 7; do 4636 ac_script="$ac_script$as_nl$ac_script" 4637 done 4638 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4639 { ac_script=; unset ac_script;} 4640 if test -z "$SED"; then 4641 ac_path_SED_found=false 4642 # Loop through the user's path and test for each of PROGNAME-LIST 4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4644for as_dir in $PATH 4645do 4646 IFS=$as_save_IFS 4647 test -z "$as_dir" && as_dir=. 4648 for ac_prog in sed gsed; do 4649 for ac_exec_ext in '' $ac_executable_extensions; do 4650 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4651 as_fn_executable_p "$ac_path_SED" || continue 4652# Check for GNU ac_path_SED and select it if it is found. 4653 # Check for GNU $ac_path_SED 4654case `"$ac_path_SED" --version 2>&1` in 4655*GNU*) 4656 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4657*) 4658 ac_count=0 4659 $as_echo_n 0123456789 >"conftest.in" 4660 while : 4661 do 4662 cat "conftest.in" "conftest.in" >"conftest.tmp" 4663 mv "conftest.tmp" "conftest.in" 4664 cp "conftest.in" "conftest.nl" 4665 $as_echo '' >> "conftest.nl" 4666 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4668 as_fn_arith $ac_count + 1 && ac_count=$as_val 4669 if test $ac_count -gt ${ac_path_SED_max-0}; then 4670 # Best one so far, save it but keep looking for a better one 4671 ac_cv_path_SED="$ac_path_SED" 4672 ac_path_SED_max=$ac_count 4673 fi 4674 # 10*(2^10) chars as input seems more than enough 4675 test $ac_count -gt 10 && break 4676 done 4677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4678esac 4679 4680 $ac_path_SED_found && break 3 4681 done 4682 done 4683 done 4684IFS=$as_save_IFS 4685 if test -z "$ac_cv_path_SED"; then 4686 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4687 fi 4688else 4689 ac_cv_path_SED=$SED 4690fi 4691 4692fi 4693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4694$as_echo "$ac_cv_path_SED" >&6; } 4695 SED="$ac_cv_path_SED" 4696 rm -f conftest.sed 4697 4698 4699 4700 4701 4702 4703# Check whether --enable-selective-werror was given. 4704if test "${enable_selective_werror+set}" = set; then : 4705 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4706else 4707 SELECTIVE_WERROR=yes 4708fi 4709 4710 4711 4712 4713 4714# -v is too short to test reliably with XORG_TESTSET_CFLAG 4715if test "x$SUNCC" = "xyes"; then 4716 BASE_CFLAGS="-v" 4717else 4718 BASE_CFLAGS="" 4719fi 4720 4721# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735xorg_testset_save_CFLAGS="$CFLAGS" 4736 4737if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4740$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4741if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4742 $as_echo_n "(cached) " >&6 4743else 4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4745/* end confdefs.h. */ 4746int i; 4747_ACEOF 4748if ac_fn_c_try_compile "$LINENO"; then : 4749 xorg_cv_cc_flag_unknown_warning_option=yes 4750else 4751 xorg_cv_cc_flag_unknown_warning_option=no 4752fi 4753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4754fi 4755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4756$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4757 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4758 CFLAGS="$xorg_testset_save_CFLAGS" 4759fi 4760 4761if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4764 fi 4765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4767$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4768if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4769 $as_echo_n "(cached) " >&6 4770else 4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4772/* end confdefs.h. */ 4773int i; 4774_ACEOF 4775if ac_fn_c_try_compile "$LINENO"; then : 4776 xorg_cv_cc_flag_unused_command_line_argument=yes 4777else 4778 xorg_cv_cc_flag_unused_command_line_argument=no 4779fi 4780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4781fi 4782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4783$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4784 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4785 CFLAGS="$xorg_testset_save_CFLAGS" 4786fi 4787 4788found="no" 4789 4790 if test $found = "no" ; then 4791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4793 fi 4794 4795 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4797 fi 4798 4799 CFLAGS="$CFLAGS -Wall" 4800 4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4802$as_echo_n "checking if $CC supports -Wall... " >&6; } 4803 cacheid=xorg_cv_cc_flag__Wall 4804 if eval \${$cacheid+:} false; then : 4805 $as_echo_n "(cached) " >&6 4806else 4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4808/* end confdefs.h. */ 4809int i; 4810int 4811main () 4812{ 4813 4814 ; 4815 return 0; 4816} 4817_ACEOF 4818if ac_fn_c_try_link "$LINENO"; then : 4819 eval $cacheid=yes 4820else 4821 eval $cacheid=no 4822fi 4823rm -f core conftest.err conftest.$ac_objext \ 4824 conftest$ac_exeext conftest.$ac_ext 4825fi 4826 4827 4828 CFLAGS="$xorg_testset_save_CFLAGS" 4829 4830 eval supported=\$$cacheid 4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4832$as_echo "$supported" >&6; } 4833 if test "$supported" = "yes" ; then 4834 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4835 found="yes" 4836 fi 4837 fi 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853xorg_testset_save_CFLAGS="$CFLAGS" 4854 4855if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4858$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4859if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4860 $as_echo_n "(cached) " >&6 4861else 4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4863/* end confdefs.h. */ 4864int i; 4865_ACEOF 4866if ac_fn_c_try_compile "$LINENO"; then : 4867 xorg_cv_cc_flag_unknown_warning_option=yes 4868else 4869 xorg_cv_cc_flag_unknown_warning_option=no 4870fi 4871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4872fi 4873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4874$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4876 CFLAGS="$xorg_testset_save_CFLAGS" 4877fi 4878 4879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4882 fi 4883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4885$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4886if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4887 $as_echo_n "(cached) " >&6 4888else 4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4890/* end confdefs.h. */ 4891int i; 4892_ACEOF 4893if ac_fn_c_try_compile "$LINENO"; then : 4894 xorg_cv_cc_flag_unused_command_line_argument=yes 4895else 4896 xorg_cv_cc_flag_unused_command_line_argument=no 4897fi 4898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4899fi 4900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4901$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4902 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4903 CFLAGS="$xorg_testset_save_CFLAGS" 4904fi 4905 4906found="no" 4907 4908 if test $found = "no" ; then 4909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4911 fi 4912 4913 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4915 fi 4916 4917 CFLAGS="$CFLAGS -Wpointer-arith" 4918 4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4920$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4921 cacheid=xorg_cv_cc_flag__Wpointer_arith 4922 if eval \${$cacheid+:} false; then : 4923 $as_echo_n "(cached) " >&6 4924else 4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4926/* end confdefs.h. */ 4927int i; 4928int 4929main () 4930{ 4931 4932 ; 4933 return 0; 4934} 4935_ACEOF 4936if ac_fn_c_try_link "$LINENO"; then : 4937 eval $cacheid=yes 4938else 4939 eval $cacheid=no 4940fi 4941rm -f core conftest.err conftest.$ac_objext \ 4942 conftest$ac_exeext conftest.$ac_ext 4943fi 4944 4945 4946 CFLAGS="$xorg_testset_save_CFLAGS" 4947 4948 eval supported=\$$cacheid 4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4950$as_echo "$supported" >&6; } 4951 if test "$supported" = "yes" ; then 4952 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4953 found="yes" 4954 fi 4955 fi 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971xorg_testset_save_CFLAGS="$CFLAGS" 4972 4973if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4976$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4977if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4978 $as_echo_n "(cached) " >&6 4979else 4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4981/* end confdefs.h. */ 4982int i; 4983_ACEOF 4984if ac_fn_c_try_compile "$LINENO"; then : 4985 xorg_cv_cc_flag_unknown_warning_option=yes 4986else 4987 xorg_cv_cc_flag_unknown_warning_option=no 4988fi 4989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4990fi 4991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4992$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4993 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4994 CFLAGS="$xorg_testset_save_CFLAGS" 4995fi 4996 4997if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5000 fi 5001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5003$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5004if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5005 $as_echo_n "(cached) " >&6 5006else 5007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5008/* end confdefs.h. */ 5009int i; 5010_ACEOF 5011if ac_fn_c_try_compile "$LINENO"; then : 5012 xorg_cv_cc_flag_unused_command_line_argument=yes 5013else 5014 xorg_cv_cc_flag_unused_command_line_argument=no 5015fi 5016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5017fi 5018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5019$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5020 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5021 CFLAGS="$xorg_testset_save_CFLAGS" 5022fi 5023 5024found="no" 5025 5026 if test $found = "no" ; then 5027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5029 fi 5030 5031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5033 fi 5034 5035 CFLAGS="$CFLAGS -Wmissing-declarations" 5036 5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5038$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5039 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5040 if eval \${$cacheid+:} false; then : 5041 $as_echo_n "(cached) " >&6 5042else 5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5044/* end confdefs.h. */ 5045int i; 5046int 5047main () 5048{ 5049 5050 ; 5051 return 0; 5052} 5053_ACEOF 5054if ac_fn_c_try_link "$LINENO"; then : 5055 eval $cacheid=yes 5056else 5057 eval $cacheid=no 5058fi 5059rm -f core conftest.err conftest.$ac_objext \ 5060 conftest$ac_exeext conftest.$ac_ext 5061fi 5062 5063 5064 CFLAGS="$xorg_testset_save_CFLAGS" 5065 5066 eval supported=\$$cacheid 5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5068$as_echo "$supported" >&6; } 5069 if test "$supported" = "yes" ; then 5070 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5071 found="yes" 5072 fi 5073 fi 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089xorg_testset_save_CFLAGS="$CFLAGS" 5090 5091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5094$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5095if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5096 $as_echo_n "(cached) " >&6 5097else 5098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5099/* end confdefs.h. */ 5100int i; 5101_ACEOF 5102if ac_fn_c_try_compile "$LINENO"; then : 5103 xorg_cv_cc_flag_unknown_warning_option=yes 5104else 5105 xorg_cv_cc_flag_unknown_warning_option=no 5106fi 5107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5108fi 5109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5110$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5112 CFLAGS="$xorg_testset_save_CFLAGS" 5113fi 5114 5115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5118 fi 5119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5121$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5122if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5123 $as_echo_n "(cached) " >&6 5124else 5125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5126/* end confdefs.h. */ 5127int i; 5128_ACEOF 5129if ac_fn_c_try_compile "$LINENO"; then : 5130 xorg_cv_cc_flag_unused_command_line_argument=yes 5131else 5132 xorg_cv_cc_flag_unused_command_line_argument=no 5133fi 5134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5135fi 5136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5137$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5139 CFLAGS="$xorg_testset_save_CFLAGS" 5140fi 5141 5142found="no" 5143 5144 if test $found = "no" ; then 5145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5147 fi 5148 5149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5151 fi 5152 5153 CFLAGS="$CFLAGS -Wformat=2" 5154 5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5156$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5157 cacheid=xorg_cv_cc_flag__Wformat_2 5158 if eval \${$cacheid+:} false; then : 5159 $as_echo_n "(cached) " >&6 5160else 5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5162/* end confdefs.h. */ 5163int i; 5164int 5165main () 5166{ 5167 5168 ; 5169 return 0; 5170} 5171_ACEOF 5172if ac_fn_c_try_link "$LINENO"; then : 5173 eval $cacheid=yes 5174else 5175 eval $cacheid=no 5176fi 5177rm -f core conftest.err conftest.$ac_objext \ 5178 conftest$ac_exeext conftest.$ac_ext 5179fi 5180 5181 5182 CFLAGS="$xorg_testset_save_CFLAGS" 5183 5184 eval supported=\$$cacheid 5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5186$as_echo "$supported" >&6; } 5187 if test "$supported" = "yes" ; then 5188 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5189 found="yes" 5190 fi 5191 fi 5192 5193 if test $found = "no" ; then 5194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5196 fi 5197 5198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5200 fi 5201 5202 CFLAGS="$CFLAGS -Wformat" 5203 5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5205$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5206 cacheid=xorg_cv_cc_flag__Wformat 5207 if eval \${$cacheid+:} false; then : 5208 $as_echo_n "(cached) " >&6 5209else 5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5211/* end confdefs.h. */ 5212int i; 5213int 5214main () 5215{ 5216 5217 ; 5218 return 0; 5219} 5220_ACEOF 5221if ac_fn_c_try_link "$LINENO"; then : 5222 eval $cacheid=yes 5223else 5224 eval $cacheid=no 5225fi 5226rm -f core conftest.err conftest.$ac_objext \ 5227 conftest$ac_exeext conftest.$ac_ext 5228fi 5229 5230 5231 CFLAGS="$xorg_testset_save_CFLAGS" 5232 5233 eval supported=\$$cacheid 5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5235$as_echo "$supported" >&6; } 5236 if test "$supported" = "yes" ; then 5237 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5238 found="yes" 5239 fi 5240 fi 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258xorg_testset_save_CFLAGS="$CFLAGS" 5259 5260if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5263$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5264if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5265 $as_echo_n "(cached) " >&6 5266else 5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5268/* end confdefs.h. */ 5269int i; 5270_ACEOF 5271if ac_fn_c_try_compile "$LINENO"; then : 5272 xorg_cv_cc_flag_unknown_warning_option=yes 5273else 5274 xorg_cv_cc_flag_unknown_warning_option=no 5275fi 5276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5277fi 5278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5279$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5281 CFLAGS="$xorg_testset_save_CFLAGS" 5282fi 5283 5284if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5287 fi 5288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5290$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5291if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5292 $as_echo_n "(cached) " >&6 5293else 5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5295/* end confdefs.h. */ 5296int i; 5297_ACEOF 5298if ac_fn_c_try_compile "$LINENO"; then : 5299 xorg_cv_cc_flag_unused_command_line_argument=yes 5300else 5301 xorg_cv_cc_flag_unused_command_line_argument=no 5302fi 5303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5304fi 5305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5306$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5307 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5308 CFLAGS="$xorg_testset_save_CFLAGS" 5309fi 5310 5311found="no" 5312 5313 if test $found = "no" ; then 5314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5316 fi 5317 5318 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5320 fi 5321 5322 CFLAGS="$CFLAGS -Wstrict-prototypes" 5323 5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5325$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5326 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5327 if eval \${$cacheid+:} false; then : 5328 $as_echo_n "(cached) " >&6 5329else 5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5331/* end confdefs.h. */ 5332int i; 5333int 5334main () 5335{ 5336 5337 ; 5338 return 0; 5339} 5340_ACEOF 5341if ac_fn_c_try_link "$LINENO"; then : 5342 eval $cacheid=yes 5343else 5344 eval $cacheid=no 5345fi 5346rm -f core conftest.err conftest.$ac_objext \ 5347 conftest$ac_exeext conftest.$ac_ext 5348fi 5349 5350 5351 CFLAGS="$xorg_testset_save_CFLAGS" 5352 5353 eval supported=\$$cacheid 5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5355$as_echo "$supported" >&6; } 5356 if test "$supported" = "yes" ; then 5357 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5358 found="yes" 5359 fi 5360 fi 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376xorg_testset_save_CFLAGS="$CFLAGS" 5377 5378if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5381$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5382if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5383 $as_echo_n "(cached) " >&6 5384else 5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5386/* end confdefs.h. */ 5387int i; 5388_ACEOF 5389if ac_fn_c_try_compile "$LINENO"; then : 5390 xorg_cv_cc_flag_unknown_warning_option=yes 5391else 5392 xorg_cv_cc_flag_unknown_warning_option=no 5393fi 5394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5395fi 5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5397$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5398 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5399 CFLAGS="$xorg_testset_save_CFLAGS" 5400fi 5401 5402if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5405 fi 5406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5408$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5409if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5410 $as_echo_n "(cached) " >&6 5411else 5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5413/* end confdefs.h. */ 5414int i; 5415_ACEOF 5416if ac_fn_c_try_compile "$LINENO"; then : 5417 xorg_cv_cc_flag_unused_command_line_argument=yes 5418else 5419 xorg_cv_cc_flag_unused_command_line_argument=no 5420fi 5421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5422fi 5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5424$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5425 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5426 CFLAGS="$xorg_testset_save_CFLAGS" 5427fi 5428 5429found="no" 5430 5431 if test $found = "no" ; then 5432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5434 fi 5435 5436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5438 fi 5439 5440 CFLAGS="$CFLAGS -Wmissing-prototypes" 5441 5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5443$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5444 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5445 if eval \${$cacheid+:} false; then : 5446 $as_echo_n "(cached) " >&6 5447else 5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5449/* end confdefs.h. */ 5450int i; 5451int 5452main () 5453{ 5454 5455 ; 5456 return 0; 5457} 5458_ACEOF 5459if ac_fn_c_try_link "$LINENO"; then : 5460 eval $cacheid=yes 5461else 5462 eval $cacheid=no 5463fi 5464rm -f core conftest.err conftest.$ac_objext \ 5465 conftest$ac_exeext conftest.$ac_ext 5466fi 5467 5468 5469 CFLAGS="$xorg_testset_save_CFLAGS" 5470 5471 eval supported=\$$cacheid 5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5473$as_echo "$supported" >&6; } 5474 if test "$supported" = "yes" ; then 5475 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5476 found="yes" 5477 fi 5478 fi 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494xorg_testset_save_CFLAGS="$CFLAGS" 5495 5496if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5499$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5500if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5501 $as_echo_n "(cached) " >&6 5502else 5503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5504/* end confdefs.h. */ 5505int i; 5506_ACEOF 5507if ac_fn_c_try_compile "$LINENO"; then : 5508 xorg_cv_cc_flag_unknown_warning_option=yes 5509else 5510 xorg_cv_cc_flag_unknown_warning_option=no 5511fi 5512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5513fi 5514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5515$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5516 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5517 CFLAGS="$xorg_testset_save_CFLAGS" 5518fi 5519 5520if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5523 fi 5524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5526$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5527if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5528 $as_echo_n "(cached) " >&6 5529else 5530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5531/* end confdefs.h. */ 5532int i; 5533_ACEOF 5534if ac_fn_c_try_compile "$LINENO"; then : 5535 xorg_cv_cc_flag_unused_command_line_argument=yes 5536else 5537 xorg_cv_cc_flag_unused_command_line_argument=no 5538fi 5539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5540fi 5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5542$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5544 CFLAGS="$xorg_testset_save_CFLAGS" 5545fi 5546 5547found="no" 5548 5549 if test $found = "no" ; then 5550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5552 fi 5553 5554 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5556 fi 5557 5558 CFLAGS="$CFLAGS -Wnested-externs" 5559 5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5561$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5562 cacheid=xorg_cv_cc_flag__Wnested_externs 5563 if eval \${$cacheid+:} false; then : 5564 $as_echo_n "(cached) " >&6 5565else 5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5567/* end confdefs.h. */ 5568int i; 5569int 5570main () 5571{ 5572 5573 ; 5574 return 0; 5575} 5576_ACEOF 5577if ac_fn_c_try_link "$LINENO"; then : 5578 eval $cacheid=yes 5579else 5580 eval $cacheid=no 5581fi 5582rm -f core conftest.err conftest.$ac_objext \ 5583 conftest$ac_exeext conftest.$ac_ext 5584fi 5585 5586 5587 CFLAGS="$xorg_testset_save_CFLAGS" 5588 5589 eval supported=\$$cacheid 5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5591$as_echo "$supported" >&6; } 5592 if test "$supported" = "yes" ; then 5593 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5594 found="yes" 5595 fi 5596 fi 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612xorg_testset_save_CFLAGS="$CFLAGS" 5613 5614if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5617$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5618if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5619 $as_echo_n "(cached) " >&6 5620else 5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5622/* end confdefs.h. */ 5623int i; 5624_ACEOF 5625if ac_fn_c_try_compile "$LINENO"; then : 5626 xorg_cv_cc_flag_unknown_warning_option=yes 5627else 5628 xorg_cv_cc_flag_unknown_warning_option=no 5629fi 5630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5631fi 5632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5633$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5635 CFLAGS="$xorg_testset_save_CFLAGS" 5636fi 5637 5638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5641 fi 5642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5644$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5645if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5646 $as_echo_n "(cached) " >&6 5647else 5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5649/* end confdefs.h. */ 5650int i; 5651_ACEOF 5652if ac_fn_c_try_compile "$LINENO"; then : 5653 xorg_cv_cc_flag_unused_command_line_argument=yes 5654else 5655 xorg_cv_cc_flag_unused_command_line_argument=no 5656fi 5657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5658fi 5659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5660$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5661 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5662 CFLAGS="$xorg_testset_save_CFLAGS" 5663fi 5664 5665found="no" 5666 5667 if test $found = "no" ; then 5668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5670 fi 5671 5672 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5674 fi 5675 5676 CFLAGS="$CFLAGS -Wbad-function-cast" 5677 5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5679$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5680 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5681 if eval \${$cacheid+:} false; then : 5682 $as_echo_n "(cached) " >&6 5683else 5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5685/* end confdefs.h. */ 5686int i; 5687int 5688main () 5689{ 5690 5691 ; 5692 return 0; 5693} 5694_ACEOF 5695if ac_fn_c_try_link "$LINENO"; then : 5696 eval $cacheid=yes 5697else 5698 eval $cacheid=no 5699fi 5700rm -f core conftest.err conftest.$ac_objext \ 5701 conftest$ac_exeext conftest.$ac_ext 5702fi 5703 5704 5705 CFLAGS="$xorg_testset_save_CFLAGS" 5706 5707 eval supported=\$$cacheid 5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5709$as_echo "$supported" >&6; } 5710 if test "$supported" = "yes" ; then 5711 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5712 found="yes" 5713 fi 5714 fi 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730xorg_testset_save_CFLAGS="$CFLAGS" 5731 5732if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5735$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5736if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5737 $as_echo_n "(cached) " >&6 5738else 5739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5740/* end confdefs.h. */ 5741int i; 5742_ACEOF 5743if ac_fn_c_try_compile "$LINENO"; then : 5744 xorg_cv_cc_flag_unknown_warning_option=yes 5745else 5746 xorg_cv_cc_flag_unknown_warning_option=no 5747fi 5748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5749fi 5750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5751$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5752 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5753 CFLAGS="$xorg_testset_save_CFLAGS" 5754fi 5755 5756if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5759 fi 5760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5762$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5763if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5764 $as_echo_n "(cached) " >&6 5765else 5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5767/* end confdefs.h. */ 5768int i; 5769_ACEOF 5770if ac_fn_c_try_compile "$LINENO"; then : 5771 xorg_cv_cc_flag_unused_command_line_argument=yes 5772else 5773 xorg_cv_cc_flag_unused_command_line_argument=no 5774fi 5775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5776fi 5777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5778$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5779 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5780 CFLAGS="$xorg_testset_save_CFLAGS" 5781fi 5782 5783found="no" 5784 5785 if test $found = "no" ; then 5786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5788 fi 5789 5790 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5792 fi 5793 5794 CFLAGS="$CFLAGS -Wold-style-definition" 5795 5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5797$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5798 cacheid=xorg_cv_cc_flag__Wold_style_definition 5799 if eval \${$cacheid+:} false; then : 5800 $as_echo_n "(cached) " >&6 5801else 5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5803/* end confdefs.h. */ 5804int i; 5805int 5806main () 5807{ 5808 5809 ; 5810 return 0; 5811} 5812_ACEOF 5813if ac_fn_c_try_link "$LINENO"; then : 5814 eval $cacheid=yes 5815else 5816 eval $cacheid=no 5817fi 5818rm -f core conftest.err conftest.$ac_objext \ 5819 conftest$ac_exeext conftest.$ac_ext 5820fi 5821 5822 5823 CFLAGS="$xorg_testset_save_CFLAGS" 5824 5825 eval supported=\$$cacheid 5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5827$as_echo "$supported" >&6; } 5828 if test "$supported" = "yes" ; then 5829 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5830 found="yes" 5831 fi 5832 fi 5833 5834 if test $found = "no" ; then 5835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5837 fi 5838 5839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5841 fi 5842 5843 CFLAGS="$CFLAGS -fd" 5844 5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5846$as_echo_n "checking if $CC supports -fd... " >&6; } 5847 cacheid=xorg_cv_cc_flag__fd 5848 if eval \${$cacheid+:} false; then : 5849 $as_echo_n "(cached) " >&6 5850else 5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5852/* end confdefs.h. */ 5853int i; 5854int 5855main () 5856{ 5857 5858 ; 5859 return 0; 5860} 5861_ACEOF 5862if ac_fn_c_try_link "$LINENO"; then : 5863 eval $cacheid=yes 5864else 5865 eval $cacheid=no 5866fi 5867rm -f core conftest.err conftest.$ac_objext \ 5868 conftest$ac_exeext conftest.$ac_ext 5869fi 5870 5871 5872 CFLAGS="$xorg_testset_save_CFLAGS" 5873 5874 eval supported=\$$cacheid 5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5876$as_echo "$supported" >&6; } 5877 if test "$supported" = "yes" ; then 5878 BASE_CFLAGS="$BASE_CFLAGS -fd" 5879 found="yes" 5880 fi 5881 fi 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897xorg_testset_save_CFLAGS="$CFLAGS" 5898 5899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5902$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5903if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5904 $as_echo_n "(cached) " >&6 5905else 5906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5907/* end confdefs.h. */ 5908int i; 5909_ACEOF 5910if ac_fn_c_try_compile "$LINENO"; then : 5911 xorg_cv_cc_flag_unknown_warning_option=yes 5912else 5913 xorg_cv_cc_flag_unknown_warning_option=no 5914fi 5915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5916fi 5917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5918$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5919 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5920 CFLAGS="$xorg_testset_save_CFLAGS" 5921fi 5922 5923if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5926 fi 5927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5929$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5930if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5931 $as_echo_n "(cached) " >&6 5932else 5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5934/* end confdefs.h. */ 5935int i; 5936_ACEOF 5937if ac_fn_c_try_compile "$LINENO"; then : 5938 xorg_cv_cc_flag_unused_command_line_argument=yes 5939else 5940 xorg_cv_cc_flag_unused_command_line_argument=no 5941fi 5942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5943fi 5944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5945$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5947 CFLAGS="$xorg_testset_save_CFLAGS" 5948fi 5949 5950found="no" 5951 5952 if test $found = "no" ; then 5953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5955 fi 5956 5957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5959 fi 5960 5961 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5962 5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5964$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5965 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5966 if eval \${$cacheid+:} false; then : 5967 $as_echo_n "(cached) " >&6 5968else 5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5970/* end confdefs.h. */ 5971int i; 5972int 5973main () 5974{ 5975 5976 ; 5977 return 0; 5978} 5979_ACEOF 5980if ac_fn_c_try_link "$LINENO"; then : 5981 eval $cacheid=yes 5982else 5983 eval $cacheid=no 5984fi 5985rm -f core conftest.err conftest.$ac_objext \ 5986 conftest$ac_exeext conftest.$ac_ext 5987fi 5988 5989 5990 CFLAGS="$xorg_testset_save_CFLAGS" 5991 5992 eval supported=\$$cacheid 5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5994$as_echo "$supported" >&6; } 5995 if test "$supported" = "yes" ; then 5996 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5997 found="yes" 5998 fi 5999 fi 6000 6001 6002 6003 6004 6005# This chunk adds additional warnings that could catch undesired effects. 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019xorg_testset_save_CFLAGS="$CFLAGS" 6020 6021if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6024$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6025if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6026 $as_echo_n "(cached) " >&6 6027else 6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6029/* end confdefs.h. */ 6030int i; 6031_ACEOF 6032if ac_fn_c_try_compile "$LINENO"; then : 6033 xorg_cv_cc_flag_unknown_warning_option=yes 6034else 6035 xorg_cv_cc_flag_unknown_warning_option=no 6036fi 6037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6038fi 6039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6040$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6042 CFLAGS="$xorg_testset_save_CFLAGS" 6043fi 6044 6045if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6048 fi 6049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6051$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6052if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6053 $as_echo_n "(cached) " >&6 6054else 6055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6056/* end confdefs.h. */ 6057int i; 6058_ACEOF 6059if ac_fn_c_try_compile "$LINENO"; then : 6060 xorg_cv_cc_flag_unused_command_line_argument=yes 6061else 6062 xorg_cv_cc_flag_unused_command_line_argument=no 6063fi 6064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6065fi 6066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6067$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6068 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6069 CFLAGS="$xorg_testset_save_CFLAGS" 6070fi 6071 6072found="no" 6073 6074 if test $found = "no" ; then 6075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6077 fi 6078 6079 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6081 fi 6082 6083 CFLAGS="$CFLAGS -Wunused" 6084 6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6086$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6087 cacheid=xorg_cv_cc_flag__Wunused 6088 if eval \${$cacheid+:} false; then : 6089 $as_echo_n "(cached) " >&6 6090else 6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6092/* end confdefs.h. */ 6093int i; 6094int 6095main () 6096{ 6097 6098 ; 6099 return 0; 6100} 6101_ACEOF 6102if ac_fn_c_try_link "$LINENO"; then : 6103 eval $cacheid=yes 6104else 6105 eval $cacheid=no 6106fi 6107rm -f core conftest.err conftest.$ac_objext \ 6108 conftest$ac_exeext conftest.$ac_ext 6109fi 6110 6111 6112 CFLAGS="$xorg_testset_save_CFLAGS" 6113 6114 eval supported=\$$cacheid 6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6116$as_echo "$supported" >&6; } 6117 if test "$supported" = "yes" ; then 6118 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6119 found="yes" 6120 fi 6121 fi 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137xorg_testset_save_CFLAGS="$CFLAGS" 6138 6139if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6142$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6143if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6144 $as_echo_n "(cached) " >&6 6145else 6146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6147/* end confdefs.h. */ 6148int i; 6149_ACEOF 6150if ac_fn_c_try_compile "$LINENO"; then : 6151 xorg_cv_cc_flag_unknown_warning_option=yes 6152else 6153 xorg_cv_cc_flag_unknown_warning_option=no 6154fi 6155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6156fi 6157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6158$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6159 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6160 CFLAGS="$xorg_testset_save_CFLAGS" 6161fi 6162 6163if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6166 fi 6167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6169$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6170if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6171 $as_echo_n "(cached) " >&6 6172else 6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6174/* end confdefs.h. */ 6175int i; 6176_ACEOF 6177if ac_fn_c_try_compile "$LINENO"; then : 6178 xorg_cv_cc_flag_unused_command_line_argument=yes 6179else 6180 xorg_cv_cc_flag_unused_command_line_argument=no 6181fi 6182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6183fi 6184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6185$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6186 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6187 CFLAGS="$xorg_testset_save_CFLAGS" 6188fi 6189 6190found="no" 6191 6192 if test $found = "no" ; then 6193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6195 fi 6196 6197 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6199 fi 6200 6201 CFLAGS="$CFLAGS -Wuninitialized" 6202 6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6204$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6205 cacheid=xorg_cv_cc_flag__Wuninitialized 6206 if eval \${$cacheid+:} false; then : 6207 $as_echo_n "(cached) " >&6 6208else 6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6210/* end confdefs.h. */ 6211int i; 6212int 6213main () 6214{ 6215 6216 ; 6217 return 0; 6218} 6219_ACEOF 6220if ac_fn_c_try_link "$LINENO"; then : 6221 eval $cacheid=yes 6222else 6223 eval $cacheid=no 6224fi 6225rm -f core conftest.err conftest.$ac_objext \ 6226 conftest$ac_exeext conftest.$ac_ext 6227fi 6228 6229 6230 CFLAGS="$xorg_testset_save_CFLAGS" 6231 6232 eval supported=\$$cacheid 6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6234$as_echo "$supported" >&6; } 6235 if test "$supported" = "yes" ; then 6236 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6237 found="yes" 6238 fi 6239 fi 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255xorg_testset_save_CFLAGS="$CFLAGS" 6256 6257if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6260$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6261if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6262 $as_echo_n "(cached) " >&6 6263else 6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6265/* end confdefs.h. */ 6266int i; 6267_ACEOF 6268if ac_fn_c_try_compile "$LINENO"; then : 6269 xorg_cv_cc_flag_unknown_warning_option=yes 6270else 6271 xorg_cv_cc_flag_unknown_warning_option=no 6272fi 6273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6274fi 6275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6276$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6277 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6278 CFLAGS="$xorg_testset_save_CFLAGS" 6279fi 6280 6281if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6284 fi 6285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6287$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6288if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6289 $as_echo_n "(cached) " >&6 6290else 6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6292/* end confdefs.h. */ 6293int i; 6294_ACEOF 6295if ac_fn_c_try_compile "$LINENO"; then : 6296 xorg_cv_cc_flag_unused_command_line_argument=yes 6297else 6298 xorg_cv_cc_flag_unused_command_line_argument=no 6299fi 6300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6301fi 6302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6303$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6304 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6305 CFLAGS="$xorg_testset_save_CFLAGS" 6306fi 6307 6308found="no" 6309 6310 if test $found = "no" ; then 6311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6313 fi 6314 6315 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6317 fi 6318 6319 CFLAGS="$CFLAGS -Wshadow" 6320 6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6322$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6323 cacheid=xorg_cv_cc_flag__Wshadow 6324 if eval \${$cacheid+:} false; then : 6325 $as_echo_n "(cached) " >&6 6326else 6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6328/* end confdefs.h. */ 6329int i; 6330int 6331main () 6332{ 6333 6334 ; 6335 return 0; 6336} 6337_ACEOF 6338if ac_fn_c_try_link "$LINENO"; then : 6339 eval $cacheid=yes 6340else 6341 eval $cacheid=no 6342fi 6343rm -f core conftest.err conftest.$ac_objext \ 6344 conftest$ac_exeext conftest.$ac_ext 6345fi 6346 6347 6348 CFLAGS="$xorg_testset_save_CFLAGS" 6349 6350 eval supported=\$$cacheid 6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6352$as_echo "$supported" >&6; } 6353 if test "$supported" = "yes" ; then 6354 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6355 found="yes" 6356 fi 6357 fi 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373xorg_testset_save_CFLAGS="$CFLAGS" 6374 6375if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6378$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6379if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6380 $as_echo_n "(cached) " >&6 6381else 6382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6383/* end confdefs.h. */ 6384int i; 6385_ACEOF 6386if ac_fn_c_try_compile "$LINENO"; then : 6387 xorg_cv_cc_flag_unknown_warning_option=yes 6388else 6389 xorg_cv_cc_flag_unknown_warning_option=no 6390fi 6391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6392fi 6393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6394$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6395 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6396 CFLAGS="$xorg_testset_save_CFLAGS" 6397fi 6398 6399if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6402 fi 6403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6405$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6406if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6407 $as_echo_n "(cached) " >&6 6408else 6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6410/* end confdefs.h. */ 6411int i; 6412_ACEOF 6413if ac_fn_c_try_compile "$LINENO"; then : 6414 xorg_cv_cc_flag_unused_command_line_argument=yes 6415else 6416 xorg_cv_cc_flag_unused_command_line_argument=no 6417fi 6418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6419fi 6420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6421$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6422 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6423 CFLAGS="$xorg_testset_save_CFLAGS" 6424fi 6425 6426found="no" 6427 6428 if test $found = "no" ; then 6429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6431 fi 6432 6433 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6435 fi 6436 6437 CFLAGS="$CFLAGS -Wmissing-noreturn" 6438 6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6440$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6441 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6442 if eval \${$cacheid+:} false; then : 6443 $as_echo_n "(cached) " >&6 6444else 6445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6446/* end confdefs.h. */ 6447int i; 6448int 6449main () 6450{ 6451 6452 ; 6453 return 0; 6454} 6455_ACEOF 6456if ac_fn_c_try_link "$LINENO"; then : 6457 eval $cacheid=yes 6458else 6459 eval $cacheid=no 6460fi 6461rm -f core conftest.err conftest.$ac_objext \ 6462 conftest$ac_exeext conftest.$ac_ext 6463fi 6464 6465 6466 CFLAGS="$xorg_testset_save_CFLAGS" 6467 6468 eval supported=\$$cacheid 6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6470$as_echo "$supported" >&6; } 6471 if test "$supported" = "yes" ; then 6472 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6473 found="yes" 6474 fi 6475 fi 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491xorg_testset_save_CFLAGS="$CFLAGS" 6492 6493if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6496$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6497if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6498 $as_echo_n "(cached) " >&6 6499else 6500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6501/* end confdefs.h. */ 6502int i; 6503_ACEOF 6504if ac_fn_c_try_compile "$LINENO"; then : 6505 xorg_cv_cc_flag_unknown_warning_option=yes 6506else 6507 xorg_cv_cc_flag_unknown_warning_option=no 6508fi 6509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6510fi 6511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6512$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6513 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6514 CFLAGS="$xorg_testset_save_CFLAGS" 6515fi 6516 6517if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6520 fi 6521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6523$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6524if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6525 $as_echo_n "(cached) " >&6 6526else 6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6528/* end confdefs.h. */ 6529int i; 6530_ACEOF 6531if ac_fn_c_try_compile "$LINENO"; then : 6532 xorg_cv_cc_flag_unused_command_line_argument=yes 6533else 6534 xorg_cv_cc_flag_unused_command_line_argument=no 6535fi 6536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6537fi 6538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6539$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6540 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6541 CFLAGS="$xorg_testset_save_CFLAGS" 6542fi 6543 6544found="no" 6545 6546 if test $found = "no" ; then 6547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6549 fi 6550 6551 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6553 fi 6554 6555 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6556 6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6558$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6559 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6560 if eval \${$cacheid+:} false; then : 6561 $as_echo_n "(cached) " >&6 6562else 6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6564/* end confdefs.h. */ 6565int i; 6566int 6567main () 6568{ 6569 6570 ; 6571 return 0; 6572} 6573_ACEOF 6574if ac_fn_c_try_link "$LINENO"; then : 6575 eval $cacheid=yes 6576else 6577 eval $cacheid=no 6578fi 6579rm -f core conftest.err conftest.$ac_objext \ 6580 conftest$ac_exeext conftest.$ac_ext 6581fi 6582 6583 6584 CFLAGS="$xorg_testset_save_CFLAGS" 6585 6586 eval supported=\$$cacheid 6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6588$as_echo "$supported" >&6; } 6589 if test "$supported" = "yes" ; then 6590 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6591 found="yes" 6592 fi 6593 fi 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609xorg_testset_save_CFLAGS="$CFLAGS" 6610 6611if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6614$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6615if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6616 $as_echo_n "(cached) " >&6 6617else 6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6619/* end confdefs.h. */ 6620int i; 6621_ACEOF 6622if ac_fn_c_try_compile "$LINENO"; then : 6623 xorg_cv_cc_flag_unknown_warning_option=yes 6624else 6625 xorg_cv_cc_flag_unknown_warning_option=no 6626fi 6627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6628fi 6629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6630$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6631 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6632 CFLAGS="$xorg_testset_save_CFLAGS" 6633fi 6634 6635if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6638 fi 6639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6641$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6642if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6643 $as_echo_n "(cached) " >&6 6644else 6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6646/* end confdefs.h. */ 6647int i; 6648_ACEOF 6649if ac_fn_c_try_compile "$LINENO"; then : 6650 xorg_cv_cc_flag_unused_command_line_argument=yes 6651else 6652 xorg_cv_cc_flag_unused_command_line_argument=no 6653fi 6654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6655fi 6656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6657$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6658 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6659 CFLAGS="$xorg_testset_save_CFLAGS" 6660fi 6661 6662found="no" 6663 6664 if test $found = "no" ; then 6665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6667 fi 6668 6669 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6671 fi 6672 6673 CFLAGS="$CFLAGS -Wredundant-decls" 6674 6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6676$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6677 cacheid=xorg_cv_cc_flag__Wredundant_decls 6678 if eval \${$cacheid+:} false; then : 6679 $as_echo_n "(cached) " >&6 6680else 6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6682/* end confdefs.h. */ 6683int i; 6684int 6685main () 6686{ 6687 6688 ; 6689 return 0; 6690} 6691_ACEOF 6692if ac_fn_c_try_link "$LINENO"; then : 6693 eval $cacheid=yes 6694else 6695 eval $cacheid=no 6696fi 6697rm -f core conftest.err conftest.$ac_objext \ 6698 conftest$ac_exeext conftest.$ac_ext 6699fi 6700 6701 6702 CFLAGS="$xorg_testset_save_CFLAGS" 6703 6704 eval supported=\$$cacheid 6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6706$as_echo "$supported" >&6; } 6707 if test "$supported" = "yes" ; then 6708 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6709 found="yes" 6710 fi 6711 fi 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727xorg_testset_save_CFLAGS="$CFLAGS" 6728 6729if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6732$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6733if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6734 $as_echo_n "(cached) " >&6 6735else 6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6737/* end confdefs.h. */ 6738int i; 6739_ACEOF 6740if ac_fn_c_try_compile "$LINENO"; then : 6741 xorg_cv_cc_flag_unknown_warning_option=yes 6742else 6743 xorg_cv_cc_flag_unknown_warning_option=no 6744fi 6745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6746fi 6747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6748$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6749 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6750 CFLAGS="$xorg_testset_save_CFLAGS" 6751fi 6752 6753if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6756 fi 6757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6759$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6760if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6761 $as_echo_n "(cached) " >&6 6762else 6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6764/* end confdefs.h. */ 6765int i; 6766_ACEOF 6767if ac_fn_c_try_compile "$LINENO"; then : 6768 xorg_cv_cc_flag_unused_command_line_argument=yes 6769else 6770 xorg_cv_cc_flag_unused_command_line_argument=no 6771fi 6772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6773fi 6774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6775$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6776 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6777 CFLAGS="$xorg_testset_save_CFLAGS" 6778fi 6779 6780found="no" 6781 6782 if test $found = "no" ; then 6783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6785 fi 6786 6787 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6789 fi 6790 6791 CFLAGS="$CFLAGS -Wlogical-op" 6792 6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6794$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6795 cacheid=xorg_cv_cc_flag__Wlogical_op 6796 if eval \${$cacheid+:} false; then : 6797 $as_echo_n "(cached) " >&6 6798else 6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6800/* end confdefs.h. */ 6801int i; 6802int 6803main () 6804{ 6805 6806 ; 6807 return 0; 6808} 6809_ACEOF 6810if ac_fn_c_try_link "$LINENO"; then : 6811 eval $cacheid=yes 6812else 6813 eval $cacheid=no 6814fi 6815rm -f core conftest.err conftest.$ac_objext \ 6816 conftest$ac_exeext conftest.$ac_ext 6817fi 6818 6819 6820 CFLAGS="$xorg_testset_save_CFLAGS" 6821 6822 eval supported=\$$cacheid 6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6824$as_echo "$supported" >&6; } 6825 if test "$supported" = "yes" ; then 6826 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6827 found="yes" 6828 fi 6829 fi 6830 6831 6832 6833# These are currently disabled because they are noisy. They will be enabled 6834# in the future once the codebase is sufficiently modernized to silence 6835# them. For now, I don't want them to drown out the other warnings. 6836# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6837# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6838# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6839 6840# Turn some warnings into errors, so we don't accidently get successful builds 6841# when there are problems that should be fixed. 6842 6843if test "x$SELECTIVE_WERROR" = "xyes" ; then 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857xorg_testset_save_CFLAGS="$CFLAGS" 6858 6859if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6862$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6863if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6864 $as_echo_n "(cached) " >&6 6865else 6866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6867/* end confdefs.h. */ 6868int i; 6869_ACEOF 6870if ac_fn_c_try_compile "$LINENO"; then : 6871 xorg_cv_cc_flag_unknown_warning_option=yes 6872else 6873 xorg_cv_cc_flag_unknown_warning_option=no 6874fi 6875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6876fi 6877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6878$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6879 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6880 CFLAGS="$xorg_testset_save_CFLAGS" 6881fi 6882 6883if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6886 fi 6887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6889$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6890if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6891 $as_echo_n "(cached) " >&6 6892else 6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6894/* end confdefs.h. */ 6895int i; 6896_ACEOF 6897if ac_fn_c_try_compile "$LINENO"; then : 6898 xorg_cv_cc_flag_unused_command_line_argument=yes 6899else 6900 xorg_cv_cc_flag_unused_command_line_argument=no 6901fi 6902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6903fi 6904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6905$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6907 CFLAGS="$xorg_testset_save_CFLAGS" 6908fi 6909 6910found="no" 6911 6912 if test $found = "no" ; then 6913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6915 fi 6916 6917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6919 fi 6920 6921 CFLAGS="$CFLAGS -Werror=implicit" 6922 6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6924$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6925 cacheid=xorg_cv_cc_flag__Werror_implicit 6926 if eval \${$cacheid+:} false; then : 6927 $as_echo_n "(cached) " >&6 6928else 6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6930/* end confdefs.h. */ 6931int i; 6932int 6933main () 6934{ 6935 6936 ; 6937 return 0; 6938} 6939_ACEOF 6940if ac_fn_c_try_link "$LINENO"; then : 6941 eval $cacheid=yes 6942else 6943 eval $cacheid=no 6944fi 6945rm -f core conftest.err conftest.$ac_objext \ 6946 conftest$ac_exeext conftest.$ac_ext 6947fi 6948 6949 6950 CFLAGS="$xorg_testset_save_CFLAGS" 6951 6952 eval supported=\$$cacheid 6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6954$as_echo "$supported" >&6; } 6955 if test "$supported" = "yes" ; then 6956 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6957 found="yes" 6958 fi 6959 fi 6960 6961 if test $found = "no" ; then 6962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6964 fi 6965 6966 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6968 fi 6969 6970 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6971 6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6973$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6974 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6975 if eval \${$cacheid+:} false; then : 6976 $as_echo_n "(cached) " >&6 6977else 6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6979/* end confdefs.h. */ 6980int i; 6981int 6982main () 6983{ 6984 6985 ; 6986 return 0; 6987} 6988_ACEOF 6989if ac_fn_c_try_link "$LINENO"; then : 6990 eval $cacheid=yes 6991else 6992 eval $cacheid=no 6993fi 6994rm -f core conftest.err conftest.$ac_objext \ 6995 conftest$ac_exeext conftest.$ac_ext 6996fi 6997 6998 6999 CFLAGS="$xorg_testset_save_CFLAGS" 7000 7001 eval supported=\$$cacheid 7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7003$as_echo "$supported" >&6; } 7004 if test "$supported" = "yes" ; then 7005 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7006 found="yes" 7007 fi 7008 fi 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024xorg_testset_save_CFLAGS="$CFLAGS" 7025 7026if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7029$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7030if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7031 $as_echo_n "(cached) " >&6 7032else 7033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7034/* end confdefs.h. */ 7035int i; 7036_ACEOF 7037if ac_fn_c_try_compile "$LINENO"; then : 7038 xorg_cv_cc_flag_unknown_warning_option=yes 7039else 7040 xorg_cv_cc_flag_unknown_warning_option=no 7041fi 7042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7043fi 7044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7045$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7046 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7047 CFLAGS="$xorg_testset_save_CFLAGS" 7048fi 7049 7050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7053 fi 7054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7056$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7057if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7058 $as_echo_n "(cached) " >&6 7059else 7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7061/* end confdefs.h. */ 7062int i; 7063_ACEOF 7064if ac_fn_c_try_compile "$LINENO"; then : 7065 xorg_cv_cc_flag_unused_command_line_argument=yes 7066else 7067 xorg_cv_cc_flag_unused_command_line_argument=no 7068fi 7069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7070fi 7071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7072$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7073 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7074 CFLAGS="$xorg_testset_save_CFLAGS" 7075fi 7076 7077found="no" 7078 7079 if test $found = "no" ; then 7080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7082 fi 7083 7084 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7086 fi 7087 7088 CFLAGS="$CFLAGS -Werror=nonnull" 7089 7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7091$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7092 cacheid=xorg_cv_cc_flag__Werror_nonnull 7093 if eval \${$cacheid+:} false; then : 7094 $as_echo_n "(cached) " >&6 7095else 7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7097/* end confdefs.h. */ 7098int i; 7099int 7100main () 7101{ 7102 7103 ; 7104 return 0; 7105} 7106_ACEOF 7107if ac_fn_c_try_link "$LINENO"; then : 7108 eval $cacheid=yes 7109else 7110 eval $cacheid=no 7111fi 7112rm -f core conftest.err conftest.$ac_objext \ 7113 conftest$ac_exeext conftest.$ac_ext 7114fi 7115 7116 7117 CFLAGS="$xorg_testset_save_CFLAGS" 7118 7119 eval supported=\$$cacheid 7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7121$as_echo "$supported" >&6; } 7122 if test "$supported" = "yes" ; then 7123 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7124 found="yes" 7125 fi 7126 fi 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142xorg_testset_save_CFLAGS="$CFLAGS" 7143 7144if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7147$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7148if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7149 $as_echo_n "(cached) " >&6 7150else 7151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7152/* end confdefs.h. */ 7153int i; 7154_ACEOF 7155if ac_fn_c_try_compile "$LINENO"; then : 7156 xorg_cv_cc_flag_unknown_warning_option=yes 7157else 7158 xorg_cv_cc_flag_unknown_warning_option=no 7159fi 7160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7161fi 7162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7163$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7164 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7165 CFLAGS="$xorg_testset_save_CFLAGS" 7166fi 7167 7168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7171 fi 7172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7174$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7175if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7176 $as_echo_n "(cached) " >&6 7177else 7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7179/* end confdefs.h. */ 7180int i; 7181_ACEOF 7182if ac_fn_c_try_compile "$LINENO"; then : 7183 xorg_cv_cc_flag_unused_command_line_argument=yes 7184else 7185 xorg_cv_cc_flag_unused_command_line_argument=no 7186fi 7187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7188fi 7189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7190$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7191 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7192 CFLAGS="$xorg_testset_save_CFLAGS" 7193fi 7194 7195found="no" 7196 7197 if test $found = "no" ; then 7198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7200 fi 7201 7202 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7204 fi 7205 7206 CFLAGS="$CFLAGS -Werror=init-self" 7207 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7209$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7210 cacheid=xorg_cv_cc_flag__Werror_init_self 7211 if eval \${$cacheid+:} false; then : 7212 $as_echo_n "(cached) " >&6 7213else 7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7215/* end confdefs.h. */ 7216int i; 7217int 7218main () 7219{ 7220 7221 ; 7222 return 0; 7223} 7224_ACEOF 7225if ac_fn_c_try_link "$LINENO"; then : 7226 eval $cacheid=yes 7227else 7228 eval $cacheid=no 7229fi 7230rm -f core conftest.err conftest.$ac_objext \ 7231 conftest$ac_exeext conftest.$ac_ext 7232fi 7233 7234 7235 CFLAGS="$xorg_testset_save_CFLAGS" 7236 7237 eval supported=\$$cacheid 7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7239$as_echo "$supported" >&6; } 7240 if test "$supported" = "yes" ; then 7241 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7242 found="yes" 7243 fi 7244 fi 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260xorg_testset_save_CFLAGS="$CFLAGS" 7261 7262if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7265$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7266if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7267 $as_echo_n "(cached) " >&6 7268else 7269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7270/* end confdefs.h. */ 7271int i; 7272_ACEOF 7273if ac_fn_c_try_compile "$LINENO"; then : 7274 xorg_cv_cc_flag_unknown_warning_option=yes 7275else 7276 xorg_cv_cc_flag_unknown_warning_option=no 7277fi 7278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7279fi 7280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7281$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7282 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7283 CFLAGS="$xorg_testset_save_CFLAGS" 7284fi 7285 7286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7289 fi 7290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7292$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7293if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7294 $as_echo_n "(cached) " >&6 7295else 7296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7297/* end confdefs.h. */ 7298int i; 7299_ACEOF 7300if ac_fn_c_try_compile "$LINENO"; then : 7301 xorg_cv_cc_flag_unused_command_line_argument=yes 7302else 7303 xorg_cv_cc_flag_unused_command_line_argument=no 7304fi 7305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7306fi 7307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7308$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7309 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7310 CFLAGS="$xorg_testset_save_CFLAGS" 7311fi 7312 7313found="no" 7314 7315 if test $found = "no" ; then 7316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7318 fi 7319 7320 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7322 fi 7323 7324 CFLAGS="$CFLAGS -Werror=main" 7325 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7327$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7328 cacheid=xorg_cv_cc_flag__Werror_main 7329 if eval \${$cacheid+:} false; then : 7330 $as_echo_n "(cached) " >&6 7331else 7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7333/* end confdefs.h. */ 7334int i; 7335int 7336main () 7337{ 7338 7339 ; 7340 return 0; 7341} 7342_ACEOF 7343if ac_fn_c_try_link "$LINENO"; then : 7344 eval $cacheid=yes 7345else 7346 eval $cacheid=no 7347fi 7348rm -f core conftest.err conftest.$ac_objext \ 7349 conftest$ac_exeext conftest.$ac_ext 7350fi 7351 7352 7353 CFLAGS="$xorg_testset_save_CFLAGS" 7354 7355 eval supported=\$$cacheid 7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7357$as_echo "$supported" >&6; } 7358 if test "$supported" = "yes" ; then 7359 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7360 found="yes" 7361 fi 7362 fi 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378xorg_testset_save_CFLAGS="$CFLAGS" 7379 7380if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7383$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7384if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7385 $as_echo_n "(cached) " >&6 7386else 7387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7388/* end confdefs.h. */ 7389int i; 7390_ACEOF 7391if ac_fn_c_try_compile "$LINENO"; then : 7392 xorg_cv_cc_flag_unknown_warning_option=yes 7393else 7394 xorg_cv_cc_flag_unknown_warning_option=no 7395fi 7396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7397fi 7398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7399$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7400 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7401 CFLAGS="$xorg_testset_save_CFLAGS" 7402fi 7403 7404if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7407 fi 7408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7410$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7411if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7412 $as_echo_n "(cached) " >&6 7413else 7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7415/* end confdefs.h. */ 7416int i; 7417_ACEOF 7418if ac_fn_c_try_compile "$LINENO"; then : 7419 xorg_cv_cc_flag_unused_command_line_argument=yes 7420else 7421 xorg_cv_cc_flag_unused_command_line_argument=no 7422fi 7423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7424fi 7425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7426$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7427 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7428 CFLAGS="$xorg_testset_save_CFLAGS" 7429fi 7430 7431found="no" 7432 7433 if test $found = "no" ; then 7434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7436 fi 7437 7438 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7440 fi 7441 7442 CFLAGS="$CFLAGS -Werror=missing-braces" 7443 7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7445$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7446 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7447 if eval \${$cacheid+:} false; then : 7448 $as_echo_n "(cached) " >&6 7449else 7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7451/* end confdefs.h. */ 7452int i; 7453int 7454main () 7455{ 7456 7457 ; 7458 return 0; 7459} 7460_ACEOF 7461if ac_fn_c_try_link "$LINENO"; then : 7462 eval $cacheid=yes 7463else 7464 eval $cacheid=no 7465fi 7466rm -f core conftest.err conftest.$ac_objext \ 7467 conftest$ac_exeext conftest.$ac_ext 7468fi 7469 7470 7471 CFLAGS="$xorg_testset_save_CFLAGS" 7472 7473 eval supported=\$$cacheid 7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7475$as_echo "$supported" >&6; } 7476 if test "$supported" = "yes" ; then 7477 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7478 found="yes" 7479 fi 7480 fi 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496xorg_testset_save_CFLAGS="$CFLAGS" 7497 7498if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7501$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7502if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7503 $as_echo_n "(cached) " >&6 7504else 7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7506/* end confdefs.h. */ 7507int i; 7508_ACEOF 7509if ac_fn_c_try_compile "$LINENO"; then : 7510 xorg_cv_cc_flag_unknown_warning_option=yes 7511else 7512 xorg_cv_cc_flag_unknown_warning_option=no 7513fi 7514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7515fi 7516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7517$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7518 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7519 CFLAGS="$xorg_testset_save_CFLAGS" 7520fi 7521 7522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7525 fi 7526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7528$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7529if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7530 $as_echo_n "(cached) " >&6 7531else 7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7533/* end confdefs.h. */ 7534int i; 7535_ACEOF 7536if ac_fn_c_try_compile "$LINENO"; then : 7537 xorg_cv_cc_flag_unused_command_line_argument=yes 7538else 7539 xorg_cv_cc_flag_unused_command_line_argument=no 7540fi 7541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7542fi 7543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7544$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7546 CFLAGS="$xorg_testset_save_CFLAGS" 7547fi 7548 7549found="no" 7550 7551 if test $found = "no" ; then 7552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7554 fi 7555 7556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7558 fi 7559 7560 CFLAGS="$CFLAGS -Werror=sequence-point" 7561 7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7563$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7564 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7565 if eval \${$cacheid+:} false; then : 7566 $as_echo_n "(cached) " >&6 7567else 7568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7569/* end confdefs.h. */ 7570int i; 7571int 7572main () 7573{ 7574 7575 ; 7576 return 0; 7577} 7578_ACEOF 7579if ac_fn_c_try_link "$LINENO"; then : 7580 eval $cacheid=yes 7581else 7582 eval $cacheid=no 7583fi 7584rm -f core conftest.err conftest.$ac_objext \ 7585 conftest$ac_exeext conftest.$ac_ext 7586fi 7587 7588 7589 CFLAGS="$xorg_testset_save_CFLAGS" 7590 7591 eval supported=\$$cacheid 7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7593$as_echo "$supported" >&6; } 7594 if test "$supported" = "yes" ; then 7595 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7596 found="yes" 7597 fi 7598 fi 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614xorg_testset_save_CFLAGS="$CFLAGS" 7615 7616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7619$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7620if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_cc_flag_unknown_warning_option=yes 7629else 7630 xorg_cv_cc_flag_unknown_warning_option=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_cc_flag_unknown_warning_option" >&5 7635$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7636 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7637 CFLAGS="$xorg_testset_save_CFLAGS" 7638fi 7639 7640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7643 fi 7644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7646$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7647if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7648 $as_echo_n "(cached) " >&6 7649else 7650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7651/* end confdefs.h. */ 7652int i; 7653_ACEOF 7654if ac_fn_c_try_compile "$LINENO"; then : 7655 xorg_cv_cc_flag_unused_command_line_argument=yes 7656else 7657 xorg_cv_cc_flag_unused_command_line_argument=no 7658fi 7659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7660fi 7661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7662$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7664 CFLAGS="$xorg_testset_save_CFLAGS" 7665fi 7666 7667found="no" 7668 7669 if test $found = "no" ; then 7670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7672 fi 7673 7674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7676 fi 7677 7678 CFLAGS="$CFLAGS -Werror=return-type" 7679 7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7681$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7682 cacheid=xorg_cv_cc_flag__Werror_return_type 7683 if eval \${$cacheid+:} false; then : 7684 $as_echo_n "(cached) " >&6 7685else 7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7687/* end confdefs.h. */ 7688int i; 7689int 7690main () 7691{ 7692 7693 ; 7694 return 0; 7695} 7696_ACEOF 7697if ac_fn_c_try_link "$LINENO"; then : 7698 eval $cacheid=yes 7699else 7700 eval $cacheid=no 7701fi 7702rm -f core conftest.err conftest.$ac_objext \ 7703 conftest$ac_exeext conftest.$ac_ext 7704fi 7705 7706 7707 CFLAGS="$xorg_testset_save_CFLAGS" 7708 7709 eval supported=\$$cacheid 7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7711$as_echo "$supported" >&6; } 7712 if test "$supported" = "yes" ; then 7713 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7714 found="yes" 7715 fi 7716 fi 7717 7718 if test $found = "no" ; then 7719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7721 fi 7722 7723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7725 fi 7726 7727 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7728 7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7730$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7731 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7732 if eval \${$cacheid+:} false; then : 7733 $as_echo_n "(cached) " >&6 7734else 7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7736/* end confdefs.h. */ 7737int i; 7738int 7739main () 7740{ 7741 7742 ; 7743 return 0; 7744} 7745_ACEOF 7746if ac_fn_c_try_link "$LINENO"; then : 7747 eval $cacheid=yes 7748else 7749 eval $cacheid=no 7750fi 7751rm -f core conftest.err conftest.$ac_objext \ 7752 conftest$ac_exeext conftest.$ac_ext 7753fi 7754 7755 7756 CFLAGS="$xorg_testset_save_CFLAGS" 7757 7758 eval supported=\$$cacheid 7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7760$as_echo "$supported" >&6; } 7761 if test "$supported" = "yes" ; then 7762 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7763 found="yes" 7764 fi 7765 fi 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781xorg_testset_save_CFLAGS="$CFLAGS" 7782 7783if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7786$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7787if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7788 $as_echo_n "(cached) " >&6 7789else 7790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7791/* end confdefs.h. */ 7792int i; 7793_ACEOF 7794if ac_fn_c_try_compile "$LINENO"; then : 7795 xorg_cv_cc_flag_unknown_warning_option=yes 7796else 7797 xorg_cv_cc_flag_unknown_warning_option=no 7798fi 7799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7800fi 7801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7802$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7803 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7804 CFLAGS="$xorg_testset_save_CFLAGS" 7805fi 7806 7807if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7810 fi 7811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7813$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7814if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7815 $as_echo_n "(cached) " >&6 7816else 7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7818/* end confdefs.h. */ 7819int i; 7820_ACEOF 7821if ac_fn_c_try_compile "$LINENO"; then : 7822 xorg_cv_cc_flag_unused_command_line_argument=yes 7823else 7824 xorg_cv_cc_flag_unused_command_line_argument=no 7825fi 7826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7827fi 7828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7829$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7830 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7831 CFLAGS="$xorg_testset_save_CFLAGS" 7832fi 7833 7834found="no" 7835 7836 if test $found = "no" ; then 7837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7839 fi 7840 7841 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7843 fi 7844 7845 CFLAGS="$CFLAGS -Werror=trigraphs" 7846 7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7848$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7849 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7850 if eval \${$cacheid+:} false; then : 7851 $as_echo_n "(cached) " >&6 7852else 7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7854/* end confdefs.h. */ 7855int i; 7856int 7857main () 7858{ 7859 7860 ; 7861 return 0; 7862} 7863_ACEOF 7864if ac_fn_c_try_link "$LINENO"; then : 7865 eval $cacheid=yes 7866else 7867 eval $cacheid=no 7868fi 7869rm -f core conftest.err conftest.$ac_objext \ 7870 conftest$ac_exeext conftest.$ac_ext 7871fi 7872 7873 7874 CFLAGS="$xorg_testset_save_CFLAGS" 7875 7876 eval supported=\$$cacheid 7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7878$as_echo "$supported" >&6; } 7879 if test "$supported" = "yes" ; then 7880 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7881 found="yes" 7882 fi 7883 fi 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899xorg_testset_save_CFLAGS="$CFLAGS" 7900 7901if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7904$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7905if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7906 $as_echo_n "(cached) " >&6 7907else 7908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7909/* end confdefs.h. */ 7910int i; 7911_ACEOF 7912if ac_fn_c_try_compile "$LINENO"; then : 7913 xorg_cv_cc_flag_unknown_warning_option=yes 7914else 7915 xorg_cv_cc_flag_unknown_warning_option=no 7916fi 7917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7918fi 7919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7920$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7922 CFLAGS="$xorg_testset_save_CFLAGS" 7923fi 7924 7925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7928 fi 7929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7931$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7932if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7933 $as_echo_n "(cached) " >&6 7934else 7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7936/* end confdefs.h. */ 7937int i; 7938_ACEOF 7939if ac_fn_c_try_compile "$LINENO"; then : 7940 xorg_cv_cc_flag_unused_command_line_argument=yes 7941else 7942 xorg_cv_cc_flag_unused_command_line_argument=no 7943fi 7944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7945fi 7946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7947$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7948 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7949 CFLAGS="$xorg_testset_save_CFLAGS" 7950fi 7951 7952found="no" 7953 7954 if test $found = "no" ; then 7955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7957 fi 7958 7959 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7961 fi 7962 7963 CFLAGS="$CFLAGS -Werror=array-bounds" 7964 7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7966$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7967 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7968 if eval \${$cacheid+:} false; then : 7969 $as_echo_n "(cached) " >&6 7970else 7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7972/* end confdefs.h. */ 7973int i; 7974int 7975main () 7976{ 7977 7978 ; 7979 return 0; 7980} 7981_ACEOF 7982if ac_fn_c_try_link "$LINENO"; then : 7983 eval $cacheid=yes 7984else 7985 eval $cacheid=no 7986fi 7987rm -f core conftest.err conftest.$ac_objext \ 7988 conftest$ac_exeext conftest.$ac_ext 7989fi 7990 7991 7992 CFLAGS="$xorg_testset_save_CFLAGS" 7993 7994 eval supported=\$$cacheid 7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7996$as_echo "$supported" >&6; } 7997 if test "$supported" = "yes" ; then 7998 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7999 found="yes" 8000 fi 8001 fi 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017xorg_testset_save_CFLAGS="$CFLAGS" 8018 8019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8022$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8023if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8024 $as_echo_n "(cached) " >&6 8025else 8026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8027/* end confdefs.h. */ 8028int i; 8029_ACEOF 8030if ac_fn_c_try_compile "$LINENO"; then : 8031 xorg_cv_cc_flag_unknown_warning_option=yes 8032else 8033 xorg_cv_cc_flag_unknown_warning_option=no 8034fi 8035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8036fi 8037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8038$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8040 CFLAGS="$xorg_testset_save_CFLAGS" 8041fi 8042 8043if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8046 fi 8047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8049$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8050if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8051 $as_echo_n "(cached) " >&6 8052else 8053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8054/* end confdefs.h. */ 8055int i; 8056_ACEOF 8057if ac_fn_c_try_compile "$LINENO"; then : 8058 xorg_cv_cc_flag_unused_command_line_argument=yes 8059else 8060 xorg_cv_cc_flag_unused_command_line_argument=no 8061fi 8062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8063fi 8064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8065$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8066 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8067 CFLAGS="$xorg_testset_save_CFLAGS" 8068fi 8069 8070found="no" 8071 8072 if test $found = "no" ; then 8073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8075 fi 8076 8077 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8079 fi 8080 8081 CFLAGS="$CFLAGS -Werror=write-strings" 8082 8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8084$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8085 cacheid=xorg_cv_cc_flag__Werror_write_strings 8086 if eval \${$cacheid+:} false; then : 8087 $as_echo_n "(cached) " >&6 8088else 8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8090/* end confdefs.h. */ 8091int i; 8092int 8093main () 8094{ 8095 8096 ; 8097 return 0; 8098} 8099_ACEOF 8100if ac_fn_c_try_link "$LINENO"; then : 8101 eval $cacheid=yes 8102else 8103 eval $cacheid=no 8104fi 8105rm -f core conftest.err conftest.$ac_objext \ 8106 conftest$ac_exeext conftest.$ac_ext 8107fi 8108 8109 8110 CFLAGS="$xorg_testset_save_CFLAGS" 8111 8112 eval supported=\$$cacheid 8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8114$as_echo "$supported" >&6; } 8115 if test "$supported" = "yes" ; then 8116 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8117 found="yes" 8118 fi 8119 fi 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135xorg_testset_save_CFLAGS="$CFLAGS" 8136 8137if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8140$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8141if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8142 $as_echo_n "(cached) " >&6 8143else 8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8145/* end confdefs.h. */ 8146int i; 8147_ACEOF 8148if ac_fn_c_try_compile "$LINENO"; then : 8149 xorg_cv_cc_flag_unknown_warning_option=yes 8150else 8151 xorg_cv_cc_flag_unknown_warning_option=no 8152fi 8153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8154fi 8155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8156$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8157 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8158 CFLAGS="$xorg_testset_save_CFLAGS" 8159fi 8160 8161if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8164 fi 8165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8167$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8168if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8169 $as_echo_n "(cached) " >&6 8170else 8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8172/* end confdefs.h. */ 8173int i; 8174_ACEOF 8175if ac_fn_c_try_compile "$LINENO"; then : 8176 xorg_cv_cc_flag_unused_command_line_argument=yes 8177else 8178 xorg_cv_cc_flag_unused_command_line_argument=no 8179fi 8180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8181fi 8182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8183$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8184 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8185 CFLAGS="$xorg_testset_save_CFLAGS" 8186fi 8187 8188found="no" 8189 8190 if test $found = "no" ; then 8191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8193 fi 8194 8195 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8197 fi 8198 8199 CFLAGS="$CFLAGS -Werror=address" 8200 8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8202$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8203 cacheid=xorg_cv_cc_flag__Werror_address 8204 if eval \${$cacheid+:} false; then : 8205 $as_echo_n "(cached) " >&6 8206else 8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8208/* end confdefs.h. */ 8209int i; 8210int 8211main () 8212{ 8213 8214 ; 8215 return 0; 8216} 8217_ACEOF 8218if ac_fn_c_try_link "$LINENO"; then : 8219 eval $cacheid=yes 8220else 8221 eval $cacheid=no 8222fi 8223rm -f core conftest.err conftest.$ac_objext \ 8224 conftest$ac_exeext conftest.$ac_ext 8225fi 8226 8227 8228 CFLAGS="$xorg_testset_save_CFLAGS" 8229 8230 eval supported=\$$cacheid 8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8232$as_echo "$supported" >&6; } 8233 if test "$supported" = "yes" ; then 8234 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8235 found="yes" 8236 fi 8237 fi 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253xorg_testset_save_CFLAGS="$CFLAGS" 8254 8255if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8258$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8259if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8260 $as_echo_n "(cached) " >&6 8261else 8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8263/* end confdefs.h. */ 8264int i; 8265_ACEOF 8266if ac_fn_c_try_compile "$LINENO"; then : 8267 xorg_cv_cc_flag_unknown_warning_option=yes 8268else 8269 xorg_cv_cc_flag_unknown_warning_option=no 8270fi 8271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8272fi 8273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8274$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8276 CFLAGS="$xorg_testset_save_CFLAGS" 8277fi 8278 8279if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8282 fi 8283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8285$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8286if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8287 $as_echo_n "(cached) " >&6 8288else 8289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8290/* end confdefs.h. */ 8291int i; 8292_ACEOF 8293if ac_fn_c_try_compile "$LINENO"; then : 8294 xorg_cv_cc_flag_unused_command_line_argument=yes 8295else 8296 xorg_cv_cc_flag_unused_command_line_argument=no 8297fi 8298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8299fi 8300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8301$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8302 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8303 CFLAGS="$xorg_testset_save_CFLAGS" 8304fi 8305 8306found="no" 8307 8308 if test $found = "no" ; then 8309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8311 fi 8312 8313 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8315 fi 8316 8317 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8318 8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8320$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8321 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8322 if eval \${$cacheid+:} false; then : 8323 $as_echo_n "(cached) " >&6 8324else 8325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8326/* end confdefs.h. */ 8327int i; 8328int 8329main () 8330{ 8331 8332 ; 8333 return 0; 8334} 8335_ACEOF 8336if ac_fn_c_try_link "$LINENO"; then : 8337 eval $cacheid=yes 8338else 8339 eval $cacheid=no 8340fi 8341rm -f core conftest.err conftest.$ac_objext \ 8342 conftest$ac_exeext conftest.$ac_ext 8343fi 8344 8345 8346 CFLAGS="$xorg_testset_save_CFLAGS" 8347 8348 eval supported=\$$cacheid 8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8350$as_echo "$supported" >&6; } 8351 if test "$supported" = "yes" ; then 8352 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8353 found="yes" 8354 fi 8355 fi 8356 8357 if test $found = "no" ; then 8358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8360 fi 8361 8362 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8364 fi 8365 8366 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8367 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8369$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8370 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8371 if eval \${$cacheid+:} false; then : 8372 $as_echo_n "(cached) " >&6 8373else 8374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8375/* end confdefs.h. */ 8376int i; 8377int 8378main () 8379{ 8380 8381 ; 8382 return 0; 8383} 8384_ACEOF 8385if ac_fn_c_try_link "$LINENO"; then : 8386 eval $cacheid=yes 8387else 8388 eval $cacheid=no 8389fi 8390rm -f core conftest.err conftest.$ac_objext \ 8391 conftest$ac_exeext conftest.$ac_ext 8392fi 8393 8394 8395 CFLAGS="$xorg_testset_save_CFLAGS" 8396 8397 eval supported=\$$cacheid 8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8399$as_echo "$supported" >&6; } 8400 if test "$supported" = "yes" ; then 8401 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8402 found="yes" 8403 fi 8404 fi 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420xorg_testset_save_CFLAGS="$CFLAGS" 8421 8422if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8425$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8426if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8427 $as_echo_n "(cached) " >&6 8428else 8429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8430/* end confdefs.h. */ 8431int i; 8432_ACEOF 8433if ac_fn_c_try_compile "$LINENO"; then : 8434 xorg_cv_cc_flag_unknown_warning_option=yes 8435else 8436 xorg_cv_cc_flag_unknown_warning_option=no 8437fi 8438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8439fi 8440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8441$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8442 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8443 CFLAGS="$xorg_testset_save_CFLAGS" 8444fi 8445 8446if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8449 fi 8450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8452$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8453if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8454 $as_echo_n "(cached) " >&6 8455else 8456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8457/* end confdefs.h. */ 8458int i; 8459_ACEOF 8460if ac_fn_c_try_compile "$LINENO"; then : 8461 xorg_cv_cc_flag_unused_command_line_argument=yes 8462else 8463 xorg_cv_cc_flag_unused_command_line_argument=no 8464fi 8465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8466fi 8467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8468$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8469 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8470 CFLAGS="$xorg_testset_save_CFLAGS" 8471fi 8472 8473found="no" 8474 8475 if test $found = "no" ; then 8476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8478 fi 8479 8480 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8482 fi 8483 8484 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8485 8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8487$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8488 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8489 if eval \${$cacheid+:} false; then : 8490 $as_echo_n "(cached) " >&6 8491else 8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8493/* end confdefs.h. */ 8494int i; 8495int 8496main () 8497{ 8498 8499 ; 8500 return 0; 8501} 8502_ACEOF 8503if ac_fn_c_try_link "$LINENO"; then : 8504 eval $cacheid=yes 8505else 8506 eval $cacheid=no 8507fi 8508rm -f core conftest.err conftest.$ac_objext \ 8509 conftest$ac_exeext conftest.$ac_ext 8510fi 8511 8512 8513 CFLAGS="$xorg_testset_save_CFLAGS" 8514 8515 eval supported=\$$cacheid 8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8517$as_echo "$supported" >&6; } 8518 if test "$supported" = "yes" ; then 8519 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8520 found="yes" 8521 fi 8522 fi 8523 8524 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8525else 8526{ $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 8527$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;} 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541xorg_testset_save_CFLAGS="$CFLAGS" 8542 8543if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8546$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8547if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8548 $as_echo_n "(cached) " >&6 8549else 8550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8551/* end confdefs.h. */ 8552int i; 8553_ACEOF 8554if ac_fn_c_try_compile "$LINENO"; then : 8555 xorg_cv_cc_flag_unknown_warning_option=yes 8556else 8557 xorg_cv_cc_flag_unknown_warning_option=no 8558fi 8559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8560fi 8561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8562$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8563 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8564 CFLAGS="$xorg_testset_save_CFLAGS" 8565fi 8566 8567if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8570 fi 8571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8573$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8574if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8575 $as_echo_n "(cached) " >&6 8576else 8577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8578/* end confdefs.h. */ 8579int i; 8580_ACEOF 8581if ac_fn_c_try_compile "$LINENO"; then : 8582 xorg_cv_cc_flag_unused_command_line_argument=yes 8583else 8584 xorg_cv_cc_flag_unused_command_line_argument=no 8585fi 8586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8587fi 8588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8589$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8591 CFLAGS="$xorg_testset_save_CFLAGS" 8592fi 8593 8594found="no" 8595 8596 if test $found = "no" ; then 8597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8599 fi 8600 8601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8603 fi 8604 8605 CFLAGS="$CFLAGS -Wimplicit" 8606 8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8608$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8609 cacheid=xorg_cv_cc_flag__Wimplicit 8610 if eval \${$cacheid+:} false; then : 8611 $as_echo_n "(cached) " >&6 8612else 8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8614/* end confdefs.h. */ 8615int i; 8616int 8617main () 8618{ 8619 8620 ; 8621 return 0; 8622} 8623_ACEOF 8624if ac_fn_c_try_link "$LINENO"; then : 8625 eval $cacheid=yes 8626else 8627 eval $cacheid=no 8628fi 8629rm -f core conftest.err conftest.$ac_objext \ 8630 conftest$ac_exeext conftest.$ac_ext 8631fi 8632 8633 8634 CFLAGS="$xorg_testset_save_CFLAGS" 8635 8636 eval supported=\$$cacheid 8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8638$as_echo "$supported" >&6; } 8639 if test "$supported" = "yes" ; then 8640 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8641 found="yes" 8642 fi 8643 fi 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659xorg_testset_save_CFLAGS="$CFLAGS" 8660 8661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8664$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8665if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8666 $as_echo_n "(cached) " >&6 8667else 8668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8669/* end confdefs.h. */ 8670int i; 8671_ACEOF 8672if ac_fn_c_try_compile "$LINENO"; then : 8673 xorg_cv_cc_flag_unknown_warning_option=yes 8674else 8675 xorg_cv_cc_flag_unknown_warning_option=no 8676fi 8677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8678fi 8679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8680$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8681 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8682 CFLAGS="$xorg_testset_save_CFLAGS" 8683fi 8684 8685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8688 fi 8689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8691$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8692if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8693 $as_echo_n "(cached) " >&6 8694else 8695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8696/* end confdefs.h. */ 8697int i; 8698_ACEOF 8699if ac_fn_c_try_compile "$LINENO"; then : 8700 xorg_cv_cc_flag_unused_command_line_argument=yes 8701else 8702 xorg_cv_cc_flag_unused_command_line_argument=no 8703fi 8704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8705fi 8706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8707$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8708 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8709 CFLAGS="$xorg_testset_save_CFLAGS" 8710fi 8711 8712found="no" 8713 8714 if test $found = "no" ; then 8715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8717 fi 8718 8719 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8721 fi 8722 8723 CFLAGS="$CFLAGS -Wnonnull" 8724 8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8726$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8727 cacheid=xorg_cv_cc_flag__Wnonnull 8728 if eval \${$cacheid+:} false; then : 8729 $as_echo_n "(cached) " >&6 8730else 8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8732/* end confdefs.h. */ 8733int i; 8734int 8735main () 8736{ 8737 8738 ; 8739 return 0; 8740} 8741_ACEOF 8742if ac_fn_c_try_link "$LINENO"; then : 8743 eval $cacheid=yes 8744else 8745 eval $cacheid=no 8746fi 8747rm -f core conftest.err conftest.$ac_objext \ 8748 conftest$ac_exeext conftest.$ac_ext 8749fi 8750 8751 8752 CFLAGS="$xorg_testset_save_CFLAGS" 8753 8754 eval supported=\$$cacheid 8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8756$as_echo "$supported" >&6; } 8757 if test "$supported" = "yes" ; then 8758 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8759 found="yes" 8760 fi 8761 fi 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777xorg_testset_save_CFLAGS="$CFLAGS" 8778 8779if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8782$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8783if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8784 $as_echo_n "(cached) " >&6 8785else 8786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8787/* end confdefs.h. */ 8788int i; 8789_ACEOF 8790if ac_fn_c_try_compile "$LINENO"; then : 8791 xorg_cv_cc_flag_unknown_warning_option=yes 8792else 8793 xorg_cv_cc_flag_unknown_warning_option=no 8794fi 8795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8796fi 8797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8798$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8799 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8800 CFLAGS="$xorg_testset_save_CFLAGS" 8801fi 8802 8803if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8806 fi 8807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8809$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8810if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8811 $as_echo_n "(cached) " >&6 8812else 8813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8814/* end confdefs.h. */ 8815int i; 8816_ACEOF 8817if ac_fn_c_try_compile "$LINENO"; then : 8818 xorg_cv_cc_flag_unused_command_line_argument=yes 8819else 8820 xorg_cv_cc_flag_unused_command_line_argument=no 8821fi 8822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8823fi 8824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8825$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8827 CFLAGS="$xorg_testset_save_CFLAGS" 8828fi 8829 8830found="no" 8831 8832 if test $found = "no" ; then 8833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8835 fi 8836 8837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8839 fi 8840 8841 CFLAGS="$CFLAGS -Winit-self" 8842 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8844$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8845 cacheid=xorg_cv_cc_flag__Winit_self 8846 if eval \${$cacheid+:} false; then : 8847 $as_echo_n "(cached) " >&6 8848else 8849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8850/* end confdefs.h. */ 8851int i; 8852int 8853main () 8854{ 8855 8856 ; 8857 return 0; 8858} 8859_ACEOF 8860if ac_fn_c_try_link "$LINENO"; then : 8861 eval $cacheid=yes 8862else 8863 eval $cacheid=no 8864fi 8865rm -f core conftest.err conftest.$ac_objext \ 8866 conftest$ac_exeext conftest.$ac_ext 8867fi 8868 8869 8870 CFLAGS="$xorg_testset_save_CFLAGS" 8871 8872 eval supported=\$$cacheid 8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8874$as_echo "$supported" >&6; } 8875 if test "$supported" = "yes" ; then 8876 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8877 found="yes" 8878 fi 8879 fi 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895xorg_testset_save_CFLAGS="$CFLAGS" 8896 8897if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8900$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8901if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8902 $as_echo_n "(cached) " >&6 8903else 8904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8905/* end confdefs.h. */ 8906int i; 8907_ACEOF 8908if ac_fn_c_try_compile "$LINENO"; then : 8909 xorg_cv_cc_flag_unknown_warning_option=yes 8910else 8911 xorg_cv_cc_flag_unknown_warning_option=no 8912fi 8913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8914fi 8915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8916$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8918 CFLAGS="$xorg_testset_save_CFLAGS" 8919fi 8920 8921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8924 fi 8925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8927$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8928if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8929 $as_echo_n "(cached) " >&6 8930else 8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8932/* end confdefs.h. */ 8933int i; 8934_ACEOF 8935if ac_fn_c_try_compile "$LINENO"; then : 8936 xorg_cv_cc_flag_unused_command_line_argument=yes 8937else 8938 xorg_cv_cc_flag_unused_command_line_argument=no 8939fi 8940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8941fi 8942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8943$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8944 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8945 CFLAGS="$xorg_testset_save_CFLAGS" 8946fi 8947 8948found="no" 8949 8950 if test $found = "no" ; then 8951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8953 fi 8954 8955 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8957 fi 8958 8959 CFLAGS="$CFLAGS -Wmain" 8960 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8962$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8963 cacheid=xorg_cv_cc_flag__Wmain 8964 if eval \${$cacheid+:} false; then : 8965 $as_echo_n "(cached) " >&6 8966else 8967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8968/* end confdefs.h. */ 8969int i; 8970int 8971main () 8972{ 8973 8974 ; 8975 return 0; 8976} 8977_ACEOF 8978if ac_fn_c_try_link "$LINENO"; then : 8979 eval $cacheid=yes 8980else 8981 eval $cacheid=no 8982fi 8983rm -f core conftest.err conftest.$ac_objext \ 8984 conftest$ac_exeext conftest.$ac_ext 8985fi 8986 8987 8988 CFLAGS="$xorg_testset_save_CFLAGS" 8989 8990 eval supported=\$$cacheid 8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8992$as_echo "$supported" >&6; } 8993 if test "$supported" = "yes" ; then 8994 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8995 found="yes" 8996 fi 8997 fi 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013xorg_testset_save_CFLAGS="$CFLAGS" 9014 9015if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9018$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9019if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9020 $as_echo_n "(cached) " >&6 9021else 9022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9023/* end confdefs.h. */ 9024int i; 9025_ACEOF 9026if ac_fn_c_try_compile "$LINENO"; then : 9027 xorg_cv_cc_flag_unknown_warning_option=yes 9028else 9029 xorg_cv_cc_flag_unknown_warning_option=no 9030fi 9031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9032fi 9033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9034$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9035 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9036 CFLAGS="$xorg_testset_save_CFLAGS" 9037fi 9038 9039if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9042 fi 9043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9045$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9046if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9047 $as_echo_n "(cached) " >&6 9048else 9049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9050/* end confdefs.h. */ 9051int i; 9052_ACEOF 9053if ac_fn_c_try_compile "$LINENO"; then : 9054 xorg_cv_cc_flag_unused_command_line_argument=yes 9055else 9056 xorg_cv_cc_flag_unused_command_line_argument=no 9057fi 9058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9059fi 9060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9061$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9062 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9063 CFLAGS="$xorg_testset_save_CFLAGS" 9064fi 9065 9066found="no" 9067 9068 if test $found = "no" ; then 9069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9071 fi 9072 9073 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9075 fi 9076 9077 CFLAGS="$CFLAGS -Wmissing-braces" 9078 9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9080$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9081 cacheid=xorg_cv_cc_flag__Wmissing_braces 9082 if eval \${$cacheid+:} false; then : 9083 $as_echo_n "(cached) " >&6 9084else 9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9086/* end confdefs.h. */ 9087int i; 9088int 9089main () 9090{ 9091 9092 ; 9093 return 0; 9094} 9095_ACEOF 9096if ac_fn_c_try_link "$LINENO"; then : 9097 eval $cacheid=yes 9098else 9099 eval $cacheid=no 9100fi 9101rm -f core conftest.err conftest.$ac_objext \ 9102 conftest$ac_exeext conftest.$ac_ext 9103fi 9104 9105 9106 CFLAGS="$xorg_testset_save_CFLAGS" 9107 9108 eval supported=\$$cacheid 9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9110$as_echo "$supported" >&6; } 9111 if test "$supported" = "yes" ; then 9112 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9113 found="yes" 9114 fi 9115 fi 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131xorg_testset_save_CFLAGS="$CFLAGS" 9132 9133if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9136$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9137if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9138 $as_echo_n "(cached) " >&6 9139else 9140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9141/* end confdefs.h. */ 9142int i; 9143_ACEOF 9144if ac_fn_c_try_compile "$LINENO"; then : 9145 xorg_cv_cc_flag_unknown_warning_option=yes 9146else 9147 xorg_cv_cc_flag_unknown_warning_option=no 9148fi 9149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9150fi 9151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9152$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9153 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9154 CFLAGS="$xorg_testset_save_CFLAGS" 9155fi 9156 9157if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9160 fi 9161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9163$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9164if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9165 $as_echo_n "(cached) " >&6 9166else 9167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9168/* end confdefs.h. */ 9169int i; 9170_ACEOF 9171if ac_fn_c_try_compile "$LINENO"; then : 9172 xorg_cv_cc_flag_unused_command_line_argument=yes 9173else 9174 xorg_cv_cc_flag_unused_command_line_argument=no 9175fi 9176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9177fi 9178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9179$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9180 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9181 CFLAGS="$xorg_testset_save_CFLAGS" 9182fi 9183 9184found="no" 9185 9186 if test $found = "no" ; then 9187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9189 fi 9190 9191 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9193 fi 9194 9195 CFLAGS="$CFLAGS -Wsequence-point" 9196 9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9198$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9199 cacheid=xorg_cv_cc_flag__Wsequence_point 9200 if eval \${$cacheid+:} false; then : 9201 $as_echo_n "(cached) " >&6 9202else 9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9204/* end confdefs.h. */ 9205int i; 9206int 9207main () 9208{ 9209 9210 ; 9211 return 0; 9212} 9213_ACEOF 9214if ac_fn_c_try_link "$LINENO"; then : 9215 eval $cacheid=yes 9216else 9217 eval $cacheid=no 9218fi 9219rm -f core conftest.err conftest.$ac_objext \ 9220 conftest$ac_exeext conftest.$ac_ext 9221fi 9222 9223 9224 CFLAGS="$xorg_testset_save_CFLAGS" 9225 9226 eval supported=\$$cacheid 9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9228$as_echo "$supported" >&6; } 9229 if test "$supported" = "yes" ; then 9230 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9231 found="yes" 9232 fi 9233 fi 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249xorg_testset_save_CFLAGS="$CFLAGS" 9250 9251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9254$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9255if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9256 $as_echo_n "(cached) " >&6 9257else 9258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9259/* end confdefs.h. */ 9260int i; 9261_ACEOF 9262if ac_fn_c_try_compile "$LINENO"; then : 9263 xorg_cv_cc_flag_unknown_warning_option=yes 9264else 9265 xorg_cv_cc_flag_unknown_warning_option=no 9266fi 9267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9268fi 9269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9270$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9271 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9272 CFLAGS="$xorg_testset_save_CFLAGS" 9273fi 9274 9275if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9278 fi 9279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9281$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9282if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9283 $as_echo_n "(cached) " >&6 9284else 9285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9286/* end confdefs.h. */ 9287int i; 9288_ACEOF 9289if ac_fn_c_try_compile "$LINENO"; then : 9290 xorg_cv_cc_flag_unused_command_line_argument=yes 9291else 9292 xorg_cv_cc_flag_unused_command_line_argument=no 9293fi 9294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9295fi 9296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9297$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9298 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9299 CFLAGS="$xorg_testset_save_CFLAGS" 9300fi 9301 9302found="no" 9303 9304 if test $found = "no" ; then 9305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9307 fi 9308 9309 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9311 fi 9312 9313 CFLAGS="$CFLAGS -Wreturn-type" 9314 9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9316$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9317 cacheid=xorg_cv_cc_flag__Wreturn_type 9318 if eval \${$cacheid+:} false; then : 9319 $as_echo_n "(cached) " >&6 9320else 9321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9322/* end confdefs.h. */ 9323int i; 9324int 9325main () 9326{ 9327 9328 ; 9329 return 0; 9330} 9331_ACEOF 9332if ac_fn_c_try_link "$LINENO"; then : 9333 eval $cacheid=yes 9334else 9335 eval $cacheid=no 9336fi 9337rm -f core conftest.err conftest.$ac_objext \ 9338 conftest$ac_exeext conftest.$ac_ext 9339fi 9340 9341 9342 CFLAGS="$xorg_testset_save_CFLAGS" 9343 9344 eval supported=\$$cacheid 9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9346$as_echo "$supported" >&6; } 9347 if test "$supported" = "yes" ; then 9348 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9349 found="yes" 9350 fi 9351 fi 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367xorg_testset_save_CFLAGS="$CFLAGS" 9368 9369if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9372$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9373if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9374 $as_echo_n "(cached) " >&6 9375else 9376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9377/* end confdefs.h. */ 9378int i; 9379_ACEOF 9380if ac_fn_c_try_compile "$LINENO"; then : 9381 xorg_cv_cc_flag_unknown_warning_option=yes 9382else 9383 xorg_cv_cc_flag_unknown_warning_option=no 9384fi 9385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9386fi 9387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9388$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9389 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9390 CFLAGS="$xorg_testset_save_CFLAGS" 9391fi 9392 9393if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9396 fi 9397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9399$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9400if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9401 $as_echo_n "(cached) " >&6 9402else 9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9404/* end confdefs.h. */ 9405int i; 9406_ACEOF 9407if ac_fn_c_try_compile "$LINENO"; then : 9408 xorg_cv_cc_flag_unused_command_line_argument=yes 9409else 9410 xorg_cv_cc_flag_unused_command_line_argument=no 9411fi 9412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9413fi 9414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9415$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9416 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9417 CFLAGS="$xorg_testset_save_CFLAGS" 9418fi 9419 9420found="no" 9421 9422 if test $found = "no" ; then 9423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9425 fi 9426 9427 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9429 fi 9430 9431 CFLAGS="$CFLAGS -Wtrigraphs" 9432 9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9434$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9435 cacheid=xorg_cv_cc_flag__Wtrigraphs 9436 if eval \${$cacheid+:} false; then : 9437 $as_echo_n "(cached) " >&6 9438else 9439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9440/* end confdefs.h. */ 9441int i; 9442int 9443main () 9444{ 9445 9446 ; 9447 return 0; 9448} 9449_ACEOF 9450if ac_fn_c_try_link "$LINENO"; then : 9451 eval $cacheid=yes 9452else 9453 eval $cacheid=no 9454fi 9455rm -f core conftest.err conftest.$ac_objext \ 9456 conftest$ac_exeext conftest.$ac_ext 9457fi 9458 9459 9460 CFLAGS="$xorg_testset_save_CFLAGS" 9461 9462 eval supported=\$$cacheid 9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9464$as_echo "$supported" >&6; } 9465 if test "$supported" = "yes" ; then 9466 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9467 found="yes" 9468 fi 9469 fi 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485xorg_testset_save_CFLAGS="$CFLAGS" 9486 9487if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9490$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9491if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9492 $as_echo_n "(cached) " >&6 9493else 9494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9495/* end confdefs.h. */ 9496int i; 9497_ACEOF 9498if ac_fn_c_try_compile "$LINENO"; then : 9499 xorg_cv_cc_flag_unknown_warning_option=yes 9500else 9501 xorg_cv_cc_flag_unknown_warning_option=no 9502fi 9503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9504fi 9505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9506$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9508 CFLAGS="$xorg_testset_save_CFLAGS" 9509fi 9510 9511if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9514 fi 9515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9517$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9518if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9519 $as_echo_n "(cached) " >&6 9520else 9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9522/* end confdefs.h. */ 9523int i; 9524_ACEOF 9525if ac_fn_c_try_compile "$LINENO"; then : 9526 xorg_cv_cc_flag_unused_command_line_argument=yes 9527else 9528 xorg_cv_cc_flag_unused_command_line_argument=no 9529fi 9530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9531fi 9532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9533$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9535 CFLAGS="$xorg_testset_save_CFLAGS" 9536fi 9537 9538found="no" 9539 9540 if test $found = "no" ; then 9541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9543 fi 9544 9545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9547 fi 9548 9549 CFLAGS="$CFLAGS -Warray-bounds" 9550 9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9552$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9553 cacheid=xorg_cv_cc_flag__Warray_bounds 9554 if eval \${$cacheid+:} false; then : 9555 $as_echo_n "(cached) " >&6 9556else 9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9558/* end confdefs.h. */ 9559int i; 9560int 9561main () 9562{ 9563 9564 ; 9565 return 0; 9566} 9567_ACEOF 9568if ac_fn_c_try_link "$LINENO"; then : 9569 eval $cacheid=yes 9570else 9571 eval $cacheid=no 9572fi 9573rm -f core conftest.err conftest.$ac_objext \ 9574 conftest$ac_exeext conftest.$ac_ext 9575fi 9576 9577 9578 CFLAGS="$xorg_testset_save_CFLAGS" 9579 9580 eval supported=\$$cacheid 9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9582$as_echo "$supported" >&6; } 9583 if test "$supported" = "yes" ; then 9584 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9585 found="yes" 9586 fi 9587 fi 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603xorg_testset_save_CFLAGS="$CFLAGS" 9604 9605if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9608$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9609if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9610 $as_echo_n "(cached) " >&6 9611else 9612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9613/* end confdefs.h. */ 9614int i; 9615_ACEOF 9616if ac_fn_c_try_compile "$LINENO"; then : 9617 xorg_cv_cc_flag_unknown_warning_option=yes 9618else 9619 xorg_cv_cc_flag_unknown_warning_option=no 9620fi 9621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9622fi 9623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9624$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9625 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9626 CFLAGS="$xorg_testset_save_CFLAGS" 9627fi 9628 9629if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9632 fi 9633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9635$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9636if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9637 $as_echo_n "(cached) " >&6 9638else 9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9640/* end confdefs.h. */ 9641int i; 9642_ACEOF 9643if ac_fn_c_try_compile "$LINENO"; then : 9644 xorg_cv_cc_flag_unused_command_line_argument=yes 9645else 9646 xorg_cv_cc_flag_unused_command_line_argument=no 9647fi 9648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9649fi 9650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9651$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9653 CFLAGS="$xorg_testset_save_CFLAGS" 9654fi 9655 9656found="no" 9657 9658 if test $found = "no" ; then 9659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9661 fi 9662 9663 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9665 fi 9666 9667 CFLAGS="$CFLAGS -Wwrite-strings" 9668 9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9670$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9671 cacheid=xorg_cv_cc_flag__Wwrite_strings 9672 if eval \${$cacheid+:} false; then : 9673 $as_echo_n "(cached) " >&6 9674else 9675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9676/* end confdefs.h. */ 9677int i; 9678int 9679main () 9680{ 9681 9682 ; 9683 return 0; 9684} 9685_ACEOF 9686if ac_fn_c_try_link "$LINENO"; then : 9687 eval $cacheid=yes 9688else 9689 eval $cacheid=no 9690fi 9691rm -f core conftest.err conftest.$ac_objext \ 9692 conftest$ac_exeext conftest.$ac_ext 9693fi 9694 9695 9696 CFLAGS="$xorg_testset_save_CFLAGS" 9697 9698 eval supported=\$$cacheid 9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9700$as_echo "$supported" >&6; } 9701 if test "$supported" = "yes" ; then 9702 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9703 found="yes" 9704 fi 9705 fi 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721xorg_testset_save_CFLAGS="$CFLAGS" 9722 9723if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9726$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9727if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9728 $as_echo_n "(cached) " >&6 9729else 9730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9731/* end confdefs.h. */ 9732int i; 9733_ACEOF 9734if ac_fn_c_try_compile "$LINENO"; then : 9735 xorg_cv_cc_flag_unknown_warning_option=yes 9736else 9737 xorg_cv_cc_flag_unknown_warning_option=no 9738fi 9739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9740fi 9741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9742$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9743 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9744 CFLAGS="$xorg_testset_save_CFLAGS" 9745fi 9746 9747if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9750 fi 9751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9753$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9754if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9755 $as_echo_n "(cached) " >&6 9756else 9757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9758/* end confdefs.h. */ 9759int i; 9760_ACEOF 9761if ac_fn_c_try_compile "$LINENO"; then : 9762 xorg_cv_cc_flag_unused_command_line_argument=yes 9763else 9764 xorg_cv_cc_flag_unused_command_line_argument=no 9765fi 9766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9767fi 9768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9769$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9771 CFLAGS="$xorg_testset_save_CFLAGS" 9772fi 9773 9774found="no" 9775 9776 if test $found = "no" ; then 9777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9779 fi 9780 9781 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9783 fi 9784 9785 CFLAGS="$CFLAGS -Waddress" 9786 9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9788$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9789 cacheid=xorg_cv_cc_flag__Waddress 9790 if eval \${$cacheid+:} false; then : 9791 $as_echo_n "(cached) " >&6 9792else 9793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9794/* end confdefs.h. */ 9795int i; 9796int 9797main () 9798{ 9799 9800 ; 9801 return 0; 9802} 9803_ACEOF 9804if ac_fn_c_try_link "$LINENO"; then : 9805 eval $cacheid=yes 9806else 9807 eval $cacheid=no 9808fi 9809rm -f core conftest.err conftest.$ac_objext \ 9810 conftest$ac_exeext conftest.$ac_ext 9811fi 9812 9813 9814 CFLAGS="$xorg_testset_save_CFLAGS" 9815 9816 eval supported=\$$cacheid 9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9818$as_echo "$supported" >&6; } 9819 if test "$supported" = "yes" ; then 9820 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9821 found="yes" 9822 fi 9823 fi 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839xorg_testset_save_CFLAGS="$CFLAGS" 9840 9841if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9844$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9845if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9846 $as_echo_n "(cached) " >&6 9847else 9848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9849/* end confdefs.h. */ 9850int i; 9851_ACEOF 9852if ac_fn_c_try_compile "$LINENO"; then : 9853 xorg_cv_cc_flag_unknown_warning_option=yes 9854else 9855 xorg_cv_cc_flag_unknown_warning_option=no 9856fi 9857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9858fi 9859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9860$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9861 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9862 CFLAGS="$xorg_testset_save_CFLAGS" 9863fi 9864 9865if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9868 fi 9869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9871$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9872if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9873 $as_echo_n "(cached) " >&6 9874else 9875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9876/* end confdefs.h. */ 9877int i; 9878_ACEOF 9879if ac_fn_c_try_compile "$LINENO"; then : 9880 xorg_cv_cc_flag_unused_command_line_argument=yes 9881else 9882 xorg_cv_cc_flag_unused_command_line_argument=no 9883fi 9884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9885fi 9886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9887$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9889 CFLAGS="$xorg_testset_save_CFLAGS" 9890fi 9891 9892found="no" 9893 9894 if test $found = "no" ; then 9895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9897 fi 9898 9899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9901 fi 9902 9903 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9904 9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9906$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9907 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9908 if eval \${$cacheid+:} false; then : 9909 $as_echo_n "(cached) " >&6 9910else 9911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9912/* end confdefs.h. */ 9913int i; 9914int 9915main () 9916{ 9917 9918 ; 9919 return 0; 9920} 9921_ACEOF 9922if ac_fn_c_try_link "$LINENO"; then : 9923 eval $cacheid=yes 9924else 9925 eval $cacheid=no 9926fi 9927rm -f core conftest.err conftest.$ac_objext \ 9928 conftest$ac_exeext conftest.$ac_ext 9929fi 9930 9931 9932 CFLAGS="$xorg_testset_save_CFLAGS" 9933 9934 eval supported=\$$cacheid 9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9936$as_echo "$supported" >&6; } 9937 if test "$supported" = "yes" ; then 9938 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9939 found="yes" 9940 fi 9941 fi 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957xorg_testset_save_CFLAGS="$CFLAGS" 9958 9959if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9962$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9963if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9964 $as_echo_n "(cached) " >&6 9965else 9966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9967/* end confdefs.h. */ 9968int i; 9969_ACEOF 9970if ac_fn_c_try_compile "$LINENO"; then : 9971 xorg_cv_cc_flag_unknown_warning_option=yes 9972else 9973 xorg_cv_cc_flag_unknown_warning_option=no 9974fi 9975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9976fi 9977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9978$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9980 CFLAGS="$xorg_testset_save_CFLAGS" 9981fi 9982 9983if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9986 fi 9987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9989$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9990if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9991 $as_echo_n "(cached) " >&6 9992else 9993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9994/* end confdefs.h. */ 9995int i; 9996_ACEOF 9997if ac_fn_c_try_compile "$LINENO"; then : 9998 xorg_cv_cc_flag_unused_command_line_argument=yes 9999else 10000 xorg_cv_cc_flag_unused_command_line_argument=no 10001fi 10002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10003fi 10004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10005$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10007 CFLAGS="$xorg_testset_save_CFLAGS" 10008fi 10009 10010found="no" 10011 10012 if test $found = "no" ; then 10013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10015 fi 10016 10017 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10019 fi 10020 10021 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10022 10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10024$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10025 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10026 if eval \${$cacheid+:} false; then : 10027 $as_echo_n "(cached) " >&6 10028else 10029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10030/* end confdefs.h. */ 10031int i; 10032int 10033main () 10034{ 10035 10036 ; 10037 return 0; 10038} 10039_ACEOF 10040if ac_fn_c_try_link "$LINENO"; then : 10041 eval $cacheid=yes 10042else 10043 eval $cacheid=no 10044fi 10045rm -f core conftest.err conftest.$ac_objext \ 10046 conftest$ac_exeext conftest.$ac_ext 10047fi 10048 10049 10050 CFLAGS="$xorg_testset_save_CFLAGS" 10051 10052 eval supported=\$$cacheid 10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10054$as_echo "$supported" >&6; } 10055 if test "$supported" = "yes" ; then 10056 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10057 found="yes" 10058 fi 10059 fi 10060 10061 10062fi 10063 10064 10065 10066 10067 10068 10069 10070 CWARNFLAGS="$BASE_CFLAGS" 10071 if test "x$GCC" = xyes ; then 10072 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10073 fi 10074 10075 10076 10077 10078 10079 10080 10081 10082# Check whether --enable-strict-compilation was given. 10083if test "${enable_strict_compilation+set}" = set; then : 10084 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10085else 10086 STRICT_COMPILE=no 10087fi 10088 10089 10090 10091 10092 10093 10094STRICT_CFLAGS="" 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108xorg_testset_save_CFLAGS="$CFLAGS" 10109 10110if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10113$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10114if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10115 $as_echo_n "(cached) " >&6 10116else 10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10118/* end confdefs.h. */ 10119int i; 10120_ACEOF 10121if ac_fn_c_try_compile "$LINENO"; then : 10122 xorg_cv_cc_flag_unknown_warning_option=yes 10123else 10124 xorg_cv_cc_flag_unknown_warning_option=no 10125fi 10126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10127fi 10128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10129$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10131 CFLAGS="$xorg_testset_save_CFLAGS" 10132fi 10133 10134if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10137 fi 10138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10140$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10141if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10142 $as_echo_n "(cached) " >&6 10143else 10144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10145/* end confdefs.h. */ 10146int i; 10147_ACEOF 10148if ac_fn_c_try_compile "$LINENO"; then : 10149 xorg_cv_cc_flag_unused_command_line_argument=yes 10150else 10151 xorg_cv_cc_flag_unused_command_line_argument=no 10152fi 10153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10154fi 10155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10156$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10157 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10158 CFLAGS="$xorg_testset_save_CFLAGS" 10159fi 10160 10161found="no" 10162 10163 if test $found = "no" ; then 10164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10166 fi 10167 10168 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10170 fi 10171 10172 CFLAGS="$CFLAGS -pedantic" 10173 10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10175$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10176 cacheid=xorg_cv_cc_flag__pedantic 10177 if eval \${$cacheid+:} false; then : 10178 $as_echo_n "(cached) " >&6 10179else 10180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10181/* end confdefs.h. */ 10182int i; 10183int 10184main () 10185{ 10186 10187 ; 10188 return 0; 10189} 10190_ACEOF 10191if ac_fn_c_try_link "$LINENO"; then : 10192 eval $cacheid=yes 10193else 10194 eval $cacheid=no 10195fi 10196rm -f core conftest.err conftest.$ac_objext \ 10197 conftest$ac_exeext conftest.$ac_ext 10198fi 10199 10200 10201 CFLAGS="$xorg_testset_save_CFLAGS" 10202 10203 eval supported=\$$cacheid 10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10205$as_echo "$supported" >&6; } 10206 if test "$supported" = "yes" ; then 10207 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10208 found="yes" 10209 fi 10210 fi 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226xorg_testset_save_CFLAGS="$CFLAGS" 10227 10228if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10231$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10232if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10233 $as_echo_n "(cached) " >&6 10234else 10235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10236/* end confdefs.h. */ 10237int i; 10238_ACEOF 10239if ac_fn_c_try_compile "$LINENO"; then : 10240 xorg_cv_cc_flag_unknown_warning_option=yes 10241else 10242 xorg_cv_cc_flag_unknown_warning_option=no 10243fi 10244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10245fi 10246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10247$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10248 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10249 CFLAGS="$xorg_testset_save_CFLAGS" 10250fi 10251 10252if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10255 fi 10256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10258$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10259if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10260 $as_echo_n "(cached) " >&6 10261else 10262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10263/* end confdefs.h. */ 10264int i; 10265_ACEOF 10266if ac_fn_c_try_compile "$LINENO"; then : 10267 xorg_cv_cc_flag_unused_command_line_argument=yes 10268else 10269 xorg_cv_cc_flag_unused_command_line_argument=no 10270fi 10271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10272fi 10273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10274$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10275 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10276 CFLAGS="$xorg_testset_save_CFLAGS" 10277fi 10278 10279found="no" 10280 10281 if test $found = "no" ; then 10282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10284 fi 10285 10286 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10288 fi 10289 10290 CFLAGS="$CFLAGS -Werror" 10291 10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10293$as_echo_n "checking if $CC supports -Werror... " >&6; } 10294 cacheid=xorg_cv_cc_flag__Werror 10295 if eval \${$cacheid+:} false; then : 10296 $as_echo_n "(cached) " >&6 10297else 10298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10299/* end confdefs.h. */ 10300int i; 10301int 10302main () 10303{ 10304 10305 ; 10306 return 0; 10307} 10308_ACEOF 10309if ac_fn_c_try_link "$LINENO"; then : 10310 eval $cacheid=yes 10311else 10312 eval $cacheid=no 10313fi 10314rm -f core conftest.err conftest.$ac_objext \ 10315 conftest$ac_exeext conftest.$ac_ext 10316fi 10317 10318 10319 CFLAGS="$xorg_testset_save_CFLAGS" 10320 10321 eval supported=\$$cacheid 10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10323$as_echo "$supported" >&6; } 10324 if test "$supported" = "yes" ; then 10325 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10326 found="yes" 10327 fi 10328 fi 10329 10330 if test $found = "no" ; then 10331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10333 fi 10334 10335 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10337 fi 10338 10339 CFLAGS="$CFLAGS -errwarn" 10340 10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10342$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10343 cacheid=xorg_cv_cc_flag__errwarn 10344 if eval \${$cacheid+:} false; then : 10345 $as_echo_n "(cached) " >&6 10346else 10347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10348/* end confdefs.h. */ 10349int i; 10350int 10351main () 10352{ 10353 10354 ; 10355 return 0; 10356} 10357_ACEOF 10358if ac_fn_c_try_link "$LINENO"; then : 10359 eval $cacheid=yes 10360else 10361 eval $cacheid=no 10362fi 10363rm -f core conftest.err conftest.$ac_objext \ 10364 conftest$ac_exeext conftest.$ac_ext 10365fi 10366 10367 10368 CFLAGS="$xorg_testset_save_CFLAGS" 10369 10370 eval supported=\$$cacheid 10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10372$as_echo "$supported" >&6; } 10373 if test "$supported" = "yes" ; then 10374 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10375 found="yes" 10376 fi 10377 fi 10378 10379 10380 10381# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10382# activate it with -Werror, so we add it here explicitly. 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396xorg_testset_save_CFLAGS="$CFLAGS" 10397 10398if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10401$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10402if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10403 $as_echo_n "(cached) " >&6 10404else 10405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10406/* end confdefs.h. */ 10407int i; 10408_ACEOF 10409if ac_fn_c_try_compile "$LINENO"; then : 10410 xorg_cv_cc_flag_unknown_warning_option=yes 10411else 10412 xorg_cv_cc_flag_unknown_warning_option=no 10413fi 10414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10415fi 10416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10417$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10419 CFLAGS="$xorg_testset_save_CFLAGS" 10420fi 10421 10422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10425 fi 10426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10428$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10429if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10430 $as_echo_n "(cached) " >&6 10431else 10432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10433/* end confdefs.h. */ 10434int i; 10435_ACEOF 10436if ac_fn_c_try_compile "$LINENO"; then : 10437 xorg_cv_cc_flag_unused_command_line_argument=yes 10438else 10439 xorg_cv_cc_flag_unused_command_line_argument=no 10440fi 10441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10442fi 10443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10444$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10445 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10446 CFLAGS="$xorg_testset_save_CFLAGS" 10447fi 10448 10449found="no" 10450 10451 if test $found = "no" ; then 10452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10454 fi 10455 10456 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10458 fi 10459 10460 CFLAGS="$CFLAGS -Werror=attributes" 10461 10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10463$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10464 cacheid=xorg_cv_cc_flag__Werror_attributes 10465 if eval \${$cacheid+:} false; then : 10466 $as_echo_n "(cached) " >&6 10467else 10468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10469/* end confdefs.h. */ 10470int i; 10471int 10472main () 10473{ 10474 10475 ; 10476 return 0; 10477} 10478_ACEOF 10479if ac_fn_c_try_link "$LINENO"; then : 10480 eval $cacheid=yes 10481else 10482 eval $cacheid=no 10483fi 10484rm -f core conftest.err conftest.$ac_objext \ 10485 conftest$ac_exeext conftest.$ac_ext 10486fi 10487 10488 10489 CFLAGS="$xorg_testset_save_CFLAGS" 10490 10491 eval supported=\$$cacheid 10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10493$as_echo "$supported" >&6; } 10494 if test "$supported" = "yes" ; then 10495 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10496 found="yes" 10497 fi 10498 fi 10499 10500 10501 10502if test "x$STRICT_COMPILE" = "xyes"; then 10503 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10504 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10505fi 10506 10507 10508 10509 10510 10511 10512cat >>confdefs.h <<_ACEOF 10513#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10514_ACEOF 10515 10516 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10517 if test "x$PVM" = "x"; then 10518 PVM="0" 10519 fi 10520 10521cat >>confdefs.h <<_ACEOF 10522#define PACKAGE_VERSION_MINOR $PVM 10523_ACEOF 10524 10525 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10526 if test "x$PVP" = "x"; then 10527 PVP="0" 10528 fi 10529 10530cat >>confdefs.h <<_ACEOF 10531#define PACKAGE_VERSION_PATCHLEVEL $PVP 10532_ACEOF 10533 10534 10535 10536CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10537mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10538|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10539touch \$(top_srcdir)/ChangeLog; \ 10540echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10541 10542 10543 10544 10545macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10546INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10547mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10548|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10549touch \$(top_srcdir)/INSTALL; \ 10550echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10551 10552 10553 10554 10555 10556 10557case $host_os in 10558 solaris*) 10559 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10560 # check for a man page file found in later versions that use 10561 # traditional section numbers instead 10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10563$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; } 10564if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then : 10565 $as_echo_n "(cached) " >&6 10566else 10567 test "$cross_compiling" = yes && 10568 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10569if test -r "/usr/share/man/man7/attributes.7"; then 10570 ac_cv_file__usr_share_man_man7_attributes_7=yes 10571else 10572 ac_cv_file__usr_share_man_man7_attributes_7=no 10573fi 10574fi 10575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10576$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10577if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then : 10578 SYSV_MAN_SECTIONS=false 10579else 10580 SYSV_MAN_SECTIONS=true 10581fi 10582 10583 ;; 10584 *) SYSV_MAN_SECTIONS=false ;; 10585esac 10586 10587if test x$APP_MAN_SUFFIX = x ; then 10588 APP_MAN_SUFFIX=1 10589fi 10590if test x$APP_MAN_DIR = x ; then 10591 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10592fi 10593 10594if test x$LIB_MAN_SUFFIX = x ; then 10595 LIB_MAN_SUFFIX=3 10596fi 10597if test x$LIB_MAN_DIR = x ; then 10598 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10599fi 10600 10601if test x$FILE_MAN_SUFFIX = x ; then 10602 case $SYSV_MAN_SECTIONS in 10603 true) FILE_MAN_SUFFIX=4 ;; 10604 *) FILE_MAN_SUFFIX=5 ;; 10605 esac 10606fi 10607if test x$FILE_MAN_DIR = x ; then 10608 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10609fi 10610 10611if test x$MISC_MAN_SUFFIX = x ; then 10612 case $SYSV_MAN_SECTIONS in 10613 true) MISC_MAN_SUFFIX=5 ;; 10614 *) MISC_MAN_SUFFIX=7 ;; 10615 esac 10616fi 10617if test x$MISC_MAN_DIR = x ; then 10618 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10619fi 10620 10621if test x$DRIVER_MAN_SUFFIX = x ; then 10622 case $SYSV_MAN_SECTIONS in 10623 true) DRIVER_MAN_SUFFIX=7 ;; 10624 *) DRIVER_MAN_SUFFIX=4 ;; 10625 esac 10626fi 10627if test x$DRIVER_MAN_DIR = x ; then 10628 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10629fi 10630 10631if test x$ADMIN_MAN_SUFFIX = x ; then 10632 case $SYSV_MAN_SECTIONS in 10633 true) ADMIN_MAN_SUFFIX=1m ;; 10634 *) ADMIN_MAN_SUFFIX=8 ;; 10635 esac 10636fi 10637if test x$ADMIN_MAN_DIR = x ; then 10638 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10639fi 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655XORG_MAN_PAGE="X Version 11" 10656 10657MAN_SUBSTS="\ 10658 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10659 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10660 -e 's|__xservername__|Xorg|g' \ 10661 -e 's|__xconfigfile__|xorg.conf|g' \ 10662 -e 's|__projectroot__|\$(prefix)|g' \ 10663 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10664 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10665 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10666 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10667 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10668 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10669 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10670 10671 10672 10673# Check whether --enable-silent-rules was given. 10674if test "${enable_silent_rules+set}" = set; then : 10675 enableval=$enable_silent_rules; 10676fi 10677 10678case $enable_silent_rules in # ((( 10679 yes) AM_DEFAULT_VERBOSITY=0;; 10680 no) AM_DEFAULT_VERBOSITY=1;; 10681 *) AM_DEFAULT_VERBOSITY=0;; 10682esac 10683am_make=${MAKE-make} 10684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10685$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10686if ${am_cv_make_support_nested_variables+:} false; then : 10687 $as_echo_n "(cached) " >&6 10688else 10689 if $as_echo 'TRUE=$(BAR$(V)) 10690BAR0=false 10691BAR1=true 10692V=1 10693am__doit: 10694 @$(TRUE) 10695.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10696 am_cv_make_support_nested_variables=yes 10697else 10698 am_cv_make_support_nested_variables=no 10699fi 10700fi 10701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10702$as_echo "$am_cv_make_support_nested_variables" >&6; } 10703if test $am_cv_make_support_nested_variables = yes; then 10704 AM_V='$(V)' 10705 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10706else 10707 AM_V=$AM_DEFAULT_VERBOSITY 10708 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10709fi 10710AM_BACKSLASH='\' 10711 10712 10713 10714ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" 10715if test "x$ac_cv_func_setenv" = xyes; then : 10716 have_setenv=yes 10717else 10718 have_setenv=no 10719fi 10720 10721for ac_func in vasprintf 10722do : 10723 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 10724if test "x$ac_cv_func_vasprintf" = xyes; then : 10725 cat >>confdefs.h <<_ACEOF 10726#define HAVE_VASPRINTF 1 10727_ACEOF 10728 10729fi 10730done 10731 10732ac_fn_c_check_decl "$LINENO" "va_copy" "ac_cv_have_decl_va_copy" " 10733 $ac_includes_default 10734 #include <stdarg.h> 10735 10736" 10737if test "x$ac_cv_have_decl_va_copy" = xyes; then : 10738 ac_have_decl=1 10739else 10740 ac_have_decl=0 10741fi 10742 10743cat >>confdefs.h <<_ACEOF 10744#define HAVE_DECL_VA_COPY $ac_have_decl 10745_ACEOF 10746 10747 10748 if test x$have_setenv = xno; then 10749 NEED_SETENV_TRUE= 10750 NEED_SETENV_FALSE='#' 10751else 10752 NEED_SETENV_TRUE='#' 10753 NEED_SETENV_FALSE= 10754fi 10755 10756 10757# Checks for pkg-config packages 10758 10759pkg_failed=no 10760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTTOSFNT" >&5 10761$as_echo_n "checking for FONTTOSFNT... " >&6; } 10762 10763if test -n "$FONTTOSFNT_CFLAGS"; then 10764 pkg_cv_FONTTOSFNT_CFLAGS="$FONTTOSFNT_CFLAGS" 10765 elif test -n "$PKG_CONFIG"; then 10766 if test -n "$PKG_CONFIG" && \ 10767 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto freetype2 fontenc\""; } >&5 10768 ($PKG_CONFIG --exists --print-errors "xproto freetype2 fontenc") 2>&5 10769 ac_status=$? 10770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10771 test $ac_status = 0; }; then 10772 pkg_cv_FONTTOSFNT_CFLAGS=`$PKG_CONFIG --cflags "xproto freetype2 fontenc" 2>/dev/null` 10773 test "x$?" != "x0" && pkg_failed=yes 10774else 10775 pkg_failed=yes 10776fi 10777 else 10778 pkg_failed=untried 10779fi 10780if test -n "$FONTTOSFNT_LIBS"; then 10781 pkg_cv_FONTTOSFNT_LIBS="$FONTTOSFNT_LIBS" 10782 elif test -n "$PKG_CONFIG"; then 10783 if test -n "$PKG_CONFIG" && \ 10784 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto freetype2 fontenc\""; } >&5 10785 ($PKG_CONFIG --exists --print-errors "xproto freetype2 fontenc") 2>&5 10786 ac_status=$? 10787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10788 test $ac_status = 0; }; then 10789 pkg_cv_FONTTOSFNT_LIBS=`$PKG_CONFIG --libs "xproto freetype2 fontenc" 2>/dev/null` 10790 test "x$?" != "x0" && pkg_failed=yes 10791else 10792 pkg_failed=yes 10793fi 10794 else 10795 pkg_failed=untried 10796fi 10797 10798 10799 10800if test $pkg_failed = yes; then 10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10802$as_echo "no" >&6; } 10803 10804if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10805 _pkg_short_errors_supported=yes 10806else 10807 _pkg_short_errors_supported=no 10808fi 10809 if test $_pkg_short_errors_supported = yes; then 10810 FONTTOSFNT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto freetype2 fontenc" 2>&1` 10811 else 10812 FONTTOSFNT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto freetype2 fontenc" 2>&1` 10813 fi 10814 # Put the nasty error message in config.log where it belongs 10815 echo "$FONTTOSFNT_PKG_ERRORS" >&5 10816 10817 as_fn_error $? "Package requirements (xproto freetype2 fontenc) were not met: 10818 10819$FONTTOSFNT_PKG_ERRORS 10820 10821Consider adjusting the PKG_CONFIG_PATH environment variable if you 10822installed software in a non-standard prefix. 10823 10824Alternatively, you may set the environment variables FONTTOSFNT_CFLAGS 10825and FONTTOSFNT_LIBS to avoid the need to call pkg-config. 10826See the pkg-config man page for more details." "$LINENO" 5 10827elif test $pkg_failed = untried; then 10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10829$as_echo "no" >&6; } 10830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10831$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10832as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10833is in your PATH or set the PKG_CONFIG environment variable to the full 10834path to pkg-config. 10835 10836Alternatively, you may set the environment variables FONTTOSFNT_CFLAGS 10837and FONTTOSFNT_LIBS to avoid the need to call pkg-config. 10838See the pkg-config man page for more details. 10839 10840To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10841See \`config.log' for more details" "$LINENO" 5; } 10842else 10843 FONTTOSFNT_CFLAGS=$pkg_cv_FONTTOSFNT_CFLAGS 10844 FONTTOSFNT_LIBS=$pkg_cv_FONTTOSFNT_LIBS 10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10846$as_echo "yes" >&6; } 10847 10848fi 10849 10850 10851ac_config_files="$ac_config_files Makefile man/Makefile" 10852 10853cat >confcache <<\_ACEOF 10854# This file is a shell script that caches the results of configure 10855# tests run on this system so they can be shared between configure 10856# scripts and configure runs, see configure's option --config-cache. 10857# It is not useful on other systems. If it contains results you don't 10858# want to keep, you may remove or edit it. 10859# 10860# config.status only pays attention to the cache file if you give it 10861# the --recheck option to rerun configure. 10862# 10863# `ac_cv_env_foo' variables (set or unset) will be overridden when 10864# loading this file, other *unset* `ac_cv_foo' will be assigned the 10865# following values. 10866 10867_ACEOF 10868 10869# The following way of writing the cache mishandles newlines in values, 10870# but we know of no workaround that is simple, portable, and efficient. 10871# So, we kill variables containing newlines. 10872# Ultrix sh set writes to stderr and can't be redirected directly, 10873# and sets the high bit in the cache file unless we assign to the vars. 10874( 10875 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10876 eval ac_val=\$$ac_var 10877 case $ac_val in #( 10878 *${as_nl}*) 10879 case $ac_var in #( 10880 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10881$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10882 esac 10883 case $ac_var in #( 10884 _ | IFS | as_nl) ;; #( 10885 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10886 *) { eval $ac_var=; unset $ac_var;} ;; 10887 esac ;; 10888 esac 10889 done 10890 10891 (set) 2>&1 | 10892 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10893 *${as_nl}ac_space=\ *) 10894 # `set' does not quote correctly, so add quotes: double-quote 10895 # substitution turns \\\\ into \\, and sed turns \\ into \. 10896 sed -n \ 10897 "s/'/'\\\\''/g; 10898 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10899 ;; #( 10900 *) 10901 # `set' quotes correctly as required by POSIX, so do not add quotes. 10902 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10903 ;; 10904 esac | 10905 sort 10906) | 10907 sed ' 10908 /^ac_cv_env_/b end 10909 t clear 10910 :clear 10911 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10912 t end 10913 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10914 :end' >>confcache 10915if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10916 if test -w "$cache_file"; then 10917 if test "x$cache_file" != "x/dev/null"; then 10918 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10919$as_echo "$as_me: updating cache $cache_file" >&6;} 10920 if test ! -f "$cache_file" || test -h "$cache_file"; then 10921 cat confcache >"$cache_file" 10922 else 10923 case $cache_file in #( 10924 */* | ?:*) 10925 mv -f confcache "$cache_file"$$ && 10926 mv -f "$cache_file"$$ "$cache_file" ;; #( 10927 *) 10928 mv -f confcache "$cache_file" ;; 10929 esac 10930 fi 10931 fi 10932 else 10933 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10934$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10935 fi 10936fi 10937rm -f confcache 10938 10939test "x$prefix" = xNONE && prefix=$ac_default_prefix 10940# Let make expand exec_prefix. 10941test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10942 10943DEFS=-DHAVE_CONFIG_H 10944 10945ac_libobjs= 10946ac_ltlibobjs= 10947U= 10948for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10949 # 1. Remove the extension, and $U if already installed. 10950 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10951 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10952 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10953 # will be set to the directory where LIBOBJS objects are built. 10954 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10955 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10956done 10957LIBOBJS=$ac_libobjs 10958 10959LTLIBOBJS=$ac_ltlibobjs 10960 10961 10962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10963$as_echo_n "checking that generated files are newer than configure... " >&6; } 10964 if test -n "$am_sleep_pid"; then 10965 # Hide warnings about reused PIDs. 10966 wait $am_sleep_pid 2>/dev/null 10967 fi 10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10969$as_echo "done" >&6; } 10970 if test -n "$EXEEXT"; then 10971 am__EXEEXT_TRUE= 10972 am__EXEEXT_FALSE='#' 10973else 10974 am__EXEEXT_TRUE='#' 10975 am__EXEEXT_FALSE= 10976fi 10977 10978if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10979 as_fn_error $? "conditional \"AMDEP\" was never defined. 10980Usually this means the macro was only invoked conditionally." "$LINENO" 5 10981fi 10982if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10983 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10984Usually this means the macro was only invoked conditionally." "$LINENO" 5 10985fi 10986if test -z "${NEED_SETENV_TRUE}" && test -z "${NEED_SETENV_FALSE}"; then 10987 as_fn_error $? "conditional \"NEED_SETENV\" was never defined. 10988Usually this means the macro was only invoked conditionally." "$LINENO" 5 10989fi 10990 10991: "${CONFIG_STATUS=./config.status}" 10992ac_write_fail=0 10993ac_clean_files_save=$ac_clean_files 10994ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10995{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10996$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10997as_write_fail=0 10998cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10999#! $SHELL 11000# Generated by $as_me. 11001# Run this file to recreate the current configuration. 11002# Compiler output produced by configure, useful for debugging 11003# configure, is in config.log if it exists. 11004 11005debug=false 11006ac_cs_recheck=false 11007ac_cs_silent=false 11008 11009SHELL=\${CONFIG_SHELL-$SHELL} 11010export SHELL 11011_ASEOF 11012cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11013## -------------------- ## 11014## M4sh Initialization. ## 11015## -------------------- ## 11016 11017# Be more Bourne compatible 11018DUALCASE=1; export DUALCASE # for MKS sh 11019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11020 emulate sh 11021 NULLCMD=: 11022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11023 # is contrary to our usage. Disable this feature. 11024 alias -g '${1+"$@"}'='"$@"' 11025 setopt NO_GLOB_SUBST 11026else 11027 case `(set -o) 2>/dev/null` in #( 11028 *posix*) : 11029 set -o posix ;; #( 11030 *) : 11031 ;; 11032esac 11033fi 11034 11035 11036as_nl=' 11037' 11038export as_nl 11039# Printing a long string crashes Solaris 7 /usr/bin/printf. 11040as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11041as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11042as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11043# Prefer a ksh shell builtin over an external printf program on Solaris, 11044# but without wasting forks for bash or zsh. 11045if test -z "$BASH_VERSION$ZSH_VERSION" \ 11046 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11047 as_echo='print -r --' 11048 as_echo_n='print -rn --' 11049elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11050 as_echo='printf %s\n' 11051 as_echo_n='printf %s' 11052else 11053 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11054 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11055 as_echo_n='/usr/ucb/echo -n' 11056 else 11057 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11058 as_echo_n_body='eval 11059 arg=$1; 11060 case $arg in #( 11061 *"$as_nl"*) 11062 expr "X$arg" : "X\\(.*\\)$as_nl"; 11063 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11064 esac; 11065 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11066 ' 11067 export as_echo_n_body 11068 as_echo_n='sh -c $as_echo_n_body as_echo' 11069 fi 11070 export as_echo_body 11071 as_echo='sh -c $as_echo_body as_echo' 11072fi 11073 11074# The user is always right. 11075if test "${PATH_SEPARATOR+set}" != set; then 11076 PATH_SEPARATOR=: 11077 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11078 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11079 PATH_SEPARATOR=';' 11080 } 11081fi 11082 11083 11084# IFS 11085# We need space, tab and new line, in precisely that order. Quoting is 11086# there to prevent editors from complaining about space-tab. 11087# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11088# splitting by setting IFS to empty value.) 11089IFS=" "" $as_nl" 11090 11091# Find who we are. Look in the path if we contain no directory separator. 11092as_myself= 11093case $0 in #(( 11094 *[\\/]* ) as_myself=$0 ;; 11095 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11096for as_dir in $PATH 11097do 11098 IFS=$as_save_IFS 11099 test -z "$as_dir" && as_dir=. 11100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11101 done 11102IFS=$as_save_IFS 11103 11104 ;; 11105esac 11106# We did not find ourselves, most probably we were run as `sh COMMAND' 11107# in which case we are not to be found in the path. 11108if test "x$as_myself" = x; then 11109 as_myself=$0 11110fi 11111if test ! -f "$as_myself"; then 11112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11113 exit 1 11114fi 11115 11116# Unset variables that we do not need and which cause bugs (e.g. in 11117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11118# suppresses any "Segmentation fault" message there. '((' could 11119# trigger a bug in pdksh 5.2.14. 11120for as_var in BASH_ENV ENV MAIL MAILPATH 11121do eval test x\${$as_var+set} = xset \ 11122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11123done 11124PS1='$ ' 11125PS2='> ' 11126PS4='+ ' 11127 11128# NLS nuisances. 11129LC_ALL=C 11130export LC_ALL 11131LANGUAGE=C 11132export LANGUAGE 11133 11134# CDPATH. 11135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11136 11137 11138# as_fn_error STATUS ERROR [LINENO LOG_FD] 11139# ---------------------------------------- 11140# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11141# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11142# script with STATUS, using 1 if that was 0. 11143as_fn_error () 11144{ 11145 as_status=$1; test $as_status -eq 0 && as_status=1 11146 if test "$4"; then 11147 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11148 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11149 fi 11150 $as_echo "$as_me: error: $2" >&2 11151 as_fn_exit $as_status 11152} # as_fn_error 11153 11154 11155# as_fn_set_status STATUS 11156# ----------------------- 11157# Set $? to STATUS, without forking. 11158as_fn_set_status () 11159{ 11160 return $1 11161} # as_fn_set_status 11162 11163# as_fn_exit STATUS 11164# ----------------- 11165# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11166as_fn_exit () 11167{ 11168 set +e 11169 as_fn_set_status $1 11170 exit $1 11171} # as_fn_exit 11172 11173# as_fn_unset VAR 11174# --------------- 11175# Portably unset VAR. 11176as_fn_unset () 11177{ 11178 { eval $1=; unset $1;} 11179} 11180as_unset=as_fn_unset 11181# as_fn_append VAR VALUE 11182# ---------------------- 11183# Append the text in VALUE to the end of the definition contained in VAR. Take 11184# advantage of any shell optimizations that allow amortized linear growth over 11185# repeated appends, instead of the typical quadratic growth present in naive 11186# implementations. 11187if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11188 eval 'as_fn_append () 11189 { 11190 eval $1+=\$2 11191 }' 11192else 11193 as_fn_append () 11194 { 11195 eval $1=\$$1\$2 11196 } 11197fi # as_fn_append 11198 11199# as_fn_arith ARG... 11200# ------------------ 11201# Perform arithmetic evaluation on the ARGs, and store the result in the 11202# global $as_val. Take advantage of shells that can avoid forks. The arguments 11203# must be portable across $(()) and expr. 11204if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11205 eval 'as_fn_arith () 11206 { 11207 as_val=$(( $* )) 11208 }' 11209else 11210 as_fn_arith () 11211 { 11212 as_val=`expr "$@" || test $? -eq 1` 11213 } 11214fi # as_fn_arith 11215 11216 11217if expr a : '\(a\)' >/dev/null 2>&1 && 11218 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11219 as_expr=expr 11220else 11221 as_expr=false 11222fi 11223 11224if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11225 as_basename=basename 11226else 11227 as_basename=false 11228fi 11229 11230if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11231 as_dirname=dirname 11232else 11233 as_dirname=false 11234fi 11235 11236as_me=`$as_basename -- "$0" || 11237$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11238 X"$0" : 'X\(//\)$' \| \ 11239 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11240$as_echo X/"$0" | 11241 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11242 s//\1/ 11243 q 11244 } 11245 /^X\/\(\/\/\)$/{ 11246 s//\1/ 11247 q 11248 } 11249 /^X\/\(\/\).*/{ 11250 s//\1/ 11251 q 11252 } 11253 s/.*/./; q'` 11254 11255# Avoid depending upon Character Ranges. 11256as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11257as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11258as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11259as_cr_digits='0123456789' 11260as_cr_alnum=$as_cr_Letters$as_cr_digits 11261 11262ECHO_C= ECHO_N= ECHO_T= 11263case `echo -n x` in #((((( 11264-n*) 11265 case `echo 'xy\c'` in 11266 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11267 xy) ECHO_C='\c';; 11268 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11269 ECHO_T=' ';; 11270 esac;; 11271*) 11272 ECHO_N='-n';; 11273esac 11274 11275rm -f conf$$ conf$$.exe conf$$.file 11276if test -d conf$$.dir; then 11277 rm -f conf$$.dir/conf$$.file 11278else 11279 rm -f conf$$.dir 11280 mkdir conf$$.dir 2>/dev/null 11281fi 11282if (echo >conf$$.file) 2>/dev/null; then 11283 if ln -s conf$$.file conf$$ 2>/dev/null; then 11284 as_ln_s='ln -s' 11285 # ... but there are two gotchas: 11286 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11287 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11288 # In both cases, we have to default to `cp -pR'. 11289 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11290 as_ln_s='cp -pR' 11291 elif ln conf$$.file conf$$ 2>/dev/null; then 11292 as_ln_s=ln 11293 else 11294 as_ln_s='cp -pR' 11295 fi 11296else 11297 as_ln_s='cp -pR' 11298fi 11299rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11300rmdir conf$$.dir 2>/dev/null 11301 11302 11303# as_fn_mkdir_p 11304# ------------- 11305# Create "$as_dir" as a directory, including parents if necessary. 11306as_fn_mkdir_p () 11307{ 11308 11309 case $as_dir in #( 11310 -*) as_dir=./$as_dir;; 11311 esac 11312 test -d "$as_dir" || eval $as_mkdir_p || { 11313 as_dirs= 11314 while :; do 11315 case $as_dir in #( 11316 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11317 *) as_qdir=$as_dir;; 11318 esac 11319 as_dirs="'$as_qdir' $as_dirs" 11320 as_dir=`$as_dirname -- "$as_dir" || 11321$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11322 X"$as_dir" : 'X\(//\)[^/]' \| \ 11323 X"$as_dir" : 'X\(//\)$' \| \ 11324 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11325$as_echo X"$as_dir" | 11326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11327 s//\1/ 11328 q 11329 } 11330 /^X\(\/\/\)[^/].*/{ 11331 s//\1/ 11332 q 11333 } 11334 /^X\(\/\/\)$/{ 11335 s//\1/ 11336 q 11337 } 11338 /^X\(\/\).*/{ 11339 s//\1/ 11340 q 11341 } 11342 s/.*/./; q'` 11343 test -d "$as_dir" && break 11344 done 11345 test -z "$as_dirs" || eval "mkdir $as_dirs" 11346 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11347 11348 11349} # as_fn_mkdir_p 11350if mkdir -p . 2>/dev/null; then 11351 as_mkdir_p='mkdir -p "$as_dir"' 11352else 11353 test -d ./-p && rmdir ./-p 11354 as_mkdir_p=false 11355fi 11356 11357 11358# as_fn_executable_p FILE 11359# ----------------------- 11360# Test if FILE is an executable regular file. 11361as_fn_executable_p () 11362{ 11363 test -f "$1" && test -x "$1" 11364} # as_fn_executable_p 11365as_test_x='test -x' 11366as_executable_p=as_fn_executable_p 11367 11368# Sed expression to map a string onto a valid CPP name. 11369as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11370 11371# Sed expression to map a string onto a valid variable name. 11372as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11373 11374 11375exec 6>&1 11376## ----------------------------------- ## 11377## Main body of $CONFIG_STATUS script. ## 11378## ----------------------------------- ## 11379_ASEOF 11380test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11381 11382cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11383# Save the log message, to keep $0 and so on meaningful, and to 11384# report actual input values of CONFIG_FILES etc. instead of their 11385# values after options handling. 11386ac_log=" 11387This file was extended by fonttosfnt $as_me 1.2.2, which was 11388generated by GNU Autoconf 2.69. Invocation command line was 11389 11390 CONFIG_FILES = $CONFIG_FILES 11391 CONFIG_HEADERS = $CONFIG_HEADERS 11392 CONFIG_LINKS = $CONFIG_LINKS 11393 CONFIG_COMMANDS = $CONFIG_COMMANDS 11394 $ $0 $@ 11395 11396on `(hostname || uname -n) 2>/dev/null | sed 1q` 11397" 11398 11399_ACEOF 11400 11401case $ac_config_files in *" 11402"*) set x $ac_config_files; shift; ac_config_files=$*;; 11403esac 11404 11405case $ac_config_headers in *" 11406"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11407esac 11408 11409 11410cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11411# Files that config.status was made for. 11412config_files="$ac_config_files" 11413config_headers="$ac_config_headers" 11414config_commands="$ac_config_commands" 11415 11416_ACEOF 11417 11418cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11419ac_cs_usage="\ 11420\`$as_me' instantiates files and other configuration actions 11421from templates according to the current configuration. Unless the files 11422and actions are specified as TAGs, all are instantiated by default. 11423 11424Usage: $0 [OPTION]... [TAG]... 11425 11426 -h, --help print this help, then exit 11427 -V, --version print version number and configuration settings, then exit 11428 --config print configuration, then exit 11429 -q, --quiet, --silent 11430 do not print progress messages 11431 -d, --debug don't remove temporary files 11432 --recheck update $as_me by reconfiguring in the same conditions 11433 --file=FILE[:TEMPLATE] 11434 instantiate the configuration file FILE 11435 --header=FILE[:TEMPLATE] 11436 instantiate the configuration header FILE 11437 11438Configuration files: 11439$config_files 11440 11441Configuration headers: 11442$config_headers 11443 11444Configuration commands: 11445$config_commands 11446 11447Report bugs to <https://gitlab.freedesktop.org/xorg/app/fonttosfnt/issues>." 11448 11449_ACEOF 11450cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11451ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11452ac_cs_version="\\ 11453fonttosfnt config.status 1.2.2 11454configured by $0, generated by GNU Autoconf 2.69, 11455 with options \\"\$ac_cs_config\\" 11456 11457Copyright (C) 2012 Free Software Foundation, Inc. 11458This config.status script is free software; the Free Software Foundation 11459gives unlimited permission to copy, distribute and modify it." 11460 11461ac_pwd='$ac_pwd' 11462srcdir='$srcdir' 11463INSTALL='$INSTALL' 11464MKDIR_P='$MKDIR_P' 11465AWK='$AWK' 11466test -n "\$AWK" || AWK=awk 11467_ACEOF 11468 11469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11470# The default lists apply if the user does not specify any file. 11471ac_need_defaults=: 11472while test $# != 0 11473do 11474 case $1 in 11475 --*=?*) 11476 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11477 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11478 ac_shift=: 11479 ;; 11480 --*=) 11481 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11482 ac_optarg= 11483 ac_shift=: 11484 ;; 11485 *) 11486 ac_option=$1 11487 ac_optarg=$2 11488 ac_shift=shift 11489 ;; 11490 esac 11491 11492 case $ac_option in 11493 # Handling of the options. 11494 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11495 ac_cs_recheck=: ;; 11496 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11497 $as_echo "$ac_cs_version"; exit ;; 11498 --config | --confi | --conf | --con | --co | --c ) 11499 $as_echo "$ac_cs_config"; exit ;; 11500 --debug | --debu | --deb | --de | --d | -d ) 11501 debug=: ;; 11502 --file | --fil | --fi | --f ) 11503 $ac_shift 11504 case $ac_optarg in 11505 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11506 '') as_fn_error $? "missing file argument" ;; 11507 esac 11508 as_fn_append CONFIG_FILES " '$ac_optarg'" 11509 ac_need_defaults=false;; 11510 --header | --heade | --head | --hea ) 11511 $ac_shift 11512 case $ac_optarg in 11513 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11514 esac 11515 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11516 ac_need_defaults=false;; 11517 --he | --h) 11518 # Conflict between --help and --header 11519 as_fn_error $? "ambiguous option: \`$1' 11520Try \`$0 --help' for more information.";; 11521 --help | --hel | -h ) 11522 $as_echo "$ac_cs_usage"; exit ;; 11523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11524 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11525 ac_cs_silent=: ;; 11526 11527 # This is an error. 11528 -*) as_fn_error $? "unrecognized option: \`$1' 11529Try \`$0 --help' for more information." ;; 11530 11531 *) as_fn_append ac_config_targets " $1" 11532 ac_need_defaults=false ;; 11533 11534 esac 11535 shift 11536done 11537 11538ac_configure_extra_args= 11539 11540if $ac_cs_silent; then 11541 exec 6>/dev/null 11542 ac_configure_extra_args="$ac_configure_extra_args --silent" 11543fi 11544 11545_ACEOF 11546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11547if \$ac_cs_recheck; then 11548 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11549 shift 11550 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11551 CONFIG_SHELL='$SHELL' 11552 export CONFIG_SHELL 11553 exec "\$@" 11554fi 11555 11556_ACEOF 11557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11558exec 5>>config.log 11559{ 11560 echo 11561 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11562## Running $as_me. ## 11563_ASBOX 11564 $as_echo "$ac_log" 11565} >&5 11566 11567_ACEOF 11568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11569# 11570# INIT-COMMANDS 11571# 11572AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 11573 11574_ACEOF 11575 11576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11577 11578# Handling of arguments. 11579for ac_config_target in $ac_config_targets 11580do 11581 case $ac_config_target in 11582 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11583 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11584 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11585 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11586 11587 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11588 esac 11589done 11590 11591 11592# If the user did not use the arguments to specify the items to instantiate, 11593# then the envvar interface is used. Set only those that are not. 11594# We use the long form for the default assignment because of an extremely 11595# bizarre bug on SunOS 4.1.3. 11596if $ac_need_defaults; then 11597 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11598 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11599 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11600fi 11601 11602# Have a temporary directory for convenience. Make it in the build tree 11603# simply because there is no reason against having it here, and in addition, 11604# creating and moving files from /tmp can sometimes cause problems. 11605# Hook for its removal unless debugging. 11606# Note that there is a small window in which the directory will not be cleaned: 11607# after its creation but before its name has been assigned to `$tmp'. 11608$debug || 11609{ 11610 tmp= ac_tmp= 11611 trap 'exit_status=$? 11612 : "${ac_tmp:=$tmp}" 11613 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11614' 0 11615 trap 'as_fn_exit 1' 1 2 13 15 11616} 11617# Create a (secure) tmp directory for tmp files. 11618 11619{ 11620 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11621 test -d "$tmp" 11622} || 11623{ 11624 tmp=./conf$$-$RANDOM 11625 (umask 077 && mkdir "$tmp") 11626} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11627ac_tmp=$tmp 11628 11629# Set up the scripts for CONFIG_FILES section. 11630# No need to generate them if there are no CONFIG_FILES. 11631# This happens for instance with `./config.status config.h'. 11632if test -n "$CONFIG_FILES"; then 11633 11634 11635ac_cr=`echo X | tr X '\015'` 11636# On cygwin, bash can eat \r inside `` if the user requested igncr. 11637# But we know of no other shell where ac_cr would be empty at this 11638# point, so we can use a bashism as a fallback. 11639if test "x$ac_cr" = x; then 11640 eval ac_cr=\$\'\\r\' 11641fi 11642ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11643if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11644 ac_cs_awk_cr='\\r' 11645else 11646 ac_cs_awk_cr=$ac_cr 11647fi 11648 11649echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11650_ACEOF 11651 11652 11653{ 11654 echo "cat >conf$$subs.awk <<_ACEOF" && 11655 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11656 echo "_ACEOF" 11657} >conf$$subs.sh || 11658 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11659ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11660ac_delim='%!_!# ' 11661for ac_last_try in false false false false false :; do 11662 . ./conf$$subs.sh || 11663 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11664 11665 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11666 if test $ac_delim_n = $ac_delim_num; then 11667 break 11668 elif $ac_last_try; then 11669 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11670 else 11671 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11672 fi 11673done 11674rm -f conf$$subs.sh 11675 11676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11677cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11678_ACEOF 11679sed -n ' 11680h 11681s/^/S["/; s/!.*/"]=/ 11682p 11683g 11684s/^[^!]*!// 11685:repl 11686t repl 11687s/'"$ac_delim"'$// 11688t delim 11689:nl 11690h 11691s/\(.\{148\}\)..*/\1/ 11692t more1 11693s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11694p 11695n 11696b repl 11697:more1 11698s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11699p 11700g 11701s/.\{148\}// 11702t nl 11703:delim 11704h 11705s/\(.\{148\}\)..*/\1/ 11706t more2 11707s/["\\]/\\&/g; s/^/"/; s/$/"/ 11708p 11709b 11710:more2 11711s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11712p 11713g 11714s/.\{148\}// 11715t delim 11716' <conf$$subs.awk | sed ' 11717/^[^""]/{ 11718 N 11719 s/\n// 11720} 11721' >>$CONFIG_STATUS || ac_write_fail=1 11722rm -f conf$$subs.awk 11723cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11724_ACAWK 11725cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11726 for (key in S) S_is_set[key] = 1 11727 FS = "" 11728 11729} 11730{ 11731 line = $ 0 11732 nfields = split(line, field, "@") 11733 substed = 0 11734 len = length(field[1]) 11735 for (i = 2; i < nfields; i++) { 11736 key = field[i] 11737 keylen = length(key) 11738 if (S_is_set[key]) { 11739 value = S[key] 11740 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11741 len += length(value) + length(field[++i]) 11742 substed = 1 11743 } else 11744 len += 1 + keylen 11745 } 11746 11747 print line 11748} 11749 11750_ACAWK 11751_ACEOF 11752cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11753if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11754 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11755else 11756 cat 11757fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11758 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11759_ACEOF 11760 11761# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11762# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11763# trailing colons and then remove the whole line if VPATH becomes empty 11764# (actually we leave an empty line to preserve line numbers). 11765if test "x$srcdir" = x.; then 11766 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11767h 11768s/// 11769s/^/:/ 11770s/[ ]*$/:/ 11771s/:\$(srcdir):/:/g 11772s/:\${srcdir}:/:/g 11773s/:@srcdir@:/:/g 11774s/^:*// 11775s/:*$// 11776x 11777s/\(=[ ]*\).*/\1/ 11778G 11779s/\n// 11780s/^[^=]*=[ ]*$// 11781}' 11782fi 11783 11784cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11785fi # test -n "$CONFIG_FILES" 11786 11787# Set up the scripts for CONFIG_HEADERS section. 11788# No need to generate them if there are no CONFIG_HEADERS. 11789# This happens for instance with `./config.status Makefile'. 11790if test -n "$CONFIG_HEADERS"; then 11791cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11792BEGIN { 11793_ACEOF 11794 11795# Transform confdefs.h into an awk script `defines.awk', embedded as 11796# here-document in config.status, that substitutes the proper values into 11797# config.h.in to produce config.h. 11798 11799# Create a delimiter string that does not exist in confdefs.h, to ease 11800# handling of long lines. 11801ac_delim='%!_!# ' 11802for ac_last_try in false false :; do 11803 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11804 if test -z "$ac_tt"; then 11805 break 11806 elif $ac_last_try; then 11807 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11808 else 11809 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11810 fi 11811done 11812 11813# For the awk script, D is an array of macro values keyed by name, 11814# likewise P contains macro parameters if any. Preserve backslash 11815# newline sequences. 11816 11817ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11818sed -n ' 11819s/.\{148\}/&'"$ac_delim"'/g 11820t rset 11821:rset 11822s/^[ ]*#[ ]*define[ ][ ]*/ / 11823t def 11824d 11825:def 11826s/\\$// 11827t bsnl 11828s/["\\]/\\&/g 11829s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11830D["\1"]=" \3"/p 11831s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11832d 11833:bsnl 11834s/["\\]/\\&/g 11835s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11836D["\1"]=" \3\\\\\\n"\\/p 11837t cont 11838s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11839t cont 11840d 11841:cont 11842n 11843s/.\{148\}/&'"$ac_delim"'/g 11844t clear 11845:clear 11846s/\\$// 11847t bsnlc 11848s/["\\]/\\&/g; s/^/"/; s/$/"/p 11849d 11850:bsnlc 11851s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11852b cont 11853' <confdefs.h | sed ' 11854s/'"$ac_delim"'/"\\\ 11855"/g' >>$CONFIG_STATUS || ac_write_fail=1 11856 11857cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11858 for (key in D) D_is_set[key] = 1 11859 FS = "" 11860} 11861/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11862 line = \$ 0 11863 split(line, arg, " ") 11864 if (arg[1] == "#") { 11865 defundef = arg[2] 11866 mac1 = arg[3] 11867 } else { 11868 defundef = substr(arg[1], 2) 11869 mac1 = arg[2] 11870 } 11871 split(mac1, mac2, "(") #) 11872 macro = mac2[1] 11873 prefix = substr(line, 1, index(line, defundef) - 1) 11874 if (D_is_set[macro]) { 11875 # Preserve the white space surrounding the "#". 11876 print prefix "define", macro P[macro] D[macro] 11877 next 11878 } else { 11879 # Replace #undef with comments. This is necessary, for example, 11880 # in the case of _POSIX_SOURCE, which is predefined and required 11881 # on some systems where configure will not decide to define it. 11882 if (defundef == "undef") { 11883 print "/*", prefix defundef, macro, "*/" 11884 next 11885 } 11886 } 11887} 11888{ print } 11889_ACAWK 11890_ACEOF 11891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11892 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11893fi # test -n "$CONFIG_HEADERS" 11894 11895 11896eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11897shift 11898for ac_tag 11899do 11900 case $ac_tag in 11901 :[FHLC]) ac_mode=$ac_tag; continue;; 11902 esac 11903 case $ac_mode$ac_tag in 11904 :[FHL]*:*);; 11905 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11906 :[FH]-) ac_tag=-:-;; 11907 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11908 esac 11909 ac_save_IFS=$IFS 11910 IFS=: 11911 set x $ac_tag 11912 IFS=$ac_save_IFS 11913 shift 11914 ac_file=$1 11915 shift 11916 11917 case $ac_mode in 11918 :L) ac_source=$1;; 11919 :[FH]) 11920 ac_file_inputs= 11921 for ac_f 11922 do 11923 case $ac_f in 11924 -) ac_f="$ac_tmp/stdin";; 11925 *) # Look for the file first in the build tree, then in the source tree 11926 # (if the path is not absolute). The absolute path cannot be DOS-style, 11927 # because $ac_f cannot contain `:'. 11928 test -f "$ac_f" || 11929 case $ac_f in 11930 [\\/$]*) false;; 11931 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11932 esac || 11933 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11934 esac 11935 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11936 as_fn_append ac_file_inputs " '$ac_f'" 11937 done 11938 11939 # Let's still pretend it is `configure' which instantiates (i.e., don't 11940 # use $as_me), people would be surprised to read: 11941 # /* config.h. Generated by config.status. */ 11942 configure_input='Generated from '` 11943 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11944 `' by configure.' 11945 if test x"$ac_file" != x-; then 11946 configure_input="$ac_file. $configure_input" 11947 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11948$as_echo "$as_me: creating $ac_file" >&6;} 11949 fi 11950 # Neutralize special characters interpreted by sed in replacement strings. 11951 case $configure_input in #( 11952 *\&* | *\|* | *\\* ) 11953 ac_sed_conf_input=`$as_echo "$configure_input" | 11954 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11955 *) ac_sed_conf_input=$configure_input;; 11956 esac 11957 11958 case $ac_tag in 11959 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11960 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11961 esac 11962 ;; 11963 esac 11964 11965 ac_dir=`$as_dirname -- "$ac_file" || 11966$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11967 X"$ac_file" : 'X\(//\)[^/]' \| \ 11968 X"$ac_file" : 'X\(//\)$' \| \ 11969 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11970$as_echo X"$ac_file" | 11971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11972 s//\1/ 11973 q 11974 } 11975 /^X\(\/\/\)[^/].*/{ 11976 s//\1/ 11977 q 11978 } 11979 /^X\(\/\/\)$/{ 11980 s//\1/ 11981 q 11982 } 11983 /^X\(\/\).*/{ 11984 s//\1/ 11985 q 11986 } 11987 s/.*/./; q'` 11988 as_dir="$ac_dir"; as_fn_mkdir_p 11989 ac_builddir=. 11990 11991case "$ac_dir" in 11992.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11993*) 11994 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11995 # A ".." for each directory in $ac_dir_suffix. 11996 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11997 case $ac_top_builddir_sub in 11998 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11999 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12000 esac ;; 12001esac 12002ac_abs_top_builddir=$ac_pwd 12003ac_abs_builddir=$ac_pwd$ac_dir_suffix 12004# for backward compatibility: 12005ac_top_builddir=$ac_top_build_prefix 12006 12007case $srcdir in 12008 .) # We are building in place. 12009 ac_srcdir=. 12010 ac_top_srcdir=$ac_top_builddir_sub 12011 ac_abs_top_srcdir=$ac_pwd ;; 12012 [\\/]* | ?:[\\/]* ) # Absolute name. 12013 ac_srcdir=$srcdir$ac_dir_suffix; 12014 ac_top_srcdir=$srcdir 12015 ac_abs_top_srcdir=$srcdir ;; 12016 *) # Relative name. 12017 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12018 ac_top_srcdir=$ac_top_build_prefix$srcdir 12019 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12020esac 12021ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12022 12023 12024 case $ac_mode in 12025 :F) 12026 # 12027 # CONFIG_FILE 12028 # 12029 12030 case $INSTALL in 12031 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12032 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12033 esac 12034 ac_MKDIR_P=$MKDIR_P 12035 case $MKDIR_P in 12036 [\\/$]* | ?:[\\/]* ) ;; 12037 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12038 esac 12039_ACEOF 12040 12041cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12042# If the template does not know about datarootdir, expand it. 12043# FIXME: This hack should be removed a few years after 2.60. 12044ac_datarootdir_hack=; ac_datarootdir_seen= 12045ac_sed_dataroot=' 12046/datarootdir/ { 12047 p 12048 q 12049} 12050/@datadir@/p 12051/@docdir@/p 12052/@infodir@/p 12053/@localedir@/p 12054/@mandir@/p' 12055case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12056*datarootdir*) ac_datarootdir_seen=yes;; 12057*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12059$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12060_ACEOF 12061cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12062 ac_datarootdir_hack=' 12063 s&@datadir@&$datadir&g 12064 s&@docdir@&$docdir&g 12065 s&@infodir@&$infodir&g 12066 s&@localedir@&$localedir&g 12067 s&@mandir@&$mandir&g 12068 s&\\\${datarootdir}&$datarootdir&g' ;; 12069esac 12070_ACEOF 12071 12072# Neutralize VPATH when `$srcdir' = `.'. 12073# Shell code in configure.ac might set extrasub. 12074# FIXME: do we really want to maintain this feature? 12075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12076ac_sed_extra="$ac_vpsub 12077$extrasub 12078_ACEOF 12079cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12080:t 12081/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12082s|@configure_input@|$ac_sed_conf_input|;t t 12083s&@top_builddir@&$ac_top_builddir_sub&;t t 12084s&@top_build_prefix@&$ac_top_build_prefix&;t t 12085s&@srcdir@&$ac_srcdir&;t t 12086s&@abs_srcdir@&$ac_abs_srcdir&;t t 12087s&@top_srcdir@&$ac_top_srcdir&;t t 12088s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12089s&@builddir@&$ac_builddir&;t t 12090s&@abs_builddir@&$ac_abs_builddir&;t t 12091s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12092s&@INSTALL@&$ac_INSTALL&;t t 12093s&@MKDIR_P@&$ac_MKDIR_P&;t t 12094$ac_datarootdir_hack 12095" 12096eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12097 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12098 12099test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12100 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12101 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12102 "$ac_tmp/out"`; test -z "$ac_out"; } && 12103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12104which seems to be undefined. Please make sure it is defined" >&5 12105$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12106which seems to be undefined. Please make sure it is defined" >&2;} 12107 12108 rm -f "$ac_tmp/stdin" 12109 case $ac_file in 12110 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12111 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12112 esac \ 12113 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12114 ;; 12115 :H) 12116 # 12117 # CONFIG_HEADER 12118 # 12119 if test x"$ac_file" != x-; then 12120 { 12121 $as_echo "/* $configure_input */" \ 12122 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12123 } >"$ac_tmp/config.h" \ 12124 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12125 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12126 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12127$as_echo "$as_me: $ac_file is unchanged" >&6;} 12128 else 12129 rm -f "$ac_file" 12130 mv "$ac_tmp/config.h" "$ac_file" \ 12131 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12132 fi 12133 else 12134 $as_echo "/* $configure_input */" \ 12135 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12136 || as_fn_error $? "could not create -" "$LINENO" 5 12137 fi 12138# Compute "$ac_file"'s index in $config_headers. 12139_am_arg="$ac_file" 12140_am_stamp_count=1 12141for _am_header in $config_headers :; do 12142 case $_am_header in 12143 $_am_arg | $_am_arg:* ) 12144 break ;; 12145 * ) 12146 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12147 esac 12148done 12149echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12150$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12151 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12152 X"$_am_arg" : 'X\(//\)$' \| \ 12153 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12154$as_echo X"$_am_arg" | 12155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12156 s//\1/ 12157 q 12158 } 12159 /^X\(\/\/\)[^/].*/{ 12160 s//\1/ 12161 q 12162 } 12163 /^X\(\/\/\)$/{ 12164 s//\1/ 12165 q 12166 } 12167 /^X\(\/\).*/{ 12168 s//\1/ 12169 q 12170 } 12171 s/.*/./; q'`/stamp-h$_am_stamp_count 12172 ;; 12173 12174 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12175$as_echo "$as_me: executing $ac_file commands" >&6;} 12176 ;; 12177 esac 12178 12179 12180 case $ac_file$ac_mode in 12181 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12182 # Older Autoconf quotes --file arguments for eval, but not when files 12183 # are listed without --file. Let's play safe and only enable the eval 12184 # if we detect the quoting. 12185 # TODO: see whether this extra hack can be removed once we start 12186 # requiring Autoconf 2.70 or later. 12187 case $CONFIG_FILES in #( 12188 *\'*) : 12189 eval set x "$CONFIG_FILES" ;; #( 12190 *) : 12191 set x $CONFIG_FILES ;; #( 12192 *) : 12193 ;; 12194esac 12195 shift 12196 # Used to flag and report bootstrapping failures. 12197 am_rc=0 12198 for am_mf 12199 do 12200 # Strip MF so we end up with the name of the file. 12201 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 12202 # Check whether this is an Automake generated Makefile which includes 12203 # dependency-tracking related rules and includes. 12204 # Grep'ing the whole file directly is not great: AIX grep has a line 12205 # limit of 2048, but all sed's we know have understand at least 4000. 12206 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12207 || continue 12208 am_dirpart=`$as_dirname -- "$am_mf" || 12209$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12210 X"$am_mf" : 'X\(//\)[^/]' \| \ 12211 X"$am_mf" : 'X\(//\)$' \| \ 12212 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12213$as_echo X"$am_mf" | 12214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12215 s//\1/ 12216 q 12217 } 12218 /^X\(\/\/\)[^/].*/{ 12219 s//\1/ 12220 q 12221 } 12222 /^X\(\/\/\)$/{ 12223 s//\1/ 12224 q 12225 } 12226 /^X\(\/\).*/{ 12227 s//\1/ 12228 q 12229 } 12230 s/.*/./; q'` 12231 am_filepart=`$as_basename -- "$am_mf" || 12232$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12233 X"$am_mf" : 'X\(//\)$' \| \ 12234 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12235$as_echo X/"$am_mf" | 12236 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12237 s//\1/ 12238 q 12239 } 12240 /^X\/\(\/\/\)$/{ 12241 s//\1/ 12242 q 12243 } 12244 /^X\/\(\/\).*/{ 12245 s//\1/ 12246 q 12247 } 12248 s/.*/./; q'` 12249 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12250 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12251 | $MAKE -f - am--depfiles" >&5 12252 (cd "$am_dirpart" \ 12253 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12254 | $MAKE -f - am--depfiles) >&5 2>&5 12255 ac_status=$? 12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12257 (exit $ac_status); } || am_rc=$? 12258 done 12259 if test $am_rc -ne 0; then 12260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12262as_fn_error $? "Something went wrong bootstrapping makefile fragments 12263 for automatic dependency tracking. If GNU make was not used, consider 12264 re-running the configure script with MAKE=\"gmake\" (or whatever is 12265 necessary). You can also try re-running configure with the 12266 '--disable-dependency-tracking' option to at least be able to build 12267 the package (albeit without support for automatic dependency tracking). 12268See \`config.log' for more details" "$LINENO" 5; } 12269 fi 12270 { am_dirpart=; unset am_dirpart;} 12271 { am_filepart=; unset am_filepart;} 12272 { am_mf=; unset am_mf;} 12273 { am_rc=; unset am_rc;} 12274 rm -f conftest-deps.mk 12275} 12276 ;; 12277 12278 esac 12279done # for ac_tag 12280 12281 12282as_fn_exit 0 12283_ACEOF 12284ac_clean_files=$ac_clean_files_save 12285 12286test $ac_write_fail = 0 || 12287 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12288 12289 12290# configure is writing to config.log, and then calls config.status. 12291# config.status does its own redirection, appending to config.log. 12292# Unfortunately, on DOS this fails, as config.log is still kept open 12293# by configure, so config.status won't be able to write to it; its 12294# output is simply discarded. So we exec the FD to /dev/null, 12295# effectively closing config.log, so it can be properly (re)opened and 12296# appended to by config.status. When coming back to configure, we 12297# need to make the FD available again. 12298if test "$no_create" != yes; then 12299 ac_cs_success=: 12300 ac_config_status_args= 12301 test "$silent" = yes && 12302 ac_config_status_args="$ac_config_status_args --quiet" 12303 exec 5>/dev/null 12304 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12305 exec 5>>config.log 12306 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12307 # would make configure fail if this is the last instruction. 12308 $ac_cs_success || as_fn_exit 1 12309fi 12310if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12312$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12313fi 12314 12315