configure revision fbfaf8f3
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for fonttosfnt 1.2.3. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/fonttosfnt/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186test \$(( 1 + 1 )) = 2 || exit 1" 187 if (eval "$as_required") 2>/dev/null 188then : 189 as_have_required=yes 190else $as_nop 191 as_have_required=no 192fi 193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 194then : 195 196else $as_nop 197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 198as_found=false 199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 200do 201 IFS=$as_save_IFS 202 case $as_dir in #((( 203 '') as_dir=./ ;; 204 */) ;; 205 *) as_dir=$as_dir/ ;; 206 esac 207 as_found=: 208 case $as_dir in #( 209 /*) 210 for as_base in sh bash ksh sh5; do 211 # Try only shells that exist, to save several forks. 212 as_shell=$as_dir$as_base 213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 215then : 216 CONFIG_SHELL=$as_shell as_have_required=yes 217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 218then : 219 break 2 220fi 221fi 222 done;; 223 esac 224 as_found=false 225done 226IFS=$as_save_IFS 227if $as_found 228then : 229 230else $as_nop 231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 233then : 234 CONFIG_SHELL=$SHELL as_have_required=yes 235fi 236fi 237 238 239 if test "x$CONFIG_SHELL" != x 240then : 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'. 258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno 263then : 264 printf "%s\n" "$0: This script requires a shell more modern than all" 265 printf "%s\n" "$0: the shells that I found on your system." 266 if test ${ZSH_VERSION+y} ; then 267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 269 else 270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 271$0: https://gitlab.freedesktop.org/xorg/app/fonttosfnt/issues 272$0: about your system, including any error possibly output 273$0: before this message. Then install a modern shell, or 274$0: manually run the script under such a shell if you do 275$0: have one." 276 fi 277 exit 1 278fi 279fi 280fi 281SHELL=${CONFIG_SHELL-/bin/sh} 282export SHELL 283# Unset more variables known to interfere with behavior of common tools. 284CLICOLOR_FORCE= GREP_OPTIONS= 285unset CLICOLOR_FORCE GREP_OPTIONS 286 287## --------------------- ## 288## M4sh Shell Functions. ## 289## --------------------- ## 290# as_fn_unset VAR 291# --------------- 292# Portably unset VAR. 293as_fn_unset () 294{ 295 { eval $1=; unset $1;} 296} 297as_unset=as_fn_unset 298 299 300# as_fn_set_status STATUS 301# ----------------------- 302# Set $? to STATUS, without forking. 303as_fn_set_status () 304{ 305 return $1 306} # as_fn_set_status 307 308# as_fn_exit STATUS 309# ----------------- 310# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 311as_fn_exit () 312{ 313 set +e 314 as_fn_set_status $1 315 exit $1 316} # as_fn_exit 317# as_fn_nop 318# --------- 319# Do nothing but, unlike ":", preserve the value of $?. 320as_fn_nop () 321{ 322 return $? 323} 324as_nop=as_fn_nop 325 326# as_fn_mkdir_p 327# ------------- 328# Create "$as_dir" as a directory, including parents if necessary. 329as_fn_mkdir_p () 330{ 331 332 case $as_dir in #( 333 -*) as_dir=./$as_dir;; 334 esac 335 test -d "$as_dir" || eval $as_mkdir_p || { 336 as_dirs= 337 while :; do 338 case $as_dir in #( 339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 340 *) as_qdir=$as_dir;; 341 esac 342 as_dirs="'$as_qdir' $as_dirs" 343 as_dir=`$as_dirname -- "$as_dir" || 344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 345 X"$as_dir" : 'X\(//\)[^/]' \| \ 346 X"$as_dir" : 'X\(//\)$' \| \ 347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 348printf "%s\n" X"$as_dir" | 349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)[^/].*/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\).*/{ 362 s//\1/ 363 q 364 } 365 s/.*/./; q'` 366 test -d "$as_dir" && break 367 done 368 test -z "$as_dirs" || eval "mkdir $as_dirs" 369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 370 371 372} # as_fn_mkdir_p 373 374# as_fn_executable_p FILE 375# ----------------------- 376# Test if FILE is an executable regular file. 377as_fn_executable_p () 378{ 379 test -f "$1" && test -x "$1" 380} # as_fn_executable_p 381# as_fn_append VAR VALUE 382# ---------------------- 383# Append the text in VALUE to the end of the definition contained in VAR. Take 384# advantage of any shell optimizations that allow amortized linear growth over 385# repeated appends, instead of the typical quadratic growth present in naive 386# implementations. 387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 388then : 389 eval 'as_fn_append () 390 { 391 eval $1+=\$2 392 }' 393else $as_nop 394 as_fn_append () 395 { 396 eval $1=\$$1\$2 397 } 398fi # as_fn_append 399 400# as_fn_arith ARG... 401# ------------------ 402# Perform arithmetic evaluation on the ARGs, and store the result in the 403# global $as_val. Take advantage of shells that can avoid forks. The arguments 404# must be portable across $(()) and expr. 405if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 406then : 407 eval 'as_fn_arith () 408 { 409 as_val=$(( $* )) 410 }' 411else $as_nop 412 as_fn_arith () 413 { 414 as_val=`expr "$@" || test $? -eq 1` 415 } 416fi # as_fn_arith 417 418# as_fn_nop 419# --------- 420# Do nothing but, unlike ":", preserve the value of $?. 421as_fn_nop () 422{ 423 return $? 424} 425as_nop=as_fn_nop 426 427# as_fn_error STATUS ERROR [LINENO LOG_FD] 428# ---------------------------------------- 429# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 430# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 431# script with STATUS, using 1 if that was 0. 432as_fn_error () 433{ 434 as_status=$1; test $as_status -eq 0 && as_status=1 435 if test "$4"; then 436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 438 fi 439 printf "%s\n" "$as_me: error: $2" >&2 440 as_fn_exit $as_status 441} # as_fn_error 442 443if expr a : '\(a\)' >/dev/null 2>&1 && 444 test "X`expr 00001 : '.*\(...\)'`" = X001; then 445 as_expr=expr 446else 447 as_expr=false 448fi 449 450if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 451 as_basename=basename 452else 453 as_basename=false 454fi 455 456if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 457 as_dirname=dirname 458else 459 as_dirname=false 460fi 461 462as_me=`$as_basename -- "$0" || 463$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 464 X"$0" : 'X\(//\)$' \| \ 465 X"$0" : 'X\(/\)' \| . 2>/dev/null || 466printf "%s\n" X/"$0" | 467 sed '/^.*\/\([^/][^/]*\)\/*$/{ 468 s//\1/ 469 q 470 } 471 /^X\/\(\/\/\)$/{ 472 s//\1/ 473 q 474 } 475 /^X\/\(\/\).*/{ 476 s//\1/ 477 q 478 } 479 s/.*/./; q'` 480 481# Avoid depending upon Character Ranges. 482as_cr_letters='abcdefghijklmnopqrstuvwxyz' 483as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 484as_cr_Letters=$as_cr_letters$as_cr_LETTERS 485as_cr_digits='0123456789' 486as_cr_alnum=$as_cr_Letters$as_cr_digits 487 488 489 as_lineno_1=$LINENO as_lineno_1a=$LINENO 490 as_lineno_2=$LINENO as_lineno_2a=$LINENO 491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 494 sed -n ' 495 p 496 /[$]LINENO/= 497 ' <$as_myself | 498 sed ' 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522} 523 524 525# Determine whether it's possible to make 'echo' print without a newline. 526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527# for compatibility with existing Makefiles. 528ECHO_C= ECHO_N= ECHO_T= 529case `echo -n x` in #((((( 530-n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537*) 538 ECHO_N='-n';; 539esac 540 541# For backward compatibility with old third-party macros, we provide 542# the shell variables $as_echo and $as_echo_n. New code should use 543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544as_echo='printf %s\n' 545as_echo_n='printf %s' 546 547 548rm -f conf$$ conf$$.exe conf$$.file 549if test -d conf$$.dir; then 550 rm -f conf$$.dir/conf$$.file 551else 552 rm -f conf$$.dir 553 mkdir conf$$.dir 2>/dev/null 554fi 555if (echo >conf$$.file) 2>/dev/null; then 556 if ln -s conf$$.file conf$$ 2>/dev/null; then 557 as_ln_s='ln -s' 558 # ... but there are two gotchas: 559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 561 # In both cases, we have to default to `cp -pR'. 562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 563 as_ln_s='cp -pR' 564 elif ln conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s=ln 566 else 567 as_ln_s='cp -pR' 568 fi 569else 570 as_ln_s='cp -pR' 571fi 572rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 573rmdir conf$$.dir 2>/dev/null 574 575if mkdir -p . 2>/dev/null; then 576 as_mkdir_p='mkdir -p "$as_dir"' 577else 578 test -d ./-p && rmdir ./-p 579 as_mkdir_p=false 580fi 581 582as_test_x='test -x' 583as_executable_p=as_fn_executable_p 584 585# Sed expression to map a string onto a valid CPP name. 586as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 587 588# Sed expression to map a string onto a valid variable name. 589as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 590 591 592test -n "$DJDIR" || exec 7<&0 </dev/null 593exec 6>&1 594 595# Name of the host. 596# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 597# so uname gets run too. 598ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 599 600# 601# Initializations. 602# 603ac_default_prefix=/usr/local 604ac_clean_files= 605ac_config_libobj_dir=. 606LIBOBJS= 607cross_compiling=no 608subdirs= 609MFLAGS= 610MAKEFLAGS= 611 612# Identity of this package. 613PACKAGE_NAME='fonttosfnt' 614PACKAGE_TARNAME='fonttosfnt' 615PACKAGE_VERSION='1.2.3' 616PACKAGE_STRING='fonttosfnt 1.2.3' 617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/fonttosfnt/issues' 618PACKAGE_URL='' 619 620ac_unique_file="Makefile.am" 621# Factoring default headers for most tests. 622ac_includes_default="\ 623#include <stddef.h> 624#ifdef HAVE_STDIO_H 625# include <stdio.h> 626#endif 627#ifdef HAVE_STDLIB_H 628# include <stdlib.h> 629#endif 630#ifdef HAVE_STRING_H 631# include <string.h> 632#endif 633#ifdef HAVE_INTTYPES_H 634# include <inttypes.h> 635#endif 636#ifdef HAVE_STDINT_H 637# include <stdint.h> 638#endif 639#ifdef HAVE_STRINGS_H 640# include <strings.h> 641#endif 642#ifdef HAVE_SYS_TYPES_H 643# include <sys/types.h> 644#endif 645#ifdef HAVE_SYS_STAT_H 646# include <sys/stat.h> 647#endif 648#ifdef HAVE_UNISTD_H 649# include <unistd.h> 650#endif" 651 652ac_header_c_list= 653ac_subst_vars='am__EXEEXT_FALSE 654am__EXEEXT_TRUE 655LTLIBOBJS 656LIBOBJS 657FONTTOSFNT_LIBS 658FONTTOSFNT_CFLAGS 659NEED_SETENV_FALSE 660NEED_SETENV_TRUE 661MAN_SUBSTS 662XORG_MAN_PAGE 663ADMIN_MAN_DIR 664DRIVER_MAN_DIR 665MISC_MAN_DIR 666FILE_MAN_DIR 667LIB_MAN_DIR 668APP_MAN_DIR 669ADMIN_MAN_SUFFIX 670DRIVER_MAN_SUFFIX 671MISC_MAN_SUFFIX 672FILE_MAN_SUFFIX 673LIB_MAN_SUFFIX 674APP_MAN_SUFFIX 675SED 676host_os 677host_vendor 678host_cpu 679host 680build_os 681build_vendor 682build_cpu 683build 684INSTALL_CMD 685PKG_CONFIG_LIBDIR 686PKG_CONFIG_PATH 687PKG_CONFIG 688CHANGELOG_CMD 689STRICT_CFLAGS 690CWARNFLAGS 691BASE_CFLAGS 692am__fastdepCC_FALSE 693am__fastdepCC_TRUE 694CCDEPMODE 695am__nodep 696AMDEPBACKSLASH 697AMDEP_FALSE 698AMDEP_TRUE 699am__include 700DEPDIR 701OBJEXT 702EXEEXT 703ac_ct_CC 704CPPFLAGS 705LDFLAGS 706CFLAGS 707CC 708AM_BACKSLASH 709AM_DEFAULT_VERBOSITY 710AM_DEFAULT_V 711AM_V 712CSCOPE 713ETAGS 714CTAGS 715am__untar 716am__tar 717AMTAR 718am__leading_dot 719SET_MAKE 720AWK 721mkdir_p 722MKDIR_P 723INSTALL_STRIP_PROGRAM 724STRIP 725install_sh 726MAKEINFO 727AUTOHEADER 728AUTOMAKE 729AUTOCONF 730ACLOCAL 731VERSION 732PACKAGE 733CYGPATH_W 734am__isrc 735INSTALL_DATA 736INSTALL_SCRIPT 737INSTALL_PROGRAM 738target_alias 739host_alias 740build_alias 741LIBS 742ECHO_T 743ECHO_N 744ECHO_C 745DEFS 746mandir 747localedir 748libdir 749psdir 750pdfdir 751dvidir 752htmldir 753infodir 754docdir 755oldincludedir 756includedir 757runstatedir 758localstatedir 759sharedstatedir 760sysconfdir 761datadir 762datarootdir 763libexecdir 764sbindir 765bindir 766program_transform_name 767prefix 768exec_prefix 769PACKAGE_URL 770PACKAGE_BUGREPORT 771PACKAGE_STRING 772PACKAGE_VERSION 773PACKAGE_TARNAME 774PACKAGE_NAME 775PATH_SEPARATOR 776SHELL 777am__quote' 778ac_subst_files='' 779ac_user_opts=' 780enable_option_checking 781enable_silent_rules 782enable_dependency_tracking 783enable_selective_werror 784enable_strict_compilation 785' 786 ac_precious_vars='build_alias 787host_alias 788target_alias 789CC 790CFLAGS 791LDFLAGS 792LIBS 793CPPFLAGS 794PKG_CONFIG 795PKG_CONFIG_PATH 796PKG_CONFIG_LIBDIR 797FONTTOSFNT_CFLAGS 798FONTTOSFNT_LIBS' 799 800 801# Initialize some variables set by options. 802ac_init_help= 803ac_init_version=false 804ac_unrecognized_opts= 805ac_unrecognized_sep= 806# The variables have the same names as the options, with 807# dashes changed to underlines. 808cache_file=/dev/null 809exec_prefix=NONE 810no_create= 811no_recursion= 812prefix=NONE 813program_prefix=NONE 814program_suffix=NONE 815program_transform_name=s,x,x, 816silent= 817site= 818srcdir= 819verbose= 820x_includes=NONE 821x_libraries=NONE 822 823# Installation directory options. 824# These are left unexpanded so users can "make install exec_prefix=/foo" 825# and all the variables that are supposed to be based on exec_prefix 826# by default will actually change. 827# Use braces instead of parens because sh, perl, etc. also accept them. 828# (The list follows the same order as the GNU Coding Standards.) 829bindir='${exec_prefix}/bin' 830sbindir='${exec_prefix}/sbin' 831libexecdir='${exec_prefix}/libexec' 832datarootdir='${prefix}/share' 833datadir='${datarootdir}' 834sysconfdir='${prefix}/etc' 835sharedstatedir='${prefix}/com' 836localstatedir='${prefix}/var' 837runstatedir='${localstatedir}/run' 838includedir='${prefix}/include' 839oldincludedir='/usr/include' 840docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 841infodir='${datarootdir}/info' 842htmldir='${docdir}' 843dvidir='${docdir}' 844pdfdir='${docdir}' 845psdir='${docdir}' 846libdir='${exec_prefix}/lib' 847localedir='${datarootdir}/locale' 848mandir='${datarootdir}/man' 849 850ac_prev= 851ac_dashdash= 852for ac_option 853do 854 # If the previous option needs an argument, assign it. 855 if test -n "$ac_prev"; then 856 eval $ac_prev=\$ac_option 857 ac_prev= 858 continue 859 fi 860 861 case $ac_option in 862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 863 *=) ac_optarg= ;; 864 *) ac_optarg=yes ;; 865 esac 866 867 case $ac_dashdash$ac_option in 868 --) 869 ac_dashdash=yes ;; 870 871 -bindir | --bindir | --bindi | --bind | --bin | --bi) 872 ac_prev=bindir ;; 873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 874 bindir=$ac_optarg ;; 875 876 -build | --build | --buil | --bui | --bu) 877 ac_prev=build_alias ;; 878 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 879 build_alias=$ac_optarg ;; 880 881 -cache-file | --cache-file | --cache-fil | --cache-fi \ 882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 883 ac_prev=cache_file ;; 884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 886 cache_file=$ac_optarg ;; 887 888 --config-cache | -C) 889 cache_file=config.cache ;; 890 891 -datadir | --datadir | --datadi | --datad) 892 ac_prev=datadir ;; 893 -datadir=* | --datadir=* | --datadi=* | --datad=*) 894 datadir=$ac_optarg ;; 895 896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 897 | --dataroo | --dataro | --datar) 898 ac_prev=datarootdir ;; 899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 901 datarootdir=$ac_optarg ;; 902 903 -disable-* | --disable-*) 904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 905 # Reject names that are not valid shell variable names. 906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 907 as_fn_error $? "invalid feature name: \`$ac_useropt'" 908 ac_useropt_orig=$ac_useropt 909 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 910 case $ac_user_opts in 911 *" 912"enable_$ac_useropt" 913"*) ;; 914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 915 ac_unrecognized_sep=', ';; 916 esac 917 eval enable_$ac_useropt=no ;; 918 919 -docdir | --docdir | --docdi | --doc | --do) 920 ac_prev=docdir ;; 921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 922 docdir=$ac_optarg ;; 923 924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 925 ac_prev=dvidir ;; 926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 927 dvidir=$ac_optarg ;; 928 929 -enable-* | --enable-*) 930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 931 # Reject names that are not valid shell variable names. 932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 933 as_fn_error $? "invalid feature name: \`$ac_useropt'" 934 ac_useropt_orig=$ac_useropt 935 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 936 case $ac_user_opts in 937 *" 938"enable_$ac_useropt" 939"*) ;; 940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 941 ac_unrecognized_sep=', ';; 942 esac 943 eval enable_$ac_useropt=\$ac_optarg ;; 944 945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 947 | --exec | --exe | --ex) 948 ac_prev=exec_prefix ;; 949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 951 | --exec=* | --exe=* | --ex=*) 952 exec_prefix=$ac_optarg ;; 953 954 -gas | --gas | --ga | --g) 955 # Obsolete; use --with-gas. 956 with_gas=yes ;; 957 958 -help | --help | --hel | --he | -h) 959 ac_init_help=long ;; 960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 961 ac_init_help=recursive ;; 962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 963 ac_init_help=short ;; 964 965 -host | --host | --hos | --ho) 966 ac_prev=host_alias ;; 967 -host=* | --host=* | --hos=* | --ho=*) 968 host_alias=$ac_optarg ;; 969 970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 971 ac_prev=htmldir ;; 972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 973 | --ht=*) 974 htmldir=$ac_optarg ;; 975 976 -includedir | --includedir | --includedi | --included | --include \ 977 | --includ | --inclu | --incl | --inc) 978 ac_prev=includedir ;; 979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 980 | --includ=* | --inclu=* | --incl=* | --inc=*) 981 includedir=$ac_optarg ;; 982 983 -infodir | --infodir | --infodi | --infod | --info | --inf) 984 ac_prev=infodir ;; 985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 986 infodir=$ac_optarg ;; 987 988 -libdir | --libdir | --libdi | --libd) 989 ac_prev=libdir ;; 990 -libdir=* | --libdir=* | --libdi=* | --libd=*) 991 libdir=$ac_optarg ;; 992 993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 994 | --libexe | --libex | --libe) 995 ac_prev=libexecdir ;; 996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 997 | --libexe=* | --libex=* | --libe=*) 998 libexecdir=$ac_optarg ;; 999 1000 -localedir | --localedir | --localedi | --localed | --locale) 1001 ac_prev=localedir ;; 1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1003 localedir=$ac_optarg ;; 1004 1005 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1006 | --localstate | --localstat | --localsta | --localst | --locals) 1007 ac_prev=localstatedir ;; 1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1010 localstatedir=$ac_optarg ;; 1011 1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1013 ac_prev=mandir ;; 1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1015 mandir=$ac_optarg ;; 1016 1017 -nfp | --nfp | --nf) 1018 # Obsolete; use --without-fp. 1019 with_fp=no ;; 1020 1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1022 | --no-cr | --no-c | -n) 1023 no_create=yes ;; 1024 1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1027 no_recursion=yes ;; 1028 1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1031 | --oldin | --oldi | --old | --ol | --o) 1032 ac_prev=oldincludedir ;; 1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1036 oldincludedir=$ac_optarg ;; 1037 1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1039 ac_prev=prefix ;; 1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1041 prefix=$ac_optarg ;; 1042 1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1044 | --program-pre | --program-pr | --program-p) 1045 ac_prev=program_prefix ;; 1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1048 program_prefix=$ac_optarg ;; 1049 1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1051 | --program-suf | --program-su | --program-s) 1052 ac_prev=program_suffix ;; 1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1055 program_suffix=$ac_optarg ;; 1056 1057 -program-transform-name | --program-transform-name \ 1058 | --program-transform-nam | --program-transform-na \ 1059 | --program-transform-n | --program-transform- \ 1060 | --program-transform | --program-transfor \ 1061 | --program-transfo | --program-transf \ 1062 | --program-trans | --program-tran \ 1063 | --progr-tra | --program-tr | --program-t) 1064 ac_prev=program_transform_name ;; 1065 -program-transform-name=* | --program-transform-name=* \ 1066 | --program-transform-nam=* | --program-transform-na=* \ 1067 | --program-transform-n=* | --program-transform-=* \ 1068 | --program-transform=* | --program-transfor=* \ 1069 | --program-transfo=* | --program-transf=* \ 1070 | --program-trans=* | --program-tran=* \ 1071 | --progr-tra=* | --program-tr=* | --program-t=*) 1072 program_transform_name=$ac_optarg ;; 1073 1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1075 ac_prev=pdfdir ;; 1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1077 pdfdir=$ac_optarg ;; 1078 1079 -psdir | --psdir | --psdi | --psd | --ps) 1080 ac_prev=psdir ;; 1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1082 psdir=$ac_optarg ;; 1083 1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1085 | -silent | --silent | --silen | --sile | --sil) 1086 silent=yes ;; 1087 1088 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1089 | --runstate | --runstat | --runsta | --runst | --runs \ 1090 | --run | --ru | --r) 1091 ac_prev=runstatedir ;; 1092 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1093 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1094 | --run=* | --ru=* | --r=*) 1095 runstatedir=$ac_optarg ;; 1096 1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1098 ac_prev=sbindir ;; 1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1100 | --sbi=* | --sb=*) 1101 sbindir=$ac_optarg ;; 1102 1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1105 | --sharedst | --shareds | --shared | --share | --shar \ 1106 | --sha | --sh) 1107 ac_prev=sharedstatedir ;; 1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1111 | --sha=* | --sh=*) 1112 sharedstatedir=$ac_optarg ;; 1113 1114 -site | --site | --sit) 1115 ac_prev=site ;; 1116 -site=* | --site=* | --sit=*) 1117 site=$ac_optarg ;; 1118 1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1120 ac_prev=srcdir ;; 1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1122 srcdir=$ac_optarg ;; 1123 1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1125 | --syscon | --sysco | --sysc | --sys | --sy) 1126 ac_prev=sysconfdir ;; 1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1129 sysconfdir=$ac_optarg ;; 1130 1131 -target | --target | --targe | --targ | --tar | --ta | --t) 1132 ac_prev=target_alias ;; 1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1134 target_alias=$ac_optarg ;; 1135 1136 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1137 verbose=yes ;; 1138 1139 -version | --version | --versio | --versi | --vers | -V) 1140 ac_init_version=: ;; 1141 1142 -with-* | --with-*) 1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1144 # Reject names that are not valid shell variable names. 1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1146 as_fn_error $? "invalid package name: \`$ac_useropt'" 1147 ac_useropt_orig=$ac_useropt 1148 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1149 case $ac_user_opts in 1150 *" 1151"with_$ac_useropt" 1152"*) ;; 1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1154 ac_unrecognized_sep=', ';; 1155 esac 1156 eval with_$ac_useropt=\$ac_optarg ;; 1157 1158 -without-* | --without-*) 1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1160 # Reject names that are not valid shell variable names. 1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1162 as_fn_error $? "invalid package name: \`$ac_useropt'" 1163 ac_useropt_orig=$ac_useropt 1164 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1165 case $ac_user_opts in 1166 *" 1167"with_$ac_useropt" 1168"*) ;; 1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1170 ac_unrecognized_sep=', ';; 1171 esac 1172 eval with_$ac_useropt=no ;; 1173 1174 --x) 1175 # Obsolete; use --with-x. 1176 with_x=yes ;; 1177 1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1179 | --x-incl | --x-inc | --x-in | --x-i) 1180 ac_prev=x_includes ;; 1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1183 x_includes=$ac_optarg ;; 1184 1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1187 ac_prev=x_libraries ;; 1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1190 x_libraries=$ac_optarg ;; 1191 1192 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1193Try \`$0 --help' for more information" 1194 ;; 1195 1196 *=*) 1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1198 # Reject names that are not valid shell variable names. 1199 case $ac_envvar in #( 1200 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1201 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1202 esac 1203 eval $ac_envvar=\$ac_optarg 1204 export $ac_envvar ;; 1205 1206 *) 1207 # FIXME: should be removed in autoconf 3.0. 1208 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1210 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1212 ;; 1213 1214 esac 1215done 1216 1217if test -n "$ac_prev"; then 1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1219 as_fn_error $? "missing argument to $ac_option" 1220fi 1221 1222if test -n "$ac_unrecognized_opts"; then 1223 case $enable_option_checking in 1224 no) ;; 1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1226 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1227 esac 1228fi 1229 1230# Check all directory arguments for consistency. 1231for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1232 datadir sysconfdir sharedstatedir localstatedir includedir \ 1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1234 libdir localedir mandir runstatedir 1235do 1236 eval ac_val=\$$ac_var 1237 # Remove trailing slashes. 1238 case $ac_val in 1239 */ ) 1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1241 eval $ac_var=\$ac_val;; 1242 esac 1243 # Be sure to have absolute directory names. 1244 case $ac_val in 1245 [\\/$]* | ?:[\\/]* ) continue;; 1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1247 esac 1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1249done 1250 1251# There might be people who depend on the old broken behavior: `$host' 1252# used to hold the argument of --host etc. 1253# FIXME: To remove some day. 1254build=$build_alias 1255host=$host_alias 1256target=$target_alias 1257 1258# FIXME: To remove some day. 1259if test "x$host_alias" != x; then 1260 if test "x$build_alias" = x; then 1261 cross_compiling=maybe 1262 elif test "x$build_alias" != "x$host_alias"; then 1263 cross_compiling=yes 1264 fi 1265fi 1266 1267ac_tool_prefix= 1268test -n "$host_alias" && ac_tool_prefix=$host_alias- 1269 1270test "$silent" = yes && exec 6>/dev/null 1271 1272 1273ac_pwd=`pwd` && test -n "$ac_pwd" && 1274ac_ls_di=`ls -di .` && 1275ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1276 as_fn_error $? "working directory cannot be determined" 1277test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1278 as_fn_error $? "pwd does not report name of working directory" 1279 1280 1281# Find the source files, if location was not specified. 1282if test -z "$srcdir"; then 1283 ac_srcdir_defaulted=yes 1284 # Try the directory containing this script, then the parent directory. 1285 ac_confdir=`$as_dirname -- "$as_myself" || 1286$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1287 X"$as_myself" : 'X\(//\)[^/]' \| \ 1288 X"$as_myself" : 'X\(//\)$' \| \ 1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1290printf "%s\n" X"$as_myself" | 1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1292 s//\1/ 1293 q 1294 } 1295 /^X\(\/\/\)[^/].*/{ 1296 s//\1/ 1297 q 1298 } 1299 /^X\(\/\/\)$/{ 1300 s//\1/ 1301 q 1302 } 1303 /^X\(\/\).*/{ 1304 s//\1/ 1305 q 1306 } 1307 s/.*/./; q'` 1308 srcdir=$ac_confdir 1309 if test ! -r "$srcdir/$ac_unique_file"; then 1310 srcdir=.. 1311 fi 1312else 1313 ac_srcdir_defaulted=no 1314fi 1315if test ! -r "$srcdir/$ac_unique_file"; then 1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1318fi 1319ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1320ac_abs_confdir=`( 1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1322 pwd)` 1323# When building in place, set srcdir=. 1324if test "$ac_abs_confdir" = "$ac_pwd"; then 1325 srcdir=. 1326fi 1327# Remove unnecessary trailing slashes from srcdir. 1328# Double slashes in file names in object file debugging info 1329# mess up M-x gdb in Emacs. 1330case $srcdir in 1331*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1332esac 1333for ac_var in $ac_precious_vars; do 1334 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1335 eval ac_env_${ac_var}_value=\$${ac_var} 1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1337 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1338done 1339 1340# 1341# Report the --help message. 1342# 1343if test "$ac_init_help" = "long"; then 1344 # Omit some internal or obsolete options to make the list less imposing. 1345 # This message is too long to be a string in the A/UX 3.1 sh. 1346 cat <<_ACEOF 1347\`configure' configures fonttosfnt 1.2.3 to adapt to many kinds of systems. 1348 1349Usage: $0 [OPTION]... [VAR=VALUE]... 1350 1351To assign environment variables (e.g., CC, CFLAGS...), specify them as 1352VAR=VALUE. See below for descriptions of some of the useful variables. 1353 1354Defaults for the options are specified in brackets. 1355 1356Configuration: 1357 -h, --help display this help and exit 1358 --help=short display options specific to this package 1359 --help=recursive display the short help of all the included packages 1360 -V, --version display version information and exit 1361 -q, --quiet, --silent do not print \`checking ...' messages 1362 --cache-file=FILE cache test results in FILE [disabled] 1363 -C, --config-cache alias for \`--cache-file=config.cache' 1364 -n, --no-create do not create output files 1365 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1366 1367Installation directories: 1368 --prefix=PREFIX install architecture-independent files in PREFIX 1369 [$ac_default_prefix] 1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1371 [PREFIX] 1372 1373By default, \`make install' will install all the files in 1374\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1375an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1376for instance \`--prefix=\$HOME'. 1377 1378For better control, use the options below. 1379 1380Fine tuning of the installation directories: 1381 --bindir=DIR user executables [EPREFIX/bin] 1382 --sbindir=DIR system admin executables [EPREFIX/sbin] 1383 --libexecdir=DIR program executables [EPREFIX/libexec] 1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1387 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1388 --libdir=DIR object code libraries [EPREFIX/lib] 1389 --includedir=DIR C header files [PREFIX/include] 1390 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1393 --infodir=DIR info documentation [DATAROOTDIR/info] 1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1395 --mandir=DIR man documentation [DATAROOTDIR/man] 1396 --docdir=DIR documentation root [DATAROOTDIR/doc/fonttosfnt] 1397 --htmldir=DIR html documentation [DOCDIR] 1398 --dvidir=DIR dvi documentation [DOCDIR] 1399 --pdfdir=DIR pdf documentation [DOCDIR] 1400 --psdir=DIR ps documentation [DOCDIR] 1401_ACEOF 1402 1403 cat <<\_ACEOF 1404 1405Program names: 1406 --program-prefix=PREFIX prepend PREFIX to installed program names 1407 --program-suffix=SUFFIX append SUFFIX to installed program names 1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1409 1410System types: 1411 --build=BUILD configure for building on BUILD [guessed] 1412 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1413_ACEOF 1414fi 1415 1416if test -n "$ac_init_help"; then 1417 case $ac_init_help in 1418 short | recursive ) echo "Configuration of fonttosfnt 1.2.3:";; 1419 esac 1420 cat <<\_ACEOF 1421 1422Optional Features: 1423 --disable-option-checking ignore unrecognized --enable/--with options 1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1426 --enable-silent-rules less verbose build output (undo: "make V=1") 1427 --disable-silent-rules verbose build output (undo: "make V=0") 1428 --enable-dependency-tracking 1429 do not reject slow dependency extractors 1430 --disable-dependency-tracking 1431 speeds up one-time build 1432 --disable-selective-werror 1433 Turn off selective compiler errors. (default: 1434 enabled) 1435 --enable-strict-compilation 1436 Enable all warnings from compiler and make them 1437 errors (default: disabled) 1438 1439Some influential environment variables: 1440 CC C compiler command 1441 CFLAGS C compiler flags 1442 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1443 nonstandard directory <lib dir> 1444 LIBS libraries to pass to the linker, e.g. -l<library> 1445 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1446 you have headers in a nonstandard directory <include dir> 1447 PKG_CONFIG path to pkg-config utility 1448 PKG_CONFIG_PATH 1449 directories to add to pkg-config's search path 1450 PKG_CONFIG_LIBDIR 1451 path overriding pkg-config's built-in search path 1452 FONTTOSFNT_CFLAGS 1453 C compiler flags for FONTTOSFNT, overriding pkg-config 1454 FONTTOSFNT_LIBS 1455 linker flags for FONTTOSFNT, overriding pkg-config 1456 1457Use these variables to override the choices made by `configure' or to help 1458it to find libraries and programs with nonstandard names/locations. 1459 1460Report bugs to <https://gitlab.freedesktop.org/xorg/app/fonttosfnt/issues>. 1461_ACEOF 1462ac_status=$? 1463fi 1464 1465if test "$ac_init_help" = "recursive"; then 1466 # If there are subdirs, report their specific --help. 1467 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1468 test -d "$ac_dir" || 1469 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1470 continue 1471 ac_builddir=. 1472 1473case "$ac_dir" in 1474.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1475*) 1476 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1477 # A ".." for each directory in $ac_dir_suffix. 1478 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1479 case $ac_top_builddir_sub in 1480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1482 esac ;; 1483esac 1484ac_abs_top_builddir=$ac_pwd 1485ac_abs_builddir=$ac_pwd$ac_dir_suffix 1486# for backward compatibility: 1487ac_top_builddir=$ac_top_build_prefix 1488 1489case $srcdir in 1490 .) # We are building in place. 1491 ac_srcdir=. 1492 ac_top_srcdir=$ac_top_builddir_sub 1493 ac_abs_top_srcdir=$ac_pwd ;; 1494 [\\/]* | ?:[\\/]* ) # Absolute name. 1495 ac_srcdir=$srcdir$ac_dir_suffix; 1496 ac_top_srcdir=$srcdir 1497 ac_abs_top_srcdir=$srcdir ;; 1498 *) # Relative name. 1499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1500 ac_top_srcdir=$ac_top_build_prefix$srcdir 1501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1502esac 1503ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1504 1505 cd "$ac_dir" || { ac_status=$?; continue; } 1506 # Check for configure.gnu first; this name is used for a wrapper for 1507 # Metaconfig's "Configure" on case-insensitive file systems. 1508 if test -f "$ac_srcdir/configure.gnu"; then 1509 echo && 1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1511 elif test -f "$ac_srcdir/configure"; then 1512 echo && 1513 $SHELL "$ac_srcdir/configure" --help=recursive 1514 else 1515 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1516 fi || ac_status=$? 1517 cd "$ac_pwd" || { ac_status=$?; break; } 1518 done 1519fi 1520 1521test -n "$ac_init_help" && exit $ac_status 1522if $ac_init_version; then 1523 cat <<\_ACEOF 1524fonttosfnt configure 1.2.3 1525generated by GNU Autoconf 2.71 1526 1527Copyright (C) 2021 Free Software Foundation, Inc. 1528This configure script is free software; the Free Software Foundation 1529gives unlimited permission to copy, distribute and modify it. 1530_ACEOF 1531 exit 1532fi 1533 1534## ------------------------ ## 1535## Autoconf initialization. ## 1536## ------------------------ ## 1537 1538# ac_fn_c_try_compile LINENO 1539# -------------------------- 1540# Try to compile conftest.$ac_ext, and return whether this succeeded. 1541ac_fn_c_try_compile () 1542{ 1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1544 rm -f conftest.$ac_objext conftest.beam 1545 if { { ac_try="$ac_compile" 1546case "(($ac_try" in 1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1548 *) ac_try_echo=$ac_try;; 1549esac 1550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1551printf "%s\n" "$ac_try_echo"; } >&5 1552 (eval "$ac_compile") 2>conftest.err 1553 ac_status=$? 1554 if test -s conftest.err; then 1555 grep -v '^ *+' conftest.err >conftest.er1 1556 cat conftest.er1 >&5 1557 mv -f conftest.er1 conftest.err 1558 fi 1559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1560 test $ac_status = 0; } && { 1561 test -z "$ac_c_werror_flag" || 1562 test ! -s conftest.err 1563 } && test -s conftest.$ac_objext 1564then : 1565 ac_retval=0 1566else $as_nop 1567 printf "%s\n" "$as_me: failed program was:" >&5 1568sed 's/^/| /' conftest.$ac_ext >&5 1569 1570 ac_retval=1 1571fi 1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1573 as_fn_set_status $ac_retval 1574 1575} # ac_fn_c_try_compile 1576 1577# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1578# ------------------------------------------------------------------ 1579# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1580# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1581ac_fn_check_decl () 1582{ 1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1584 as_decl_name=`echo $2|sed 's/ *(.*//'` 1585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1586printf %s "checking whether $as_decl_name is declared... " >&6; } 1587if eval test \${$3+y} 1588then : 1589 printf %s "(cached) " >&6 1590else $as_nop 1591 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1592 eval ac_save_FLAGS=\$$6 1593 as_fn_append $6 " $5" 1594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1595/* end confdefs.h. */ 1596$4 1597int 1598main (void) 1599{ 1600#ifndef $as_decl_name 1601#ifdef __cplusplus 1602 (void) $as_decl_use; 1603#else 1604 (void) $as_decl_name; 1605#endif 1606#endif 1607 1608 ; 1609 return 0; 1610} 1611_ACEOF 1612if ac_fn_c_try_compile "$LINENO" 1613then : 1614 eval "$3=yes" 1615else $as_nop 1616 eval "$3=no" 1617fi 1618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1619 eval $6=\$ac_save_FLAGS 1620 1621fi 1622eval ac_res=\$$3 1623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1624printf "%s\n" "$ac_res" >&6; } 1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1626 1627} # ac_fn_check_decl 1628 1629# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1630# ------------------------------------------------------- 1631# Tests whether HEADER exists and can be compiled using the include files in 1632# INCLUDES, setting the cache variable VAR accordingly. 1633ac_fn_c_check_header_compile () 1634{ 1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1637printf %s "checking for $2... " >&6; } 1638if eval test \${$3+y} 1639then : 1640 printf %s "(cached) " >&6 1641else $as_nop 1642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1643/* end confdefs.h. */ 1644$4 1645#include <$2> 1646_ACEOF 1647if ac_fn_c_try_compile "$LINENO" 1648then : 1649 eval "$3=yes" 1650else $as_nop 1651 eval "$3=no" 1652fi 1653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1654fi 1655eval ac_res=\$$3 1656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1657printf "%s\n" "$ac_res" >&6; } 1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1659 1660} # ac_fn_c_check_header_compile 1661 1662# ac_fn_c_try_link LINENO 1663# ----------------------- 1664# Try to link conftest.$ac_ext, and return whether this succeeded. 1665ac_fn_c_try_link () 1666{ 1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1668 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1669 if { { ac_try="$ac_link" 1670case "(($ac_try" in 1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1672 *) ac_try_echo=$ac_try;; 1673esac 1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1675printf "%s\n" "$ac_try_echo"; } >&5 1676 (eval "$ac_link") 2>conftest.err 1677 ac_status=$? 1678 if test -s conftest.err; then 1679 grep -v '^ *+' conftest.err >conftest.er1 1680 cat conftest.er1 >&5 1681 mv -f conftest.er1 conftest.err 1682 fi 1683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1684 test $ac_status = 0; } && { 1685 test -z "$ac_c_werror_flag" || 1686 test ! -s conftest.err 1687 } && test -s conftest$ac_exeext && { 1688 test "$cross_compiling" = yes || 1689 test -x conftest$ac_exeext 1690 } 1691then : 1692 ac_retval=0 1693else $as_nop 1694 printf "%s\n" "$as_me: failed program was:" >&5 1695sed 's/^/| /' conftest.$ac_ext >&5 1696 1697 ac_retval=1 1698fi 1699 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1700 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1701 # interfere with the next link command; also delete a directory that is 1702 # left behind by Apple's compiler. We do this before executing the actions. 1703 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1705 as_fn_set_status $ac_retval 1706 1707} # ac_fn_c_try_link 1708 1709# ac_fn_c_check_func LINENO FUNC VAR 1710# ---------------------------------- 1711# Tests whether FUNC exists, setting the cache variable VAR accordingly 1712ac_fn_c_check_func () 1713{ 1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1716printf %s "checking for $2... " >&6; } 1717if eval test \${$3+y} 1718then : 1719 printf %s "(cached) " >&6 1720else $as_nop 1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1722/* end confdefs.h. */ 1723/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1724 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1725#define $2 innocuous_$2 1726 1727/* System header to define __stub macros and hopefully few prototypes, 1728 which can conflict with char $2 (); below. */ 1729 1730#include <limits.h> 1731#undef $2 1732 1733/* Override any GCC internal prototype to avoid an error. 1734 Use char because int might match the return type of a GCC 1735 builtin and then its argument prototype would still apply. */ 1736#ifdef __cplusplus 1737extern "C" 1738#endif 1739char $2 (); 1740/* The GNU C library defines this for functions which it implements 1741 to always fail with ENOSYS. Some functions are actually named 1742 something starting with __ and the normal name is an alias. */ 1743#if defined __stub_$2 || defined __stub___$2 1744choke me 1745#endif 1746 1747int 1748main (void) 1749{ 1750return $2 (); 1751 ; 1752 return 0; 1753} 1754_ACEOF 1755if ac_fn_c_try_link "$LINENO" 1756then : 1757 eval "$3=yes" 1758else $as_nop 1759 eval "$3=no" 1760fi 1761rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1762 conftest$ac_exeext conftest.$ac_ext 1763fi 1764eval ac_res=\$$3 1765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1766printf "%s\n" "$ac_res" >&6; } 1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1768 1769} # ac_fn_c_check_func 1770ac_configure_args_raw= 1771for ac_arg 1772do 1773 case $ac_arg in 1774 *\'*) 1775 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1776 esac 1777 as_fn_append ac_configure_args_raw " '$ac_arg'" 1778done 1779 1780case $ac_configure_args_raw in 1781 *$as_nl*) 1782 ac_safe_unquote= ;; 1783 *) 1784 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1785 ac_unsafe_a="$ac_unsafe_z#~" 1786 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1787 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1788esac 1789 1790cat >config.log <<_ACEOF 1791This file contains any messages produced by compilers while 1792running configure, to aid debugging if configure makes a mistake. 1793 1794It was created by fonttosfnt $as_me 1.2.3, which was 1795generated by GNU Autoconf 2.71. Invocation command line was 1796 1797 $ $0$ac_configure_args_raw 1798 1799_ACEOF 1800exec 5>>config.log 1801{ 1802cat <<_ASUNAME 1803## --------- ## 1804## Platform. ## 1805## --------- ## 1806 1807hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1808uname -m = `(uname -m) 2>/dev/null || echo unknown` 1809uname -r = `(uname -r) 2>/dev/null || echo unknown` 1810uname -s = `(uname -s) 2>/dev/null || echo unknown` 1811uname -v = `(uname -v) 2>/dev/null || echo unknown` 1812 1813/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1814/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1815 1816/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1817/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1818/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1819/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1820/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1821/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1822/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1823 1824_ASUNAME 1825 1826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1827for as_dir in $PATH 1828do 1829 IFS=$as_save_IFS 1830 case $as_dir in #((( 1831 '') as_dir=./ ;; 1832 */) ;; 1833 *) as_dir=$as_dir/ ;; 1834 esac 1835 printf "%s\n" "PATH: $as_dir" 1836 done 1837IFS=$as_save_IFS 1838 1839} >&5 1840 1841cat >&5 <<_ACEOF 1842 1843 1844## ----------- ## 1845## Core tests. ## 1846## ----------- ## 1847 1848_ACEOF 1849 1850 1851# Keep a trace of the command line. 1852# Strip out --no-create and --no-recursion so they do not pile up. 1853# Strip out --silent because we don't want to record it for future runs. 1854# Also quote any args containing shell meta-characters. 1855# Make two passes to allow for proper duplicate-argument suppression. 1856ac_configure_args= 1857ac_configure_args0= 1858ac_configure_args1= 1859ac_must_keep_next=false 1860for ac_pass in 1 2 1861do 1862 for ac_arg 1863 do 1864 case $ac_arg in 1865 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1867 | -silent | --silent | --silen | --sile | --sil) 1868 continue ;; 1869 *\'*) 1870 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1871 esac 1872 case $ac_pass in 1873 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1874 2) 1875 as_fn_append ac_configure_args1 " '$ac_arg'" 1876 if test $ac_must_keep_next = true; then 1877 ac_must_keep_next=false # Got value, back to normal. 1878 else 1879 case $ac_arg in 1880 *=* | --config-cache | -C | -disable-* | --disable-* \ 1881 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1882 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1883 | -with-* | --with-* | -without-* | --without-* | --x) 1884 case "$ac_configure_args0 " in 1885 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1886 esac 1887 ;; 1888 -* ) ac_must_keep_next=true ;; 1889 esac 1890 fi 1891 as_fn_append ac_configure_args " '$ac_arg'" 1892 ;; 1893 esac 1894 done 1895done 1896{ ac_configure_args0=; unset ac_configure_args0;} 1897{ ac_configure_args1=; unset ac_configure_args1;} 1898 1899# When interrupted or exit'd, cleanup temporary files, and complete 1900# config.log. We remove comments because anyway the quotes in there 1901# would cause problems or look ugly. 1902# WARNING: Use '\'' to represent an apostrophe within the trap. 1903# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1904trap 'exit_status=$? 1905 # Sanitize IFS. 1906 IFS=" "" $as_nl" 1907 # Save into config.log some information that might help in debugging. 1908 { 1909 echo 1910 1911 printf "%s\n" "## ---------------- ## 1912## Cache variables. ## 1913## ---------------- ##" 1914 echo 1915 # The following way of writing the cache mishandles newlines in values, 1916( 1917 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1918 eval ac_val=\$$ac_var 1919 case $ac_val in #( 1920 *${as_nl}*) 1921 case $ac_var in #( 1922 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1923printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1924 esac 1925 case $ac_var in #( 1926 _ | IFS | as_nl) ;; #( 1927 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1928 *) { eval $ac_var=; unset $ac_var;} ;; 1929 esac ;; 1930 esac 1931 done 1932 (set) 2>&1 | 1933 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1934 *${as_nl}ac_space=\ *) 1935 sed -n \ 1936 "s/'\''/'\''\\\\'\'''\''/g; 1937 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1938 ;; #( 1939 *) 1940 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1941 ;; 1942 esac | 1943 sort 1944) 1945 echo 1946 1947 printf "%s\n" "## ----------------- ## 1948## Output variables. ## 1949## ----------------- ##" 1950 echo 1951 for ac_var in $ac_subst_vars 1952 do 1953 eval ac_val=\$$ac_var 1954 case $ac_val in 1955 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1956 esac 1957 printf "%s\n" "$ac_var='\''$ac_val'\''" 1958 done | sort 1959 echo 1960 1961 if test -n "$ac_subst_files"; then 1962 printf "%s\n" "## ------------------- ## 1963## File substitutions. ## 1964## ------------------- ##" 1965 echo 1966 for ac_var in $ac_subst_files 1967 do 1968 eval ac_val=\$$ac_var 1969 case $ac_val in 1970 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1971 esac 1972 printf "%s\n" "$ac_var='\''$ac_val'\''" 1973 done | sort 1974 echo 1975 fi 1976 1977 if test -s confdefs.h; then 1978 printf "%s\n" "## ----------- ## 1979## confdefs.h. ## 1980## ----------- ##" 1981 echo 1982 cat confdefs.h 1983 echo 1984 fi 1985 test "$ac_signal" != 0 && 1986 printf "%s\n" "$as_me: caught signal $ac_signal" 1987 printf "%s\n" "$as_me: exit $exit_status" 1988 } >&5 1989 rm -f core *.core core.conftest.* && 1990 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1991 exit $exit_status 1992' 0 1993for ac_signal in 1 2 13 15; do 1994 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1995done 1996ac_signal=0 1997 1998# confdefs.h avoids OS command line length limits that DEFS can exceed. 1999rm -f -r conftest* confdefs.h 2000 2001printf "%s\n" "/* confdefs.h */" > confdefs.h 2002 2003# Predefined preprocessor variables. 2004 2005printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2006 2007printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2008 2009printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2010 2011printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2012 2013printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2014 2015printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2016 2017 2018# Let the site file select an alternate cache file if it wants to. 2019# Prefer an explicitly selected file to automatically selected ones. 2020if test -n "$CONFIG_SITE"; then 2021 ac_site_files="$CONFIG_SITE" 2022elif test "x$prefix" != xNONE; then 2023 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2024else 2025 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2026fi 2027 2028for ac_site_file in $ac_site_files 2029do 2030 case $ac_site_file in #( 2031 */*) : 2032 ;; #( 2033 *) : 2034 ac_site_file=./$ac_site_file ;; 2035esac 2036 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2038printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2039 sed 's/^/| /' "$ac_site_file" >&5 2040 . "$ac_site_file" \ 2041 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2042printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2043as_fn_error $? "failed to load site script $ac_site_file 2044See \`config.log' for more details" "$LINENO" 5; } 2045 fi 2046done 2047 2048if test -r "$cache_file"; then 2049 # Some versions of bash will fail to source /dev/null (special files 2050 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2051 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2053printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2054 case $cache_file in 2055 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2056 *) . "./$cache_file";; 2057 esac 2058 fi 2059else 2060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2061printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2062 >$cache_file 2063fi 2064 2065# Test code for whether the C compiler supports C89 (global declarations) 2066ac_c_conftest_c89_globals=' 2067/* Does the compiler advertise C89 conformance? 2068 Do not test the value of __STDC__, because some compilers set it to 0 2069 while being otherwise adequately conformant. */ 2070#if !defined __STDC__ 2071# error "Compiler does not advertise C89 conformance" 2072#endif 2073 2074#include <stddef.h> 2075#include <stdarg.h> 2076struct stat; 2077/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2078struct buf { int x; }; 2079struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2080static char *e (p, i) 2081 char **p; 2082 int i; 2083{ 2084 return p[i]; 2085} 2086static char *f (char * (*g) (char **, int), char **p, ...) 2087{ 2088 char *s; 2089 va_list v; 2090 va_start (v,p); 2091 s = g (p, va_arg (v,int)); 2092 va_end (v); 2093 return s; 2094} 2095 2096/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2097 function prototypes and stuff, but not \xHH hex character constants. 2098 These do not provoke an error unfortunately, instead are silently treated 2099 as an "x". The following induces an error, until -std is added to get 2100 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2101 array size at least. It is necessary to write \x00 == 0 to get something 2102 that is true only with -std. */ 2103int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2104 2105/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2106 inside strings and character constants. */ 2107#define FOO(x) '\''x'\'' 2108int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2109 2110int test (int i, double x); 2111struct s1 {int (*f) (int a);}; 2112struct s2 {int (*f) (double a);}; 2113int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2114 int, int);' 2115 2116# Test code for whether the C compiler supports C89 (body of main). 2117ac_c_conftest_c89_main=' 2118ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2119' 2120 2121# Test code for whether the C compiler supports C99 (global declarations) 2122ac_c_conftest_c99_globals=' 2123// Does the compiler advertise C99 conformance? 2124#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2125# error "Compiler does not advertise C99 conformance" 2126#endif 2127 2128#include <stdbool.h> 2129extern int puts (const char *); 2130extern int printf (const char *, ...); 2131extern int dprintf (int, const char *, ...); 2132extern void *malloc (size_t); 2133 2134// Check varargs macros. These examples are taken from C99 6.10.3.5. 2135// dprintf is used instead of fprintf to avoid needing to declare 2136// FILE and stderr. 2137#define debug(...) dprintf (2, __VA_ARGS__) 2138#define showlist(...) puts (#__VA_ARGS__) 2139#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2140static void 2141test_varargs_macros (void) 2142{ 2143 int x = 1234; 2144 int y = 5678; 2145 debug ("Flag"); 2146 debug ("X = %d\n", x); 2147 showlist (The first, second, and third items.); 2148 report (x>y, "x is %d but y is %d", x, y); 2149} 2150 2151// Check long long types. 2152#define BIG64 18446744073709551615ull 2153#define BIG32 4294967295ul 2154#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2155#if !BIG_OK 2156 #error "your preprocessor is broken" 2157#endif 2158#if BIG_OK 2159#else 2160 #error "your preprocessor is broken" 2161#endif 2162static long long int bignum = -9223372036854775807LL; 2163static unsigned long long int ubignum = BIG64; 2164 2165struct incomplete_array 2166{ 2167 int datasize; 2168 double data[]; 2169}; 2170 2171struct named_init { 2172 int number; 2173 const wchar_t *name; 2174 double average; 2175}; 2176 2177typedef const char *ccp; 2178 2179static inline int 2180test_restrict (ccp restrict text) 2181{ 2182 // See if C++-style comments work. 2183 // Iterate through items via the restricted pointer. 2184 // Also check for declarations in for loops. 2185 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2186 continue; 2187 return 0; 2188} 2189 2190// Check varargs and va_copy. 2191static bool 2192test_varargs (const char *format, ...) 2193{ 2194 va_list args; 2195 va_start (args, format); 2196 va_list args_copy; 2197 va_copy (args_copy, args); 2198 2199 const char *str = ""; 2200 int number = 0; 2201 float fnumber = 0; 2202 2203 while (*format) 2204 { 2205 switch (*format++) 2206 { 2207 case '\''s'\'': // string 2208 str = va_arg (args_copy, const char *); 2209 break; 2210 case '\''d'\'': // int 2211 number = va_arg (args_copy, int); 2212 break; 2213 case '\''f'\'': // float 2214 fnumber = va_arg (args_copy, double); 2215 break; 2216 default: 2217 break; 2218 } 2219 } 2220 va_end (args_copy); 2221 va_end (args); 2222 2223 return *str && number && fnumber; 2224} 2225' 2226 2227# Test code for whether the C compiler supports C99 (body of main). 2228ac_c_conftest_c99_main=' 2229 // Check bool. 2230 _Bool success = false; 2231 success |= (argc != 0); 2232 2233 // Check restrict. 2234 if (test_restrict ("String literal") == 0) 2235 success = true; 2236 char *restrict newvar = "Another string"; 2237 2238 // Check varargs. 2239 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2240 test_varargs_macros (); 2241 2242 // Check flexible array members. 2243 struct incomplete_array *ia = 2244 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2245 ia->datasize = 10; 2246 for (int i = 0; i < ia->datasize; ++i) 2247 ia->data[i] = i * 1.234; 2248 2249 // Check named initializers. 2250 struct named_init ni = { 2251 .number = 34, 2252 .name = L"Test wide string", 2253 .average = 543.34343, 2254 }; 2255 2256 ni.number = 58; 2257 2258 int dynamic_array[ni.number]; 2259 dynamic_array[0] = argv[0][0]; 2260 dynamic_array[ni.number - 1] = 543; 2261 2262 // work around unused variable warnings 2263 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2264 || dynamic_array[ni.number - 1] != 543); 2265' 2266 2267# Test code for whether the C compiler supports C11 (global declarations) 2268ac_c_conftest_c11_globals=' 2269// Does the compiler advertise C11 conformance? 2270#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2271# error "Compiler does not advertise C11 conformance" 2272#endif 2273 2274// Check _Alignas. 2275char _Alignas (double) aligned_as_double; 2276char _Alignas (0) no_special_alignment; 2277extern char aligned_as_int; 2278char _Alignas (0) _Alignas (int) aligned_as_int; 2279 2280// Check _Alignof. 2281enum 2282{ 2283 int_alignment = _Alignof (int), 2284 int_array_alignment = _Alignof (int[100]), 2285 char_alignment = _Alignof (char) 2286}; 2287_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2288 2289// Check _Noreturn. 2290int _Noreturn does_not_return (void) { for (;;) continue; } 2291 2292// Check _Static_assert. 2293struct test_static_assert 2294{ 2295 int x; 2296 _Static_assert (sizeof (int) <= sizeof (long int), 2297 "_Static_assert does not work in struct"); 2298 long int y; 2299}; 2300 2301// Check UTF-8 literals. 2302#define u8 syntax error! 2303char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2304 2305// Check duplicate typedefs. 2306typedef long *long_ptr; 2307typedef long int *long_ptr; 2308typedef long_ptr long_ptr; 2309 2310// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2311struct anonymous 2312{ 2313 union { 2314 struct { int i; int j; }; 2315 struct { int k; long int l; } w; 2316 }; 2317 int m; 2318} v1; 2319' 2320 2321# Test code for whether the C compiler supports C11 (body of main). 2322ac_c_conftest_c11_main=' 2323 _Static_assert ((offsetof (struct anonymous, i) 2324 == offsetof (struct anonymous, w.k)), 2325 "Anonymous union alignment botch"); 2326 v1.i = 2; 2327 v1.w.k = 5; 2328 ok |= v1.i != 5; 2329' 2330 2331# Test code for whether the C compiler supports C11 (complete). 2332ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2333${ac_c_conftest_c99_globals} 2334${ac_c_conftest_c11_globals} 2335 2336int 2337main (int argc, char **argv) 2338{ 2339 int ok = 0; 2340 ${ac_c_conftest_c89_main} 2341 ${ac_c_conftest_c99_main} 2342 ${ac_c_conftest_c11_main} 2343 return ok; 2344} 2345" 2346 2347# Test code for whether the C compiler supports C99 (complete). 2348ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2349${ac_c_conftest_c99_globals} 2350 2351int 2352main (int argc, char **argv) 2353{ 2354 int ok = 0; 2355 ${ac_c_conftest_c89_main} 2356 ${ac_c_conftest_c99_main} 2357 return ok; 2358} 2359" 2360 2361# Test code for whether the C compiler supports C89 (complete). 2362ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2363 2364int 2365main (int argc, char **argv) 2366{ 2367 int ok = 0; 2368 ${ac_c_conftest_c89_main} 2369 return ok; 2370} 2371" 2372 2373as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2374as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2375as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2376as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2377as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2378as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2379as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2380as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2381as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2382 2383# Auxiliary files required by this configure script. 2384ac_aux_files="config.guess config.sub compile missing install-sh" 2385 2386# Locations in which to look for auxiliary files. 2387ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2388 2389# Search for a directory containing all of the required auxiliary files, 2390# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2391# If we don't find one directory that contains all the files we need, 2392# we report the set of missing files from the *first* directory in 2393# $ac_aux_dir_candidates and give up. 2394ac_missing_aux_files="" 2395ac_first_candidate=: 2396printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2398as_found=false 2399for as_dir in $ac_aux_dir_candidates 2400do 2401 IFS=$as_save_IFS 2402 case $as_dir in #((( 2403 '') as_dir=./ ;; 2404 */) ;; 2405 *) as_dir=$as_dir/ ;; 2406 esac 2407 as_found=: 2408 2409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2410 ac_aux_dir_found=yes 2411 ac_install_sh= 2412 for ac_aux in $ac_aux_files 2413 do 2414 # As a special case, if "install-sh" is required, that requirement 2415 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2416 # and $ac_install_sh is set appropriately for whichever one is found. 2417 if test x"$ac_aux" = x"install-sh" 2418 then 2419 if test -f "${as_dir}install-sh"; then 2420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2421 ac_install_sh="${as_dir}install-sh -c" 2422 elif test -f "${as_dir}install.sh"; then 2423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2424 ac_install_sh="${as_dir}install.sh -c" 2425 elif test -f "${as_dir}shtool"; then 2426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2427 ac_install_sh="${as_dir}shtool install -c" 2428 else 2429 ac_aux_dir_found=no 2430 if $ac_first_candidate; then 2431 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2432 else 2433 break 2434 fi 2435 fi 2436 else 2437 if test -f "${as_dir}${ac_aux}"; then 2438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2439 else 2440 ac_aux_dir_found=no 2441 if $ac_first_candidate; then 2442 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2443 else 2444 break 2445 fi 2446 fi 2447 fi 2448 done 2449 if test "$ac_aux_dir_found" = yes; then 2450 ac_aux_dir="$as_dir" 2451 break 2452 fi 2453 ac_first_candidate=false 2454 2455 as_found=false 2456done 2457IFS=$as_save_IFS 2458if $as_found 2459then : 2460 2461else $as_nop 2462 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2463fi 2464 2465 2466# These three variables are undocumented and unsupported, 2467# and are intended to be withdrawn in a future Autoconf release. 2468# They can cause serious problems if a builder's source tree is in a directory 2469# whose full name contains unusual characters. 2470if test -f "${ac_aux_dir}config.guess"; then 2471 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2472fi 2473if test -f "${ac_aux_dir}config.sub"; then 2474 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2475fi 2476if test -f "$ac_aux_dir/configure"; then 2477 ac_configure="$SHELL ${ac_aux_dir}configure" 2478fi 2479 2480# Check that the precious variables saved in the cache have kept the same 2481# value. 2482ac_cache_corrupted=false 2483for ac_var in $ac_precious_vars; do 2484 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2485 eval ac_new_set=\$ac_env_${ac_var}_set 2486 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2487 eval ac_new_val=\$ac_env_${ac_var}_value 2488 case $ac_old_set,$ac_new_set in 2489 set,) 2490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2491printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2492 ac_cache_corrupted=: ;; 2493 ,set) 2494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2495printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2496 ac_cache_corrupted=: ;; 2497 ,);; 2498 *) 2499 if test "x$ac_old_val" != "x$ac_new_val"; then 2500 # differences in whitespace do not lead to failure. 2501 ac_old_val_w=`echo x $ac_old_val` 2502 ac_new_val_w=`echo x $ac_new_val` 2503 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2505printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2506 ac_cache_corrupted=: 2507 else 2508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2509printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2510 eval $ac_var=\$ac_old_val 2511 fi 2512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2513printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2515printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2516 fi;; 2517 esac 2518 # Pass precious variables to config.status. 2519 if test "$ac_new_set" = set; then 2520 case $ac_new_val in 2521 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2522 *) ac_arg=$ac_var=$ac_new_val ;; 2523 esac 2524 case " $ac_configure_args " in 2525 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2526 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2527 esac 2528 fi 2529done 2530if $ac_cache_corrupted; then 2531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2532printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2534printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2535 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2536 and start over" "$LINENO" 5 2537fi 2538## -------------------- ## 2539## Main body of script. ## 2540## -------------------- ## 2541 2542ac_ext=c 2543ac_cpp='$CPP $CPPFLAGS' 2544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2546ac_compiler_gnu=$ac_cv_c_compiler_gnu 2547 2548 2549 2550ac_config_headers="$ac_config_headers config.h" 2551 2552 2553# Initialize Automake 2554am__api_version='1.16' 2555 2556 2557 2558 # Find a good install program. We prefer a C program (faster), 2559# so one script is as good as another. But avoid the broken or 2560# incompatible versions: 2561# SysV /etc/install, /usr/sbin/install 2562# SunOS /usr/etc/install 2563# IRIX /sbin/install 2564# AIX /bin/install 2565# AmigaOS /C/install, which installs bootblocks on floppy discs 2566# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2567# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2568# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2569# OS/2's system install, which has a completely different semantic 2570# ./install, which can be erroneously created by make from ./install.sh. 2571# Reject install programs that cannot install multiple files. 2572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2573printf %s "checking for a BSD-compatible install... " >&6; } 2574if test -z "$INSTALL"; then 2575if test ${ac_cv_path_install+y} 2576then : 2577 printf %s "(cached) " >&6 2578else $as_nop 2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2580for as_dir in $PATH 2581do 2582 IFS=$as_save_IFS 2583 case $as_dir in #((( 2584 '') as_dir=./ ;; 2585 */) ;; 2586 *) as_dir=$as_dir/ ;; 2587 esac 2588 # Account for fact that we put trailing slashes in our PATH walk. 2589case $as_dir in #(( 2590 ./ | /[cC]/* | \ 2591 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2592 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2593 /usr/ucb/* ) ;; 2594 *) 2595 # OSF1 and SCO ODT 3.0 have their own names for install. 2596 # Don't use installbsd from OSF since it installs stuff as root 2597 # by default. 2598 for ac_prog in ginstall scoinst install; do 2599 for ac_exec_ext in '' $ac_executable_extensions; do 2600 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2601 if test $ac_prog = install && 2602 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2603 # AIX install. It has an incompatible calling convention. 2604 : 2605 elif test $ac_prog = install && 2606 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2607 # program-specific install script used by HP pwplus--don't use. 2608 : 2609 else 2610 rm -rf conftest.one conftest.two conftest.dir 2611 echo one > conftest.one 2612 echo two > conftest.two 2613 mkdir conftest.dir 2614 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2615 test -s conftest.one && test -s conftest.two && 2616 test -s conftest.dir/conftest.one && 2617 test -s conftest.dir/conftest.two 2618 then 2619 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2620 break 3 2621 fi 2622 fi 2623 fi 2624 done 2625 done 2626 ;; 2627esac 2628 2629 done 2630IFS=$as_save_IFS 2631 2632rm -rf conftest.one conftest.two conftest.dir 2633 2634fi 2635 if test ${ac_cv_path_install+y}; then 2636 INSTALL=$ac_cv_path_install 2637 else 2638 # As a last resort, use the slow shell script. Don't cache a 2639 # value for INSTALL within a source directory, because that will 2640 # break other packages using the cache if that directory is 2641 # removed, or if the value is a relative name. 2642 INSTALL=$ac_install_sh 2643 fi 2644fi 2645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2646printf "%s\n" "$INSTALL" >&6; } 2647 2648# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2649# It thinks the first close brace ends the variable substitution. 2650test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2651 2652test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2653 2654test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2655 2656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2657printf %s "checking whether build environment is sane... " >&6; } 2658# Reject unsafe characters in $srcdir or the absolute working directory 2659# name. Accept space and tab only in the latter. 2660am_lf=' 2661' 2662case `pwd` in 2663 *[\\\"\#\$\&\'\`$am_lf]*) 2664 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2665esac 2666case $srcdir in 2667 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2668 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2669esac 2670 2671# Do 'set' in a subshell so we don't clobber the current shell's 2672# arguments. Must try -L first in case configure is actually a 2673# symlink; some systems play weird games with the mod time of symlinks 2674# (eg FreeBSD returns the mod time of the symlink's containing 2675# directory). 2676if ( 2677 am_has_slept=no 2678 for am_try in 1 2; do 2679 echo "timestamp, slept: $am_has_slept" > conftest.file 2680 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2681 if test "$*" = "X"; then 2682 # -L didn't work. 2683 set X `ls -t "$srcdir/configure" conftest.file` 2684 fi 2685 if test "$*" != "X $srcdir/configure conftest.file" \ 2686 && test "$*" != "X conftest.file $srcdir/configure"; then 2687 2688 # If neither matched, then we have a broken ls. This can happen 2689 # if, for instance, CONFIG_SHELL is bash and it inherits a 2690 # broken ls alias from the environment. This has actually 2691 # happened. Such a system could not be considered "sane". 2692 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2693 alias in your environment" "$LINENO" 5 2694 fi 2695 if test "$2" = conftest.file || test $am_try -eq 2; then 2696 break 2697 fi 2698 # Just in case. 2699 sleep 1 2700 am_has_slept=yes 2701 done 2702 test "$2" = conftest.file 2703 ) 2704then 2705 # Ok. 2706 : 2707else 2708 as_fn_error $? "newly created file is older than distributed files! 2709Check your system clock" "$LINENO" 5 2710fi 2711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2712printf "%s\n" "yes" >&6; } 2713# If we didn't sleep, we still need to ensure time stamps of config.status and 2714# generated files are strictly newer. 2715am_sleep_pid= 2716if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2717 ( sleep 1 ) & 2718 am_sleep_pid=$! 2719fi 2720 2721rm -f conftest.file 2722 2723test "$program_prefix" != NONE && 2724 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2725# Use a double $ so make ignores it. 2726test "$program_suffix" != NONE && 2727 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2728# Double any \ or $. 2729# By default was `s,x,x', remove it if useless. 2730ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2731program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2732 2733 2734# Expand $ac_aux_dir to an absolute path. 2735am_aux_dir=`cd "$ac_aux_dir" && pwd` 2736 2737 2738 if test x"${MISSING+set}" != xset; then 2739 MISSING="\${SHELL} '$am_aux_dir/missing'" 2740fi 2741# Use eval to expand $SHELL 2742if eval "$MISSING --is-lightweight"; then 2743 am_missing_run="$MISSING " 2744else 2745 am_missing_run= 2746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2747printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2748fi 2749 2750if test x"${install_sh+set}" != xset; then 2751 case $am_aux_dir in 2752 *\ * | *\ *) 2753 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2754 *) 2755 install_sh="\${SHELL} $am_aux_dir/install-sh" 2756 esac 2757fi 2758 2759# Installed binaries are usually stripped using 'strip' when the user 2760# run "make install-strip". However 'strip' might not be the right 2761# tool to use in cross-compilation environments, therefore Automake 2762# will honor the 'STRIP' environment variable to overrule this program. 2763if test "$cross_compiling" != no; then 2764 if test -n "$ac_tool_prefix"; then 2765 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2766set dummy ${ac_tool_prefix}strip; ac_word=$2 2767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2768printf %s "checking for $ac_word... " >&6; } 2769if test ${ac_cv_prog_STRIP+y} 2770then : 2771 printf %s "(cached) " >&6 2772else $as_nop 2773 if test -n "$STRIP"; then 2774 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2775else 2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2777for as_dir in $PATH 2778do 2779 IFS=$as_save_IFS 2780 case $as_dir in #((( 2781 '') as_dir=./ ;; 2782 */) ;; 2783 *) as_dir=$as_dir/ ;; 2784 esac 2785 for ac_exec_ext in '' $ac_executable_extensions; do 2786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2787 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2789 break 2 2790 fi 2791done 2792 done 2793IFS=$as_save_IFS 2794 2795fi 2796fi 2797STRIP=$ac_cv_prog_STRIP 2798if test -n "$STRIP"; then 2799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2800printf "%s\n" "$STRIP" >&6; } 2801else 2802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2803printf "%s\n" "no" >&6; } 2804fi 2805 2806 2807fi 2808if test -z "$ac_cv_prog_STRIP"; then 2809 ac_ct_STRIP=$STRIP 2810 # Extract the first word of "strip", so it can be a program name with args. 2811set dummy strip; ac_word=$2 2812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2813printf %s "checking for $ac_word... " >&6; } 2814if test ${ac_cv_prog_ac_ct_STRIP+y} 2815then : 2816 printf %s "(cached) " >&6 2817else $as_nop 2818 if test -n "$ac_ct_STRIP"; then 2819 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2820else 2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2822for as_dir in $PATH 2823do 2824 IFS=$as_save_IFS 2825 case $as_dir in #((( 2826 '') as_dir=./ ;; 2827 */) ;; 2828 *) as_dir=$as_dir/ ;; 2829 esac 2830 for ac_exec_ext in '' $ac_executable_extensions; do 2831 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2832 ac_cv_prog_ac_ct_STRIP="strip" 2833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2834 break 2 2835 fi 2836done 2837 done 2838IFS=$as_save_IFS 2839 2840fi 2841fi 2842ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2843if test -n "$ac_ct_STRIP"; then 2844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2845printf "%s\n" "$ac_ct_STRIP" >&6; } 2846else 2847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2848printf "%s\n" "no" >&6; } 2849fi 2850 2851 if test "x$ac_ct_STRIP" = x; then 2852 STRIP=":" 2853 else 2854 case $cross_compiling:$ac_tool_warned in 2855yes:) 2856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2857printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2858ac_tool_warned=yes ;; 2859esac 2860 STRIP=$ac_ct_STRIP 2861 fi 2862else 2863 STRIP="$ac_cv_prog_STRIP" 2864fi 2865 2866fi 2867INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2868 2869 2870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2871printf %s "checking for a race-free mkdir -p... " >&6; } 2872if test -z "$MKDIR_P"; then 2873 if test ${ac_cv_path_mkdir+y} 2874then : 2875 printf %s "(cached) " >&6 2876else $as_nop 2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2878for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2879do 2880 IFS=$as_save_IFS 2881 case $as_dir in #((( 2882 '') as_dir=./ ;; 2883 */) ;; 2884 *) as_dir=$as_dir/ ;; 2885 esac 2886 for ac_prog in mkdir gmkdir; do 2887 for ac_exec_ext in '' $ac_executable_extensions; do 2888 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2889 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2890 'mkdir ('*'coreutils) '* | \ 2891 'BusyBox '* | \ 2892 'mkdir (fileutils) '4.1*) 2893 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2894 break 3;; 2895 esac 2896 done 2897 done 2898 done 2899IFS=$as_save_IFS 2900 2901fi 2902 2903 test -d ./--version && rmdir ./--version 2904 if test ${ac_cv_path_mkdir+y}; then 2905 MKDIR_P="$ac_cv_path_mkdir -p" 2906 else 2907 # As a last resort, use the slow shell script. Don't cache a 2908 # value for MKDIR_P within a source directory, because that will 2909 # break other packages using the cache if that directory is 2910 # removed, or if the value is a relative name. 2911 MKDIR_P="$ac_install_sh -d" 2912 fi 2913fi 2914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2915printf "%s\n" "$MKDIR_P" >&6; } 2916 2917for ac_prog in gawk mawk nawk awk 2918do 2919 # Extract the first word of "$ac_prog", so it can be a program name with args. 2920set dummy $ac_prog; ac_word=$2 2921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2922printf %s "checking for $ac_word... " >&6; } 2923if test ${ac_cv_prog_AWK+y} 2924then : 2925 printf %s "(cached) " >&6 2926else $as_nop 2927 if test -n "$AWK"; then 2928 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2929else 2930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2931for as_dir in $PATH 2932do 2933 IFS=$as_save_IFS 2934 case $as_dir in #((( 2935 '') as_dir=./ ;; 2936 */) ;; 2937 *) as_dir=$as_dir/ ;; 2938 esac 2939 for ac_exec_ext in '' $ac_executable_extensions; do 2940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2941 ac_cv_prog_AWK="$ac_prog" 2942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2943 break 2 2944 fi 2945done 2946 done 2947IFS=$as_save_IFS 2948 2949fi 2950fi 2951AWK=$ac_cv_prog_AWK 2952if test -n "$AWK"; then 2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2954printf "%s\n" "$AWK" >&6; } 2955else 2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2957printf "%s\n" "no" >&6; } 2958fi 2959 2960 2961 test -n "$AWK" && break 2962done 2963 2964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2965printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2966set x ${MAKE-make} 2967ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2968if eval test \${ac_cv_prog_make_${ac_make}_set+y} 2969then : 2970 printf %s "(cached) " >&6 2971else $as_nop 2972 cat >conftest.make <<\_ACEOF 2973SHELL = /bin/sh 2974all: 2975 @echo '@@@%%%=$(MAKE)=@@@%%%' 2976_ACEOF 2977# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2978case `${MAKE-make} -f conftest.make 2>/dev/null` in 2979 *@@@%%%=?*=@@@%%%*) 2980 eval ac_cv_prog_make_${ac_make}_set=yes;; 2981 *) 2982 eval ac_cv_prog_make_${ac_make}_set=no;; 2983esac 2984rm -f conftest.make 2985fi 2986if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2988printf "%s\n" "yes" >&6; } 2989 SET_MAKE= 2990else 2991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2992printf "%s\n" "no" >&6; } 2993 SET_MAKE="MAKE=${MAKE-make}" 2994fi 2995 2996rm -rf .tst 2>/dev/null 2997mkdir .tst 2>/dev/null 2998if test -d .tst; then 2999 am__leading_dot=. 3000else 3001 am__leading_dot=_ 3002fi 3003rmdir .tst 2>/dev/null 3004 3005# Check whether --enable-silent-rules was given. 3006if test ${enable_silent_rules+y} 3007then : 3008 enableval=$enable_silent_rules; 3009fi 3010 3011case $enable_silent_rules in # ((( 3012 yes) AM_DEFAULT_VERBOSITY=0;; 3013 no) AM_DEFAULT_VERBOSITY=1;; 3014 *) AM_DEFAULT_VERBOSITY=1;; 3015esac 3016am_make=${MAKE-make} 3017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3018printf %s "checking whether $am_make supports nested variables... " >&6; } 3019if test ${am_cv_make_support_nested_variables+y} 3020then : 3021 printf %s "(cached) " >&6 3022else $as_nop 3023 if printf "%s\n" 'TRUE=$(BAR$(V)) 3024BAR0=false 3025BAR1=true 3026V=1 3027am__doit: 3028 @$(TRUE) 3029.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3030 am_cv_make_support_nested_variables=yes 3031else 3032 am_cv_make_support_nested_variables=no 3033fi 3034fi 3035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3036printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3037if test $am_cv_make_support_nested_variables = yes; then 3038 AM_V='$(V)' 3039 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3040else 3041 AM_V=$AM_DEFAULT_VERBOSITY 3042 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3043fi 3044AM_BACKSLASH='\' 3045 3046if test "`cd $srcdir && pwd`" != "`pwd`"; then 3047 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3048 # is not polluted with repeated "-I." 3049 am__isrc=' -I$(srcdir)' 3050 # test to see if srcdir already configured 3051 if test -f $srcdir/config.status; then 3052 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3053 fi 3054fi 3055 3056# test whether we have cygpath 3057if test -z "$CYGPATH_W"; then 3058 if (cygpath --version) >/dev/null 2>/dev/null; then 3059 CYGPATH_W='cygpath -w' 3060 else 3061 CYGPATH_W=echo 3062 fi 3063fi 3064 3065 3066# Define the identity of the package. 3067 PACKAGE='fonttosfnt' 3068 VERSION='1.2.3' 3069 3070 3071printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3072 3073 3074printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3075 3076# Some tools Automake needs. 3077 3078ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3079 3080 3081AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3082 3083 3084AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3085 3086 3087AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3088 3089 3090MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3091 3092# For better backward compatibility. To be removed once Automake 1.9.x 3093# dies out for good. For more background, see: 3094# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3095# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3096mkdir_p='$(MKDIR_P)' 3097 3098# We need awk for the "check" target (and possibly the TAP driver). The 3099# system "awk" is bad on some platforms. 3100# Always define AMTAR for backward compatibility. Yes, it's still used 3101# in the wild :-( We should find a proper way to deprecate it ... 3102AMTAR='$${TAR-tar}' 3103 3104 3105# We'll loop over all known methods to create a tar archive until one works. 3106_am_tools='gnutar pax cpio none' 3107 3108am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3109 3110 3111 3112 3113 3114# Variables for tags utilities; see am/tags.am 3115if test -z "$CTAGS"; then 3116 CTAGS=ctags 3117fi 3118 3119if test -z "$ETAGS"; then 3120 ETAGS=etags 3121fi 3122 3123if test -z "$CSCOPE"; then 3124 CSCOPE=cscope 3125fi 3126 3127 3128 3129# POSIX will say in a future version that running "rm -f" with no argument 3130# is OK; and we want to be able to make that assumption in our Makefile 3131# recipes. So use an aggressive probe to check that the usage we want is 3132# actually supported "in the wild" to an acceptable degree. 3133# See automake bug#10828. 3134# To make any issue more visible, cause the running configure to be aborted 3135# by default if the 'rm' program in use doesn't match our expectations; the 3136# user can still override this though. 3137if rm -f && rm -fr && rm -rf; then : OK; else 3138 cat >&2 <<'END' 3139Oops! 3140 3141Your 'rm' program seems unable to run without file operands specified 3142on the command line, even when the '-f' option is present. This is contrary 3143to the behaviour of most rm programs out there, and not conforming with 3144the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3145 3146Please tell bug-automake@gnu.org about your system, including the value 3147of your $PATH and any error possibly output before this message. This 3148can help us improve future automake versions. 3149 3150END 3151 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3152 echo 'Configuration will proceed anyway, since you have set the' >&2 3153 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3154 echo >&2 3155 else 3156 cat >&2 <<'END' 3157Aborting the configuration process, to ensure you take notice of the issue. 3158 3159You can download and install GNU coreutils to get an 'rm' implementation 3160that behaves properly: <https://www.gnu.org/software/coreutils/>. 3161 3162If you want to complete the configuration process using your problematic 3163'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3164to "yes", and re-run configure. 3165 3166END 3167 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3168 fi 3169fi 3170 3171 3172# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193DEPDIR="${am__leading_dot}deps" 3194 3195ac_config_commands="$ac_config_commands depfiles" 3196 3197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3198printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3199cat > confinc.mk << 'END' 3200am__doit: 3201 @echo this is the am__doit target >confinc.out 3202.PHONY: am__doit 3203END 3204am__include="#" 3205am__quote= 3206# BSD make does it like this. 3207echo '.include "confinc.mk" # ignored' > confmf.BSD 3208# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3209echo 'include confinc.mk # ignored' > confmf.GNU 3210_am_result=no 3211for s in GNU BSD; do 3212 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3213 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3214 ac_status=$? 3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3216 (exit $ac_status); } 3217 case $?:`cat confinc.out 2>/dev/null` in #( 3218 '0:this is the am__doit target') : 3219 case $s in #( 3220 BSD) : 3221 am__include='.include' am__quote='"' ;; #( 3222 *) : 3223 am__include='include' am__quote='' ;; 3224esac ;; #( 3225 *) : 3226 ;; 3227esac 3228 if test "$am__include" != "#"; then 3229 _am_result="yes ($s style)" 3230 break 3231 fi 3232done 3233rm -f confinc.* confmf.* 3234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3235printf "%s\n" "${_am_result}" >&6; } 3236 3237# Check whether --enable-dependency-tracking was given. 3238if test ${enable_dependency_tracking+y} 3239then : 3240 enableval=$enable_dependency_tracking; 3241fi 3242 3243if test "x$enable_dependency_tracking" != xno; then 3244 am_depcomp="$ac_aux_dir/depcomp" 3245 AMDEPBACKSLASH='\' 3246 am__nodep='_no' 3247fi 3248 if test "x$enable_dependency_tracking" != xno; then 3249 AMDEP_TRUE= 3250 AMDEP_FALSE='#' 3251else 3252 AMDEP_TRUE='#' 3253 AMDEP_FALSE= 3254fi 3255 3256 3257ac_ext=c 3258ac_cpp='$CPP $CPPFLAGS' 3259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3261ac_compiler_gnu=$ac_cv_c_compiler_gnu 3262if test -n "$ac_tool_prefix"; then 3263 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3264set dummy ${ac_tool_prefix}gcc; ac_word=$2 3265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3266printf %s "checking for $ac_word... " >&6; } 3267if test ${ac_cv_prog_CC+y} 3268then : 3269 printf %s "(cached) " >&6 3270else $as_nop 3271 if test -n "$CC"; then 3272 ac_cv_prog_CC="$CC" # Let the user override the test. 3273else 3274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3275for as_dir in $PATH 3276do 3277 IFS=$as_save_IFS 3278 case $as_dir in #((( 3279 '') as_dir=./ ;; 3280 */) ;; 3281 *) as_dir=$as_dir/ ;; 3282 esac 3283 for ac_exec_ext in '' $ac_executable_extensions; do 3284 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3285 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3287 break 2 3288 fi 3289done 3290 done 3291IFS=$as_save_IFS 3292 3293fi 3294fi 3295CC=$ac_cv_prog_CC 3296if test -n "$CC"; then 3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3298printf "%s\n" "$CC" >&6; } 3299else 3300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3301printf "%s\n" "no" >&6; } 3302fi 3303 3304 3305fi 3306if test -z "$ac_cv_prog_CC"; then 3307 ac_ct_CC=$CC 3308 # Extract the first word of "gcc", so it can be a program name with args. 3309set dummy gcc; ac_word=$2 3310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3311printf %s "checking for $ac_word... " >&6; } 3312if test ${ac_cv_prog_ac_ct_CC+y} 3313then : 3314 printf %s "(cached) " >&6 3315else $as_nop 3316 if test -n "$ac_ct_CC"; then 3317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3318else 3319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3320for as_dir in $PATH 3321do 3322 IFS=$as_save_IFS 3323 case $as_dir in #((( 3324 '') as_dir=./ ;; 3325 */) ;; 3326 *) as_dir=$as_dir/ ;; 3327 esac 3328 for ac_exec_ext in '' $ac_executable_extensions; do 3329 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3330 ac_cv_prog_ac_ct_CC="gcc" 3331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3332 break 2 3333 fi 3334done 3335 done 3336IFS=$as_save_IFS 3337 3338fi 3339fi 3340ac_ct_CC=$ac_cv_prog_ac_ct_CC 3341if test -n "$ac_ct_CC"; then 3342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3343printf "%s\n" "$ac_ct_CC" >&6; } 3344else 3345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3346printf "%s\n" "no" >&6; } 3347fi 3348 3349 if test "x$ac_ct_CC" = x; then 3350 CC="" 3351 else 3352 case $cross_compiling:$ac_tool_warned in 3353yes:) 3354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3355printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3356ac_tool_warned=yes ;; 3357esac 3358 CC=$ac_ct_CC 3359 fi 3360else 3361 CC="$ac_cv_prog_CC" 3362fi 3363 3364if test -z "$CC"; then 3365 if test -n "$ac_tool_prefix"; then 3366 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3367set dummy ${ac_tool_prefix}cc; ac_word=$2 3368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3369printf %s "checking for $ac_word... " >&6; } 3370if test ${ac_cv_prog_CC+y} 3371then : 3372 printf %s "(cached) " >&6 3373else $as_nop 3374 if test -n "$CC"; then 3375 ac_cv_prog_CC="$CC" # Let the user override the test. 3376else 3377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3378for as_dir in $PATH 3379do 3380 IFS=$as_save_IFS 3381 case $as_dir in #((( 3382 '') as_dir=./ ;; 3383 */) ;; 3384 *) as_dir=$as_dir/ ;; 3385 esac 3386 for ac_exec_ext in '' $ac_executable_extensions; do 3387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3388 ac_cv_prog_CC="${ac_tool_prefix}cc" 3389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3390 break 2 3391 fi 3392done 3393 done 3394IFS=$as_save_IFS 3395 3396fi 3397fi 3398CC=$ac_cv_prog_CC 3399if test -n "$CC"; then 3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3401printf "%s\n" "$CC" >&6; } 3402else 3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3404printf "%s\n" "no" >&6; } 3405fi 3406 3407 3408 fi 3409fi 3410if test -z "$CC"; then 3411 # Extract the first word of "cc", so it can be a program name with args. 3412set dummy cc; ac_word=$2 3413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3414printf %s "checking for $ac_word... " >&6; } 3415if test ${ac_cv_prog_CC+y} 3416then : 3417 printf %s "(cached) " >&6 3418else $as_nop 3419 if test -n "$CC"; then 3420 ac_cv_prog_CC="$CC" # Let the user override the test. 3421else 3422 ac_prog_rejected=no 3423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3424for as_dir in $PATH 3425do 3426 IFS=$as_save_IFS 3427 case $as_dir in #((( 3428 '') as_dir=./ ;; 3429 */) ;; 3430 *) as_dir=$as_dir/ ;; 3431 esac 3432 for ac_exec_ext in '' $ac_executable_extensions; do 3433 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3434 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3435 ac_prog_rejected=yes 3436 continue 3437 fi 3438 ac_cv_prog_CC="cc" 3439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3440 break 2 3441 fi 3442done 3443 done 3444IFS=$as_save_IFS 3445 3446if test $ac_prog_rejected = yes; then 3447 # We found a bogon in the path, so make sure we never use it. 3448 set dummy $ac_cv_prog_CC 3449 shift 3450 if test $# != 0; then 3451 # We chose a different compiler from the bogus one. 3452 # However, it has the same basename, so the bogon will be chosen 3453 # first if we set CC to just the basename; use the full file name. 3454 shift 3455 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3456 fi 3457fi 3458fi 3459fi 3460CC=$ac_cv_prog_CC 3461if test -n "$CC"; then 3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3463printf "%s\n" "$CC" >&6; } 3464else 3465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3466printf "%s\n" "no" >&6; } 3467fi 3468 3469 3470fi 3471if test -z "$CC"; then 3472 if test -n "$ac_tool_prefix"; then 3473 for ac_prog in cl.exe 3474 do 3475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3476set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3478printf %s "checking for $ac_word... " >&6; } 3479if test ${ac_cv_prog_CC+y} 3480then : 3481 printf %s "(cached) " >&6 3482else $as_nop 3483 if test -n "$CC"; then 3484 ac_cv_prog_CC="$CC" # Let the user override the test. 3485else 3486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3487for as_dir in $PATH 3488do 3489 IFS=$as_save_IFS 3490 case $as_dir in #((( 3491 '') as_dir=./ ;; 3492 */) ;; 3493 *) as_dir=$as_dir/ ;; 3494 esac 3495 for ac_exec_ext in '' $ac_executable_extensions; do 3496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3497 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3499 break 2 3500 fi 3501done 3502 done 3503IFS=$as_save_IFS 3504 3505fi 3506fi 3507CC=$ac_cv_prog_CC 3508if test -n "$CC"; then 3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3510printf "%s\n" "$CC" >&6; } 3511else 3512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3513printf "%s\n" "no" >&6; } 3514fi 3515 3516 3517 test -n "$CC" && break 3518 done 3519fi 3520if test -z "$CC"; then 3521 ac_ct_CC=$CC 3522 for ac_prog in cl.exe 3523do 3524 # Extract the first word of "$ac_prog", so it can be a program name with args. 3525set dummy $ac_prog; ac_word=$2 3526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3527printf %s "checking for $ac_word... " >&6; } 3528if test ${ac_cv_prog_ac_ct_CC+y} 3529then : 3530 printf %s "(cached) " >&6 3531else $as_nop 3532 if test -n "$ac_ct_CC"; then 3533 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3534else 3535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3536for as_dir in $PATH 3537do 3538 IFS=$as_save_IFS 3539 case $as_dir in #((( 3540 '') as_dir=./ ;; 3541 */) ;; 3542 *) as_dir=$as_dir/ ;; 3543 esac 3544 for ac_exec_ext in '' $ac_executable_extensions; do 3545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3546 ac_cv_prog_ac_ct_CC="$ac_prog" 3547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3548 break 2 3549 fi 3550done 3551 done 3552IFS=$as_save_IFS 3553 3554fi 3555fi 3556ac_ct_CC=$ac_cv_prog_ac_ct_CC 3557if test -n "$ac_ct_CC"; then 3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3559printf "%s\n" "$ac_ct_CC" >&6; } 3560else 3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3562printf "%s\n" "no" >&6; } 3563fi 3564 3565 3566 test -n "$ac_ct_CC" && break 3567done 3568 3569 if test "x$ac_ct_CC" = x; then 3570 CC="" 3571 else 3572 case $cross_compiling:$ac_tool_warned in 3573yes:) 3574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3575printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3576ac_tool_warned=yes ;; 3577esac 3578 CC=$ac_ct_CC 3579 fi 3580fi 3581 3582fi 3583if test -z "$CC"; then 3584 if test -n "$ac_tool_prefix"; then 3585 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3586set dummy ${ac_tool_prefix}clang; ac_word=$2 3587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3588printf %s "checking for $ac_word... " >&6; } 3589if test ${ac_cv_prog_CC+y} 3590then : 3591 printf %s "(cached) " >&6 3592else $as_nop 3593 if test -n "$CC"; then 3594 ac_cv_prog_CC="$CC" # Let the user override the test. 3595else 3596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3597for as_dir in $PATH 3598do 3599 IFS=$as_save_IFS 3600 case $as_dir in #((( 3601 '') as_dir=./ ;; 3602 */) ;; 3603 *) as_dir=$as_dir/ ;; 3604 esac 3605 for ac_exec_ext in '' $ac_executable_extensions; do 3606 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3607 ac_cv_prog_CC="${ac_tool_prefix}clang" 3608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3609 break 2 3610 fi 3611done 3612 done 3613IFS=$as_save_IFS 3614 3615fi 3616fi 3617CC=$ac_cv_prog_CC 3618if test -n "$CC"; then 3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3620printf "%s\n" "$CC" >&6; } 3621else 3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3623printf "%s\n" "no" >&6; } 3624fi 3625 3626 3627fi 3628if test -z "$ac_cv_prog_CC"; then 3629 ac_ct_CC=$CC 3630 # Extract the first word of "clang", so it can be a program name with args. 3631set dummy clang; ac_word=$2 3632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3633printf %s "checking for $ac_word... " >&6; } 3634if test ${ac_cv_prog_ac_ct_CC+y} 3635then : 3636 printf %s "(cached) " >&6 3637else $as_nop 3638 if test -n "$ac_ct_CC"; then 3639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3640else 3641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3642for as_dir in $PATH 3643do 3644 IFS=$as_save_IFS 3645 case $as_dir in #((( 3646 '') as_dir=./ ;; 3647 */) ;; 3648 *) as_dir=$as_dir/ ;; 3649 esac 3650 for ac_exec_ext in '' $ac_executable_extensions; do 3651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3652 ac_cv_prog_ac_ct_CC="clang" 3653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3654 break 2 3655 fi 3656done 3657 done 3658IFS=$as_save_IFS 3659 3660fi 3661fi 3662ac_ct_CC=$ac_cv_prog_ac_ct_CC 3663if test -n "$ac_ct_CC"; then 3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3665printf "%s\n" "$ac_ct_CC" >&6; } 3666else 3667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3668printf "%s\n" "no" >&6; } 3669fi 3670 3671 if test "x$ac_ct_CC" = x; then 3672 CC="" 3673 else 3674 case $cross_compiling:$ac_tool_warned in 3675yes:) 3676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3677printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3678ac_tool_warned=yes ;; 3679esac 3680 CC=$ac_ct_CC 3681 fi 3682else 3683 CC="$ac_cv_prog_CC" 3684fi 3685 3686fi 3687 3688 3689test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3690printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3691as_fn_error $? "no acceptable C compiler found in \$PATH 3692See \`config.log' for more details" "$LINENO" 5; } 3693 3694# Provide some information about the compiler. 3695printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3696set X $ac_compile 3697ac_compiler=$2 3698for ac_option in --version -v -V -qversion -version; do 3699 { { ac_try="$ac_compiler $ac_option >&5" 3700case "(($ac_try" in 3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3702 *) ac_try_echo=$ac_try;; 3703esac 3704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3705printf "%s\n" "$ac_try_echo"; } >&5 3706 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3707 ac_status=$? 3708 if test -s conftest.err; then 3709 sed '10a\ 3710... rest of stderr output deleted ... 3711 10q' conftest.err >conftest.er1 3712 cat conftest.er1 >&5 3713 fi 3714 rm -f conftest.er1 conftest.err 3715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3716 test $ac_status = 0; } 3717done 3718 3719cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3720/* end confdefs.h. */ 3721 3722int 3723main (void) 3724{ 3725 3726 ; 3727 return 0; 3728} 3729_ACEOF 3730ac_clean_files_save=$ac_clean_files 3731ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3732# Try to create an executable without -o first, disregard a.out. 3733# It will help us diagnose broken compilers, and finding out an intuition 3734# of exeext. 3735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3736printf %s "checking whether the C compiler works... " >&6; } 3737ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3738 3739# The possible output files: 3740ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3741 3742ac_rmfiles= 3743for ac_file in $ac_files 3744do 3745 case $ac_file in 3746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3747 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3748 esac 3749done 3750rm -f $ac_rmfiles 3751 3752if { { ac_try="$ac_link_default" 3753case "(($ac_try" in 3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3755 *) ac_try_echo=$ac_try;; 3756esac 3757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3758printf "%s\n" "$ac_try_echo"; } >&5 3759 (eval "$ac_link_default") 2>&5 3760 ac_status=$? 3761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3762 test $ac_status = 0; } 3763then : 3764 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3765# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3766# in a Makefile. We should not override ac_cv_exeext if it was cached, 3767# so that the user can short-circuit this test for compilers unknown to 3768# Autoconf. 3769for ac_file in $ac_files '' 3770do 3771 test -f "$ac_file" || continue 3772 case $ac_file in 3773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3774 ;; 3775 [ab].out ) 3776 # We found the default executable, but exeext='' is most 3777 # certainly right. 3778 break;; 3779 *.* ) 3780 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3781 then :; else 3782 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3783 fi 3784 # We set ac_cv_exeext here because the later test for it is not 3785 # safe: cross compilers may not add the suffix if given an `-o' 3786 # argument, so we may need to know it at that point already. 3787 # Even if this section looks crufty: it has the advantage of 3788 # actually working. 3789 break;; 3790 * ) 3791 break;; 3792 esac 3793done 3794test "$ac_cv_exeext" = no && ac_cv_exeext= 3795 3796else $as_nop 3797 ac_file='' 3798fi 3799if test -z "$ac_file" 3800then : 3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3802printf "%s\n" "no" >&6; } 3803printf "%s\n" "$as_me: failed program was:" >&5 3804sed 's/^/| /' conftest.$ac_ext >&5 3805 3806{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3807printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3808as_fn_error 77 "C compiler cannot create executables 3809See \`config.log' for more details" "$LINENO" 5; } 3810else $as_nop 3811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3812printf "%s\n" "yes" >&6; } 3813fi 3814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3815printf %s "checking for C compiler default output file name... " >&6; } 3816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3817printf "%s\n" "$ac_file" >&6; } 3818ac_exeext=$ac_cv_exeext 3819 3820rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3821ac_clean_files=$ac_clean_files_save 3822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3823printf %s "checking for suffix of executables... " >&6; } 3824if { { ac_try="$ac_link" 3825case "(($ac_try" in 3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3827 *) ac_try_echo=$ac_try;; 3828esac 3829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3830printf "%s\n" "$ac_try_echo"; } >&5 3831 (eval "$ac_link") 2>&5 3832 ac_status=$? 3833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3834 test $ac_status = 0; } 3835then : 3836 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3837# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3838# work properly (i.e., refer to `conftest.exe'), while it won't with 3839# `rm'. 3840for ac_file in conftest.exe conftest conftest.*; do 3841 test -f "$ac_file" || continue 3842 case $ac_file in 3843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3844 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3845 break;; 3846 * ) break;; 3847 esac 3848done 3849else $as_nop 3850 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3851printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3852as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3853See \`config.log' for more details" "$LINENO" 5; } 3854fi 3855rm -f conftest conftest$ac_cv_exeext 3856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3857printf "%s\n" "$ac_cv_exeext" >&6; } 3858 3859rm -f conftest.$ac_ext 3860EXEEXT=$ac_cv_exeext 3861ac_exeext=$EXEEXT 3862cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3863/* end confdefs.h. */ 3864#include <stdio.h> 3865int 3866main (void) 3867{ 3868FILE *f = fopen ("conftest.out", "w"); 3869 return ferror (f) || fclose (f) != 0; 3870 3871 ; 3872 return 0; 3873} 3874_ACEOF 3875ac_clean_files="$ac_clean_files conftest.out" 3876# Check that the compiler produces executables we can run. If not, either 3877# the compiler is broken, or we cross compile. 3878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3879printf %s "checking whether we are cross compiling... " >&6; } 3880if test "$cross_compiling" != yes; then 3881 { { ac_try="$ac_link" 3882case "(($ac_try" in 3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3884 *) ac_try_echo=$ac_try;; 3885esac 3886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3887printf "%s\n" "$ac_try_echo"; } >&5 3888 (eval "$ac_link") 2>&5 3889 ac_status=$? 3890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3891 test $ac_status = 0; } 3892 if { ac_try='./conftest$ac_cv_exeext' 3893 { { case "(($ac_try" in 3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3895 *) ac_try_echo=$ac_try;; 3896esac 3897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3898printf "%s\n" "$ac_try_echo"; } >&5 3899 (eval "$ac_try") 2>&5 3900 ac_status=$? 3901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3902 test $ac_status = 0; }; }; then 3903 cross_compiling=no 3904 else 3905 if test "$cross_compiling" = maybe; then 3906 cross_compiling=yes 3907 else 3908 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3909printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3910as_fn_error 77 "cannot run C compiled programs. 3911If you meant to cross compile, use \`--host'. 3912See \`config.log' for more details" "$LINENO" 5; } 3913 fi 3914 fi 3915fi 3916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3917printf "%s\n" "$cross_compiling" >&6; } 3918 3919rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3920ac_clean_files=$ac_clean_files_save 3921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3922printf %s "checking for suffix of object files... " >&6; } 3923if test ${ac_cv_objext+y} 3924then : 3925 printf %s "(cached) " >&6 3926else $as_nop 3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3928/* end confdefs.h. */ 3929 3930int 3931main (void) 3932{ 3933 3934 ; 3935 return 0; 3936} 3937_ACEOF 3938rm -f conftest.o conftest.obj 3939if { { ac_try="$ac_compile" 3940case "(($ac_try" in 3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3942 *) ac_try_echo=$ac_try;; 3943esac 3944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3945printf "%s\n" "$ac_try_echo"; } >&5 3946 (eval "$ac_compile") 2>&5 3947 ac_status=$? 3948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3949 test $ac_status = 0; } 3950then : 3951 for ac_file in conftest.o conftest.obj conftest.*; do 3952 test -f "$ac_file" || continue; 3953 case $ac_file in 3954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3955 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3956 break;; 3957 esac 3958done 3959else $as_nop 3960 printf "%s\n" "$as_me: failed program was:" >&5 3961sed 's/^/| /' conftest.$ac_ext >&5 3962 3963{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3964printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3965as_fn_error $? "cannot compute suffix of object files: cannot compile 3966See \`config.log' for more details" "$LINENO" 5; } 3967fi 3968rm -f conftest.$ac_cv_objext conftest.$ac_ext 3969fi 3970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3971printf "%s\n" "$ac_cv_objext" >&6; } 3972OBJEXT=$ac_cv_objext 3973ac_objext=$OBJEXT 3974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3975printf %s "checking whether the compiler supports GNU C... " >&6; } 3976if test ${ac_cv_c_compiler_gnu+y} 3977then : 3978 printf %s "(cached) " >&6 3979else $as_nop 3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3981/* end confdefs.h. */ 3982 3983int 3984main (void) 3985{ 3986#ifndef __GNUC__ 3987 choke me 3988#endif 3989 3990 ; 3991 return 0; 3992} 3993_ACEOF 3994if ac_fn_c_try_compile "$LINENO" 3995then : 3996 ac_compiler_gnu=yes 3997else $as_nop 3998 ac_compiler_gnu=no 3999fi 4000rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4001ac_cv_c_compiler_gnu=$ac_compiler_gnu 4002 4003fi 4004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4005printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4006ac_compiler_gnu=$ac_cv_c_compiler_gnu 4007 4008if test $ac_compiler_gnu = yes; then 4009 GCC=yes 4010else 4011 GCC= 4012fi 4013ac_test_CFLAGS=${CFLAGS+y} 4014ac_save_CFLAGS=$CFLAGS 4015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4016printf %s "checking whether $CC accepts -g... " >&6; } 4017if test ${ac_cv_prog_cc_g+y} 4018then : 4019 printf %s "(cached) " >&6 4020else $as_nop 4021 ac_save_c_werror_flag=$ac_c_werror_flag 4022 ac_c_werror_flag=yes 4023 ac_cv_prog_cc_g=no 4024 CFLAGS="-g" 4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4026/* end confdefs.h. */ 4027 4028int 4029main (void) 4030{ 4031 4032 ; 4033 return 0; 4034} 4035_ACEOF 4036if ac_fn_c_try_compile "$LINENO" 4037then : 4038 ac_cv_prog_cc_g=yes 4039else $as_nop 4040 CFLAGS="" 4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4042/* end confdefs.h. */ 4043 4044int 4045main (void) 4046{ 4047 4048 ; 4049 return 0; 4050} 4051_ACEOF 4052if ac_fn_c_try_compile "$LINENO" 4053then : 4054 4055else $as_nop 4056 ac_c_werror_flag=$ac_save_c_werror_flag 4057 CFLAGS="-g" 4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4059/* end confdefs.h. */ 4060 4061int 4062main (void) 4063{ 4064 4065 ; 4066 return 0; 4067} 4068_ACEOF 4069if ac_fn_c_try_compile "$LINENO" 4070then : 4071 ac_cv_prog_cc_g=yes 4072fi 4073rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4074fi 4075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4076fi 4077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4078 ac_c_werror_flag=$ac_save_c_werror_flag 4079fi 4080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4081printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4082if test $ac_test_CFLAGS; then 4083 CFLAGS=$ac_save_CFLAGS 4084elif test $ac_cv_prog_cc_g = yes; then 4085 if test "$GCC" = yes; then 4086 CFLAGS="-g -O2" 4087 else 4088 CFLAGS="-g" 4089 fi 4090else 4091 if test "$GCC" = yes; then 4092 CFLAGS="-O2" 4093 else 4094 CFLAGS= 4095 fi 4096fi 4097ac_prog_cc_stdc=no 4098if test x$ac_prog_cc_stdc = xno 4099then : 4100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4101printf %s "checking for $CC option to enable C11 features... " >&6; } 4102if test ${ac_cv_prog_cc_c11+y} 4103then : 4104 printf %s "(cached) " >&6 4105else $as_nop 4106 ac_cv_prog_cc_c11=no 4107ac_save_CC=$CC 4108cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4109/* end confdefs.h. */ 4110$ac_c_conftest_c11_program 4111_ACEOF 4112for ac_arg in '' -std=gnu11 4113do 4114 CC="$ac_save_CC $ac_arg" 4115 if ac_fn_c_try_compile "$LINENO" 4116then : 4117 ac_cv_prog_cc_c11=$ac_arg 4118fi 4119rm -f core conftest.err conftest.$ac_objext conftest.beam 4120 test "x$ac_cv_prog_cc_c11" != "xno" && break 4121done 4122rm -f conftest.$ac_ext 4123CC=$ac_save_CC 4124fi 4125 4126if test "x$ac_cv_prog_cc_c11" = xno 4127then : 4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4129printf "%s\n" "unsupported" >&6; } 4130else $as_nop 4131 if test "x$ac_cv_prog_cc_c11" = x 4132then : 4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4134printf "%s\n" "none needed" >&6; } 4135else $as_nop 4136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4137printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4138 CC="$CC $ac_cv_prog_cc_c11" 4139fi 4140 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4141 ac_prog_cc_stdc=c11 4142fi 4143fi 4144if test x$ac_prog_cc_stdc = xno 4145then : 4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4147printf %s "checking for $CC option to enable C99 features... " >&6; } 4148if test ${ac_cv_prog_cc_c99+y} 4149then : 4150 printf %s "(cached) " >&6 4151else $as_nop 4152 ac_cv_prog_cc_c99=no 4153ac_save_CC=$CC 4154cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4155/* end confdefs.h. */ 4156$ac_c_conftest_c99_program 4157_ACEOF 4158for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4159do 4160 CC="$ac_save_CC $ac_arg" 4161 if ac_fn_c_try_compile "$LINENO" 4162then : 4163 ac_cv_prog_cc_c99=$ac_arg 4164fi 4165rm -f core conftest.err conftest.$ac_objext conftest.beam 4166 test "x$ac_cv_prog_cc_c99" != "xno" && break 4167done 4168rm -f conftest.$ac_ext 4169CC=$ac_save_CC 4170fi 4171 4172if test "x$ac_cv_prog_cc_c99" = xno 4173then : 4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4175printf "%s\n" "unsupported" >&6; } 4176else $as_nop 4177 if test "x$ac_cv_prog_cc_c99" = x 4178then : 4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4180printf "%s\n" "none needed" >&6; } 4181else $as_nop 4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4183printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4184 CC="$CC $ac_cv_prog_cc_c99" 4185fi 4186 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4187 ac_prog_cc_stdc=c99 4188fi 4189fi 4190if test x$ac_prog_cc_stdc = xno 4191then : 4192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4193printf %s "checking for $CC option to enable C89 features... " >&6; } 4194if test ${ac_cv_prog_cc_c89+y} 4195then : 4196 printf %s "(cached) " >&6 4197else $as_nop 4198 ac_cv_prog_cc_c89=no 4199ac_save_CC=$CC 4200cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4201/* end confdefs.h. */ 4202$ac_c_conftest_c89_program 4203_ACEOF 4204for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4205do 4206 CC="$ac_save_CC $ac_arg" 4207 if ac_fn_c_try_compile "$LINENO" 4208then : 4209 ac_cv_prog_cc_c89=$ac_arg 4210fi 4211rm -f core conftest.err conftest.$ac_objext conftest.beam 4212 test "x$ac_cv_prog_cc_c89" != "xno" && break 4213done 4214rm -f conftest.$ac_ext 4215CC=$ac_save_CC 4216fi 4217 4218if test "x$ac_cv_prog_cc_c89" = xno 4219then : 4220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4221printf "%s\n" "unsupported" >&6; } 4222else $as_nop 4223 if test "x$ac_cv_prog_cc_c89" = x 4224then : 4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4226printf "%s\n" "none needed" >&6; } 4227else $as_nop 4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4229printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4230 CC="$CC $ac_cv_prog_cc_c89" 4231fi 4232 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4233 ac_prog_cc_stdc=c89 4234fi 4235fi 4236 4237ac_ext=c 4238ac_cpp='$CPP $CPPFLAGS' 4239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4241ac_compiler_gnu=$ac_cv_c_compiler_gnu 4242 4243 4244 ac_ext=c 4245ac_cpp='$CPP $CPPFLAGS' 4246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4248ac_compiler_gnu=$ac_cv_c_compiler_gnu 4249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4250printf %s "checking whether $CC understands -c and -o together... " >&6; } 4251if test ${am_cv_prog_cc_c_o+y} 4252then : 4253 printf %s "(cached) " >&6 4254else $as_nop 4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4256/* end confdefs.h. */ 4257 4258int 4259main (void) 4260{ 4261 4262 ; 4263 return 0; 4264} 4265_ACEOF 4266 # Make sure it works both with $CC and with simple cc. 4267 # Following AC_PROG_CC_C_O, we do the test twice because some 4268 # compilers refuse to overwrite an existing .o file with -o, 4269 # though they will create one. 4270 am_cv_prog_cc_c_o=yes 4271 for am_i in 1 2; do 4272 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4273 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4274 ac_status=$? 4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4276 (exit $ac_status); } \ 4277 && test -f conftest2.$ac_objext; then 4278 : OK 4279 else 4280 am_cv_prog_cc_c_o=no 4281 break 4282 fi 4283 done 4284 rm -f core conftest* 4285 unset am_i 4286fi 4287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4288printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4289if test "$am_cv_prog_cc_c_o" != yes; then 4290 # Losing compiler, so override with the script. 4291 # FIXME: It is wrong to rewrite CC. 4292 # But if we don't then we get into trouble of one sort or another. 4293 # A longer-term fix would be to have automake use am__CC in this case, 4294 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4295 CC="$am_aux_dir/compile $CC" 4296fi 4297ac_ext=c 4298ac_cpp='$CPP $CPPFLAGS' 4299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4301ac_compiler_gnu=$ac_cv_c_compiler_gnu 4302 4303 4304depcc="$CC" am_compiler_list= 4305 4306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4307printf %s "checking dependency style of $depcc... " >&6; } 4308if test ${am_cv_CC_dependencies_compiler_type+y} 4309then : 4310 printf %s "(cached) " >&6 4311else $as_nop 4312 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4313 # We make a subdir and do the tests there. Otherwise we can end up 4314 # making bogus files that we don't know about and never remove. For 4315 # instance it was reported that on HP-UX the gcc test will end up 4316 # making a dummy file named 'D' -- because '-MD' means "put the output 4317 # in D". 4318 rm -rf conftest.dir 4319 mkdir conftest.dir 4320 # Copy depcomp to subdir because otherwise we won't find it if we're 4321 # using a relative directory. 4322 cp "$am_depcomp" conftest.dir 4323 cd conftest.dir 4324 # We will build objects and dependencies in a subdirectory because 4325 # it helps to detect inapplicable dependency modes. For instance 4326 # both Tru64's cc and ICC support -MD to output dependencies as a 4327 # side effect of compilation, but ICC will put the dependencies in 4328 # the current directory while Tru64 will put them in the object 4329 # directory. 4330 mkdir sub 4331 4332 am_cv_CC_dependencies_compiler_type=none 4333 if test "$am_compiler_list" = ""; then 4334 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4335 fi 4336 am__universal=false 4337 case " $depcc " in #( 4338 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4339 esac 4340 4341 for depmode in $am_compiler_list; do 4342 # Setup a source with many dependencies, because some compilers 4343 # like to wrap large dependency lists on column 80 (with \), and 4344 # we should not choose a depcomp mode which is confused by this. 4345 # 4346 # We need to recreate these files for each test, as the compiler may 4347 # overwrite some of them when testing with obscure command lines. 4348 # This happens at least with the AIX C compiler. 4349 : > sub/conftest.c 4350 for i in 1 2 3 4 5 6; do 4351 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4352 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4353 # Solaris 10 /bin/sh. 4354 echo '/* dummy */' > sub/conftst$i.h 4355 done 4356 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4357 4358 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4359 # mode. It turns out that the SunPro C++ compiler does not properly 4360 # handle '-M -o', and we need to detect this. Also, some Intel 4361 # versions had trouble with output in subdirs. 4362 am__obj=sub/conftest.${OBJEXT-o} 4363 am__minus_obj="-o $am__obj" 4364 case $depmode in 4365 gcc) 4366 # This depmode causes a compiler race in universal mode. 4367 test "$am__universal" = false || continue 4368 ;; 4369 nosideeffect) 4370 # After this tag, mechanisms are not by side-effect, so they'll 4371 # only be used when explicitly requested. 4372 if test "x$enable_dependency_tracking" = xyes; then 4373 continue 4374 else 4375 break 4376 fi 4377 ;; 4378 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4379 # This compiler won't grok '-c -o', but also, the minuso test has 4380 # not run yet. These depmodes are late enough in the game, and 4381 # so weak that their functioning should not be impacted. 4382 am__obj=conftest.${OBJEXT-o} 4383 am__minus_obj= 4384 ;; 4385 none) break ;; 4386 esac 4387 if depmode=$depmode \ 4388 source=sub/conftest.c object=$am__obj \ 4389 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4390 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4391 >/dev/null 2>conftest.err && 4392 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4393 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4394 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4395 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4396 # icc doesn't choke on unknown options, it will just issue warnings 4397 # or remarks (even with -Werror). So we grep stderr for any message 4398 # that says an option was ignored or not supported. 4399 # When given -MP, icc 7.0 and 7.1 complain thusly: 4400 # icc: Command line warning: ignoring option '-M'; no argument required 4401 # The diagnosis changed in icc 8.0: 4402 # icc: Command line remark: option '-MP' not supported 4403 if (grep 'ignoring option' conftest.err || 4404 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4405 am_cv_CC_dependencies_compiler_type=$depmode 4406 break 4407 fi 4408 fi 4409 done 4410 4411 cd .. 4412 rm -rf conftest.dir 4413else 4414 am_cv_CC_dependencies_compiler_type=none 4415fi 4416 4417fi 4418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4419printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4420CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4421 4422 if 4423 test "x$enable_dependency_tracking" != xno \ 4424 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4425 am__fastdepCC_TRUE= 4426 am__fastdepCC_FALSE='#' 4427else 4428 am__fastdepCC_TRUE='#' 4429 am__fastdepCC_FALSE= 4430fi 4431 4432 4433 4434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4435printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4436if test ${ac_cv_c_undeclared_builtin_options+y} 4437then : 4438 printf %s "(cached) " >&6 4439else $as_nop 4440 ac_save_CFLAGS=$CFLAGS 4441 ac_cv_c_undeclared_builtin_options='cannot detect' 4442 for ac_arg in '' -fno-builtin; do 4443 CFLAGS="$ac_save_CFLAGS $ac_arg" 4444 # This test program should *not* compile successfully. 4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4446/* end confdefs.h. */ 4447 4448int 4449main (void) 4450{ 4451(void) strchr; 4452 ; 4453 return 0; 4454} 4455_ACEOF 4456if ac_fn_c_try_compile "$LINENO" 4457then : 4458 4459else $as_nop 4460 # This test program should compile successfully. 4461 # No library function is consistently available on 4462 # freestanding implementations, so test against a dummy 4463 # declaration. Include always-available headers on the 4464 # off chance that they somehow elicit warnings. 4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4466/* end confdefs.h. */ 4467#include <float.h> 4468#include <limits.h> 4469#include <stdarg.h> 4470#include <stddef.h> 4471extern void ac_decl (int, char *); 4472 4473int 4474main (void) 4475{ 4476(void) ac_decl (0, (char *) 0); 4477 (void) ac_decl; 4478 4479 ; 4480 return 0; 4481} 4482_ACEOF 4483if ac_fn_c_try_compile "$LINENO" 4484then : 4485 if test x"$ac_arg" = x 4486then : 4487 ac_cv_c_undeclared_builtin_options='none needed' 4488else $as_nop 4489 ac_cv_c_undeclared_builtin_options=$ac_arg 4490fi 4491 break 4492fi 4493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4494fi 4495rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4496 done 4497 CFLAGS=$ac_save_CFLAGS 4498 4499fi 4500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4501printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4502 case $ac_cv_c_undeclared_builtin_options in #( 4503 'cannot detect') : 4504 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4505printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4506as_fn_error $? "cannot make $CC report undeclared builtins 4507See \`config.log' for more details" "$LINENO" 5; } ;; #( 4508 'none needed') : 4509 ac_c_undeclared_builtin_options='' ;; #( 4510 *) : 4511 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4512esac 4513 4514ac_header= ac_cache= 4515for ac_item in $ac_header_c_list 4516do 4517 if test $ac_cache; then 4518 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4519 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4520 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4521 fi 4522 ac_header= ac_cache= 4523 elif test $ac_header; then 4524 ac_cache=$ac_item 4525 else 4526 ac_header=$ac_item 4527 fi 4528done 4529 4530 4531 4532 4533 4534 4535 4536 4537if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4538then : 4539 4540printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4541 4542fi 4543 4544 4545 4546 4547ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4548if test "x$ac_cv_have_decl___clang__" = xyes 4549then : 4550 CLANGCC="yes" 4551else $as_nop 4552 CLANGCC="no" 4553fi 4554ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4555if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4556then : 4557 INTELCC="yes" 4558else $as_nop 4559 INTELCC="no" 4560fi 4561ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4562if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4563then : 4564 SUNCC="yes" 4565else $as_nop 4566 SUNCC="no" 4567fi 4568 4569 4570 4571 4572 4573 4574 4575 4576if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4577 if test -n "$ac_tool_prefix"; then 4578 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4579set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4581printf %s "checking for $ac_word... " >&6; } 4582if test ${ac_cv_path_PKG_CONFIG+y} 4583then : 4584 printf %s "(cached) " >&6 4585else $as_nop 4586 case $PKG_CONFIG in 4587 [\\/]* | ?:[\\/]*) 4588 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4589 ;; 4590 *) 4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4592for as_dir in $PATH 4593do 4594 IFS=$as_save_IFS 4595 case $as_dir in #((( 4596 '') as_dir=./ ;; 4597 */) ;; 4598 *) as_dir=$as_dir/ ;; 4599 esac 4600 for ac_exec_ext in '' $ac_executable_extensions; do 4601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4602 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4604 break 2 4605 fi 4606done 4607 done 4608IFS=$as_save_IFS 4609 4610 ;; 4611esac 4612fi 4613PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4614if test -n "$PKG_CONFIG"; then 4615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4616printf "%s\n" "$PKG_CONFIG" >&6; } 4617else 4618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4619printf "%s\n" "no" >&6; } 4620fi 4621 4622 4623fi 4624if test -z "$ac_cv_path_PKG_CONFIG"; then 4625 ac_pt_PKG_CONFIG=$PKG_CONFIG 4626 # Extract the first word of "pkg-config", so it can be a program name with args. 4627set dummy pkg-config; ac_word=$2 4628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4629printf %s "checking for $ac_word... " >&6; } 4630if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4631then : 4632 printf %s "(cached) " >&6 4633else $as_nop 4634 case $ac_pt_PKG_CONFIG in 4635 [\\/]* | ?:[\\/]*) 4636 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4637 ;; 4638 *) 4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4640for as_dir in $PATH 4641do 4642 IFS=$as_save_IFS 4643 case $as_dir in #((( 4644 '') as_dir=./ ;; 4645 */) ;; 4646 *) as_dir=$as_dir/ ;; 4647 esac 4648 for ac_exec_ext in '' $ac_executable_extensions; do 4649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4650 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4652 break 2 4653 fi 4654done 4655 done 4656IFS=$as_save_IFS 4657 4658 ;; 4659esac 4660fi 4661ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4662if test -n "$ac_pt_PKG_CONFIG"; then 4663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4664printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4665else 4666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4667printf "%s\n" "no" >&6; } 4668fi 4669 4670 if test "x$ac_pt_PKG_CONFIG" = x; then 4671 PKG_CONFIG="" 4672 else 4673 case $cross_compiling:$ac_tool_warned in 4674yes:) 4675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4676printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4677ac_tool_warned=yes ;; 4678esac 4679 PKG_CONFIG=$ac_pt_PKG_CONFIG 4680 fi 4681else 4682 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4683fi 4684 4685fi 4686if test -n "$PKG_CONFIG"; then 4687 _pkg_min_version=0.9.0 4688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4689printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4690 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4692printf "%s\n" "yes" >&6; } 4693 else 4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4695printf "%s\n" "no" >&6; } 4696 PKG_CONFIG="" 4697 fi 4698fi 4699 4700 4701 # Make sure we can run config.sub. 4702$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4703 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4704 4705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4706printf %s "checking build system type... " >&6; } 4707if test ${ac_cv_build+y} 4708then : 4709 printf %s "(cached) " >&6 4710else $as_nop 4711 ac_build_alias=$build_alias 4712test "x$ac_build_alias" = x && 4713 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4714test "x$ac_build_alias" = x && 4715 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4716ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4717 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4718 4719fi 4720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4721printf "%s\n" "$ac_cv_build" >&6; } 4722case $ac_cv_build in 4723*-*-*) ;; 4724*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4725esac 4726build=$ac_cv_build 4727ac_save_IFS=$IFS; IFS='-' 4728set x $ac_cv_build 4729shift 4730build_cpu=$1 4731build_vendor=$2 4732shift; shift 4733# Remember, the first character of IFS is used to create $*, 4734# except with old shells: 4735build_os=$* 4736IFS=$ac_save_IFS 4737case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4738 4739 4740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4741printf %s "checking host system type... " >&6; } 4742if test ${ac_cv_host+y} 4743then : 4744 printf %s "(cached) " >&6 4745else $as_nop 4746 if test "x$host_alias" = x; then 4747 ac_cv_host=$ac_cv_build 4748else 4749 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4750 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4751fi 4752 4753fi 4754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4755printf "%s\n" "$ac_cv_host" >&6; } 4756case $ac_cv_host in 4757*-*-*) ;; 4758*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4759esac 4760host=$ac_cv_host 4761ac_save_IFS=$IFS; IFS='-' 4762set x $ac_cv_host 4763shift 4764host_cpu=$1 4765host_vendor=$2 4766shift; shift 4767# Remember, the first character of IFS is used to create $*, 4768# except with old shells: 4769host_os=$* 4770IFS=$ac_save_IFS 4771case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4772 4773 4774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4775printf %s "checking for a sed that does not truncate output... " >&6; } 4776if test ${ac_cv_path_SED+y} 4777then : 4778 printf %s "(cached) " >&6 4779else $as_nop 4780 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4781 for ac_i in 1 2 3 4 5 6 7; do 4782 ac_script="$ac_script$as_nl$ac_script" 4783 done 4784 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4785 { ac_script=; unset ac_script;} 4786 if test -z "$SED"; then 4787 ac_path_SED_found=false 4788 # Loop through the user's path and test for each of PROGNAME-LIST 4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4790for as_dir in $PATH 4791do 4792 IFS=$as_save_IFS 4793 case $as_dir in #((( 4794 '') as_dir=./ ;; 4795 */) ;; 4796 *) as_dir=$as_dir/ ;; 4797 esac 4798 for ac_prog in sed gsed 4799 do 4800 for ac_exec_ext in '' $ac_executable_extensions; do 4801 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4802 as_fn_executable_p "$ac_path_SED" || continue 4803# Check for GNU ac_path_SED and select it if it is found. 4804 # Check for GNU $ac_path_SED 4805case `"$ac_path_SED" --version 2>&1` in 4806*GNU*) 4807 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4808*) 4809 ac_count=0 4810 printf %s 0123456789 >"conftest.in" 4811 while : 4812 do 4813 cat "conftest.in" "conftest.in" >"conftest.tmp" 4814 mv "conftest.tmp" "conftest.in" 4815 cp "conftest.in" "conftest.nl" 4816 printf "%s\n" '' >> "conftest.nl" 4817 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4819 as_fn_arith $ac_count + 1 && ac_count=$as_val 4820 if test $ac_count -gt ${ac_path_SED_max-0}; then 4821 # Best one so far, save it but keep looking for a better one 4822 ac_cv_path_SED="$ac_path_SED" 4823 ac_path_SED_max=$ac_count 4824 fi 4825 # 10*(2^10) chars as input seems more than enough 4826 test $ac_count -gt 10 && break 4827 done 4828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4829esac 4830 4831 $ac_path_SED_found && break 3 4832 done 4833 done 4834 done 4835IFS=$as_save_IFS 4836 if test -z "$ac_cv_path_SED"; then 4837 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4838 fi 4839else 4840 ac_cv_path_SED=$SED 4841fi 4842 4843fi 4844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4845printf "%s\n" "$ac_cv_path_SED" >&6; } 4846 SED="$ac_cv_path_SED" 4847 rm -f conftest.sed 4848 4849 4850 4851 4852 4853 4854# Check whether --enable-selective-werror was given. 4855if test ${enable_selective_werror+y} 4856then : 4857 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4858else $as_nop 4859 SELECTIVE_WERROR=yes 4860fi 4861 4862 4863 4864 4865 4866# -v is too short to test reliably with XORG_TESTSET_CFLAG 4867if test "x$SUNCC" = "xyes"; then 4868 BASE_CFLAGS="-v" 4869else 4870 BASE_CFLAGS="" 4871fi 4872 4873# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887xorg_testset_save_CFLAGS="$CFLAGS" 4888 4889if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4892printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4893if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4894then : 4895 printf %s "(cached) " >&6 4896else $as_nop 4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4898/* end confdefs.h. */ 4899int i; 4900_ACEOF 4901if ac_fn_c_try_compile "$LINENO" 4902then : 4903 xorg_cv_cc_flag_unknown_warning_option=yes 4904else $as_nop 4905 xorg_cv_cc_flag_unknown_warning_option=no 4906fi 4907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4908fi 4909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4910printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4912 CFLAGS="$xorg_testset_save_CFLAGS" 4913fi 4914 4915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4918 fi 4919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4921printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4922if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4923then : 4924 printf %s "(cached) " >&6 4925else $as_nop 4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4927/* end confdefs.h. */ 4928int i; 4929_ACEOF 4930if ac_fn_c_try_compile "$LINENO" 4931then : 4932 xorg_cv_cc_flag_unused_command_line_argument=yes 4933else $as_nop 4934 xorg_cv_cc_flag_unused_command_line_argument=no 4935fi 4936rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4937fi 4938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4939printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4941 CFLAGS="$xorg_testset_save_CFLAGS" 4942fi 4943 4944found="no" 4945 4946 if test $found = "no" ; then 4947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4949 fi 4950 4951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4953 fi 4954 4955 CFLAGS="$CFLAGS -Wall" 4956 4957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4958printf %s "checking if $CC supports -Wall... " >&6; } 4959 cacheid=xorg_cv_cc_flag__Wall 4960 if eval test \${$cacheid+y} 4961then : 4962 printf %s "(cached) " >&6 4963else $as_nop 4964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4965/* end confdefs.h. */ 4966int i; 4967int 4968main (void) 4969{ 4970 4971 ; 4972 return 0; 4973} 4974_ACEOF 4975if ac_fn_c_try_link "$LINENO" 4976then : 4977 eval $cacheid=yes 4978else $as_nop 4979 eval $cacheid=no 4980fi 4981rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4982 conftest$ac_exeext conftest.$ac_ext 4983fi 4984 4985 4986 CFLAGS="$xorg_testset_save_CFLAGS" 4987 4988 eval supported=\$$cacheid 4989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4990printf "%s\n" "$supported" >&6; } 4991 if test "$supported" = "yes" ; then 4992 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4993 found="yes" 4994 fi 4995 fi 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011xorg_testset_save_CFLAGS="$CFLAGS" 5012 5013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5016printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5017if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5018then : 5019 printf %s "(cached) " >&6 5020else $as_nop 5021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5022/* end confdefs.h. */ 5023int i; 5024_ACEOF 5025if ac_fn_c_try_compile "$LINENO" 5026then : 5027 xorg_cv_cc_flag_unknown_warning_option=yes 5028else $as_nop 5029 xorg_cv_cc_flag_unknown_warning_option=no 5030fi 5031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5032fi 5033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5034printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5035 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5036 CFLAGS="$xorg_testset_save_CFLAGS" 5037fi 5038 5039if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5042 fi 5043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5045printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5046if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5047then : 5048 printf %s "(cached) " >&6 5049else $as_nop 5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5051/* end confdefs.h. */ 5052int i; 5053_ACEOF 5054if ac_fn_c_try_compile "$LINENO" 5055then : 5056 xorg_cv_cc_flag_unused_command_line_argument=yes 5057else $as_nop 5058 xorg_cv_cc_flag_unused_command_line_argument=no 5059fi 5060rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5061fi 5062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5063printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5065 CFLAGS="$xorg_testset_save_CFLAGS" 5066fi 5067 5068found="no" 5069 5070 if test $found = "no" ; then 5071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5073 fi 5074 5075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5077 fi 5078 5079 CFLAGS="$CFLAGS -Wpointer-arith" 5080 5081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5082printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5083 cacheid=xorg_cv_cc_flag__Wpointer_arith 5084 if eval test \${$cacheid+y} 5085then : 5086 printf %s "(cached) " >&6 5087else $as_nop 5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5089/* end confdefs.h. */ 5090int i; 5091int 5092main (void) 5093{ 5094 5095 ; 5096 return 0; 5097} 5098_ACEOF 5099if ac_fn_c_try_link "$LINENO" 5100then : 5101 eval $cacheid=yes 5102else $as_nop 5103 eval $cacheid=no 5104fi 5105rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5106 conftest$ac_exeext conftest.$ac_ext 5107fi 5108 5109 5110 CFLAGS="$xorg_testset_save_CFLAGS" 5111 5112 eval supported=\$$cacheid 5113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5114printf "%s\n" "$supported" >&6; } 5115 if test "$supported" = "yes" ; then 5116 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5117 found="yes" 5118 fi 5119 fi 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135xorg_testset_save_CFLAGS="$CFLAGS" 5136 5137if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5140printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5141if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5142then : 5143 printf %s "(cached) " >&6 5144else $as_nop 5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5146/* end confdefs.h. */ 5147int i; 5148_ACEOF 5149if ac_fn_c_try_compile "$LINENO" 5150then : 5151 xorg_cv_cc_flag_unknown_warning_option=yes 5152else $as_nop 5153 xorg_cv_cc_flag_unknown_warning_option=no 5154fi 5155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5156fi 5157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5158printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5159 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5160 CFLAGS="$xorg_testset_save_CFLAGS" 5161fi 5162 5163if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5166 fi 5167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5169printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5170if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5171then : 5172 printf %s "(cached) " >&6 5173else $as_nop 5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5175/* end confdefs.h. */ 5176int i; 5177_ACEOF 5178if ac_fn_c_try_compile "$LINENO" 5179then : 5180 xorg_cv_cc_flag_unused_command_line_argument=yes 5181else $as_nop 5182 xorg_cv_cc_flag_unused_command_line_argument=no 5183fi 5184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5185fi 5186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5187printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5189 CFLAGS="$xorg_testset_save_CFLAGS" 5190fi 5191 5192found="no" 5193 5194 if test $found = "no" ; then 5195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5197 fi 5198 5199 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5201 fi 5202 5203 CFLAGS="$CFLAGS -Wmissing-declarations" 5204 5205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5206printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5207 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5208 if eval test \${$cacheid+y} 5209then : 5210 printf %s "(cached) " >&6 5211else $as_nop 5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5213/* end confdefs.h. */ 5214int i; 5215int 5216main (void) 5217{ 5218 5219 ; 5220 return 0; 5221} 5222_ACEOF 5223if ac_fn_c_try_link "$LINENO" 5224then : 5225 eval $cacheid=yes 5226else $as_nop 5227 eval $cacheid=no 5228fi 5229rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5230 conftest$ac_exeext conftest.$ac_ext 5231fi 5232 5233 5234 CFLAGS="$xorg_testset_save_CFLAGS" 5235 5236 eval supported=\$$cacheid 5237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5238printf "%s\n" "$supported" >&6; } 5239 if test "$supported" = "yes" ; then 5240 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5241 found="yes" 5242 fi 5243 fi 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259xorg_testset_save_CFLAGS="$CFLAGS" 5260 5261if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5264printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5265if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5266then : 5267 printf %s "(cached) " >&6 5268else $as_nop 5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5270/* end confdefs.h. */ 5271int i; 5272_ACEOF 5273if ac_fn_c_try_compile "$LINENO" 5274then : 5275 xorg_cv_cc_flag_unknown_warning_option=yes 5276else $as_nop 5277 xorg_cv_cc_flag_unknown_warning_option=no 5278fi 5279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5280fi 5281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5282printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5284 CFLAGS="$xorg_testset_save_CFLAGS" 5285fi 5286 5287if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5290 fi 5291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5293printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5294if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5295then : 5296 printf %s "(cached) " >&6 5297else $as_nop 5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5299/* end confdefs.h. */ 5300int i; 5301_ACEOF 5302if ac_fn_c_try_compile "$LINENO" 5303then : 5304 xorg_cv_cc_flag_unused_command_line_argument=yes 5305else $as_nop 5306 xorg_cv_cc_flag_unused_command_line_argument=no 5307fi 5308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5309fi 5310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5311printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5312 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5313 CFLAGS="$xorg_testset_save_CFLAGS" 5314fi 5315 5316found="no" 5317 5318 if test $found = "no" ; then 5319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5321 fi 5322 5323 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5325 fi 5326 5327 CFLAGS="$CFLAGS -Wformat=2" 5328 5329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5330printf %s "checking if $CC supports -Wformat=2... " >&6; } 5331 cacheid=xorg_cv_cc_flag__Wformat_2 5332 if eval test \${$cacheid+y} 5333then : 5334 printf %s "(cached) " >&6 5335else $as_nop 5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5337/* end confdefs.h. */ 5338int i; 5339int 5340main (void) 5341{ 5342 5343 ; 5344 return 0; 5345} 5346_ACEOF 5347if ac_fn_c_try_link "$LINENO" 5348then : 5349 eval $cacheid=yes 5350else $as_nop 5351 eval $cacheid=no 5352fi 5353rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5354 conftest$ac_exeext conftest.$ac_ext 5355fi 5356 5357 5358 CFLAGS="$xorg_testset_save_CFLAGS" 5359 5360 eval supported=\$$cacheid 5361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5362printf "%s\n" "$supported" >&6; } 5363 if test "$supported" = "yes" ; then 5364 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5365 found="yes" 5366 fi 5367 fi 5368 5369 if test $found = "no" ; then 5370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5372 fi 5373 5374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5376 fi 5377 5378 CFLAGS="$CFLAGS -Wformat" 5379 5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5381printf %s "checking if $CC supports -Wformat... " >&6; } 5382 cacheid=xorg_cv_cc_flag__Wformat 5383 if eval test \${$cacheid+y} 5384then : 5385 printf %s "(cached) " >&6 5386else $as_nop 5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5388/* end confdefs.h. */ 5389int i; 5390int 5391main (void) 5392{ 5393 5394 ; 5395 return 0; 5396} 5397_ACEOF 5398if ac_fn_c_try_link "$LINENO" 5399then : 5400 eval $cacheid=yes 5401else $as_nop 5402 eval $cacheid=no 5403fi 5404rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5405 conftest$ac_exeext conftest.$ac_ext 5406fi 5407 5408 5409 CFLAGS="$xorg_testset_save_CFLAGS" 5410 5411 eval supported=\$$cacheid 5412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5413printf "%s\n" "$supported" >&6; } 5414 if test "$supported" = "yes" ; then 5415 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5416 found="yes" 5417 fi 5418 fi 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436xorg_testset_save_CFLAGS="$CFLAGS" 5437 5438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5441printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5442if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5443then : 5444 printf %s "(cached) " >&6 5445else $as_nop 5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5447/* end confdefs.h. */ 5448int i; 5449_ACEOF 5450if ac_fn_c_try_compile "$LINENO" 5451then : 5452 xorg_cv_cc_flag_unknown_warning_option=yes 5453else $as_nop 5454 xorg_cv_cc_flag_unknown_warning_option=no 5455fi 5456rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5457fi 5458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5459printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5460 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5461 CFLAGS="$xorg_testset_save_CFLAGS" 5462fi 5463 5464if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5467 fi 5468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5470printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5471if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5472then : 5473 printf %s "(cached) " >&6 5474else $as_nop 5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5476/* end confdefs.h. */ 5477int i; 5478_ACEOF 5479if ac_fn_c_try_compile "$LINENO" 5480then : 5481 xorg_cv_cc_flag_unused_command_line_argument=yes 5482else $as_nop 5483 xorg_cv_cc_flag_unused_command_line_argument=no 5484fi 5485rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5486fi 5487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5488printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5489 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5490 CFLAGS="$xorg_testset_save_CFLAGS" 5491fi 5492 5493found="no" 5494 5495 if test $found = "no" ; then 5496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5498 fi 5499 5500 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5502 fi 5503 5504 CFLAGS="$CFLAGS -Wstrict-prototypes" 5505 5506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5507printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5508 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5509 if eval test \${$cacheid+y} 5510then : 5511 printf %s "(cached) " >&6 5512else $as_nop 5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5514/* end confdefs.h. */ 5515int i; 5516int 5517main (void) 5518{ 5519 5520 ; 5521 return 0; 5522} 5523_ACEOF 5524if ac_fn_c_try_link "$LINENO" 5525then : 5526 eval $cacheid=yes 5527else $as_nop 5528 eval $cacheid=no 5529fi 5530rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5531 conftest$ac_exeext conftest.$ac_ext 5532fi 5533 5534 5535 CFLAGS="$xorg_testset_save_CFLAGS" 5536 5537 eval supported=\$$cacheid 5538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5539printf "%s\n" "$supported" >&6; } 5540 if test "$supported" = "yes" ; then 5541 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5542 found="yes" 5543 fi 5544 fi 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560xorg_testset_save_CFLAGS="$CFLAGS" 5561 5562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5565printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5566if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5567then : 5568 printf %s "(cached) " >&6 5569else $as_nop 5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5571/* end confdefs.h. */ 5572int i; 5573_ACEOF 5574if ac_fn_c_try_compile "$LINENO" 5575then : 5576 xorg_cv_cc_flag_unknown_warning_option=yes 5577else $as_nop 5578 xorg_cv_cc_flag_unknown_warning_option=no 5579fi 5580rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5581fi 5582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5583printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5585 CFLAGS="$xorg_testset_save_CFLAGS" 5586fi 5587 5588if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5591 fi 5592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5594printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5595if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5596then : 5597 printf %s "(cached) " >&6 5598else $as_nop 5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5600/* end confdefs.h. */ 5601int i; 5602_ACEOF 5603if ac_fn_c_try_compile "$LINENO" 5604then : 5605 xorg_cv_cc_flag_unused_command_line_argument=yes 5606else $as_nop 5607 xorg_cv_cc_flag_unused_command_line_argument=no 5608fi 5609rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5610fi 5611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5612printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5613 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5614 CFLAGS="$xorg_testset_save_CFLAGS" 5615fi 5616 5617found="no" 5618 5619 if test $found = "no" ; then 5620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5622 fi 5623 5624 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5626 fi 5627 5628 CFLAGS="$CFLAGS -Wmissing-prototypes" 5629 5630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5631printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5632 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5633 if eval test \${$cacheid+y} 5634then : 5635 printf %s "(cached) " >&6 5636else $as_nop 5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5638/* end confdefs.h. */ 5639int i; 5640int 5641main (void) 5642{ 5643 5644 ; 5645 return 0; 5646} 5647_ACEOF 5648if ac_fn_c_try_link "$LINENO" 5649then : 5650 eval $cacheid=yes 5651else $as_nop 5652 eval $cacheid=no 5653fi 5654rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5655 conftest$ac_exeext conftest.$ac_ext 5656fi 5657 5658 5659 CFLAGS="$xorg_testset_save_CFLAGS" 5660 5661 eval supported=\$$cacheid 5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5663printf "%s\n" "$supported" >&6; } 5664 if test "$supported" = "yes" ; then 5665 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5666 found="yes" 5667 fi 5668 fi 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684xorg_testset_save_CFLAGS="$CFLAGS" 5685 5686if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5689printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5690if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5691then : 5692 printf %s "(cached) " >&6 5693else $as_nop 5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5695/* end confdefs.h. */ 5696int i; 5697_ACEOF 5698if ac_fn_c_try_compile "$LINENO" 5699then : 5700 xorg_cv_cc_flag_unknown_warning_option=yes 5701else $as_nop 5702 xorg_cv_cc_flag_unknown_warning_option=no 5703fi 5704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5705fi 5706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5707printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5709 CFLAGS="$xorg_testset_save_CFLAGS" 5710fi 5711 5712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5715 fi 5716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5718printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5719if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5720then : 5721 printf %s "(cached) " >&6 5722else $as_nop 5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5724/* end confdefs.h. */ 5725int i; 5726_ACEOF 5727if ac_fn_c_try_compile "$LINENO" 5728then : 5729 xorg_cv_cc_flag_unused_command_line_argument=yes 5730else $as_nop 5731 xorg_cv_cc_flag_unused_command_line_argument=no 5732fi 5733rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5734fi 5735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5736printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5738 CFLAGS="$xorg_testset_save_CFLAGS" 5739fi 5740 5741found="no" 5742 5743 if test $found = "no" ; then 5744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5746 fi 5747 5748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5750 fi 5751 5752 CFLAGS="$CFLAGS -Wnested-externs" 5753 5754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5755printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5756 cacheid=xorg_cv_cc_flag__Wnested_externs 5757 if eval test \${$cacheid+y} 5758then : 5759 printf %s "(cached) " >&6 5760else $as_nop 5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5762/* end confdefs.h. */ 5763int i; 5764int 5765main (void) 5766{ 5767 5768 ; 5769 return 0; 5770} 5771_ACEOF 5772if ac_fn_c_try_link "$LINENO" 5773then : 5774 eval $cacheid=yes 5775else $as_nop 5776 eval $cacheid=no 5777fi 5778rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5779 conftest$ac_exeext conftest.$ac_ext 5780fi 5781 5782 5783 CFLAGS="$xorg_testset_save_CFLAGS" 5784 5785 eval supported=\$$cacheid 5786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5787printf "%s\n" "$supported" >&6; } 5788 if test "$supported" = "yes" ; then 5789 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5790 found="yes" 5791 fi 5792 fi 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808xorg_testset_save_CFLAGS="$CFLAGS" 5809 5810if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5813printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5814if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5815then : 5816 printf %s "(cached) " >&6 5817else $as_nop 5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5819/* end confdefs.h. */ 5820int i; 5821_ACEOF 5822if ac_fn_c_try_compile "$LINENO" 5823then : 5824 xorg_cv_cc_flag_unknown_warning_option=yes 5825else $as_nop 5826 xorg_cv_cc_flag_unknown_warning_option=no 5827fi 5828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5829fi 5830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5831printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5832 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5833 CFLAGS="$xorg_testset_save_CFLAGS" 5834fi 5835 5836if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5839 fi 5840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5842printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5843if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5844then : 5845 printf %s "(cached) " >&6 5846else $as_nop 5847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5848/* end confdefs.h. */ 5849int i; 5850_ACEOF 5851if ac_fn_c_try_compile "$LINENO" 5852then : 5853 xorg_cv_cc_flag_unused_command_line_argument=yes 5854else $as_nop 5855 xorg_cv_cc_flag_unused_command_line_argument=no 5856fi 5857rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5858fi 5859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5860printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5861 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5862 CFLAGS="$xorg_testset_save_CFLAGS" 5863fi 5864 5865found="no" 5866 5867 if test $found = "no" ; then 5868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5870 fi 5871 5872 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5874 fi 5875 5876 CFLAGS="$CFLAGS -Wbad-function-cast" 5877 5878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5879printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5880 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5881 if eval test \${$cacheid+y} 5882then : 5883 printf %s "(cached) " >&6 5884else $as_nop 5885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5886/* end confdefs.h. */ 5887int i; 5888int 5889main (void) 5890{ 5891 5892 ; 5893 return 0; 5894} 5895_ACEOF 5896if ac_fn_c_try_link "$LINENO" 5897then : 5898 eval $cacheid=yes 5899else $as_nop 5900 eval $cacheid=no 5901fi 5902rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5903 conftest$ac_exeext conftest.$ac_ext 5904fi 5905 5906 5907 CFLAGS="$xorg_testset_save_CFLAGS" 5908 5909 eval supported=\$$cacheid 5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5911printf "%s\n" "$supported" >&6; } 5912 if test "$supported" = "yes" ; then 5913 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5914 found="yes" 5915 fi 5916 fi 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932xorg_testset_save_CFLAGS="$CFLAGS" 5933 5934if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5937printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5938if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5939then : 5940 printf %s "(cached) " >&6 5941else $as_nop 5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5943/* end confdefs.h. */ 5944int i; 5945_ACEOF 5946if ac_fn_c_try_compile "$LINENO" 5947then : 5948 xorg_cv_cc_flag_unknown_warning_option=yes 5949else $as_nop 5950 xorg_cv_cc_flag_unknown_warning_option=no 5951fi 5952rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5953fi 5954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5955printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5956 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5957 CFLAGS="$xorg_testset_save_CFLAGS" 5958fi 5959 5960if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5963 fi 5964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5966printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5967if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5968then : 5969 printf %s "(cached) " >&6 5970else $as_nop 5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5972/* end confdefs.h. */ 5973int i; 5974_ACEOF 5975if ac_fn_c_try_compile "$LINENO" 5976then : 5977 xorg_cv_cc_flag_unused_command_line_argument=yes 5978else $as_nop 5979 xorg_cv_cc_flag_unused_command_line_argument=no 5980fi 5981rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5982fi 5983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5984printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5985 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5986 CFLAGS="$xorg_testset_save_CFLAGS" 5987fi 5988 5989found="no" 5990 5991 if test $found = "no" ; then 5992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5994 fi 5995 5996 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5998 fi 5999 6000 CFLAGS="$CFLAGS -Wold-style-definition" 6001 6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6003printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6004 cacheid=xorg_cv_cc_flag__Wold_style_definition 6005 if eval test \${$cacheid+y} 6006then : 6007 printf %s "(cached) " >&6 6008else $as_nop 6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6010/* end confdefs.h. */ 6011int i; 6012int 6013main (void) 6014{ 6015 6016 ; 6017 return 0; 6018} 6019_ACEOF 6020if ac_fn_c_try_link "$LINENO" 6021then : 6022 eval $cacheid=yes 6023else $as_nop 6024 eval $cacheid=no 6025fi 6026rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6027 conftest$ac_exeext conftest.$ac_ext 6028fi 6029 6030 6031 CFLAGS="$xorg_testset_save_CFLAGS" 6032 6033 eval supported=\$$cacheid 6034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6035printf "%s\n" "$supported" >&6; } 6036 if test "$supported" = "yes" ; then 6037 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6038 found="yes" 6039 fi 6040 fi 6041 6042 if test $found = "no" ; then 6043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6045 fi 6046 6047 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6049 fi 6050 6051 CFLAGS="$CFLAGS -fd" 6052 6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6054printf %s "checking if $CC supports -fd... " >&6; } 6055 cacheid=xorg_cv_cc_flag__fd 6056 if eval test \${$cacheid+y} 6057then : 6058 printf %s "(cached) " >&6 6059else $as_nop 6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6061/* end confdefs.h. */ 6062int i; 6063int 6064main (void) 6065{ 6066 6067 ; 6068 return 0; 6069} 6070_ACEOF 6071if ac_fn_c_try_link "$LINENO" 6072then : 6073 eval $cacheid=yes 6074else $as_nop 6075 eval $cacheid=no 6076fi 6077rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6078 conftest$ac_exeext conftest.$ac_ext 6079fi 6080 6081 6082 CFLAGS="$xorg_testset_save_CFLAGS" 6083 6084 eval supported=\$$cacheid 6085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6086printf "%s\n" "$supported" >&6; } 6087 if test "$supported" = "yes" ; then 6088 BASE_CFLAGS="$BASE_CFLAGS -fd" 6089 found="yes" 6090 fi 6091 fi 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107xorg_testset_save_CFLAGS="$CFLAGS" 6108 6109if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6112printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6113if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6114then : 6115 printf %s "(cached) " >&6 6116else $as_nop 6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6118/* end confdefs.h. */ 6119int i; 6120_ACEOF 6121if ac_fn_c_try_compile "$LINENO" 6122then : 6123 xorg_cv_cc_flag_unknown_warning_option=yes 6124else $as_nop 6125 xorg_cv_cc_flag_unknown_warning_option=no 6126fi 6127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6128fi 6129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6130printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6131 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6132 CFLAGS="$xorg_testset_save_CFLAGS" 6133fi 6134 6135if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6138 fi 6139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6141printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6142if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6143then : 6144 printf %s "(cached) " >&6 6145else $as_nop 6146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6147/* end confdefs.h. */ 6148int i; 6149_ACEOF 6150if ac_fn_c_try_compile "$LINENO" 6151then : 6152 xorg_cv_cc_flag_unused_command_line_argument=yes 6153else $as_nop 6154 xorg_cv_cc_flag_unused_command_line_argument=no 6155fi 6156rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6157fi 6158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6159printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6160 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6161 CFLAGS="$xorg_testset_save_CFLAGS" 6162fi 6163 6164found="no" 6165 6166 if test $found = "no" ; then 6167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6169 fi 6170 6171 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6173 fi 6174 6175 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6176 6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6178printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6179 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6180 if eval test \${$cacheid+y} 6181then : 6182 printf %s "(cached) " >&6 6183else $as_nop 6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6185/* end confdefs.h. */ 6186int i; 6187int 6188main (void) 6189{ 6190 6191 ; 6192 return 0; 6193} 6194_ACEOF 6195if ac_fn_c_try_link "$LINENO" 6196then : 6197 eval $cacheid=yes 6198else $as_nop 6199 eval $cacheid=no 6200fi 6201rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6202 conftest$ac_exeext conftest.$ac_ext 6203fi 6204 6205 6206 CFLAGS="$xorg_testset_save_CFLAGS" 6207 6208 eval supported=\$$cacheid 6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6210printf "%s\n" "$supported" >&6; } 6211 if test "$supported" = "yes" ; then 6212 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6213 found="yes" 6214 fi 6215 fi 6216 6217 6218 6219 6220 6221# This chunk adds additional warnings that could catch undesired effects. 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235xorg_testset_save_CFLAGS="$CFLAGS" 6236 6237if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6240printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6241if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6242then : 6243 printf %s "(cached) " >&6 6244else $as_nop 6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6246/* end confdefs.h. */ 6247int i; 6248_ACEOF 6249if ac_fn_c_try_compile "$LINENO" 6250then : 6251 xorg_cv_cc_flag_unknown_warning_option=yes 6252else $as_nop 6253 xorg_cv_cc_flag_unknown_warning_option=no 6254fi 6255rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6256fi 6257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6258printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6259 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6260 CFLAGS="$xorg_testset_save_CFLAGS" 6261fi 6262 6263if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6266 fi 6267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6269printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6270if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6271then : 6272 printf %s "(cached) " >&6 6273else $as_nop 6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6275/* end confdefs.h. */ 6276int i; 6277_ACEOF 6278if ac_fn_c_try_compile "$LINENO" 6279then : 6280 xorg_cv_cc_flag_unused_command_line_argument=yes 6281else $as_nop 6282 xorg_cv_cc_flag_unused_command_line_argument=no 6283fi 6284rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6285fi 6286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6287printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6289 CFLAGS="$xorg_testset_save_CFLAGS" 6290fi 6291 6292found="no" 6293 6294 if test $found = "no" ; then 6295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6297 fi 6298 6299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6301 fi 6302 6303 CFLAGS="$CFLAGS -Wunused" 6304 6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6306printf %s "checking if $CC supports -Wunused... " >&6; } 6307 cacheid=xorg_cv_cc_flag__Wunused 6308 if eval test \${$cacheid+y} 6309then : 6310 printf %s "(cached) " >&6 6311else $as_nop 6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6313/* end confdefs.h. */ 6314int i; 6315int 6316main (void) 6317{ 6318 6319 ; 6320 return 0; 6321} 6322_ACEOF 6323if ac_fn_c_try_link "$LINENO" 6324then : 6325 eval $cacheid=yes 6326else $as_nop 6327 eval $cacheid=no 6328fi 6329rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6330 conftest$ac_exeext conftest.$ac_ext 6331fi 6332 6333 6334 CFLAGS="$xorg_testset_save_CFLAGS" 6335 6336 eval supported=\$$cacheid 6337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6338printf "%s\n" "$supported" >&6; } 6339 if test "$supported" = "yes" ; then 6340 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6341 found="yes" 6342 fi 6343 fi 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359xorg_testset_save_CFLAGS="$CFLAGS" 6360 6361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6364printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6365if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6366then : 6367 printf %s "(cached) " >&6 6368else $as_nop 6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6370/* end confdefs.h. */ 6371int i; 6372_ACEOF 6373if ac_fn_c_try_compile "$LINENO" 6374then : 6375 xorg_cv_cc_flag_unknown_warning_option=yes 6376else $as_nop 6377 xorg_cv_cc_flag_unknown_warning_option=no 6378fi 6379rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6380fi 6381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6382printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6384 CFLAGS="$xorg_testset_save_CFLAGS" 6385fi 6386 6387if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6390 fi 6391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6393printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6394if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6395then : 6396 printf %s "(cached) " >&6 6397else $as_nop 6398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6399/* end confdefs.h. */ 6400int i; 6401_ACEOF 6402if ac_fn_c_try_compile "$LINENO" 6403then : 6404 xorg_cv_cc_flag_unused_command_line_argument=yes 6405else $as_nop 6406 xorg_cv_cc_flag_unused_command_line_argument=no 6407fi 6408rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6409fi 6410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6411printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6412 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6413 CFLAGS="$xorg_testset_save_CFLAGS" 6414fi 6415 6416found="no" 6417 6418 if test $found = "no" ; then 6419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6421 fi 6422 6423 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6425 fi 6426 6427 CFLAGS="$CFLAGS -Wuninitialized" 6428 6429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6430printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6431 cacheid=xorg_cv_cc_flag__Wuninitialized 6432 if eval test \${$cacheid+y} 6433then : 6434 printf %s "(cached) " >&6 6435else $as_nop 6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6437/* end confdefs.h. */ 6438int i; 6439int 6440main (void) 6441{ 6442 6443 ; 6444 return 0; 6445} 6446_ACEOF 6447if ac_fn_c_try_link "$LINENO" 6448then : 6449 eval $cacheid=yes 6450else $as_nop 6451 eval $cacheid=no 6452fi 6453rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6454 conftest$ac_exeext conftest.$ac_ext 6455fi 6456 6457 6458 CFLAGS="$xorg_testset_save_CFLAGS" 6459 6460 eval supported=\$$cacheid 6461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6462printf "%s\n" "$supported" >&6; } 6463 if test "$supported" = "yes" ; then 6464 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6465 found="yes" 6466 fi 6467 fi 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483xorg_testset_save_CFLAGS="$CFLAGS" 6484 6485if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6488printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6489if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6490then : 6491 printf %s "(cached) " >&6 6492else $as_nop 6493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6494/* end confdefs.h. */ 6495int i; 6496_ACEOF 6497if ac_fn_c_try_compile "$LINENO" 6498then : 6499 xorg_cv_cc_flag_unknown_warning_option=yes 6500else $as_nop 6501 xorg_cv_cc_flag_unknown_warning_option=no 6502fi 6503rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6504fi 6505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6506printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6508 CFLAGS="$xorg_testset_save_CFLAGS" 6509fi 6510 6511if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6514 fi 6515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6517printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6518if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6519then : 6520 printf %s "(cached) " >&6 6521else $as_nop 6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6523/* end confdefs.h. */ 6524int i; 6525_ACEOF 6526if ac_fn_c_try_compile "$LINENO" 6527then : 6528 xorg_cv_cc_flag_unused_command_line_argument=yes 6529else $as_nop 6530 xorg_cv_cc_flag_unused_command_line_argument=no 6531fi 6532rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6533fi 6534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6535printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6537 CFLAGS="$xorg_testset_save_CFLAGS" 6538fi 6539 6540found="no" 6541 6542 if test $found = "no" ; then 6543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6545 fi 6546 6547 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6549 fi 6550 6551 CFLAGS="$CFLAGS -Wshadow" 6552 6553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6554printf %s "checking if $CC supports -Wshadow... " >&6; } 6555 cacheid=xorg_cv_cc_flag__Wshadow 6556 if eval test \${$cacheid+y} 6557then : 6558 printf %s "(cached) " >&6 6559else $as_nop 6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6561/* end confdefs.h. */ 6562int i; 6563int 6564main (void) 6565{ 6566 6567 ; 6568 return 0; 6569} 6570_ACEOF 6571if ac_fn_c_try_link "$LINENO" 6572then : 6573 eval $cacheid=yes 6574else $as_nop 6575 eval $cacheid=no 6576fi 6577rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6578 conftest$ac_exeext conftest.$ac_ext 6579fi 6580 6581 6582 CFLAGS="$xorg_testset_save_CFLAGS" 6583 6584 eval supported=\$$cacheid 6585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6586printf "%s\n" "$supported" >&6; } 6587 if test "$supported" = "yes" ; then 6588 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6589 found="yes" 6590 fi 6591 fi 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607xorg_testset_save_CFLAGS="$CFLAGS" 6608 6609if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6612printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6613if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6614then : 6615 printf %s "(cached) " >&6 6616else $as_nop 6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6618/* end confdefs.h. */ 6619int i; 6620_ACEOF 6621if ac_fn_c_try_compile "$LINENO" 6622then : 6623 xorg_cv_cc_flag_unknown_warning_option=yes 6624else $as_nop 6625 xorg_cv_cc_flag_unknown_warning_option=no 6626fi 6627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6628fi 6629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6630printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6641printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6642if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6643then : 6644 printf %s "(cached) " >&6 6645else $as_nop 6646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6647/* end confdefs.h. */ 6648int i; 6649_ACEOF 6650if ac_fn_c_try_compile "$LINENO" 6651then : 6652 xorg_cv_cc_flag_unused_command_line_argument=yes 6653else $as_nop 6654 xorg_cv_cc_flag_unused_command_line_argument=no 6655fi 6656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6657fi 6658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6659printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6661 CFLAGS="$xorg_testset_save_CFLAGS" 6662fi 6663 6664found="no" 6665 6666 if test $found = "no" ; then 6667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6669 fi 6670 6671 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6673 fi 6674 6675 CFLAGS="$CFLAGS -Wmissing-noreturn" 6676 6677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6678printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6679 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6680 if eval test \${$cacheid+y} 6681then : 6682 printf %s "(cached) " >&6 6683else $as_nop 6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6685/* end confdefs.h. */ 6686int i; 6687int 6688main (void) 6689{ 6690 6691 ; 6692 return 0; 6693} 6694_ACEOF 6695if ac_fn_c_try_link "$LINENO" 6696then : 6697 eval $cacheid=yes 6698else $as_nop 6699 eval $cacheid=no 6700fi 6701rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6702 conftest$ac_exeext conftest.$ac_ext 6703fi 6704 6705 6706 CFLAGS="$xorg_testset_save_CFLAGS" 6707 6708 eval supported=\$$cacheid 6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6710printf "%s\n" "$supported" >&6; } 6711 if test "$supported" = "yes" ; then 6712 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6713 found="yes" 6714 fi 6715 fi 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731xorg_testset_save_CFLAGS="$CFLAGS" 6732 6733if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6736printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6737if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6738then : 6739 printf %s "(cached) " >&6 6740else $as_nop 6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6742/* end confdefs.h. */ 6743int i; 6744_ACEOF 6745if ac_fn_c_try_compile "$LINENO" 6746then : 6747 xorg_cv_cc_flag_unknown_warning_option=yes 6748else $as_nop 6749 xorg_cv_cc_flag_unknown_warning_option=no 6750fi 6751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6752fi 6753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6754printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6755 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6756 CFLAGS="$xorg_testset_save_CFLAGS" 6757fi 6758 6759if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6762 fi 6763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6765printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6766if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6767then : 6768 printf %s "(cached) " >&6 6769else $as_nop 6770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6771/* end confdefs.h. */ 6772int i; 6773_ACEOF 6774if ac_fn_c_try_compile "$LINENO" 6775then : 6776 xorg_cv_cc_flag_unused_command_line_argument=yes 6777else $as_nop 6778 xorg_cv_cc_flag_unused_command_line_argument=no 6779fi 6780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6781fi 6782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6783printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6784 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6785 CFLAGS="$xorg_testset_save_CFLAGS" 6786fi 6787 6788found="no" 6789 6790 if test $found = "no" ; then 6791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6793 fi 6794 6795 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6797 fi 6798 6799 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6800 6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6802printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6803 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6804 if eval test \${$cacheid+y} 6805then : 6806 printf %s "(cached) " >&6 6807else $as_nop 6808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6809/* end confdefs.h. */ 6810int i; 6811int 6812main (void) 6813{ 6814 6815 ; 6816 return 0; 6817} 6818_ACEOF 6819if ac_fn_c_try_link "$LINENO" 6820then : 6821 eval $cacheid=yes 6822else $as_nop 6823 eval $cacheid=no 6824fi 6825rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6826 conftest$ac_exeext conftest.$ac_ext 6827fi 6828 6829 6830 CFLAGS="$xorg_testset_save_CFLAGS" 6831 6832 eval supported=\$$cacheid 6833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6834printf "%s\n" "$supported" >&6; } 6835 if test "$supported" = "yes" ; then 6836 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6837 found="yes" 6838 fi 6839 fi 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855xorg_testset_save_CFLAGS="$CFLAGS" 6856 6857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6860printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6861if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6862then : 6863 printf %s "(cached) " >&6 6864else $as_nop 6865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6866/* end confdefs.h. */ 6867int i; 6868_ACEOF 6869if ac_fn_c_try_compile "$LINENO" 6870then : 6871 xorg_cv_cc_flag_unknown_warning_option=yes 6872else $as_nop 6873 xorg_cv_cc_flag_unknown_warning_option=no 6874fi 6875rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6876fi 6877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6878printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6889printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6890if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6891then : 6892 printf %s "(cached) " >&6 6893else $as_nop 6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6895/* end confdefs.h. */ 6896int i; 6897_ACEOF 6898if ac_fn_c_try_compile "$LINENO" 6899then : 6900 xorg_cv_cc_flag_unused_command_line_argument=yes 6901else $as_nop 6902 xorg_cv_cc_flag_unused_command_line_argument=no 6903fi 6904rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6905fi 6906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6907printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6909 CFLAGS="$xorg_testset_save_CFLAGS" 6910fi 6911 6912found="no" 6913 6914 if test $found = "no" ; then 6915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6917 fi 6918 6919 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6921 fi 6922 6923 CFLAGS="$CFLAGS -Wredundant-decls" 6924 6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6926printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 6927 cacheid=xorg_cv_cc_flag__Wredundant_decls 6928 if eval test \${$cacheid+y} 6929then : 6930 printf %s "(cached) " >&6 6931else $as_nop 6932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6933/* end confdefs.h. */ 6934int i; 6935int 6936main (void) 6937{ 6938 6939 ; 6940 return 0; 6941} 6942_ACEOF 6943if ac_fn_c_try_link "$LINENO" 6944then : 6945 eval $cacheid=yes 6946else $as_nop 6947 eval $cacheid=no 6948fi 6949rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6950 conftest$ac_exeext conftest.$ac_ext 6951fi 6952 6953 6954 CFLAGS="$xorg_testset_save_CFLAGS" 6955 6956 eval supported=\$$cacheid 6957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6958printf "%s\n" "$supported" >&6; } 6959 if test "$supported" = "yes" ; then 6960 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6961 found="yes" 6962 fi 6963 fi 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979xorg_testset_save_CFLAGS="$CFLAGS" 6980 6981if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6984printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6985if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6986then : 6987 printf %s "(cached) " >&6 6988else $as_nop 6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6990/* end confdefs.h. */ 6991int i; 6992_ACEOF 6993if ac_fn_c_try_compile "$LINENO" 6994then : 6995 xorg_cv_cc_flag_unknown_warning_option=yes 6996else $as_nop 6997 xorg_cv_cc_flag_unknown_warning_option=no 6998fi 6999rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7000fi 7001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7002printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7003 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7004 CFLAGS="$xorg_testset_save_CFLAGS" 7005fi 7006 7007if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7010 fi 7011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7013printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7014if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7015then : 7016 printf %s "(cached) " >&6 7017else $as_nop 7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7019/* end confdefs.h. */ 7020int i; 7021_ACEOF 7022if ac_fn_c_try_compile "$LINENO" 7023then : 7024 xorg_cv_cc_flag_unused_command_line_argument=yes 7025else $as_nop 7026 xorg_cv_cc_flag_unused_command_line_argument=no 7027fi 7028rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7029fi 7030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7031printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7032 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7033 CFLAGS="$xorg_testset_save_CFLAGS" 7034fi 7035 7036found="no" 7037 7038 if test $found = "no" ; then 7039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7041 fi 7042 7043 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7045 fi 7046 7047 CFLAGS="$CFLAGS -Wlogical-op" 7048 7049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7050printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7051 cacheid=xorg_cv_cc_flag__Wlogical_op 7052 if eval test \${$cacheid+y} 7053then : 7054 printf %s "(cached) " >&6 7055else $as_nop 7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7057/* end confdefs.h. */ 7058int i; 7059int 7060main (void) 7061{ 7062 7063 ; 7064 return 0; 7065} 7066_ACEOF 7067if ac_fn_c_try_link "$LINENO" 7068then : 7069 eval $cacheid=yes 7070else $as_nop 7071 eval $cacheid=no 7072fi 7073rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7074 conftest$ac_exeext conftest.$ac_ext 7075fi 7076 7077 7078 CFLAGS="$xorg_testset_save_CFLAGS" 7079 7080 eval supported=\$$cacheid 7081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7082printf "%s\n" "$supported" >&6; } 7083 if test "$supported" = "yes" ; then 7084 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7085 found="yes" 7086 fi 7087 fi 7088 7089 7090 7091# These are currently disabled because they are noisy. They will be enabled 7092# in the future once the codebase is sufficiently modernized to silence 7093# them. For now, I don't want them to drown out the other warnings. 7094# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7095# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7096# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7097 7098# Turn some warnings into errors, so we don't accidentally get successful builds 7099# when there are problems that should be fixed. 7100 7101if test "x$SELECTIVE_WERROR" = "xyes" ; then 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115xorg_testset_save_CFLAGS="$CFLAGS" 7116 7117if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7120printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7121if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7122then : 7123 printf %s "(cached) " >&6 7124else $as_nop 7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7126/* end confdefs.h. */ 7127int i; 7128_ACEOF 7129if ac_fn_c_try_compile "$LINENO" 7130then : 7131 xorg_cv_cc_flag_unknown_warning_option=yes 7132else $as_nop 7133 xorg_cv_cc_flag_unknown_warning_option=no 7134fi 7135rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7136fi 7137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7138printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7139 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7140 CFLAGS="$xorg_testset_save_CFLAGS" 7141fi 7142 7143if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7146 fi 7147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7149printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7150if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7151then : 7152 printf %s "(cached) " >&6 7153else $as_nop 7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7155/* end confdefs.h. */ 7156int i; 7157_ACEOF 7158if ac_fn_c_try_compile "$LINENO" 7159then : 7160 xorg_cv_cc_flag_unused_command_line_argument=yes 7161else $as_nop 7162 xorg_cv_cc_flag_unused_command_line_argument=no 7163fi 7164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7165fi 7166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7167printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7168 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7169 CFLAGS="$xorg_testset_save_CFLAGS" 7170fi 7171 7172found="no" 7173 7174 if test $found = "no" ; then 7175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7177 fi 7178 7179 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7181 fi 7182 7183 CFLAGS="$CFLAGS -Werror=implicit" 7184 7185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7186printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7187 cacheid=xorg_cv_cc_flag__Werror_implicit 7188 if eval test \${$cacheid+y} 7189then : 7190 printf %s "(cached) " >&6 7191else $as_nop 7192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7193/* end confdefs.h. */ 7194int i; 7195int 7196main (void) 7197{ 7198 7199 ; 7200 return 0; 7201} 7202_ACEOF 7203if ac_fn_c_try_link "$LINENO" 7204then : 7205 eval $cacheid=yes 7206else $as_nop 7207 eval $cacheid=no 7208fi 7209rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7210 conftest$ac_exeext conftest.$ac_ext 7211fi 7212 7213 7214 CFLAGS="$xorg_testset_save_CFLAGS" 7215 7216 eval supported=\$$cacheid 7217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7218printf "%s\n" "$supported" >&6; } 7219 if test "$supported" = "yes" ; then 7220 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7221 found="yes" 7222 fi 7223 fi 7224 7225 if test $found = "no" ; then 7226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7228 fi 7229 7230 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7232 fi 7233 7234 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7235 7236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7237printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7238 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7239 if eval test \${$cacheid+y} 7240then : 7241 printf %s "(cached) " >&6 7242else $as_nop 7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7244/* end confdefs.h. */ 7245int i; 7246int 7247main (void) 7248{ 7249 7250 ; 7251 return 0; 7252} 7253_ACEOF 7254if ac_fn_c_try_link "$LINENO" 7255then : 7256 eval $cacheid=yes 7257else $as_nop 7258 eval $cacheid=no 7259fi 7260rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7261 conftest$ac_exeext conftest.$ac_ext 7262fi 7263 7264 7265 CFLAGS="$xorg_testset_save_CFLAGS" 7266 7267 eval supported=\$$cacheid 7268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7269printf "%s\n" "$supported" >&6; } 7270 if test "$supported" = "yes" ; then 7271 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7272 found="yes" 7273 fi 7274 fi 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290xorg_testset_save_CFLAGS="$CFLAGS" 7291 7292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7295printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7296if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7297then : 7298 printf %s "(cached) " >&6 7299else $as_nop 7300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7301/* end confdefs.h. */ 7302int i; 7303_ACEOF 7304if ac_fn_c_try_compile "$LINENO" 7305then : 7306 xorg_cv_cc_flag_unknown_warning_option=yes 7307else $as_nop 7308 xorg_cv_cc_flag_unknown_warning_option=no 7309fi 7310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7311fi 7312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7313printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7315 CFLAGS="$xorg_testset_save_CFLAGS" 7316fi 7317 7318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7321 fi 7322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7324printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7325if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7326then : 7327 printf %s "(cached) " >&6 7328else $as_nop 7329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7330/* end confdefs.h. */ 7331int i; 7332_ACEOF 7333if ac_fn_c_try_compile "$LINENO" 7334then : 7335 xorg_cv_cc_flag_unused_command_line_argument=yes 7336else $as_nop 7337 xorg_cv_cc_flag_unused_command_line_argument=no 7338fi 7339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7340fi 7341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7342printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7343 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7344 CFLAGS="$xorg_testset_save_CFLAGS" 7345fi 7346 7347found="no" 7348 7349 if test $found = "no" ; then 7350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7352 fi 7353 7354 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7356 fi 7357 7358 CFLAGS="$CFLAGS -Werror=nonnull" 7359 7360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7361printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7362 cacheid=xorg_cv_cc_flag__Werror_nonnull 7363 if eval test \${$cacheid+y} 7364then : 7365 printf %s "(cached) " >&6 7366else $as_nop 7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7368/* end confdefs.h. */ 7369int i; 7370int 7371main (void) 7372{ 7373 7374 ; 7375 return 0; 7376} 7377_ACEOF 7378if ac_fn_c_try_link "$LINENO" 7379then : 7380 eval $cacheid=yes 7381else $as_nop 7382 eval $cacheid=no 7383fi 7384rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7385 conftest$ac_exeext conftest.$ac_ext 7386fi 7387 7388 7389 CFLAGS="$xorg_testset_save_CFLAGS" 7390 7391 eval supported=\$$cacheid 7392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7393printf "%s\n" "$supported" >&6; } 7394 if test "$supported" = "yes" ; then 7395 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7396 found="yes" 7397 fi 7398 fi 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414xorg_testset_save_CFLAGS="$CFLAGS" 7415 7416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7419printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7420if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7421then : 7422 printf %s "(cached) " >&6 7423else $as_nop 7424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7425/* end confdefs.h. */ 7426int i; 7427_ACEOF 7428if ac_fn_c_try_compile "$LINENO" 7429then : 7430 xorg_cv_cc_flag_unknown_warning_option=yes 7431else $as_nop 7432 xorg_cv_cc_flag_unknown_warning_option=no 7433fi 7434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7435fi 7436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7437printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7439 CFLAGS="$xorg_testset_save_CFLAGS" 7440fi 7441 7442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7445 fi 7446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7448printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7449if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7450then : 7451 printf %s "(cached) " >&6 7452else $as_nop 7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7454/* end confdefs.h. */ 7455int i; 7456_ACEOF 7457if ac_fn_c_try_compile "$LINENO" 7458then : 7459 xorg_cv_cc_flag_unused_command_line_argument=yes 7460else $as_nop 7461 xorg_cv_cc_flag_unused_command_line_argument=no 7462fi 7463rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7464fi 7465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7466printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7468 CFLAGS="$xorg_testset_save_CFLAGS" 7469fi 7470 7471found="no" 7472 7473 if test $found = "no" ; then 7474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7476 fi 7477 7478 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7480 fi 7481 7482 CFLAGS="$CFLAGS -Werror=init-self" 7483 7484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7485printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7486 cacheid=xorg_cv_cc_flag__Werror_init_self 7487 if eval test \${$cacheid+y} 7488then : 7489 printf %s "(cached) " >&6 7490else $as_nop 7491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7492/* end confdefs.h. */ 7493int i; 7494int 7495main (void) 7496{ 7497 7498 ; 7499 return 0; 7500} 7501_ACEOF 7502if ac_fn_c_try_link "$LINENO" 7503then : 7504 eval $cacheid=yes 7505else $as_nop 7506 eval $cacheid=no 7507fi 7508rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7509 conftest$ac_exeext conftest.$ac_ext 7510fi 7511 7512 7513 CFLAGS="$xorg_testset_save_CFLAGS" 7514 7515 eval supported=\$$cacheid 7516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7517printf "%s\n" "$supported" >&6; } 7518 if test "$supported" = "yes" ; then 7519 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7520 found="yes" 7521 fi 7522 fi 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538xorg_testset_save_CFLAGS="$CFLAGS" 7539 7540if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7543printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7544if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7545then : 7546 printf %s "(cached) " >&6 7547else $as_nop 7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7549/* end confdefs.h. */ 7550int i; 7551_ACEOF 7552if ac_fn_c_try_compile "$LINENO" 7553then : 7554 xorg_cv_cc_flag_unknown_warning_option=yes 7555else $as_nop 7556 xorg_cv_cc_flag_unknown_warning_option=no 7557fi 7558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7559fi 7560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7561printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7562 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7563 CFLAGS="$xorg_testset_save_CFLAGS" 7564fi 7565 7566if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7569 fi 7570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7572printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7573if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7574then : 7575 printf %s "(cached) " >&6 7576else $as_nop 7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7578/* end confdefs.h. */ 7579int i; 7580_ACEOF 7581if ac_fn_c_try_compile "$LINENO" 7582then : 7583 xorg_cv_cc_flag_unused_command_line_argument=yes 7584else $as_nop 7585 xorg_cv_cc_flag_unused_command_line_argument=no 7586fi 7587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7588fi 7589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7590printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7591 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7592 CFLAGS="$xorg_testset_save_CFLAGS" 7593fi 7594 7595found="no" 7596 7597 if test $found = "no" ; then 7598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7600 fi 7601 7602 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7604 fi 7605 7606 CFLAGS="$CFLAGS -Werror=main" 7607 7608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7609printf %s "checking if $CC supports -Werror=main... " >&6; } 7610 cacheid=xorg_cv_cc_flag__Werror_main 7611 if eval test \${$cacheid+y} 7612then : 7613 printf %s "(cached) " >&6 7614else $as_nop 7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7616/* end confdefs.h. */ 7617int i; 7618int 7619main (void) 7620{ 7621 7622 ; 7623 return 0; 7624} 7625_ACEOF 7626if ac_fn_c_try_link "$LINENO" 7627then : 7628 eval $cacheid=yes 7629else $as_nop 7630 eval $cacheid=no 7631fi 7632rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7633 conftest$ac_exeext conftest.$ac_ext 7634fi 7635 7636 7637 CFLAGS="$xorg_testset_save_CFLAGS" 7638 7639 eval supported=\$$cacheid 7640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7641printf "%s\n" "$supported" >&6; } 7642 if test "$supported" = "yes" ; then 7643 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7644 found="yes" 7645 fi 7646 fi 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662xorg_testset_save_CFLAGS="$CFLAGS" 7663 7664if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7667printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7668if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7669then : 7670 printf %s "(cached) " >&6 7671else $as_nop 7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7673/* end confdefs.h. */ 7674int i; 7675_ACEOF 7676if ac_fn_c_try_compile "$LINENO" 7677then : 7678 xorg_cv_cc_flag_unknown_warning_option=yes 7679else $as_nop 7680 xorg_cv_cc_flag_unknown_warning_option=no 7681fi 7682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7683fi 7684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7685printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7687 CFLAGS="$xorg_testset_save_CFLAGS" 7688fi 7689 7690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7693 fi 7694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7696printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7697if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7698then : 7699 printf %s "(cached) " >&6 7700else $as_nop 7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7702/* end confdefs.h. */ 7703int i; 7704_ACEOF 7705if ac_fn_c_try_compile "$LINENO" 7706then : 7707 xorg_cv_cc_flag_unused_command_line_argument=yes 7708else $as_nop 7709 xorg_cv_cc_flag_unused_command_line_argument=no 7710fi 7711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7712fi 7713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7714printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7716 CFLAGS="$xorg_testset_save_CFLAGS" 7717fi 7718 7719found="no" 7720 7721 if test $found = "no" ; then 7722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7724 fi 7725 7726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7728 fi 7729 7730 CFLAGS="$CFLAGS -Werror=missing-braces" 7731 7732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7733printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7734 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7735 if eval test \${$cacheid+y} 7736then : 7737 printf %s "(cached) " >&6 7738else $as_nop 7739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7740/* end confdefs.h. */ 7741int i; 7742int 7743main (void) 7744{ 7745 7746 ; 7747 return 0; 7748} 7749_ACEOF 7750if ac_fn_c_try_link "$LINENO" 7751then : 7752 eval $cacheid=yes 7753else $as_nop 7754 eval $cacheid=no 7755fi 7756rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7757 conftest$ac_exeext conftest.$ac_ext 7758fi 7759 7760 7761 CFLAGS="$xorg_testset_save_CFLAGS" 7762 7763 eval supported=\$$cacheid 7764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7765printf "%s\n" "$supported" >&6; } 7766 if test "$supported" = "yes" ; then 7767 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7768 found="yes" 7769 fi 7770 fi 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786xorg_testset_save_CFLAGS="$CFLAGS" 7787 7788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7791printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7792if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7793then : 7794 printf %s "(cached) " >&6 7795else $as_nop 7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7797/* end confdefs.h. */ 7798int i; 7799_ACEOF 7800if ac_fn_c_try_compile "$LINENO" 7801then : 7802 xorg_cv_cc_flag_unknown_warning_option=yes 7803else $as_nop 7804 xorg_cv_cc_flag_unknown_warning_option=no 7805fi 7806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7807fi 7808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7809printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7810 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7811 CFLAGS="$xorg_testset_save_CFLAGS" 7812fi 7813 7814if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7817 fi 7818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7820printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7821if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7822then : 7823 printf %s "(cached) " >&6 7824else $as_nop 7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7826/* end confdefs.h. */ 7827int i; 7828_ACEOF 7829if ac_fn_c_try_compile "$LINENO" 7830then : 7831 xorg_cv_cc_flag_unused_command_line_argument=yes 7832else $as_nop 7833 xorg_cv_cc_flag_unused_command_line_argument=no 7834fi 7835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7836fi 7837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7838printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7839 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7840 CFLAGS="$xorg_testset_save_CFLAGS" 7841fi 7842 7843found="no" 7844 7845 if test $found = "no" ; then 7846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7848 fi 7849 7850 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7852 fi 7853 7854 CFLAGS="$CFLAGS -Werror=sequence-point" 7855 7856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7857printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7858 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7859 if eval test \${$cacheid+y} 7860then : 7861 printf %s "(cached) " >&6 7862else $as_nop 7863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7864/* end confdefs.h. */ 7865int i; 7866int 7867main (void) 7868{ 7869 7870 ; 7871 return 0; 7872} 7873_ACEOF 7874if ac_fn_c_try_link "$LINENO" 7875then : 7876 eval $cacheid=yes 7877else $as_nop 7878 eval $cacheid=no 7879fi 7880rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7881 conftest$ac_exeext conftest.$ac_ext 7882fi 7883 7884 7885 CFLAGS="$xorg_testset_save_CFLAGS" 7886 7887 eval supported=\$$cacheid 7888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7889printf "%s\n" "$supported" >&6; } 7890 if test "$supported" = "yes" ; then 7891 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7892 found="yes" 7893 fi 7894 fi 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910xorg_testset_save_CFLAGS="$CFLAGS" 7911 7912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7915printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7916if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7917then : 7918 printf %s "(cached) " >&6 7919else $as_nop 7920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7921/* end confdefs.h. */ 7922int i; 7923_ACEOF 7924if ac_fn_c_try_compile "$LINENO" 7925then : 7926 xorg_cv_cc_flag_unknown_warning_option=yes 7927else $as_nop 7928 xorg_cv_cc_flag_unknown_warning_option=no 7929fi 7930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7931fi 7932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7933printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7935 CFLAGS="$xorg_testset_save_CFLAGS" 7936fi 7937 7938if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7941 fi 7942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7944printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7945if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7946then : 7947 printf %s "(cached) " >&6 7948else $as_nop 7949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7950/* end confdefs.h. */ 7951int i; 7952_ACEOF 7953if ac_fn_c_try_compile "$LINENO" 7954then : 7955 xorg_cv_cc_flag_unused_command_line_argument=yes 7956else $as_nop 7957 xorg_cv_cc_flag_unused_command_line_argument=no 7958fi 7959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7960fi 7961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7962printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7964 CFLAGS="$xorg_testset_save_CFLAGS" 7965fi 7966 7967found="no" 7968 7969 if test $found = "no" ; then 7970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7972 fi 7973 7974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7976 fi 7977 7978 CFLAGS="$CFLAGS -Werror=return-type" 7979 7980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7981printf %s "checking if $CC supports -Werror=return-type... " >&6; } 7982 cacheid=xorg_cv_cc_flag__Werror_return_type 7983 if eval test \${$cacheid+y} 7984then : 7985 printf %s "(cached) " >&6 7986else $as_nop 7987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7988/* end confdefs.h. */ 7989int i; 7990int 7991main (void) 7992{ 7993 7994 ; 7995 return 0; 7996} 7997_ACEOF 7998if ac_fn_c_try_link "$LINENO" 7999then : 8000 eval $cacheid=yes 8001else $as_nop 8002 eval $cacheid=no 8003fi 8004rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8005 conftest$ac_exeext conftest.$ac_ext 8006fi 8007 8008 8009 CFLAGS="$xorg_testset_save_CFLAGS" 8010 8011 eval supported=\$$cacheid 8012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8013printf "%s\n" "$supported" >&6; } 8014 if test "$supported" = "yes" ; then 8015 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8016 found="yes" 8017 fi 8018 fi 8019 8020 if test $found = "no" ; then 8021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8023 fi 8024 8025 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8027 fi 8028 8029 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8030 8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8032printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8033 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8034 if eval test \${$cacheid+y} 8035then : 8036 printf %s "(cached) " >&6 8037else $as_nop 8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8039/* end confdefs.h. */ 8040int i; 8041int 8042main (void) 8043{ 8044 8045 ; 8046 return 0; 8047} 8048_ACEOF 8049if ac_fn_c_try_link "$LINENO" 8050then : 8051 eval $cacheid=yes 8052else $as_nop 8053 eval $cacheid=no 8054fi 8055rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8056 conftest$ac_exeext conftest.$ac_ext 8057fi 8058 8059 8060 CFLAGS="$xorg_testset_save_CFLAGS" 8061 8062 eval supported=\$$cacheid 8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8064printf "%s\n" "$supported" >&6; } 8065 if test "$supported" = "yes" ; then 8066 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8067 found="yes" 8068 fi 8069 fi 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085xorg_testset_save_CFLAGS="$CFLAGS" 8086 8087if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8090printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8091if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8092then : 8093 printf %s "(cached) " >&6 8094else $as_nop 8095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8096/* end confdefs.h. */ 8097int i; 8098_ACEOF 8099if ac_fn_c_try_compile "$LINENO" 8100then : 8101 xorg_cv_cc_flag_unknown_warning_option=yes 8102else $as_nop 8103 xorg_cv_cc_flag_unknown_warning_option=no 8104fi 8105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8106fi 8107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8108printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8109 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8110 CFLAGS="$xorg_testset_save_CFLAGS" 8111fi 8112 8113if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8116 fi 8117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8119printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8120if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8121then : 8122 printf %s "(cached) " >&6 8123else $as_nop 8124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8125/* end confdefs.h. */ 8126int i; 8127_ACEOF 8128if ac_fn_c_try_compile "$LINENO" 8129then : 8130 xorg_cv_cc_flag_unused_command_line_argument=yes 8131else $as_nop 8132 xorg_cv_cc_flag_unused_command_line_argument=no 8133fi 8134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8135fi 8136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8137printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8139 CFLAGS="$xorg_testset_save_CFLAGS" 8140fi 8141 8142found="no" 8143 8144 if test $found = "no" ; then 8145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8147 fi 8148 8149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8151 fi 8152 8153 CFLAGS="$CFLAGS -Werror=trigraphs" 8154 8155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8156printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8157 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8158 if eval test \${$cacheid+y} 8159then : 8160 printf %s "(cached) " >&6 8161else $as_nop 8162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8163/* end confdefs.h. */ 8164int i; 8165int 8166main (void) 8167{ 8168 8169 ; 8170 return 0; 8171} 8172_ACEOF 8173if ac_fn_c_try_link "$LINENO" 8174then : 8175 eval $cacheid=yes 8176else $as_nop 8177 eval $cacheid=no 8178fi 8179rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8180 conftest$ac_exeext conftest.$ac_ext 8181fi 8182 8183 8184 CFLAGS="$xorg_testset_save_CFLAGS" 8185 8186 eval supported=\$$cacheid 8187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8188printf "%s\n" "$supported" >&6; } 8189 if test "$supported" = "yes" ; then 8190 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8191 found="yes" 8192 fi 8193 fi 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209xorg_testset_save_CFLAGS="$CFLAGS" 8210 8211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8214printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8215if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8216then : 8217 printf %s "(cached) " >&6 8218else $as_nop 8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8220/* end confdefs.h. */ 8221int i; 8222_ACEOF 8223if ac_fn_c_try_compile "$LINENO" 8224then : 8225 xorg_cv_cc_flag_unknown_warning_option=yes 8226else $as_nop 8227 xorg_cv_cc_flag_unknown_warning_option=no 8228fi 8229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8230fi 8231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8232printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8233 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8234 CFLAGS="$xorg_testset_save_CFLAGS" 8235fi 8236 8237if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8240 fi 8241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8243printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8244if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8245then : 8246 printf %s "(cached) " >&6 8247else $as_nop 8248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8249/* end confdefs.h. */ 8250int i; 8251_ACEOF 8252if ac_fn_c_try_compile "$LINENO" 8253then : 8254 xorg_cv_cc_flag_unused_command_line_argument=yes 8255else $as_nop 8256 xorg_cv_cc_flag_unused_command_line_argument=no 8257fi 8258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8259fi 8260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8261printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8263 CFLAGS="$xorg_testset_save_CFLAGS" 8264fi 8265 8266found="no" 8267 8268 if test $found = "no" ; then 8269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8271 fi 8272 8273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8275 fi 8276 8277 CFLAGS="$CFLAGS -Werror=array-bounds" 8278 8279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8280printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8281 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8282 if eval test \${$cacheid+y} 8283then : 8284 printf %s "(cached) " >&6 8285else $as_nop 8286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8287/* end confdefs.h. */ 8288int i; 8289int 8290main (void) 8291{ 8292 8293 ; 8294 return 0; 8295} 8296_ACEOF 8297if ac_fn_c_try_link "$LINENO" 8298then : 8299 eval $cacheid=yes 8300else $as_nop 8301 eval $cacheid=no 8302fi 8303rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8304 conftest$ac_exeext conftest.$ac_ext 8305fi 8306 8307 8308 CFLAGS="$xorg_testset_save_CFLAGS" 8309 8310 eval supported=\$$cacheid 8311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8312printf "%s\n" "$supported" >&6; } 8313 if test "$supported" = "yes" ; then 8314 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8315 found="yes" 8316 fi 8317 fi 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333xorg_testset_save_CFLAGS="$CFLAGS" 8334 8335if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8338printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8339if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8340then : 8341 printf %s "(cached) " >&6 8342else $as_nop 8343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8344/* end confdefs.h. */ 8345int i; 8346_ACEOF 8347if ac_fn_c_try_compile "$LINENO" 8348then : 8349 xorg_cv_cc_flag_unknown_warning_option=yes 8350else $as_nop 8351 xorg_cv_cc_flag_unknown_warning_option=no 8352fi 8353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8354fi 8355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8356printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8357 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8358 CFLAGS="$xorg_testset_save_CFLAGS" 8359fi 8360 8361if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8364 fi 8365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8367printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8368if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8369then : 8370 printf %s "(cached) " >&6 8371else $as_nop 8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8373/* end confdefs.h. */ 8374int i; 8375_ACEOF 8376if ac_fn_c_try_compile "$LINENO" 8377then : 8378 xorg_cv_cc_flag_unused_command_line_argument=yes 8379else $as_nop 8380 xorg_cv_cc_flag_unused_command_line_argument=no 8381fi 8382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8383fi 8384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8385printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8386 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8387 CFLAGS="$xorg_testset_save_CFLAGS" 8388fi 8389 8390found="no" 8391 8392 if test $found = "no" ; then 8393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8395 fi 8396 8397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8399 fi 8400 8401 CFLAGS="$CFLAGS -Werror=write-strings" 8402 8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8404printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8405 cacheid=xorg_cv_cc_flag__Werror_write_strings 8406 if eval test \${$cacheid+y} 8407then : 8408 printf %s "(cached) " >&6 8409else $as_nop 8410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8411/* end confdefs.h. */ 8412int i; 8413int 8414main (void) 8415{ 8416 8417 ; 8418 return 0; 8419} 8420_ACEOF 8421if ac_fn_c_try_link "$LINENO" 8422then : 8423 eval $cacheid=yes 8424else $as_nop 8425 eval $cacheid=no 8426fi 8427rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8428 conftest$ac_exeext conftest.$ac_ext 8429fi 8430 8431 8432 CFLAGS="$xorg_testset_save_CFLAGS" 8433 8434 eval supported=\$$cacheid 8435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8436printf "%s\n" "$supported" >&6; } 8437 if test "$supported" = "yes" ; then 8438 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8439 found="yes" 8440 fi 8441 fi 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457xorg_testset_save_CFLAGS="$CFLAGS" 8458 8459if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8462printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8463if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8464then : 8465 printf %s "(cached) " >&6 8466else $as_nop 8467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8468/* end confdefs.h. */ 8469int i; 8470_ACEOF 8471if ac_fn_c_try_compile "$LINENO" 8472then : 8473 xorg_cv_cc_flag_unknown_warning_option=yes 8474else $as_nop 8475 xorg_cv_cc_flag_unknown_warning_option=no 8476fi 8477rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8478fi 8479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8480printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8481 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8482 CFLAGS="$xorg_testset_save_CFLAGS" 8483fi 8484 8485if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8488 fi 8489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8491printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8492if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8493then : 8494 printf %s "(cached) " >&6 8495else $as_nop 8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8497/* end confdefs.h. */ 8498int i; 8499_ACEOF 8500if ac_fn_c_try_compile "$LINENO" 8501then : 8502 xorg_cv_cc_flag_unused_command_line_argument=yes 8503else $as_nop 8504 xorg_cv_cc_flag_unused_command_line_argument=no 8505fi 8506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8507fi 8508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8509printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8511 CFLAGS="$xorg_testset_save_CFLAGS" 8512fi 8513 8514found="no" 8515 8516 if test $found = "no" ; then 8517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8519 fi 8520 8521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8523 fi 8524 8525 CFLAGS="$CFLAGS -Werror=address" 8526 8527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8528printf %s "checking if $CC supports -Werror=address... " >&6; } 8529 cacheid=xorg_cv_cc_flag__Werror_address 8530 if eval test \${$cacheid+y} 8531then : 8532 printf %s "(cached) " >&6 8533else $as_nop 8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8535/* end confdefs.h. */ 8536int i; 8537int 8538main (void) 8539{ 8540 8541 ; 8542 return 0; 8543} 8544_ACEOF 8545if ac_fn_c_try_link "$LINENO" 8546then : 8547 eval $cacheid=yes 8548else $as_nop 8549 eval $cacheid=no 8550fi 8551rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8552 conftest$ac_exeext conftest.$ac_ext 8553fi 8554 8555 8556 CFLAGS="$xorg_testset_save_CFLAGS" 8557 8558 eval supported=\$$cacheid 8559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8560printf "%s\n" "$supported" >&6; } 8561 if test "$supported" = "yes" ; then 8562 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8563 found="yes" 8564 fi 8565 fi 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581xorg_testset_save_CFLAGS="$CFLAGS" 8582 8583if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8586printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8587if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8588then : 8589 printf %s "(cached) " >&6 8590else $as_nop 8591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8592/* end confdefs.h. */ 8593int i; 8594_ACEOF 8595if ac_fn_c_try_compile "$LINENO" 8596then : 8597 xorg_cv_cc_flag_unknown_warning_option=yes 8598else $as_nop 8599 xorg_cv_cc_flag_unknown_warning_option=no 8600fi 8601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8602fi 8603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8604printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8605 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8606 CFLAGS="$xorg_testset_save_CFLAGS" 8607fi 8608 8609if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8612 fi 8613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8615printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8616if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8617then : 8618 printf %s "(cached) " >&6 8619else $as_nop 8620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8621/* end confdefs.h. */ 8622int i; 8623_ACEOF 8624if ac_fn_c_try_compile "$LINENO" 8625then : 8626 xorg_cv_cc_flag_unused_command_line_argument=yes 8627else $as_nop 8628 xorg_cv_cc_flag_unused_command_line_argument=no 8629fi 8630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8631fi 8632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8633printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8634 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8635 CFLAGS="$xorg_testset_save_CFLAGS" 8636fi 8637 8638found="no" 8639 8640 if test $found = "no" ; then 8641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8643 fi 8644 8645 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8647 fi 8648 8649 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8650 8651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8652printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8653 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8654 if eval test \${$cacheid+y} 8655then : 8656 printf %s "(cached) " >&6 8657else $as_nop 8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8659/* end confdefs.h. */ 8660int i; 8661int 8662main (void) 8663{ 8664 8665 ; 8666 return 0; 8667} 8668_ACEOF 8669if ac_fn_c_try_link "$LINENO" 8670then : 8671 eval $cacheid=yes 8672else $as_nop 8673 eval $cacheid=no 8674fi 8675rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8676 conftest$ac_exeext conftest.$ac_ext 8677fi 8678 8679 8680 CFLAGS="$xorg_testset_save_CFLAGS" 8681 8682 eval supported=\$$cacheid 8683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8684printf "%s\n" "$supported" >&6; } 8685 if test "$supported" = "yes" ; then 8686 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8687 found="yes" 8688 fi 8689 fi 8690 8691 if test $found = "no" ; then 8692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8694 fi 8695 8696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8698 fi 8699 8700 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8701 8702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8703printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8704 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8705 if eval test \${$cacheid+y} 8706then : 8707 printf %s "(cached) " >&6 8708else $as_nop 8709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8710/* end confdefs.h. */ 8711int i; 8712int 8713main (void) 8714{ 8715 8716 ; 8717 return 0; 8718} 8719_ACEOF 8720if ac_fn_c_try_link "$LINENO" 8721then : 8722 eval $cacheid=yes 8723else $as_nop 8724 eval $cacheid=no 8725fi 8726rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8727 conftest$ac_exeext conftest.$ac_ext 8728fi 8729 8730 8731 CFLAGS="$xorg_testset_save_CFLAGS" 8732 8733 eval supported=\$$cacheid 8734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8735printf "%s\n" "$supported" >&6; } 8736 if test "$supported" = "yes" ; then 8737 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8738 found="yes" 8739 fi 8740 fi 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756xorg_testset_save_CFLAGS="$CFLAGS" 8757 8758if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8761printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8762if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8763then : 8764 printf %s "(cached) " >&6 8765else $as_nop 8766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8767/* end confdefs.h. */ 8768int i; 8769_ACEOF 8770if ac_fn_c_try_compile "$LINENO" 8771then : 8772 xorg_cv_cc_flag_unknown_warning_option=yes 8773else $as_nop 8774 xorg_cv_cc_flag_unknown_warning_option=no 8775fi 8776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8777fi 8778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8779printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8780 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8781 CFLAGS="$xorg_testset_save_CFLAGS" 8782fi 8783 8784if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8787 fi 8788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8790printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8791if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8792then : 8793 printf %s "(cached) " >&6 8794else $as_nop 8795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8796/* end confdefs.h. */ 8797int i; 8798_ACEOF 8799if ac_fn_c_try_compile "$LINENO" 8800then : 8801 xorg_cv_cc_flag_unused_command_line_argument=yes 8802else $as_nop 8803 xorg_cv_cc_flag_unused_command_line_argument=no 8804fi 8805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8806fi 8807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8808printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8810 CFLAGS="$xorg_testset_save_CFLAGS" 8811fi 8812 8813found="no" 8814 8815 if test $found = "no" ; then 8816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8818 fi 8819 8820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8822 fi 8823 8824 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8825 8826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8827printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8828 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8829 if eval test \${$cacheid+y} 8830then : 8831 printf %s "(cached) " >&6 8832else $as_nop 8833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8834/* end confdefs.h. */ 8835int i; 8836int 8837main (void) 8838{ 8839 8840 ; 8841 return 0; 8842} 8843_ACEOF 8844if ac_fn_c_try_link "$LINENO" 8845then : 8846 eval $cacheid=yes 8847else $as_nop 8848 eval $cacheid=no 8849fi 8850rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8851 conftest$ac_exeext conftest.$ac_ext 8852fi 8853 8854 8855 CFLAGS="$xorg_testset_save_CFLAGS" 8856 8857 eval supported=\$$cacheid 8858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8859printf "%s\n" "$supported" >&6; } 8860 if test "$supported" = "yes" ; then 8861 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8862 found="yes" 8863 fi 8864 fi 8865 8866 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8867else 8868{ printf "%s\n" "$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 8869printf "%s\n" "$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;} 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883xorg_testset_save_CFLAGS="$CFLAGS" 8884 8885if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8888printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8889if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8890then : 8891 printf %s "(cached) " >&6 8892else $as_nop 8893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8894/* end confdefs.h. */ 8895int i; 8896_ACEOF 8897if ac_fn_c_try_compile "$LINENO" 8898then : 8899 xorg_cv_cc_flag_unknown_warning_option=yes 8900else $as_nop 8901 xorg_cv_cc_flag_unknown_warning_option=no 8902fi 8903rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8904fi 8905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8906printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8907 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8908 CFLAGS="$xorg_testset_save_CFLAGS" 8909fi 8910 8911if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8914 fi 8915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8917printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8918if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8919then : 8920 printf %s "(cached) " >&6 8921else $as_nop 8922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8923/* end confdefs.h. */ 8924int i; 8925_ACEOF 8926if ac_fn_c_try_compile "$LINENO" 8927then : 8928 xorg_cv_cc_flag_unused_command_line_argument=yes 8929else $as_nop 8930 xorg_cv_cc_flag_unused_command_line_argument=no 8931fi 8932rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8933fi 8934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8935printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8936 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8937 CFLAGS="$xorg_testset_save_CFLAGS" 8938fi 8939 8940found="no" 8941 8942 if test $found = "no" ; then 8943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8945 fi 8946 8947 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8949 fi 8950 8951 CFLAGS="$CFLAGS -Wimplicit" 8952 8953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8954printf %s "checking if $CC supports -Wimplicit... " >&6; } 8955 cacheid=xorg_cv_cc_flag__Wimplicit 8956 if eval test \${$cacheid+y} 8957then : 8958 printf %s "(cached) " >&6 8959else $as_nop 8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8961/* end confdefs.h. */ 8962int i; 8963int 8964main (void) 8965{ 8966 8967 ; 8968 return 0; 8969} 8970_ACEOF 8971if ac_fn_c_try_link "$LINENO" 8972then : 8973 eval $cacheid=yes 8974else $as_nop 8975 eval $cacheid=no 8976fi 8977rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8978 conftest$ac_exeext conftest.$ac_ext 8979fi 8980 8981 8982 CFLAGS="$xorg_testset_save_CFLAGS" 8983 8984 eval supported=\$$cacheid 8985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8986printf "%s\n" "$supported" >&6; } 8987 if test "$supported" = "yes" ; then 8988 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8989 found="yes" 8990 fi 8991 fi 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007xorg_testset_save_CFLAGS="$CFLAGS" 9008 9009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9012printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9013if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9014then : 9015 printf %s "(cached) " >&6 9016else $as_nop 9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9018/* end confdefs.h. */ 9019int i; 9020_ACEOF 9021if ac_fn_c_try_compile "$LINENO" 9022then : 9023 xorg_cv_cc_flag_unknown_warning_option=yes 9024else $as_nop 9025 xorg_cv_cc_flag_unknown_warning_option=no 9026fi 9027rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9028fi 9029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9030printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9032 CFLAGS="$xorg_testset_save_CFLAGS" 9033fi 9034 9035if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9038 fi 9039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9041printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9042if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9043then : 9044 printf %s "(cached) " >&6 9045else $as_nop 9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9047/* end confdefs.h. */ 9048int i; 9049_ACEOF 9050if ac_fn_c_try_compile "$LINENO" 9051then : 9052 xorg_cv_cc_flag_unused_command_line_argument=yes 9053else $as_nop 9054 xorg_cv_cc_flag_unused_command_line_argument=no 9055fi 9056rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9057fi 9058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9059printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9060 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9061 CFLAGS="$xorg_testset_save_CFLAGS" 9062fi 9063 9064found="no" 9065 9066 if test $found = "no" ; then 9067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9069 fi 9070 9071 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9073 fi 9074 9075 CFLAGS="$CFLAGS -Wnonnull" 9076 9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9078printf %s "checking if $CC supports -Wnonnull... " >&6; } 9079 cacheid=xorg_cv_cc_flag__Wnonnull 9080 if eval test \${$cacheid+y} 9081then : 9082 printf %s "(cached) " >&6 9083else $as_nop 9084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9085/* end confdefs.h. */ 9086int i; 9087int 9088main (void) 9089{ 9090 9091 ; 9092 return 0; 9093} 9094_ACEOF 9095if ac_fn_c_try_link "$LINENO" 9096then : 9097 eval $cacheid=yes 9098else $as_nop 9099 eval $cacheid=no 9100fi 9101rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9102 conftest$ac_exeext conftest.$ac_ext 9103fi 9104 9105 9106 CFLAGS="$xorg_testset_save_CFLAGS" 9107 9108 eval supported=\$$cacheid 9109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9110printf "%s\n" "$supported" >&6; } 9111 if test "$supported" = "yes" ; then 9112 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9136printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9137if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9138then : 9139 printf %s "(cached) " >&6 9140else $as_nop 9141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9142/* end confdefs.h. */ 9143int i; 9144_ACEOF 9145if ac_fn_c_try_compile "$LINENO" 9146then : 9147 xorg_cv_cc_flag_unknown_warning_option=yes 9148else $as_nop 9149 xorg_cv_cc_flag_unknown_warning_option=no 9150fi 9151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9152fi 9153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9154printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9155 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9156 CFLAGS="$xorg_testset_save_CFLAGS" 9157fi 9158 9159if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9162 fi 9163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9165printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9166if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9167then : 9168 printf %s "(cached) " >&6 9169else $as_nop 9170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9171/* end confdefs.h. */ 9172int i; 9173_ACEOF 9174if ac_fn_c_try_compile "$LINENO" 9175then : 9176 xorg_cv_cc_flag_unused_command_line_argument=yes 9177else $as_nop 9178 xorg_cv_cc_flag_unused_command_line_argument=no 9179fi 9180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9181fi 9182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9183printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9184 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9185 CFLAGS="$xorg_testset_save_CFLAGS" 9186fi 9187 9188found="no" 9189 9190 if test $found = "no" ; then 9191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9193 fi 9194 9195 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9197 fi 9198 9199 CFLAGS="$CFLAGS -Winit-self" 9200 9201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9202printf %s "checking if $CC supports -Winit-self... " >&6; } 9203 cacheid=xorg_cv_cc_flag__Winit_self 9204 if eval test \${$cacheid+y} 9205then : 9206 printf %s "(cached) " >&6 9207else $as_nop 9208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9209/* end confdefs.h. */ 9210int i; 9211int 9212main (void) 9213{ 9214 9215 ; 9216 return 0; 9217} 9218_ACEOF 9219if ac_fn_c_try_link "$LINENO" 9220then : 9221 eval $cacheid=yes 9222else $as_nop 9223 eval $cacheid=no 9224fi 9225rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9226 conftest$ac_exeext conftest.$ac_ext 9227fi 9228 9229 9230 CFLAGS="$xorg_testset_save_CFLAGS" 9231 9232 eval supported=\$$cacheid 9233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9234printf "%s\n" "$supported" >&6; } 9235 if test "$supported" = "yes" ; then 9236 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9237 found="yes" 9238 fi 9239 fi 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255xorg_testset_save_CFLAGS="$CFLAGS" 9256 9257if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9260printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9261if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9262then : 9263 printf %s "(cached) " >&6 9264else $as_nop 9265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9266/* end confdefs.h. */ 9267int i; 9268_ACEOF 9269if ac_fn_c_try_compile "$LINENO" 9270then : 9271 xorg_cv_cc_flag_unknown_warning_option=yes 9272else $as_nop 9273 xorg_cv_cc_flag_unknown_warning_option=no 9274fi 9275rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9276fi 9277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9278printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9279 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9280 CFLAGS="$xorg_testset_save_CFLAGS" 9281fi 9282 9283if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9286 fi 9287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9289printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9290if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9291then : 9292 printf %s "(cached) " >&6 9293else $as_nop 9294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9295/* end confdefs.h. */ 9296int i; 9297_ACEOF 9298if ac_fn_c_try_compile "$LINENO" 9299then : 9300 xorg_cv_cc_flag_unused_command_line_argument=yes 9301else $as_nop 9302 xorg_cv_cc_flag_unused_command_line_argument=no 9303fi 9304rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9305fi 9306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9307printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9308 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9309 CFLAGS="$xorg_testset_save_CFLAGS" 9310fi 9311 9312found="no" 9313 9314 if test $found = "no" ; then 9315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9317 fi 9318 9319 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9321 fi 9322 9323 CFLAGS="$CFLAGS -Wmain" 9324 9325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9326printf %s "checking if $CC supports -Wmain... " >&6; } 9327 cacheid=xorg_cv_cc_flag__Wmain 9328 if eval test \${$cacheid+y} 9329then : 9330 printf %s "(cached) " >&6 9331else $as_nop 9332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9333/* end confdefs.h. */ 9334int i; 9335int 9336main (void) 9337{ 9338 9339 ; 9340 return 0; 9341} 9342_ACEOF 9343if ac_fn_c_try_link "$LINENO" 9344then : 9345 eval $cacheid=yes 9346else $as_nop 9347 eval $cacheid=no 9348fi 9349rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9350 conftest$ac_exeext conftest.$ac_ext 9351fi 9352 9353 9354 CFLAGS="$xorg_testset_save_CFLAGS" 9355 9356 eval supported=\$$cacheid 9357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9358printf "%s\n" "$supported" >&6; } 9359 if test "$supported" = "yes" ; then 9360 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9361 found="yes" 9362 fi 9363 fi 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379xorg_testset_save_CFLAGS="$CFLAGS" 9380 9381if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9384printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9385if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9386then : 9387 printf %s "(cached) " >&6 9388else $as_nop 9389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9390/* end confdefs.h. */ 9391int i; 9392_ACEOF 9393if ac_fn_c_try_compile "$LINENO" 9394then : 9395 xorg_cv_cc_flag_unknown_warning_option=yes 9396else $as_nop 9397 xorg_cv_cc_flag_unknown_warning_option=no 9398fi 9399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9400fi 9401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9402printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9403 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9404 CFLAGS="$xorg_testset_save_CFLAGS" 9405fi 9406 9407if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9410 fi 9411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9413printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9414if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9415then : 9416 printf %s "(cached) " >&6 9417else $as_nop 9418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9419/* end confdefs.h. */ 9420int i; 9421_ACEOF 9422if ac_fn_c_try_compile "$LINENO" 9423then : 9424 xorg_cv_cc_flag_unused_command_line_argument=yes 9425else $as_nop 9426 xorg_cv_cc_flag_unused_command_line_argument=no 9427fi 9428rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9429fi 9430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9431printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9433 CFLAGS="$xorg_testset_save_CFLAGS" 9434fi 9435 9436found="no" 9437 9438 if test $found = "no" ; then 9439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9441 fi 9442 9443 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9445 fi 9446 9447 CFLAGS="$CFLAGS -Wmissing-braces" 9448 9449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9450printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9451 cacheid=xorg_cv_cc_flag__Wmissing_braces 9452 if eval test \${$cacheid+y} 9453then : 9454 printf %s "(cached) " >&6 9455else $as_nop 9456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9457/* end confdefs.h. */ 9458int i; 9459int 9460main (void) 9461{ 9462 9463 ; 9464 return 0; 9465} 9466_ACEOF 9467if ac_fn_c_try_link "$LINENO" 9468then : 9469 eval $cacheid=yes 9470else $as_nop 9471 eval $cacheid=no 9472fi 9473rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9474 conftest$ac_exeext conftest.$ac_ext 9475fi 9476 9477 9478 CFLAGS="$xorg_testset_save_CFLAGS" 9479 9480 eval supported=\$$cacheid 9481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9482printf "%s\n" "$supported" >&6; } 9483 if test "$supported" = "yes" ; then 9484 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9485 found="yes" 9486 fi 9487 fi 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503xorg_testset_save_CFLAGS="$CFLAGS" 9504 9505if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9508printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9509if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9510then : 9511 printf %s "(cached) " >&6 9512else $as_nop 9513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9514/* end confdefs.h. */ 9515int i; 9516_ACEOF 9517if ac_fn_c_try_compile "$LINENO" 9518then : 9519 xorg_cv_cc_flag_unknown_warning_option=yes 9520else $as_nop 9521 xorg_cv_cc_flag_unknown_warning_option=no 9522fi 9523rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9524fi 9525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9526printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9527 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9528 CFLAGS="$xorg_testset_save_CFLAGS" 9529fi 9530 9531if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9534 fi 9535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9537printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9538if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9539then : 9540 printf %s "(cached) " >&6 9541else $as_nop 9542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9543/* end confdefs.h. */ 9544int i; 9545_ACEOF 9546if ac_fn_c_try_compile "$LINENO" 9547then : 9548 xorg_cv_cc_flag_unused_command_line_argument=yes 9549else $as_nop 9550 xorg_cv_cc_flag_unused_command_line_argument=no 9551fi 9552rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9553fi 9554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9555printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9557 CFLAGS="$xorg_testset_save_CFLAGS" 9558fi 9559 9560found="no" 9561 9562 if test $found = "no" ; then 9563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9565 fi 9566 9567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9569 fi 9570 9571 CFLAGS="$CFLAGS -Wsequence-point" 9572 9573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9574printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9575 cacheid=xorg_cv_cc_flag__Wsequence_point 9576 if eval test \${$cacheid+y} 9577then : 9578 printf %s "(cached) " >&6 9579else $as_nop 9580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9581/* end confdefs.h. */ 9582int i; 9583int 9584main (void) 9585{ 9586 9587 ; 9588 return 0; 9589} 9590_ACEOF 9591if ac_fn_c_try_link "$LINENO" 9592then : 9593 eval $cacheid=yes 9594else $as_nop 9595 eval $cacheid=no 9596fi 9597rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9598 conftest$ac_exeext conftest.$ac_ext 9599fi 9600 9601 9602 CFLAGS="$xorg_testset_save_CFLAGS" 9603 9604 eval supported=\$$cacheid 9605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9606printf "%s\n" "$supported" >&6; } 9607 if test "$supported" = "yes" ; then 9608 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9609 found="yes" 9610 fi 9611 fi 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627xorg_testset_save_CFLAGS="$CFLAGS" 9628 9629if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9632printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9633if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9634then : 9635 printf %s "(cached) " >&6 9636else $as_nop 9637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9638/* end confdefs.h. */ 9639int i; 9640_ACEOF 9641if ac_fn_c_try_compile "$LINENO" 9642then : 9643 xorg_cv_cc_flag_unknown_warning_option=yes 9644else $as_nop 9645 xorg_cv_cc_flag_unknown_warning_option=no 9646fi 9647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9648fi 9649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9650printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9652 CFLAGS="$xorg_testset_save_CFLAGS" 9653fi 9654 9655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9658 fi 9659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9661printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9662if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9663then : 9664 printf %s "(cached) " >&6 9665else $as_nop 9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9667/* end confdefs.h. */ 9668int i; 9669_ACEOF 9670if ac_fn_c_try_compile "$LINENO" 9671then : 9672 xorg_cv_cc_flag_unused_command_line_argument=yes 9673else $as_nop 9674 xorg_cv_cc_flag_unused_command_line_argument=no 9675fi 9676rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9677fi 9678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9679printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9680 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9681 CFLAGS="$xorg_testset_save_CFLAGS" 9682fi 9683 9684found="no" 9685 9686 if test $found = "no" ; then 9687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9689 fi 9690 9691 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9693 fi 9694 9695 CFLAGS="$CFLAGS -Wreturn-type" 9696 9697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9698printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9699 cacheid=xorg_cv_cc_flag__Wreturn_type 9700 if eval test \${$cacheid+y} 9701then : 9702 printf %s "(cached) " >&6 9703else $as_nop 9704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9705/* end confdefs.h. */ 9706int i; 9707int 9708main (void) 9709{ 9710 9711 ; 9712 return 0; 9713} 9714_ACEOF 9715if ac_fn_c_try_link "$LINENO" 9716then : 9717 eval $cacheid=yes 9718else $as_nop 9719 eval $cacheid=no 9720fi 9721rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9722 conftest$ac_exeext conftest.$ac_ext 9723fi 9724 9725 9726 CFLAGS="$xorg_testset_save_CFLAGS" 9727 9728 eval supported=\$$cacheid 9729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9730printf "%s\n" "$supported" >&6; } 9731 if test "$supported" = "yes" ; then 9732 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9733 found="yes" 9734 fi 9735 fi 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751xorg_testset_save_CFLAGS="$CFLAGS" 9752 9753if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9756printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9757if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9758then : 9759 printf %s "(cached) " >&6 9760else $as_nop 9761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9762/* end confdefs.h. */ 9763int i; 9764_ACEOF 9765if ac_fn_c_try_compile "$LINENO" 9766then : 9767 xorg_cv_cc_flag_unknown_warning_option=yes 9768else $as_nop 9769 xorg_cv_cc_flag_unknown_warning_option=no 9770fi 9771rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9772fi 9773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9774printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9775 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9776 CFLAGS="$xorg_testset_save_CFLAGS" 9777fi 9778 9779if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9782 fi 9783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9785printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9786if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9787then : 9788 printf %s "(cached) " >&6 9789else $as_nop 9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9791/* end confdefs.h. */ 9792int i; 9793_ACEOF 9794if ac_fn_c_try_compile "$LINENO" 9795then : 9796 xorg_cv_cc_flag_unused_command_line_argument=yes 9797else $as_nop 9798 xorg_cv_cc_flag_unused_command_line_argument=no 9799fi 9800rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9801fi 9802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9803printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9804 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9805 CFLAGS="$xorg_testset_save_CFLAGS" 9806fi 9807 9808found="no" 9809 9810 if test $found = "no" ; then 9811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9813 fi 9814 9815 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9817 fi 9818 9819 CFLAGS="$CFLAGS -Wtrigraphs" 9820 9821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9822printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9823 cacheid=xorg_cv_cc_flag__Wtrigraphs 9824 if eval test \${$cacheid+y} 9825then : 9826 printf %s "(cached) " >&6 9827else $as_nop 9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9829/* end confdefs.h. */ 9830int i; 9831int 9832main (void) 9833{ 9834 9835 ; 9836 return 0; 9837} 9838_ACEOF 9839if ac_fn_c_try_link "$LINENO" 9840then : 9841 eval $cacheid=yes 9842else $as_nop 9843 eval $cacheid=no 9844fi 9845rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9846 conftest$ac_exeext conftest.$ac_ext 9847fi 9848 9849 9850 CFLAGS="$xorg_testset_save_CFLAGS" 9851 9852 eval supported=\$$cacheid 9853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9854printf "%s\n" "$supported" >&6; } 9855 if test "$supported" = "yes" ; then 9856 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9857 found="yes" 9858 fi 9859 fi 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875xorg_testset_save_CFLAGS="$CFLAGS" 9876 9877if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9880printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9881if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9882then : 9883 printf %s "(cached) " >&6 9884else $as_nop 9885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9886/* end confdefs.h. */ 9887int i; 9888_ACEOF 9889if ac_fn_c_try_compile "$LINENO" 9890then : 9891 xorg_cv_cc_flag_unknown_warning_option=yes 9892else $as_nop 9893 xorg_cv_cc_flag_unknown_warning_option=no 9894fi 9895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9896fi 9897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9898printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9900 CFLAGS="$xorg_testset_save_CFLAGS" 9901fi 9902 9903if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9906 fi 9907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9909printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9910if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9911then : 9912 printf %s "(cached) " >&6 9913else $as_nop 9914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9915/* end confdefs.h. */ 9916int i; 9917_ACEOF 9918if ac_fn_c_try_compile "$LINENO" 9919then : 9920 xorg_cv_cc_flag_unused_command_line_argument=yes 9921else $as_nop 9922 xorg_cv_cc_flag_unused_command_line_argument=no 9923fi 9924rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9925fi 9926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9927printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9929 CFLAGS="$xorg_testset_save_CFLAGS" 9930fi 9931 9932found="no" 9933 9934 if test $found = "no" ; then 9935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9937 fi 9938 9939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9941 fi 9942 9943 CFLAGS="$CFLAGS -Warray-bounds" 9944 9945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9946printf %s "checking if $CC supports -Warray-bounds... " >&6; } 9947 cacheid=xorg_cv_cc_flag__Warray_bounds 9948 if eval test \${$cacheid+y} 9949then : 9950 printf %s "(cached) " >&6 9951else $as_nop 9952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9953/* end confdefs.h. */ 9954int i; 9955int 9956main (void) 9957{ 9958 9959 ; 9960 return 0; 9961} 9962_ACEOF 9963if ac_fn_c_try_link "$LINENO" 9964then : 9965 eval $cacheid=yes 9966else $as_nop 9967 eval $cacheid=no 9968fi 9969rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9970 conftest$ac_exeext conftest.$ac_ext 9971fi 9972 9973 9974 CFLAGS="$xorg_testset_save_CFLAGS" 9975 9976 eval supported=\$$cacheid 9977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9978printf "%s\n" "$supported" >&6; } 9979 if test "$supported" = "yes" ; then 9980 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9981 found="yes" 9982 fi 9983 fi 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999xorg_testset_save_CFLAGS="$CFLAGS" 10000 10001if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10004printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10005if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10006then : 10007 printf %s "(cached) " >&6 10008else $as_nop 10009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10010/* end confdefs.h. */ 10011int i; 10012_ACEOF 10013if ac_fn_c_try_compile "$LINENO" 10014then : 10015 xorg_cv_cc_flag_unknown_warning_option=yes 10016else $as_nop 10017 xorg_cv_cc_flag_unknown_warning_option=no 10018fi 10019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10020fi 10021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10022printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10023 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10024 CFLAGS="$xorg_testset_save_CFLAGS" 10025fi 10026 10027if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10030 fi 10031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10033printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10034if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10035then : 10036 printf %s "(cached) " >&6 10037else $as_nop 10038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10039/* end confdefs.h. */ 10040int i; 10041_ACEOF 10042if ac_fn_c_try_compile "$LINENO" 10043then : 10044 xorg_cv_cc_flag_unused_command_line_argument=yes 10045else $as_nop 10046 xorg_cv_cc_flag_unused_command_line_argument=no 10047fi 10048rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10049fi 10050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10051printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10052 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10053 CFLAGS="$xorg_testset_save_CFLAGS" 10054fi 10055 10056found="no" 10057 10058 if test $found = "no" ; then 10059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10061 fi 10062 10063 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10065 fi 10066 10067 CFLAGS="$CFLAGS -Wwrite-strings" 10068 10069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10070printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10071 cacheid=xorg_cv_cc_flag__Wwrite_strings 10072 if eval test \${$cacheid+y} 10073then : 10074 printf %s "(cached) " >&6 10075else $as_nop 10076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10077/* end confdefs.h. */ 10078int i; 10079int 10080main (void) 10081{ 10082 10083 ; 10084 return 0; 10085} 10086_ACEOF 10087if ac_fn_c_try_link "$LINENO" 10088then : 10089 eval $cacheid=yes 10090else $as_nop 10091 eval $cacheid=no 10092fi 10093rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10094 conftest$ac_exeext conftest.$ac_ext 10095fi 10096 10097 10098 CFLAGS="$xorg_testset_save_CFLAGS" 10099 10100 eval supported=\$$cacheid 10101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10102printf "%s\n" "$supported" >&6; } 10103 if test "$supported" = "yes" ; then 10104 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10105 found="yes" 10106 fi 10107 fi 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123xorg_testset_save_CFLAGS="$CFLAGS" 10124 10125if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10128printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10129if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10130then : 10131 printf %s "(cached) " >&6 10132else $as_nop 10133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10134/* end confdefs.h. */ 10135int i; 10136_ACEOF 10137if ac_fn_c_try_compile "$LINENO" 10138then : 10139 xorg_cv_cc_flag_unknown_warning_option=yes 10140else $as_nop 10141 xorg_cv_cc_flag_unknown_warning_option=no 10142fi 10143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10144fi 10145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10146printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10148 CFLAGS="$xorg_testset_save_CFLAGS" 10149fi 10150 10151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10154 fi 10155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10157printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10158if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10159then : 10160 printf %s "(cached) " >&6 10161else $as_nop 10162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10163/* end confdefs.h. */ 10164int i; 10165_ACEOF 10166if ac_fn_c_try_compile "$LINENO" 10167then : 10168 xorg_cv_cc_flag_unused_command_line_argument=yes 10169else $as_nop 10170 xorg_cv_cc_flag_unused_command_line_argument=no 10171fi 10172rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10173fi 10174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10175printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10177 CFLAGS="$xorg_testset_save_CFLAGS" 10178fi 10179 10180found="no" 10181 10182 if test $found = "no" ; then 10183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10185 fi 10186 10187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10189 fi 10190 10191 CFLAGS="$CFLAGS -Waddress" 10192 10193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10194printf %s "checking if $CC supports -Waddress... " >&6; } 10195 cacheid=xorg_cv_cc_flag__Waddress 10196 if eval test \${$cacheid+y} 10197then : 10198 printf %s "(cached) " >&6 10199else $as_nop 10200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10201/* end confdefs.h. */ 10202int i; 10203int 10204main (void) 10205{ 10206 10207 ; 10208 return 0; 10209} 10210_ACEOF 10211if ac_fn_c_try_link "$LINENO" 10212then : 10213 eval $cacheid=yes 10214else $as_nop 10215 eval $cacheid=no 10216fi 10217rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10218 conftest$ac_exeext conftest.$ac_ext 10219fi 10220 10221 10222 CFLAGS="$xorg_testset_save_CFLAGS" 10223 10224 eval supported=\$$cacheid 10225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10226printf "%s\n" "$supported" >&6; } 10227 if test "$supported" = "yes" ; then 10228 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10229 found="yes" 10230 fi 10231 fi 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247xorg_testset_save_CFLAGS="$CFLAGS" 10248 10249if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10252printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10253if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10254then : 10255 printf %s "(cached) " >&6 10256else $as_nop 10257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10258/* end confdefs.h. */ 10259int i; 10260_ACEOF 10261if ac_fn_c_try_compile "$LINENO" 10262then : 10263 xorg_cv_cc_flag_unknown_warning_option=yes 10264else $as_nop 10265 xorg_cv_cc_flag_unknown_warning_option=no 10266fi 10267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10268fi 10269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10270printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10271 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10272 CFLAGS="$xorg_testset_save_CFLAGS" 10273fi 10274 10275if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10278 fi 10279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10281printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10282if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10283then : 10284 printf %s "(cached) " >&6 10285else $as_nop 10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10287/* end confdefs.h. */ 10288int i; 10289_ACEOF 10290if ac_fn_c_try_compile "$LINENO" 10291then : 10292 xorg_cv_cc_flag_unused_command_line_argument=yes 10293else $as_nop 10294 xorg_cv_cc_flag_unused_command_line_argument=no 10295fi 10296rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10297fi 10298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10299printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10300 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10301 CFLAGS="$xorg_testset_save_CFLAGS" 10302fi 10303 10304found="no" 10305 10306 if test $found = "no" ; then 10307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10309 fi 10310 10311 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10313 fi 10314 10315 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10316 10317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10318printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10319 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10320 if eval test \${$cacheid+y} 10321then : 10322 printf %s "(cached) " >&6 10323else $as_nop 10324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10325/* end confdefs.h. */ 10326int i; 10327int 10328main (void) 10329{ 10330 10331 ; 10332 return 0; 10333} 10334_ACEOF 10335if ac_fn_c_try_link "$LINENO" 10336then : 10337 eval $cacheid=yes 10338else $as_nop 10339 eval $cacheid=no 10340fi 10341rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10342 conftest$ac_exeext conftest.$ac_ext 10343fi 10344 10345 10346 CFLAGS="$xorg_testset_save_CFLAGS" 10347 10348 eval supported=\$$cacheid 10349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10350printf "%s\n" "$supported" >&6; } 10351 if test "$supported" = "yes" ; then 10352 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10353 found="yes" 10354 fi 10355 fi 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371xorg_testset_save_CFLAGS="$CFLAGS" 10372 10373if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10376printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10377if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10378then : 10379 printf %s "(cached) " >&6 10380else $as_nop 10381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10382/* end confdefs.h. */ 10383int i; 10384_ACEOF 10385if ac_fn_c_try_compile "$LINENO" 10386then : 10387 xorg_cv_cc_flag_unknown_warning_option=yes 10388else $as_nop 10389 xorg_cv_cc_flag_unknown_warning_option=no 10390fi 10391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10392fi 10393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10394printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10395 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10396 CFLAGS="$xorg_testset_save_CFLAGS" 10397fi 10398 10399if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10402 fi 10403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10405printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10406if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10407then : 10408 printf %s "(cached) " >&6 10409else $as_nop 10410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10411/* end confdefs.h. */ 10412int i; 10413_ACEOF 10414if ac_fn_c_try_compile "$LINENO" 10415then : 10416 xorg_cv_cc_flag_unused_command_line_argument=yes 10417else $as_nop 10418 xorg_cv_cc_flag_unused_command_line_argument=no 10419fi 10420rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10421fi 10422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10423printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10424 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10425 CFLAGS="$xorg_testset_save_CFLAGS" 10426fi 10427 10428found="no" 10429 10430 if test $found = "no" ; then 10431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10433 fi 10434 10435 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10437 fi 10438 10439 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10440 10441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10442printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10443 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10444 if eval test \${$cacheid+y} 10445then : 10446 printf %s "(cached) " >&6 10447else $as_nop 10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10449/* end confdefs.h. */ 10450int i; 10451int 10452main (void) 10453{ 10454 10455 ; 10456 return 0; 10457} 10458_ACEOF 10459if ac_fn_c_try_link "$LINENO" 10460then : 10461 eval $cacheid=yes 10462else $as_nop 10463 eval $cacheid=no 10464fi 10465rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10466 conftest$ac_exeext conftest.$ac_ext 10467fi 10468 10469 10470 CFLAGS="$xorg_testset_save_CFLAGS" 10471 10472 eval supported=\$$cacheid 10473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10474printf "%s\n" "$supported" >&6; } 10475 if test "$supported" = "yes" ; then 10476 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10477 found="yes" 10478 fi 10479 fi 10480 10481 10482fi 10483 10484 10485 10486 10487 10488 10489 10490 CWARNFLAGS="$BASE_CFLAGS" 10491 if test "x$GCC" = xyes ; then 10492 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10493 fi 10494 10495 10496 10497 10498 10499 10500 10501 10502# Check whether --enable-strict-compilation was given. 10503if test ${enable_strict_compilation+y} 10504then : 10505 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10506else $as_nop 10507 STRICT_COMPILE=no 10508fi 10509 10510 10511 10512 10513 10514 10515STRICT_CFLAGS="" 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529xorg_testset_save_CFLAGS="$CFLAGS" 10530 10531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10534printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10535if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10536then : 10537 printf %s "(cached) " >&6 10538else $as_nop 10539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10540/* end confdefs.h. */ 10541int i; 10542_ACEOF 10543if ac_fn_c_try_compile "$LINENO" 10544then : 10545 xorg_cv_cc_flag_unknown_warning_option=yes 10546else $as_nop 10547 xorg_cv_cc_flag_unknown_warning_option=no 10548fi 10549rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10550fi 10551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10552printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10554 CFLAGS="$xorg_testset_save_CFLAGS" 10555fi 10556 10557if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10560 fi 10561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10563printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10564if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10565then : 10566 printf %s "(cached) " >&6 10567else $as_nop 10568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10569/* end confdefs.h. */ 10570int i; 10571_ACEOF 10572if ac_fn_c_try_compile "$LINENO" 10573then : 10574 xorg_cv_cc_flag_unused_command_line_argument=yes 10575else $as_nop 10576 xorg_cv_cc_flag_unused_command_line_argument=no 10577fi 10578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10579fi 10580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10581printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10582 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10583 CFLAGS="$xorg_testset_save_CFLAGS" 10584fi 10585 10586found="no" 10587 10588 if test $found = "no" ; then 10589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10591 fi 10592 10593 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10595 fi 10596 10597 CFLAGS="$CFLAGS -pedantic" 10598 10599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10600printf %s "checking if $CC supports -pedantic... " >&6; } 10601 cacheid=xorg_cv_cc_flag__pedantic 10602 if eval test \${$cacheid+y} 10603then : 10604 printf %s "(cached) " >&6 10605else $as_nop 10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10607/* end confdefs.h. */ 10608int i; 10609int 10610main (void) 10611{ 10612 10613 ; 10614 return 0; 10615} 10616_ACEOF 10617if ac_fn_c_try_link "$LINENO" 10618then : 10619 eval $cacheid=yes 10620else $as_nop 10621 eval $cacheid=no 10622fi 10623rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10624 conftest$ac_exeext conftest.$ac_ext 10625fi 10626 10627 10628 CFLAGS="$xorg_testset_save_CFLAGS" 10629 10630 eval supported=\$$cacheid 10631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10632printf "%s\n" "$supported" >&6; } 10633 if test "$supported" = "yes" ; then 10634 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10635 found="yes" 10636 fi 10637 fi 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653xorg_testset_save_CFLAGS="$CFLAGS" 10654 10655if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10658printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10659if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10660then : 10661 printf %s "(cached) " >&6 10662else $as_nop 10663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10664/* end confdefs.h. */ 10665int i; 10666_ACEOF 10667if ac_fn_c_try_compile "$LINENO" 10668then : 10669 xorg_cv_cc_flag_unknown_warning_option=yes 10670else $as_nop 10671 xorg_cv_cc_flag_unknown_warning_option=no 10672fi 10673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10674fi 10675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10676printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10677 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10678 CFLAGS="$xorg_testset_save_CFLAGS" 10679fi 10680 10681if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10684 fi 10685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10687printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10688if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10689then : 10690 printf %s "(cached) " >&6 10691else $as_nop 10692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10693/* end confdefs.h. */ 10694int i; 10695_ACEOF 10696if ac_fn_c_try_compile "$LINENO" 10697then : 10698 xorg_cv_cc_flag_unused_command_line_argument=yes 10699else $as_nop 10700 xorg_cv_cc_flag_unused_command_line_argument=no 10701fi 10702rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10703fi 10704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10705printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10706 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10707 CFLAGS="$xorg_testset_save_CFLAGS" 10708fi 10709 10710found="no" 10711 10712 if test $found = "no" ; then 10713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10715 fi 10716 10717 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10719 fi 10720 10721 CFLAGS="$CFLAGS -Werror" 10722 10723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10724printf %s "checking if $CC supports -Werror... " >&6; } 10725 cacheid=xorg_cv_cc_flag__Werror 10726 if eval test \${$cacheid+y} 10727then : 10728 printf %s "(cached) " >&6 10729else $as_nop 10730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10731/* end confdefs.h. */ 10732int i; 10733int 10734main (void) 10735{ 10736 10737 ; 10738 return 0; 10739} 10740_ACEOF 10741if ac_fn_c_try_link "$LINENO" 10742then : 10743 eval $cacheid=yes 10744else $as_nop 10745 eval $cacheid=no 10746fi 10747rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10748 conftest$ac_exeext conftest.$ac_ext 10749fi 10750 10751 10752 CFLAGS="$xorg_testset_save_CFLAGS" 10753 10754 eval supported=\$$cacheid 10755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10756printf "%s\n" "$supported" >&6; } 10757 if test "$supported" = "yes" ; then 10758 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10759 found="yes" 10760 fi 10761 fi 10762 10763 if test $found = "no" ; then 10764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10766 fi 10767 10768 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10770 fi 10771 10772 CFLAGS="$CFLAGS -errwarn" 10773 10774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10775printf %s "checking if $CC supports -errwarn... " >&6; } 10776 cacheid=xorg_cv_cc_flag__errwarn 10777 if eval test \${$cacheid+y} 10778then : 10779 printf %s "(cached) " >&6 10780else $as_nop 10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10782/* end confdefs.h. */ 10783int i; 10784int 10785main (void) 10786{ 10787 10788 ; 10789 return 0; 10790} 10791_ACEOF 10792if ac_fn_c_try_link "$LINENO" 10793then : 10794 eval $cacheid=yes 10795else $as_nop 10796 eval $cacheid=no 10797fi 10798rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10799 conftest$ac_exeext conftest.$ac_ext 10800fi 10801 10802 10803 CFLAGS="$xorg_testset_save_CFLAGS" 10804 10805 eval supported=\$$cacheid 10806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10807printf "%s\n" "$supported" >&6; } 10808 if test "$supported" = "yes" ; then 10809 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10810 found="yes" 10811 fi 10812 fi 10813 10814 10815 10816# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10817# activate it with -Werror, so we add it here explicitly. 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831xorg_testset_save_CFLAGS="$CFLAGS" 10832 10833if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10836printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10837if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10838then : 10839 printf %s "(cached) " >&6 10840else $as_nop 10841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10842/* end confdefs.h. */ 10843int i; 10844_ACEOF 10845if ac_fn_c_try_compile "$LINENO" 10846then : 10847 xorg_cv_cc_flag_unknown_warning_option=yes 10848else $as_nop 10849 xorg_cv_cc_flag_unknown_warning_option=no 10850fi 10851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10852fi 10853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10854printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10855 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10856 CFLAGS="$xorg_testset_save_CFLAGS" 10857fi 10858 10859if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10862 fi 10863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10865printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10866if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10867then : 10868 printf %s "(cached) " >&6 10869else $as_nop 10870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10871/* end confdefs.h. */ 10872int i; 10873_ACEOF 10874if ac_fn_c_try_compile "$LINENO" 10875then : 10876 xorg_cv_cc_flag_unused_command_line_argument=yes 10877else $as_nop 10878 xorg_cv_cc_flag_unused_command_line_argument=no 10879fi 10880rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10881fi 10882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10883printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10885 CFLAGS="$xorg_testset_save_CFLAGS" 10886fi 10887 10888found="no" 10889 10890 if test $found = "no" ; then 10891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10893 fi 10894 10895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10897 fi 10898 10899 CFLAGS="$CFLAGS -Werror=attributes" 10900 10901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10902printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10903 cacheid=xorg_cv_cc_flag__Werror_attributes 10904 if eval test \${$cacheid+y} 10905then : 10906 printf %s "(cached) " >&6 10907else $as_nop 10908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10909/* end confdefs.h. */ 10910int i; 10911int 10912main (void) 10913{ 10914 10915 ; 10916 return 0; 10917} 10918_ACEOF 10919if ac_fn_c_try_link "$LINENO" 10920then : 10921 eval $cacheid=yes 10922else $as_nop 10923 eval $cacheid=no 10924fi 10925rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10926 conftest$ac_exeext conftest.$ac_ext 10927fi 10928 10929 10930 CFLAGS="$xorg_testset_save_CFLAGS" 10931 10932 eval supported=\$$cacheid 10933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10934printf "%s\n" "$supported" >&6; } 10935 if test "$supported" = "yes" ; then 10936 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10937 found="yes" 10938 fi 10939 fi 10940 10941 10942 10943if test "x$STRICT_COMPILE" = "xyes"; then 10944 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10945 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10946fi 10947 10948 10949 10950 10951 10952 10953 10954 10955cat >>confdefs.h <<_ACEOF 10956#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10957_ACEOF 10958 10959 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10960 if test "x$PVM" = "x"; then 10961 PVM="0" 10962 fi 10963 10964printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 10965 10966 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10967 if test "x$PVP" = "x"; then 10968 PVP="0" 10969 fi 10970 10971printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 10972 10973 10974 10975CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10976mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10977|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10978touch \$(top_srcdir)/ChangeLog; \ 10979echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10980 10981 10982 10983 10984macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10985INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10986mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10987|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10988touch \$(top_srcdir)/INSTALL; \ 10989echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10990 10991 10992 10993 10994 10995 10996case $host_os in 10997 solaris*) 10998 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10999 # check for a man page file found in later versions that use 11000 # traditional section numbers instead 11001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11002printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11003if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11004then : 11005 printf %s "(cached) " >&6 11006else $as_nop 11007 test "$cross_compiling" = yes && 11008 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11009if test -r "/usr/share/man/man7/attributes.7"; then 11010 ac_cv_file__usr_share_man_man7_attributes_7=yes 11011else 11012 ac_cv_file__usr_share_man_man7_attributes_7=no 11013fi 11014fi 11015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11016printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11017if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11018then : 11019 SYSV_MAN_SECTIONS=false 11020else $as_nop 11021 SYSV_MAN_SECTIONS=true 11022fi 11023 11024 ;; 11025 *) SYSV_MAN_SECTIONS=false ;; 11026esac 11027 11028if test x$APP_MAN_SUFFIX = x ; then 11029 APP_MAN_SUFFIX=1 11030fi 11031if test x$APP_MAN_DIR = x ; then 11032 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11033fi 11034 11035if test x$LIB_MAN_SUFFIX = x ; then 11036 LIB_MAN_SUFFIX=3 11037fi 11038if test x$LIB_MAN_DIR = x ; then 11039 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11040fi 11041 11042if test x$FILE_MAN_SUFFIX = x ; then 11043 case $SYSV_MAN_SECTIONS in 11044 true) FILE_MAN_SUFFIX=4 ;; 11045 *) FILE_MAN_SUFFIX=5 ;; 11046 esac 11047fi 11048if test x$FILE_MAN_DIR = x ; then 11049 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11050fi 11051 11052if test x$MISC_MAN_SUFFIX = x ; then 11053 case $SYSV_MAN_SECTIONS in 11054 true) MISC_MAN_SUFFIX=5 ;; 11055 *) MISC_MAN_SUFFIX=7 ;; 11056 esac 11057fi 11058if test x$MISC_MAN_DIR = x ; then 11059 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11060fi 11061 11062if test x$DRIVER_MAN_SUFFIX = x ; then 11063 case $SYSV_MAN_SECTIONS in 11064 true) DRIVER_MAN_SUFFIX=7 ;; 11065 *) DRIVER_MAN_SUFFIX=4 ;; 11066 esac 11067fi 11068if test x$DRIVER_MAN_DIR = x ; then 11069 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11070fi 11071 11072if test x$ADMIN_MAN_SUFFIX = x ; then 11073 case $SYSV_MAN_SECTIONS in 11074 true) ADMIN_MAN_SUFFIX=1m ;; 11075 *) ADMIN_MAN_SUFFIX=8 ;; 11076 esac 11077fi 11078if test x$ADMIN_MAN_DIR = x ; then 11079 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11080fi 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096XORG_MAN_PAGE="X Version 11" 11097 11098MAN_SUBSTS="\ 11099 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11100 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11101 -e 's|__xservername__|Xorg|g' \ 11102 -e 's|__xconfigfile__|xorg.conf|g' \ 11103 -e 's|__projectroot__|\$(prefix)|g' \ 11104 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11105 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11106 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11107 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11108 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11109 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11110 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11111 11112 11113 11114# Check whether --enable-silent-rules was given. 11115if test ${enable_silent_rules+y} 11116then : 11117 enableval=$enable_silent_rules; 11118fi 11119 11120case $enable_silent_rules in # ((( 11121 yes) AM_DEFAULT_VERBOSITY=0;; 11122 no) AM_DEFAULT_VERBOSITY=1;; 11123 *) AM_DEFAULT_VERBOSITY=0;; 11124esac 11125am_make=${MAKE-make} 11126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11127printf %s "checking whether $am_make supports nested variables... " >&6; } 11128if test ${am_cv_make_support_nested_variables+y} 11129then : 11130 printf %s "(cached) " >&6 11131else $as_nop 11132 if printf "%s\n" 'TRUE=$(BAR$(V)) 11133BAR0=false 11134BAR1=true 11135V=1 11136am__doit: 11137 @$(TRUE) 11138.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11139 am_cv_make_support_nested_variables=yes 11140else 11141 am_cv_make_support_nested_variables=no 11142fi 11143fi 11144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11145printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11146if test $am_cv_make_support_nested_variables = yes; then 11147 AM_V='$(V)' 11148 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11149else 11150 AM_V=$AM_DEFAULT_VERBOSITY 11151 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11152fi 11153AM_BACKSLASH='\' 11154 11155 11156 11157 11158ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" 11159if test "x$ac_cv_func_setenv" = xyes 11160then : 11161 have_setenv=yes 11162else $as_nop 11163 have_setenv=no 11164fi 11165 11166ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 11167if test "x$ac_cv_func_vasprintf" = xyes 11168then : 11169 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h 11170 11171fi 11172 11173ac_fn_check_decl "$LINENO" "va_copy" "ac_cv_have_decl_va_copy" " 11174 $ac_includes_default 11175 #include <stdarg.h> 11176 11177" "$ac_c_undeclared_builtin_options" "CFLAGS" 11178if test "x$ac_cv_have_decl_va_copy" = xyes 11179then : 11180 ac_have_decl=1 11181else $as_nop 11182 ac_have_decl=0 11183fi 11184printf "%s\n" "#define HAVE_DECL_VA_COPY $ac_have_decl" >>confdefs.h 11185 11186 11187 if test x$have_setenv = xno; then 11188 NEED_SETENV_TRUE= 11189 NEED_SETENV_FALSE='#' 11190else 11191 NEED_SETENV_TRUE='#' 11192 NEED_SETENV_FALSE= 11193fi 11194 11195 11196# Checks for pkg-config packages 11197 11198pkg_failed=no 11199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FONTTOSFNT" >&5 11200printf %s "checking for FONTTOSFNT... " >&6; } 11201 11202if test -n "$FONTTOSFNT_CFLAGS"; then 11203 pkg_cv_FONTTOSFNT_CFLAGS="$FONTTOSFNT_CFLAGS" 11204 elif test -n "$PKG_CONFIG"; then 11205 if test -n "$PKG_CONFIG" && \ 11206 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto freetype2 fontenc\""; } >&5 11207 ($PKG_CONFIG --exists --print-errors "xproto freetype2 fontenc") 2>&5 11208 ac_status=$? 11209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11210 test $ac_status = 0; }; then 11211 pkg_cv_FONTTOSFNT_CFLAGS=`$PKG_CONFIG --cflags "xproto freetype2 fontenc" 2>/dev/null` 11212 test "x$?" != "x0" && pkg_failed=yes 11213else 11214 pkg_failed=yes 11215fi 11216 else 11217 pkg_failed=untried 11218fi 11219if test -n "$FONTTOSFNT_LIBS"; then 11220 pkg_cv_FONTTOSFNT_LIBS="$FONTTOSFNT_LIBS" 11221 elif test -n "$PKG_CONFIG"; then 11222 if test -n "$PKG_CONFIG" && \ 11223 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto freetype2 fontenc\""; } >&5 11224 ($PKG_CONFIG --exists --print-errors "xproto freetype2 fontenc") 2>&5 11225 ac_status=$? 11226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11227 test $ac_status = 0; }; then 11228 pkg_cv_FONTTOSFNT_LIBS=`$PKG_CONFIG --libs "xproto freetype2 fontenc" 2>/dev/null` 11229 test "x$?" != "x0" && pkg_failed=yes 11230else 11231 pkg_failed=yes 11232fi 11233 else 11234 pkg_failed=untried 11235fi 11236 11237 11238 11239if test $pkg_failed = yes; then 11240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11241printf "%s\n" "no" >&6; } 11242 11243if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11244 _pkg_short_errors_supported=yes 11245else 11246 _pkg_short_errors_supported=no 11247fi 11248 if test $_pkg_short_errors_supported = yes; then 11249 FONTTOSFNT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto freetype2 fontenc" 2>&1` 11250 else 11251 FONTTOSFNT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto freetype2 fontenc" 2>&1` 11252 fi 11253 # Put the nasty error message in config.log where it belongs 11254 echo "$FONTTOSFNT_PKG_ERRORS" >&5 11255 11256 as_fn_error $? "Package requirements (xproto freetype2 fontenc) were not met: 11257 11258$FONTTOSFNT_PKG_ERRORS 11259 11260Consider adjusting the PKG_CONFIG_PATH environment variable if you 11261installed software in a non-standard prefix. 11262 11263Alternatively, you may set the environment variables FONTTOSFNT_CFLAGS 11264and FONTTOSFNT_LIBS to avoid the need to call pkg-config. 11265See the pkg-config man page for more details." "$LINENO" 5 11266elif test $pkg_failed = untried; then 11267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11268printf "%s\n" "no" >&6; } 11269 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11270printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11271as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11272is in your PATH or set the PKG_CONFIG environment variable to the full 11273path to pkg-config. 11274 11275Alternatively, you may set the environment variables FONTTOSFNT_CFLAGS 11276and FONTTOSFNT_LIBS to avoid the need to call pkg-config. 11277See the pkg-config man page for more details. 11278 11279To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11280See \`config.log' for more details" "$LINENO" 5; } 11281else 11282 FONTTOSFNT_CFLAGS=$pkg_cv_FONTTOSFNT_CFLAGS 11283 FONTTOSFNT_LIBS=$pkg_cv_FONTTOSFNT_LIBS 11284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11285printf "%s\n" "yes" >&6; } 11286 11287fi 11288 11289 11290ac_config_files="$ac_config_files Makefile man/Makefile" 11291 11292cat >confcache <<\_ACEOF 11293# This file is a shell script that caches the results of configure 11294# tests run on this system so they can be shared between configure 11295# scripts and configure runs, see configure's option --config-cache. 11296# It is not useful on other systems. If it contains results you don't 11297# want to keep, you may remove or edit it. 11298# 11299# config.status only pays attention to the cache file if you give it 11300# the --recheck option to rerun configure. 11301# 11302# `ac_cv_env_foo' variables (set or unset) will be overridden when 11303# loading this file, other *unset* `ac_cv_foo' will be assigned the 11304# following values. 11305 11306_ACEOF 11307 11308# The following way of writing the cache mishandles newlines in values, 11309# but we know of no workaround that is simple, portable, and efficient. 11310# So, we kill variables containing newlines. 11311# Ultrix sh set writes to stderr and can't be redirected directly, 11312# and sets the high bit in the cache file unless we assign to the vars. 11313( 11314 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11315 eval ac_val=\$$ac_var 11316 case $ac_val in #( 11317 *${as_nl}*) 11318 case $ac_var in #( 11319 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11320printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11321 esac 11322 case $ac_var in #( 11323 _ | IFS | as_nl) ;; #( 11324 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11325 *) { eval $ac_var=; unset $ac_var;} ;; 11326 esac ;; 11327 esac 11328 done 11329 11330 (set) 2>&1 | 11331 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11332 *${as_nl}ac_space=\ *) 11333 # `set' does not quote correctly, so add quotes: double-quote 11334 # substitution turns \\\\ into \\, and sed turns \\ into \. 11335 sed -n \ 11336 "s/'/'\\\\''/g; 11337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11338 ;; #( 11339 *) 11340 # `set' quotes correctly as required by POSIX, so do not add quotes. 11341 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11342 ;; 11343 esac | 11344 sort 11345) | 11346 sed ' 11347 /^ac_cv_env_/b end 11348 t clear 11349 :clear 11350 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11351 t end 11352 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11353 :end' >>confcache 11354if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11355 if test -w "$cache_file"; then 11356 if test "x$cache_file" != "x/dev/null"; then 11357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11358printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11359 if test ! -f "$cache_file" || test -h "$cache_file"; then 11360 cat confcache >"$cache_file" 11361 else 11362 case $cache_file in #( 11363 */* | ?:*) 11364 mv -f confcache "$cache_file"$$ && 11365 mv -f "$cache_file"$$ "$cache_file" ;; #( 11366 *) 11367 mv -f confcache "$cache_file" ;; 11368 esac 11369 fi 11370 fi 11371 else 11372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11373printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11374 fi 11375fi 11376rm -f confcache 11377 11378test "x$prefix" = xNONE && prefix=$ac_default_prefix 11379# Let make expand exec_prefix. 11380test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11381 11382DEFS=-DHAVE_CONFIG_H 11383 11384ac_libobjs= 11385ac_ltlibobjs= 11386U= 11387for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11388 # 1. Remove the extension, and $U if already installed. 11389 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11390 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11391 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11392 # will be set to the directory where LIBOBJS objects are built. 11393 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11394 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11395done 11396LIBOBJS=$ac_libobjs 11397 11398LTLIBOBJS=$ac_ltlibobjs 11399 11400 11401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11402printf %s "checking that generated files are newer than configure... " >&6; } 11403 if test -n "$am_sleep_pid"; then 11404 # Hide warnings about reused PIDs. 11405 wait $am_sleep_pid 2>/dev/null 11406 fi 11407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11408printf "%s\n" "done" >&6; } 11409 if test -n "$EXEEXT"; then 11410 am__EXEEXT_TRUE= 11411 am__EXEEXT_FALSE='#' 11412else 11413 am__EXEEXT_TRUE='#' 11414 am__EXEEXT_FALSE= 11415fi 11416 11417if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11418 as_fn_error $? "conditional \"AMDEP\" was never defined. 11419Usually this means the macro was only invoked conditionally." "$LINENO" 5 11420fi 11421if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11422 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11423Usually this means the macro was only invoked conditionally." "$LINENO" 5 11424fi 11425if test -z "${NEED_SETENV_TRUE}" && test -z "${NEED_SETENV_FALSE}"; then 11426 as_fn_error $? "conditional \"NEED_SETENV\" was never defined. 11427Usually this means the macro was only invoked conditionally." "$LINENO" 5 11428fi 11429 11430: "${CONFIG_STATUS=./config.status}" 11431ac_write_fail=0 11432ac_clean_files_save=$ac_clean_files 11433ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11435printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11436as_write_fail=0 11437cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11438#! $SHELL 11439# Generated by $as_me. 11440# Run this file to recreate the current configuration. 11441# Compiler output produced by configure, useful for debugging 11442# configure, is in config.log if it exists. 11443 11444debug=false 11445ac_cs_recheck=false 11446ac_cs_silent=false 11447 11448SHELL=\${CONFIG_SHELL-$SHELL} 11449export SHELL 11450_ASEOF 11451cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11452## -------------------- ## 11453## M4sh Initialization. ## 11454## -------------------- ## 11455 11456# Be more Bourne compatible 11457DUALCASE=1; export DUALCASE # for MKS sh 11458as_nop=: 11459if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11460then : 11461 emulate sh 11462 NULLCMD=: 11463 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11464 # is contrary to our usage. Disable this feature. 11465 alias -g '${1+"$@"}'='"$@"' 11466 setopt NO_GLOB_SUBST 11467else $as_nop 11468 case `(set -o) 2>/dev/null` in #( 11469 *posix*) : 11470 set -o posix ;; #( 11471 *) : 11472 ;; 11473esac 11474fi 11475 11476 11477 11478# Reset variables that may have inherited troublesome values from 11479# the environment. 11480 11481# IFS needs to be set, to space, tab, and newline, in precisely that order. 11482# (If _AS_PATH_WALK were called with IFS unset, it would have the 11483# side effect of setting IFS to empty, thus disabling word splitting.) 11484# Quoting is to prevent editors from complaining about space-tab. 11485as_nl=' 11486' 11487export as_nl 11488IFS=" "" $as_nl" 11489 11490PS1='$ ' 11491PS2='> ' 11492PS4='+ ' 11493 11494# Ensure predictable behavior from utilities with locale-dependent output. 11495LC_ALL=C 11496export LC_ALL 11497LANGUAGE=C 11498export LANGUAGE 11499 11500# We cannot yet rely on "unset" to work, but we need these variables 11501# to be unset--not just set to an empty or harmless value--now, to 11502# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11503# also avoids known problems related to "unset" and subshell syntax 11504# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11505for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11506do eval test \${$as_var+y} \ 11507 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11508done 11509 11510# Ensure that fds 0, 1, and 2 are open. 11511if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11512if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11513if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11514 11515# The user is always right. 11516if ${PATH_SEPARATOR+false} :; then 11517 PATH_SEPARATOR=: 11518 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11519 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11520 PATH_SEPARATOR=';' 11521 } 11522fi 11523 11524 11525# Find who we are. Look in the path if we contain no directory separator. 11526as_myself= 11527case $0 in #(( 11528 *[\\/]* ) as_myself=$0 ;; 11529 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11530for as_dir in $PATH 11531do 11532 IFS=$as_save_IFS 11533 case $as_dir in #((( 11534 '') as_dir=./ ;; 11535 */) ;; 11536 *) as_dir=$as_dir/ ;; 11537 esac 11538 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11539 done 11540IFS=$as_save_IFS 11541 11542 ;; 11543esac 11544# We did not find ourselves, most probably we were run as `sh COMMAND' 11545# in which case we are not to be found in the path. 11546if test "x$as_myself" = x; then 11547 as_myself=$0 11548fi 11549if test ! -f "$as_myself"; then 11550 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11551 exit 1 11552fi 11553 11554 11555 11556# as_fn_error STATUS ERROR [LINENO LOG_FD] 11557# ---------------------------------------- 11558# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11559# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11560# script with STATUS, using 1 if that was 0. 11561as_fn_error () 11562{ 11563 as_status=$1; test $as_status -eq 0 && as_status=1 11564 if test "$4"; then 11565 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11567 fi 11568 printf "%s\n" "$as_me: error: $2" >&2 11569 as_fn_exit $as_status 11570} # as_fn_error 11571 11572 11573 11574# as_fn_set_status STATUS 11575# ----------------------- 11576# Set $? to STATUS, without forking. 11577as_fn_set_status () 11578{ 11579 return $1 11580} # as_fn_set_status 11581 11582# as_fn_exit STATUS 11583# ----------------- 11584# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11585as_fn_exit () 11586{ 11587 set +e 11588 as_fn_set_status $1 11589 exit $1 11590} # as_fn_exit 11591 11592# as_fn_unset VAR 11593# --------------- 11594# Portably unset VAR. 11595as_fn_unset () 11596{ 11597 { eval $1=; unset $1;} 11598} 11599as_unset=as_fn_unset 11600 11601# as_fn_append VAR VALUE 11602# ---------------------- 11603# Append the text in VALUE to the end of the definition contained in VAR. Take 11604# advantage of any shell optimizations that allow amortized linear growth over 11605# repeated appends, instead of the typical quadratic growth present in naive 11606# implementations. 11607if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11608then : 11609 eval 'as_fn_append () 11610 { 11611 eval $1+=\$2 11612 }' 11613else $as_nop 11614 as_fn_append () 11615 { 11616 eval $1=\$$1\$2 11617 } 11618fi # as_fn_append 11619 11620# as_fn_arith ARG... 11621# ------------------ 11622# Perform arithmetic evaluation on the ARGs, and store the result in the 11623# global $as_val. Take advantage of shells that can avoid forks. The arguments 11624# must be portable across $(()) and expr. 11625if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11626then : 11627 eval 'as_fn_arith () 11628 { 11629 as_val=$(( $* )) 11630 }' 11631else $as_nop 11632 as_fn_arith () 11633 { 11634 as_val=`expr "$@" || test $? -eq 1` 11635 } 11636fi # as_fn_arith 11637 11638 11639if expr a : '\(a\)' >/dev/null 2>&1 && 11640 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11641 as_expr=expr 11642else 11643 as_expr=false 11644fi 11645 11646if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11647 as_basename=basename 11648else 11649 as_basename=false 11650fi 11651 11652if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11653 as_dirname=dirname 11654else 11655 as_dirname=false 11656fi 11657 11658as_me=`$as_basename -- "$0" || 11659$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11660 X"$0" : 'X\(//\)$' \| \ 11661 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11662printf "%s\n" X/"$0" | 11663 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11664 s//\1/ 11665 q 11666 } 11667 /^X\/\(\/\/\)$/{ 11668 s//\1/ 11669 q 11670 } 11671 /^X\/\(\/\).*/{ 11672 s//\1/ 11673 q 11674 } 11675 s/.*/./; q'` 11676 11677# Avoid depending upon Character Ranges. 11678as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11679as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11680as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11681as_cr_digits='0123456789' 11682as_cr_alnum=$as_cr_Letters$as_cr_digits 11683 11684 11685# Determine whether it's possible to make 'echo' print without a newline. 11686# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11687# for compatibility with existing Makefiles. 11688ECHO_C= ECHO_N= ECHO_T= 11689case `echo -n x` in #((((( 11690-n*) 11691 case `echo 'xy\c'` in 11692 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11693 xy) ECHO_C='\c';; 11694 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11695 ECHO_T=' ';; 11696 esac;; 11697*) 11698 ECHO_N='-n';; 11699esac 11700 11701# For backward compatibility with old third-party macros, we provide 11702# the shell variables $as_echo and $as_echo_n. New code should use 11703# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11704as_echo='printf %s\n' 11705as_echo_n='printf %s' 11706 11707rm -f conf$$ conf$$.exe conf$$.file 11708if test -d conf$$.dir; then 11709 rm -f conf$$.dir/conf$$.file 11710else 11711 rm -f conf$$.dir 11712 mkdir conf$$.dir 2>/dev/null 11713fi 11714if (echo >conf$$.file) 2>/dev/null; then 11715 if ln -s conf$$.file conf$$ 2>/dev/null; then 11716 as_ln_s='ln -s' 11717 # ... but there are two gotchas: 11718 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11719 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11720 # In both cases, we have to default to `cp -pR'. 11721 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11722 as_ln_s='cp -pR' 11723 elif ln conf$$.file conf$$ 2>/dev/null; then 11724 as_ln_s=ln 11725 else 11726 as_ln_s='cp -pR' 11727 fi 11728else 11729 as_ln_s='cp -pR' 11730fi 11731rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11732rmdir conf$$.dir 2>/dev/null 11733 11734 11735# as_fn_mkdir_p 11736# ------------- 11737# Create "$as_dir" as a directory, including parents if necessary. 11738as_fn_mkdir_p () 11739{ 11740 11741 case $as_dir in #( 11742 -*) as_dir=./$as_dir;; 11743 esac 11744 test -d "$as_dir" || eval $as_mkdir_p || { 11745 as_dirs= 11746 while :; do 11747 case $as_dir in #( 11748 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11749 *) as_qdir=$as_dir;; 11750 esac 11751 as_dirs="'$as_qdir' $as_dirs" 11752 as_dir=`$as_dirname -- "$as_dir" || 11753$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11754 X"$as_dir" : 'X\(//\)[^/]' \| \ 11755 X"$as_dir" : 'X\(//\)$' \| \ 11756 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11757printf "%s\n" X"$as_dir" | 11758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11759 s//\1/ 11760 q 11761 } 11762 /^X\(\/\/\)[^/].*/{ 11763 s//\1/ 11764 q 11765 } 11766 /^X\(\/\/\)$/{ 11767 s//\1/ 11768 q 11769 } 11770 /^X\(\/\).*/{ 11771 s//\1/ 11772 q 11773 } 11774 s/.*/./; q'` 11775 test -d "$as_dir" && break 11776 done 11777 test -z "$as_dirs" || eval "mkdir $as_dirs" 11778 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11779 11780 11781} # as_fn_mkdir_p 11782if mkdir -p . 2>/dev/null; then 11783 as_mkdir_p='mkdir -p "$as_dir"' 11784else 11785 test -d ./-p && rmdir ./-p 11786 as_mkdir_p=false 11787fi 11788 11789 11790# as_fn_executable_p FILE 11791# ----------------------- 11792# Test if FILE is an executable regular file. 11793as_fn_executable_p () 11794{ 11795 test -f "$1" && test -x "$1" 11796} # as_fn_executable_p 11797as_test_x='test -x' 11798as_executable_p=as_fn_executable_p 11799 11800# Sed expression to map a string onto a valid CPP name. 11801as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11802 11803# Sed expression to map a string onto a valid variable name. 11804as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11805 11806 11807exec 6>&1 11808## ----------------------------------- ## 11809## Main body of $CONFIG_STATUS script. ## 11810## ----------------------------------- ## 11811_ASEOF 11812test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11813 11814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11815# Save the log message, to keep $0 and so on meaningful, and to 11816# report actual input values of CONFIG_FILES etc. instead of their 11817# values after options handling. 11818ac_log=" 11819This file was extended by fonttosfnt $as_me 1.2.3, which was 11820generated by GNU Autoconf 2.71. Invocation command line was 11821 11822 CONFIG_FILES = $CONFIG_FILES 11823 CONFIG_HEADERS = $CONFIG_HEADERS 11824 CONFIG_LINKS = $CONFIG_LINKS 11825 CONFIG_COMMANDS = $CONFIG_COMMANDS 11826 $ $0 $@ 11827 11828on `(hostname || uname -n) 2>/dev/null | sed 1q` 11829" 11830 11831_ACEOF 11832 11833case $ac_config_files in *" 11834"*) set x $ac_config_files; shift; ac_config_files=$*;; 11835esac 11836 11837case $ac_config_headers in *" 11838"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11839esac 11840 11841 11842cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11843# Files that config.status was made for. 11844config_files="$ac_config_files" 11845config_headers="$ac_config_headers" 11846config_commands="$ac_config_commands" 11847 11848_ACEOF 11849 11850cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11851ac_cs_usage="\ 11852\`$as_me' instantiates files and other configuration actions 11853from templates according to the current configuration. Unless the files 11854and actions are specified as TAGs, all are instantiated by default. 11855 11856Usage: $0 [OPTION]... [TAG]... 11857 11858 -h, --help print this help, then exit 11859 -V, --version print version number and configuration settings, then exit 11860 --config print configuration, then exit 11861 -q, --quiet, --silent 11862 do not print progress messages 11863 -d, --debug don't remove temporary files 11864 --recheck update $as_me by reconfiguring in the same conditions 11865 --file=FILE[:TEMPLATE] 11866 instantiate the configuration file FILE 11867 --header=FILE[:TEMPLATE] 11868 instantiate the configuration header FILE 11869 11870Configuration files: 11871$config_files 11872 11873Configuration headers: 11874$config_headers 11875 11876Configuration commands: 11877$config_commands 11878 11879Report bugs to <https://gitlab.freedesktop.org/xorg/app/fonttosfnt/issues>." 11880 11881_ACEOF 11882ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 11883ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 11884cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11885ac_cs_config='$ac_cs_config_escaped' 11886ac_cs_version="\\ 11887fonttosfnt config.status 1.2.3 11888configured by $0, generated by GNU Autoconf 2.71, 11889 with options \\"\$ac_cs_config\\" 11890 11891Copyright (C) 2021 Free Software Foundation, Inc. 11892This config.status script is free software; the Free Software Foundation 11893gives unlimited permission to copy, distribute and modify it." 11894 11895ac_pwd='$ac_pwd' 11896srcdir='$srcdir' 11897INSTALL='$INSTALL' 11898MKDIR_P='$MKDIR_P' 11899AWK='$AWK' 11900test -n "\$AWK" || AWK=awk 11901_ACEOF 11902 11903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11904# The default lists apply if the user does not specify any file. 11905ac_need_defaults=: 11906while test $# != 0 11907do 11908 case $1 in 11909 --*=?*) 11910 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11911 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11912 ac_shift=: 11913 ;; 11914 --*=) 11915 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11916 ac_optarg= 11917 ac_shift=: 11918 ;; 11919 *) 11920 ac_option=$1 11921 ac_optarg=$2 11922 ac_shift=shift 11923 ;; 11924 esac 11925 11926 case $ac_option in 11927 # Handling of the options. 11928 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11929 ac_cs_recheck=: ;; 11930 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11931 printf "%s\n" "$ac_cs_version"; exit ;; 11932 --config | --confi | --conf | --con | --co | --c ) 11933 printf "%s\n" "$ac_cs_config"; exit ;; 11934 --debug | --debu | --deb | --de | --d | -d ) 11935 debug=: ;; 11936 --file | --fil | --fi | --f ) 11937 $ac_shift 11938 case $ac_optarg in 11939 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11940 '') as_fn_error $? "missing file argument" ;; 11941 esac 11942 as_fn_append CONFIG_FILES " '$ac_optarg'" 11943 ac_need_defaults=false;; 11944 --header | --heade | --head | --hea ) 11945 $ac_shift 11946 case $ac_optarg in 11947 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11948 esac 11949 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11950 ac_need_defaults=false;; 11951 --he | --h) 11952 # Conflict between --help and --header 11953 as_fn_error $? "ambiguous option: \`$1' 11954Try \`$0 --help' for more information.";; 11955 --help | --hel | -h ) 11956 printf "%s\n" "$ac_cs_usage"; exit ;; 11957 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11958 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11959 ac_cs_silent=: ;; 11960 11961 # This is an error. 11962 -*) as_fn_error $? "unrecognized option: \`$1' 11963Try \`$0 --help' for more information." ;; 11964 11965 *) as_fn_append ac_config_targets " $1" 11966 ac_need_defaults=false ;; 11967 11968 esac 11969 shift 11970done 11971 11972ac_configure_extra_args= 11973 11974if $ac_cs_silent; then 11975 exec 6>/dev/null 11976 ac_configure_extra_args="$ac_configure_extra_args --silent" 11977fi 11978 11979_ACEOF 11980cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11981if \$ac_cs_recheck; then 11982 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11983 shift 11984 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 11985 CONFIG_SHELL='$SHELL' 11986 export CONFIG_SHELL 11987 exec "\$@" 11988fi 11989 11990_ACEOF 11991cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11992exec 5>>config.log 11993{ 11994 echo 11995 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11996## Running $as_me. ## 11997_ASBOX 11998 printf "%s\n" "$ac_log" 11999} >&5 12000 12001_ACEOF 12002cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12003# 12004# INIT-COMMANDS 12005# 12006AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12007 12008_ACEOF 12009 12010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12011 12012# Handling of arguments. 12013for ac_config_target in $ac_config_targets 12014do 12015 case $ac_config_target in 12016 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12017 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12018 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12019 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12020 12021 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12022 esac 12023done 12024 12025 12026# If the user did not use the arguments to specify the items to instantiate, 12027# then the envvar interface is used. Set only those that are not. 12028# We use the long form for the default assignment because of an extremely 12029# bizarre bug on SunOS 4.1.3. 12030if $ac_need_defaults; then 12031 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12032 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12033 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12034fi 12035 12036# Have a temporary directory for convenience. Make it in the build tree 12037# simply because there is no reason against having it here, and in addition, 12038# creating and moving files from /tmp can sometimes cause problems. 12039# Hook for its removal unless debugging. 12040# Note that there is a small window in which the directory will not be cleaned: 12041# after its creation but before its name has been assigned to `$tmp'. 12042$debug || 12043{ 12044 tmp= ac_tmp= 12045 trap 'exit_status=$? 12046 : "${ac_tmp:=$tmp}" 12047 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12048' 0 12049 trap 'as_fn_exit 1' 1 2 13 15 12050} 12051# Create a (secure) tmp directory for tmp files. 12052 12053{ 12054 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12055 test -d "$tmp" 12056} || 12057{ 12058 tmp=./conf$$-$RANDOM 12059 (umask 077 && mkdir "$tmp") 12060} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12061ac_tmp=$tmp 12062 12063# Set up the scripts for CONFIG_FILES section. 12064# No need to generate them if there are no CONFIG_FILES. 12065# This happens for instance with `./config.status config.h'. 12066if test -n "$CONFIG_FILES"; then 12067 12068 12069ac_cr=`echo X | tr X '\015'` 12070# On cygwin, bash can eat \r inside `` if the user requested igncr. 12071# But we know of no other shell where ac_cr would be empty at this 12072# point, so we can use a bashism as a fallback. 12073if test "x$ac_cr" = x; then 12074 eval ac_cr=\$\'\\r\' 12075fi 12076ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12077if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12078 ac_cs_awk_cr='\\r' 12079else 12080 ac_cs_awk_cr=$ac_cr 12081fi 12082 12083echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12084_ACEOF 12085 12086 12087{ 12088 echo "cat >conf$$subs.awk <<_ACEOF" && 12089 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12090 echo "_ACEOF" 12091} >conf$$subs.sh || 12092 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12093ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12094ac_delim='%!_!# ' 12095for ac_last_try in false false false false false :; do 12096 . ./conf$$subs.sh || 12097 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12098 12099 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12100 if test $ac_delim_n = $ac_delim_num; then 12101 break 12102 elif $ac_last_try; then 12103 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12104 else 12105 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12106 fi 12107done 12108rm -f conf$$subs.sh 12109 12110cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12111cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12112_ACEOF 12113sed -n ' 12114h 12115s/^/S["/; s/!.*/"]=/ 12116p 12117g 12118s/^[^!]*!// 12119:repl 12120t repl 12121s/'"$ac_delim"'$// 12122t delim 12123:nl 12124h 12125s/\(.\{148\}\)..*/\1/ 12126t more1 12127s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12128p 12129n 12130b repl 12131:more1 12132s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12133p 12134g 12135s/.\{148\}// 12136t nl 12137:delim 12138h 12139s/\(.\{148\}\)..*/\1/ 12140t more2 12141s/["\\]/\\&/g; s/^/"/; s/$/"/ 12142p 12143b 12144:more2 12145s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12146p 12147g 12148s/.\{148\}// 12149t delim 12150' <conf$$subs.awk | sed ' 12151/^[^""]/{ 12152 N 12153 s/\n// 12154} 12155' >>$CONFIG_STATUS || ac_write_fail=1 12156rm -f conf$$subs.awk 12157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12158_ACAWK 12159cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12160 for (key in S) S_is_set[key] = 1 12161 FS = "" 12162 12163} 12164{ 12165 line = $ 0 12166 nfields = split(line, field, "@") 12167 substed = 0 12168 len = length(field[1]) 12169 for (i = 2; i < nfields; i++) { 12170 key = field[i] 12171 keylen = length(key) 12172 if (S_is_set[key]) { 12173 value = S[key] 12174 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12175 len += length(value) + length(field[++i]) 12176 substed = 1 12177 } else 12178 len += 1 + keylen 12179 } 12180 12181 print line 12182} 12183 12184_ACAWK 12185_ACEOF 12186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12187if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12188 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12189else 12190 cat 12191fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12192 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12193_ACEOF 12194 12195# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12196# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12197# trailing colons and then remove the whole line if VPATH becomes empty 12198# (actually we leave an empty line to preserve line numbers). 12199if test "x$srcdir" = x.; then 12200 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12201h 12202s/// 12203s/^/:/ 12204s/[ ]*$/:/ 12205s/:\$(srcdir):/:/g 12206s/:\${srcdir}:/:/g 12207s/:@srcdir@:/:/g 12208s/^:*// 12209s/:*$// 12210x 12211s/\(=[ ]*\).*/\1/ 12212G 12213s/\n// 12214s/^[^=]*=[ ]*$// 12215}' 12216fi 12217 12218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12219fi # test -n "$CONFIG_FILES" 12220 12221# Set up the scripts for CONFIG_HEADERS section. 12222# No need to generate them if there are no CONFIG_HEADERS. 12223# This happens for instance with `./config.status Makefile'. 12224if test -n "$CONFIG_HEADERS"; then 12225cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12226BEGIN { 12227_ACEOF 12228 12229# Transform confdefs.h into an awk script `defines.awk', embedded as 12230# here-document in config.status, that substitutes the proper values into 12231# config.h.in to produce config.h. 12232 12233# Create a delimiter string that does not exist in confdefs.h, to ease 12234# handling of long lines. 12235ac_delim='%!_!# ' 12236for ac_last_try in false false :; do 12237 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12238 if test -z "$ac_tt"; then 12239 break 12240 elif $ac_last_try; then 12241 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12242 else 12243 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12244 fi 12245done 12246 12247# For the awk script, D is an array of macro values keyed by name, 12248# likewise P contains macro parameters if any. Preserve backslash 12249# newline sequences. 12250 12251ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12252sed -n ' 12253s/.\{148\}/&'"$ac_delim"'/g 12254t rset 12255:rset 12256s/^[ ]*#[ ]*define[ ][ ]*/ / 12257t def 12258d 12259:def 12260s/\\$// 12261t bsnl 12262s/["\\]/\\&/g 12263s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12264D["\1"]=" \3"/p 12265s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12266d 12267:bsnl 12268s/["\\]/\\&/g 12269s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12270D["\1"]=" \3\\\\\\n"\\/p 12271t cont 12272s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12273t cont 12274d 12275:cont 12276n 12277s/.\{148\}/&'"$ac_delim"'/g 12278t clear 12279:clear 12280s/\\$// 12281t bsnlc 12282s/["\\]/\\&/g; s/^/"/; s/$/"/p 12283d 12284:bsnlc 12285s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12286b cont 12287' <confdefs.h | sed ' 12288s/'"$ac_delim"'/"\\\ 12289"/g' >>$CONFIG_STATUS || ac_write_fail=1 12290 12291cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12292 for (key in D) D_is_set[key] = 1 12293 FS = "" 12294} 12295/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12296 line = \$ 0 12297 split(line, arg, " ") 12298 if (arg[1] == "#") { 12299 defundef = arg[2] 12300 mac1 = arg[3] 12301 } else { 12302 defundef = substr(arg[1], 2) 12303 mac1 = arg[2] 12304 } 12305 split(mac1, mac2, "(") #) 12306 macro = mac2[1] 12307 prefix = substr(line, 1, index(line, defundef) - 1) 12308 if (D_is_set[macro]) { 12309 # Preserve the white space surrounding the "#". 12310 print prefix "define", macro P[macro] D[macro] 12311 next 12312 } else { 12313 # Replace #undef with comments. This is necessary, for example, 12314 # in the case of _POSIX_SOURCE, which is predefined and required 12315 # on some systems where configure will not decide to define it. 12316 if (defundef == "undef") { 12317 print "/*", prefix defundef, macro, "*/" 12318 next 12319 } 12320 } 12321} 12322{ print } 12323_ACAWK 12324_ACEOF 12325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12326 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12327fi # test -n "$CONFIG_HEADERS" 12328 12329 12330eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12331shift 12332for ac_tag 12333do 12334 case $ac_tag in 12335 :[FHLC]) ac_mode=$ac_tag; continue;; 12336 esac 12337 case $ac_mode$ac_tag in 12338 :[FHL]*:*);; 12339 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12340 :[FH]-) ac_tag=-:-;; 12341 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12342 esac 12343 ac_save_IFS=$IFS 12344 IFS=: 12345 set x $ac_tag 12346 IFS=$ac_save_IFS 12347 shift 12348 ac_file=$1 12349 shift 12350 12351 case $ac_mode in 12352 :L) ac_source=$1;; 12353 :[FH]) 12354 ac_file_inputs= 12355 for ac_f 12356 do 12357 case $ac_f in 12358 -) ac_f="$ac_tmp/stdin";; 12359 *) # Look for the file first in the build tree, then in the source tree 12360 # (if the path is not absolute). The absolute path cannot be DOS-style, 12361 # because $ac_f cannot contain `:'. 12362 test -f "$ac_f" || 12363 case $ac_f in 12364 [\\/$]*) false;; 12365 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12366 esac || 12367 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12368 esac 12369 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12370 as_fn_append ac_file_inputs " '$ac_f'" 12371 done 12372 12373 # Let's still pretend it is `configure' which instantiates (i.e., don't 12374 # use $as_me), people would be surprised to read: 12375 # /* config.h. Generated by config.status. */ 12376 configure_input='Generated from '` 12377 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12378 `' by configure.' 12379 if test x"$ac_file" != x-; then 12380 configure_input="$ac_file. $configure_input" 12381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12382printf "%s\n" "$as_me: creating $ac_file" >&6;} 12383 fi 12384 # Neutralize special characters interpreted by sed in replacement strings. 12385 case $configure_input in #( 12386 *\&* | *\|* | *\\* ) 12387 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12388 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12389 *) ac_sed_conf_input=$configure_input;; 12390 esac 12391 12392 case $ac_tag in 12393 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12394 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12395 esac 12396 ;; 12397 esac 12398 12399 ac_dir=`$as_dirname -- "$ac_file" || 12400$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12401 X"$ac_file" : 'X\(//\)[^/]' \| \ 12402 X"$ac_file" : 'X\(//\)$' \| \ 12403 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12404printf "%s\n" X"$ac_file" | 12405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12406 s//\1/ 12407 q 12408 } 12409 /^X\(\/\/\)[^/].*/{ 12410 s//\1/ 12411 q 12412 } 12413 /^X\(\/\/\)$/{ 12414 s//\1/ 12415 q 12416 } 12417 /^X\(\/\).*/{ 12418 s//\1/ 12419 q 12420 } 12421 s/.*/./; q'` 12422 as_dir="$ac_dir"; as_fn_mkdir_p 12423 ac_builddir=. 12424 12425case "$ac_dir" in 12426.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12427*) 12428 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12429 # A ".." for each directory in $ac_dir_suffix. 12430 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12431 case $ac_top_builddir_sub in 12432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12434 esac ;; 12435esac 12436ac_abs_top_builddir=$ac_pwd 12437ac_abs_builddir=$ac_pwd$ac_dir_suffix 12438# for backward compatibility: 12439ac_top_builddir=$ac_top_build_prefix 12440 12441case $srcdir in 12442 .) # We are building in place. 12443 ac_srcdir=. 12444 ac_top_srcdir=$ac_top_builddir_sub 12445 ac_abs_top_srcdir=$ac_pwd ;; 12446 [\\/]* | ?:[\\/]* ) # Absolute name. 12447 ac_srcdir=$srcdir$ac_dir_suffix; 12448 ac_top_srcdir=$srcdir 12449 ac_abs_top_srcdir=$srcdir ;; 12450 *) # Relative name. 12451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12452 ac_top_srcdir=$ac_top_build_prefix$srcdir 12453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12454esac 12455ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12456 12457 12458 case $ac_mode in 12459 :F) 12460 # 12461 # CONFIG_FILE 12462 # 12463 12464 case $INSTALL in 12465 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12466 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12467 esac 12468 ac_MKDIR_P=$MKDIR_P 12469 case $MKDIR_P in 12470 [\\/$]* | ?:[\\/]* ) ;; 12471 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12472 esac 12473_ACEOF 12474 12475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12476# If the template does not know about datarootdir, expand it. 12477# FIXME: This hack should be removed a few years after 2.60. 12478ac_datarootdir_hack=; ac_datarootdir_seen= 12479ac_sed_dataroot=' 12480/datarootdir/ { 12481 p 12482 q 12483} 12484/@datadir@/p 12485/@docdir@/p 12486/@infodir@/p 12487/@localedir@/p 12488/@mandir@/p' 12489case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12490*datarootdir*) ac_datarootdir_seen=yes;; 12491*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12493printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12494_ACEOF 12495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12496 ac_datarootdir_hack=' 12497 s&@datadir@&$datadir&g 12498 s&@docdir@&$docdir&g 12499 s&@infodir@&$infodir&g 12500 s&@localedir@&$localedir&g 12501 s&@mandir@&$mandir&g 12502 s&\\\${datarootdir}&$datarootdir&g' ;; 12503esac 12504_ACEOF 12505 12506# Neutralize VPATH when `$srcdir' = `.'. 12507# Shell code in configure.ac might set extrasub. 12508# FIXME: do we really want to maintain this feature? 12509cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12510ac_sed_extra="$ac_vpsub 12511$extrasub 12512_ACEOF 12513cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12514:t 12515/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12516s|@configure_input@|$ac_sed_conf_input|;t t 12517s&@top_builddir@&$ac_top_builddir_sub&;t t 12518s&@top_build_prefix@&$ac_top_build_prefix&;t t 12519s&@srcdir@&$ac_srcdir&;t t 12520s&@abs_srcdir@&$ac_abs_srcdir&;t t 12521s&@top_srcdir@&$ac_top_srcdir&;t t 12522s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12523s&@builddir@&$ac_builddir&;t t 12524s&@abs_builddir@&$ac_abs_builddir&;t t 12525s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12526s&@INSTALL@&$ac_INSTALL&;t t 12527s&@MKDIR_P@&$ac_MKDIR_P&;t t 12528$ac_datarootdir_hack 12529" 12530eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12531 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12532 12533test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12534 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12535 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12536 "$ac_tmp/out"`; test -z "$ac_out"; } && 12537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12538which seems to be undefined. Please make sure it is defined" >&5 12539printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12540which seems to be undefined. Please make sure it is defined" >&2;} 12541 12542 rm -f "$ac_tmp/stdin" 12543 case $ac_file in 12544 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12545 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12546 esac \ 12547 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12548 ;; 12549 :H) 12550 # 12551 # CONFIG_HEADER 12552 # 12553 if test x"$ac_file" != x-; then 12554 { 12555 printf "%s\n" "/* $configure_input */" >&1 \ 12556 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12557 } >"$ac_tmp/config.h" \ 12558 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12559 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12561printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12562 else 12563 rm -f "$ac_file" 12564 mv "$ac_tmp/config.h" "$ac_file" \ 12565 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12566 fi 12567 else 12568 printf "%s\n" "/* $configure_input */" >&1 \ 12569 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12570 || as_fn_error $? "could not create -" "$LINENO" 5 12571 fi 12572# Compute "$ac_file"'s index in $config_headers. 12573_am_arg="$ac_file" 12574_am_stamp_count=1 12575for _am_header in $config_headers :; do 12576 case $_am_header in 12577 $_am_arg | $_am_arg:* ) 12578 break ;; 12579 * ) 12580 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12581 esac 12582done 12583echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12584$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12585 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12586 X"$_am_arg" : 'X\(//\)$' \| \ 12587 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12588printf "%s\n" X"$_am_arg" | 12589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12590 s//\1/ 12591 q 12592 } 12593 /^X\(\/\/\)[^/].*/{ 12594 s//\1/ 12595 q 12596 } 12597 /^X\(\/\/\)$/{ 12598 s//\1/ 12599 q 12600 } 12601 /^X\(\/\).*/{ 12602 s//\1/ 12603 q 12604 } 12605 s/.*/./; q'`/stamp-h$_am_stamp_count 12606 ;; 12607 12608 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12609printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12610 ;; 12611 esac 12612 12613 12614 case $ac_file$ac_mode in 12615 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12616 # Older Autoconf quotes --file arguments for eval, but not when files 12617 # are listed without --file. Let's play safe and only enable the eval 12618 # if we detect the quoting. 12619 # TODO: see whether this extra hack can be removed once we start 12620 # requiring Autoconf 2.70 or later. 12621 case $CONFIG_FILES in #( 12622 *\'*) : 12623 eval set x "$CONFIG_FILES" ;; #( 12624 *) : 12625 set x $CONFIG_FILES ;; #( 12626 *) : 12627 ;; 12628esac 12629 shift 12630 # Used to flag and report bootstrapping failures. 12631 am_rc=0 12632 for am_mf 12633 do 12634 # Strip MF so we end up with the name of the file. 12635 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12636 # Check whether this is an Automake generated Makefile which includes 12637 # dependency-tracking related rules and includes. 12638 # Grep'ing the whole file directly is not great: AIX grep has a line 12639 # limit of 2048, but all sed's we know have understand at least 4000. 12640 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12641 || continue 12642 am_dirpart=`$as_dirname -- "$am_mf" || 12643$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12644 X"$am_mf" : 'X\(//\)[^/]' \| \ 12645 X"$am_mf" : 'X\(//\)$' \| \ 12646 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12647printf "%s\n" X"$am_mf" | 12648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12649 s//\1/ 12650 q 12651 } 12652 /^X\(\/\/\)[^/].*/{ 12653 s//\1/ 12654 q 12655 } 12656 /^X\(\/\/\)$/{ 12657 s//\1/ 12658 q 12659 } 12660 /^X\(\/\).*/{ 12661 s//\1/ 12662 q 12663 } 12664 s/.*/./; q'` 12665 am_filepart=`$as_basename -- "$am_mf" || 12666$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12667 X"$am_mf" : 'X\(//\)$' \| \ 12668 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12669printf "%s\n" X/"$am_mf" | 12670 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12671 s//\1/ 12672 q 12673 } 12674 /^X\/\(\/\/\)$/{ 12675 s//\1/ 12676 q 12677 } 12678 /^X\/\(\/\).*/{ 12679 s//\1/ 12680 q 12681 } 12682 s/.*/./; q'` 12683 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12684 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12685 | $MAKE -f - am--depfiles" >&5 12686 (cd "$am_dirpart" \ 12687 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12688 | $MAKE -f - am--depfiles) >&5 2>&5 12689 ac_status=$? 12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12691 (exit $ac_status); } || am_rc=$? 12692 done 12693 if test $am_rc -ne 0; then 12694 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12695printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12696as_fn_error $? "Something went wrong bootstrapping makefile fragments 12697 for automatic dependency tracking. If GNU make was not used, consider 12698 re-running the configure script with MAKE=\"gmake\" (or whatever is 12699 necessary). You can also try re-running configure with the 12700 '--disable-dependency-tracking' option to at least be able to build 12701 the package (albeit without support for automatic dependency tracking). 12702See \`config.log' for more details" "$LINENO" 5; } 12703 fi 12704 { am_dirpart=; unset am_dirpart;} 12705 { am_filepart=; unset am_filepart;} 12706 { am_mf=; unset am_mf;} 12707 { am_rc=; unset am_rc;} 12708 rm -f conftest-deps.mk 12709} 12710 ;; 12711 12712 esac 12713done # for ac_tag 12714 12715 12716as_fn_exit 0 12717_ACEOF 12718ac_clean_files=$ac_clean_files_save 12719 12720test $ac_write_fail = 0 || 12721 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12722 12723 12724# configure is writing to config.log, and then calls config.status. 12725# config.status does its own redirection, appending to config.log. 12726# Unfortunately, on DOS this fails, as config.log is still kept open 12727# by configure, so config.status won't be able to write to it; its 12728# output is simply discarded. So we exec the FD to /dev/null, 12729# effectively closing config.log, so it can be properly (re)opened and 12730# appended to by config.status. When coming back to configure, we 12731# need to make the FD available again. 12732if test "$no_create" != yes; then 12733 ac_cs_success=: 12734 ac_config_status_args= 12735 test "$silent" = yes && 12736 ac_config_status_args="$ac_config_status_args --quiet" 12737 exec 5>/dev/null 12738 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12739 exec 5>>config.log 12740 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12741 # would make configure fail if this is the last instruction. 12742 $ac_cs_success || as_fn_exit 1 12743fi 12744if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12746printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12747fi 12748 12749 12750