configure revision d5637ae9
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for libXScrnSaver 1.2.4. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxscrnsaver/-/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 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 194test \$(( 1 + 1 )) = 2 || exit 1" 195 if (eval "$as_required") 2>/dev/null 196then : 197 as_have_required=yes 198else $as_nop 199 as_have_required=no 200fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202then : 203 204else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206as_found=false 207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234IFS=$as_save_IFS 235if $as_found 236then : 237 238else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243fi 244fi 245 246 247 if test "x$CONFIG_SHELL" != x 248then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno 271then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 279$0: https://gitlab.freedesktop.org/xorg/lib/libxscrnsaver/-/issues 280$0: about your system, including any error possibly output 281$0: before this message. Then install a modern shell, or 282$0: manually run the script under such a shell if you do 283$0: have one." 284 fi 285 exit 1 286fi 287fi 288fi 289SHELL=${CONFIG_SHELL-/bin/sh} 290export SHELL 291# Unset more variables known to interfere with behavior of common tools. 292CLICOLOR_FORCE= GREP_OPTIONS= 293unset CLICOLOR_FORCE GREP_OPTIONS 294 295## --------------------- ## 296## M4sh Shell Functions. ## 297## --------------------- ## 298# as_fn_unset VAR 299# --------------- 300# Portably unset VAR. 301as_fn_unset () 302{ 303 { eval $1=; unset $1;} 304} 305as_unset=as_fn_unset 306 307 308# as_fn_set_status STATUS 309# ----------------------- 310# Set $? to STATUS, without forking. 311as_fn_set_status () 312{ 313 return $1 314} # as_fn_set_status 315 316# as_fn_exit STATUS 317# ----------------- 318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 319as_fn_exit () 320{ 321 set +e 322 as_fn_set_status $1 323 exit $1 324} # as_fn_exit 325# as_fn_nop 326# --------- 327# Do nothing but, unlike ":", preserve the value of $?. 328as_fn_nop () 329{ 330 return $? 331} 332as_nop=as_fn_nop 333 334# as_fn_mkdir_p 335# ------------- 336# Create "$as_dir" as a directory, including parents if necessary. 337as_fn_mkdir_p () 338{ 339 340 case $as_dir in #( 341 -*) as_dir=./$as_dir;; 342 esac 343 test -d "$as_dir" || eval $as_mkdir_p || { 344 as_dirs= 345 while :; do 346 case $as_dir in #( 347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 348 *) as_qdir=$as_dir;; 349 esac 350 as_dirs="'$as_qdir' $as_dirs" 351 as_dir=`$as_dirname -- "$as_dir" || 352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 353 X"$as_dir" : 'X\(//\)[^/]' \| \ 354 X"$as_dir" : 'X\(//\)$' \| \ 355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 356printf "%s\n" X"$as_dir" | 357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)[^/].*/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\/\)$/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\).*/{ 370 s//\1/ 371 q 372 } 373 s/.*/./; q'` 374 test -d "$as_dir" && break 375 done 376 test -z "$as_dirs" || eval "mkdir $as_dirs" 377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 378 379 380} # as_fn_mkdir_p 381 382# as_fn_executable_p FILE 383# ----------------------- 384# Test if FILE is an executable regular file. 385as_fn_executable_p () 386{ 387 test -f "$1" && test -x "$1" 388} # as_fn_executable_p 389# as_fn_append VAR VALUE 390# ---------------------- 391# Append the text in VALUE to the end of the definition contained in VAR. Take 392# advantage of any shell optimizations that allow amortized linear growth over 393# repeated appends, instead of the typical quadratic growth present in naive 394# implementations. 395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 396then : 397 eval 'as_fn_append () 398 { 399 eval $1+=\$2 400 }' 401else $as_nop 402 as_fn_append () 403 { 404 eval $1=\$$1\$2 405 } 406fi # as_fn_append 407 408# as_fn_arith ARG... 409# ------------------ 410# Perform arithmetic evaluation on the ARGs, and store the result in the 411# global $as_val. Take advantage of shells that can avoid forks. The arguments 412# must be portable across $(()) and expr. 413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 414then : 415 eval 'as_fn_arith () 416 { 417 as_val=$(( $* )) 418 }' 419else $as_nop 420 as_fn_arith () 421 { 422 as_val=`expr "$@" || test $? -eq 1` 423 } 424fi # as_fn_arith 425 426# as_fn_nop 427# --------- 428# Do nothing but, unlike ":", preserve the value of $?. 429as_fn_nop () 430{ 431 return $? 432} 433as_nop=as_fn_nop 434 435# as_fn_error STATUS ERROR [LINENO LOG_FD] 436# ---------------------------------------- 437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 439# script with STATUS, using 1 if that was 0. 440as_fn_error () 441{ 442 as_status=$1; test $as_status -eq 0 && as_status=1 443 if test "$4"; then 444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 446 fi 447 printf "%s\n" "$as_me: error: $2" >&2 448 as_fn_exit $as_status 449} # as_fn_error 450 451if expr a : '\(a\)' >/dev/null 2>&1 && 452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 453 as_expr=expr 454else 455 as_expr=false 456fi 457 458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 459 as_basename=basename 460else 461 as_basename=false 462fi 463 464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466else 467 as_dirname=false 468fi 469 470as_me=`$as_basename -- "$0" || 471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 472 X"$0" : 'X\(//\)$' \| \ 473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 474printf "%s\n" X/"$0" | 475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\/\)$/{ 480 s//\1/ 481 q 482 } 483 /^X\/\(\/\).*/{ 484 s//\1/ 485 q 486 } 487 s/.*/./; q'` 488 489# Avoid depending upon Character Ranges. 490as_cr_letters='abcdefghijklmnopqrstuvwxyz' 491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 492as_cr_Letters=$as_cr_letters$as_cr_LETTERS 493as_cr_digits='0123456789' 494as_cr_alnum=$as_cr_Letters$as_cr_digits 495 496 497 as_lineno_1=$LINENO as_lineno_1a=$LINENO 498 as_lineno_2=$LINENO as_lineno_2a=$LINENO 499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 502 sed -n ' 503 p 504 /[$]LINENO/= 505 ' <$as_myself | 506 sed ' 507 s/[$]LINENO.*/&-/ 508 t lineno 509 b 510 :lineno 511 N 512 :loop 513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 514 t loop 515 s/-\n.*// 516 ' >$as_me.lineno && 517 chmod +x "$as_me.lineno" || 518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 519 520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 521 # already done that, so ensure we don't try to do so again and fall 522 # in an infinite loop. This has already happened in practice. 523 _as_can_reexec=no; export _as_can_reexec 524 # Don't try to exec as it changes $[0], causing all sort of problems 525 # (the dirname of $[0] is not the place where we might find the 526 # original and so on. Autoconf is especially sensitive to this). 527 . "./$as_me.lineno" 528 # Exit status is that of the last command. 529 exit 530} 531 532 533# Determine whether it's possible to make 'echo' print without a newline. 534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 535# for compatibility with existing Makefiles. 536ECHO_C= ECHO_N= ECHO_T= 537case `echo -n x` in #((((( 538-n*) 539 case `echo 'xy\c'` in 540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 541 xy) ECHO_C='\c';; 542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 543 ECHO_T=' ';; 544 esac;; 545*) 546 ECHO_N='-n';; 547esac 548 549# For backward compatibility with old third-party macros, we provide 550# the shell variables $as_echo and $as_echo_n. New code should use 551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 552as_echo='printf %s\n' 553as_echo_n='printf %s' 554 555 556rm -f conf$$ conf$$.exe conf$$.file 557if test -d conf$$.dir; then 558 rm -f conf$$.dir/conf$$.file 559else 560 rm -f conf$$.dir 561 mkdir conf$$.dir 2>/dev/null 562fi 563if (echo >conf$$.file) 2>/dev/null; then 564 if ln -s conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s='ln -s' 566 # ... but there are two gotchas: 567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 569 # In both cases, we have to default to `cp -pR'. 570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 571 as_ln_s='cp -pR' 572 elif ln conf$$.file conf$$ 2>/dev/null; then 573 as_ln_s=ln 574 else 575 as_ln_s='cp -pR' 576 fi 577else 578 as_ln_s='cp -pR' 579fi 580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 581rmdir conf$$.dir 2>/dev/null 582 583if mkdir -p . 2>/dev/null; then 584 as_mkdir_p='mkdir -p "$as_dir"' 585else 586 test -d ./-p && rmdir ./-p 587 as_mkdir_p=false 588fi 589 590as_test_x='test -x' 591as_executable_p=as_fn_executable_p 592 593# Sed expression to map a string onto a valid CPP name. 594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 595 596# Sed expression to map a string onto a valid variable name. 597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 598 599SHELL=${CONFIG_SHELL-/bin/sh} 600 601 602test -n "$DJDIR" || exec 7<&0 </dev/null 603exec 6>&1 604 605# Name of the host. 606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 607# so uname gets run too. 608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 609 610# 611# Initializations. 612# 613ac_default_prefix=/usr/local 614ac_clean_files= 615ac_config_libobj_dir=. 616LIBOBJS= 617cross_compiling=no 618subdirs= 619MFLAGS= 620MAKEFLAGS= 621 622# Identity of this package. 623PACKAGE_NAME='libXScrnSaver' 624PACKAGE_TARNAME='libXScrnSaver' 625PACKAGE_VERSION='1.2.4' 626PACKAGE_STRING='libXScrnSaver 1.2.4' 627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxscrnsaver/-/issues' 628PACKAGE_URL='' 629 630ac_unique_file="Makefile.am" 631# Factoring default headers for most tests. 632ac_includes_default="\ 633#include <stddef.h> 634#ifdef HAVE_STDIO_H 635# include <stdio.h> 636#endif 637#ifdef HAVE_STDLIB_H 638# include <stdlib.h> 639#endif 640#ifdef HAVE_STRING_H 641# include <string.h> 642#endif 643#ifdef HAVE_INTTYPES_H 644# include <inttypes.h> 645#endif 646#ifdef HAVE_STDINT_H 647# include <stdint.h> 648#endif 649#ifdef HAVE_STRINGS_H 650# include <strings.h> 651#endif 652#ifdef HAVE_SYS_TYPES_H 653# include <sys/types.h> 654#endif 655#ifdef HAVE_SYS_STAT_H 656# include <sys/stat.h> 657#endif 658#ifdef HAVE_UNISTD_H 659# include <unistd.h> 660#endif" 661 662ac_header_c_list= 663ac_subst_vars='am__EXEEXT_FALSE 664am__EXEEXT_TRUE 665LTLIBOBJS 666LIBOBJS 667MAKE_LINT_LIB_FALSE 668MAKE_LINT_LIB_TRUE 669LINTLIB 670LINT_FALSE 671LINT_TRUE 672LINT_FLAGS 673LINT 674XSCRNSAVER_LIBS 675XSCRNSAVER_CFLAGS 676XTMALLOC_ZERO_CFLAGS 677XMALLOC_ZERO_CFLAGS 678MALLOC_ZERO_CFLAGS 679MAN_SUBSTS 680XORG_MAN_PAGE 681ADMIN_MAN_DIR 682DRIVER_MAN_DIR 683MISC_MAN_DIR 684FILE_MAN_DIR 685LIB_MAN_DIR 686APP_MAN_DIR 687ADMIN_MAN_SUFFIX 688DRIVER_MAN_SUFFIX 689MISC_MAN_SUFFIX 690FILE_MAN_SUFFIX 691LIB_MAN_SUFFIX 692APP_MAN_SUFFIX 693INSTALL_CMD 694PKG_CONFIG_LIBDIR 695PKG_CONFIG_PATH 696PKG_CONFIG 697CHANGELOG_CMD 698STRICT_CFLAGS 699CWARNFLAGS 700BASE_CFLAGS 701LT_SYS_LIBRARY_PATH 702OTOOL64 703OTOOL 704LIPO 705NMEDIT 706DSYMUTIL 707MANIFEST_TOOL 708RANLIB 709ac_ct_AR 710AR 711DLLTOOL 712OBJDUMP 713FILECMD 714LN_S 715NM 716ac_ct_DUMPBIN 717DUMPBIN 718LD 719FGREP 720EGREP 721GREP 722SED 723am__fastdepCC_FALSE 724am__fastdepCC_TRUE 725CCDEPMODE 726am__nodep 727AMDEPBACKSLASH 728AMDEP_FALSE 729AMDEP_TRUE 730am__include 731DEPDIR 732OBJEXT 733EXEEXT 734ac_ct_CC 735CPPFLAGS 736LDFLAGS 737CFLAGS 738CC 739host_os 740host_vendor 741host_cpu 742host 743build_os 744build_vendor 745build_cpu 746build 747LIBTOOL 748AM_BACKSLASH 749AM_DEFAULT_VERBOSITY 750AM_DEFAULT_V 751AM_V 752CSCOPE 753ETAGS 754CTAGS 755am__untar 756am__tar 757AMTAR 758am__leading_dot 759SET_MAKE 760AWK 761mkdir_p 762MKDIR_P 763INSTALL_STRIP_PROGRAM 764STRIP 765install_sh 766MAKEINFO 767AUTOHEADER 768AUTOMAKE 769AUTOCONF 770ACLOCAL 771VERSION 772PACKAGE 773CYGPATH_W 774am__isrc 775INSTALL_DATA 776INSTALL_SCRIPT 777INSTALL_PROGRAM 778target_alias 779host_alias 780build_alias 781LIBS 782ECHO_T 783ECHO_N 784ECHO_C 785DEFS 786mandir 787localedir 788libdir 789psdir 790pdfdir 791dvidir 792htmldir 793infodir 794docdir 795oldincludedir 796includedir 797runstatedir 798localstatedir 799sharedstatedir 800sysconfdir 801datadir 802datarootdir 803libexecdir 804sbindir 805bindir 806program_transform_name 807prefix 808exec_prefix 809PACKAGE_URL 810PACKAGE_BUGREPORT 811PACKAGE_STRING 812PACKAGE_VERSION 813PACKAGE_TARNAME 814PACKAGE_NAME 815PATH_SEPARATOR 816SHELL 817am__quote' 818ac_subst_files='' 819ac_user_opts=' 820enable_option_checking 821enable_silent_rules 822enable_shared 823enable_static 824with_pic 825enable_fast_install 826with_aix_soname 827enable_dependency_tracking 828with_gnu_ld 829with_sysroot 830enable_libtool_lock 831enable_selective_werror 832enable_strict_compilation 833enable_malloc0returnsnull 834with_lint 835enable_lint_library 836' 837 ac_precious_vars='build_alias 838host_alias 839target_alias 840CC 841CFLAGS 842LDFLAGS 843LIBS 844CPPFLAGS 845LT_SYS_LIBRARY_PATH 846PKG_CONFIG 847PKG_CONFIG_PATH 848PKG_CONFIG_LIBDIR 849XSCRNSAVER_CFLAGS 850XSCRNSAVER_LIBS 851LINT 852LINT_FLAGS' 853 854 855# Initialize some variables set by options. 856ac_init_help= 857ac_init_version=false 858ac_unrecognized_opts= 859ac_unrecognized_sep= 860# The variables have the same names as the options, with 861# dashes changed to underlines. 862cache_file=/dev/null 863exec_prefix=NONE 864no_create= 865no_recursion= 866prefix=NONE 867program_prefix=NONE 868program_suffix=NONE 869program_transform_name=s,x,x, 870silent= 871site= 872srcdir= 873verbose= 874x_includes=NONE 875x_libraries=NONE 876 877# Installation directory options. 878# These are left unexpanded so users can "make install exec_prefix=/foo" 879# and all the variables that are supposed to be based on exec_prefix 880# by default will actually change. 881# Use braces instead of parens because sh, perl, etc. also accept them. 882# (The list follows the same order as the GNU Coding Standards.) 883bindir='${exec_prefix}/bin' 884sbindir='${exec_prefix}/sbin' 885libexecdir='${exec_prefix}/libexec' 886datarootdir='${prefix}/share' 887datadir='${datarootdir}' 888sysconfdir='${prefix}/etc' 889sharedstatedir='${prefix}/com' 890localstatedir='${prefix}/var' 891runstatedir='${localstatedir}/run' 892includedir='${prefix}/include' 893oldincludedir='/usr/include' 894docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 895infodir='${datarootdir}/info' 896htmldir='${docdir}' 897dvidir='${docdir}' 898pdfdir='${docdir}' 899psdir='${docdir}' 900libdir='${exec_prefix}/lib' 901localedir='${datarootdir}/locale' 902mandir='${datarootdir}/man' 903 904ac_prev= 905ac_dashdash= 906for ac_option 907do 908 # If the previous option needs an argument, assign it. 909 if test -n "$ac_prev"; then 910 eval $ac_prev=\$ac_option 911 ac_prev= 912 continue 913 fi 914 915 case $ac_option in 916 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 917 *=) ac_optarg= ;; 918 *) ac_optarg=yes ;; 919 esac 920 921 case $ac_dashdash$ac_option in 922 --) 923 ac_dashdash=yes ;; 924 925 -bindir | --bindir | --bindi | --bind | --bin | --bi) 926 ac_prev=bindir ;; 927 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 928 bindir=$ac_optarg ;; 929 930 -build | --build | --buil | --bui | --bu) 931 ac_prev=build_alias ;; 932 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 933 build_alias=$ac_optarg ;; 934 935 -cache-file | --cache-file | --cache-fil | --cache-fi \ 936 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 937 ac_prev=cache_file ;; 938 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 939 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 940 cache_file=$ac_optarg ;; 941 942 --config-cache | -C) 943 cache_file=config.cache ;; 944 945 -datadir | --datadir | --datadi | --datad) 946 ac_prev=datadir ;; 947 -datadir=* | --datadir=* | --datadi=* | --datad=*) 948 datadir=$ac_optarg ;; 949 950 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 951 | --dataroo | --dataro | --datar) 952 ac_prev=datarootdir ;; 953 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 954 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 955 datarootdir=$ac_optarg ;; 956 957 -disable-* | --disable-*) 958 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 959 # Reject names that are not valid shell variable names. 960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 961 as_fn_error $? "invalid feature name: \`$ac_useropt'" 962 ac_useropt_orig=$ac_useropt 963 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 964 case $ac_user_opts in 965 *" 966"enable_$ac_useropt" 967"*) ;; 968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 969 ac_unrecognized_sep=', ';; 970 esac 971 eval enable_$ac_useropt=no ;; 972 973 -docdir | --docdir | --docdi | --doc | --do) 974 ac_prev=docdir ;; 975 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 976 docdir=$ac_optarg ;; 977 978 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 979 ac_prev=dvidir ;; 980 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 981 dvidir=$ac_optarg ;; 982 983 -enable-* | --enable-*) 984 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 985 # Reject names that are not valid shell variable names. 986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 987 as_fn_error $? "invalid feature name: \`$ac_useropt'" 988 ac_useropt_orig=$ac_useropt 989 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 990 case $ac_user_opts in 991 *" 992"enable_$ac_useropt" 993"*) ;; 994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 995 ac_unrecognized_sep=', ';; 996 esac 997 eval enable_$ac_useropt=\$ac_optarg ;; 998 999 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1000 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1001 | --exec | --exe | --ex) 1002 ac_prev=exec_prefix ;; 1003 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1004 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1005 | --exec=* | --exe=* | --ex=*) 1006 exec_prefix=$ac_optarg ;; 1007 1008 -gas | --gas | --ga | --g) 1009 # Obsolete; use --with-gas. 1010 with_gas=yes ;; 1011 1012 -help | --help | --hel | --he | -h) 1013 ac_init_help=long ;; 1014 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1015 ac_init_help=recursive ;; 1016 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1017 ac_init_help=short ;; 1018 1019 -host | --host | --hos | --ho) 1020 ac_prev=host_alias ;; 1021 -host=* | --host=* | --hos=* | --ho=*) 1022 host_alias=$ac_optarg ;; 1023 1024 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1025 ac_prev=htmldir ;; 1026 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1027 | --ht=*) 1028 htmldir=$ac_optarg ;; 1029 1030 -includedir | --includedir | --includedi | --included | --include \ 1031 | --includ | --inclu | --incl | --inc) 1032 ac_prev=includedir ;; 1033 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1034 | --includ=* | --inclu=* | --incl=* | --inc=*) 1035 includedir=$ac_optarg ;; 1036 1037 -infodir | --infodir | --infodi | --infod | --info | --inf) 1038 ac_prev=infodir ;; 1039 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1040 infodir=$ac_optarg ;; 1041 1042 -libdir | --libdir | --libdi | --libd) 1043 ac_prev=libdir ;; 1044 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1045 libdir=$ac_optarg ;; 1046 1047 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1048 | --libexe | --libex | --libe) 1049 ac_prev=libexecdir ;; 1050 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1051 | --libexe=* | --libex=* | --libe=*) 1052 libexecdir=$ac_optarg ;; 1053 1054 -localedir | --localedir | --localedi | --localed | --locale) 1055 ac_prev=localedir ;; 1056 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1057 localedir=$ac_optarg ;; 1058 1059 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1060 | --localstate | --localstat | --localsta | --localst | --locals) 1061 ac_prev=localstatedir ;; 1062 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1063 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1064 localstatedir=$ac_optarg ;; 1065 1066 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1067 ac_prev=mandir ;; 1068 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1069 mandir=$ac_optarg ;; 1070 1071 -nfp | --nfp | --nf) 1072 # Obsolete; use --without-fp. 1073 with_fp=no ;; 1074 1075 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1076 | --no-cr | --no-c | -n) 1077 no_create=yes ;; 1078 1079 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1080 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1081 no_recursion=yes ;; 1082 1083 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1084 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1085 | --oldin | --oldi | --old | --ol | --o) 1086 ac_prev=oldincludedir ;; 1087 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1088 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1089 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1090 oldincludedir=$ac_optarg ;; 1091 1092 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1093 ac_prev=prefix ;; 1094 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1095 prefix=$ac_optarg ;; 1096 1097 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1098 | --program-pre | --program-pr | --program-p) 1099 ac_prev=program_prefix ;; 1100 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1101 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1102 program_prefix=$ac_optarg ;; 1103 1104 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1105 | --program-suf | --program-su | --program-s) 1106 ac_prev=program_suffix ;; 1107 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1108 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1109 program_suffix=$ac_optarg ;; 1110 1111 -program-transform-name | --program-transform-name \ 1112 | --program-transform-nam | --program-transform-na \ 1113 | --program-transform-n | --program-transform- \ 1114 | --program-transform | --program-transfor \ 1115 | --program-transfo | --program-transf \ 1116 | --program-trans | --program-tran \ 1117 | --progr-tra | --program-tr | --program-t) 1118 ac_prev=program_transform_name ;; 1119 -program-transform-name=* | --program-transform-name=* \ 1120 | --program-transform-nam=* | --program-transform-na=* \ 1121 | --program-transform-n=* | --program-transform-=* \ 1122 | --program-transform=* | --program-transfor=* \ 1123 | --program-transfo=* | --program-transf=* \ 1124 | --program-trans=* | --program-tran=* \ 1125 | --progr-tra=* | --program-tr=* | --program-t=*) 1126 program_transform_name=$ac_optarg ;; 1127 1128 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1129 ac_prev=pdfdir ;; 1130 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1131 pdfdir=$ac_optarg ;; 1132 1133 -psdir | --psdir | --psdi | --psd | --ps) 1134 ac_prev=psdir ;; 1135 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1136 psdir=$ac_optarg ;; 1137 1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1139 | -silent | --silent | --silen | --sile | --sil) 1140 silent=yes ;; 1141 1142 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1143 | --runstate | --runstat | --runsta | --runst | --runs \ 1144 | --run | --ru | --r) 1145 ac_prev=runstatedir ;; 1146 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1147 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1148 | --run=* | --ru=* | --r=*) 1149 runstatedir=$ac_optarg ;; 1150 1151 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1152 ac_prev=sbindir ;; 1153 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1154 | --sbi=* | --sb=*) 1155 sbindir=$ac_optarg ;; 1156 1157 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1158 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1159 | --sharedst | --shareds | --shared | --share | --shar \ 1160 | --sha | --sh) 1161 ac_prev=sharedstatedir ;; 1162 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1163 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1164 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1165 | --sha=* | --sh=*) 1166 sharedstatedir=$ac_optarg ;; 1167 1168 -site | --site | --sit) 1169 ac_prev=site ;; 1170 -site=* | --site=* | --sit=*) 1171 site=$ac_optarg ;; 1172 1173 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1174 ac_prev=srcdir ;; 1175 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1176 srcdir=$ac_optarg ;; 1177 1178 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1179 | --syscon | --sysco | --sysc | --sys | --sy) 1180 ac_prev=sysconfdir ;; 1181 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1182 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1183 sysconfdir=$ac_optarg ;; 1184 1185 -target | --target | --targe | --targ | --tar | --ta | --t) 1186 ac_prev=target_alias ;; 1187 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1188 target_alias=$ac_optarg ;; 1189 1190 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1191 verbose=yes ;; 1192 1193 -version | --version | --versio | --versi | --vers | -V) 1194 ac_init_version=: ;; 1195 1196 -with-* | --with-*) 1197 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1198 # Reject names that are not valid shell variable names. 1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1200 as_fn_error $? "invalid package name: \`$ac_useropt'" 1201 ac_useropt_orig=$ac_useropt 1202 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1203 case $ac_user_opts in 1204 *" 1205"with_$ac_useropt" 1206"*) ;; 1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1208 ac_unrecognized_sep=', ';; 1209 esac 1210 eval with_$ac_useropt=\$ac_optarg ;; 1211 1212 -without-* | --without-*) 1213 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1214 # Reject names that are not valid shell variable names. 1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1216 as_fn_error $? "invalid package name: \`$ac_useropt'" 1217 ac_useropt_orig=$ac_useropt 1218 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1219 case $ac_user_opts in 1220 *" 1221"with_$ac_useropt" 1222"*) ;; 1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1224 ac_unrecognized_sep=', ';; 1225 esac 1226 eval with_$ac_useropt=no ;; 1227 1228 --x) 1229 # Obsolete; use --with-x. 1230 with_x=yes ;; 1231 1232 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1233 | --x-incl | --x-inc | --x-in | --x-i) 1234 ac_prev=x_includes ;; 1235 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1236 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1237 x_includes=$ac_optarg ;; 1238 1239 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1240 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1241 ac_prev=x_libraries ;; 1242 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1243 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1244 x_libraries=$ac_optarg ;; 1245 1246 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1247Try \`$0 --help' for more information" 1248 ;; 1249 1250 *=*) 1251 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1252 # Reject names that are not valid shell variable names. 1253 case $ac_envvar in #( 1254 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1255 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1256 esac 1257 eval $ac_envvar=\$ac_optarg 1258 export $ac_envvar ;; 1259 1260 *) 1261 # FIXME: should be removed in autoconf 3.0. 1262 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1263 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1264 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1265 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1266 ;; 1267 1268 esac 1269done 1270 1271if test -n "$ac_prev"; then 1272 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1273 as_fn_error $? "missing argument to $ac_option" 1274fi 1275 1276if test -n "$ac_unrecognized_opts"; then 1277 case $enable_option_checking in 1278 no) ;; 1279 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1280 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1281 esac 1282fi 1283 1284# Check all directory arguments for consistency. 1285for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1286 datadir sysconfdir sharedstatedir localstatedir includedir \ 1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1288 libdir localedir mandir runstatedir 1289do 1290 eval ac_val=\$$ac_var 1291 # Remove trailing slashes. 1292 case $ac_val in 1293 */ ) 1294 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1295 eval $ac_var=\$ac_val;; 1296 esac 1297 # Be sure to have absolute directory names. 1298 case $ac_val in 1299 [\\/$]* | ?:[\\/]* ) continue;; 1300 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1301 esac 1302 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1303done 1304 1305# There might be people who depend on the old broken behavior: `$host' 1306# used to hold the argument of --host etc. 1307# FIXME: To remove some day. 1308build=$build_alias 1309host=$host_alias 1310target=$target_alias 1311 1312# FIXME: To remove some day. 1313if test "x$host_alias" != x; then 1314 if test "x$build_alias" = x; then 1315 cross_compiling=maybe 1316 elif test "x$build_alias" != "x$host_alias"; then 1317 cross_compiling=yes 1318 fi 1319fi 1320 1321ac_tool_prefix= 1322test -n "$host_alias" && ac_tool_prefix=$host_alias- 1323 1324test "$silent" = yes && exec 6>/dev/null 1325 1326 1327ac_pwd=`pwd` && test -n "$ac_pwd" && 1328ac_ls_di=`ls -di .` && 1329ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1330 as_fn_error $? "working directory cannot be determined" 1331test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1332 as_fn_error $? "pwd does not report name of working directory" 1333 1334 1335# Find the source files, if location was not specified. 1336if test -z "$srcdir"; then 1337 ac_srcdir_defaulted=yes 1338 # Try the directory containing this script, then the parent directory. 1339 ac_confdir=`$as_dirname -- "$as_myself" || 1340$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1341 X"$as_myself" : 'X\(//\)[^/]' \| \ 1342 X"$as_myself" : 'X\(//\)$' \| \ 1343 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1344printf "%s\n" X"$as_myself" | 1345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1346 s//\1/ 1347 q 1348 } 1349 /^X\(\/\/\)[^/].*/{ 1350 s//\1/ 1351 q 1352 } 1353 /^X\(\/\/\)$/{ 1354 s//\1/ 1355 q 1356 } 1357 /^X\(\/\).*/{ 1358 s//\1/ 1359 q 1360 } 1361 s/.*/./; q'` 1362 srcdir=$ac_confdir 1363 if test ! -r "$srcdir/$ac_unique_file"; then 1364 srcdir=.. 1365 fi 1366else 1367 ac_srcdir_defaulted=no 1368fi 1369if test ! -r "$srcdir/$ac_unique_file"; then 1370 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1371 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1372fi 1373ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1374ac_abs_confdir=`( 1375 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1376 pwd)` 1377# When building in place, set srcdir=. 1378if test "$ac_abs_confdir" = "$ac_pwd"; then 1379 srcdir=. 1380fi 1381# Remove unnecessary trailing slashes from srcdir. 1382# Double slashes in file names in object file debugging info 1383# mess up M-x gdb in Emacs. 1384case $srcdir in 1385*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1386esac 1387for ac_var in $ac_precious_vars; do 1388 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1389 eval ac_env_${ac_var}_value=\$${ac_var} 1390 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1391 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1392done 1393 1394# 1395# Report the --help message. 1396# 1397if test "$ac_init_help" = "long"; then 1398 # Omit some internal or obsolete options to make the list less imposing. 1399 # This message is too long to be a string in the A/UX 3.1 sh. 1400 cat <<_ACEOF 1401\`configure' configures libXScrnSaver 1.2.4 to adapt to many kinds of systems. 1402 1403Usage: $0 [OPTION]... [VAR=VALUE]... 1404 1405To assign environment variables (e.g., CC, CFLAGS...), specify them as 1406VAR=VALUE. See below for descriptions of some of the useful variables. 1407 1408Defaults for the options are specified in brackets. 1409 1410Configuration: 1411 -h, --help display this help and exit 1412 --help=short display options specific to this package 1413 --help=recursive display the short help of all the included packages 1414 -V, --version display version information and exit 1415 -q, --quiet, --silent do not print \`checking ...' messages 1416 --cache-file=FILE cache test results in FILE [disabled] 1417 -C, --config-cache alias for \`--cache-file=config.cache' 1418 -n, --no-create do not create output files 1419 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1420 1421Installation directories: 1422 --prefix=PREFIX install architecture-independent files in PREFIX 1423 [$ac_default_prefix] 1424 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1425 [PREFIX] 1426 1427By default, \`make install' will install all the files in 1428\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1429an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1430for instance \`--prefix=\$HOME'. 1431 1432For better control, use the options below. 1433 1434Fine tuning of the installation directories: 1435 --bindir=DIR user executables [EPREFIX/bin] 1436 --sbindir=DIR system admin executables [EPREFIX/sbin] 1437 --libexecdir=DIR program executables [EPREFIX/libexec] 1438 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1439 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1440 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1441 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1442 --libdir=DIR object code libraries [EPREFIX/lib] 1443 --includedir=DIR C header files [PREFIX/include] 1444 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1447 --infodir=DIR info documentation [DATAROOTDIR/info] 1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1449 --mandir=DIR man documentation [DATAROOTDIR/man] 1450 --docdir=DIR documentation root [DATAROOTDIR/doc/libXScrnSaver] 1451 --htmldir=DIR html documentation [DOCDIR] 1452 --dvidir=DIR dvi documentation [DOCDIR] 1453 --pdfdir=DIR pdf documentation [DOCDIR] 1454 --psdir=DIR ps documentation [DOCDIR] 1455_ACEOF 1456 1457 cat <<\_ACEOF 1458 1459Program names: 1460 --program-prefix=PREFIX prepend PREFIX to installed program names 1461 --program-suffix=SUFFIX append SUFFIX to installed program names 1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1463 1464System types: 1465 --build=BUILD configure for building on BUILD [guessed] 1466 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1467_ACEOF 1468fi 1469 1470if test -n "$ac_init_help"; then 1471 case $ac_init_help in 1472 short | recursive ) echo "Configuration of libXScrnSaver 1.2.4:";; 1473 esac 1474 cat <<\_ACEOF 1475 1476Optional Features: 1477 --disable-option-checking ignore unrecognized --enable/--with options 1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1480 --enable-silent-rules less verbose build output (undo: "make V=1") 1481 --disable-silent-rules verbose build output (undo: "make V=0") 1482 --enable-shared[=PKGS] build shared libraries [default=yes] 1483 --enable-static[=PKGS] build static libraries [default=yes] 1484 --enable-fast-install[=PKGS] 1485 optimize for fast installation [default=yes] 1486 --enable-dependency-tracking 1487 do not reject slow dependency extractors 1488 --disable-dependency-tracking 1489 speeds up one-time build 1490 --disable-libtool-lock avoid locking (might break parallel builds) 1491 --disable-selective-werror 1492 Turn off selective compiler errors. (default: 1493 enabled) 1494 --enable-strict-compilation 1495 Enable all warnings from compiler and make them 1496 errors (default: disabled) 1497 --enable-malloc0returnsnull 1498 malloc(0) returns NULL (default: auto) 1499 --enable-lint-library Create lint library (default: disabled) 1500 1501Optional Packages: 1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1504 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1505 both] 1506 --with-aix-soname=aix|svr4|both 1507 shared library versioning (aka "SONAME") variant to 1508 provide on AIX, [default=aix]. 1509 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1510 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1511 compiler's sysroot if not specified). 1512 --with-lint Use a lint-style source code checker (default: 1513 disabled) 1514 1515Some influential environment variables: 1516 CC C compiler command 1517 CFLAGS C compiler flags 1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1519 nonstandard directory <lib dir> 1520 LIBS libraries to pass to the linker, e.g. -l<library> 1521 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1522 you have headers in a nonstandard directory <include dir> 1523 LT_SYS_LIBRARY_PATH 1524 User-defined run-time library search path. 1525 PKG_CONFIG path to pkg-config utility 1526 PKG_CONFIG_PATH 1527 directories to add to pkg-config's search path 1528 PKG_CONFIG_LIBDIR 1529 path overriding pkg-config's built-in search path 1530 XSCRNSAVER_CFLAGS 1531 C compiler flags for XSCRNSAVER, overriding pkg-config 1532 XSCRNSAVER_LIBS 1533 linker flags for XSCRNSAVER, overriding pkg-config 1534 LINT Path to a lint-style command 1535 LINT_FLAGS Flags for the lint-style command 1536 1537Use these variables to override the choices made by `configure' or to help 1538it to find libraries and programs with nonstandard names/locations. 1539 1540Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxscrnsaver/-/issues>. 1541_ACEOF 1542ac_status=$? 1543fi 1544 1545if test "$ac_init_help" = "recursive"; then 1546 # If there are subdirs, report their specific --help. 1547 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1548 test -d "$ac_dir" || 1549 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1550 continue 1551 ac_builddir=. 1552 1553case "$ac_dir" in 1554.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1555*) 1556 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1557 # A ".." for each directory in $ac_dir_suffix. 1558 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1559 case $ac_top_builddir_sub in 1560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1562 esac ;; 1563esac 1564ac_abs_top_builddir=$ac_pwd 1565ac_abs_builddir=$ac_pwd$ac_dir_suffix 1566# for backward compatibility: 1567ac_top_builddir=$ac_top_build_prefix 1568 1569case $srcdir in 1570 .) # We are building in place. 1571 ac_srcdir=. 1572 ac_top_srcdir=$ac_top_builddir_sub 1573 ac_abs_top_srcdir=$ac_pwd ;; 1574 [\\/]* | ?:[\\/]* ) # Absolute name. 1575 ac_srcdir=$srcdir$ac_dir_suffix; 1576 ac_top_srcdir=$srcdir 1577 ac_abs_top_srcdir=$srcdir ;; 1578 *) # Relative name. 1579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1580 ac_top_srcdir=$ac_top_build_prefix$srcdir 1581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1582esac 1583ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1584 1585 cd "$ac_dir" || { ac_status=$?; continue; } 1586 # Check for configure.gnu first; this name is used for a wrapper for 1587 # Metaconfig's "Configure" on case-insensitive file systems. 1588 if test -f "$ac_srcdir/configure.gnu"; then 1589 echo && 1590 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1591 elif test -f "$ac_srcdir/configure"; then 1592 echo && 1593 $SHELL "$ac_srcdir/configure" --help=recursive 1594 else 1595 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1596 fi || ac_status=$? 1597 cd "$ac_pwd" || { ac_status=$?; break; } 1598 done 1599fi 1600 1601test -n "$ac_init_help" && exit $ac_status 1602if $ac_init_version; then 1603 cat <<\_ACEOF 1604libXScrnSaver configure 1.2.4 1605generated by GNU Autoconf 2.71 1606 1607Copyright (C) 2021 Free Software Foundation, Inc. 1608This configure script is free software; the Free Software Foundation 1609gives unlimited permission to copy, distribute and modify it. 1610_ACEOF 1611 exit 1612fi 1613 1614## ------------------------ ## 1615## Autoconf initialization. ## 1616## ------------------------ ## 1617 1618# ac_fn_c_try_compile LINENO 1619# -------------------------- 1620# Try to compile conftest.$ac_ext, and return whether this succeeded. 1621ac_fn_c_try_compile () 1622{ 1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1624 rm -f conftest.$ac_objext conftest.beam 1625 if { { ac_try="$ac_compile" 1626case "(($ac_try" in 1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1628 *) ac_try_echo=$ac_try;; 1629esac 1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1631printf "%s\n" "$ac_try_echo"; } >&5 1632 (eval "$ac_compile") 2>conftest.err 1633 ac_status=$? 1634 if test -s conftest.err; then 1635 grep -v '^ *+' conftest.err >conftest.er1 1636 cat conftest.er1 >&5 1637 mv -f conftest.er1 conftest.err 1638 fi 1639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1640 test $ac_status = 0; } && { 1641 test -z "$ac_c_werror_flag" || 1642 test ! -s conftest.err 1643 } && test -s conftest.$ac_objext 1644then : 1645 ac_retval=0 1646else $as_nop 1647 printf "%s\n" "$as_me: failed program was:" >&5 1648sed 's/^/| /' conftest.$ac_ext >&5 1649 1650 ac_retval=1 1651fi 1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1653 as_fn_set_status $ac_retval 1654 1655} # ac_fn_c_try_compile 1656 1657# ac_fn_c_try_link LINENO 1658# ----------------------- 1659# Try to link conftest.$ac_ext, and return whether this succeeded. 1660ac_fn_c_try_link () 1661{ 1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1663 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1664 if { { ac_try="$ac_link" 1665case "(($ac_try" in 1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1667 *) ac_try_echo=$ac_try;; 1668esac 1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1670printf "%s\n" "$ac_try_echo"; } >&5 1671 (eval "$ac_link") 2>conftest.err 1672 ac_status=$? 1673 if test -s conftest.err; then 1674 grep -v '^ *+' conftest.err >conftest.er1 1675 cat conftest.er1 >&5 1676 mv -f conftest.er1 conftest.err 1677 fi 1678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1679 test $ac_status = 0; } && { 1680 test -z "$ac_c_werror_flag" || 1681 test ! -s conftest.err 1682 } && test -s conftest$ac_exeext && { 1683 test "$cross_compiling" = yes || 1684 test -x conftest$ac_exeext 1685 } 1686then : 1687 ac_retval=0 1688else $as_nop 1689 printf "%s\n" "$as_me: failed program was:" >&5 1690sed 's/^/| /' conftest.$ac_ext >&5 1691 1692 ac_retval=1 1693fi 1694 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1695 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1696 # interfere with the next link command; also delete a directory that is 1697 # left behind by Apple's compiler. We do this before executing the actions. 1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1700 as_fn_set_status $ac_retval 1701 1702} # ac_fn_c_try_link 1703 1704# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1705# ------------------------------------------------------- 1706# Tests whether HEADER exists and can be compiled using the include files in 1707# INCLUDES, setting the cache variable VAR accordingly. 1708ac_fn_c_check_header_compile () 1709{ 1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1712printf %s "checking for $2... " >&6; } 1713if eval test \${$3+y} 1714then : 1715 printf %s "(cached) " >&6 1716else $as_nop 1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1718/* end confdefs.h. */ 1719$4 1720#include <$2> 1721_ACEOF 1722if ac_fn_c_try_compile "$LINENO" 1723then : 1724 eval "$3=yes" 1725else $as_nop 1726 eval "$3=no" 1727fi 1728rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1729fi 1730eval ac_res=\$$3 1731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1732printf "%s\n" "$ac_res" >&6; } 1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1734 1735} # ac_fn_c_check_header_compile 1736 1737# ac_fn_c_check_func LINENO FUNC VAR 1738# ---------------------------------- 1739# Tests whether FUNC exists, setting the cache variable VAR accordingly 1740ac_fn_c_check_func () 1741{ 1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1744printf %s "checking for $2... " >&6; } 1745if eval test \${$3+y} 1746then : 1747 printf %s "(cached) " >&6 1748else $as_nop 1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1750/* end confdefs.h. */ 1751/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1752 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1753#define $2 innocuous_$2 1754 1755/* System header to define __stub macros and hopefully few prototypes, 1756 which can conflict with char $2 (); below. */ 1757 1758#include <limits.h> 1759#undef $2 1760 1761/* Override any GCC internal prototype to avoid an error. 1762 Use char because int might match the return type of a GCC 1763 builtin and then its argument prototype would still apply. */ 1764#ifdef __cplusplus 1765extern "C" 1766#endif 1767char $2 (); 1768/* The GNU C library defines this for functions which it implements 1769 to always fail with ENOSYS. Some functions are actually named 1770 something starting with __ and the normal name is an alias. */ 1771#if defined __stub_$2 || defined __stub___$2 1772choke me 1773#endif 1774 1775int 1776main (void) 1777{ 1778return $2 (); 1779 ; 1780 return 0; 1781} 1782_ACEOF 1783if ac_fn_c_try_link "$LINENO" 1784then : 1785 eval "$3=yes" 1786else $as_nop 1787 eval "$3=no" 1788fi 1789rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1790 conftest$ac_exeext conftest.$ac_ext 1791fi 1792eval ac_res=\$$3 1793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1794printf "%s\n" "$ac_res" >&6; } 1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1796 1797} # ac_fn_c_check_func 1798 1799# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1800# ------------------------------------------------------------------ 1801# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1802# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1803ac_fn_check_decl () 1804{ 1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1806 as_decl_name=`echo $2|sed 's/ *(.*//'` 1807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1808printf %s "checking whether $as_decl_name is declared... " >&6; } 1809if eval test \${$3+y} 1810then : 1811 printf %s "(cached) " >&6 1812else $as_nop 1813 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1814 eval ac_save_FLAGS=\$$6 1815 as_fn_append $6 " $5" 1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1817/* end confdefs.h. */ 1818$4 1819int 1820main (void) 1821{ 1822#ifndef $as_decl_name 1823#ifdef __cplusplus 1824 (void) $as_decl_use; 1825#else 1826 (void) $as_decl_name; 1827#endif 1828#endif 1829 1830 ; 1831 return 0; 1832} 1833_ACEOF 1834if ac_fn_c_try_compile "$LINENO" 1835then : 1836 eval "$3=yes" 1837else $as_nop 1838 eval "$3=no" 1839fi 1840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1841 eval $6=\$ac_save_FLAGS 1842 1843fi 1844eval ac_res=\$$3 1845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1846printf "%s\n" "$ac_res" >&6; } 1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1848 1849} # ac_fn_check_decl 1850 1851# ac_fn_c_try_run LINENO 1852# ---------------------- 1853# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1854# executables *can* be run. 1855ac_fn_c_try_run () 1856{ 1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1858 if { { ac_try="$ac_link" 1859case "(($ac_try" in 1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1861 *) ac_try_echo=$ac_try;; 1862esac 1863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1864printf "%s\n" "$ac_try_echo"; } >&5 1865 (eval "$ac_link") 2>&5 1866 ac_status=$? 1867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1868 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1869 { { case "(($ac_try" in 1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1871 *) ac_try_echo=$ac_try;; 1872esac 1873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1874printf "%s\n" "$ac_try_echo"; } >&5 1875 (eval "$ac_try") 2>&5 1876 ac_status=$? 1877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1878 test $ac_status = 0; }; } 1879then : 1880 ac_retval=0 1881else $as_nop 1882 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1883 printf "%s\n" "$as_me: failed program was:" >&5 1884sed 's/^/| /' conftest.$ac_ext >&5 1885 1886 ac_retval=$ac_status 1887fi 1888 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1890 as_fn_set_status $ac_retval 1891 1892} # ac_fn_c_try_run 1893ac_configure_args_raw= 1894for ac_arg 1895do 1896 case $ac_arg in 1897 *\'*) 1898 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1899 esac 1900 as_fn_append ac_configure_args_raw " '$ac_arg'" 1901done 1902 1903case $ac_configure_args_raw in 1904 *$as_nl*) 1905 ac_safe_unquote= ;; 1906 *) 1907 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1908 ac_unsafe_a="$ac_unsafe_z#~" 1909 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1910 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1911esac 1912 1913cat >config.log <<_ACEOF 1914This file contains any messages produced by compilers while 1915running configure, to aid debugging if configure makes a mistake. 1916 1917It was created by libXScrnSaver $as_me 1.2.4, which was 1918generated by GNU Autoconf 2.71. Invocation command line was 1919 1920 $ $0$ac_configure_args_raw 1921 1922_ACEOF 1923exec 5>>config.log 1924{ 1925cat <<_ASUNAME 1926## --------- ## 1927## Platform. ## 1928## --------- ## 1929 1930hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1931uname -m = `(uname -m) 2>/dev/null || echo unknown` 1932uname -r = `(uname -r) 2>/dev/null || echo unknown` 1933uname -s = `(uname -s) 2>/dev/null || echo unknown` 1934uname -v = `(uname -v) 2>/dev/null || echo unknown` 1935 1936/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1937/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1938 1939/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1940/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1941/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1942/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1943/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1944/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1945/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1946 1947_ASUNAME 1948 1949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1950for as_dir in $PATH 1951do 1952 IFS=$as_save_IFS 1953 case $as_dir in #((( 1954 '') as_dir=./ ;; 1955 */) ;; 1956 *) as_dir=$as_dir/ ;; 1957 esac 1958 printf "%s\n" "PATH: $as_dir" 1959 done 1960IFS=$as_save_IFS 1961 1962} >&5 1963 1964cat >&5 <<_ACEOF 1965 1966 1967## ----------- ## 1968## Core tests. ## 1969## ----------- ## 1970 1971_ACEOF 1972 1973 1974# Keep a trace of the command line. 1975# Strip out --no-create and --no-recursion so they do not pile up. 1976# Strip out --silent because we don't want to record it for future runs. 1977# Also quote any args containing shell meta-characters. 1978# Make two passes to allow for proper duplicate-argument suppression. 1979ac_configure_args= 1980ac_configure_args0= 1981ac_configure_args1= 1982ac_must_keep_next=false 1983for ac_pass in 1 2 1984do 1985 for ac_arg 1986 do 1987 case $ac_arg in 1988 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1990 | -silent | --silent | --silen | --sile | --sil) 1991 continue ;; 1992 *\'*) 1993 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1994 esac 1995 case $ac_pass in 1996 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1997 2) 1998 as_fn_append ac_configure_args1 " '$ac_arg'" 1999 if test $ac_must_keep_next = true; then 2000 ac_must_keep_next=false # Got value, back to normal. 2001 else 2002 case $ac_arg in 2003 *=* | --config-cache | -C | -disable-* | --disable-* \ 2004 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2005 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2006 | -with-* | --with-* | -without-* | --without-* | --x) 2007 case "$ac_configure_args0 " in 2008 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2009 esac 2010 ;; 2011 -* ) ac_must_keep_next=true ;; 2012 esac 2013 fi 2014 as_fn_append ac_configure_args " '$ac_arg'" 2015 ;; 2016 esac 2017 done 2018done 2019{ ac_configure_args0=; unset ac_configure_args0;} 2020{ ac_configure_args1=; unset ac_configure_args1;} 2021 2022# When interrupted or exit'd, cleanup temporary files, and complete 2023# config.log. We remove comments because anyway the quotes in there 2024# would cause problems or look ugly. 2025# WARNING: Use '\'' to represent an apostrophe within the trap. 2026# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2027trap 'exit_status=$? 2028 # Sanitize IFS. 2029 IFS=" "" $as_nl" 2030 # Save into config.log some information that might help in debugging. 2031 { 2032 echo 2033 2034 printf "%s\n" "## ---------------- ## 2035## Cache variables. ## 2036## ---------------- ##" 2037 echo 2038 # The following way of writing the cache mishandles newlines in values, 2039( 2040 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2041 eval ac_val=\$$ac_var 2042 case $ac_val in #( 2043 *${as_nl}*) 2044 case $ac_var in #( 2045 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2046printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2047 esac 2048 case $ac_var in #( 2049 _ | IFS | as_nl) ;; #( 2050 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2051 *) { eval $ac_var=; unset $ac_var;} ;; 2052 esac ;; 2053 esac 2054 done 2055 (set) 2>&1 | 2056 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2057 *${as_nl}ac_space=\ *) 2058 sed -n \ 2059 "s/'\''/'\''\\\\'\'''\''/g; 2060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2061 ;; #( 2062 *) 2063 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2064 ;; 2065 esac | 2066 sort 2067) 2068 echo 2069 2070 printf "%s\n" "## ----------------- ## 2071## Output variables. ## 2072## ----------------- ##" 2073 echo 2074 for ac_var in $ac_subst_vars 2075 do 2076 eval ac_val=\$$ac_var 2077 case $ac_val in 2078 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2079 esac 2080 printf "%s\n" "$ac_var='\''$ac_val'\''" 2081 done | sort 2082 echo 2083 2084 if test -n "$ac_subst_files"; then 2085 printf "%s\n" "## ------------------- ## 2086## File substitutions. ## 2087## ------------------- ##" 2088 echo 2089 for ac_var in $ac_subst_files 2090 do 2091 eval ac_val=\$$ac_var 2092 case $ac_val in 2093 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2094 esac 2095 printf "%s\n" "$ac_var='\''$ac_val'\''" 2096 done | sort 2097 echo 2098 fi 2099 2100 if test -s confdefs.h; then 2101 printf "%s\n" "## ----------- ## 2102## confdefs.h. ## 2103## ----------- ##" 2104 echo 2105 cat confdefs.h 2106 echo 2107 fi 2108 test "$ac_signal" != 0 && 2109 printf "%s\n" "$as_me: caught signal $ac_signal" 2110 printf "%s\n" "$as_me: exit $exit_status" 2111 } >&5 2112 rm -f core *.core core.conftest.* && 2113 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2114 exit $exit_status 2115' 0 2116for ac_signal in 1 2 13 15; do 2117 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2118done 2119ac_signal=0 2120 2121# confdefs.h avoids OS command line length limits that DEFS can exceed. 2122rm -f -r conftest* confdefs.h 2123 2124printf "%s\n" "/* confdefs.h */" > confdefs.h 2125 2126# Predefined preprocessor variables. 2127 2128printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2129 2130printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2131 2132printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2133 2134printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2135 2136printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2137 2138printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2139 2140 2141# Let the site file select an alternate cache file if it wants to. 2142# Prefer an explicitly selected file to automatically selected ones. 2143if test -n "$CONFIG_SITE"; then 2144 ac_site_files="$CONFIG_SITE" 2145elif test "x$prefix" != xNONE; then 2146 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2147else 2148 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2149fi 2150 2151for ac_site_file in $ac_site_files 2152do 2153 case $ac_site_file in #( 2154 */*) : 2155 ;; #( 2156 *) : 2157 ac_site_file=./$ac_site_file ;; 2158esac 2159 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2161printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2162 sed 's/^/| /' "$ac_site_file" >&5 2163 . "$ac_site_file" \ 2164 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2165printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2166as_fn_error $? "failed to load site script $ac_site_file 2167See \`config.log' for more details" "$LINENO" 5; } 2168 fi 2169done 2170 2171if test -r "$cache_file"; then 2172 # Some versions of bash will fail to source /dev/null (special files 2173 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2174 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2176printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2177 case $cache_file in 2178 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2179 *) . "./$cache_file";; 2180 esac 2181 fi 2182else 2183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2184printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2185 >$cache_file 2186fi 2187 2188# Test code for whether the C compiler supports C89 (global declarations) 2189ac_c_conftest_c89_globals=' 2190/* Does the compiler advertise C89 conformance? 2191 Do not test the value of __STDC__, because some compilers set it to 0 2192 while being otherwise adequately conformant. */ 2193#if !defined __STDC__ 2194# error "Compiler does not advertise C89 conformance" 2195#endif 2196 2197#include <stddef.h> 2198#include <stdarg.h> 2199struct stat; 2200/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2201struct buf { int x; }; 2202struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2203static char *e (p, i) 2204 char **p; 2205 int i; 2206{ 2207 return p[i]; 2208} 2209static char *f (char * (*g) (char **, int), char **p, ...) 2210{ 2211 char *s; 2212 va_list v; 2213 va_start (v,p); 2214 s = g (p, va_arg (v,int)); 2215 va_end (v); 2216 return s; 2217} 2218 2219/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2220 function prototypes and stuff, but not \xHH hex character constants. 2221 These do not provoke an error unfortunately, instead are silently treated 2222 as an "x". The following induces an error, until -std is added to get 2223 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2224 array size at least. It is necessary to write \x00 == 0 to get something 2225 that is true only with -std. */ 2226int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2227 2228/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2229 inside strings and character constants. */ 2230#define FOO(x) '\''x'\'' 2231int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2232 2233int test (int i, double x); 2234struct s1 {int (*f) (int a);}; 2235struct s2 {int (*f) (double a);}; 2236int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2237 int, int);' 2238 2239# Test code for whether the C compiler supports C89 (body of main). 2240ac_c_conftest_c89_main=' 2241ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2242' 2243 2244# Test code for whether the C compiler supports C99 (global declarations) 2245ac_c_conftest_c99_globals=' 2246// Does the compiler advertise C99 conformance? 2247#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2248# error "Compiler does not advertise C99 conformance" 2249#endif 2250 2251#include <stdbool.h> 2252extern int puts (const char *); 2253extern int printf (const char *, ...); 2254extern int dprintf (int, const char *, ...); 2255extern void *malloc (size_t); 2256 2257// Check varargs macros. These examples are taken from C99 6.10.3.5. 2258// dprintf is used instead of fprintf to avoid needing to declare 2259// FILE and stderr. 2260#define debug(...) dprintf (2, __VA_ARGS__) 2261#define showlist(...) puts (#__VA_ARGS__) 2262#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2263static void 2264test_varargs_macros (void) 2265{ 2266 int x = 1234; 2267 int y = 5678; 2268 debug ("Flag"); 2269 debug ("X = %d\n", x); 2270 showlist (The first, second, and third items.); 2271 report (x>y, "x is %d but y is %d", x, y); 2272} 2273 2274// Check long long types. 2275#define BIG64 18446744073709551615ull 2276#define BIG32 4294967295ul 2277#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2278#if !BIG_OK 2279 #error "your preprocessor is broken" 2280#endif 2281#if BIG_OK 2282#else 2283 #error "your preprocessor is broken" 2284#endif 2285static long long int bignum = -9223372036854775807LL; 2286static unsigned long long int ubignum = BIG64; 2287 2288struct incomplete_array 2289{ 2290 int datasize; 2291 double data[]; 2292}; 2293 2294struct named_init { 2295 int number; 2296 const wchar_t *name; 2297 double average; 2298}; 2299 2300typedef const char *ccp; 2301 2302static inline int 2303test_restrict (ccp restrict text) 2304{ 2305 // See if C++-style comments work. 2306 // Iterate through items via the restricted pointer. 2307 // Also check for declarations in for loops. 2308 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2309 continue; 2310 return 0; 2311} 2312 2313// Check varargs and va_copy. 2314static bool 2315test_varargs (const char *format, ...) 2316{ 2317 va_list args; 2318 va_start (args, format); 2319 va_list args_copy; 2320 va_copy (args_copy, args); 2321 2322 const char *str = ""; 2323 int number = 0; 2324 float fnumber = 0; 2325 2326 while (*format) 2327 { 2328 switch (*format++) 2329 { 2330 case '\''s'\'': // string 2331 str = va_arg (args_copy, const char *); 2332 break; 2333 case '\''d'\'': // int 2334 number = va_arg (args_copy, int); 2335 break; 2336 case '\''f'\'': // float 2337 fnumber = va_arg (args_copy, double); 2338 break; 2339 default: 2340 break; 2341 } 2342 } 2343 va_end (args_copy); 2344 va_end (args); 2345 2346 return *str && number && fnumber; 2347} 2348' 2349 2350# Test code for whether the C compiler supports C99 (body of main). 2351ac_c_conftest_c99_main=' 2352 // Check bool. 2353 _Bool success = false; 2354 success |= (argc != 0); 2355 2356 // Check restrict. 2357 if (test_restrict ("String literal") == 0) 2358 success = true; 2359 char *restrict newvar = "Another string"; 2360 2361 // Check varargs. 2362 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2363 test_varargs_macros (); 2364 2365 // Check flexible array members. 2366 struct incomplete_array *ia = 2367 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2368 ia->datasize = 10; 2369 for (int i = 0; i < ia->datasize; ++i) 2370 ia->data[i] = i * 1.234; 2371 2372 // Check named initializers. 2373 struct named_init ni = { 2374 .number = 34, 2375 .name = L"Test wide string", 2376 .average = 543.34343, 2377 }; 2378 2379 ni.number = 58; 2380 2381 int dynamic_array[ni.number]; 2382 dynamic_array[0] = argv[0][0]; 2383 dynamic_array[ni.number - 1] = 543; 2384 2385 // work around unused variable warnings 2386 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2387 || dynamic_array[ni.number - 1] != 543); 2388' 2389 2390# Test code for whether the C compiler supports C11 (global declarations) 2391ac_c_conftest_c11_globals=' 2392// Does the compiler advertise C11 conformance? 2393#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2394# error "Compiler does not advertise C11 conformance" 2395#endif 2396 2397// Check _Alignas. 2398char _Alignas (double) aligned_as_double; 2399char _Alignas (0) no_special_alignment; 2400extern char aligned_as_int; 2401char _Alignas (0) _Alignas (int) aligned_as_int; 2402 2403// Check _Alignof. 2404enum 2405{ 2406 int_alignment = _Alignof (int), 2407 int_array_alignment = _Alignof (int[100]), 2408 char_alignment = _Alignof (char) 2409}; 2410_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2411 2412// Check _Noreturn. 2413int _Noreturn does_not_return (void) { for (;;) continue; } 2414 2415// Check _Static_assert. 2416struct test_static_assert 2417{ 2418 int x; 2419 _Static_assert (sizeof (int) <= sizeof (long int), 2420 "_Static_assert does not work in struct"); 2421 long int y; 2422}; 2423 2424// Check UTF-8 literals. 2425#define u8 syntax error! 2426char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2427 2428// Check duplicate typedefs. 2429typedef long *long_ptr; 2430typedef long int *long_ptr; 2431typedef long_ptr long_ptr; 2432 2433// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2434struct anonymous 2435{ 2436 union { 2437 struct { int i; int j; }; 2438 struct { int k; long int l; } w; 2439 }; 2440 int m; 2441} v1; 2442' 2443 2444# Test code for whether the C compiler supports C11 (body of main). 2445ac_c_conftest_c11_main=' 2446 _Static_assert ((offsetof (struct anonymous, i) 2447 == offsetof (struct anonymous, w.k)), 2448 "Anonymous union alignment botch"); 2449 v1.i = 2; 2450 v1.w.k = 5; 2451 ok |= v1.i != 5; 2452' 2453 2454# Test code for whether the C compiler supports C11 (complete). 2455ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2456${ac_c_conftest_c99_globals} 2457${ac_c_conftest_c11_globals} 2458 2459int 2460main (int argc, char **argv) 2461{ 2462 int ok = 0; 2463 ${ac_c_conftest_c89_main} 2464 ${ac_c_conftest_c99_main} 2465 ${ac_c_conftest_c11_main} 2466 return ok; 2467} 2468" 2469 2470# Test code for whether the C compiler supports C99 (complete). 2471ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2472${ac_c_conftest_c99_globals} 2473 2474int 2475main (int argc, char **argv) 2476{ 2477 int ok = 0; 2478 ${ac_c_conftest_c89_main} 2479 ${ac_c_conftest_c99_main} 2480 return ok; 2481} 2482" 2483 2484# Test code for whether the C compiler supports C89 (complete). 2485ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2486 2487int 2488main (int argc, char **argv) 2489{ 2490 int ok = 0; 2491 ${ac_c_conftest_c89_main} 2492 return ok; 2493} 2494" 2495 2496as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2497as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2498as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2499as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2500as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2501as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2502as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2503as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2504as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2505 2506# Auxiliary files required by this configure script. 2507ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2508 2509# Locations in which to look for auxiliary files. 2510ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2511 2512# Search for a directory containing all of the required auxiliary files, 2513# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2514# If we don't find one directory that contains all the files we need, 2515# we report the set of missing files from the *first* directory in 2516# $ac_aux_dir_candidates and give up. 2517ac_missing_aux_files="" 2518ac_first_candidate=: 2519printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2521as_found=false 2522for as_dir in $ac_aux_dir_candidates 2523do 2524 IFS=$as_save_IFS 2525 case $as_dir in #((( 2526 '') as_dir=./ ;; 2527 */) ;; 2528 *) as_dir=$as_dir/ ;; 2529 esac 2530 as_found=: 2531 2532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2533 ac_aux_dir_found=yes 2534 ac_install_sh= 2535 for ac_aux in $ac_aux_files 2536 do 2537 # As a special case, if "install-sh" is required, that requirement 2538 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2539 # and $ac_install_sh is set appropriately for whichever one is found. 2540 if test x"$ac_aux" = x"install-sh" 2541 then 2542 if test -f "${as_dir}install-sh"; then 2543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2544 ac_install_sh="${as_dir}install-sh -c" 2545 elif test -f "${as_dir}install.sh"; then 2546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2547 ac_install_sh="${as_dir}install.sh -c" 2548 elif test -f "${as_dir}shtool"; then 2549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2550 ac_install_sh="${as_dir}shtool install -c" 2551 else 2552 ac_aux_dir_found=no 2553 if $ac_first_candidate; then 2554 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2555 else 2556 break 2557 fi 2558 fi 2559 else 2560 if test -f "${as_dir}${ac_aux}"; then 2561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2562 else 2563 ac_aux_dir_found=no 2564 if $ac_first_candidate; then 2565 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2566 else 2567 break 2568 fi 2569 fi 2570 fi 2571 done 2572 if test "$ac_aux_dir_found" = yes; then 2573 ac_aux_dir="$as_dir" 2574 break 2575 fi 2576 ac_first_candidate=false 2577 2578 as_found=false 2579done 2580IFS=$as_save_IFS 2581if $as_found 2582then : 2583 2584else $as_nop 2585 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2586fi 2587 2588 2589# These three variables are undocumented and unsupported, 2590# and are intended to be withdrawn in a future Autoconf release. 2591# They can cause serious problems if a builder's source tree is in a directory 2592# whose full name contains unusual characters. 2593if test -f "${ac_aux_dir}config.guess"; then 2594 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2595fi 2596if test -f "${ac_aux_dir}config.sub"; then 2597 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2598fi 2599if test -f "$ac_aux_dir/configure"; then 2600 ac_configure="$SHELL ${ac_aux_dir}configure" 2601fi 2602 2603# Check that the precious variables saved in the cache have kept the same 2604# value. 2605ac_cache_corrupted=false 2606for ac_var in $ac_precious_vars; do 2607 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2608 eval ac_new_set=\$ac_env_${ac_var}_set 2609 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2610 eval ac_new_val=\$ac_env_${ac_var}_value 2611 case $ac_old_set,$ac_new_set in 2612 set,) 2613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2614printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2615 ac_cache_corrupted=: ;; 2616 ,set) 2617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2618printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2619 ac_cache_corrupted=: ;; 2620 ,);; 2621 *) 2622 if test "x$ac_old_val" != "x$ac_new_val"; then 2623 # differences in whitespace do not lead to failure. 2624 ac_old_val_w=`echo x $ac_old_val` 2625 ac_new_val_w=`echo x $ac_new_val` 2626 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2628printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2629 ac_cache_corrupted=: 2630 else 2631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2632printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2633 eval $ac_var=\$ac_old_val 2634 fi 2635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2636printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2638printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2639 fi;; 2640 esac 2641 # Pass precious variables to config.status. 2642 if test "$ac_new_set" = set; then 2643 case $ac_new_val in 2644 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2645 *) ac_arg=$ac_var=$ac_new_val ;; 2646 esac 2647 case " $ac_configure_args " in 2648 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2649 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2650 esac 2651 fi 2652done 2653if $ac_cache_corrupted; then 2654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2655printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2657printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2658 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2659 and start over" "$LINENO" 5 2660fi 2661## -------------------- ## 2662## Main body of script. ## 2663## -------------------- ## 2664 2665ac_ext=c 2666ac_cpp='$CPP $CPPFLAGS' 2667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2669ac_compiler_gnu=$ac_cv_c_compiler_gnu 2670 2671 2672 2673ac_config_headers="$ac_config_headers config.h" 2674 2675 2676# Initialize Automake 2677am__api_version='1.16' 2678 2679 2680 2681 # Find a good install program. We prefer a C program (faster), 2682# so one script is as good as another. But avoid the broken or 2683# incompatible versions: 2684# SysV /etc/install, /usr/sbin/install 2685# SunOS /usr/etc/install 2686# IRIX /sbin/install 2687# AIX /bin/install 2688# AmigaOS /C/install, which installs bootblocks on floppy discs 2689# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2690# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2691# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2692# OS/2's system install, which has a completely different semantic 2693# ./install, which can be erroneously created by make from ./install.sh. 2694# Reject install programs that cannot install multiple files. 2695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2696printf %s "checking for a BSD-compatible install... " >&6; } 2697if test -z "$INSTALL"; then 2698if test ${ac_cv_path_install+y} 2699then : 2700 printf %s "(cached) " >&6 2701else $as_nop 2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2703for as_dir in $PATH 2704do 2705 IFS=$as_save_IFS 2706 case $as_dir in #((( 2707 '') as_dir=./ ;; 2708 */) ;; 2709 *) as_dir=$as_dir/ ;; 2710 esac 2711 # Account for fact that we put trailing slashes in our PATH walk. 2712case $as_dir in #(( 2713 ./ | /[cC]/* | \ 2714 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2715 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2716 /usr/ucb/* ) ;; 2717 *) 2718 # OSF1 and SCO ODT 3.0 have their own names for install. 2719 # Don't use installbsd from OSF since it installs stuff as root 2720 # by default. 2721 for ac_prog in ginstall scoinst install; do 2722 for ac_exec_ext in '' $ac_executable_extensions; do 2723 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2724 if test $ac_prog = install && 2725 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2726 # AIX install. It has an incompatible calling convention. 2727 : 2728 elif test $ac_prog = install && 2729 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2730 # program-specific install script used by HP pwplus--don't use. 2731 : 2732 else 2733 rm -rf conftest.one conftest.two conftest.dir 2734 echo one > conftest.one 2735 echo two > conftest.two 2736 mkdir conftest.dir 2737 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2738 test -s conftest.one && test -s conftest.two && 2739 test -s conftest.dir/conftest.one && 2740 test -s conftest.dir/conftest.two 2741 then 2742 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2743 break 3 2744 fi 2745 fi 2746 fi 2747 done 2748 done 2749 ;; 2750esac 2751 2752 done 2753IFS=$as_save_IFS 2754 2755rm -rf conftest.one conftest.two conftest.dir 2756 2757fi 2758 if test ${ac_cv_path_install+y}; then 2759 INSTALL=$ac_cv_path_install 2760 else 2761 # As a last resort, use the slow shell script. Don't cache a 2762 # value for INSTALL within a source directory, because that will 2763 # break other packages using the cache if that directory is 2764 # removed, or if the value is a relative name. 2765 INSTALL=$ac_install_sh 2766 fi 2767fi 2768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2769printf "%s\n" "$INSTALL" >&6; } 2770 2771# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2772# It thinks the first close brace ends the variable substitution. 2773test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2774 2775test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2776 2777test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2778 2779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2780printf %s "checking whether build environment is sane... " >&6; } 2781# Reject unsafe characters in $srcdir or the absolute working directory 2782# name. Accept space and tab only in the latter. 2783am_lf=' 2784' 2785case `pwd` in 2786 *[\\\"\#\$\&\'\`$am_lf]*) 2787 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2788esac 2789case $srcdir in 2790 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2791 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2792esac 2793 2794# Do 'set' in a subshell so we don't clobber the current shell's 2795# arguments. Must try -L first in case configure is actually a 2796# symlink; some systems play weird games with the mod time of symlinks 2797# (eg FreeBSD returns the mod time of the symlink's containing 2798# directory). 2799if ( 2800 am_has_slept=no 2801 for am_try in 1 2; do 2802 echo "timestamp, slept: $am_has_slept" > conftest.file 2803 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2804 if test "$*" = "X"; then 2805 # -L didn't work. 2806 set X `ls -t "$srcdir/configure" conftest.file` 2807 fi 2808 if test "$*" != "X $srcdir/configure conftest.file" \ 2809 && test "$*" != "X conftest.file $srcdir/configure"; then 2810 2811 # If neither matched, then we have a broken ls. This can happen 2812 # if, for instance, CONFIG_SHELL is bash and it inherits a 2813 # broken ls alias from the environment. This has actually 2814 # happened. Such a system could not be considered "sane". 2815 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2816 alias in your environment" "$LINENO" 5 2817 fi 2818 if test "$2" = conftest.file || test $am_try -eq 2; then 2819 break 2820 fi 2821 # Just in case. 2822 sleep 1 2823 am_has_slept=yes 2824 done 2825 test "$2" = conftest.file 2826 ) 2827then 2828 # Ok. 2829 : 2830else 2831 as_fn_error $? "newly created file is older than distributed files! 2832Check your system clock" "$LINENO" 5 2833fi 2834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2835printf "%s\n" "yes" >&6; } 2836# If we didn't sleep, we still need to ensure time stamps of config.status and 2837# generated files are strictly newer. 2838am_sleep_pid= 2839if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2840 ( sleep 1 ) & 2841 am_sleep_pid=$! 2842fi 2843 2844rm -f conftest.file 2845 2846test "$program_prefix" != NONE && 2847 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2848# Use a double $ so make ignores it. 2849test "$program_suffix" != NONE && 2850 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2851# Double any \ or $. 2852# By default was `s,x,x', remove it if useless. 2853ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2854program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2855 2856 2857# Expand $ac_aux_dir to an absolute path. 2858am_aux_dir=`cd "$ac_aux_dir" && pwd` 2859 2860 2861 if test x"${MISSING+set}" != xset; then 2862 MISSING="\${SHELL} '$am_aux_dir/missing'" 2863fi 2864# Use eval to expand $SHELL 2865if eval "$MISSING --is-lightweight"; then 2866 am_missing_run="$MISSING " 2867else 2868 am_missing_run= 2869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2870printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2871fi 2872 2873if test x"${install_sh+set}" != xset; then 2874 case $am_aux_dir in 2875 *\ * | *\ *) 2876 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2877 *) 2878 install_sh="\${SHELL} $am_aux_dir/install-sh" 2879 esac 2880fi 2881 2882# Installed binaries are usually stripped using 'strip' when the user 2883# run "make install-strip". However 'strip' might not be the right 2884# tool to use in cross-compilation environments, therefore Automake 2885# will honor the 'STRIP' environment variable to overrule this program. 2886if test "$cross_compiling" != no; then 2887 if test -n "$ac_tool_prefix"; then 2888 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2889set dummy ${ac_tool_prefix}strip; ac_word=$2 2890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2891printf %s "checking for $ac_word... " >&6; } 2892if test ${ac_cv_prog_STRIP+y} 2893then : 2894 printf %s "(cached) " >&6 2895else $as_nop 2896 if test -n "$STRIP"; then 2897 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2898else 2899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2900for as_dir in $PATH 2901do 2902 IFS=$as_save_IFS 2903 case $as_dir in #((( 2904 '') as_dir=./ ;; 2905 */) ;; 2906 *) as_dir=$as_dir/ ;; 2907 esac 2908 for ac_exec_ext in '' $ac_executable_extensions; do 2909 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2910 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2912 break 2 2913 fi 2914done 2915 done 2916IFS=$as_save_IFS 2917 2918fi 2919fi 2920STRIP=$ac_cv_prog_STRIP 2921if test -n "$STRIP"; then 2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2923printf "%s\n" "$STRIP" >&6; } 2924else 2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2926printf "%s\n" "no" >&6; } 2927fi 2928 2929 2930fi 2931if test -z "$ac_cv_prog_STRIP"; then 2932 ac_ct_STRIP=$STRIP 2933 # Extract the first word of "strip", so it can be a program name with args. 2934set dummy strip; ac_word=$2 2935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2936printf %s "checking for $ac_word... " >&6; } 2937if test ${ac_cv_prog_ac_ct_STRIP+y} 2938then : 2939 printf %s "(cached) " >&6 2940else $as_nop 2941 if test -n "$ac_ct_STRIP"; then 2942 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2943else 2944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2945for as_dir in $PATH 2946do 2947 IFS=$as_save_IFS 2948 case $as_dir in #((( 2949 '') as_dir=./ ;; 2950 */) ;; 2951 *) as_dir=$as_dir/ ;; 2952 esac 2953 for ac_exec_ext in '' $ac_executable_extensions; do 2954 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2955 ac_cv_prog_ac_ct_STRIP="strip" 2956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2957 break 2 2958 fi 2959done 2960 done 2961IFS=$as_save_IFS 2962 2963fi 2964fi 2965ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2966if test -n "$ac_ct_STRIP"; then 2967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2968printf "%s\n" "$ac_ct_STRIP" >&6; } 2969else 2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2971printf "%s\n" "no" >&6; } 2972fi 2973 2974 if test "x$ac_ct_STRIP" = x; then 2975 STRIP=":" 2976 else 2977 case $cross_compiling:$ac_tool_warned in 2978yes:) 2979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2980printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2981ac_tool_warned=yes ;; 2982esac 2983 STRIP=$ac_ct_STRIP 2984 fi 2985else 2986 STRIP="$ac_cv_prog_STRIP" 2987fi 2988 2989fi 2990INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2991 2992 2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2994printf %s "checking for a race-free mkdir -p... " >&6; } 2995if test -z "$MKDIR_P"; then 2996 if test ${ac_cv_path_mkdir+y} 2997then : 2998 printf %s "(cached) " >&6 2999else $as_nop 3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3001for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3002do 3003 IFS=$as_save_IFS 3004 case $as_dir in #((( 3005 '') as_dir=./ ;; 3006 */) ;; 3007 *) as_dir=$as_dir/ ;; 3008 esac 3009 for ac_prog in mkdir gmkdir; do 3010 for ac_exec_ext in '' $ac_executable_extensions; do 3011 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3012 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3013 'mkdir ('*'coreutils) '* | \ 3014 'BusyBox '* | \ 3015 'mkdir (fileutils) '4.1*) 3016 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3017 break 3;; 3018 esac 3019 done 3020 done 3021 done 3022IFS=$as_save_IFS 3023 3024fi 3025 3026 test -d ./--version && rmdir ./--version 3027 if test ${ac_cv_path_mkdir+y}; then 3028 MKDIR_P="$ac_cv_path_mkdir -p" 3029 else 3030 # As a last resort, use the slow shell script. Don't cache a 3031 # value for MKDIR_P within a source directory, because that will 3032 # break other packages using the cache if that directory is 3033 # removed, or if the value is a relative name. 3034 MKDIR_P="$ac_install_sh -d" 3035 fi 3036fi 3037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3038printf "%s\n" "$MKDIR_P" >&6; } 3039 3040for ac_prog in gawk mawk nawk awk 3041do 3042 # Extract the first word of "$ac_prog", so it can be a program name with args. 3043set dummy $ac_prog; ac_word=$2 3044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3045printf %s "checking for $ac_word... " >&6; } 3046if test ${ac_cv_prog_AWK+y} 3047then : 3048 printf %s "(cached) " >&6 3049else $as_nop 3050 if test -n "$AWK"; then 3051 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3052else 3053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3054for as_dir in $PATH 3055do 3056 IFS=$as_save_IFS 3057 case $as_dir in #((( 3058 '') as_dir=./ ;; 3059 */) ;; 3060 *) as_dir=$as_dir/ ;; 3061 esac 3062 for ac_exec_ext in '' $ac_executable_extensions; do 3063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3064 ac_cv_prog_AWK="$ac_prog" 3065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3066 break 2 3067 fi 3068done 3069 done 3070IFS=$as_save_IFS 3071 3072fi 3073fi 3074AWK=$ac_cv_prog_AWK 3075if test -n "$AWK"; then 3076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3077printf "%s\n" "$AWK" >&6; } 3078else 3079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3080printf "%s\n" "no" >&6; } 3081fi 3082 3083 3084 test -n "$AWK" && break 3085done 3086 3087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3088printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3089set x ${MAKE-make} 3090ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3091if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3092then : 3093 printf %s "(cached) " >&6 3094else $as_nop 3095 cat >conftest.make <<\_ACEOF 3096SHELL = /bin/sh 3097all: 3098 @echo '@@@%%%=$(MAKE)=@@@%%%' 3099_ACEOF 3100# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3101case `${MAKE-make} -f conftest.make 2>/dev/null` in 3102 *@@@%%%=?*=@@@%%%*) 3103 eval ac_cv_prog_make_${ac_make}_set=yes;; 3104 *) 3105 eval ac_cv_prog_make_${ac_make}_set=no;; 3106esac 3107rm -f conftest.make 3108fi 3109if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3111printf "%s\n" "yes" >&6; } 3112 SET_MAKE= 3113else 3114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3115printf "%s\n" "no" >&6; } 3116 SET_MAKE="MAKE=${MAKE-make}" 3117fi 3118 3119rm -rf .tst 2>/dev/null 3120mkdir .tst 2>/dev/null 3121if test -d .tst; then 3122 am__leading_dot=. 3123else 3124 am__leading_dot=_ 3125fi 3126rmdir .tst 2>/dev/null 3127 3128# Check whether --enable-silent-rules was given. 3129if test ${enable_silent_rules+y} 3130then : 3131 enableval=$enable_silent_rules; 3132fi 3133 3134case $enable_silent_rules in # ((( 3135 yes) AM_DEFAULT_VERBOSITY=0;; 3136 no) AM_DEFAULT_VERBOSITY=1;; 3137 *) AM_DEFAULT_VERBOSITY=1;; 3138esac 3139am_make=${MAKE-make} 3140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3141printf %s "checking whether $am_make supports nested variables... " >&6; } 3142if test ${am_cv_make_support_nested_variables+y} 3143then : 3144 printf %s "(cached) " >&6 3145else $as_nop 3146 if printf "%s\n" 'TRUE=$(BAR$(V)) 3147BAR0=false 3148BAR1=true 3149V=1 3150am__doit: 3151 @$(TRUE) 3152.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3153 am_cv_make_support_nested_variables=yes 3154else 3155 am_cv_make_support_nested_variables=no 3156fi 3157fi 3158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3159printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3160if test $am_cv_make_support_nested_variables = yes; then 3161 AM_V='$(V)' 3162 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3163else 3164 AM_V=$AM_DEFAULT_VERBOSITY 3165 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3166fi 3167AM_BACKSLASH='\' 3168 3169if test "`cd $srcdir && pwd`" != "`pwd`"; then 3170 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3171 # is not polluted with repeated "-I." 3172 am__isrc=' -I$(srcdir)' 3173 # test to see if srcdir already configured 3174 if test -f $srcdir/config.status; then 3175 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3176 fi 3177fi 3178 3179# test whether we have cygpath 3180if test -z "$CYGPATH_W"; then 3181 if (cygpath --version) >/dev/null 2>/dev/null; then 3182 CYGPATH_W='cygpath -w' 3183 else 3184 CYGPATH_W=echo 3185 fi 3186fi 3187 3188 3189# Define the identity of the package. 3190 PACKAGE='libXScrnSaver' 3191 VERSION='1.2.4' 3192 3193 3194printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3195 3196 3197printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3198 3199# Some tools Automake needs. 3200 3201ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3202 3203 3204AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3205 3206 3207AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3208 3209 3210AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3211 3212 3213MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3214 3215# For better backward compatibility. To be removed once Automake 1.9.x 3216# dies out for good. For more background, see: 3217# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3218# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3219mkdir_p='$(MKDIR_P)' 3220 3221# We need awk for the "check" target (and possibly the TAP driver). The 3222# system "awk" is bad on some platforms. 3223# Always define AMTAR for backward compatibility. Yes, it's still used 3224# in the wild :-( We should find a proper way to deprecate it ... 3225AMTAR='$${TAR-tar}' 3226 3227 3228# We'll loop over all known methods to create a tar archive until one works. 3229_am_tools='gnutar pax cpio none' 3230 3231am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3232 3233 3234 3235 3236 3237# Variables for tags utilities; see am/tags.am 3238if test -z "$CTAGS"; then 3239 CTAGS=ctags 3240fi 3241 3242if test -z "$ETAGS"; then 3243 ETAGS=etags 3244fi 3245 3246if test -z "$CSCOPE"; then 3247 CSCOPE=cscope 3248fi 3249 3250 3251 3252# POSIX will say in a future version that running "rm -f" with no argument 3253# is OK; and we want to be able to make that assumption in our Makefile 3254# recipes. So use an aggressive probe to check that the usage we want is 3255# actually supported "in the wild" to an acceptable degree. 3256# See automake bug#10828. 3257# To make any issue more visible, cause the running configure to be aborted 3258# by default if the 'rm' program in use doesn't match our expectations; the 3259# user can still override this though. 3260if rm -f && rm -fr && rm -rf; then : OK; else 3261 cat >&2 <<'END' 3262Oops! 3263 3264Your 'rm' program seems unable to run without file operands specified 3265on the command line, even when the '-f' option is present. This is contrary 3266to the behaviour of most rm programs out there, and not conforming with 3267the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3268 3269Please tell bug-automake@gnu.org about your system, including the value 3270of your $PATH and any error possibly output before this message. This 3271can help us improve future automake versions. 3272 3273END 3274 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3275 echo 'Configuration will proceed anyway, since you have set the' >&2 3276 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3277 echo >&2 3278 else 3279 cat >&2 <<'END' 3280Aborting the configuration process, to ensure you take notice of the issue. 3281 3282You can download and install GNU coreutils to get an 'rm' implementation 3283that behaves properly: <https://www.gnu.org/software/coreutils/>. 3284 3285If you want to complete the configuration process using your problematic 3286'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3287to "yes", and re-run configure. 3288 3289END 3290 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3291 fi 3292fi 3293 3294 3295# Initialize libtool 3296case `pwd` in 3297 *\ * | *\ *) 3298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3299printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3300esac 3301 3302 3303 3304macro_version='2.4.7' 3305macro_revision='2.4.7' 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320ltmain=$ac_aux_dir/ltmain.sh 3321 3322 3323 3324 # Make sure we can run config.sub. 3325$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3326 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3327 3328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3329printf %s "checking build system type... " >&6; } 3330if test ${ac_cv_build+y} 3331then : 3332 printf %s "(cached) " >&6 3333else $as_nop 3334 ac_build_alias=$build_alias 3335test "x$ac_build_alias" = x && 3336 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3337test "x$ac_build_alias" = x && 3338 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3339ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3340 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3341 3342fi 3343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3344printf "%s\n" "$ac_cv_build" >&6; } 3345case $ac_cv_build in 3346*-*-*) ;; 3347*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3348esac 3349build=$ac_cv_build 3350ac_save_IFS=$IFS; IFS='-' 3351set x $ac_cv_build 3352shift 3353build_cpu=$1 3354build_vendor=$2 3355shift; shift 3356# Remember, the first character of IFS is used to create $*, 3357# except with old shells: 3358build_os=$* 3359IFS=$ac_save_IFS 3360case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3361 3362 3363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3364printf %s "checking host system type... " >&6; } 3365if test ${ac_cv_host+y} 3366then : 3367 printf %s "(cached) " >&6 3368else $as_nop 3369 if test "x$host_alias" = x; then 3370 ac_cv_host=$ac_cv_build 3371else 3372 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3373 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3374fi 3375 3376fi 3377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3378printf "%s\n" "$ac_cv_host" >&6; } 3379case $ac_cv_host in 3380*-*-*) ;; 3381*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3382esac 3383host=$ac_cv_host 3384ac_save_IFS=$IFS; IFS='-' 3385set x $ac_cv_host 3386shift 3387host_cpu=$1 3388host_vendor=$2 3389shift; shift 3390# Remember, the first character of IFS is used to create $*, 3391# except with old shells: 3392host_os=$* 3393IFS=$ac_save_IFS 3394case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3395 3396 3397# Backslashify metacharacters that are still active within 3398# double-quoted strings. 3399sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3400 3401# Same as above, but do not quote variable references. 3402double_quote_subst='s/\(["`\\]\)/\\\1/g' 3403 3404# Sed substitution to delay expansion of an escaped shell variable in a 3405# double_quote_subst'ed string. 3406delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3407 3408# Sed substitution to delay expansion of an escaped single quote. 3409delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3410 3411# Sed substitution to avoid accidental globbing in evaled expressions 3412no_glob_subst='s/\*/\\\*/g' 3413 3414ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3415ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3416ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3417 3418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3419printf %s "checking how to print strings... " >&6; } 3420# Test print first, because it will be a builtin if present. 3421if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3422 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3423 ECHO='print -r --' 3424elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3425 ECHO='printf %s\n' 3426else 3427 # Use this function as a fallback that always works. 3428 func_fallback_echo () 3429 { 3430 eval 'cat <<_LTECHO_EOF 3431$1 3432_LTECHO_EOF' 3433 } 3434 ECHO='func_fallback_echo' 3435fi 3436 3437# func_echo_all arg... 3438# Invoke $ECHO with all args, space-separated. 3439func_echo_all () 3440{ 3441 $ECHO "" 3442} 3443 3444case $ECHO in 3445 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3446printf "%s\n" "printf" >&6; } ;; 3447 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3448printf "%s\n" "print -r" >&6; } ;; 3449 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3450printf "%s\n" "cat" >&6; } ;; 3451esac 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475DEPDIR="${am__leading_dot}deps" 3476 3477ac_config_commands="$ac_config_commands depfiles" 3478 3479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3480printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3481cat > confinc.mk << 'END' 3482am__doit: 3483 @echo this is the am__doit target >confinc.out 3484.PHONY: am__doit 3485END 3486am__include="#" 3487am__quote= 3488# BSD make does it like this. 3489echo '.include "confinc.mk" # ignored' > confmf.BSD 3490# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3491echo 'include confinc.mk # ignored' > confmf.GNU 3492_am_result=no 3493for s in GNU BSD; do 3494 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3495 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3496 ac_status=$? 3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3498 (exit $ac_status); } 3499 case $?:`cat confinc.out 2>/dev/null` in #( 3500 '0:this is the am__doit target') : 3501 case $s in #( 3502 BSD) : 3503 am__include='.include' am__quote='"' ;; #( 3504 *) : 3505 am__include='include' am__quote='' ;; 3506esac ;; #( 3507 *) : 3508 ;; 3509esac 3510 if test "$am__include" != "#"; then 3511 _am_result="yes ($s style)" 3512 break 3513 fi 3514done 3515rm -f confinc.* confmf.* 3516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3517printf "%s\n" "${_am_result}" >&6; } 3518 3519# Check whether --enable-dependency-tracking was given. 3520if test ${enable_dependency_tracking+y} 3521then : 3522 enableval=$enable_dependency_tracking; 3523fi 3524 3525if test "x$enable_dependency_tracking" != xno; then 3526 am_depcomp="$ac_aux_dir/depcomp" 3527 AMDEPBACKSLASH='\' 3528 am__nodep='_no' 3529fi 3530 if test "x$enable_dependency_tracking" != xno; then 3531 AMDEP_TRUE= 3532 AMDEP_FALSE='#' 3533else 3534 AMDEP_TRUE='#' 3535 AMDEP_FALSE= 3536fi 3537 3538 3539ac_ext=c 3540ac_cpp='$CPP $CPPFLAGS' 3541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3543ac_compiler_gnu=$ac_cv_c_compiler_gnu 3544if test -n "$ac_tool_prefix"; then 3545 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3546set dummy ${ac_tool_prefix}gcc; ac_word=$2 3547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3548printf %s "checking for $ac_word... " >&6; } 3549if test ${ac_cv_prog_CC+y} 3550then : 3551 printf %s "(cached) " >&6 3552else $as_nop 3553 if test -n "$CC"; then 3554 ac_cv_prog_CC="$CC" # Let the user override the test. 3555else 3556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3557for as_dir in $PATH 3558do 3559 IFS=$as_save_IFS 3560 case $as_dir in #((( 3561 '') as_dir=./ ;; 3562 */) ;; 3563 *) as_dir=$as_dir/ ;; 3564 esac 3565 for ac_exec_ext in '' $ac_executable_extensions; do 3566 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3567 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3569 break 2 3570 fi 3571done 3572 done 3573IFS=$as_save_IFS 3574 3575fi 3576fi 3577CC=$ac_cv_prog_CC 3578if test -n "$CC"; then 3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3580printf "%s\n" "$CC" >&6; } 3581else 3582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3583printf "%s\n" "no" >&6; } 3584fi 3585 3586 3587fi 3588if test -z "$ac_cv_prog_CC"; then 3589 ac_ct_CC=$CC 3590 # Extract the first word of "gcc", so it can be a program name with args. 3591set dummy gcc; ac_word=$2 3592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3593printf %s "checking for $ac_word... " >&6; } 3594if test ${ac_cv_prog_ac_ct_CC+y} 3595then : 3596 printf %s "(cached) " >&6 3597else $as_nop 3598 if test -n "$ac_ct_CC"; then 3599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3600else 3601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3602for as_dir in $PATH 3603do 3604 IFS=$as_save_IFS 3605 case $as_dir in #((( 3606 '') as_dir=./ ;; 3607 */) ;; 3608 *) as_dir=$as_dir/ ;; 3609 esac 3610 for ac_exec_ext in '' $ac_executable_extensions; do 3611 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3612 ac_cv_prog_ac_ct_CC="gcc" 3613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3614 break 2 3615 fi 3616done 3617 done 3618IFS=$as_save_IFS 3619 3620fi 3621fi 3622ac_ct_CC=$ac_cv_prog_ac_ct_CC 3623if test -n "$ac_ct_CC"; then 3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3625printf "%s\n" "$ac_ct_CC" >&6; } 3626else 3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3628printf "%s\n" "no" >&6; } 3629fi 3630 3631 if test "x$ac_ct_CC" = x; then 3632 CC="" 3633 else 3634 case $cross_compiling:$ac_tool_warned in 3635yes:) 3636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3637printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3638ac_tool_warned=yes ;; 3639esac 3640 CC=$ac_ct_CC 3641 fi 3642else 3643 CC="$ac_cv_prog_CC" 3644fi 3645 3646if test -z "$CC"; then 3647 if test -n "$ac_tool_prefix"; then 3648 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3649set dummy ${ac_tool_prefix}cc; ac_word=$2 3650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3651printf %s "checking for $ac_word... " >&6; } 3652if test ${ac_cv_prog_CC+y} 3653then : 3654 printf %s "(cached) " >&6 3655else $as_nop 3656 if test -n "$CC"; then 3657 ac_cv_prog_CC="$CC" # Let the user override the test. 3658else 3659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3660for as_dir in $PATH 3661do 3662 IFS=$as_save_IFS 3663 case $as_dir in #((( 3664 '') as_dir=./ ;; 3665 */) ;; 3666 *) as_dir=$as_dir/ ;; 3667 esac 3668 for ac_exec_ext in '' $ac_executable_extensions; do 3669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3670 ac_cv_prog_CC="${ac_tool_prefix}cc" 3671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3672 break 2 3673 fi 3674done 3675 done 3676IFS=$as_save_IFS 3677 3678fi 3679fi 3680CC=$ac_cv_prog_CC 3681if test -n "$CC"; then 3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3683printf "%s\n" "$CC" >&6; } 3684else 3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3686printf "%s\n" "no" >&6; } 3687fi 3688 3689 3690 fi 3691fi 3692if test -z "$CC"; then 3693 # Extract the first word of "cc", so it can be a program name with args. 3694set dummy cc; ac_word=$2 3695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3696printf %s "checking for $ac_word... " >&6; } 3697if test ${ac_cv_prog_CC+y} 3698then : 3699 printf %s "(cached) " >&6 3700else $as_nop 3701 if test -n "$CC"; then 3702 ac_cv_prog_CC="$CC" # Let the user override the test. 3703else 3704 ac_prog_rejected=no 3705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3706for as_dir in $PATH 3707do 3708 IFS=$as_save_IFS 3709 case $as_dir in #((( 3710 '') as_dir=./ ;; 3711 */) ;; 3712 *) as_dir=$as_dir/ ;; 3713 esac 3714 for ac_exec_ext in '' $ac_executable_extensions; do 3715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3716 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3717 ac_prog_rejected=yes 3718 continue 3719 fi 3720 ac_cv_prog_CC="cc" 3721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3722 break 2 3723 fi 3724done 3725 done 3726IFS=$as_save_IFS 3727 3728if test $ac_prog_rejected = yes; then 3729 # We found a bogon in the path, so make sure we never use it. 3730 set dummy $ac_cv_prog_CC 3731 shift 3732 if test $# != 0; then 3733 # We chose a different compiler from the bogus one. 3734 # However, it has the same basename, so the bogon will be chosen 3735 # first if we set CC to just the basename; use the full file name. 3736 shift 3737 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3738 fi 3739fi 3740fi 3741fi 3742CC=$ac_cv_prog_CC 3743if test -n "$CC"; then 3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3745printf "%s\n" "$CC" >&6; } 3746else 3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3748printf "%s\n" "no" >&6; } 3749fi 3750 3751 3752fi 3753if test -z "$CC"; then 3754 if test -n "$ac_tool_prefix"; then 3755 for ac_prog in cl.exe 3756 do 3757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3758set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3760printf %s "checking for $ac_word... " >&6; } 3761if test ${ac_cv_prog_CC+y} 3762then : 3763 printf %s "(cached) " >&6 3764else $as_nop 3765 if test -n "$CC"; then 3766 ac_cv_prog_CC="$CC" # Let the user override the test. 3767else 3768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3769for as_dir in $PATH 3770do 3771 IFS=$as_save_IFS 3772 case $as_dir in #((( 3773 '') as_dir=./ ;; 3774 */) ;; 3775 *) as_dir=$as_dir/ ;; 3776 esac 3777 for ac_exec_ext in '' $ac_executable_extensions; do 3778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3779 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3781 break 2 3782 fi 3783done 3784 done 3785IFS=$as_save_IFS 3786 3787fi 3788fi 3789CC=$ac_cv_prog_CC 3790if test -n "$CC"; then 3791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3792printf "%s\n" "$CC" >&6; } 3793else 3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3795printf "%s\n" "no" >&6; } 3796fi 3797 3798 3799 test -n "$CC" && break 3800 done 3801fi 3802if test -z "$CC"; then 3803 ac_ct_CC=$CC 3804 for ac_prog in cl.exe 3805do 3806 # Extract the first word of "$ac_prog", so it can be a program name with args. 3807set dummy $ac_prog; ac_word=$2 3808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3809printf %s "checking for $ac_word... " >&6; } 3810if test ${ac_cv_prog_ac_ct_CC+y} 3811then : 3812 printf %s "(cached) " >&6 3813else $as_nop 3814 if test -n "$ac_ct_CC"; then 3815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3816else 3817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3818for as_dir in $PATH 3819do 3820 IFS=$as_save_IFS 3821 case $as_dir in #((( 3822 '') as_dir=./ ;; 3823 */) ;; 3824 *) as_dir=$as_dir/ ;; 3825 esac 3826 for ac_exec_ext in '' $ac_executable_extensions; do 3827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3828 ac_cv_prog_ac_ct_CC="$ac_prog" 3829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3830 break 2 3831 fi 3832done 3833 done 3834IFS=$as_save_IFS 3835 3836fi 3837fi 3838ac_ct_CC=$ac_cv_prog_ac_ct_CC 3839if test -n "$ac_ct_CC"; then 3840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3841printf "%s\n" "$ac_ct_CC" >&6; } 3842else 3843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3844printf "%s\n" "no" >&6; } 3845fi 3846 3847 3848 test -n "$ac_ct_CC" && break 3849done 3850 3851 if test "x$ac_ct_CC" = x; then 3852 CC="" 3853 else 3854 case $cross_compiling:$ac_tool_warned in 3855yes:) 3856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3857printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3858ac_tool_warned=yes ;; 3859esac 3860 CC=$ac_ct_CC 3861 fi 3862fi 3863 3864fi 3865if test -z "$CC"; then 3866 if test -n "$ac_tool_prefix"; then 3867 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3868set dummy ${ac_tool_prefix}clang; ac_word=$2 3869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3870printf %s "checking for $ac_word... " >&6; } 3871if test ${ac_cv_prog_CC+y} 3872then : 3873 printf %s "(cached) " >&6 3874else $as_nop 3875 if test -n "$CC"; then 3876 ac_cv_prog_CC="$CC" # Let the user override the test. 3877else 3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3879for as_dir in $PATH 3880do 3881 IFS=$as_save_IFS 3882 case $as_dir in #((( 3883 '') as_dir=./ ;; 3884 */) ;; 3885 *) as_dir=$as_dir/ ;; 3886 esac 3887 for ac_exec_ext in '' $ac_executable_extensions; do 3888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3889 ac_cv_prog_CC="${ac_tool_prefix}clang" 3890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3891 break 2 3892 fi 3893done 3894 done 3895IFS=$as_save_IFS 3896 3897fi 3898fi 3899CC=$ac_cv_prog_CC 3900if test -n "$CC"; then 3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3902printf "%s\n" "$CC" >&6; } 3903else 3904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3905printf "%s\n" "no" >&6; } 3906fi 3907 3908 3909fi 3910if test -z "$ac_cv_prog_CC"; then 3911 ac_ct_CC=$CC 3912 # Extract the first word of "clang", so it can be a program name with args. 3913set dummy clang; ac_word=$2 3914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3915printf %s "checking for $ac_word... " >&6; } 3916if test ${ac_cv_prog_ac_ct_CC+y} 3917then : 3918 printf %s "(cached) " >&6 3919else $as_nop 3920 if test -n "$ac_ct_CC"; then 3921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3922else 3923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3924for as_dir in $PATH 3925do 3926 IFS=$as_save_IFS 3927 case $as_dir in #((( 3928 '') as_dir=./ ;; 3929 */) ;; 3930 *) as_dir=$as_dir/ ;; 3931 esac 3932 for ac_exec_ext in '' $ac_executable_extensions; do 3933 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3934 ac_cv_prog_ac_ct_CC="clang" 3935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3936 break 2 3937 fi 3938done 3939 done 3940IFS=$as_save_IFS 3941 3942fi 3943fi 3944ac_ct_CC=$ac_cv_prog_ac_ct_CC 3945if test -n "$ac_ct_CC"; then 3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3947printf "%s\n" "$ac_ct_CC" >&6; } 3948else 3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3950printf "%s\n" "no" >&6; } 3951fi 3952 3953 if test "x$ac_ct_CC" = x; then 3954 CC="" 3955 else 3956 case $cross_compiling:$ac_tool_warned in 3957yes:) 3958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3959printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3960ac_tool_warned=yes ;; 3961esac 3962 CC=$ac_ct_CC 3963 fi 3964else 3965 CC="$ac_cv_prog_CC" 3966fi 3967 3968fi 3969 3970 3971test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3972printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3973as_fn_error $? "no acceptable C compiler found in \$PATH 3974See \`config.log' for more details" "$LINENO" 5; } 3975 3976# Provide some information about the compiler. 3977printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3978set X $ac_compile 3979ac_compiler=$2 3980for ac_option in --version -v -V -qversion -version; do 3981 { { ac_try="$ac_compiler $ac_option >&5" 3982case "(($ac_try" in 3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3984 *) ac_try_echo=$ac_try;; 3985esac 3986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3987printf "%s\n" "$ac_try_echo"; } >&5 3988 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3989 ac_status=$? 3990 if test -s conftest.err; then 3991 sed '10a\ 3992... rest of stderr output deleted ... 3993 10q' conftest.err >conftest.er1 3994 cat conftest.er1 >&5 3995 fi 3996 rm -f conftest.er1 conftest.err 3997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3998 test $ac_status = 0; } 3999done 4000 4001cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4002/* end confdefs.h. */ 4003 4004int 4005main (void) 4006{ 4007 4008 ; 4009 return 0; 4010} 4011_ACEOF 4012ac_clean_files_save=$ac_clean_files 4013ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4014# Try to create an executable without -o first, disregard a.out. 4015# It will help us diagnose broken compilers, and finding out an intuition 4016# of exeext. 4017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4018printf %s "checking whether the C compiler works... " >&6; } 4019ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4020 4021# The possible output files: 4022ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4023 4024ac_rmfiles= 4025for ac_file in $ac_files 4026do 4027 case $ac_file in 4028 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4029 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4030 esac 4031done 4032rm -f $ac_rmfiles 4033 4034if { { ac_try="$ac_link_default" 4035case "(($ac_try" in 4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4037 *) ac_try_echo=$ac_try;; 4038esac 4039eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4040printf "%s\n" "$ac_try_echo"; } >&5 4041 (eval "$ac_link_default") 2>&5 4042 ac_status=$? 4043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4044 test $ac_status = 0; } 4045then : 4046 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4047# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4048# in a Makefile. We should not override ac_cv_exeext if it was cached, 4049# so that the user can short-circuit this test for compilers unknown to 4050# Autoconf. 4051for ac_file in $ac_files '' 4052do 4053 test -f "$ac_file" || continue 4054 case $ac_file in 4055 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4056 ;; 4057 [ab].out ) 4058 # We found the default executable, but exeext='' is most 4059 # certainly right. 4060 break;; 4061 *.* ) 4062 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4063 then :; else 4064 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4065 fi 4066 # We set ac_cv_exeext here because the later test for it is not 4067 # safe: cross compilers may not add the suffix if given an `-o' 4068 # argument, so we may need to know it at that point already. 4069 # Even if this section looks crufty: it has the advantage of 4070 # actually working. 4071 break;; 4072 * ) 4073 break;; 4074 esac 4075done 4076test "$ac_cv_exeext" = no && ac_cv_exeext= 4077 4078else $as_nop 4079 ac_file='' 4080fi 4081if test -z "$ac_file" 4082then : 4083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4084printf "%s\n" "no" >&6; } 4085printf "%s\n" "$as_me: failed program was:" >&5 4086sed 's/^/| /' conftest.$ac_ext >&5 4087 4088{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4089printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4090as_fn_error 77 "C compiler cannot create executables 4091See \`config.log' for more details" "$LINENO" 5; } 4092else $as_nop 4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4094printf "%s\n" "yes" >&6; } 4095fi 4096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4097printf %s "checking for C compiler default output file name... " >&6; } 4098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4099printf "%s\n" "$ac_file" >&6; } 4100ac_exeext=$ac_cv_exeext 4101 4102rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4103ac_clean_files=$ac_clean_files_save 4104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4105printf %s "checking for suffix of executables... " >&6; } 4106if { { ac_try="$ac_link" 4107case "(($ac_try" in 4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4109 *) ac_try_echo=$ac_try;; 4110esac 4111eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4112printf "%s\n" "$ac_try_echo"; } >&5 4113 (eval "$ac_link") 2>&5 4114 ac_status=$? 4115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4116 test $ac_status = 0; } 4117then : 4118 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4119# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4120# work properly (i.e., refer to `conftest.exe'), while it won't with 4121# `rm'. 4122for ac_file in conftest.exe conftest conftest.*; do 4123 test -f "$ac_file" || continue 4124 case $ac_file in 4125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4126 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4127 break;; 4128 * ) break;; 4129 esac 4130done 4131else $as_nop 4132 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4133printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4134as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4135See \`config.log' for more details" "$LINENO" 5; } 4136fi 4137rm -f conftest conftest$ac_cv_exeext 4138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4139printf "%s\n" "$ac_cv_exeext" >&6; } 4140 4141rm -f conftest.$ac_ext 4142EXEEXT=$ac_cv_exeext 4143ac_exeext=$EXEEXT 4144cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4145/* end confdefs.h. */ 4146#include <stdio.h> 4147int 4148main (void) 4149{ 4150FILE *f = fopen ("conftest.out", "w"); 4151 return ferror (f) || fclose (f) != 0; 4152 4153 ; 4154 return 0; 4155} 4156_ACEOF 4157ac_clean_files="$ac_clean_files conftest.out" 4158# Check that the compiler produces executables we can run. If not, either 4159# the compiler is broken, or we cross compile. 4160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4161printf %s "checking whether we are cross compiling... " >&6; } 4162if test "$cross_compiling" != yes; then 4163 { { ac_try="$ac_link" 4164case "(($ac_try" in 4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4166 *) ac_try_echo=$ac_try;; 4167esac 4168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4169printf "%s\n" "$ac_try_echo"; } >&5 4170 (eval "$ac_link") 2>&5 4171 ac_status=$? 4172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4173 test $ac_status = 0; } 4174 if { ac_try='./conftest$ac_cv_exeext' 4175 { { case "(($ac_try" in 4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4177 *) ac_try_echo=$ac_try;; 4178esac 4179eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4180printf "%s\n" "$ac_try_echo"; } >&5 4181 (eval "$ac_try") 2>&5 4182 ac_status=$? 4183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4184 test $ac_status = 0; }; }; then 4185 cross_compiling=no 4186 else 4187 if test "$cross_compiling" = maybe; then 4188 cross_compiling=yes 4189 else 4190 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4191printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4192as_fn_error 77 "cannot run C compiled programs. 4193If you meant to cross compile, use \`--host'. 4194See \`config.log' for more details" "$LINENO" 5; } 4195 fi 4196 fi 4197fi 4198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4199printf "%s\n" "$cross_compiling" >&6; } 4200 4201rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4202ac_clean_files=$ac_clean_files_save 4203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4204printf %s "checking for suffix of object files... " >&6; } 4205if test ${ac_cv_objext+y} 4206then : 4207 printf %s "(cached) " >&6 4208else $as_nop 4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4210/* end confdefs.h. */ 4211 4212int 4213main (void) 4214{ 4215 4216 ; 4217 return 0; 4218} 4219_ACEOF 4220rm -f conftest.o conftest.obj 4221if { { ac_try="$ac_compile" 4222case "(($ac_try" in 4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4224 *) ac_try_echo=$ac_try;; 4225esac 4226eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4227printf "%s\n" "$ac_try_echo"; } >&5 4228 (eval "$ac_compile") 2>&5 4229 ac_status=$? 4230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4231 test $ac_status = 0; } 4232then : 4233 for ac_file in conftest.o conftest.obj conftest.*; do 4234 test -f "$ac_file" || continue; 4235 case $ac_file in 4236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4237 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4238 break;; 4239 esac 4240done 4241else $as_nop 4242 printf "%s\n" "$as_me: failed program was:" >&5 4243sed 's/^/| /' conftest.$ac_ext >&5 4244 4245{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4246printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4247as_fn_error $? "cannot compute suffix of object files: cannot compile 4248See \`config.log' for more details" "$LINENO" 5; } 4249fi 4250rm -f conftest.$ac_cv_objext conftest.$ac_ext 4251fi 4252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4253printf "%s\n" "$ac_cv_objext" >&6; } 4254OBJEXT=$ac_cv_objext 4255ac_objext=$OBJEXT 4256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4257printf %s "checking whether the compiler supports GNU C... " >&6; } 4258if test ${ac_cv_c_compiler_gnu+y} 4259then : 4260 printf %s "(cached) " >&6 4261else $as_nop 4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4263/* end confdefs.h. */ 4264 4265int 4266main (void) 4267{ 4268#ifndef __GNUC__ 4269 choke me 4270#endif 4271 4272 ; 4273 return 0; 4274} 4275_ACEOF 4276if ac_fn_c_try_compile "$LINENO" 4277then : 4278 ac_compiler_gnu=yes 4279else $as_nop 4280 ac_compiler_gnu=no 4281fi 4282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4283ac_cv_c_compiler_gnu=$ac_compiler_gnu 4284 4285fi 4286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4287printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4288ac_compiler_gnu=$ac_cv_c_compiler_gnu 4289 4290if test $ac_compiler_gnu = yes; then 4291 GCC=yes 4292else 4293 GCC= 4294fi 4295ac_test_CFLAGS=${CFLAGS+y} 4296ac_save_CFLAGS=$CFLAGS 4297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4298printf %s "checking whether $CC accepts -g... " >&6; } 4299if test ${ac_cv_prog_cc_g+y} 4300then : 4301 printf %s "(cached) " >&6 4302else $as_nop 4303 ac_save_c_werror_flag=$ac_c_werror_flag 4304 ac_c_werror_flag=yes 4305 ac_cv_prog_cc_g=no 4306 CFLAGS="-g" 4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4308/* end confdefs.h. */ 4309 4310int 4311main (void) 4312{ 4313 4314 ; 4315 return 0; 4316} 4317_ACEOF 4318if ac_fn_c_try_compile "$LINENO" 4319then : 4320 ac_cv_prog_cc_g=yes 4321else $as_nop 4322 CFLAGS="" 4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4324/* end confdefs.h. */ 4325 4326int 4327main (void) 4328{ 4329 4330 ; 4331 return 0; 4332} 4333_ACEOF 4334if ac_fn_c_try_compile "$LINENO" 4335then : 4336 4337else $as_nop 4338 ac_c_werror_flag=$ac_save_c_werror_flag 4339 CFLAGS="-g" 4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4341/* end confdefs.h. */ 4342 4343int 4344main (void) 4345{ 4346 4347 ; 4348 return 0; 4349} 4350_ACEOF 4351if ac_fn_c_try_compile "$LINENO" 4352then : 4353 ac_cv_prog_cc_g=yes 4354fi 4355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4356fi 4357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4358fi 4359rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4360 ac_c_werror_flag=$ac_save_c_werror_flag 4361fi 4362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4363printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4364if test $ac_test_CFLAGS; then 4365 CFLAGS=$ac_save_CFLAGS 4366elif test $ac_cv_prog_cc_g = yes; then 4367 if test "$GCC" = yes; then 4368 CFLAGS="-g -O2" 4369 else 4370 CFLAGS="-g" 4371 fi 4372else 4373 if test "$GCC" = yes; then 4374 CFLAGS="-O2" 4375 else 4376 CFLAGS= 4377 fi 4378fi 4379ac_prog_cc_stdc=no 4380if test x$ac_prog_cc_stdc = xno 4381then : 4382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4383printf %s "checking for $CC option to enable C11 features... " >&6; } 4384if test ${ac_cv_prog_cc_c11+y} 4385then : 4386 printf %s "(cached) " >&6 4387else $as_nop 4388 ac_cv_prog_cc_c11=no 4389ac_save_CC=$CC 4390cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4391/* end confdefs.h. */ 4392$ac_c_conftest_c11_program 4393_ACEOF 4394for ac_arg in '' -std=gnu11 4395do 4396 CC="$ac_save_CC $ac_arg" 4397 if ac_fn_c_try_compile "$LINENO" 4398then : 4399 ac_cv_prog_cc_c11=$ac_arg 4400fi 4401rm -f core conftest.err conftest.$ac_objext conftest.beam 4402 test "x$ac_cv_prog_cc_c11" != "xno" && break 4403done 4404rm -f conftest.$ac_ext 4405CC=$ac_save_CC 4406fi 4407 4408if test "x$ac_cv_prog_cc_c11" = xno 4409then : 4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4411printf "%s\n" "unsupported" >&6; } 4412else $as_nop 4413 if test "x$ac_cv_prog_cc_c11" = x 4414then : 4415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4416printf "%s\n" "none needed" >&6; } 4417else $as_nop 4418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4419printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4420 CC="$CC $ac_cv_prog_cc_c11" 4421fi 4422 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4423 ac_prog_cc_stdc=c11 4424fi 4425fi 4426if test x$ac_prog_cc_stdc = xno 4427then : 4428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4429printf %s "checking for $CC option to enable C99 features... " >&6; } 4430if test ${ac_cv_prog_cc_c99+y} 4431then : 4432 printf %s "(cached) " >&6 4433else $as_nop 4434 ac_cv_prog_cc_c99=no 4435ac_save_CC=$CC 4436cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4437/* end confdefs.h. */ 4438$ac_c_conftest_c99_program 4439_ACEOF 4440for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4441do 4442 CC="$ac_save_CC $ac_arg" 4443 if ac_fn_c_try_compile "$LINENO" 4444then : 4445 ac_cv_prog_cc_c99=$ac_arg 4446fi 4447rm -f core conftest.err conftest.$ac_objext conftest.beam 4448 test "x$ac_cv_prog_cc_c99" != "xno" && break 4449done 4450rm -f conftest.$ac_ext 4451CC=$ac_save_CC 4452fi 4453 4454if test "x$ac_cv_prog_cc_c99" = xno 4455then : 4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4457printf "%s\n" "unsupported" >&6; } 4458else $as_nop 4459 if test "x$ac_cv_prog_cc_c99" = x 4460then : 4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4462printf "%s\n" "none needed" >&6; } 4463else $as_nop 4464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4465printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4466 CC="$CC $ac_cv_prog_cc_c99" 4467fi 4468 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4469 ac_prog_cc_stdc=c99 4470fi 4471fi 4472if test x$ac_prog_cc_stdc = xno 4473then : 4474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4475printf %s "checking for $CC option to enable C89 features... " >&6; } 4476if test ${ac_cv_prog_cc_c89+y} 4477then : 4478 printf %s "(cached) " >&6 4479else $as_nop 4480 ac_cv_prog_cc_c89=no 4481ac_save_CC=$CC 4482cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4483/* end confdefs.h. */ 4484$ac_c_conftest_c89_program 4485_ACEOF 4486for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4487do 4488 CC="$ac_save_CC $ac_arg" 4489 if ac_fn_c_try_compile "$LINENO" 4490then : 4491 ac_cv_prog_cc_c89=$ac_arg 4492fi 4493rm -f core conftest.err conftest.$ac_objext conftest.beam 4494 test "x$ac_cv_prog_cc_c89" != "xno" && break 4495done 4496rm -f conftest.$ac_ext 4497CC=$ac_save_CC 4498fi 4499 4500if test "x$ac_cv_prog_cc_c89" = xno 4501then : 4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4503printf "%s\n" "unsupported" >&6; } 4504else $as_nop 4505 if test "x$ac_cv_prog_cc_c89" = x 4506then : 4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4508printf "%s\n" "none needed" >&6; } 4509else $as_nop 4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4511printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4512 CC="$CC $ac_cv_prog_cc_c89" 4513fi 4514 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4515 ac_prog_cc_stdc=c89 4516fi 4517fi 4518 4519ac_ext=c 4520ac_cpp='$CPP $CPPFLAGS' 4521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4523ac_compiler_gnu=$ac_cv_c_compiler_gnu 4524 4525 4526 ac_ext=c 4527ac_cpp='$CPP $CPPFLAGS' 4528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4530ac_compiler_gnu=$ac_cv_c_compiler_gnu 4531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4532printf %s "checking whether $CC understands -c and -o together... " >&6; } 4533if test ${am_cv_prog_cc_c_o+y} 4534then : 4535 printf %s "(cached) " >&6 4536else $as_nop 4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4538/* end confdefs.h. */ 4539 4540int 4541main (void) 4542{ 4543 4544 ; 4545 return 0; 4546} 4547_ACEOF 4548 # Make sure it works both with $CC and with simple cc. 4549 # Following AC_PROG_CC_C_O, we do the test twice because some 4550 # compilers refuse to overwrite an existing .o file with -o, 4551 # though they will create one. 4552 am_cv_prog_cc_c_o=yes 4553 for am_i in 1 2; do 4554 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4555 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4556 ac_status=$? 4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4558 (exit $ac_status); } \ 4559 && test -f conftest2.$ac_objext; then 4560 : OK 4561 else 4562 am_cv_prog_cc_c_o=no 4563 break 4564 fi 4565 done 4566 rm -f core conftest* 4567 unset am_i 4568fi 4569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4570printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4571if test "$am_cv_prog_cc_c_o" != yes; then 4572 # Losing compiler, so override with the script. 4573 # FIXME: It is wrong to rewrite CC. 4574 # But if we don't then we get into trouble of one sort or another. 4575 # A longer-term fix would be to have automake use am__CC in this case, 4576 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4577 CC="$am_aux_dir/compile $CC" 4578fi 4579ac_ext=c 4580ac_cpp='$CPP $CPPFLAGS' 4581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4583ac_compiler_gnu=$ac_cv_c_compiler_gnu 4584 4585 4586depcc="$CC" am_compiler_list= 4587 4588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4589printf %s "checking dependency style of $depcc... " >&6; } 4590if test ${am_cv_CC_dependencies_compiler_type+y} 4591then : 4592 printf %s "(cached) " >&6 4593else $as_nop 4594 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4595 # We make a subdir and do the tests there. Otherwise we can end up 4596 # making bogus files that we don't know about and never remove. For 4597 # instance it was reported that on HP-UX the gcc test will end up 4598 # making a dummy file named 'D' -- because '-MD' means "put the output 4599 # in D". 4600 rm -rf conftest.dir 4601 mkdir conftest.dir 4602 # Copy depcomp to subdir because otherwise we won't find it if we're 4603 # using a relative directory. 4604 cp "$am_depcomp" conftest.dir 4605 cd conftest.dir 4606 # We will build objects and dependencies in a subdirectory because 4607 # it helps to detect inapplicable dependency modes. For instance 4608 # both Tru64's cc and ICC support -MD to output dependencies as a 4609 # side effect of compilation, but ICC will put the dependencies in 4610 # the current directory while Tru64 will put them in the object 4611 # directory. 4612 mkdir sub 4613 4614 am_cv_CC_dependencies_compiler_type=none 4615 if test "$am_compiler_list" = ""; then 4616 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4617 fi 4618 am__universal=false 4619 case " $depcc " in #( 4620 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4621 esac 4622 4623 for depmode in $am_compiler_list; do 4624 # Setup a source with many dependencies, because some compilers 4625 # like to wrap large dependency lists on column 80 (with \), and 4626 # we should not choose a depcomp mode which is confused by this. 4627 # 4628 # We need to recreate these files for each test, as the compiler may 4629 # overwrite some of them when testing with obscure command lines. 4630 # This happens at least with the AIX C compiler. 4631 : > sub/conftest.c 4632 for i in 1 2 3 4 5 6; do 4633 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4634 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4635 # Solaris 10 /bin/sh. 4636 echo '/* dummy */' > sub/conftst$i.h 4637 done 4638 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4639 4640 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4641 # mode. It turns out that the SunPro C++ compiler does not properly 4642 # handle '-M -o', and we need to detect this. Also, some Intel 4643 # versions had trouble with output in subdirs. 4644 am__obj=sub/conftest.${OBJEXT-o} 4645 am__minus_obj="-o $am__obj" 4646 case $depmode in 4647 gcc) 4648 # This depmode causes a compiler race in universal mode. 4649 test "$am__universal" = false || continue 4650 ;; 4651 nosideeffect) 4652 # After this tag, mechanisms are not by side-effect, so they'll 4653 # only be used when explicitly requested. 4654 if test "x$enable_dependency_tracking" = xyes; then 4655 continue 4656 else 4657 break 4658 fi 4659 ;; 4660 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4661 # This compiler won't grok '-c -o', but also, the minuso test has 4662 # not run yet. These depmodes are late enough in the game, and 4663 # so weak that their functioning should not be impacted. 4664 am__obj=conftest.${OBJEXT-o} 4665 am__minus_obj= 4666 ;; 4667 none) break ;; 4668 esac 4669 if depmode=$depmode \ 4670 source=sub/conftest.c object=$am__obj \ 4671 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4672 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4673 >/dev/null 2>conftest.err && 4674 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4675 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4676 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4677 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4678 # icc doesn't choke on unknown options, it will just issue warnings 4679 # or remarks (even with -Werror). So we grep stderr for any message 4680 # that says an option was ignored or not supported. 4681 # When given -MP, icc 7.0 and 7.1 complain thusly: 4682 # icc: Command line warning: ignoring option '-M'; no argument required 4683 # The diagnosis changed in icc 8.0: 4684 # icc: Command line remark: option '-MP' not supported 4685 if (grep 'ignoring option' conftest.err || 4686 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4687 am_cv_CC_dependencies_compiler_type=$depmode 4688 break 4689 fi 4690 fi 4691 done 4692 4693 cd .. 4694 rm -rf conftest.dir 4695else 4696 am_cv_CC_dependencies_compiler_type=none 4697fi 4698 4699fi 4700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4701printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4702CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4703 4704 if 4705 test "x$enable_dependency_tracking" != xno \ 4706 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4707 am__fastdepCC_TRUE= 4708 am__fastdepCC_FALSE='#' 4709else 4710 am__fastdepCC_TRUE='#' 4711 am__fastdepCC_FALSE= 4712fi 4713 4714 4715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4716printf %s "checking for a sed that does not truncate output... " >&6; } 4717if test ${ac_cv_path_SED+y} 4718then : 4719 printf %s "(cached) " >&6 4720else $as_nop 4721 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4722 for ac_i in 1 2 3 4 5 6 7; do 4723 ac_script="$ac_script$as_nl$ac_script" 4724 done 4725 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4726 { ac_script=; unset ac_script;} 4727 if test -z "$SED"; then 4728 ac_path_SED_found=false 4729 # Loop through the user's path and test for each of PROGNAME-LIST 4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4731for as_dir in $PATH 4732do 4733 IFS=$as_save_IFS 4734 case $as_dir in #((( 4735 '') as_dir=./ ;; 4736 */) ;; 4737 *) as_dir=$as_dir/ ;; 4738 esac 4739 for ac_prog in sed gsed 4740 do 4741 for ac_exec_ext in '' $ac_executable_extensions; do 4742 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4743 as_fn_executable_p "$ac_path_SED" || continue 4744# Check for GNU ac_path_SED and select it if it is found. 4745 # Check for GNU $ac_path_SED 4746case `"$ac_path_SED" --version 2>&1` in 4747*GNU*) 4748 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4749*) 4750 ac_count=0 4751 printf %s 0123456789 >"conftest.in" 4752 while : 4753 do 4754 cat "conftest.in" "conftest.in" >"conftest.tmp" 4755 mv "conftest.tmp" "conftest.in" 4756 cp "conftest.in" "conftest.nl" 4757 printf "%s\n" '' >> "conftest.nl" 4758 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4759 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4760 as_fn_arith $ac_count + 1 && ac_count=$as_val 4761 if test $ac_count -gt ${ac_path_SED_max-0}; then 4762 # Best one so far, save it but keep looking for a better one 4763 ac_cv_path_SED="$ac_path_SED" 4764 ac_path_SED_max=$ac_count 4765 fi 4766 # 10*(2^10) chars as input seems more than enough 4767 test $ac_count -gt 10 && break 4768 done 4769 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4770esac 4771 4772 $ac_path_SED_found && break 3 4773 done 4774 done 4775 done 4776IFS=$as_save_IFS 4777 if test -z "$ac_cv_path_SED"; then 4778 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4779 fi 4780else 4781 ac_cv_path_SED=$SED 4782fi 4783 4784fi 4785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4786printf "%s\n" "$ac_cv_path_SED" >&6; } 4787 SED="$ac_cv_path_SED" 4788 rm -f conftest.sed 4789 4790test -z "$SED" && SED=sed 4791Xsed="$SED -e 1s/^X//" 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4804printf %s "checking for grep that handles long lines and -e... " >&6; } 4805if test ${ac_cv_path_GREP+y} 4806then : 4807 printf %s "(cached) " >&6 4808else $as_nop 4809 if test -z "$GREP"; then 4810 ac_path_GREP_found=false 4811 # Loop through the user's path and test for each of PROGNAME-LIST 4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4813for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4814do 4815 IFS=$as_save_IFS 4816 case $as_dir in #((( 4817 '') as_dir=./ ;; 4818 */) ;; 4819 *) as_dir=$as_dir/ ;; 4820 esac 4821 for ac_prog in grep ggrep 4822 do 4823 for ac_exec_ext in '' $ac_executable_extensions; do 4824 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4825 as_fn_executable_p "$ac_path_GREP" || continue 4826# Check for GNU ac_path_GREP and select it if it is found. 4827 # Check for GNU $ac_path_GREP 4828case `"$ac_path_GREP" --version 2>&1` in 4829*GNU*) 4830 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4831*) 4832 ac_count=0 4833 printf %s 0123456789 >"conftest.in" 4834 while : 4835 do 4836 cat "conftest.in" "conftest.in" >"conftest.tmp" 4837 mv "conftest.tmp" "conftest.in" 4838 cp "conftest.in" "conftest.nl" 4839 printf "%s\n" 'GREP' >> "conftest.nl" 4840 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4841 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4842 as_fn_arith $ac_count + 1 && ac_count=$as_val 4843 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4844 # Best one so far, save it but keep looking for a better one 4845 ac_cv_path_GREP="$ac_path_GREP" 4846 ac_path_GREP_max=$ac_count 4847 fi 4848 # 10*(2^10) chars as input seems more than enough 4849 test $ac_count -gt 10 && break 4850 done 4851 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4852esac 4853 4854 $ac_path_GREP_found && break 3 4855 done 4856 done 4857 done 4858IFS=$as_save_IFS 4859 if test -z "$ac_cv_path_GREP"; then 4860 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4861 fi 4862else 4863 ac_cv_path_GREP=$GREP 4864fi 4865 4866fi 4867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4868printf "%s\n" "$ac_cv_path_GREP" >&6; } 4869 GREP="$ac_cv_path_GREP" 4870 4871 4872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4873printf %s "checking for egrep... " >&6; } 4874if test ${ac_cv_path_EGREP+y} 4875then : 4876 printf %s "(cached) " >&6 4877else $as_nop 4878 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4879 then ac_cv_path_EGREP="$GREP -E" 4880 else 4881 if test -z "$EGREP"; then 4882 ac_path_EGREP_found=false 4883 # Loop through the user's path and test for each of PROGNAME-LIST 4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4885for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4886do 4887 IFS=$as_save_IFS 4888 case $as_dir in #((( 4889 '') as_dir=./ ;; 4890 */) ;; 4891 *) as_dir=$as_dir/ ;; 4892 esac 4893 for ac_prog in egrep 4894 do 4895 for ac_exec_ext in '' $ac_executable_extensions; do 4896 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 4897 as_fn_executable_p "$ac_path_EGREP" || continue 4898# Check for GNU ac_path_EGREP and select it if it is found. 4899 # Check for GNU $ac_path_EGREP 4900case `"$ac_path_EGREP" --version 2>&1` in 4901*GNU*) 4902 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4903*) 4904 ac_count=0 4905 printf %s 0123456789 >"conftest.in" 4906 while : 4907 do 4908 cat "conftest.in" "conftest.in" >"conftest.tmp" 4909 mv "conftest.tmp" "conftest.in" 4910 cp "conftest.in" "conftest.nl" 4911 printf "%s\n" 'EGREP' >> "conftest.nl" 4912 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4913 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4914 as_fn_arith $ac_count + 1 && ac_count=$as_val 4915 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4916 # Best one so far, save it but keep looking for a better one 4917 ac_cv_path_EGREP="$ac_path_EGREP" 4918 ac_path_EGREP_max=$ac_count 4919 fi 4920 # 10*(2^10) chars as input seems more than enough 4921 test $ac_count -gt 10 && break 4922 done 4923 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4924esac 4925 4926 $ac_path_EGREP_found && break 3 4927 done 4928 done 4929 done 4930IFS=$as_save_IFS 4931 if test -z "$ac_cv_path_EGREP"; then 4932 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4933 fi 4934else 4935 ac_cv_path_EGREP=$EGREP 4936fi 4937 4938 fi 4939fi 4940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4941printf "%s\n" "$ac_cv_path_EGREP" >&6; } 4942 EGREP="$ac_cv_path_EGREP" 4943 4944 4945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4946printf %s "checking for fgrep... " >&6; } 4947if test ${ac_cv_path_FGREP+y} 4948then : 4949 printf %s "(cached) " >&6 4950else $as_nop 4951 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4952 then ac_cv_path_FGREP="$GREP -F" 4953 else 4954 if test -z "$FGREP"; then 4955 ac_path_FGREP_found=false 4956 # Loop through the user's path and test for each of PROGNAME-LIST 4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4958for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4959do 4960 IFS=$as_save_IFS 4961 case $as_dir in #((( 4962 '') as_dir=./ ;; 4963 */) ;; 4964 *) as_dir=$as_dir/ ;; 4965 esac 4966 for ac_prog in fgrep 4967 do 4968 for ac_exec_ext in '' $ac_executable_extensions; do 4969 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 4970 as_fn_executable_p "$ac_path_FGREP" || continue 4971# Check for GNU ac_path_FGREP and select it if it is found. 4972 # Check for GNU $ac_path_FGREP 4973case `"$ac_path_FGREP" --version 2>&1` in 4974*GNU*) 4975 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4976*) 4977 ac_count=0 4978 printf %s 0123456789 >"conftest.in" 4979 while : 4980 do 4981 cat "conftest.in" "conftest.in" >"conftest.tmp" 4982 mv "conftest.tmp" "conftest.in" 4983 cp "conftest.in" "conftest.nl" 4984 printf "%s\n" 'FGREP' >> "conftest.nl" 4985 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4986 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4987 as_fn_arith $ac_count + 1 && ac_count=$as_val 4988 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4989 # Best one so far, save it but keep looking for a better one 4990 ac_cv_path_FGREP="$ac_path_FGREP" 4991 ac_path_FGREP_max=$ac_count 4992 fi 4993 # 10*(2^10) chars as input seems more than enough 4994 test $ac_count -gt 10 && break 4995 done 4996 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4997esac 4998 4999 $ac_path_FGREP_found && break 3 5000 done 5001 done 5002 done 5003IFS=$as_save_IFS 5004 if test -z "$ac_cv_path_FGREP"; then 5005 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5006 fi 5007else 5008 ac_cv_path_FGREP=$FGREP 5009fi 5010 5011 fi 5012fi 5013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5014printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5015 FGREP="$ac_cv_path_FGREP" 5016 5017 5018test -z "$GREP" && GREP=grep 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038# Check whether --with-gnu-ld was given. 5039if test ${with_gnu_ld+y} 5040then : 5041 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5042else $as_nop 5043 with_gnu_ld=no 5044fi 5045 5046ac_prog=ld 5047if test yes = "$GCC"; then 5048 # Check if gcc -print-prog-name=ld gives a path. 5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5050printf %s "checking for ld used by $CC... " >&6; } 5051 case $host in 5052 *-*-mingw*) 5053 # gcc leaves a trailing carriage return, which upsets mingw 5054 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5055 *) 5056 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5057 esac 5058 case $ac_prog in 5059 # Accept absolute paths. 5060 [\\/]* | ?:[\\/]*) 5061 re_direlt='/[^/][^/]*/\.\./' 5062 # Canonicalize the pathname of ld 5063 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5064 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5065 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5066 done 5067 test -z "$LD" && LD=$ac_prog 5068 ;; 5069 "") 5070 # If it fails, then pretend we aren't using GCC. 5071 ac_prog=ld 5072 ;; 5073 *) 5074 # If it is relative, then search for the first ld in PATH. 5075 with_gnu_ld=unknown 5076 ;; 5077 esac 5078elif test yes = "$with_gnu_ld"; then 5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5080printf %s "checking for GNU ld... " >&6; } 5081else 5082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5083printf %s "checking for non-GNU ld... " >&6; } 5084fi 5085if test ${lt_cv_path_LD+y} 5086then : 5087 printf %s "(cached) " >&6 5088else $as_nop 5089 if test -z "$LD"; then 5090 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5091 for ac_dir in $PATH; do 5092 IFS=$lt_save_ifs 5093 test -z "$ac_dir" && ac_dir=. 5094 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5095 lt_cv_path_LD=$ac_dir/$ac_prog 5096 # Check to see if the program is GNU ld. I'd rather use --version, 5097 # but apparently some variants of GNU ld only accept -v. 5098 # Break only if it was the GNU/non-GNU ld that we prefer. 5099 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5100 *GNU* | *'with BFD'*) 5101 test no != "$with_gnu_ld" && break 5102 ;; 5103 *) 5104 test yes != "$with_gnu_ld" && break 5105 ;; 5106 esac 5107 fi 5108 done 5109 IFS=$lt_save_ifs 5110else 5111 lt_cv_path_LD=$LD # Let the user override the test with a path. 5112fi 5113fi 5114 5115LD=$lt_cv_path_LD 5116if test -n "$LD"; then 5117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5118printf "%s\n" "$LD" >&6; } 5119else 5120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5121printf "%s\n" "no" >&6; } 5122fi 5123test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5125printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5126if test ${lt_cv_prog_gnu_ld+y} 5127then : 5128 printf %s "(cached) " >&6 5129else $as_nop 5130 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5131case `$LD -v 2>&1 </dev/null` in 5132*GNU* | *'with BFD'*) 5133 lt_cv_prog_gnu_ld=yes 5134 ;; 5135*) 5136 lt_cv_prog_gnu_ld=no 5137 ;; 5138esac 5139fi 5140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5141printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5142with_gnu_ld=$lt_cv_prog_gnu_ld 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5153printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5154if test ${lt_cv_path_NM+y} 5155then : 5156 printf %s "(cached) " >&6 5157else $as_nop 5158 if test -n "$NM"; then 5159 # Let the user override the test. 5160 lt_cv_path_NM=$NM 5161else 5162 lt_nm_to_check=${ac_tool_prefix}nm 5163 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5164 lt_nm_to_check="$lt_nm_to_check nm" 5165 fi 5166 for lt_tmp_nm in $lt_nm_to_check; do 5167 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5168 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5169 IFS=$lt_save_ifs 5170 test -z "$ac_dir" && ac_dir=. 5171 tmp_nm=$ac_dir/$lt_tmp_nm 5172 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5173 # Check to see if the nm accepts a BSD-compat flag. 5174 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5175 # nm: unknown option "B" ignored 5176 # Tru64's nm complains that /dev/null is an invalid object file 5177 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5178 case $build_os in 5179 mingw*) lt_bad_file=conftest.nm/nofile ;; 5180 *) lt_bad_file=/dev/null ;; 5181 esac 5182 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5183 *$lt_bad_file* | *'Invalid file or object type'*) 5184 lt_cv_path_NM="$tmp_nm -B" 5185 break 2 5186 ;; 5187 *) 5188 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5189 */dev/null*) 5190 lt_cv_path_NM="$tmp_nm -p" 5191 break 2 5192 ;; 5193 *) 5194 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5195 continue # so that we can try to find one that supports BSD flags 5196 ;; 5197 esac 5198 ;; 5199 esac 5200 fi 5201 done 5202 IFS=$lt_save_ifs 5203 done 5204 : ${lt_cv_path_NM=no} 5205fi 5206fi 5207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5208printf "%s\n" "$lt_cv_path_NM" >&6; } 5209if test no != "$lt_cv_path_NM"; then 5210 NM=$lt_cv_path_NM 5211else 5212 # Didn't find any BSD compatible name lister, look for dumpbin. 5213 if test -n "$DUMPBIN"; then : 5214 # Let the user override the test. 5215 else 5216 if test -n "$ac_tool_prefix"; then 5217 for ac_prog in dumpbin "link -dump" 5218 do 5219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5220set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5222printf %s "checking for $ac_word... " >&6; } 5223if test ${ac_cv_prog_DUMPBIN+y} 5224then : 5225 printf %s "(cached) " >&6 5226else $as_nop 5227 if test -n "$DUMPBIN"; then 5228 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5229else 5230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5231for as_dir in $PATH 5232do 5233 IFS=$as_save_IFS 5234 case $as_dir in #((( 5235 '') as_dir=./ ;; 5236 */) ;; 5237 *) as_dir=$as_dir/ ;; 5238 esac 5239 for ac_exec_ext in '' $ac_executable_extensions; do 5240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5241 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5243 break 2 5244 fi 5245done 5246 done 5247IFS=$as_save_IFS 5248 5249fi 5250fi 5251DUMPBIN=$ac_cv_prog_DUMPBIN 5252if test -n "$DUMPBIN"; then 5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5254printf "%s\n" "$DUMPBIN" >&6; } 5255else 5256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5257printf "%s\n" "no" >&6; } 5258fi 5259 5260 5261 test -n "$DUMPBIN" && break 5262 done 5263fi 5264if test -z "$DUMPBIN"; then 5265 ac_ct_DUMPBIN=$DUMPBIN 5266 for ac_prog in dumpbin "link -dump" 5267do 5268 # Extract the first word of "$ac_prog", so it can be a program name with args. 5269set dummy $ac_prog; ac_word=$2 5270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5271printf %s "checking for $ac_word... " >&6; } 5272if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5273then : 5274 printf %s "(cached) " >&6 5275else $as_nop 5276 if test -n "$ac_ct_DUMPBIN"; then 5277 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5278else 5279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5280for as_dir in $PATH 5281do 5282 IFS=$as_save_IFS 5283 case $as_dir in #((( 5284 '') as_dir=./ ;; 5285 */) ;; 5286 *) as_dir=$as_dir/ ;; 5287 esac 5288 for ac_exec_ext in '' $ac_executable_extensions; do 5289 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5290 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5292 break 2 5293 fi 5294done 5295 done 5296IFS=$as_save_IFS 5297 5298fi 5299fi 5300ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5301if test -n "$ac_ct_DUMPBIN"; then 5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5303printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5304else 5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5306printf "%s\n" "no" >&6; } 5307fi 5308 5309 5310 test -n "$ac_ct_DUMPBIN" && break 5311done 5312 5313 if test "x$ac_ct_DUMPBIN" = x; then 5314 DUMPBIN=":" 5315 else 5316 case $cross_compiling:$ac_tool_warned in 5317yes:) 5318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5319printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5320ac_tool_warned=yes ;; 5321esac 5322 DUMPBIN=$ac_ct_DUMPBIN 5323 fi 5324fi 5325 5326 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5327 *COFF*) 5328 DUMPBIN="$DUMPBIN -symbols -headers" 5329 ;; 5330 *) 5331 DUMPBIN=: 5332 ;; 5333 esac 5334 fi 5335 5336 if test : != "$DUMPBIN"; then 5337 NM=$DUMPBIN 5338 fi 5339fi 5340test -z "$NM" && NM=nm 5341 5342 5343 5344 5345 5346 5347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5348printf %s "checking the name lister ($NM) interface... " >&6; } 5349if test ${lt_cv_nm_interface+y} 5350then : 5351 printf %s "(cached) " >&6 5352else $as_nop 5353 lt_cv_nm_interface="BSD nm" 5354 echo "int some_variable = 0;" > conftest.$ac_ext 5355 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5356 (eval "$ac_compile" 2>conftest.err) 5357 cat conftest.err >&5 5358 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5359 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5360 cat conftest.err >&5 5361 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5362 cat conftest.out >&5 5363 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5364 lt_cv_nm_interface="MS dumpbin" 5365 fi 5366 rm -f conftest* 5367fi 5368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5369printf "%s\n" "$lt_cv_nm_interface" >&6; } 5370 5371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5372printf %s "checking whether ln -s works... " >&6; } 5373LN_S=$as_ln_s 5374if test "$LN_S" = "ln -s"; then 5375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5376printf "%s\n" "yes" >&6; } 5377else 5378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5379printf "%s\n" "no, using $LN_S" >&6; } 5380fi 5381 5382# find the maximum length of command line arguments 5383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5384printf %s "checking the maximum length of command line arguments... " >&6; } 5385if test ${lt_cv_sys_max_cmd_len+y} 5386then : 5387 printf %s "(cached) " >&6 5388else $as_nop 5389 i=0 5390 teststring=ABCD 5391 5392 case $build_os in 5393 msdosdjgpp*) 5394 # On DJGPP, this test can blow up pretty badly due to problems in libc 5395 # (any single argument exceeding 2000 bytes causes a buffer overrun 5396 # during glob expansion). Even if it were fixed, the result of this 5397 # check would be larger than it should be. 5398 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5399 ;; 5400 5401 gnu*) 5402 # Under GNU Hurd, this test is not required because there is 5403 # no limit to the length of command line arguments. 5404 # Libtool will interpret -1 as no limit whatsoever 5405 lt_cv_sys_max_cmd_len=-1; 5406 ;; 5407 5408 cygwin* | mingw* | cegcc*) 5409 # On Win9x/ME, this test blows up -- it succeeds, but takes 5410 # about 5 minutes as the teststring grows exponentially. 5411 # Worse, since 9x/ME are not pre-emptively multitasking, 5412 # you end up with a "frozen" computer, even though with patience 5413 # the test eventually succeeds (with a max line length of 256k). 5414 # Instead, let's just punt: use the minimum linelength reported by 5415 # all of the supported platforms: 8192 (on NT/2K/XP). 5416 lt_cv_sys_max_cmd_len=8192; 5417 ;; 5418 5419 mint*) 5420 # On MiNT this can take a long time and run out of memory. 5421 lt_cv_sys_max_cmd_len=8192; 5422 ;; 5423 5424 amigaos*) 5425 # On AmigaOS with pdksh, this test takes hours, literally. 5426 # So we just punt and use a minimum line length of 8192. 5427 lt_cv_sys_max_cmd_len=8192; 5428 ;; 5429 5430 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5431 # This has been around since 386BSD, at least. Likely further. 5432 if test -x /sbin/sysctl; then 5433 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5434 elif test -x /usr/sbin/sysctl; then 5435 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5436 else 5437 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5438 fi 5439 # And add a safety zone 5440 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5441 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5442 ;; 5443 5444 interix*) 5445 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5446 lt_cv_sys_max_cmd_len=196608 5447 ;; 5448 5449 os2*) 5450 # The test takes a long time on OS/2. 5451 lt_cv_sys_max_cmd_len=8192 5452 ;; 5453 5454 osf*) 5455 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5456 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5457 # nice to cause kernel panics so lets avoid the loop below. 5458 # First set a reasonable default. 5459 lt_cv_sys_max_cmd_len=16384 5460 # 5461 if test -x /sbin/sysconfig; then 5462 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5463 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5464 esac 5465 fi 5466 ;; 5467 sco3.2v5*) 5468 lt_cv_sys_max_cmd_len=102400 5469 ;; 5470 sysv5* | sco5v6* | sysv4.2uw2*) 5471 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5472 if test -n "$kargmax"; then 5473 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5474 else 5475 lt_cv_sys_max_cmd_len=32768 5476 fi 5477 ;; 5478 *) 5479 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5480 if test -n "$lt_cv_sys_max_cmd_len" && \ 5481 test undefined != "$lt_cv_sys_max_cmd_len"; then 5482 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5483 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5484 else 5485 # Make teststring a little bigger before we do anything with it. 5486 # a 1K string should be a reasonable start. 5487 for i in 1 2 3 4 5 6 7 8; do 5488 teststring=$teststring$teststring 5489 done 5490 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5491 # If test is not a shell built-in, we'll probably end up computing a 5492 # maximum length that is only half of the actual maximum length, but 5493 # we can't tell. 5494 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5495 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5496 test 17 != "$i" # 1/2 MB should be enough 5497 do 5498 i=`expr $i + 1` 5499 teststring=$teststring$teststring 5500 done 5501 # Only check the string length outside the loop. 5502 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5503 teststring= 5504 # Add a significant safety factor because C++ compilers can tack on 5505 # massive amounts of additional arguments before passing them to the 5506 # linker. It appears as though 1/2 is a usable value. 5507 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5508 fi 5509 ;; 5510 esac 5511 5512fi 5513 5514if test -n "$lt_cv_sys_max_cmd_len"; then 5515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5516printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5517else 5518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5519printf "%s\n" "none" >&6; } 5520fi 5521max_cmd_len=$lt_cv_sys_max_cmd_len 5522 5523 5524 5525 5526 5527 5528: ${CP="cp -f"} 5529: ${MV="mv -f"} 5530: ${RM="rm -f"} 5531 5532if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5533 lt_unset=unset 5534else 5535 lt_unset=false 5536fi 5537 5538 5539 5540 5541 5542# test EBCDIC or ASCII 5543case `echo X|tr X '\101'` in 5544 A) # ASCII based system 5545 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5546 lt_SP2NL='tr \040 \012' 5547 lt_NL2SP='tr \015\012 \040\040' 5548 ;; 5549 *) # EBCDIC based system 5550 lt_SP2NL='tr \100 \n' 5551 lt_NL2SP='tr \r\n \100\100' 5552 ;; 5553esac 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5564printf %s "checking how to convert $build file names to $host format... " >&6; } 5565if test ${lt_cv_to_host_file_cmd+y} 5566then : 5567 printf %s "(cached) " >&6 5568else $as_nop 5569 case $host in 5570 *-*-mingw* ) 5571 case $build in 5572 *-*-mingw* ) # actually msys 5573 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5574 ;; 5575 *-*-cygwin* ) 5576 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5577 ;; 5578 * ) # otherwise, assume *nix 5579 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5580 ;; 5581 esac 5582 ;; 5583 *-*-cygwin* ) 5584 case $build in 5585 *-*-mingw* ) # actually msys 5586 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5587 ;; 5588 *-*-cygwin* ) 5589 lt_cv_to_host_file_cmd=func_convert_file_noop 5590 ;; 5591 * ) # otherwise, assume *nix 5592 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5593 ;; 5594 esac 5595 ;; 5596 * ) # unhandled hosts (and "normal" native builds) 5597 lt_cv_to_host_file_cmd=func_convert_file_noop 5598 ;; 5599esac 5600 5601fi 5602 5603to_host_file_cmd=$lt_cv_to_host_file_cmd 5604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5605printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5606 5607 5608 5609 5610 5611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5612printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5613if test ${lt_cv_to_tool_file_cmd+y} 5614then : 5615 printf %s "(cached) " >&6 5616else $as_nop 5617 #assume ordinary cross tools, or native build. 5618lt_cv_to_tool_file_cmd=func_convert_file_noop 5619case $host in 5620 *-*-mingw* ) 5621 case $build in 5622 *-*-mingw* ) # actually msys 5623 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5624 ;; 5625 esac 5626 ;; 5627esac 5628 5629fi 5630 5631to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5633printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5634 5635 5636 5637 5638 5639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5640printf %s "checking for $LD option to reload object files... " >&6; } 5641if test ${lt_cv_ld_reload_flag+y} 5642then : 5643 printf %s "(cached) " >&6 5644else $as_nop 5645 lt_cv_ld_reload_flag='-r' 5646fi 5647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5648printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5649reload_flag=$lt_cv_ld_reload_flag 5650case $reload_flag in 5651"" | " "*) ;; 5652*) reload_flag=" $reload_flag" ;; 5653esac 5654reload_cmds='$LD$reload_flag -o $output$reload_objs' 5655case $host_os in 5656 cygwin* | mingw* | pw32* | cegcc*) 5657 if test yes != "$GCC"; then 5658 reload_cmds=false 5659 fi 5660 ;; 5661 darwin*) 5662 if test yes = "$GCC"; then 5663 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5664 else 5665 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5666 fi 5667 ;; 5668esac 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678if test -n "$ac_tool_prefix"; then 5679 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5680set dummy ${ac_tool_prefix}file; ac_word=$2 5681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5682printf %s "checking for $ac_word... " >&6; } 5683if test ${ac_cv_prog_FILECMD+y} 5684then : 5685 printf %s "(cached) " >&6 5686else $as_nop 5687 if test -n "$FILECMD"; then 5688 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5689else 5690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5691for as_dir in $PATH 5692do 5693 IFS=$as_save_IFS 5694 case $as_dir in #((( 5695 '') as_dir=./ ;; 5696 */) ;; 5697 *) as_dir=$as_dir/ ;; 5698 esac 5699 for ac_exec_ext in '' $ac_executable_extensions; do 5700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5701 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 5702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5703 break 2 5704 fi 5705done 5706 done 5707IFS=$as_save_IFS 5708 5709fi 5710fi 5711FILECMD=$ac_cv_prog_FILECMD 5712if test -n "$FILECMD"; then 5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5714printf "%s\n" "$FILECMD" >&6; } 5715else 5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5717printf "%s\n" "no" >&6; } 5718fi 5719 5720 5721fi 5722if test -z "$ac_cv_prog_FILECMD"; then 5723 ac_ct_FILECMD=$FILECMD 5724 # Extract the first word of "file", so it can be a program name with args. 5725set dummy file; ac_word=$2 5726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5727printf %s "checking for $ac_word... " >&6; } 5728if test ${ac_cv_prog_ac_ct_FILECMD+y} 5729then : 5730 printf %s "(cached) " >&6 5731else $as_nop 5732 if test -n "$ac_ct_FILECMD"; then 5733 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 5734else 5735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5736for as_dir in $PATH 5737do 5738 IFS=$as_save_IFS 5739 case $as_dir in #((( 5740 '') as_dir=./ ;; 5741 */) ;; 5742 *) as_dir=$as_dir/ ;; 5743 esac 5744 for ac_exec_ext in '' $ac_executable_extensions; do 5745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5746 ac_cv_prog_ac_ct_FILECMD="file" 5747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5748 break 2 5749 fi 5750done 5751 done 5752IFS=$as_save_IFS 5753 5754fi 5755fi 5756ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 5757if test -n "$ac_ct_FILECMD"; then 5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 5759printf "%s\n" "$ac_ct_FILECMD" >&6; } 5760else 5761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5762printf "%s\n" "no" >&6; } 5763fi 5764 5765 if test "x$ac_ct_FILECMD" = x; then 5766 FILECMD=":" 5767 else 5768 case $cross_compiling:$ac_tool_warned in 5769yes:) 5770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5771printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5772ac_tool_warned=yes ;; 5773esac 5774 FILECMD=$ac_ct_FILECMD 5775 fi 5776else 5777 FILECMD="$ac_cv_prog_FILECMD" 5778fi 5779 5780 5781 5782 5783 5784 5785 5786if test -n "$ac_tool_prefix"; then 5787 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5788set dummy ${ac_tool_prefix}objdump; ac_word=$2 5789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5790printf %s "checking for $ac_word... " >&6; } 5791if test ${ac_cv_prog_OBJDUMP+y} 5792then : 5793 printf %s "(cached) " >&6 5794else $as_nop 5795 if test -n "$OBJDUMP"; then 5796 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5797else 5798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5799for as_dir in $PATH 5800do 5801 IFS=$as_save_IFS 5802 case $as_dir in #((( 5803 '') as_dir=./ ;; 5804 */) ;; 5805 *) as_dir=$as_dir/ ;; 5806 esac 5807 for ac_exec_ext in '' $ac_executable_extensions; do 5808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5809 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5811 break 2 5812 fi 5813done 5814 done 5815IFS=$as_save_IFS 5816 5817fi 5818fi 5819OBJDUMP=$ac_cv_prog_OBJDUMP 5820if test -n "$OBJDUMP"; then 5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5822printf "%s\n" "$OBJDUMP" >&6; } 5823else 5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5825printf "%s\n" "no" >&6; } 5826fi 5827 5828 5829fi 5830if test -z "$ac_cv_prog_OBJDUMP"; then 5831 ac_ct_OBJDUMP=$OBJDUMP 5832 # Extract the first word of "objdump", so it can be a program name with args. 5833set dummy objdump; ac_word=$2 5834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5835printf %s "checking for $ac_word... " >&6; } 5836if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5837then : 5838 printf %s "(cached) " >&6 5839else $as_nop 5840 if test -n "$ac_ct_OBJDUMP"; then 5841 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5842else 5843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5844for as_dir in $PATH 5845do 5846 IFS=$as_save_IFS 5847 case $as_dir in #((( 5848 '') as_dir=./ ;; 5849 */) ;; 5850 *) as_dir=$as_dir/ ;; 5851 esac 5852 for ac_exec_ext in '' $ac_executable_extensions; do 5853 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5854 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5856 break 2 5857 fi 5858done 5859 done 5860IFS=$as_save_IFS 5861 5862fi 5863fi 5864ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5865if test -n "$ac_ct_OBJDUMP"; then 5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5867printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5868else 5869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5870printf "%s\n" "no" >&6; } 5871fi 5872 5873 if test "x$ac_ct_OBJDUMP" = x; then 5874 OBJDUMP="false" 5875 else 5876 case $cross_compiling:$ac_tool_warned in 5877yes:) 5878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5879printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5880ac_tool_warned=yes ;; 5881esac 5882 OBJDUMP=$ac_ct_OBJDUMP 5883 fi 5884else 5885 OBJDUMP="$ac_cv_prog_OBJDUMP" 5886fi 5887 5888test -z "$OBJDUMP" && OBJDUMP=objdump 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5899printf %s "checking how to recognize dependent libraries... " >&6; } 5900if test ${lt_cv_deplibs_check_method+y} 5901then : 5902 printf %s "(cached) " >&6 5903else $as_nop 5904 lt_cv_file_magic_cmd='$MAGIC_CMD' 5905lt_cv_file_magic_test_file= 5906lt_cv_deplibs_check_method='unknown' 5907# Need to set the preceding variable on all platforms that support 5908# interlibrary dependencies. 5909# 'none' -- dependencies not supported. 5910# 'unknown' -- same as none, but documents that we really don't know. 5911# 'pass_all' -- all dependencies passed with no checks. 5912# 'test_compile' -- check by making test program. 5913# 'file_magic [[regex]]' -- check by looking for files in library path 5914# that responds to the $file_magic_cmd with a given extended regex. 5915# If you have 'file' or equivalent on your system and you're not sure 5916# whether 'pass_all' will *always* work, you probably want this one. 5917 5918case $host_os in 5919aix[4-9]*) 5920 lt_cv_deplibs_check_method=pass_all 5921 ;; 5922 5923beos*) 5924 lt_cv_deplibs_check_method=pass_all 5925 ;; 5926 5927bsdi[45]*) 5928 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5929 lt_cv_file_magic_cmd='$FILECMD -L' 5930 lt_cv_file_magic_test_file=/shlib/libc.so 5931 ;; 5932 5933cygwin*) 5934 # func_win32_libid is a shell function defined in ltmain.sh 5935 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5936 lt_cv_file_magic_cmd='func_win32_libid' 5937 ;; 5938 5939mingw* | pw32*) 5940 # Base MSYS/MinGW do not provide the 'file' command needed by 5941 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5942 # unless we find 'file', for example because we are cross-compiling. 5943 if ( file / ) >/dev/null 2>&1; then 5944 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5945 lt_cv_file_magic_cmd='func_win32_libid' 5946 else 5947 # Keep this pattern in sync with the one in func_win32_libid. 5948 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5949 lt_cv_file_magic_cmd='$OBJDUMP -f' 5950 fi 5951 ;; 5952 5953cegcc*) 5954 # use the weaker test based on 'objdump'. See mingw*. 5955 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5956 lt_cv_file_magic_cmd='$OBJDUMP -f' 5957 ;; 5958 5959darwin* | rhapsody*) 5960 lt_cv_deplibs_check_method=pass_all 5961 ;; 5962 5963freebsd* | dragonfly* | midnightbsd*) 5964 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5965 case $host_cpu in 5966 i*86 ) 5967 # Not sure whether the presence of OpenBSD here was a mistake. 5968 # Let's accept both of them until this is cleared up. 5969 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5970 lt_cv_file_magic_cmd=$FILECMD 5971 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5972 ;; 5973 esac 5974 else 5975 lt_cv_deplibs_check_method=pass_all 5976 fi 5977 ;; 5978 5979haiku*) 5980 lt_cv_deplibs_check_method=pass_all 5981 ;; 5982 5983hpux10.20* | hpux11*) 5984 lt_cv_file_magic_cmd=$FILECMD 5985 case $host_cpu in 5986 ia64*) 5987 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5988 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5989 ;; 5990 hppa*64*) 5991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 5992 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5993 ;; 5994 *) 5995 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5996 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5997 ;; 5998 esac 5999 ;; 6000 6001interix[3-9]*) 6002 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6004 ;; 6005 6006irix5* | irix6* | nonstopux*) 6007 case $LD in 6008 *-32|*"-32 ") libmagic=32-bit;; 6009 *-n32|*"-n32 ") libmagic=N32;; 6010 *-64|*"-64 ") libmagic=64-bit;; 6011 *) libmagic=never-match;; 6012 esac 6013 lt_cv_deplibs_check_method=pass_all 6014 ;; 6015 6016# This must be glibc/ELF. 6017linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6018 lt_cv_deplibs_check_method=pass_all 6019 ;; 6020 6021netbsd*) 6022 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6024 else 6025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6026 fi 6027 ;; 6028 6029newos6*) 6030 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6031 lt_cv_file_magic_cmd=$FILECMD 6032 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6033 ;; 6034 6035*nto* | *qnx*) 6036 lt_cv_deplibs_check_method=pass_all 6037 ;; 6038 6039openbsd* | bitrig*) 6040 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6041 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6042 else 6043 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6044 fi 6045 ;; 6046 6047osf3* | osf4* | osf5*) 6048 lt_cv_deplibs_check_method=pass_all 6049 ;; 6050 6051rdos*) 6052 lt_cv_deplibs_check_method=pass_all 6053 ;; 6054 6055solaris*) 6056 lt_cv_deplibs_check_method=pass_all 6057 ;; 6058 6059sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6060 lt_cv_deplibs_check_method=pass_all 6061 ;; 6062 6063sysv4 | sysv4.3*) 6064 case $host_vendor in 6065 motorola) 6066 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 6067 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6068 ;; 6069 ncr) 6070 lt_cv_deplibs_check_method=pass_all 6071 ;; 6072 sequent) 6073 lt_cv_file_magic_cmd='/bin/file' 6074 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6075 ;; 6076 sni) 6077 lt_cv_file_magic_cmd='/bin/file' 6078 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6079 lt_cv_file_magic_test_file=/lib/libc.so 6080 ;; 6081 siemens) 6082 lt_cv_deplibs_check_method=pass_all 6083 ;; 6084 pc) 6085 lt_cv_deplibs_check_method=pass_all 6086 ;; 6087 esac 6088 ;; 6089 6090tpf*) 6091 lt_cv_deplibs_check_method=pass_all 6092 ;; 6093os2*) 6094 lt_cv_deplibs_check_method=pass_all 6095 ;; 6096esac 6097 6098fi 6099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6100printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6101 6102file_magic_glob= 6103want_nocaseglob=no 6104if test "$build" = "$host"; then 6105 case $host_os in 6106 mingw* | pw32*) 6107 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6108 want_nocaseglob=yes 6109 else 6110 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6111 fi 6112 ;; 6113 esac 6114fi 6115 6116file_magic_cmd=$lt_cv_file_magic_cmd 6117deplibs_check_method=$lt_cv_deplibs_check_method 6118test -z "$deplibs_check_method" && deplibs_check_method=unknown 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141if test -n "$ac_tool_prefix"; then 6142 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6143set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6145printf %s "checking for $ac_word... " >&6; } 6146if test ${ac_cv_prog_DLLTOOL+y} 6147then : 6148 printf %s "(cached) " >&6 6149else $as_nop 6150 if test -n "$DLLTOOL"; then 6151 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6152else 6153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6154for as_dir in $PATH 6155do 6156 IFS=$as_save_IFS 6157 case $as_dir in #((( 6158 '') as_dir=./ ;; 6159 */) ;; 6160 *) as_dir=$as_dir/ ;; 6161 esac 6162 for ac_exec_ext in '' $ac_executable_extensions; do 6163 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6164 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6166 break 2 6167 fi 6168done 6169 done 6170IFS=$as_save_IFS 6171 6172fi 6173fi 6174DLLTOOL=$ac_cv_prog_DLLTOOL 6175if test -n "$DLLTOOL"; then 6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6177printf "%s\n" "$DLLTOOL" >&6; } 6178else 6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6180printf "%s\n" "no" >&6; } 6181fi 6182 6183 6184fi 6185if test -z "$ac_cv_prog_DLLTOOL"; then 6186 ac_ct_DLLTOOL=$DLLTOOL 6187 # Extract the first word of "dlltool", so it can be a program name with args. 6188set dummy dlltool; ac_word=$2 6189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6190printf %s "checking for $ac_word... " >&6; } 6191if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6192then : 6193 printf %s "(cached) " >&6 6194else $as_nop 6195 if test -n "$ac_ct_DLLTOOL"; then 6196 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6197else 6198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6199for as_dir in $PATH 6200do 6201 IFS=$as_save_IFS 6202 case $as_dir in #((( 6203 '') as_dir=./ ;; 6204 */) ;; 6205 *) as_dir=$as_dir/ ;; 6206 esac 6207 for ac_exec_ext in '' $ac_executable_extensions; do 6208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6209 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6211 break 2 6212 fi 6213done 6214 done 6215IFS=$as_save_IFS 6216 6217fi 6218fi 6219ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6220if test -n "$ac_ct_DLLTOOL"; then 6221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6222printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6223else 6224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6225printf "%s\n" "no" >&6; } 6226fi 6227 6228 if test "x$ac_ct_DLLTOOL" = x; then 6229 DLLTOOL="false" 6230 else 6231 case $cross_compiling:$ac_tool_warned in 6232yes:) 6233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6234printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6235ac_tool_warned=yes ;; 6236esac 6237 DLLTOOL=$ac_ct_DLLTOOL 6238 fi 6239else 6240 DLLTOOL="$ac_cv_prog_DLLTOOL" 6241fi 6242 6243test -z "$DLLTOOL" && DLLTOOL=dlltool 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6255printf %s "checking how to associate runtime and link libraries... " >&6; } 6256if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6257then : 6258 printf %s "(cached) " >&6 6259else $as_nop 6260 lt_cv_sharedlib_from_linklib_cmd='unknown' 6261 6262case $host_os in 6263cygwin* | mingw* | pw32* | cegcc*) 6264 # two different shell functions defined in ltmain.sh; 6265 # decide which one to use based on capabilities of $DLLTOOL 6266 case `$DLLTOOL --help 2>&1` in 6267 *--identify-strict*) 6268 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6269 ;; 6270 *) 6271 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6272 ;; 6273 esac 6274 ;; 6275*) 6276 # fallback: assume linklib IS sharedlib 6277 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6278 ;; 6279esac 6280 6281fi 6282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6283printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6284sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6285test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6286 6287 6288 6289 6290 6291 6292 6293 6294if test -n "$ac_tool_prefix"; then 6295 for ac_prog in ar 6296 do 6297 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6298set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6300printf %s "checking for $ac_word... " >&6; } 6301if test ${ac_cv_prog_AR+y} 6302then : 6303 printf %s "(cached) " >&6 6304else $as_nop 6305 if test -n "$AR"; then 6306 ac_cv_prog_AR="$AR" # Let the user override the test. 6307else 6308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6309for as_dir in $PATH 6310do 6311 IFS=$as_save_IFS 6312 case $as_dir in #((( 6313 '') as_dir=./ ;; 6314 */) ;; 6315 *) as_dir=$as_dir/ ;; 6316 esac 6317 for ac_exec_ext in '' $ac_executable_extensions; do 6318 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6319 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6321 break 2 6322 fi 6323done 6324 done 6325IFS=$as_save_IFS 6326 6327fi 6328fi 6329AR=$ac_cv_prog_AR 6330if test -n "$AR"; then 6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6332printf "%s\n" "$AR" >&6; } 6333else 6334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6335printf "%s\n" "no" >&6; } 6336fi 6337 6338 6339 test -n "$AR" && break 6340 done 6341fi 6342if test -z "$AR"; then 6343 ac_ct_AR=$AR 6344 for ac_prog in ar 6345do 6346 # Extract the first word of "$ac_prog", so it can be a program name with args. 6347set dummy $ac_prog; ac_word=$2 6348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6349printf %s "checking for $ac_word... " >&6; } 6350if test ${ac_cv_prog_ac_ct_AR+y} 6351then : 6352 printf %s "(cached) " >&6 6353else $as_nop 6354 if test -n "$ac_ct_AR"; then 6355 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6356else 6357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6358for as_dir in $PATH 6359do 6360 IFS=$as_save_IFS 6361 case $as_dir in #((( 6362 '') as_dir=./ ;; 6363 */) ;; 6364 *) as_dir=$as_dir/ ;; 6365 esac 6366 for ac_exec_ext in '' $ac_executable_extensions; do 6367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6368 ac_cv_prog_ac_ct_AR="$ac_prog" 6369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6370 break 2 6371 fi 6372done 6373 done 6374IFS=$as_save_IFS 6375 6376fi 6377fi 6378ac_ct_AR=$ac_cv_prog_ac_ct_AR 6379if test -n "$ac_ct_AR"; then 6380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6381printf "%s\n" "$ac_ct_AR" >&6; } 6382else 6383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6384printf "%s\n" "no" >&6; } 6385fi 6386 6387 6388 test -n "$ac_ct_AR" && break 6389done 6390 6391 if test "x$ac_ct_AR" = x; then 6392 AR="false" 6393 else 6394 case $cross_compiling:$ac_tool_warned in 6395yes:) 6396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6397printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6398ac_tool_warned=yes ;; 6399esac 6400 AR=$ac_ct_AR 6401 fi 6402fi 6403 6404: ${AR=ar} 6405 6406 6407 6408 6409 6410 6411# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6412# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6413# higher priority because thats what people were doing historically (setting 6414# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6415# variable obsoleted/removed. 6416 6417test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6418lt_ar_flags=$AR_FLAGS 6419 6420 6421 6422 6423 6424 6425# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6426# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6427 6428 6429 6430 6431 6432 6433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6434printf %s "checking for archiver @FILE support... " >&6; } 6435if test ${lt_cv_ar_at_file+y} 6436then : 6437 printf %s "(cached) " >&6 6438else $as_nop 6439 lt_cv_ar_at_file=no 6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6441/* end confdefs.h. */ 6442 6443int 6444main (void) 6445{ 6446 6447 ; 6448 return 0; 6449} 6450_ACEOF 6451if ac_fn_c_try_compile "$LINENO" 6452then : 6453 echo conftest.$ac_objext > conftest.lst 6454 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6456 (eval $lt_ar_try) 2>&5 6457 ac_status=$? 6458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6459 test $ac_status = 0; } 6460 if test 0 -eq "$ac_status"; then 6461 # Ensure the archiver fails upon bogus file names. 6462 rm -f conftest.$ac_objext libconftest.a 6463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6464 (eval $lt_ar_try) 2>&5 6465 ac_status=$? 6466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6467 test $ac_status = 0; } 6468 if test 0 -ne "$ac_status"; then 6469 lt_cv_ar_at_file=@ 6470 fi 6471 fi 6472 rm -f conftest.* libconftest.a 6473 6474fi 6475rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6476 6477fi 6478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6479printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6480 6481if test no = "$lt_cv_ar_at_file"; then 6482 archiver_list_spec= 6483else 6484 archiver_list_spec=$lt_cv_ar_at_file 6485fi 6486 6487 6488 6489 6490 6491 6492 6493if test -n "$ac_tool_prefix"; then 6494 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6495set dummy ${ac_tool_prefix}strip; ac_word=$2 6496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6497printf %s "checking for $ac_word... " >&6; } 6498if test ${ac_cv_prog_STRIP+y} 6499then : 6500 printf %s "(cached) " >&6 6501else $as_nop 6502 if test -n "$STRIP"; then 6503 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6504else 6505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6506for as_dir in $PATH 6507do 6508 IFS=$as_save_IFS 6509 case $as_dir in #((( 6510 '') as_dir=./ ;; 6511 */) ;; 6512 *) as_dir=$as_dir/ ;; 6513 esac 6514 for ac_exec_ext in '' $ac_executable_extensions; do 6515 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6516 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6518 break 2 6519 fi 6520done 6521 done 6522IFS=$as_save_IFS 6523 6524fi 6525fi 6526STRIP=$ac_cv_prog_STRIP 6527if test -n "$STRIP"; then 6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6529printf "%s\n" "$STRIP" >&6; } 6530else 6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6532printf "%s\n" "no" >&6; } 6533fi 6534 6535 6536fi 6537if test -z "$ac_cv_prog_STRIP"; then 6538 ac_ct_STRIP=$STRIP 6539 # Extract the first word of "strip", so it can be a program name with args. 6540set dummy strip; ac_word=$2 6541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6542printf %s "checking for $ac_word... " >&6; } 6543if test ${ac_cv_prog_ac_ct_STRIP+y} 6544then : 6545 printf %s "(cached) " >&6 6546else $as_nop 6547 if test -n "$ac_ct_STRIP"; then 6548 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6549else 6550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6551for as_dir in $PATH 6552do 6553 IFS=$as_save_IFS 6554 case $as_dir in #((( 6555 '') as_dir=./ ;; 6556 */) ;; 6557 *) as_dir=$as_dir/ ;; 6558 esac 6559 for ac_exec_ext in '' $ac_executable_extensions; do 6560 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6561 ac_cv_prog_ac_ct_STRIP="strip" 6562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6563 break 2 6564 fi 6565done 6566 done 6567IFS=$as_save_IFS 6568 6569fi 6570fi 6571ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6572if test -n "$ac_ct_STRIP"; then 6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6574printf "%s\n" "$ac_ct_STRIP" >&6; } 6575else 6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6577printf "%s\n" "no" >&6; } 6578fi 6579 6580 if test "x$ac_ct_STRIP" = x; then 6581 STRIP=":" 6582 else 6583 case $cross_compiling:$ac_tool_warned in 6584yes:) 6585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6586printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6587ac_tool_warned=yes ;; 6588esac 6589 STRIP=$ac_ct_STRIP 6590 fi 6591else 6592 STRIP="$ac_cv_prog_STRIP" 6593fi 6594 6595test -z "$STRIP" && STRIP=: 6596 6597 6598 6599 6600 6601 6602if test -n "$ac_tool_prefix"; then 6603 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6604set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6606printf %s "checking for $ac_word... " >&6; } 6607if test ${ac_cv_prog_RANLIB+y} 6608then : 6609 printf %s "(cached) " >&6 6610else $as_nop 6611 if test -n "$RANLIB"; then 6612 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6613else 6614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6615for as_dir in $PATH 6616do 6617 IFS=$as_save_IFS 6618 case $as_dir in #((( 6619 '') as_dir=./ ;; 6620 */) ;; 6621 *) as_dir=$as_dir/ ;; 6622 esac 6623 for ac_exec_ext in '' $ac_executable_extensions; do 6624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6625 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6627 break 2 6628 fi 6629done 6630 done 6631IFS=$as_save_IFS 6632 6633fi 6634fi 6635RANLIB=$ac_cv_prog_RANLIB 6636if test -n "$RANLIB"; then 6637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6638printf "%s\n" "$RANLIB" >&6; } 6639else 6640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6641printf "%s\n" "no" >&6; } 6642fi 6643 6644 6645fi 6646if test -z "$ac_cv_prog_RANLIB"; then 6647 ac_ct_RANLIB=$RANLIB 6648 # Extract the first word of "ranlib", so it can be a program name with args. 6649set dummy ranlib; ac_word=$2 6650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6651printf %s "checking for $ac_word... " >&6; } 6652if test ${ac_cv_prog_ac_ct_RANLIB+y} 6653then : 6654 printf %s "(cached) " >&6 6655else $as_nop 6656 if test -n "$ac_ct_RANLIB"; then 6657 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6658else 6659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6660for as_dir in $PATH 6661do 6662 IFS=$as_save_IFS 6663 case $as_dir in #((( 6664 '') as_dir=./ ;; 6665 */) ;; 6666 *) as_dir=$as_dir/ ;; 6667 esac 6668 for ac_exec_ext in '' $ac_executable_extensions; do 6669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6670 ac_cv_prog_ac_ct_RANLIB="ranlib" 6671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6672 break 2 6673 fi 6674done 6675 done 6676IFS=$as_save_IFS 6677 6678fi 6679fi 6680ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6681if test -n "$ac_ct_RANLIB"; then 6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6683printf "%s\n" "$ac_ct_RANLIB" >&6; } 6684else 6685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6686printf "%s\n" "no" >&6; } 6687fi 6688 6689 if test "x$ac_ct_RANLIB" = x; then 6690 RANLIB=":" 6691 else 6692 case $cross_compiling:$ac_tool_warned in 6693yes:) 6694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6695printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6696ac_tool_warned=yes ;; 6697esac 6698 RANLIB=$ac_ct_RANLIB 6699 fi 6700else 6701 RANLIB="$ac_cv_prog_RANLIB" 6702fi 6703 6704test -z "$RANLIB" && RANLIB=: 6705 6706 6707 6708 6709 6710 6711# Determine commands to create old-style static archives. 6712old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6713old_postinstall_cmds='chmod 644 $oldlib' 6714old_postuninstall_cmds= 6715 6716if test -n "$RANLIB"; then 6717 case $host_os in 6718 bitrig* | openbsd*) 6719 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6720 ;; 6721 *) 6722 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6723 ;; 6724 esac 6725 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6726fi 6727 6728case $host_os in 6729 darwin*) 6730 lock_old_archive_extraction=yes ;; 6731 *) 6732 lock_old_archive_extraction=no ;; 6733esac 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773# If no C compiler was specified, use CC. 6774LTCC=${LTCC-"$CC"} 6775 6776# If no C compiler flags were specified, use CFLAGS. 6777LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6778 6779# Allow CC to be a program name with arguments. 6780compiler=$CC 6781 6782 6783# Check for command to grab the raw symbol name followed by C symbol from nm. 6784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6785printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6786if test ${lt_cv_sys_global_symbol_pipe+y} 6787then : 6788 printf %s "(cached) " >&6 6789else $as_nop 6790 6791# These are sane defaults that work on at least a few old systems. 6792# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6793 6794# Character class describing NM global symbol codes. 6795symcode='[BCDEGRST]' 6796 6797# Regexp to match symbols that can be accessed directly from C. 6798sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6799 6800# Define system-specific variables. 6801case $host_os in 6802aix*) 6803 symcode='[BCDT]' 6804 ;; 6805cygwin* | mingw* | pw32* | cegcc*) 6806 symcode='[ABCDGISTW]' 6807 ;; 6808hpux*) 6809 if test ia64 = "$host_cpu"; then 6810 symcode='[ABCDEGRST]' 6811 fi 6812 ;; 6813irix* | nonstopux*) 6814 symcode='[BCDEGRST]' 6815 ;; 6816osf*) 6817 symcode='[BCDEGQRST]' 6818 ;; 6819solaris*) 6820 symcode='[BDRT]' 6821 ;; 6822sco3.2v5*) 6823 symcode='[DT]' 6824 ;; 6825sysv4.2uw2*) 6826 symcode='[DT]' 6827 ;; 6828sysv5* | sco5v6* | unixware* | OpenUNIX*) 6829 symcode='[ABDT]' 6830 ;; 6831sysv4) 6832 symcode='[DFNSTU]' 6833 ;; 6834esac 6835 6836# If we're using GNU nm, then use its standard symbol codes. 6837case `$NM -V 2>&1` in 6838*GNU* | *'with BFD'*) 6839 symcode='[ABCDGIRSTW]' ;; 6840esac 6841 6842if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6843 # Gets list of data symbols to import. 6844 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6845 # Adjust the below global symbol transforms to fixup imported variables. 6846 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6847 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6848 lt_c_name_lib_hook="\ 6849 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6850 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6851else 6852 # Disable hooks by default. 6853 lt_cv_sys_global_symbol_to_import= 6854 lt_cdecl_hook= 6855 lt_c_name_hook= 6856 lt_c_name_lib_hook= 6857fi 6858 6859# Transform an extracted symbol line into a proper C declaration. 6860# Some systems (esp. on ia64) link data and code symbols differently, 6861# so use this general approach. 6862lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6863$lt_cdecl_hook\ 6864" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6865" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6866 6867# Transform an extracted symbol line into symbol name and symbol address 6868lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 6869$lt_c_name_hook\ 6870" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6871" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6872 6873# Transform an extracted symbol line into symbol name with lib prefix and 6874# symbol address. 6875lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 6876$lt_c_name_lib_hook\ 6877" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6878" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6879" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6880 6881# Handle CRLF in mingw tool chain 6882opt_cr= 6883case $build_os in 6884mingw*) 6885 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6886 ;; 6887esac 6888 6889# Try without a prefix underscore, then with it. 6890for ac_symprfx in "" "_"; do 6891 6892 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6893 symxfrm="\\1 $ac_symprfx\\2 \\2" 6894 6895 # Write the raw and C identifiers. 6896 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6897 # Fake it for dumpbin and say T for any non-static function, 6898 # D for any global variable and I for any imported variable. 6899 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 6900 # which start with @ or ?. 6901 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6902" {last_section=section; section=\$ 3};"\ 6903" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6904" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6905" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6906" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6907" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6908" \$ 0!~/External *\|/{next};"\ 6909" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6910" {if(hide[section]) next};"\ 6911" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6912" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6913" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6914" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6915" ' prfx=^$ac_symprfx" 6916 else 6917 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6918 fi 6919 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 6920 6921 # Check to see that the pipe works correctly. 6922 pipe_works=no 6923 6924 rm -f conftest* 6925 cat > conftest.$ac_ext <<_LT_EOF 6926#ifdef __cplusplus 6927extern "C" { 6928#endif 6929char nm_test_var; 6930void nm_test_func(void); 6931void nm_test_func(void){} 6932#ifdef __cplusplus 6933} 6934#endif 6935int main(){nm_test_var='a';nm_test_func();return(0);} 6936_LT_EOF 6937 6938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6939 (eval $ac_compile) 2>&5 6940 ac_status=$? 6941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6942 test $ac_status = 0; }; then 6943 # Now try to grab the symbols. 6944 nlist=conftest.nm 6945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6946 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6947 ac_status=$? 6948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6949 test $ac_status = 0; } && test -s "$nlist"; then 6950 # Try sorting and uniquifying the output. 6951 if sort "$nlist" | uniq > "$nlist"T; then 6952 mv -f "$nlist"T "$nlist" 6953 else 6954 rm -f "$nlist"T 6955 fi 6956 6957 # Make sure that we snagged all the symbols we need. 6958 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6959 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6960 cat <<_LT_EOF > conftest.$ac_ext 6961/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6962#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6963/* DATA imports from DLLs on WIN32 can't be const, because runtime 6964 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6965# define LT_DLSYM_CONST 6966#elif defined __osf__ 6967/* This system does not cope well with relocations in const data. */ 6968# define LT_DLSYM_CONST 6969#else 6970# define LT_DLSYM_CONST const 6971#endif 6972 6973#ifdef __cplusplus 6974extern "C" { 6975#endif 6976 6977_LT_EOF 6978 # Now generate the symbol file. 6979 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6980 6981 cat <<_LT_EOF >> conftest.$ac_ext 6982 6983/* The mapping between symbol names and symbols. */ 6984LT_DLSYM_CONST struct { 6985 const char *name; 6986 void *address; 6987} 6988lt__PROGRAM__LTX_preloaded_symbols[] = 6989{ 6990 { "@PROGRAM@", (void *) 0 }, 6991_LT_EOF 6992 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6993 cat <<\_LT_EOF >> conftest.$ac_ext 6994 {0, (void *) 0} 6995}; 6996 6997/* This works around a problem in FreeBSD linker */ 6998#ifdef FREEBSD_WORKAROUND 6999static const void *lt_preloaded_setup() { 7000 return lt__PROGRAM__LTX_preloaded_symbols; 7001} 7002#endif 7003 7004#ifdef __cplusplus 7005} 7006#endif 7007_LT_EOF 7008 # Now try linking the two files. 7009 mv conftest.$ac_objext conftstm.$ac_objext 7010 lt_globsym_save_LIBS=$LIBS 7011 lt_globsym_save_CFLAGS=$CFLAGS 7012 LIBS=conftstm.$ac_objext 7013 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7014 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7015 (eval $ac_link) 2>&5 7016 ac_status=$? 7017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7018 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7019 pipe_works=yes 7020 fi 7021 LIBS=$lt_globsym_save_LIBS 7022 CFLAGS=$lt_globsym_save_CFLAGS 7023 else 7024 echo "cannot find nm_test_func in $nlist" >&5 7025 fi 7026 else 7027 echo "cannot find nm_test_var in $nlist" >&5 7028 fi 7029 else 7030 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7031 fi 7032 else 7033 echo "$progname: failed program was:" >&5 7034 cat conftest.$ac_ext >&5 7035 fi 7036 rm -rf conftest* conftst* 7037 7038 # Do not use the global_symbol_pipe unless it works. 7039 if test yes = "$pipe_works"; then 7040 break 7041 else 7042 lt_cv_sys_global_symbol_pipe= 7043 fi 7044done 7045 7046fi 7047 7048if test -z "$lt_cv_sys_global_symbol_pipe"; then 7049 lt_cv_sys_global_symbol_to_cdecl= 7050fi 7051if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7053printf "%s\n" "failed" >&6; } 7054else 7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7056printf "%s\n" "ok" >&6; } 7057fi 7058 7059# Response file support. 7060if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7061 nm_file_list_spec='@' 7062elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7063 nm_file_list_spec='@' 7064fi 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7103printf %s "checking for sysroot... " >&6; } 7104 7105# Check whether --with-sysroot was given. 7106if test ${with_sysroot+y} 7107then : 7108 withval=$with_sysroot; 7109else $as_nop 7110 with_sysroot=no 7111fi 7112 7113 7114lt_sysroot= 7115case $with_sysroot in #( 7116 yes) 7117 if test yes = "$GCC"; then 7118 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7119 fi 7120 ;; #( 7121 /*) 7122 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7123 ;; #( 7124 no|'') 7125 ;; #( 7126 *) 7127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7128printf "%s\n" "$with_sysroot" >&6; } 7129 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7130 ;; 7131esac 7132 7133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7134printf "%s\n" "${lt_sysroot:-no}" >&6; } 7135 7136 7137 7138 7139 7140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7141printf %s "checking for a working dd... " >&6; } 7142if test ${ac_cv_path_lt_DD+y} 7143then : 7144 printf %s "(cached) " >&6 7145else $as_nop 7146 printf 0123456789abcdef0123456789abcdef >conftest.i 7147cat conftest.i conftest.i >conftest2.i 7148: ${lt_DD:=$DD} 7149if test -z "$lt_DD"; then 7150 ac_path_lt_DD_found=false 7151 # Loop through the user's path and test for each of PROGNAME-LIST 7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7153for as_dir in $PATH 7154do 7155 IFS=$as_save_IFS 7156 case $as_dir in #((( 7157 '') as_dir=./ ;; 7158 */) ;; 7159 *) as_dir=$as_dir/ ;; 7160 esac 7161 for ac_prog in dd 7162 do 7163 for ac_exec_ext in '' $ac_executable_extensions; do 7164 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7165 as_fn_executable_p "$ac_path_lt_DD" || continue 7166if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7167 cmp -s conftest.i conftest.out \ 7168 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7169fi 7170 $ac_path_lt_DD_found && break 3 7171 done 7172 done 7173 done 7174IFS=$as_save_IFS 7175 if test -z "$ac_cv_path_lt_DD"; then 7176 : 7177 fi 7178else 7179 ac_cv_path_lt_DD=$lt_DD 7180fi 7181 7182rm -f conftest.i conftest2.i conftest.out 7183fi 7184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7185printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7186 7187 7188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7189printf %s "checking how to truncate binary pipes... " >&6; } 7190if test ${lt_cv_truncate_bin+y} 7191then : 7192 printf %s "(cached) " >&6 7193else $as_nop 7194 printf 0123456789abcdef0123456789abcdef >conftest.i 7195cat conftest.i conftest.i >conftest2.i 7196lt_cv_truncate_bin= 7197if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7198 cmp -s conftest.i conftest.out \ 7199 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7200fi 7201rm -f conftest.i conftest2.i conftest.out 7202test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7203fi 7204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7205printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7206 7207 7208 7209 7210 7211 7212 7213# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7214func_cc_basename () 7215{ 7216 for cc_temp in $*""; do 7217 case $cc_temp in 7218 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7219 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7220 \-*) ;; 7221 *) break;; 7222 esac 7223 done 7224 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7225} 7226 7227# Check whether --enable-libtool-lock was given. 7228if test ${enable_libtool_lock+y} 7229then : 7230 enableval=$enable_libtool_lock; 7231fi 7232 7233test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7234 7235# Some flags need to be propagated to the compiler or linker for good 7236# libtool support. 7237case $host in 7238ia64-*-hpux*) 7239 # Find out what ABI is being produced by ac_compile, and set mode 7240 # options accordingly. 7241 echo 'int i;' > conftest.$ac_ext 7242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7243 (eval $ac_compile) 2>&5 7244 ac_status=$? 7245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7246 test $ac_status = 0; }; then 7247 case `$FILECMD conftest.$ac_objext` in 7248 *ELF-32*) 7249 HPUX_IA64_MODE=32 7250 ;; 7251 *ELF-64*) 7252 HPUX_IA64_MODE=64 7253 ;; 7254 esac 7255 fi 7256 rm -rf conftest* 7257 ;; 7258*-*-irix6*) 7259 # Find out what ABI is being produced by ac_compile, and set linker 7260 # options accordingly. 7261 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7263 (eval $ac_compile) 2>&5 7264 ac_status=$? 7265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7266 test $ac_status = 0; }; then 7267 if test yes = "$lt_cv_prog_gnu_ld"; then 7268 case `$FILECMD conftest.$ac_objext` in 7269 *32-bit*) 7270 LD="${LD-ld} -melf32bsmip" 7271 ;; 7272 *N32*) 7273 LD="${LD-ld} -melf32bmipn32" 7274 ;; 7275 *64-bit*) 7276 LD="${LD-ld} -melf64bmip" 7277 ;; 7278 esac 7279 else 7280 case `$FILECMD conftest.$ac_objext` in 7281 *32-bit*) 7282 LD="${LD-ld} -32" 7283 ;; 7284 *N32*) 7285 LD="${LD-ld} -n32" 7286 ;; 7287 *64-bit*) 7288 LD="${LD-ld} -64" 7289 ;; 7290 esac 7291 fi 7292 fi 7293 rm -rf conftest* 7294 ;; 7295 7296mips64*-*linux*) 7297 # Find out what ABI is being produced by ac_compile, and set linker 7298 # options accordingly. 7299 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7301 (eval $ac_compile) 2>&5 7302 ac_status=$? 7303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7304 test $ac_status = 0; }; then 7305 emul=elf 7306 case `$FILECMD conftest.$ac_objext` in 7307 *32-bit*) 7308 emul="${emul}32" 7309 ;; 7310 *64-bit*) 7311 emul="${emul}64" 7312 ;; 7313 esac 7314 case `$FILECMD conftest.$ac_objext` in 7315 *MSB*) 7316 emul="${emul}btsmip" 7317 ;; 7318 *LSB*) 7319 emul="${emul}ltsmip" 7320 ;; 7321 esac 7322 case `$FILECMD conftest.$ac_objext` in 7323 *N32*) 7324 emul="${emul}n32" 7325 ;; 7326 esac 7327 LD="${LD-ld} -m $emul" 7328 fi 7329 rm -rf conftest* 7330 ;; 7331 7332x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7333s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7334 # Find out what ABI is being produced by ac_compile, and set linker 7335 # options accordingly. Note that the listed cases only cover the 7336 # situations where additional linker options are needed (such as when 7337 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7338 # vice versa); the common cases where no linker options are needed do 7339 # not appear in the list. 7340 echo 'int i;' > conftest.$ac_ext 7341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7342 (eval $ac_compile) 2>&5 7343 ac_status=$? 7344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7345 test $ac_status = 0; }; then 7346 case `$FILECMD conftest.o` in 7347 *32-bit*) 7348 case $host in 7349 x86_64-*kfreebsd*-gnu) 7350 LD="${LD-ld} -m elf_i386_fbsd" 7351 ;; 7352 x86_64-*linux*) 7353 case `$FILECMD conftest.o` in 7354 *x86-64*) 7355 LD="${LD-ld} -m elf32_x86_64" 7356 ;; 7357 *) 7358 LD="${LD-ld} -m elf_i386" 7359 ;; 7360 esac 7361 ;; 7362 powerpc64le-*linux*) 7363 LD="${LD-ld} -m elf32lppclinux" 7364 ;; 7365 powerpc64-*linux*) 7366 LD="${LD-ld} -m elf32ppclinux" 7367 ;; 7368 s390x-*linux*) 7369 LD="${LD-ld} -m elf_s390" 7370 ;; 7371 sparc64-*linux*) 7372 LD="${LD-ld} -m elf32_sparc" 7373 ;; 7374 esac 7375 ;; 7376 *64-bit*) 7377 case $host in 7378 x86_64-*kfreebsd*-gnu) 7379 LD="${LD-ld} -m elf_x86_64_fbsd" 7380 ;; 7381 x86_64-*linux*) 7382 LD="${LD-ld} -m elf_x86_64" 7383 ;; 7384 powerpcle-*linux*) 7385 LD="${LD-ld} -m elf64lppc" 7386 ;; 7387 powerpc-*linux*) 7388 LD="${LD-ld} -m elf64ppc" 7389 ;; 7390 s390*-*linux*|s390*-*tpf*) 7391 LD="${LD-ld} -m elf64_s390" 7392 ;; 7393 sparc*-*linux*) 7394 LD="${LD-ld} -m elf64_sparc" 7395 ;; 7396 esac 7397 ;; 7398 esac 7399 fi 7400 rm -rf conftest* 7401 ;; 7402 7403*-*-sco3.2v5*) 7404 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7405 SAVE_CFLAGS=$CFLAGS 7406 CFLAGS="$CFLAGS -belf" 7407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7408printf %s "checking whether the C compiler needs -belf... " >&6; } 7409if test ${lt_cv_cc_needs_belf+y} 7410then : 7411 printf %s "(cached) " >&6 7412else $as_nop 7413 ac_ext=c 7414ac_cpp='$CPP $CPPFLAGS' 7415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7417ac_compiler_gnu=$ac_cv_c_compiler_gnu 7418 7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7420/* end confdefs.h. */ 7421 7422int 7423main (void) 7424{ 7425 7426 ; 7427 return 0; 7428} 7429_ACEOF 7430if ac_fn_c_try_link "$LINENO" 7431then : 7432 lt_cv_cc_needs_belf=yes 7433else $as_nop 7434 lt_cv_cc_needs_belf=no 7435fi 7436rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7437 conftest$ac_exeext conftest.$ac_ext 7438 ac_ext=c 7439ac_cpp='$CPP $CPPFLAGS' 7440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7442ac_compiler_gnu=$ac_cv_c_compiler_gnu 7443 7444fi 7445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7446printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7447 if test yes != "$lt_cv_cc_needs_belf"; then 7448 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7449 CFLAGS=$SAVE_CFLAGS 7450 fi 7451 ;; 7452*-*solaris*) 7453 # Find out what ABI is being produced by ac_compile, and set linker 7454 # options accordingly. 7455 echo 'int i;' > conftest.$ac_ext 7456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7457 (eval $ac_compile) 2>&5 7458 ac_status=$? 7459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7460 test $ac_status = 0; }; then 7461 case `$FILECMD conftest.o` in 7462 *64-bit*) 7463 case $lt_cv_prog_gnu_ld in 7464 yes*) 7465 case $host in 7466 i?86-*-solaris*|x86_64-*-solaris*) 7467 LD="${LD-ld} -m elf_x86_64" 7468 ;; 7469 sparc*-*-solaris*) 7470 LD="${LD-ld} -m elf64_sparc" 7471 ;; 7472 esac 7473 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7474 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7475 LD=${LD-ld}_sol2 7476 fi 7477 ;; 7478 *) 7479 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7480 LD="${LD-ld} -64" 7481 fi 7482 ;; 7483 esac 7484 ;; 7485 esac 7486 fi 7487 rm -rf conftest* 7488 ;; 7489esac 7490 7491need_locks=$enable_libtool_lock 7492 7493if test -n "$ac_tool_prefix"; then 7494 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7495set dummy ${ac_tool_prefix}mt; ac_word=$2 7496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7497printf %s "checking for $ac_word... " >&6; } 7498if test ${ac_cv_prog_MANIFEST_TOOL+y} 7499then : 7500 printf %s "(cached) " >&6 7501else $as_nop 7502 if test -n "$MANIFEST_TOOL"; then 7503 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7504else 7505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7506for as_dir in $PATH 7507do 7508 IFS=$as_save_IFS 7509 case $as_dir in #((( 7510 '') as_dir=./ ;; 7511 */) ;; 7512 *) as_dir=$as_dir/ ;; 7513 esac 7514 for ac_exec_ext in '' $ac_executable_extensions; do 7515 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7516 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7518 break 2 7519 fi 7520done 7521 done 7522IFS=$as_save_IFS 7523 7524fi 7525fi 7526MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7527if test -n "$MANIFEST_TOOL"; then 7528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7529printf "%s\n" "$MANIFEST_TOOL" >&6; } 7530else 7531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7532printf "%s\n" "no" >&6; } 7533fi 7534 7535 7536fi 7537if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7538 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7539 # Extract the first word of "mt", so it can be a program name with args. 7540set dummy mt; ac_word=$2 7541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7542printf %s "checking for $ac_word... " >&6; } 7543if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7544then : 7545 printf %s "(cached) " >&6 7546else $as_nop 7547 if test -n "$ac_ct_MANIFEST_TOOL"; then 7548 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7549else 7550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7551for as_dir in $PATH 7552do 7553 IFS=$as_save_IFS 7554 case $as_dir in #((( 7555 '') as_dir=./ ;; 7556 */) ;; 7557 *) as_dir=$as_dir/ ;; 7558 esac 7559 for ac_exec_ext in '' $ac_executable_extensions; do 7560 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7561 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7563 break 2 7564 fi 7565done 7566 done 7567IFS=$as_save_IFS 7568 7569fi 7570fi 7571ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7572if test -n "$ac_ct_MANIFEST_TOOL"; then 7573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7574printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7575else 7576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7577printf "%s\n" "no" >&6; } 7578fi 7579 7580 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7581 MANIFEST_TOOL=":" 7582 else 7583 case $cross_compiling:$ac_tool_warned in 7584yes:) 7585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7586printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7587ac_tool_warned=yes ;; 7588esac 7589 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7590 fi 7591else 7592 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7593fi 7594 7595test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7597printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7598if test ${lt_cv_path_mainfest_tool+y} 7599then : 7600 printf %s "(cached) " >&6 7601else $as_nop 7602 lt_cv_path_mainfest_tool=no 7603 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7604 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7605 cat conftest.err >&5 7606 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7607 lt_cv_path_mainfest_tool=yes 7608 fi 7609 rm -f conftest* 7610fi 7611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7612printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7613if test yes != "$lt_cv_path_mainfest_tool"; then 7614 MANIFEST_TOOL=: 7615fi 7616 7617 7618 7619 7620 7621 7622 case $host_os in 7623 rhapsody* | darwin*) 7624 if test -n "$ac_tool_prefix"; then 7625 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7626set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7628printf %s "checking for $ac_word... " >&6; } 7629if test ${ac_cv_prog_DSYMUTIL+y} 7630then : 7631 printf %s "(cached) " >&6 7632else $as_nop 7633 if test -n "$DSYMUTIL"; then 7634 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7635else 7636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7637for as_dir in $PATH 7638do 7639 IFS=$as_save_IFS 7640 case $as_dir in #((( 7641 '') as_dir=./ ;; 7642 */) ;; 7643 *) as_dir=$as_dir/ ;; 7644 esac 7645 for ac_exec_ext in '' $ac_executable_extensions; do 7646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7647 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7649 break 2 7650 fi 7651done 7652 done 7653IFS=$as_save_IFS 7654 7655fi 7656fi 7657DSYMUTIL=$ac_cv_prog_DSYMUTIL 7658if test -n "$DSYMUTIL"; then 7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7660printf "%s\n" "$DSYMUTIL" >&6; } 7661else 7662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7663printf "%s\n" "no" >&6; } 7664fi 7665 7666 7667fi 7668if test -z "$ac_cv_prog_DSYMUTIL"; then 7669 ac_ct_DSYMUTIL=$DSYMUTIL 7670 # Extract the first word of "dsymutil", so it can be a program name with args. 7671set dummy dsymutil; ac_word=$2 7672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7673printf %s "checking for $ac_word... " >&6; } 7674if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7675then : 7676 printf %s "(cached) " >&6 7677else $as_nop 7678 if test -n "$ac_ct_DSYMUTIL"; then 7679 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7680else 7681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7682for as_dir in $PATH 7683do 7684 IFS=$as_save_IFS 7685 case $as_dir in #((( 7686 '') as_dir=./ ;; 7687 */) ;; 7688 *) as_dir=$as_dir/ ;; 7689 esac 7690 for ac_exec_ext in '' $ac_executable_extensions; do 7691 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7692 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7694 break 2 7695 fi 7696done 7697 done 7698IFS=$as_save_IFS 7699 7700fi 7701fi 7702ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7703if test -n "$ac_ct_DSYMUTIL"; then 7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7705printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7706else 7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7708printf "%s\n" "no" >&6; } 7709fi 7710 7711 if test "x$ac_ct_DSYMUTIL" = x; then 7712 DSYMUTIL=":" 7713 else 7714 case $cross_compiling:$ac_tool_warned in 7715yes:) 7716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7717printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7718ac_tool_warned=yes ;; 7719esac 7720 DSYMUTIL=$ac_ct_DSYMUTIL 7721 fi 7722else 7723 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7724fi 7725 7726 if test -n "$ac_tool_prefix"; then 7727 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7728set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7730printf %s "checking for $ac_word... " >&6; } 7731if test ${ac_cv_prog_NMEDIT+y} 7732then : 7733 printf %s "(cached) " >&6 7734else $as_nop 7735 if test -n "$NMEDIT"; then 7736 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7737else 7738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7739for as_dir in $PATH 7740do 7741 IFS=$as_save_IFS 7742 case $as_dir in #((( 7743 '') as_dir=./ ;; 7744 */) ;; 7745 *) as_dir=$as_dir/ ;; 7746 esac 7747 for ac_exec_ext in '' $ac_executable_extensions; do 7748 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7749 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7751 break 2 7752 fi 7753done 7754 done 7755IFS=$as_save_IFS 7756 7757fi 7758fi 7759NMEDIT=$ac_cv_prog_NMEDIT 7760if test -n "$NMEDIT"; then 7761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7762printf "%s\n" "$NMEDIT" >&6; } 7763else 7764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7765printf "%s\n" "no" >&6; } 7766fi 7767 7768 7769fi 7770if test -z "$ac_cv_prog_NMEDIT"; then 7771 ac_ct_NMEDIT=$NMEDIT 7772 # Extract the first word of "nmedit", so it can be a program name with args. 7773set dummy nmedit; ac_word=$2 7774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7775printf %s "checking for $ac_word... " >&6; } 7776if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7777then : 7778 printf %s "(cached) " >&6 7779else $as_nop 7780 if test -n "$ac_ct_NMEDIT"; then 7781 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7782else 7783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7784for as_dir in $PATH 7785do 7786 IFS=$as_save_IFS 7787 case $as_dir in #((( 7788 '') as_dir=./ ;; 7789 */) ;; 7790 *) as_dir=$as_dir/ ;; 7791 esac 7792 for ac_exec_ext in '' $ac_executable_extensions; do 7793 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7794 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7796 break 2 7797 fi 7798done 7799 done 7800IFS=$as_save_IFS 7801 7802fi 7803fi 7804ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7805if test -n "$ac_ct_NMEDIT"; then 7806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7807printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7808else 7809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7810printf "%s\n" "no" >&6; } 7811fi 7812 7813 if test "x$ac_ct_NMEDIT" = x; then 7814 NMEDIT=":" 7815 else 7816 case $cross_compiling:$ac_tool_warned in 7817yes:) 7818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7819printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7820ac_tool_warned=yes ;; 7821esac 7822 NMEDIT=$ac_ct_NMEDIT 7823 fi 7824else 7825 NMEDIT="$ac_cv_prog_NMEDIT" 7826fi 7827 7828 if test -n "$ac_tool_prefix"; then 7829 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7830set dummy ${ac_tool_prefix}lipo; ac_word=$2 7831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7832printf %s "checking for $ac_word... " >&6; } 7833if test ${ac_cv_prog_LIPO+y} 7834then : 7835 printf %s "(cached) " >&6 7836else $as_nop 7837 if test -n "$LIPO"; then 7838 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7839else 7840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7841for as_dir in $PATH 7842do 7843 IFS=$as_save_IFS 7844 case $as_dir in #((( 7845 '') as_dir=./ ;; 7846 */) ;; 7847 *) as_dir=$as_dir/ ;; 7848 esac 7849 for ac_exec_ext in '' $ac_executable_extensions; do 7850 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7851 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7853 break 2 7854 fi 7855done 7856 done 7857IFS=$as_save_IFS 7858 7859fi 7860fi 7861LIPO=$ac_cv_prog_LIPO 7862if test -n "$LIPO"; then 7863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7864printf "%s\n" "$LIPO" >&6; } 7865else 7866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7867printf "%s\n" "no" >&6; } 7868fi 7869 7870 7871fi 7872if test -z "$ac_cv_prog_LIPO"; then 7873 ac_ct_LIPO=$LIPO 7874 # Extract the first word of "lipo", so it can be a program name with args. 7875set dummy lipo; ac_word=$2 7876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7877printf %s "checking for $ac_word... " >&6; } 7878if test ${ac_cv_prog_ac_ct_LIPO+y} 7879then : 7880 printf %s "(cached) " >&6 7881else $as_nop 7882 if test -n "$ac_ct_LIPO"; then 7883 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7884else 7885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7886for as_dir in $PATH 7887do 7888 IFS=$as_save_IFS 7889 case $as_dir in #((( 7890 '') as_dir=./ ;; 7891 */) ;; 7892 *) as_dir=$as_dir/ ;; 7893 esac 7894 for ac_exec_ext in '' $ac_executable_extensions; do 7895 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7896 ac_cv_prog_ac_ct_LIPO="lipo" 7897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7898 break 2 7899 fi 7900done 7901 done 7902IFS=$as_save_IFS 7903 7904fi 7905fi 7906ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7907if test -n "$ac_ct_LIPO"; then 7908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7909printf "%s\n" "$ac_ct_LIPO" >&6; } 7910else 7911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7912printf "%s\n" "no" >&6; } 7913fi 7914 7915 if test "x$ac_ct_LIPO" = x; then 7916 LIPO=":" 7917 else 7918 case $cross_compiling:$ac_tool_warned in 7919yes:) 7920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7921printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7922ac_tool_warned=yes ;; 7923esac 7924 LIPO=$ac_ct_LIPO 7925 fi 7926else 7927 LIPO="$ac_cv_prog_LIPO" 7928fi 7929 7930 if test -n "$ac_tool_prefix"; then 7931 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7932set dummy ${ac_tool_prefix}otool; ac_word=$2 7933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7934printf %s "checking for $ac_word... " >&6; } 7935if test ${ac_cv_prog_OTOOL+y} 7936then : 7937 printf %s "(cached) " >&6 7938else $as_nop 7939 if test -n "$OTOOL"; then 7940 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7941else 7942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7943for as_dir in $PATH 7944do 7945 IFS=$as_save_IFS 7946 case $as_dir in #((( 7947 '') as_dir=./ ;; 7948 */) ;; 7949 *) as_dir=$as_dir/ ;; 7950 esac 7951 for ac_exec_ext in '' $ac_executable_extensions; do 7952 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7953 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7955 break 2 7956 fi 7957done 7958 done 7959IFS=$as_save_IFS 7960 7961fi 7962fi 7963OTOOL=$ac_cv_prog_OTOOL 7964if test -n "$OTOOL"; then 7965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7966printf "%s\n" "$OTOOL" >&6; } 7967else 7968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7969printf "%s\n" "no" >&6; } 7970fi 7971 7972 7973fi 7974if test -z "$ac_cv_prog_OTOOL"; then 7975 ac_ct_OTOOL=$OTOOL 7976 # Extract the first word of "otool", so it can be a program name with args. 7977set dummy otool; ac_word=$2 7978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7979printf %s "checking for $ac_word... " >&6; } 7980if test ${ac_cv_prog_ac_ct_OTOOL+y} 7981then : 7982 printf %s "(cached) " >&6 7983else $as_nop 7984 if test -n "$ac_ct_OTOOL"; then 7985 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7986else 7987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7988for as_dir in $PATH 7989do 7990 IFS=$as_save_IFS 7991 case $as_dir in #((( 7992 '') as_dir=./ ;; 7993 */) ;; 7994 *) as_dir=$as_dir/ ;; 7995 esac 7996 for ac_exec_ext in '' $ac_executable_extensions; do 7997 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7998 ac_cv_prog_ac_ct_OTOOL="otool" 7999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8000 break 2 8001 fi 8002done 8003 done 8004IFS=$as_save_IFS 8005 8006fi 8007fi 8008ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8009if test -n "$ac_ct_OTOOL"; then 8010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8011printf "%s\n" "$ac_ct_OTOOL" >&6; } 8012else 8013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8014printf "%s\n" "no" >&6; } 8015fi 8016 8017 if test "x$ac_ct_OTOOL" = x; then 8018 OTOOL=":" 8019 else 8020 case $cross_compiling:$ac_tool_warned in 8021yes:) 8022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8023printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8024ac_tool_warned=yes ;; 8025esac 8026 OTOOL=$ac_ct_OTOOL 8027 fi 8028else 8029 OTOOL="$ac_cv_prog_OTOOL" 8030fi 8031 8032 if test -n "$ac_tool_prefix"; then 8033 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8034set dummy ${ac_tool_prefix}otool64; ac_word=$2 8035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8036printf %s "checking for $ac_word... " >&6; } 8037if test ${ac_cv_prog_OTOOL64+y} 8038then : 8039 printf %s "(cached) " >&6 8040else $as_nop 8041 if test -n "$OTOOL64"; then 8042 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8043else 8044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8045for as_dir in $PATH 8046do 8047 IFS=$as_save_IFS 8048 case $as_dir in #((( 8049 '') as_dir=./ ;; 8050 */) ;; 8051 *) as_dir=$as_dir/ ;; 8052 esac 8053 for ac_exec_ext in '' $ac_executable_extensions; do 8054 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8055 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8057 break 2 8058 fi 8059done 8060 done 8061IFS=$as_save_IFS 8062 8063fi 8064fi 8065OTOOL64=$ac_cv_prog_OTOOL64 8066if test -n "$OTOOL64"; then 8067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8068printf "%s\n" "$OTOOL64" >&6; } 8069else 8070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8071printf "%s\n" "no" >&6; } 8072fi 8073 8074 8075fi 8076if test -z "$ac_cv_prog_OTOOL64"; then 8077 ac_ct_OTOOL64=$OTOOL64 8078 # Extract the first word of "otool64", so it can be a program name with args. 8079set dummy otool64; ac_word=$2 8080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8081printf %s "checking for $ac_word... " >&6; } 8082if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8083then : 8084 printf %s "(cached) " >&6 8085else $as_nop 8086 if test -n "$ac_ct_OTOOL64"; then 8087 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8088else 8089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8090for as_dir in $PATH 8091do 8092 IFS=$as_save_IFS 8093 case $as_dir in #((( 8094 '') as_dir=./ ;; 8095 */) ;; 8096 *) as_dir=$as_dir/ ;; 8097 esac 8098 for ac_exec_ext in '' $ac_executable_extensions; do 8099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8100 ac_cv_prog_ac_ct_OTOOL64="otool64" 8101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8102 break 2 8103 fi 8104done 8105 done 8106IFS=$as_save_IFS 8107 8108fi 8109fi 8110ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8111if test -n "$ac_ct_OTOOL64"; then 8112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8113printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8114else 8115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8116printf "%s\n" "no" >&6; } 8117fi 8118 8119 if test "x$ac_ct_OTOOL64" = x; then 8120 OTOOL64=":" 8121 else 8122 case $cross_compiling:$ac_tool_warned in 8123yes:) 8124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8125printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8126ac_tool_warned=yes ;; 8127esac 8128 OTOOL64=$ac_ct_OTOOL64 8129 fi 8130else 8131 OTOOL64="$ac_cv_prog_OTOOL64" 8132fi 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8161printf %s "checking for -single_module linker flag... " >&6; } 8162if test ${lt_cv_apple_cc_single_mod+y} 8163then : 8164 printf %s "(cached) " >&6 8165else $as_nop 8166 lt_cv_apple_cc_single_mod=no 8167 if test -z "$LT_MULTI_MODULE"; then 8168 # By default we will add the -single_module flag. You can override 8169 # by either setting the environment variable LT_MULTI_MODULE 8170 # non-empty at configure time, or by adding -multi_module to the 8171 # link flags. 8172 rm -rf libconftest.dylib* 8173 echo "int foo(void){return 1;}" > conftest.c 8174 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8175-dynamiclib -Wl,-single_module conftest.c" >&5 8176 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8177 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8178 _lt_result=$? 8179 # If there is a non-empty error log, and "single_module" 8180 # appears in it, assume the flag caused a linker warning 8181 if test -s conftest.err && $GREP single_module conftest.err; then 8182 cat conftest.err >&5 8183 # Otherwise, if the output was created with a 0 exit code from 8184 # the compiler, it worked. 8185 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8186 lt_cv_apple_cc_single_mod=yes 8187 else 8188 cat conftest.err >&5 8189 fi 8190 rm -rf libconftest.dylib* 8191 rm -f conftest.* 8192 fi 8193fi 8194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8195printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8196 8197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8198printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8199if test ${lt_cv_ld_exported_symbols_list+y} 8200then : 8201 printf %s "(cached) " >&6 8202else $as_nop 8203 lt_cv_ld_exported_symbols_list=no 8204 save_LDFLAGS=$LDFLAGS 8205 echo "_main" > conftest.sym 8206 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8208/* end confdefs.h. */ 8209 8210int 8211main (void) 8212{ 8213 8214 ; 8215 return 0; 8216} 8217_ACEOF 8218if ac_fn_c_try_link "$LINENO" 8219then : 8220 lt_cv_ld_exported_symbols_list=yes 8221else $as_nop 8222 lt_cv_ld_exported_symbols_list=no 8223fi 8224rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8225 conftest$ac_exeext conftest.$ac_ext 8226 LDFLAGS=$save_LDFLAGS 8227 8228fi 8229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8230printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8231 8232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8233printf %s "checking for -force_load linker flag... " >&6; } 8234if test ${lt_cv_ld_force_load+y} 8235then : 8236 printf %s "(cached) " >&6 8237else $as_nop 8238 lt_cv_ld_force_load=no 8239 cat > conftest.c << _LT_EOF 8240int forced_loaded() { return 2;} 8241_LT_EOF 8242 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8243 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8244 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8245 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8246 echo "$RANLIB libconftest.a" >&5 8247 $RANLIB libconftest.a 2>&5 8248 cat > conftest.c << _LT_EOF 8249int main() { return 0;} 8250_LT_EOF 8251 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8252 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8253 _lt_result=$? 8254 if test -s conftest.err && $GREP force_load conftest.err; then 8255 cat conftest.err >&5 8256 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8257 lt_cv_ld_force_load=yes 8258 else 8259 cat conftest.err >&5 8260 fi 8261 rm -f conftest.err libconftest.a conftest conftest.c 8262 rm -rf conftest.dSYM 8263 8264fi 8265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8266printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8267 case $host_os in 8268 rhapsody* | darwin1.[012]) 8269 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8270 darwin1.*) 8271 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8272 darwin*) 8273 case $MACOSX_DEPLOYMENT_TARGET,$host in 8274 10.[012],*|,*powerpc*-darwin[5-8]*) 8275 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8276 *) 8277 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8278 esac 8279 ;; 8280 esac 8281 if test yes = "$lt_cv_apple_cc_single_mod"; then 8282 _lt_dar_single_mod='$single_module' 8283 fi 8284 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8285 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8286 else 8287 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8288 fi 8289 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8290 _lt_dsymutil='~$DSYMUTIL $lib || :' 8291 else 8292 _lt_dsymutil= 8293 fi 8294 ;; 8295 esac 8296 8297# func_munge_path_list VARIABLE PATH 8298# ----------------------------------- 8299# VARIABLE is name of variable containing _space_ separated list of 8300# directories to be munged by the contents of PATH, which is string 8301# having a format: 8302# "DIR[:DIR]:" 8303# string "DIR[ DIR]" will be prepended to VARIABLE 8304# ":DIR[:DIR]" 8305# string "DIR[ DIR]" will be appended to VARIABLE 8306# "DIRP[:DIRP]::[DIRA:]DIRA" 8307# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8308# "DIRA[ DIRA]" will be appended to VARIABLE 8309# "DIR[:DIR]" 8310# VARIABLE will be replaced by "DIR[ DIR]" 8311func_munge_path_list () 8312{ 8313 case x$2 in 8314 x) 8315 ;; 8316 *:) 8317 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8318 ;; 8319 x:*) 8320 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8321 ;; 8322 *::*) 8323 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8324 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8325 ;; 8326 *) 8327 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8328 ;; 8329 esac 8330} 8331 8332ac_header= ac_cache= 8333for ac_item in $ac_header_c_list 8334do 8335 if test $ac_cache; then 8336 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8337 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8338 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8339 fi 8340 ac_header= ac_cache= 8341 elif test $ac_header; then 8342 ac_cache=$ac_item 8343 else 8344 ac_header=$ac_item 8345 fi 8346done 8347 8348 8349 8350 8351 8352 8353 8354 8355if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8356then : 8357 8358printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8359 8360fi 8361ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8362" 8363if test "x$ac_cv_header_dlfcn_h" = xyes 8364then : 8365 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8366 8367fi 8368 8369 8370 8371 8372 8373# Set options 8374 8375 8376 8377 enable_dlopen=no 8378 8379 8380 enable_win32_dll=no 8381 8382 8383 # Check whether --enable-shared was given. 8384if test ${enable_shared+y} 8385then : 8386 enableval=$enable_shared; p=${PACKAGE-default} 8387 case $enableval in 8388 yes) enable_shared=yes ;; 8389 no) enable_shared=no ;; 8390 *) 8391 enable_shared=no 8392 # Look at the argument we got. We use all the common list separators. 8393 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8394 for pkg in $enableval; do 8395 IFS=$lt_save_ifs 8396 if test "X$pkg" = "X$p"; then 8397 enable_shared=yes 8398 fi 8399 done 8400 IFS=$lt_save_ifs 8401 ;; 8402 esac 8403else $as_nop 8404 enable_shared=yes 8405fi 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 # Check whether --enable-static was given. 8416if test ${enable_static+y} 8417then : 8418 enableval=$enable_static; p=${PACKAGE-default} 8419 case $enableval in 8420 yes) enable_static=yes ;; 8421 no) enable_static=no ;; 8422 *) 8423 enable_static=no 8424 # Look at the argument we got. We use all the common list separators. 8425 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8426 for pkg in $enableval; do 8427 IFS=$lt_save_ifs 8428 if test "X$pkg" = "X$p"; then 8429 enable_static=yes 8430 fi 8431 done 8432 IFS=$lt_save_ifs 8433 ;; 8434 esac 8435else $as_nop 8436 enable_static=yes 8437fi 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448# Check whether --with-pic was given. 8449if test ${with_pic+y} 8450then : 8451 withval=$with_pic; lt_p=${PACKAGE-default} 8452 case $withval in 8453 yes|no) pic_mode=$withval ;; 8454 *) 8455 pic_mode=default 8456 # Look at the argument we got. We use all the common list separators. 8457 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8458 for lt_pkg in $withval; do 8459 IFS=$lt_save_ifs 8460 if test "X$lt_pkg" = "X$lt_p"; then 8461 pic_mode=yes 8462 fi 8463 done 8464 IFS=$lt_save_ifs 8465 ;; 8466 esac 8467else $as_nop 8468 pic_mode=default 8469fi 8470 8471 8472 8473 8474 8475 8476 8477 8478 # Check whether --enable-fast-install was given. 8479if test ${enable_fast_install+y} 8480then : 8481 enableval=$enable_fast_install; p=${PACKAGE-default} 8482 case $enableval in 8483 yes) enable_fast_install=yes ;; 8484 no) enable_fast_install=no ;; 8485 *) 8486 enable_fast_install=no 8487 # Look at the argument we got. We use all the common list separators. 8488 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8489 for pkg in $enableval; do 8490 IFS=$lt_save_ifs 8491 if test "X$pkg" = "X$p"; then 8492 enable_fast_install=yes 8493 fi 8494 done 8495 IFS=$lt_save_ifs 8496 ;; 8497 esac 8498else $as_nop 8499 enable_fast_install=yes 8500fi 8501 8502 8503 8504 8505 8506 8507 8508 8509 shared_archive_member_spec= 8510case $host,$enable_shared in 8511power*-*-aix[5-9]*,yes) 8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8513printf %s "checking which variant of shared library versioning to provide... " >&6; } 8514 8515# Check whether --with-aix-soname was given. 8516if test ${with_aix_soname+y} 8517then : 8518 withval=$with_aix_soname; case $withval in 8519 aix|svr4|both) 8520 ;; 8521 *) 8522 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8523 ;; 8524 esac 8525 lt_cv_with_aix_soname=$with_aix_soname 8526else $as_nop 8527 if test ${lt_cv_with_aix_soname+y} 8528then : 8529 printf %s "(cached) " >&6 8530else $as_nop 8531 lt_cv_with_aix_soname=aix 8532fi 8533 8534 with_aix_soname=$lt_cv_with_aix_soname 8535fi 8536 8537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8538printf "%s\n" "$with_aix_soname" >&6; } 8539 if test aix != "$with_aix_soname"; then 8540 # For the AIX way of multilib, we name the shared archive member 8541 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8542 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8543 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8544 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8545 if test 64 = "${OBJECT_MODE-32}"; then 8546 shared_archive_member_spec=shr_64 8547 else 8548 shared_archive_member_spec=shr 8549 fi 8550 fi 8551 ;; 8552*) 8553 with_aix_soname=aix 8554 ;; 8555esac 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566# This can be used to rebuild libtool when needed 8567LIBTOOL_DEPS=$ltmain 8568 8569# Always use our own libtool. 8570LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601test -z "$LN_S" && LN_S="ln -s" 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616if test -n "${ZSH_VERSION+set}"; then 8617 setopt NO_GLOB_SUBST 8618fi 8619 8620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8621printf %s "checking for objdir... " >&6; } 8622if test ${lt_cv_objdir+y} 8623then : 8624 printf %s "(cached) " >&6 8625else $as_nop 8626 rm -f .libs 2>/dev/null 8627mkdir .libs 2>/dev/null 8628if test -d .libs; then 8629 lt_cv_objdir=.libs 8630else 8631 # MS-DOS does not allow filenames that begin with a dot. 8632 lt_cv_objdir=_libs 8633fi 8634rmdir .libs 2>/dev/null 8635fi 8636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8637printf "%s\n" "$lt_cv_objdir" >&6; } 8638objdir=$lt_cv_objdir 8639 8640 8641 8642 8643 8644printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8645 8646 8647 8648 8649case $host_os in 8650aix3*) 8651 # AIX sometimes has problems with the GCC collect2 program. For some 8652 # reason, if we set the COLLECT_NAMES environment variable, the problems 8653 # vanish in a puff of smoke. 8654 if test set != "${COLLECT_NAMES+set}"; then 8655 COLLECT_NAMES= 8656 export COLLECT_NAMES 8657 fi 8658 ;; 8659esac 8660 8661# Global variables: 8662ofile=libtool 8663can_build_shared=yes 8664 8665# All known linkers require a '.a' archive for static linking (except MSVC and 8666# ICC, which need '.lib'). 8667libext=a 8668 8669with_gnu_ld=$lt_cv_prog_gnu_ld 8670 8671old_CC=$CC 8672old_CFLAGS=$CFLAGS 8673 8674# Set sane defaults for various variables 8675test -z "$CC" && CC=cc 8676test -z "$LTCC" && LTCC=$CC 8677test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8678test -z "$LD" && LD=ld 8679test -z "$ac_objext" && ac_objext=o 8680 8681func_cc_basename $compiler 8682cc_basename=$func_cc_basename_result 8683 8684 8685# Only perform the check for file, if the check method requires it 8686test -z "$MAGIC_CMD" && MAGIC_CMD=file 8687case $deplibs_check_method in 8688file_magic*) 8689 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8691printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8692if test ${lt_cv_path_MAGIC_CMD+y} 8693then : 8694 printf %s "(cached) " >&6 8695else $as_nop 8696 case $MAGIC_CMD in 8697[\\/*] | ?:[\\/]*) 8698 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8699 ;; 8700*) 8701 lt_save_MAGIC_CMD=$MAGIC_CMD 8702 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8703 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8704 for ac_dir in $ac_dummy; do 8705 IFS=$lt_save_ifs 8706 test -z "$ac_dir" && ac_dir=. 8707 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8708 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8709 if test -n "$file_magic_test_file"; then 8710 case $deplibs_check_method in 8711 "file_magic "*) 8712 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8713 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8714 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8715 $EGREP "$file_magic_regex" > /dev/null; then 8716 : 8717 else 8718 cat <<_LT_EOF 1>&2 8719 8720*** Warning: the command libtool uses to detect shared libraries, 8721*** $file_magic_cmd, produces output that libtool cannot recognize. 8722*** The result is that libtool may fail to recognize shared libraries 8723*** as such. This will affect the creation of libtool libraries that 8724*** depend on shared libraries, but programs linked with such libtool 8725*** libraries will work regardless of this problem. Nevertheless, you 8726*** may want to report the problem to your system manager and/or to 8727*** bug-libtool@gnu.org 8728 8729_LT_EOF 8730 fi ;; 8731 esac 8732 fi 8733 break 8734 fi 8735 done 8736 IFS=$lt_save_ifs 8737 MAGIC_CMD=$lt_save_MAGIC_CMD 8738 ;; 8739esac 8740fi 8741 8742MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8743if test -n "$MAGIC_CMD"; then 8744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8745printf "%s\n" "$MAGIC_CMD" >&6; } 8746else 8747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8748printf "%s\n" "no" >&6; } 8749fi 8750 8751 8752 8753 8754 8755if test -z "$lt_cv_path_MAGIC_CMD"; then 8756 if test -n "$ac_tool_prefix"; then 8757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8758printf %s "checking for file... " >&6; } 8759if test ${lt_cv_path_MAGIC_CMD+y} 8760then : 8761 printf %s "(cached) " >&6 8762else $as_nop 8763 case $MAGIC_CMD in 8764[\\/*] | ?:[\\/]*) 8765 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8766 ;; 8767*) 8768 lt_save_MAGIC_CMD=$MAGIC_CMD 8769 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8770 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8771 for ac_dir in $ac_dummy; do 8772 IFS=$lt_save_ifs 8773 test -z "$ac_dir" && ac_dir=. 8774 if test -f "$ac_dir/file"; then 8775 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8776 if test -n "$file_magic_test_file"; then 8777 case $deplibs_check_method in 8778 "file_magic "*) 8779 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8780 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8781 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8782 $EGREP "$file_magic_regex" > /dev/null; then 8783 : 8784 else 8785 cat <<_LT_EOF 1>&2 8786 8787*** Warning: the command libtool uses to detect shared libraries, 8788*** $file_magic_cmd, produces output that libtool cannot recognize. 8789*** The result is that libtool may fail to recognize shared libraries 8790*** as such. This will affect the creation of libtool libraries that 8791*** depend on shared libraries, but programs linked with such libtool 8792*** libraries will work regardless of this problem. Nevertheless, you 8793*** may want to report the problem to your system manager and/or to 8794*** bug-libtool@gnu.org 8795 8796_LT_EOF 8797 fi ;; 8798 esac 8799 fi 8800 break 8801 fi 8802 done 8803 IFS=$lt_save_ifs 8804 MAGIC_CMD=$lt_save_MAGIC_CMD 8805 ;; 8806esac 8807fi 8808 8809MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8810if test -n "$MAGIC_CMD"; then 8811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8812printf "%s\n" "$MAGIC_CMD" >&6; } 8813else 8814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8815printf "%s\n" "no" >&6; } 8816fi 8817 8818 8819 else 8820 MAGIC_CMD=: 8821 fi 8822fi 8823 8824 fi 8825 ;; 8826esac 8827 8828# Use C for the default configuration in the libtool script 8829 8830lt_save_CC=$CC 8831ac_ext=c 8832ac_cpp='$CPP $CPPFLAGS' 8833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8835ac_compiler_gnu=$ac_cv_c_compiler_gnu 8836 8837 8838# Source file extension for C test sources. 8839ac_ext=c 8840 8841# Object file extension for compiled C test sources. 8842objext=o 8843objext=$objext 8844 8845# Code to be used in simple compile tests 8846lt_simple_compile_test_code="int some_variable = 0;" 8847 8848# Code to be used in simple link tests 8849lt_simple_link_test_code='int main(){return(0);}' 8850 8851 8852 8853 8854 8855 8856 8857# If no C compiler was specified, use CC. 8858LTCC=${LTCC-"$CC"} 8859 8860# If no C compiler flags were specified, use CFLAGS. 8861LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8862 8863# Allow CC to be a program name with arguments. 8864compiler=$CC 8865 8866# Save the default compiler, since it gets overwritten when the other 8867# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8868compiler_DEFAULT=$CC 8869 8870# save warnings/boilerplate of simple test code 8871ac_outfile=conftest.$ac_objext 8872echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8873eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8874_lt_compiler_boilerplate=`cat conftest.err` 8875$RM conftest* 8876 8877ac_outfile=conftest.$ac_objext 8878echo "$lt_simple_link_test_code" >conftest.$ac_ext 8879eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8880_lt_linker_boilerplate=`cat conftest.err` 8881$RM -r conftest* 8882 8883 8884if test -n "$compiler"; then 8885 8886lt_prog_compiler_no_builtin_flag= 8887 8888if test yes = "$GCC"; then 8889 case $cc_basename in 8890 nvcc*) 8891 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8892 *) 8893 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8894 esac 8895 8896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8897printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8898if test ${lt_cv_prog_compiler_rtti_exceptions+y} 8899then : 8900 printf %s "(cached) " >&6 8901else $as_nop 8902 lt_cv_prog_compiler_rtti_exceptions=no 8903 ac_outfile=conftest.$ac_objext 8904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8905 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8906 # Insert the option either (1) after the last *FLAGS variable, or 8907 # (2) before a word containing "conftest.", or (3) at the end. 8908 # Note that $ac_compile itself does not contain backslashes and begins 8909 # with a dollar sign (not a hyphen), so the echo should work correctly. 8910 # The option is referenced via a variable to avoid confusing sed. 8911 lt_compile=`echo "$ac_compile" | $SED \ 8912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8914 -e 's:$: $lt_compiler_flag:'` 8915 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8916 (eval "$lt_compile" 2>conftest.err) 8917 ac_status=$? 8918 cat conftest.err >&5 8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8920 if (exit $ac_status) && test -s "$ac_outfile"; then 8921 # The compiler can only warn and ignore the option if not recognized 8922 # So say no if there are warnings other than the usual output. 8923 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8924 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8925 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8926 lt_cv_prog_compiler_rtti_exceptions=yes 8927 fi 8928 fi 8929 $RM conftest* 8930 8931fi 8932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8933printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8934 8935if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8936 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8937else 8938 : 8939fi 8940 8941fi 8942 8943 8944 8945 8946 8947 8948 lt_prog_compiler_wl= 8949lt_prog_compiler_pic= 8950lt_prog_compiler_static= 8951 8952 8953 if test yes = "$GCC"; then 8954 lt_prog_compiler_wl='-Wl,' 8955 lt_prog_compiler_static='-static' 8956 8957 case $host_os in 8958 aix*) 8959 # All AIX code is PIC. 8960 if test ia64 = "$host_cpu"; then 8961 # AIX 5 now supports IA64 processor 8962 lt_prog_compiler_static='-Bstatic' 8963 fi 8964 lt_prog_compiler_pic='-fPIC' 8965 ;; 8966 8967 amigaos*) 8968 case $host_cpu in 8969 powerpc) 8970 # see comment about AmigaOS4 .so support 8971 lt_prog_compiler_pic='-fPIC' 8972 ;; 8973 m68k) 8974 # FIXME: we need at least 68020 code to build shared libraries, but 8975 # adding the '-m68020' flag to GCC prevents building anything better, 8976 # like '-m68040'. 8977 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8978 ;; 8979 esac 8980 ;; 8981 8982 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8983 # PIC is the default for these OSes. 8984 ;; 8985 8986 mingw* | cygwin* | pw32* | os2* | cegcc*) 8987 # This hack is so that the source file can tell whether it is being 8988 # built for inclusion in a dll (and should export symbols for example). 8989 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8990 # (--disable-auto-import) libraries 8991 lt_prog_compiler_pic='-DDLL_EXPORT' 8992 case $host_os in 8993 os2*) 8994 lt_prog_compiler_static='$wl-static' 8995 ;; 8996 esac 8997 ;; 8998 8999 darwin* | rhapsody*) 9000 # PIC is the default on this platform 9001 # Common symbols not allowed in MH_DYLIB files 9002 lt_prog_compiler_pic='-fno-common' 9003 ;; 9004 9005 haiku*) 9006 # PIC is the default for Haiku. 9007 # The "-static" flag exists, but is broken. 9008 lt_prog_compiler_static= 9009 ;; 9010 9011 hpux*) 9012 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9013 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9014 # sets the default TLS model and affects inlining. 9015 case $host_cpu in 9016 hppa*64*) 9017 # +Z the default 9018 ;; 9019 *) 9020 lt_prog_compiler_pic='-fPIC' 9021 ;; 9022 esac 9023 ;; 9024 9025 interix[3-9]*) 9026 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9027 # Instead, we relocate shared libraries at runtime. 9028 ;; 9029 9030 msdosdjgpp*) 9031 # Just because we use GCC doesn't mean we suddenly get shared libraries 9032 # on systems that don't support them. 9033 lt_prog_compiler_can_build_shared=no 9034 enable_shared=no 9035 ;; 9036 9037 *nto* | *qnx*) 9038 # QNX uses GNU C++, but need to define -shared option too, otherwise 9039 # it will coredump. 9040 lt_prog_compiler_pic='-fPIC -shared' 9041 ;; 9042 9043 sysv4*MP*) 9044 if test -d /usr/nec; then 9045 lt_prog_compiler_pic=-Kconform_pic 9046 fi 9047 ;; 9048 9049 *) 9050 lt_prog_compiler_pic='-fPIC' 9051 ;; 9052 esac 9053 9054 case $cc_basename in 9055 nvcc*) # Cuda Compiler Driver 2.2 9056 lt_prog_compiler_wl='-Xlinker ' 9057 if test -n "$lt_prog_compiler_pic"; then 9058 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9059 fi 9060 ;; 9061 esac 9062 else 9063 # PORTME Check for flag to pass linker flags through the system compiler. 9064 case $host_os in 9065 aix*) 9066 lt_prog_compiler_wl='-Wl,' 9067 if test ia64 = "$host_cpu"; then 9068 # AIX 5 now supports IA64 processor 9069 lt_prog_compiler_static='-Bstatic' 9070 else 9071 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9072 fi 9073 ;; 9074 9075 darwin* | rhapsody*) 9076 # PIC is the default on this platform 9077 # Common symbols not allowed in MH_DYLIB files 9078 lt_prog_compiler_pic='-fno-common' 9079 case $cc_basename in 9080 nagfor*) 9081 # NAG Fortran compiler 9082 lt_prog_compiler_wl='-Wl,-Wl,,' 9083 lt_prog_compiler_pic='-PIC' 9084 lt_prog_compiler_static='-Bstatic' 9085 ;; 9086 esac 9087 ;; 9088 9089 mingw* | cygwin* | pw32* | os2* | cegcc*) 9090 # This hack is so that the source file can tell whether it is being 9091 # built for inclusion in a dll (and should export symbols for example). 9092 lt_prog_compiler_pic='-DDLL_EXPORT' 9093 case $host_os in 9094 os2*) 9095 lt_prog_compiler_static='$wl-static' 9096 ;; 9097 esac 9098 ;; 9099 9100 hpux9* | hpux10* | hpux11*) 9101 lt_prog_compiler_wl='-Wl,' 9102 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9103 # not for PA HP-UX. 9104 case $host_cpu in 9105 hppa*64*|ia64*) 9106 # +Z the default 9107 ;; 9108 *) 9109 lt_prog_compiler_pic='+Z' 9110 ;; 9111 esac 9112 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9113 lt_prog_compiler_static='$wl-a ${wl}archive' 9114 ;; 9115 9116 irix5* | irix6* | nonstopux*) 9117 lt_prog_compiler_wl='-Wl,' 9118 # PIC (with -KPIC) is the default. 9119 lt_prog_compiler_static='-non_shared' 9120 ;; 9121 9122 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9123 case $cc_basename in 9124 # old Intel for x86_64, which still supported -KPIC. 9125 ecc*) 9126 lt_prog_compiler_wl='-Wl,' 9127 lt_prog_compiler_pic='-KPIC' 9128 lt_prog_compiler_static='-static' 9129 ;; 9130 # icc used to be incompatible with GCC. 9131 # ICC 10 doesn't accept -KPIC any more. 9132 icc* | ifort*) 9133 lt_prog_compiler_wl='-Wl,' 9134 lt_prog_compiler_pic='-fPIC' 9135 lt_prog_compiler_static='-static' 9136 ;; 9137 # Lahey Fortran 8.1. 9138 lf95*) 9139 lt_prog_compiler_wl='-Wl,' 9140 lt_prog_compiler_pic='--shared' 9141 lt_prog_compiler_static='--static' 9142 ;; 9143 nagfor*) 9144 # NAG Fortran compiler 9145 lt_prog_compiler_wl='-Wl,-Wl,,' 9146 lt_prog_compiler_pic='-PIC' 9147 lt_prog_compiler_static='-Bstatic' 9148 ;; 9149 tcc*) 9150 # Fabrice Bellard et al's Tiny C Compiler 9151 lt_prog_compiler_wl='-Wl,' 9152 lt_prog_compiler_pic='-fPIC' 9153 lt_prog_compiler_static='-static' 9154 ;; 9155 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9156 # Portland Group compilers (*not* the Pentium gcc compiler, 9157 # which looks to be a dead project) 9158 lt_prog_compiler_wl='-Wl,' 9159 lt_prog_compiler_pic='-fpic' 9160 lt_prog_compiler_static='-Bstatic' 9161 ;; 9162 ccc*) 9163 lt_prog_compiler_wl='-Wl,' 9164 # All Alpha code is PIC. 9165 lt_prog_compiler_static='-non_shared' 9166 ;; 9167 xl* | bgxl* | bgf* | mpixl*) 9168 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9169 lt_prog_compiler_wl='-Wl,' 9170 lt_prog_compiler_pic='-qpic' 9171 lt_prog_compiler_static='-qstaticlink' 9172 ;; 9173 *) 9174 case `$CC -V 2>&1 | $SED 5q` in 9175 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9176 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9177 lt_prog_compiler_pic='-KPIC' 9178 lt_prog_compiler_static='-Bstatic' 9179 lt_prog_compiler_wl='' 9180 ;; 9181 *Sun\ F* | *Sun*Fortran*) 9182 lt_prog_compiler_pic='-KPIC' 9183 lt_prog_compiler_static='-Bstatic' 9184 lt_prog_compiler_wl='-Qoption ld ' 9185 ;; 9186 *Sun\ C*) 9187 # Sun C 5.9 9188 lt_prog_compiler_pic='-KPIC' 9189 lt_prog_compiler_static='-Bstatic' 9190 lt_prog_compiler_wl='-Wl,' 9191 ;; 9192 *Intel*\ [CF]*Compiler*) 9193 lt_prog_compiler_wl='-Wl,' 9194 lt_prog_compiler_pic='-fPIC' 9195 lt_prog_compiler_static='-static' 9196 ;; 9197 *Portland\ Group*) 9198 lt_prog_compiler_wl='-Wl,' 9199 lt_prog_compiler_pic='-fpic' 9200 lt_prog_compiler_static='-Bstatic' 9201 ;; 9202 esac 9203 ;; 9204 esac 9205 ;; 9206 9207 newsos6) 9208 lt_prog_compiler_pic='-KPIC' 9209 lt_prog_compiler_static='-Bstatic' 9210 ;; 9211 9212 *nto* | *qnx*) 9213 # QNX uses GNU C++, but need to define -shared option too, otherwise 9214 # it will coredump. 9215 lt_prog_compiler_pic='-fPIC -shared' 9216 ;; 9217 9218 osf3* | osf4* | osf5*) 9219 lt_prog_compiler_wl='-Wl,' 9220 # All OSF/1 code is PIC. 9221 lt_prog_compiler_static='-non_shared' 9222 ;; 9223 9224 rdos*) 9225 lt_prog_compiler_static='-non_shared' 9226 ;; 9227 9228 solaris*) 9229 lt_prog_compiler_pic='-KPIC' 9230 lt_prog_compiler_static='-Bstatic' 9231 case $cc_basename in 9232 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9233 lt_prog_compiler_wl='-Qoption ld ';; 9234 *) 9235 lt_prog_compiler_wl='-Wl,';; 9236 esac 9237 ;; 9238 9239 sunos4*) 9240 lt_prog_compiler_wl='-Qoption ld ' 9241 lt_prog_compiler_pic='-PIC' 9242 lt_prog_compiler_static='-Bstatic' 9243 ;; 9244 9245 sysv4 | sysv4.2uw2* | sysv4.3*) 9246 lt_prog_compiler_wl='-Wl,' 9247 lt_prog_compiler_pic='-KPIC' 9248 lt_prog_compiler_static='-Bstatic' 9249 ;; 9250 9251 sysv4*MP*) 9252 if test -d /usr/nec; then 9253 lt_prog_compiler_pic='-Kconform_pic' 9254 lt_prog_compiler_static='-Bstatic' 9255 fi 9256 ;; 9257 9258 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9259 lt_prog_compiler_wl='-Wl,' 9260 lt_prog_compiler_pic='-KPIC' 9261 lt_prog_compiler_static='-Bstatic' 9262 ;; 9263 9264 unicos*) 9265 lt_prog_compiler_wl='-Wl,' 9266 lt_prog_compiler_can_build_shared=no 9267 ;; 9268 9269 uts4*) 9270 lt_prog_compiler_pic='-pic' 9271 lt_prog_compiler_static='-Bstatic' 9272 ;; 9273 9274 *) 9275 lt_prog_compiler_can_build_shared=no 9276 ;; 9277 esac 9278 fi 9279 9280case $host_os in 9281 # For platforms that do not support PIC, -DPIC is meaningless: 9282 *djgpp*) 9283 lt_prog_compiler_pic= 9284 ;; 9285 *) 9286 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9287 ;; 9288esac 9289 9290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9291printf %s "checking for $compiler option to produce PIC... " >&6; } 9292if test ${lt_cv_prog_compiler_pic+y} 9293then : 9294 printf %s "(cached) " >&6 9295else $as_nop 9296 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9297fi 9298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9299printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9300lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9301 9302# 9303# Check to make sure the PIC flag actually works. 9304# 9305if test -n "$lt_prog_compiler_pic"; then 9306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9307printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9308if test ${lt_cv_prog_compiler_pic_works+y} 9309then : 9310 printf %s "(cached) " >&6 9311else $as_nop 9312 lt_cv_prog_compiler_pic_works=no 9313 ac_outfile=conftest.$ac_objext 9314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9315 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9316 # Insert the option either (1) after the last *FLAGS variable, or 9317 # (2) before a word containing "conftest.", or (3) at the end. 9318 # Note that $ac_compile itself does not contain backslashes and begins 9319 # with a dollar sign (not a hyphen), so the echo should work correctly. 9320 # The option is referenced via a variable to avoid confusing sed. 9321 lt_compile=`echo "$ac_compile" | $SED \ 9322 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9324 -e 's:$: $lt_compiler_flag:'` 9325 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9326 (eval "$lt_compile" 2>conftest.err) 9327 ac_status=$? 9328 cat conftest.err >&5 9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9330 if (exit $ac_status) && test -s "$ac_outfile"; then 9331 # The compiler can only warn and ignore the option if not recognized 9332 # So say no if there are warnings other than the usual output. 9333 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9334 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9335 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9336 lt_cv_prog_compiler_pic_works=yes 9337 fi 9338 fi 9339 $RM conftest* 9340 9341fi 9342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9343printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9344 9345if test yes = "$lt_cv_prog_compiler_pic_works"; then 9346 case $lt_prog_compiler_pic in 9347 "" | " "*) ;; 9348 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9349 esac 9350else 9351 lt_prog_compiler_pic= 9352 lt_prog_compiler_can_build_shared=no 9353fi 9354 9355fi 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367# 9368# Check to make sure the static flag actually works. 9369# 9370wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9372printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9373if test ${lt_cv_prog_compiler_static_works+y} 9374then : 9375 printf %s "(cached) " >&6 9376else $as_nop 9377 lt_cv_prog_compiler_static_works=no 9378 save_LDFLAGS=$LDFLAGS 9379 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9380 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9381 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9382 # The linker can only warn and ignore the option if not recognized 9383 # So say no if there are warnings 9384 if test -s conftest.err; then 9385 # Append any errors to the config.log. 9386 cat conftest.err 1>&5 9387 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9388 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9389 if diff conftest.exp conftest.er2 >/dev/null; then 9390 lt_cv_prog_compiler_static_works=yes 9391 fi 9392 else 9393 lt_cv_prog_compiler_static_works=yes 9394 fi 9395 fi 9396 $RM -r conftest* 9397 LDFLAGS=$save_LDFLAGS 9398 9399fi 9400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9401printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9402 9403if test yes = "$lt_cv_prog_compiler_static_works"; then 9404 : 9405else 9406 lt_prog_compiler_static= 9407fi 9408 9409 9410 9411 9412 9413 9414 9415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9416printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9417if test ${lt_cv_prog_compiler_c_o+y} 9418then : 9419 printf %s "(cached) " >&6 9420else $as_nop 9421 lt_cv_prog_compiler_c_o=no 9422 $RM -r conftest 2>/dev/null 9423 mkdir conftest 9424 cd conftest 9425 mkdir out 9426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9427 9428 lt_compiler_flag="-o out/conftest2.$ac_objext" 9429 # Insert the option either (1) after the last *FLAGS variable, or 9430 # (2) before a word containing "conftest.", or (3) at the end. 9431 # Note that $ac_compile itself does not contain backslashes and begins 9432 # with a dollar sign (not a hyphen), so the echo should work correctly. 9433 lt_compile=`echo "$ac_compile" | $SED \ 9434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9436 -e 's:$: $lt_compiler_flag:'` 9437 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9438 (eval "$lt_compile" 2>out/conftest.err) 9439 ac_status=$? 9440 cat out/conftest.err >&5 9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9442 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9443 then 9444 # The compiler can only warn and ignore the option if not recognized 9445 # So say no if there are warnings 9446 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9447 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9448 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9449 lt_cv_prog_compiler_c_o=yes 9450 fi 9451 fi 9452 chmod u+w . 2>&5 9453 $RM conftest* 9454 # SGI C++ compiler will create directory out/ii_files/ for 9455 # template instantiation 9456 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9457 $RM out/* && rmdir out 9458 cd .. 9459 $RM -r conftest 9460 $RM conftest* 9461 9462fi 9463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9464printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9465 9466 9467 9468 9469 9470 9471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9472printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9473if test ${lt_cv_prog_compiler_c_o+y} 9474then : 9475 printf %s "(cached) " >&6 9476else $as_nop 9477 lt_cv_prog_compiler_c_o=no 9478 $RM -r conftest 2>/dev/null 9479 mkdir conftest 9480 cd conftest 9481 mkdir out 9482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9483 9484 lt_compiler_flag="-o out/conftest2.$ac_objext" 9485 # Insert the option either (1) after the last *FLAGS variable, or 9486 # (2) before a word containing "conftest.", or (3) at the end. 9487 # Note that $ac_compile itself does not contain backslashes and begins 9488 # with a dollar sign (not a hyphen), so the echo should work correctly. 9489 lt_compile=`echo "$ac_compile" | $SED \ 9490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9492 -e 's:$: $lt_compiler_flag:'` 9493 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9494 (eval "$lt_compile" 2>out/conftest.err) 9495 ac_status=$? 9496 cat out/conftest.err >&5 9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9498 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9499 then 9500 # The compiler can only warn and ignore the option if not recognized 9501 # So say no if there are warnings 9502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9503 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9504 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9505 lt_cv_prog_compiler_c_o=yes 9506 fi 9507 fi 9508 chmod u+w . 2>&5 9509 $RM conftest* 9510 # SGI C++ compiler will create directory out/ii_files/ for 9511 # template instantiation 9512 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9513 $RM out/* && rmdir out 9514 cd .. 9515 $RM -r conftest 9516 $RM conftest* 9517 9518fi 9519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9520printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9521 9522 9523 9524 9525hard_links=nottested 9526if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9527 # do not overwrite the value of need_locks provided by the user 9528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9529printf %s "checking if we can lock with hard links... " >&6; } 9530 hard_links=yes 9531 $RM conftest* 9532 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9533 touch conftest.a 9534 ln conftest.a conftest.b 2>&5 || hard_links=no 9535 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9537printf "%s\n" "$hard_links" >&6; } 9538 if test no = "$hard_links"; then 9539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9540printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9541 need_locks=warn 9542 fi 9543else 9544 need_locks=no 9545fi 9546 9547 9548 9549 9550 9551 9552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9553printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9554 9555 runpath_var= 9556 allow_undefined_flag= 9557 always_export_symbols=no 9558 archive_cmds= 9559 archive_expsym_cmds= 9560 compiler_needs_object=no 9561 enable_shared_with_static_runtimes=no 9562 export_dynamic_flag_spec= 9563 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9564 hardcode_automatic=no 9565 hardcode_direct=no 9566 hardcode_direct_absolute=no 9567 hardcode_libdir_flag_spec= 9568 hardcode_libdir_separator= 9569 hardcode_minus_L=no 9570 hardcode_shlibpath_var=unsupported 9571 inherit_rpath=no 9572 link_all_deplibs=unknown 9573 module_cmds= 9574 module_expsym_cmds= 9575 old_archive_from_new_cmds= 9576 old_archive_from_expsyms_cmds= 9577 thread_safe_flag_spec= 9578 whole_archive_flag_spec= 9579 # include_expsyms should be a list of space-separated symbols to be *always* 9580 # included in the symbol list 9581 include_expsyms= 9582 # exclude_expsyms can be an extended regexp of symbols to exclude 9583 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9584 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9585 # as well as any symbol that contains 'd'. 9586 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9587 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9588 # platforms (ab)use it in PIC code, but their linkers get confused if 9589 # the symbol is explicitly referenced. Since portable code cannot 9590 # rely on this symbol name, it's probably fine to never include it in 9591 # preloaded symbol tables. 9592 # Exclude shared library initialization/finalization symbols. 9593 extract_expsyms_cmds= 9594 9595 case $host_os in 9596 cygwin* | mingw* | pw32* | cegcc*) 9597 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9598 # When not using gcc, we currently assume that we are using 9599 # Microsoft Visual C++ or Intel C++ Compiler. 9600 if test yes != "$GCC"; then 9601 with_gnu_ld=no 9602 fi 9603 ;; 9604 interix*) 9605 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9606 with_gnu_ld=yes 9607 ;; 9608 openbsd* | bitrig*) 9609 with_gnu_ld=no 9610 ;; 9611 esac 9612 9613 ld_shlibs=yes 9614 9615 # On some targets, GNU ld is compatible enough with the native linker 9616 # that we're better off using the native interface for both. 9617 lt_use_gnu_ld_interface=no 9618 if test yes = "$with_gnu_ld"; then 9619 case $host_os in 9620 aix*) 9621 # The AIX port of GNU ld has always aspired to compatibility 9622 # with the native linker. However, as the warning in the GNU ld 9623 # block says, versions before 2.19.5* couldn't really create working 9624 # shared libraries, regardless of the interface used. 9625 case `$LD -v 2>&1` in 9626 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9627 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9628 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9629 *) 9630 lt_use_gnu_ld_interface=yes 9631 ;; 9632 esac 9633 ;; 9634 *) 9635 lt_use_gnu_ld_interface=yes 9636 ;; 9637 esac 9638 fi 9639 9640 if test yes = "$lt_use_gnu_ld_interface"; then 9641 # If archive_cmds runs LD, not CC, wlarc should be empty 9642 wlarc='$wl' 9643 9644 # Set some defaults for GNU ld with shared library support. These 9645 # are reset later if shared libraries are not supported. Putting them 9646 # here allows them to be overridden if necessary. 9647 runpath_var=LD_RUN_PATH 9648 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9649 export_dynamic_flag_spec='$wl--export-dynamic' 9650 # ancient GNU ld didn't support --whole-archive et. al. 9651 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9652 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9653 else 9654 whole_archive_flag_spec= 9655 fi 9656 supports_anon_versioning=no 9657 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9658 *GNU\ gold*) supports_anon_versioning=yes ;; 9659 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9660 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9661 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9662 *\ 2.11.*) ;; # other 2.11 versions 9663 *) supports_anon_versioning=yes ;; 9664 esac 9665 9666 # See if GNU ld supports shared libraries. 9667 case $host_os in 9668 aix[3-9]*) 9669 # On AIX/PPC, the GNU linker is very broken 9670 if test ia64 != "$host_cpu"; then 9671 ld_shlibs=no 9672 cat <<_LT_EOF 1>&2 9673 9674*** Warning: the GNU linker, at least up to release 2.19, is reported 9675*** to be unable to reliably create shared libraries on AIX. 9676*** Therefore, libtool is disabling shared libraries support. If you 9677*** really care for shared libraries, you may want to install binutils 9678*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9679*** You will then need to restart the configuration process. 9680 9681_LT_EOF 9682 fi 9683 ;; 9684 9685 amigaos*) 9686 case $host_cpu in 9687 powerpc) 9688 # see comment about AmigaOS4 .so support 9689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9690 archive_expsym_cmds='' 9691 ;; 9692 m68k) 9693 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 9694 hardcode_libdir_flag_spec='-L$libdir' 9695 hardcode_minus_L=yes 9696 ;; 9697 esac 9698 ;; 9699 9700 beos*) 9701 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9702 allow_undefined_flag=unsupported 9703 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9704 # support --undefined. This deserves some investigation. FIXME 9705 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9706 else 9707 ld_shlibs=no 9708 fi 9709 ;; 9710 9711 cygwin* | mingw* | pw32* | cegcc*) 9712 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9713 # as there is no search path for DLLs. 9714 hardcode_libdir_flag_spec='-L$libdir' 9715 export_dynamic_flag_spec='$wl--export-all-symbols' 9716 allow_undefined_flag=unsupported 9717 always_export_symbols=no 9718 enable_shared_with_static_runtimes=yes 9719 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 9720 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9721 9722 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9724 # If the export-symbols file already is a .def file, use it as 9725 # is; otherwise, prepend EXPORTS... 9726 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9727 cp $export_symbols $output_objdir/$soname.def; 9728 else 9729 echo EXPORTS > $output_objdir/$soname.def; 9730 cat $export_symbols >> $output_objdir/$soname.def; 9731 fi~ 9732 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9733 else 9734 ld_shlibs=no 9735 fi 9736 ;; 9737 9738 haiku*) 9739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9740 link_all_deplibs=yes 9741 ;; 9742 9743 os2*) 9744 hardcode_libdir_flag_spec='-L$libdir' 9745 hardcode_minus_L=yes 9746 allow_undefined_flag=unsupported 9747 shrext_cmds=.dll 9748 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9749 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9750 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9751 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9752 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9753 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9754 emximp -o $lib $output_objdir/$libname.def' 9755 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9756 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9757 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9758 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9759 prefix_cmds="$SED"~ 9760 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9761 prefix_cmds="$prefix_cmds -e 1d"; 9762 fi~ 9763 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9764 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9765 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9766 emximp -o $lib $output_objdir/$libname.def' 9767 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9768 enable_shared_with_static_runtimes=yes 9769 file_list_spec='@' 9770 ;; 9771 9772 interix[3-9]*) 9773 hardcode_direct=no 9774 hardcode_shlibpath_var=no 9775 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9776 export_dynamic_flag_spec='$wl-E' 9777 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9778 # Instead, shared libraries are loaded at an image base (0x10000000 by 9779 # default) and relocated if they conflict, which is a slow very memory 9780 # consuming and fragmenting process. To avoid this, we pick a random, 9781 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9782 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9783 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9784 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9785 ;; 9786 9787 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9788 tmp_diet=no 9789 if test linux-dietlibc = "$host_os"; then 9790 case $cc_basename in 9791 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9792 esac 9793 fi 9794 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9795 && test no = "$tmp_diet" 9796 then 9797 tmp_addflag=' $pic_flag' 9798 tmp_sharedflag='-shared' 9799 case $cc_basename,$host_cpu in 9800 pgcc*) # Portland Group C compiler 9801 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9802 tmp_addflag=' $pic_flag' 9803 ;; 9804 pgf77* | pgf90* | pgf95* | pgfortran*) 9805 # Portland Group f77 and f90 compilers 9806 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9807 tmp_addflag=' $pic_flag -Mnomain' ;; 9808 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9809 tmp_addflag=' -i_dynamic' ;; 9810 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9811 tmp_addflag=' -i_dynamic -nofor_main' ;; 9812 ifc* | ifort*) # Intel Fortran compiler 9813 tmp_addflag=' -nofor_main' ;; 9814 lf95*) # Lahey Fortran 8.1 9815 whole_archive_flag_spec= 9816 tmp_sharedflag='--shared' ;; 9817 nagfor*) # NAGFOR 5.3 9818 tmp_sharedflag='-Wl,-shared' ;; 9819 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9820 tmp_sharedflag='-qmkshrobj' 9821 tmp_addflag= ;; 9822 nvcc*) # Cuda Compiler Driver 2.2 9823 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9824 compiler_needs_object=yes 9825 ;; 9826 esac 9827 case `$CC -V 2>&1 | $SED 5q` in 9828 *Sun\ C*) # Sun C 5.9 9829 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9830 compiler_needs_object=yes 9831 tmp_sharedflag='-G' ;; 9832 *Sun\ F*) # Sun Fortran 8.3 9833 tmp_sharedflag='-G' ;; 9834 esac 9835 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9836 9837 if test yes = "$supports_anon_versioning"; then 9838 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9839 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9840 echo "local: *; };" >> $output_objdir/$libname.ver~ 9841 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9842 fi 9843 9844 case $cc_basename in 9845 tcc*) 9846 export_dynamic_flag_spec='-rdynamic' 9847 ;; 9848 xlf* | bgf* | bgxlf* | mpixlf*) 9849 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9850 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9851 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9852 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9853 if test yes = "$supports_anon_versioning"; then 9854 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9855 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9856 echo "local: *; };" >> $output_objdir/$libname.ver~ 9857 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9858 fi 9859 ;; 9860 esac 9861 else 9862 ld_shlibs=no 9863 fi 9864 ;; 9865 9866 netbsd*) 9867 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9868 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9869 wlarc= 9870 else 9871 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9872 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9873 fi 9874 ;; 9875 9876 solaris*) 9877 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9878 ld_shlibs=no 9879 cat <<_LT_EOF 1>&2 9880 9881*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9882*** create shared libraries on Solaris systems. Therefore, libtool 9883*** is disabling shared libraries support. We urge you to upgrade GNU 9884*** binutils to release 2.9.1 or newer. Another option is to modify 9885*** your PATH or compiler configuration so that the native linker is 9886*** used, and then restart. 9887 9888_LT_EOF 9889 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9890 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9891 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9892 else 9893 ld_shlibs=no 9894 fi 9895 ;; 9896 9897 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9898 case `$LD -v 2>&1` in 9899 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9900 ld_shlibs=no 9901 cat <<_LT_EOF 1>&2 9902 9903*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9904*** reliably create shared libraries on SCO systems. Therefore, libtool 9905*** is disabling shared libraries support. We urge you to upgrade GNU 9906*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9907*** your PATH or compiler configuration so that the native linker is 9908*** used, and then restart. 9909 9910_LT_EOF 9911 ;; 9912 *) 9913 # For security reasons, it is highly recommended that you always 9914 # use absolute paths for naming shared libraries, and exclude the 9915 # DT_RUNPATH tag from executables and libraries. But doing so 9916 # requires that you compile everything twice, which is a pain. 9917 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9918 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9920 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9921 else 9922 ld_shlibs=no 9923 fi 9924 ;; 9925 esac 9926 ;; 9927 9928 sunos4*) 9929 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9930 wlarc= 9931 hardcode_direct=yes 9932 hardcode_shlibpath_var=no 9933 ;; 9934 9935 *) 9936 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9937 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9938 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9939 else 9940 ld_shlibs=no 9941 fi 9942 ;; 9943 esac 9944 9945 if test no = "$ld_shlibs"; then 9946 runpath_var= 9947 hardcode_libdir_flag_spec= 9948 export_dynamic_flag_spec= 9949 whole_archive_flag_spec= 9950 fi 9951 else 9952 # PORTME fill in a description of your system's linker (not GNU ld) 9953 case $host_os in 9954 aix3*) 9955 allow_undefined_flag=unsupported 9956 always_export_symbols=yes 9957 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 9958 # Note: this linker hardcodes the directories in LIBPATH if there 9959 # are no directories specified by -L. 9960 hardcode_minus_L=yes 9961 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9962 # Neither direct hardcoding nor static linking is supported with a 9963 # broken collect2. 9964 hardcode_direct=unsupported 9965 fi 9966 ;; 9967 9968 aix[4-9]*) 9969 if test ia64 = "$host_cpu"; then 9970 # On IA64, the linker does run time linking by default, so we don't 9971 # have to do anything special. 9972 aix_use_runtimelinking=no 9973 exp_sym_flag='-Bexport' 9974 no_entry_flag= 9975 else 9976 # If we're using GNU nm, then we don't want the "-C" option. 9977 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9978 # Without the "-l" option, or with the "-B" option, AIX nm treats 9979 # weak defined symbols like other global defined symbols, whereas 9980 # GNU nm marks them as "W". 9981 # While the 'weak' keyword is ignored in the Export File, we need 9982 # it in the Import File for the 'aix-soname' feature, so we have 9983 # to replace the "-B" option with "-P" for AIX nm. 9984 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9985 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9986 else 9987 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9988 fi 9989 aix_use_runtimelinking=no 9990 9991 # Test if we are trying to use run time linking or normal 9992 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9993 # have runtime linking enabled, and use it for executables. 9994 # For shared libraries, we enable/disable runtime linking 9995 # depending on the kind of the shared library created - 9996 # when "with_aix_soname,aix_use_runtimelinking" is: 9997 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9998 # "aix,yes" lib.so shared, rtl:yes, for executables 9999 # lib.a static archive 10000 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10001 # lib.a(lib.so.V) shared, rtl:no, for executables 10002 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10003 # lib.a(lib.so.V) shared, rtl:no 10004 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10005 # lib.a static archive 10006 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10007 for ld_flag in $LDFLAGS; do 10008 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10009 aix_use_runtimelinking=yes 10010 break 10011 fi 10012 done 10013 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10014 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10015 # so we don't have lib.a shared libs to link our executables. 10016 # We have to force runtime linking in this case. 10017 aix_use_runtimelinking=yes 10018 LDFLAGS="$LDFLAGS -Wl,-brtl" 10019 fi 10020 ;; 10021 esac 10022 10023 exp_sym_flag='-bexport' 10024 no_entry_flag='-bnoentry' 10025 fi 10026 10027 # When large executables or shared objects are built, AIX ld can 10028 # have problems creating the table of contents. If linking a library 10029 # or program results in "error TOC overflow" add -mminimal-toc to 10030 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10031 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10032 10033 archive_cmds='' 10034 hardcode_direct=yes 10035 hardcode_direct_absolute=yes 10036 hardcode_libdir_separator=':' 10037 link_all_deplibs=yes 10038 file_list_spec='$wl-f,' 10039 case $with_aix_soname,$aix_use_runtimelinking in 10040 aix,*) ;; # traditional, no import file 10041 svr4,* | *,yes) # use import file 10042 # The Import File defines what to hardcode. 10043 hardcode_direct=no 10044 hardcode_direct_absolute=no 10045 ;; 10046 esac 10047 10048 if test yes = "$GCC"; then 10049 case $host_os in aix4.[012]|aix4.[012].*) 10050 # We only want to do this on AIX 4.2 and lower, the check 10051 # below for broken collect2 doesn't work under 4.3+ 10052 collect2name=`$CC -print-prog-name=collect2` 10053 if test -f "$collect2name" && 10054 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10055 then 10056 # We have reworked collect2 10057 : 10058 else 10059 # We have old collect2 10060 hardcode_direct=unsupported 10061 # It fails to find uninstalled libraries when the uninstalled 10062 # path is not listed in the libpath. Setting hardcode_minus_L 10063 # to unsupported forces relinking 10064 hardcode_minus_L=yes 10065 hardcode_libdir_flag_spec='-L$libdir' 10066 hardcode_libdir_separator= 10067 fi 10068 ;; 10069 esac 10070 shared_flag='-shared' 10071 if test yes = "$aix_use_runtimelinking"; then 10072 shared_flag="$shared_flag "'$wl-G' 10073 fi 10074 # Need to ensure runtime linking is disabled for the traditional 10075 # shared library, or the linker may eventually find shared libraries 10076 # /with/ Import File - we do not want to mix them. 10077 shared_flag_aix='-shared' 10078 shared_flag_svr4='-shared $wl-G' 10079 else 10080 # not using gcc 10081 if test ia64 = "$host_cpu"; then 10082 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10083 # chokes on -Wl,-G. The following line is correct: 10084 shared_flag='-G' 10085 else 10086 if test yes = "$aix_use_runtimelinking"; then 10087 shared_flag='$wl-G' 10088 else 10089 shared_flag='$wl-bM:SRE' 10090 fi 10091 shared_flag_aix='$wl-bM:SRE' 10092 shared_flag_svr4='$wl-G' 10093 fi 10094 fi 10095 10096 export_dynamic_flag_spec='$wl-bexpall' 10097 # It seems that -bexpall does not export symbols beginning with 10098 # underscore (_), so it is better to generate a list of symbols to export. 10099 always_export_symbols=yes 10100 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10101 # Warning - without using the other runtime loading flags (-brtl), 10102 # -berok will link without error, but may produce a broken library. 10103 allow_undefined_flag='-berok' 10104 # Determine the default libpath from the value encoded in an 10105 # empty executable. 10106 if test set = "${lt_cv_aix_libpath+set}"; then 10107 aix_libpath=$lt_cv_aix_libpath 10108else 10109 if test ${lt_cv_aix_libpath_+y} 10110then : 10111 printf %s "(cached) " >&6 10112else $as_nop 10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10114/* end confdefs.h. */ 10115 10116int 10117main (void) 10118{ 10119 10120 ; 10121 return 0; 10122} 10123_ACEOF 10124if ac_fn_c_try_link "$LINENO" 10125then : 10126 10127 lt_aix_libpath_sed=' 10128 /Import File Strings/,/^$/ { 10129 /^0/ { 10130 s/^0 *\([^ ]*\) *$/\1/ 10131 p 10132 } 10133 }' 10134 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10135 # Check for a 64-bit object if we didn't find anything. 10136 if test -z "$lt_cv_aix_libpath_"; then 10137 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10138 fi 10139fi 10140rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10141 conftest$ac_exeext conftest.$ac_ext 10142 if test -z "$lt_cv_aix_libpath_"; then 10143 lt_cv_aix_libpath_=/usr/lib:/lib 10144 fi 10145 10146fi 10147 10148 aix_libpath=$lt_cv_aix_libpath_ 10149fi 10150 10151 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10152 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10153 else 10154 if test ia64 = "$host_cpu"; then 10155 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10156 allow_undefined_flag="-z nodefs" 10157 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 10158 else 10159 # Determine the default libpath from the value encoded in an 10160 # empty executable. 10161 if test set = "${lt_cv_aix_libpath+set}"; then 10162 aix_libpath=$lt_cv_aix_libpath 10163else 10164 if test ${lt_cv_aix_libpath_+y} 10165then : 10166 printf %s "(cached) " >&6 10167else $as_nop 10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10169/* end confdefs.h. */ 10170 10171int 10172main (void) 10173{ 10174 10175 ; 10176 return 0; 10177} 10178_ACEOF 10179if ac_fn_c_try_link "$LINENO" 10180then : 10181 10182 lt_aix_libpath_sed=' 10183 /Import File Strings/,/^$/ { 10184 /^0/ { 10185 s/^0 *\([^ ]*\) *$/\1/ 10186 p 10187 } 10188 }' 10189 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10190 # Check for a 64-bit object if we didn't find anything. 10191 if test -z "$lt_cv_aix_libpath_"; then 10192 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10193 fi 10194fi 10195rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10196 conftest$ac_exeext conftest.$ac_ext 10197 if test -z "$lt_cv_aix_libpath_"; then 10198 lt_cv_aix_libpath_=/usr/lib:/lib 10199 fi 10200 10201fi 10202 10203 aix_libpath=$lt_cv_aix_libpath_ 10204fi 10205 10206 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10207 # Warning - without using the other run time loading flags, 10208 # -berok will link without error, but may produce a broken library. 10209 no_undefined_flag=' $wl-bernotok' 10210 allow_undefined_flag=' $wl-berok' 10211 if test yes = "$with_gnu_ld"; then 10212 # We only use this code for GNU lds that support --whole-archive. 10213 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10214 else 10215 # Exported symbols can be pulled into shared objects from archives 10216 whole_archive_flag_spec='$convenience' 10217 fi 10218 archive_cmds_need_lc=yes 10219 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10220 # -brtl affects multiple linker settings, -berok does not and is overridden later 10221 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10222 if test svr4 != "$with_aix_soname"; then 10223 # This is similar to how AIX traditionally builds its shared libraries. 10224 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10225 fi 10226 if test aix != "$with_aix_soname"; then 10227 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10228 else 10229 # used by -dlpreopen to get the symbols 10230 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10231 fi 10232 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10233 fi 10234 fi 10235 ;; 10236 10237 amigaos*) 10238 case $host_cpu in 10239 powerpc) 10240 # see comment about AmigaOS4 .so support 10241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10242 archive_expsym_cmds='' 10243 ;; 10244 m68k) 10245 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 10246 hardcode_libdir_flag_spec='-L$libdir' 10247 hardcode_minus_L=yes 10248 ;; 10249 esac 10250 ;; 10251 10252 bsdi[45]*) 10253 export_dynamic_flag_spec=-rdynamic 10254 ;; 10255 10256 cygwin* | mingw* | pw32* | cegcc*) 10257 # When not using gcc, we currently assume that we are using 10258 # Microsoft Visual C++ or Intel C++ Compiler. 10259 # hardcode_libdir_flag_spec is actually meaningless, as there is 10260 # no search path for DLLs. 10261 case $cc_basename in 10262 cl* | icl*) 10263 # Native MSVC or ICC 10264 hardcode_libdir_flag_spec=' ' 10265 allow_undefined_flag=unsupported 10266 always_export_symbols=yes 10267 file_list_spec='@' 10268 # Tell ltmain to make .lib files, not .a files. 10269 libext=lib 10270 # Tell ltmain to make .dll files, not .so files. 10271 shrext_cmds=.dll 10272 # FIXME: Setting linknames here is a bad hack. 10273 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10274 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10275 cp "$export_symbols" "$output_objdir/$soname.def"; 10276 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10277 else 10278 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10279 fi~ 10280 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10281 linknames=' 10282 # The linker will not automatically build a static lib if we build a DLL. 10283 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10284 enable_shared_with_static_runtimes=yes 10285 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10286 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10287 # Don't use ranlib 10288 old_postinstall_cmds='chmod 644 $oldlib' 10289 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10290 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10291 case $lt_outputfile in 10292 *.exe|*.EXE) ;; 10293 *) 10294 lt_outputfile=$lt_outputfile.exe 10295 lt_tool_outputfile=$lt_tool_outputfile.exe 10296 ;; 10297 esac~ 10298 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10299 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10300 $RM "$lt_outputfile.manifest"; 10301 fi' 10302 ;; 10303 *) 10304 # Assume MSVC and ICC wrapper 10305 hardcode_libdir_flag_spec=' ' 10306 allow_undefined_flag=unsupported 10307 # Tell ltmain to make .lib files, not .a files. 10308 libext=lib 10309 # Tell ltmain to make .dll files, not .so files. 10310 shrext_cmds=.dll 10311 # FIXME: Setting linknames here is a bad hack. 10312 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10313 # The linker will automatically build a .lib file if we build a DLL. 10314 old_archive_from_new_cmds='true' 10315 # FIXME: Should let the user specify the lib program. 10316 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10317 enable_shared_with_static_runtimes=yes 10318 ;; 10319 esac 10320 ;; 10321 10322 darwin* | rhapsody*) 10323 10324 10325 archive_cmds_need_lc=no 10326 hardcode_direct=no 10327 hardcode_automatic=yes 10328 hardcode_shlibpath_var=unsupported 10329 if test yes = "$lt_cv_ld_force_load"; then 10330 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 10331 10332 else 10333 whole_archive_flag_spec='' 10334 fi 10335 link_all_deplibs=yes 10336 allow_undefined_flag=$_lt_dar_allow_undefined 10337 case $cc_basename in 10338 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10339 *) _lt_dar_can_shared=$GCC ;; 10340 esac 10341 if test yes = "$_lt_dar_can_shared"; then 10342 output_verbose_link_cmd=func_echo_all 10343 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10344 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10345 archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 10346 module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 10347 10348 else 10349 ld_shlibs=no 10350 fi 10351 10352 ;; 10353 10354 dgux*) 10355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10356 hardcode_libdir_flag_spec='-L$libdir' 10357 hardcode_shlibpath_var=no 10358 ;; 10359 10360 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10361 # support. Future versions do this automatically, but an explicit c++rt0.o 10362 # does not break anything, and helps significantly (at the cost of a little 10363 # extra space). 10364 freebsd2.2*) 10365 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10366 hardcode_libdir_flag_spec='-R$libdir' 10367 hardcode_direct=yes 10368 hardcode_shlibpath_var=no 10369 ;; 10370 10371 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10372 freebsd2.*) 10373 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10374 hardcode_direct=yes 10375 hardcode_minus_L=yes 10376 hardcode_shlibpath_var=no 10377 ;; 10378 10379 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10380 freebsd* | dragonfly* | midnightbsd*) 10381 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10382 hardcode_libdir_flag_spec='-R$libdir' 10383 hardcode_direct=yes 10384 hardcode_shlibpath_var=no 10385 ;; 10386 10387 hpux9*) 10388 if test yes = "$GCC"; then 10389 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10390 else 10391 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10392 fi 10393 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10394 hardcode_libdir_separator=: 10395 hardcode_direct=yes 10396 10397 # hardcode_minus_L: Not really in the search PATH, 10398 # but as the default location of the library. 10399 hardcode_minus_L=yes 10400 export_dynamic_flag_spec='$wl-E' 10401 ;; 10402 10403 hpux10*) 10404 if test yes,no = "$GCC,$with_gnu_ld"; then 10405 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10406 else 10407 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10408 fi 10409 if test no = "$with_gnu_ld"; then 10410 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10411 hardcode_libdir_separator=: 10412 hardcode_direct=yes 10413 hardcode_direct_absolute=yes 10414 export_dynamic_flag_spec='$wl-E' 10415 # hardcode_minus_L: Not really in the search PATH, 10416 # but as the default location of the library. 10417 hardcode_minus_L=yes 10418 fi 10419 ;; 10420 10421 hpux11*) 10422 if test yes,no = "$GCC,$with_gnu_ld"; then 10423 case $host_cpu in 10424 hppa*64*) 10425 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10426 ;; 10427 ia64*) 10428 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10429 ;; 10430 *) 10431 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10432 ;; 10433 esac 10434 else 10435 case $host_cpu in 10436 hppa*64*) 10437 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10438 ;; 10439 ia64*) 10440 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10441 ;; 10442 *) 10443 10444 # Older versions of the 11.00 compiler do not understand -b yet 10445 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10447printf %s "checking if $CC understands -b... " >&6; } 10448if test ${lt_cv_prog_compiler__b+y} 10449then : 10450 printf %s "(cached) " >&6 10451else $as_nop 10452 lt_cv_prog_compiler__b=no 10453 save_LDFLAGS=$LDFLAGS 10454 LDFLAGS="$LDFLAGS -b" 10455 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10456 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10457 # The linker can only warn and ignore the option if not recognized 10458 # So say no if there are warnings 10459 if test -s conftest.err; then 10460 # Append any errors to the config.log. 10461 cat conftest.err 1>&5 10462 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10464 if diff conftest.exp conftest.er2 >/dev/null; then 10465 lt_cv_prog_compiler__b=yes 10466 fi 10467 else 10468 lt_cv_prog_compiler__b=yes 10469 fi 10470 fi 10471 $RM -r conftest* 10472 LDFLAGS=$save_LDFLAGS 10473 10474fi 10475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10476printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10477 10478if test yes = "$lt_cv_prog_compiler__b"; then 10479 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10480else 10481 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10482fi 10483 10484 ;; 10485 esac 10486 fi 10487 if test no = "$with_gnu_ld"; then 10488 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10489 hardcode_libdir_separator=: 10490 10491 case $host_cpu in 10492 hppa*64*|ia64*) 10493 hardcode_direct=no 10494 hardcode_shlibpath_var=no 10495 ;; 10496 *) 10497 hardcode_direct=yes 10498 hardcode_direct_absolute=yes 10499 export_dynamic_flag_spec='$wl-E' 10500 10501 # hardcode_minus_L: Not really in the search PATH, 10502 # but as the default location of the library. 10503 hardcode_minus_L=yes 10504 ;; 10505 esac 10506 fi 10507 ;; 10508 10509 irix5* | irix6* | nonstopux*) 10510 if test yes = "$GCC"; then 10511 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10512 # Try to use the -exported_symbol ld option, if it does not 10513 # work, assume that -exports_file does not work either and 10514 # implicitly export all symbols. 10515 # This should be the same for all languages, so no per-tag cache variable. 10516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10517printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10518if test ${lt_cv_irix_exported_symbol+y} 10519then : 10520 printf %s "(cached) " >&6 10521else $as_nop 10522 save_LDFLAGS=$LDFLAGS 10523 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10525/* end confdefs.h. */ 10526int foo (void) { return 0; } 10527_ACEOF 10528if ac_fn_c_try_link "$LINENO" 10529then : 10530 lt_cv_irix_exported_symbol=yes 10531else $as_nop 10532 lt_cv_irix_exported_symbol=no 10533fi 10534rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10535 conftest$ac_exeext conftest.$ac_ext 10536 LDFLAGS=$save_LDFLAGS 10537fi 10538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10539printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10540 if test yes = "$lt_cv_irix_exported_symbol"; then 10541 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 10542 fi 10543 else 10544 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10545 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 10546 fi 10547 archive_cmds_need_lc='no' 10548 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10549 hardcode_libdir_separator=: 10550 inherit_rpath=yes 10551 link_all_deplibs=yes 10552 ;; 10553 10554 linux*) 10555 case $cc_basename in 10556 tcc*) 10557 # Fabrice Bellard et al's Tiny C Compiler 10558 ld_shlibs=yes 10559 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10560 ;; 10561 esac 10562 ;; 10563 10564 netbsd*) 10565 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10566 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10567 else 10568 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10569 fi 10570 hardcode_libdir_flag_spec='-R$libdir' 10571 hardcode_direct=yes 10572 hardcode_shlibpath_var=no 10573 ;; 10574 10575 newsos6) 10576 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10577 hardcode_direct=yes 10578 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10579 hardcode_libdir_separator=: 10580 hardcode_shlibpath_var=no 10581 ;; 10582 10583 *nto* | *qnx*) 10584 ;; 10585 10586 openbsd* | bitrig*) 10587 if test -f /usr/libexec/ld.so; then 10588 hardcode_direct=yes 10589 hardcode_shlibpath_var=no 10590 hardcode_direct_absolute=yes 10591 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10592 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10593 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10594 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10595 export_dynamic_flag_spec='$wl-E' 10596 else 10597 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10598 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10599 fi 10600 else 10601 ld_shlibs=no 10602 fi 10603 ;; 10604 10605 os2*) 10606 hardcode_libdir_flag_spec='-L$libdir' 10607 hardcode_minus_L=yes 10608 allow_undefined_flag=unsupported 10609 shrext_cmds=.dll 10610 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10611 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10612 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10613 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10614 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10615 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10616 emximp -o $lib $output_objdir/$libname.def' 10617 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10618 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10619 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10620 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10621 prefix_cmds="$SED"~ 10622 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10623 prefix_cmds="$prefix_cmds -e 1d"; 10624 fi~ 10625 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10626 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10627 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10628 emximp -o $lib $output_objdir/$libname.def' 10629 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10630 enable_shared_with_static_runtimes=yes 10631 file_list_spec='@' 10632 ;; 10633 10634 osf3*) 10635 if test yes = "$GCC"; then 10636 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10637 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10638 else 10639 allow_undefined_flag=' -expect_unresolved \*' 10640 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10641 fi 10642 archive_cmds_need_lc='no' 10643 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10644 hardcode_libdir_separator=: 10645 ;; 10646 10647 osf4* | osf5*) # as osf3* with the addition of -msym flag 10648 if test yes = "$GCC"; then 10649 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10650 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10651 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10652 else 10653 allow_undefined_flag=' -expect_unresolved \*' 10654 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10655 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 10656 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 10657 10658 # Both c and cxx compiler support -rpath directly 10659 hardcode_libdir_flag_spec='-rpath $libdir' 10660 fi 10661 archive_cmds_need_lc='no' 10662 hardcode_libdir_separator=: 10663 ;; 10664 10665 solaris*) 10666 no_undefined_flag=' -z defs' 10667 if test yes = "$GCC"; then 10668 wlarc='$wl' 10669 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10670 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10671 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10672 else 10673 case `$CC -V 2>&1` in 10674 *"Compilers 5.0"*) 10675 wlarc='' 10676 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10677 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10678 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10679 ;; 10680 *) 10681 wlarc='$wl' 10682 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10683 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10684 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10685 ;; 10686 esac 10687 fi 10688 hardcode_libdir_flag_spec='-R$libdir' 10689 hardcode_shlibpath_var=no 10690 case $host_os in 10691 solaris2.[0-5] | solaris2.[0-5].*) ;; 10692 *) 10693 # The compiler driver will combine and reorder linker options, 10694 # but understands '-z linker_flag'. GCC discards it without '$wl', 10695 # but is careful enough not to reorder. 10696 # Supported since Solaris 2.6 (maybe 2.5.1?) 10697 if test yes = "$GCC"; then 10698 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10699 else 10700 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10701 fi 10702 ;; 10703 esac 10704 link_all_deplibs=yes 10705 ;; 10706 10707 sunos4*) 10708 if test sequent = "$host_vendor"; then 10709 # Use $CC to link under sequent, because it throws in some extra .o 10710 # files that make .init and .fini sections work. 10711 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10712 else 10713 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10714 fi 10715 hardcode_libdir_flag_spec='-L$libdir' 10716 hardcode_direct=yes 10717 hardcode_minus_L=yes 10718 hardcode_shlibpath_var=no 10719 ;; 10720 10721 sysv4) 10722 case $host_vendor in 10723 sni) 10724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10725 hardcode_direct=yes # is this really true??? 10726 ;; 10727 siemens) 10728 ## LD is ld it makes a PLAMLIB 10729 ## CC just makes a GrossModule. 10730 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10731 reload_cmds='$CC -r -o $output$reload_objs' 10732 hardcode_direct=no 10733 ;; 10734 motorola) 10735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10736 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10737 ;; 10738 esac 10739 runpath_var='LD_RUN_PATH' 10740 hardcode_shlibpath_var=no 10741 ;; 10742 10743 sysv4.3*) 10744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10745 hardcode_shlibpath_var=no 10746 export_dynamic_flag_spec='-Bexport' 10747 ;; 10748 10749 sysv4*MP*) 10750 if test -d /usr/nec; then 10751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10752 hardcode_shlibpath_var=no 10753 runpath_var=LD_RUN_PATH 10754 hardcode_runpath_var=yes 10755 ld_shlibs=yes 10756 fi 10757 ;; 10758 10759 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10760 no_undefined_flag='$wl-z,text' 10761 archive_cmds_need_lc=no 10762 hardcode_shlibpath_var=no 10763 runpath_var='LD_RUN_PATH' 10764 10765 if test yes = "$GCC"; then 10766 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10767 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10768 else 10769 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10770 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10771 fi 10772 ;; 10773 10774 sysv5* | sco3.2v5* | sco5v6*) 10775 # Note: We CANNOT use -z defs as we might desire, because we do not 10776 # link with -lc, and that would cause any symbols used from libc to 10777 # always be unresolved, which means just about no library would 10778 # ever link correctly. If we're not using GNU ld we use -z text 10779 # though, which does catch some bad symbols but isn't as heavy-handed 10780 # as -z defs. 10781 no_undefined_flag='$wl-z,text' 10782 allow_undefined_flag='$wl-z,nodefs' 10783 archive_cmds_need_lc=no 10784 hardcode_shlibpath_var=no 10785 hardcode_libdir_flag_spec='$wl-R,$libdir' 10786 hardcode_libdir_separator=':' 10787 link_all_deplibs=yes 10788 export_dynamic_flag_spec='$wl-Bexport' 10789 runpath_var='LD_RUN_PATH' 10790 10791 if test yes = "$GCC"; then 10792 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10793 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10794 else 10795 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10796 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10797 fi 10798 ;; 10799 10800 uts4*) 10801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10802 hardcode_libdir_flag_spec='-L$libdir' 10803 hardcode_shlibpath_var=no 10804 ;; 10805 10806 *) 10807 ld_shlibs=no 10808 ;; 10809 esac 10810 10811 if test sni = "$host_vendor"; then 10812 case $host in 10813 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10814 export_dynamic_flag_spec='$wl-Blargedynsym' 10815 ;; 10816 esac 10817 fi 10818 fi 10819 10820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10821printf "%s\n" "$ld_shlibs" >&6; } 10822test no = "$ld_shlibs" && can_build_shared=no 10823 10824with_gnu_ld=$with_gnu_ld 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840# 10841# Do we need to explicitly link libc? 10842# 10843case "x$archive_cmds_need_lc" in 10844x|xyes) 10845 # Assume -lc should be added 10846 archive_cmds_need_lc=yes 10847 10848 if test yes,yes = "$GCC,$enable_shared"; then 10849 case $archive_cmds in 10850 *'~'*) 10851 # FIXME: we may have to deal with multi-command sequences. 10852 ;; 10853 '$CC '*) 10854 # Test whether the compiler implicitly links with -lc since on some 10855 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10856 # to ld, don't add -lc before -lgcc. 10857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10858printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10859if test ${lt_cv_archive_cmds_need_lc+y} 10860then : 10861 printf %s "(cached) " >&6 10862else $as_nop 10863 $RM conftest* 10864 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10865 10866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10867 (eval $ac_compile) 2>&5 10868 ac_status=$? 10869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10870 test $ac_status = 0; } 2>conftest.err; then 10871 soname=conftest 10872 lib=conftest 10873 libobjs=conftest.$ac_objext 10874 deplibs= 10875 wl=$lt_prog_compiler_wl 10876 pic_flag=$lt_prog_compiler_pic 10877 compiler_flags=-v 10878 linker_flags=-v 10879 verstring= 10880 output_objdir=. 10881 libname=conftest 10882 lt_save_allow_undefined_flag=$allow_undefined_flag 10883 allow_undefined_flag= 10884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10885 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10886 ac_status=$? 10887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10888 test $ac_status = 0; } 10889 then 10890 lt_cv_archive_cmds_need_lc=no 10891 else 10892 lt_cv_archive_cmds_need_lc=yes 10893 fi 10894 allow_undefined_flag=$lt_save_allow_undefined_flag 10895 else 10896 cat conftest.err 1>&5 10897 fi 10898 $RM conftest* 10899 10900fi 10901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10902printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 10903 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10904 ;; 10905 esac 10906 fi 10907 ;; 10908esac 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11062printf %s "checking dynamic linker characteristics... " >&6; } 11063 11064if test yes = "$GCC"; then 11065 case $host_os in 11066 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11067 *) lt_awk_arg='/^libraries:/' ;; 11068 esac 11069 case $host_os in 11070 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11071 *) lt_sed_strip_eq='s|=/|/|g' ;; 11072 esac 11073 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11074 case $lt_search_path_spec in 11075 *\;*) 11076 # if the path contains ";" then we assume it to be the separator 11077 # otherwise default to the standard path separator (i.e. ":") - it is 11078 # assumed that no part of a normal pathname contains ";" but that should 11079 # okay in the real world where ";" in dirpaths is itself problematic. 11080 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11081 ;; 11082 *) 11083 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11084 ;; 11085 esac 11086 # Ok, now we have the path, separated by spaces, we can step through it 11087 # and add multilib dir if necessary... 11088 lt_tmp_lt_search_path_spec= 11089 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11090 # ...but if some path component already ends with the multilib dir we assume 11091 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11092 case "$lt_multi_os_dir; $lt_search_path_spec " in 11093 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11094 lt_multi_os_dir= 11095 ;; 11096 esac 11097 for lt_sys_path in $lt_search_path_spec; do 11098 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11099 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11100 elif test -n "$lt_multi_os_dir"; then 11101 test -d "$lt_sys_path" && \ 11102 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11103 fi 11104 done 11105 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11106BEGIN {RS = " "; FS = "/|\n";} { 11107 lt_foo = ""; 11108 lt_count = 0; 11109 for (lt_i = NF; lt_i > 0; lt_i--) { 11110 if ($lt_i != "" && $lt_i != ".") { 11111 if ($lt_i == "..") { 11112 lt_count++; 11113 } else { 11114 if (lt_count == 0) { 11115 lt_foo = "/" $lt_i lt_foo; 11116 } else { 11117 lt_count--; 11118 } 11119 } 11120 } 11121 } 11122 if (lt_foo != "") { lt_freq[lt_foo]++; } 11123 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11124}'` 11125 # AWK program above erroneously prepends '/' to C:/dos/paths 11126 # for these hosts. 11127 case $host_os in 11128 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11129 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11130 esac 11131 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11132else 11133 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11134fi 11135library_names_spec= 11136libname_spec='lib$name' 11137soname_spec= 11138shrext_cmds=.so 11139postinstall_cmds= 11140postuninstall_cmds= 11141finish_cmds= 11142finish_eval= 11143shlibpath_var= 11144shlibpath_overrides_runpath=unknown 11145version_type=none 11146dynamic_linker="$host_os ld.so" 11147sys_lib_dlsearch_path_spec="/lib /usr/lib" 11148need_lib_prefix=unknown 11149hardcode_into_libs=no 11150 11151# when you set need_version to no, make sure it does not cause -set_version 11152# flags to be left without arguments 11153need_version=unknown 11154 11155 11156 11157case $host_os in 11158aix3*) 11159 version_type=linux # correct to gnu/linux during the next big refactor 11160 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11161 shlibpath_var=LIBPATH 11162 11163 # AIX 3 has no versioning support, so we append a major version to the name. 11164 soname_spec='$libname$release$shared_ext$major' 11165 ;; 11166 11167aix[4-9]*) 11168 version_type=linux # correct to gnu/linux during the next big refactor 11169 need_lib_prefix=no 11170 need_version=no 11171 hardcode_into_libs=yes 11172 if test ia64 = "$host_cpu"; then 11173 # AIX 5 supports IA64 11174 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11175 shlibpath_var=LD_LIBRARY_PATH 11176 else 11177 # With GCC up to 2.95.x, collect2 would create an import file 11178 # for dependence libraries. The import file would start with 11179 # the line '#! .'. This would cause the generated library to 11180 # depend on '.', always an invalid library. This was fixed in 11181 # development snapshots of GCC prior to 3.0. 11182 case $host_os in 11183 aix4 | aix4.[01] | aix4.[01].*) 11184 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11185 echo ' yes ' 11186 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11187 : 11188 else 11189 can_build_shared=no 11190 fi 11191 ;; 11192 esac 11193 # Using Import Files as archive members, it is possible to support 11194 # filename-based versioning of shared library archives on AIX. While 11195 # this would work for both with and without runtime linking, it will 11196 # prevent static linking of such archives. So we do filename-based 11197 # shared library versioning with .so extension only, which is used 11198 # when both runtime linking and shared linking is enabled. 11199 # Unfortunately, runtime linking may impact performance, so we do 11200 # not want this to be the default eventually. Also, we use the 11201 # versioned .so libs for executables only if there is the -brtl 11202 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11203 # To allow for filename-based versioning support, we need to create 11204 # libNAME.so.V as an archive file, containing: 11205 # *) an Import File, referring to the versioned filename of the 11206 # archive as well as the shared archive member, telling the 11207 # bitwidth (32 or 64) of that shared object, and providing the 11208 # list of exported symbols of that shared object, eventually 11209 # decorated with the 'weak' keyword 11210 # *) the shared object with the F_LOADONLY flag set, to really avoid 11211 # it being seen by the linker. 11212 # At run time we better use the real file rather than another symlink, 11213 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11214 11215 case $with_aix_soname,$aix_use_runtimelinking in 11216 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11217 # soname into executable. Probably we can add versioning support to 11218 # collect2, so additional links can be useful in future. 11219 aix,yes) # traditional libtool 11220 dynamic_linker='AIX unversionable lib.so' 11221 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11222 # instead of lib<name>.a to let people know that these are not 11223 # typical AIX shared libraries. 11224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11225 ;; 11226 aix,no) # traditional AIX only 11227 dynamic_linker='AIX lib.a(lib.so.V)' 11228 # We preserve .a as extension for shared libraries through AIX4.2 11229 # and later when we are not doing run time linking. 11230 library_names_spec='$libname$release.a $libname.a' 11231 soname_spec='$libname$release$shared_ext$major' 11232 ;; 11233 svr4,*) # full svr4 only 11234 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11235 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11236 # We do not specify a path in Import Files, so LIBPATH fires. 11237 shlibpath_overrides_runpath=yes 11238 ;; 11239 *,yes) # both, prefer svr4 11240 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11241 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11242 # unpreferred sharedlib libNAME.a needs extra handling 11243 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11244 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11245 # We do not specify a path in Import Files, so LIBPATH fires. 11246 shlibpath_overrides_runpath=yes 11247 ;; 11248 *,no) # both, prefer aix 11249 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11250 library_names_spec='$libname$release.a $libname.a' 11251 soname_spec='$libname$release$shared_ext$major' 11252 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11253 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11254 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11255 ;; 11256 esac 11257 shlibpath_var=LIBPATH 11258 fi 11259 ;; 11260 11261amigaos*) 11262 case $host_cpu in 11263 powerpc) 11264 # Since July 2007 AmigaOS4 officially supports .so libraries. 11265 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11266 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11267 ;; 11268 m68k) 11269 library_names_spec='$libname.ixlibrary $libname.a' 11270 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11271 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11272 ;; 11273 esac 11274 ;; 11275 11276beos*) 11277 library_names_spec='$libname$shared_ext' 11278 dynamic_linker="$host_os ld.so" 11279 shlibpath_var=LIBRARY_PATH 11280 ;; 11281 11282bsdi[45]*) 11283 version_type=linux # correct to gnu/linux during the next big refactor 11284 need_version=no 11285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11286 soname_spec='$libname$release$shared_ext$major' 11287 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11288 shlibpath_var=LD_LIBRARY_PATH 11289 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11290 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11291 # the default ld.so.conf also contains /usr/contrib/lib and 11292 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11293 # libtool to hard-code these into programs 11294 ;; 11295 11296cygwin* | mingw* | pw32* | cegcc*) 11297 version_type=windows 11298 shrext_cmds=.dll 11299 need_version=no 11300 need_lib_prefix=no 11301 11302 case $GCC,$cc_basename in 11303 yes,*) 11304 # gcc 11305 library_names_spec='$libname.dll.a' 11306 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11307 postinstall_cmds='base_file=`basename \$file`~ 11308 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11309 dldir=$destdir/`dirname \$dlpath`~ 11310 test -d \$dldir || mkdir -p \$dldir~ 11311 $install_prog $dir/$dlname \$dldir/$dlname~ 11312 chmod a+x \$dldir/$dlname~ 11313 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11314 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11315 fi' 11316 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11317 dlpath=$dir/\$dldll~ 11318 $RM \$dlpath' 11319 shlibpath_overrides_runpath=yes 11320 11321 case $host_os in 11322 cygwin*) 11323 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11324 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11325 11326 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11327 ;; 11328 mingw* | cegcc*) 11329 # MinGW DLLs use traditional 'lib' prefix 11330 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11331 ;; 11332 pw32*) 11333 # pw32 DLLs use 'pw' prefix rather than 'lib' 11334 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11335 ;; 11336 esac 11337 dynamic_linker='Win32 ld.exe' 11338 ;; 11339 11340 *,cl* | *,icl*) 11341 # Native MSVC or ICC 11342 libname_spec='$name' 11343 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11344 library_names_spec='$libname.dll.lib' 11345 11346 case $build_os in 11347 mingw*) 11348 sys_lib_search_path_spec= 11349 lt_save_ifs=$IFS 11350 IFS=';' 11351 for lt_path in $LIB 11352 do 11353 IFS=$lt_save_ifs 11354 # Let DOS variable expansion print the short 8.3 style file name. 11355 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11356 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11357 done 11358 IFS=$lt_save_ifs 11359 # Convert to MSYS style. 11360 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11361 ;; 11362 cygwin*) 11363 # Convert to unix form, then to dos form, then back to unix form 11364 # but this time dos style (no spaces!) so that the unix form looks 11365 # like /cygdrive/c/PROGRA~1:/cygdr... 11366 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11367 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11368 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11369 ;; 11370 *) 11371 sys_lib_search_path_spec=$LIB 11372 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11373 # It is most probably a Windows format PATH. 11374 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11375 else 11376 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11377 fi 11378 # FIXME: find the short name or the path components, as spaces are 11379 # common. (e.g. "Program Files" -> "PROGRA~1") 11380 ;; 11381 esac 11382 11383 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11384 postinstall_cmds='base_file=`basename \$file`~ 11385 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11386 dldir=$destdir/`dirname \$dlpath`~ 11387 test -d \$dldir || mkdir -p \$dldir~ 11388 $install_prog $dir/$dlname \$dldir/$dlname' 11389 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11390 dlpath=$dir/\$dldll~ 11391 $RM \$dlpath' 11392 shlibpath_overrides_runpath=yes 11393 dynamic_linker='Win32 link.exe' 11394 ;; 11395 11396 *) 11397 # Assume MSVC and ICC wrapper 11398 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11399 dynamic_linker='Win32 ld.exe' 11400 ;; 11401 esac 11402 # FIXME: first we should search . and the directory the executable is in 11403 shlibpath_var=PATH 11404 ;; 11405 11406darwin* | rhapsody*) 11407 dynamic_linker="$host_os dyld" 11408 version_type=darwin 11409 need_lib_prefix=no 11410 need_version=no 11411 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11412 soname_spec='$libname$release$major$shared_ext' 11413 shlibpath_overrides_runpath=yes 11414 shlibpath_var=DYLD_LIBRARY_PATH 11415 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11416 11417 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11418 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11419 ;; 11420 11421dgux*) 11422 version_type=linux # correct to gnu/linux during the next big refactor 11423 need_lib_prefix=no 11424 need_version=no 11425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11426 soname_spec='$libname$release$shared_ext$major' 11427 shlibpath_var=LD_LIBRARY_PATH 11428 ;; 11429 11430freebsd* | dragonfly* | midnightbsd*) 11431 # DragonFly does not have aout. When/if they implement a new 11432 # versioning mechanism, adjust this. 11433 if test -x /usr/bin/objformat; then 11434 objformat=`/usr/bin/objformat` 11435 else 11436 case $host_os in 11437 freebsd[23].*) objformat=aout ;; 11438 *) objformat=elf ;; 11439 esac 11440 fi 11441 version_type=freebsd-$objformat 11442 case $version_type in 11443 freebsd-elf*) 11444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11445 soname_spec='$libname$release$shared_ext$major' 11446 need_version=no 11447 need_lib_prefix=no 11448 ;; 11449 freebsd-*) 11450 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11451 need_version=yes 11452 ;; 11453 esac 11454 shlibpath_var=LD_LIBRARY_PATH 11455 case $host_os in 11456 freebsd2.*) 11457 shlibpath_overrides_runpath=yes 11458 ;; 11459 freebsd3.[01]* | freebsdelf3.[01]*) 11460 shlibpath_overrides_runpath=yes 11461 hardcode_into_libs=yes 11462 ;; 11463 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11464 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11465 shlibpath_overrides_runpath=no 11466 hardcode_into_libs=yes 11467 ;; 11468 *) # from 4.6 on, and DragonFly 11469 shlibpath_overrides_runpath=yes 11470 hardcode_into_libs=yes 11471 ;; 11472 esac 11473 ;; 11474 11475haiku*) 11476 version_type=linux # correct to gnu/linux during the next big refactor 11477 need_lib_prefix=no 11478 need_version=no 11479 dynamic_linker="$host_os runtime_loader" 11480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11481 soname_spec='$libname$release$shared_ext$major' 11482 shlibpath_var=LIBRARY_PATH 11483 shlibpath_overrides_runpath=no 11484 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11485 hardcode_into_libs=yes 11486 ;; 11487 11488hpux9* | hpux10* | hpux11*) 11489 # Give a soname corresponding to the major version so that dld.sl refuses to 11490 # link against other versions. 11491 version_type=sunos 11492 need_lib_prefix=no 11493 need_version=no 11494 case $host_cpu in 11495 ia64*) 11496 shrext_cmds='.so' 11497 hardcode_into_libs=yes 11498 dynamic_linker="$host_os dld.so" 11499 shlibpath_var=LD_LIBRARY_PATH 11500 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11501 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11502 soname_spec='$libname$release$shared_ext$major' 11503 if test 32 = "$HPUX_IA64_MODE"; then 11504 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11505 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11506 else 11507 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11508 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11509 fi 11510 ;; 11511 hppa*64*) 11512 shrext_cmds='.sl' 11513 hardcode_into_libs=yes 11514 dynamic_linker="$host_os dld.sl" 11515 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11516 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11518 soname_spec='$libname$release$shared_ext$major' 11519 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11520 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11521 ;; 11522 *) 11523 shrext_cmds='.sl' 11524 dynamic_linker="$host_os dld.sl" 11525 shlibpath_var=SHLIB_PATH 11526 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11527 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11528 soname_spec='$libname$release$shared_ext$major' 11529 ;; 11530 esac 11531 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11532 postinstall_cmds='chmod 555 $lib' 11533 # or fails outright, so override atomically: 11534 install_override_mode=555 11535 ;; 11536 11537interix[3-9]*) 11538 version_type=linux # correct to gnu/linux during the next big refactor 11539 need_lib_prefix=no 11540 need_version=no 11541 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11542 soname_spec='$libname$release$shared_ext$major' 11543 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11544 shlibpath_var=LD_LIBRARY_PATH 11545 shlibpath_overrides_runpath=no 11546 hardcode_into_libs=yes 11547 ;; 11548 11549irix5* | irix6* | nonstopux*) 11550 case $host_os in 11551 nonstopux*) version_type=nonstopux ;; 11552 *) 11553 if test yes = "$lt_cv_prog_gnu_ld"; then 11554 version_type=linux # correct to gnu/linux during the next big refactor 11555 else 11556 version_type=irix 11557 fi ;; 11558 esac 11559 need_lib_prefix=no 11560 need_version=no 11561 soname_spec='$libname$release$shared_ext$major' 11562 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11563 case $host_os in 11564 irix5* | nonstopux*) 11565 libsuff= shlibsuff= 11566 ;; 11567 *) 11568 case $LD in # libtool.m4 will add one of these switches to LD 11569 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11570 libsuff= shlibsuff= libmagic=32-bit;; 11571 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11572 libsuff=32 shlibsuff=N32 libmagic=N32;; 11573 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11574 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11575 *) libsuff= shlibsuff= libmagic=never-match;; 11576 esac 11577 ;; 11578 esac 11579 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11580 shlibpath_overrides_runpath=no 11581 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11582 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11583 hardcode_into_libs=yes 11584 ;; 11585 11586# No shared lib support for Linux oldld, aout, or coff. 11587linux*oldld* | linux*aout* | linux*coff*) 11588 dynamic_linker=no 11589 ;; 11590 11591linux*android*) 11592 version_type=none # Android doesn't support versioned libraries. 11593 need_lib_prefix=no 11594 need_version=no 11595 library_names_spec='$libname$release$shared_ext' 11596 soname_spec='$libname$release$shared_ext' 11597 finish_cmds= 11598 shlibpath_var=LD_LIBRARY_PATH 11599 shlibpath_overrides_runpath=yes 11600 11601 # This implies no fast_install, which is unacceptable. 11602 # Some rework will be needed to allow for fast_install 11603 # before this can be enabled. 11604 hardcode_into_libs=yes 11605 11606 dynamic_linker='Android linker' 11607 # Don't embed -rpath directories since the linker doesn't support them. 11608 hardcode_libdir_flag_spec='-L$libdir' 11609 ;; 11610 11611# This must be glibc/ELF. 11612linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11613 version_type=linux # correct to gnu/linux during the next big refactor 11614 need_lib_prefix=no 11615 need_version=no 11616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11617 soname_spec='$libname$release$shared_ext$major' 11618 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11619 shlibpath_var=LD_LIBRARY_PATH 11620 shlibpath_overrides_runpath=no 11621 11622 # Some binutils ld are patched to set DT_RUNPATH 11623 if test ${lt_cv_shlibpath_overrides_runpath+y} 11624then : 11625 printf %s "(cached) " >&6 11626else $as_nop 11627 lt_cv_shlibpath_overrides_runpath=no 11628 save_LDFLAGS=$LDFLAGS 11629 save_libdir=$libdir 11630 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11631 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11633/* end confdefs.h. */ 11634 11635int 11636main (void) 11637{ 11638 11639 ; 11640 return 0; 11641} 11642_ACEOF 11643if ac_fn_c_try_link "$LINENO" 11644then : 11645 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11646then : 11647 lt_cv_shlibpath_overrides_runpath=yes 11648fi 11649fi 11650rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11651 conftest$ac_exeext conftest.$ac_ext 11652 LDFLAGS=$save_LDFLAGS 11653 libdir=$save_libdir 11654 11655fi 11656 11657 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11658 11659 # This implies no fast_install, which is unacceptable. 11660 # Some rework will be needed to allow for fast_install 11661 # before this can be enabled. 11662 hardcode_into_libs=yes 11663 11664 # Ideally, we could use ldconfig to report *all* directores which are 11665 # searched for libraries, however this is still not possible. Aside from not 11666 # being certain /sbin/ldconfig is available, command 11667 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11668 # even though it is searched at run-time. Try to do the best guess by 11669 # appending ld.so.conf contents (and includes) to the search path. 11670 if test -f /etc/ld.so.conf; then 11671 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 11672 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11673 fi 11674 11675 # We used to test for /lib/ld.so.1 and disable shared libraries on 11676 # powerpc, because MkLinux only supported shared libraries with the 11677 # GNU dynamic linker. Since this was broken with cross compilers, 11678 # most powerpc-linux boxes support dynamic linking these days and 11679 # people can always --disable-shared, the test was removed, and we 11680 # assume the GNU/Linux dynamic linker is in use. 11681 dynamic_linker='GNU/Linux ld.so' 11682 ;; 11683 11684netbsd*) 11685 version_type=sunos 11686 need_lib_prefix=no 11687 need_version=no 11688 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11689 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11691 dynamic_linker='NetBSD (a.out) ld.so' 11692 else 11693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11694 soname_spec='$libname$release$shared_ext$major' 11695 dynamic_linker='NetBSD ld.elf_so' 11696 fi 11697 shlibpath_var=LD_LIBRARY_PATH 11698 shlibpath_overrides_runpath=yes 11699 hardcode_into_libs=yes 11700 ;; 11701 11702newsos6) 11703 version_type=linux # correct to gnu/linux during the next big refactor 11704 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11705 shlibpath_var=LD_LIBRARY_PATH 11706 shlibpath_overrides_runpath=yes 11707 ;; 11708 11709*nto* | *qnx*) 11710 version_type=qnx 11711 need_lib_prefix=no 11712 need_version=no 11713 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11714 soname_spec='$libname$release$shared_ext$major' 11715 shlibpath_var=LD_LIBRARY_PATH 11716 shlibpath_overrides_runpath=no 11717 hardcode_into_libs=yes 11718 dynamic_linker='ldqnx.so' 11719 ;; 11720 11721openbsd* | bitrig*) 11722 version_type=sunos 11723 sys_lib_dlsearch_path_spec=/usr/lib 11724 need_lib_prefix=no 11725 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11726 need_version=no 11727 else 11728 need_version=yes 11729 fi 11730 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11732 shlibpath_var=LD_LIBRARY_PATH 11733 shlibpath_overrides_runpath=yes 11734 ;; 11735 11736os2*) 11737 libname_spec='$name' 11738 version_type=windows 11739 shrext_cmds=.dll 11740 need_version=no 11741 need_lib_prefix=no 11742 # OS/2 can only load a DLL with a base name of 8 characters or less. 11743 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11744 v=$($ECHO $release$versuffix | tr -d .-); 11745 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11746 $ECHO $n$v`$shared_ext' 11747 library_names_spec='${libname}_dll.$libext' 11748 dynamic_linker='OS/2 ld.exe' 11749 shlibpath_var=BEGINLIBPATH 11750 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11751 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11752 postinstall_cmds='base_file=`basename \$file`~ 11753 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11754 dldir=$destdir/`dirname \$dlpath`~ 11755 test -d \$dldir || mkdir -p \$dldir~ 11756 $install_prog $dir/$dlname \$dldir/$dlname~ 11757 chmod a+x \$dldir/$dlname~ 11758 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11759 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11760 fi' 11761 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11762 dlpath=$dir/\$dldll~ 11763 $RM \$dlpath' 11764 ;; 11765 11766osf3* | osf4* | osf5*) 11767 version_type=osf 11768 need_lib_prefix=no 11769 need_version=no 11770 soname_spec='$libname$release$shared_ext$major' 11771 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11772 shlibpath_var=LD_LIBRARY_PATH 11773 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11774 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11775 ;; 11776 11777rdos*) 11778 dynamic_linker=no 11779 ;; 11780 11781solaris*) 11782 version_type=linux # correct to gnu/linux during the next big refactor 11783 need_lib_prefix=no 11784 need_version=no 11785 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11786 soname_spec='$libname$release$shared_ext$major' 11787 shlibpath_var=LD_LIBRARY_PATH 11788 shlibpath_overrides_runpath=yes 11789 hardcode_into_libs=yes 11790 # ldd complains unless libraries are executable 11791 postinstall_cmds='chmod +x $lib' 11792 ;; 11793 11794sunos4*) 11795 version_type=sunos 11796 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11797 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11798 shlibpath_var=LD_LIBRARY_PATH 11799 shlibpath_overrides_runpath=yes 11800 if test yes = "$with_gnu_ld"; then 11801 need_lib_prefix=no 11802 fi 11803 need_version=yes 11804 ;; 11805 11806sysv4 | sysv4.3*) 11807 version_type=linux # correct to gnu/linux during the next big refactor 11808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11809 soname_spec='$libname$release$shared_ext$major' 11810 shlibpath_var=LD_LIBRARY_PATH 11811 case $host_vendor in 11812 sni) 11813 shlibpath_overrides_runpath=no 11814 need_lib_prefix=no 11815 runpath_var=LD_RUN_PATH 11816 ;; 11817 siemens) 11818 need_lib_prefix=no 11819 ;; 11820 motorola) 11821 need_lib_prefix=no 11822 need_version=no 11823 shlibpath_overrides_runpath=no 11824 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11825 ;; 11826 esac 11827 ;; 11828 11829sysv4*MP*) 11830 if test -d /usr/nec; then 11831 version_type=linux # correct to gnu/linux during the next big refactor 11832 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11833 soname_spec='$libname$shared_ext.$major' 11834 shlibpath_var=LD_LIBRARY_PATH 11835 fi 11836 ;; 11837 11838sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11839 version_type=sco 11840 need_lib_prefix=no 11841 need_version=no 11842 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11843 soname_spec='$libname$release$shared_ext$major' 11844 shlibpath_var=LD_LIBRARY_PATH 11845 shlibpath_overrides_runpath=yes 11846 hardcode_into_libs=yes 11847 if test yes = "$with_gnu_ld"; then 11848 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11849 else 11850 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11851 case $host_os in 11852 sco3.2v5*) 11853 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11854 ;; 11855 esac 11856 fi 11857 sys_lib_dlsearch_path_spec='/usr/lib' 11858 ;; 11859 11860tpf*) 11861 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11862 version_type=linux # correct to gnu/linux during the next big refactor 11863 need_lib_prefix=no 11864 need_version=no 11865 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11866 shlibpath_var=LD_LIBRARY_PATH 11867 shlibpath_overrides_runpath=no 11868 hardcode_into_libs=yes 11869 ;; 11870 11871uts4*) 11872 version_type=linux # correct to gnu/linux during the next big refactor 11873 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11874 soname_spec='$libname$release$shared_ext$major' 11875 shlibpath_var=LD_LIBRARY_PATH 11876 ;; 11877 11878*) 11879 dynamic_linker=no 11880 ;; 11881esac 11882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11883printf "%s\n" "$dynamic_linker" >&6; } 11884test no = "$dynamic_linker" && can_build_shared=no 11885 11886variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11887if test yes = "$GCC"; then 11888 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11889fi 11890 11891if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11892 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11893fi 11894 11895if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11896 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11897fi 11898 11899# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11900configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11901 11902# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11903func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11904 11905# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11906configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12005printf %s "checking how to hardcode library paths into programs... " >&6; } 12006hardcode_action= 12007if test -n "$hardcode_libdir_flag_spec" || 12008 test -n "$runpath_var" || 12009 test yes = "$hardcode_automatic"; then 12010 12011 # We can hardcode non-existent directories. 12012 if test no != "$hardcode_direct" && 12013 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12014 # have to relink, otherwise we might link with an installed library 12015 # when we should be linking with a yet-to-be-installed one 12016 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12017 test no != "$hardcode_minus_L"; then 12018 # Linking always hardcodes the temporary library directory. 12019 hardcode_action=relink 12020 else 12021 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12022 hardcode_action=immediate 12023 fi 12024else 12025 # We cannot hardcode anything, or else we can only hardcode existing 12026 # directories. 12027 hardcode_action=unsupported 12028fi 12029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12030printf "%s\n" "$hardcode_action" >&6; } 12031 12032if test relink = "$hardcode_action" || 12033 test yes = "$inherit_rpath"; then 12034 # Fast installation is not supported 12035 enable_fast_install=no 12036elif test yes = "$shlibpath_overrides_runpath" || 12037 test no = "$enable_shared"; then 12038 # Fast installation is not necessary 12039 enable_fast_install=needless 12040fi 12041 12042 12043 12044 12045 12046 12047 if test yes != "$enable_dlopen"; then 12048 enable_dlopen=unknown 12049 enable_dlopen_self=unknown 12050 enable_dlopen_self_static=unknown 12051else 12052 lt_cv_dlopen=no 12053 lt_cv_dlopen_libs= 12054 12055 case $host_os in 12056 beos*) 12057 lt_cv_dlopen=load_add_on 12058 lt_cv_dlopen_libs= 12059 lt_cv_dlopen_self=yes 12060 ;; 12061 12062 mingw* | pw32* | cegcc*) 12063 lt_cv_dlopen=LoadLibrary 12064 lt_cv_dlopen_libs= 12065 ;; 12066 12067 cygwin*) 12068 lt_cv_dlopen=dlopen 12069 lt_cv_dlopen_libs= 12070 ;; 12071 12072 darwin*) 12073 # if libdl is installed we need to link against it 12074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12075printf %s "checking for dlopen in -ldl... " >&6; } 12076if test ${ac_cv_lib_dl_dlopen+y} 12077then : 12078 printf %s "(cached) " >&6 12079else $as_nop 12080 ac_check_lib_save_LIBS=$LIBS 12081LIBS="-ldl $LIBS" 12082cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12083/* end confdefs.h. */ 12084 12085/* Override any GCC internal prototype to avoid an error. 12086 Use char because int might match the return type of a GCC 12087 builtin and then its argument prototype would still apply. */ 12088char dlopen (); 12089int 12090main (void) 12091{ 12092return dlopen (); 12093 ; 12094 return 0; 12095} 12096_ACEOF 12097if ac_fn_c_try_link "$LINENO" 12098then : 12099 ac_cv_lib_dl_dlopen=yes 12100else $as_nop 12101 ac_cv_lib_dl_dlopen=no 12102fi 12103rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12104 conftest$ac_exeext conftest.$ac_ext 12105LIBS=$ac_check_lib_save_LIBS 12106fi 12107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12108printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12109if test "x$ac_cv_lib_dl_dlopen" = xyes 12110then : 12111 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12112else $as_nop 12113 12114 lt_cv_dlopen=dyld 12115 lt_cv_dlopen_libs= 12116 lt_cv_dlopen_self=yes 12117 12118fi 12119 12120 ;; 12121 12122 tpf*) 12123 # Don't try to run any link tests for TPF. We know it's impossible 12124 # because TPF is a cross-compiler, and we know how we open DSOs. 12125 lt_cv_dlopen=dlopen 12126 lt_cv_dlopen_libs= 12127 lt_cv_dlopen_self=no 12128 ;; 12129 12130 *) 12131 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12132if test "x$ac_cv_func_shl_load" = xyes 12133then : 12134 lt_cv_dlopen=shl_load 12135else $as_nop 12136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12137printf %s "checking for shl_load in -ldld... " >&6; } 12138if test ${ac_cv_lib_dld_shl_load+y} 12139then : 12140 printf %s "(cached) " >&6 12141else $as_nop 12142 ac_check_lib_save_LIBS=$LIBS 12143LIBS="-ldld $LIBS" 12144cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12145/* end confdefs.h. */ 12146 12147/* Override any GCC internal prototype to avoid an error. 12148 Use char because int might match the return type of a GCC 12149 builtin and then its argument prototype would still apply. */ 12150char shl_load (); 12151int 12152main (void) 12153{ 12154return shl_load (); 12155 ; 12156 return 0; 12157} 12158_ACEOF 12159if ac_fn_c_try_link "$LINENO" 12160then : 12161 ac_cv_lib_dld_shl_load=yes 12162else $as_nop 12163 ac_cv_lib_dld_shl_load=no 12164fi 12165rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12166 conftest$ac_exeext conftest.$ac_ext 12167LIBS=$ac_check_lib_save_LIBS 12168fi 12169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12170printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12171if test "x$ac_cv_lib_dld_shl_load" = xyes 12172then : 12173 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12174else $as_nop 12175 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12176if test "x$ac_cv_func_dlopen" = xyes 12177then : 12178 lt_cv_dlopen=dlopen 12179else $as_nop 12180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12181printf %s "checking for dlopen in -ldl... " >&6; } 12182if test ${ac_cv_lib_dl_dlopen+y} 12183then : 12184 printf %s "(cached) " >&6 12185else $as_nop 12186 ac_check_lib_save_LIBS=$LIBS 12187LIBS="-ldl $LIBS" 12188cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12189/* end confdefs.h. */ 12190 12191/* Override any GCC internal prototype to avoid an error. 12192 Use char because int might match the return type of a GCC 12193 builtin and then its argument prototype would still apply. */ 12194char dlopen (); 12195int 12196main (void) 12197{ 12198return dlopen (); 12199 ; 12200 return 0; 12201} 12202_ACEOF 12203if ac_fn_c_try_link "$LINENO" 12204then : 12205 ac_cv_lib_dl_dlopen=yes 12206else $as_nop 12207 ac_cv_lib_dl_dlopen=no 12208fi 12209rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12210 conftest$ac_exeext conftest.$ac_ext 12211LIBS=$ac_check_lib_save_LIBS 12212fi 12213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12214printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12215if test "x$ac_cv_lib_dl_dlopen" = xyes 12216then : 12217 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12218else $as_nop 12219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12220printf %s "checking for dlopen in -lsvld... " >&6; } 12221if test ${ac_cv_lib_svld_dlopen+y} 12222then : 12223 printf %s "(cached) " >&6 12224else $as_nop 12225 ac_check_lib_save_LIBS=$LIBS 12226LIBS="-lsvld $LIBS" 12227cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12228/* end confdefs.h. */ 12229 12230/* Override any GCC internal prototype to avoid an error. 12231 Use char because int might match the return type of a GCC 12232 builtin and then its argument prototype would still apply. */ 12233char dlopen (); 12234int 12235main (void) 12236{ 12237return dlopen (); 12238 ; 12239 return 0; 12240} 12241_ACEOF 12242if ac_fn_c_try_link "$LINENO" 12243then : 12244 ac_cv_lib_svld_dlopen=yes 12245else $as_nop 12246 ac_cv_lib_svld_dlopen=no 12247fi 12248rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12249 conftest$ac_exeext conftest.$ac_ext 12250LIBS=$ac_check_lib_save_LIBS 12251fi 12252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12253printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12254if test "x$ac_cv_lib_svld_dlopen" = xyes 12255then : 12256 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12257else $as_nop 12258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12259printf %s "checking for dld_link in -ldld... " >&6; } 12260if test ${ac_cv_lib_dld_dld_link+y} 12261then : 12262 printf %s "(cached) " >&6 12263else $as_nop 12264 ac_check_lib_save_LIBS=$LIBS 12265LIBS="-ldld $LIBS" 12266cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12267/* end confdefs.h. */ 12268 12269/* Override any GCC internal prototype to avoid an error. 12270 Use char because int might match the return type of a GCC 12271 builtin and then its argument prototype would still apply. */ 12272char dld_link (); 12273int 12274main (void) 12275{ 12276return dld_link (); 12277 ; 12278 return 0; 12279} 12280_ACEOF 12281if ac_fn_c_try_link "$LINENO" 12282then : 12283 ac_cv_lib_dld_dld_link=yes 12284else $as_nop 12285 ac_cv_lib_dld_dld_link=no 12286fi 12287rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12288 conftest$ac_exeext conftest.$ac_ext 12289LIBS=$ac_check_lib_save_LIBS 12290fi 12291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12292printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12293if test "x$ac_cv_lib_dld_dld_link" = xyes 12294then : 12295 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12296fi 12297 12298 12299fi 12300 12301 12302fi 12303 12304 12305fi 12306 12307 12308fi 12309 12310 12311fi 12312 12313 ;; 12314 esac 12315 12316 if test no = "$lt_cv_dlopen"; then 12317 enable_dlopen=no 12318 else 12319 enable_dlopen=yes 12320 fi 12321 12322 case $lt_cv_dlopen in 12323 dlopen) 12324 save_CPPFLAGS=$CPPFLAGS 12325 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12326 12327 save_LDFLAGS=$LDFLAGS 12328 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12329 12330 save_LIBS=$LIBS 12331 LIBS="$lt_cv_dlopen_libs $LIBS" 12332 12333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12334printf %s "checking whether a program can dlopen itself... " >&6; } 12335if test ${lt_cv_dlopen_self+y} 12336then : 12337 printf %s "(cached) " >&6 12338else $as_nop 12339 if test yes = "$cross_compiling"; then : 12340 lt_cv_dlopen_self=cross 12341else 12342 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12343 lt_status=$lt_dlunknown 12344 cat > conftest.$ac_ext <<_LT_EOF 12345#line $LINENO "configure" 12346#include "confdefs.h" 12347 12348#if HAVE_DLFCN_H 12349#include <dlfcn.h> 12350#endif 12351 12352#include <stdio.h> 12353 12354#ifdef RTLD_GLOBAL 12355# define LT_DLGLOBAL RTLD_GLOBAL 12356#else 12357# ifdef DL_GLOBAL 12358# define LT_DLGLOBAL DL_GLOBAL 12359# else 12360# define LT_DLGLOBAL 0 12361# endif 12362#endif 12363 12364/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12365 find out it does not work in some platform. */ 12366#ifndef LT_DLLAZY_OR_NOW 12367# ifdef RTLD_LAZY 12368# define LT_DLLAZY_OR_NOW RTLD_LAZY 12369# else 12370# ifdef DL_LAZY 12371# define LT_DLLAZY_OR_NOW DL_LAZY 12372# else 12373# ifdef RTLD_NOW 12374# define LT_DLLAZY_OR_NOW RTLD_NOW 12375# else 12376# ifdef DL_NOW 12377# define LT_DLLAZY_OR_NOW DL_NOW 12378# else 12379# define LT_DLLAZY_OR_NOW 0 12380# endif 12381# endif 12382# endif 12383# endif 12384#endif 12385 12386/* When -fvisibility=hidden is used, assume the code has been annotated 12387 correspondingly for the symbols needed. */ 12388#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12389int fnord () __attribute__((visibility("default"))); 12390#endif 12391 12392int fnord () { return 42; } 12393int main () 12394{ 12395 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12396 int status = $lt_dlunknown; 12397 12398 if (self) 12399 { 12400 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12401 else 12402 { 12403 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12404 else puts (dlerror ()); 12405 } 12406 /* dlclose (self); */ 12407 } 12408 else 12409 puts (dlerror ()); 12410 12411 return status; 12412} 12413_LT_EOF 12414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12415 (eval $ac_link) 2>&5 12416 ac_status=$? 12417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12418 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12419 (./conftest; exit; ) >&5 2>/dev/null 12420 lt_status=$? 12421 case x$lt_status in 12422 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12423 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12424 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12425 esac 12426 else : 12427 # compilation failed 12428 lt_cv_dlopen_self=no 12429 fi 12430fi 12431rm -fr conftest* 12432 12433 12434fi 12435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12436printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12437 12438 if test yes = "$lt_cv_dlopen_self"; then 12439 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12441printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12442if test ${lt_cv_dlopen_self_static+y} 12443then : 12444 printf %s "(cached) " >&6 12445else $as_nop 12446 if test yes = "$cross_compiling"; then : 12447 lt_cv_dlopen_self_static=cross 12448else 12449 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12450 lt_status=$lt_dlunknown 12451 cat > conftest.$ac_ext <<_LT_EOF 12452#line $LINENO "configure" 12453#include "confdefs.h" 12454 12455#if HAVE_DLFCN_H 12456#include <dlfcn.h> 12457#endif 12458 12459#include <stdio.h> 12460 12461#ifdef RTLD_GLOBAL 12462# define LT_DLGLOBAL RTLD_GLOBAL 12463#else 12464# ifdef DL_GLOBAL 12465# define LT_DLGLOBAL DL_GLOBAL 12466# else 12467# define LT_DLGLOBAL 0 12468# endif 12469#endif 12470 12471/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12472 find out it does not work in some platform. */ 12473#ifndef LT_DLLAZY_OR_NOW 12474# ifdef RTLD_LAZY 12475# define LT_DLLAZY_OR_NOW RTLD_LAZY 12476# else 12477# ifdef DL_LAZY 12478# define LT_DLLAZY_OR_NOW DL_LAZY 12479# else 12480# ifdef RTLD_NOW 12481# define LT_DLLAZY_OR_NOW RTLD_NOW 12482# else 12483# ifdef DL_NOW 12484# define LT_DLLAZY_OR_NOW DL_NOW 12485# else 12486# define LT_DLLAZY_OR_NOW 0 12487# endif 12488# endif 12489# endif 12490# endif 12491#endif 12492 12493/* When -fvisibility=hidden is used, assume the code has been annotated 12494 correspondingly for the symbols needed. */ 12495#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12496int fnord () __attribute__((visibility("default"))); 12497#endif 12498 12499int fnord () { return 42; } 12500int main () 12501{ 12502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12503 int status = $lt_dlunknown; 12504 12505 if (self) 12506 { 12507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12508 else 12509 { 12510 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12511 else puts (dlerror ()); 12512 } 12513 /* dlclose (self); */ 12514 } 12515 else 12516 puts (dlerror ()); 12517 12518 return status; 12519} 12520_LT_EOF 12521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12522 (eval $ac_link) 2>&5 12523 ac_status=$? 12524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12525 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12526 (./conftest; exit; ) >&5 2>/dev/null 12527 lt_status=$? 12528 case x$lt_status in 12529 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12530 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12531 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12532 esac 12533 else : 12534 # compilation failed 12535 lt_cv_dlopen_self_static=no 12536 fi 12537fi 12538rm -fr conftest* 12539 12540 12541fi 12542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12543printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12544 fi 12545 12546 CPPFLAGS=$save_CPPFLAGS 12547 LDFLAGS=$save_LDFLAGS 12548 LIBS=$save_LIBS 12549 ;; 12550 esac 12551 12552 case $lt_cv_dlopen_self in 12553 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12554 *) enable_dlopen_self=unknown ;; 12555 esac 12556 12557 case $lt_cv_dlopen_self_static in 12558 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12559 *) enable_dlopen_self_static=unknown ;; 12560 esac 12561fi 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579striplib= 12580old_striplib= 12581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12582printf %s "checking whether stripping libraries is possible... " >&6; } 12583if test -z "$STRIP"; then 12584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12585printf "%s\n" "no" >&6; } 12586else 12587 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12588 old_striplib="$STRIP --strip-debug" 12589 striplib="$STRIP --strip-unneeded" 12590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12591printf "%s\n" "yes" >&6; } 12592 else 12593 case $host_os in 12594 darwin*) 12595 # FIXME - insert some real tests, host_os isn't really good enough 12596 striplib="$STRIP -x" 12597 old_striplib="$STRIP -S" 12598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12599printf "%s\n" "yes" >&6; } 12600 ;; 12601 freebsd*) 12602 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12603 old_striplib="$STRIP --strip-debug" 12604 striplib="$STRIP --strip-unneeded" 12605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12606printf "%s\n" "yes" >&6; } 12607 else 12608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12609printf "%s\n" "no" >&6; } 12610 fi 12611 ;; 12612 *) 12613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12614printf "%s\n" "no" >&6; } 12615 ;; 12616 esac 12617 fi 12618fi 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 # Report what library types will actually be built 12632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12633printf %s "checking if libtool supports shared libraries... " >&6; } 12634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12635printf "%s\n" "$can_build_shared" >&6; } 12636 12637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12638printf %s "checking whether to build shared libraries... " >&6; } 12639 test no = "$can_build_shared" && enable_shared=no 12640 12641 # On AIX, shared libraries and static libraries use the same namespace, and 12642 # are all built from PIC. 12643 case $host_os in 12644 aix3*) 12645 test yes = "$enable_shared" && enable_static=no 12646 if test -n "$RANLIB"; then 12647 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12648 postinstall_cmds='$RANLIB $lib' 12649 fi 12650 ;; 12651 12652 aix[4-9]*) 12653 if test ia64 != "$host_cpu"; then 12654 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12655 yes,aix,yes) ;; # shared object as lib.so file only 12656 yes,svr4,*) ;; # shared object as lib.so archive member only 12657 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12658 esac 12659 fi 12660 ;; 12661 esac 12662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12663printf "%s\n" "$enable_shared" >&6; } 12664 12665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12666printf %s "checking whether to build static libraries... " >&6; } 12667 # Make sure either enable_shared or enable_static is yes. 12668 test yes = "$enable_shared" || enable_static=yes 12669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12670printf "%s\n" "$enable_static" >&6; } 12671 12672 12673 12674 12675fi 12676ac_ext=c 12677ac_cpp='$CPP $CPPFLAGS' 12678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12680ac_compiler_gnu=$ac_cv_c_compiler_gnu 12681 12682CC=$lt_save_CC 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 ac_config_commands="$ac_config_commands libtool" 12699 12700 12701 12702 12703# Only expand once: 12704 12705 12706 12707# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 12721printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 12722if test ${ac_cv_c_undeclared_builtin_options+y} 12723then : 12724 printf %s "(cached) " >&6 12725else $as_nop 12726 ac_save_CFLAGS=$CFLAGS 12727 ac_cv_c_undeclared_builtin_options='cannot detect' 12728 for ac_arg in '' -fno-builtin; do 12729 CFLAGS="$ac_save_CFLAGS $ac_arg" 12730 # This test program should *not* compile successfully. 12731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12732/* end confdefs.h. */ 12733 12734int 12735main (void) 12736{ 12737(void) strchr; 12738 ; 12739 return 0; 12740} 12741_ACEOF 12742if ac_fn_c_try_compile "$LINENO" 12743then : 12744 12745else $as_nop 12746 # This test program should compile successfully. 12747 # No library function is consistently available on 12748 # freestanding implementations, so test against a dummy 12749 # declaration. Include always-available headers on the 12750 # off chance that they somehow elicit warnings. 12751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12752/* end confdefs.h. */ 12753#include <float.h> 12754#include <limits.h> 12755#include <stdarg.h> 12756#include <stddef.h> 12757extern void ac_decl (int, char *); 12758 12759int 12760main (void) 12761{ 12762(void) ac_decl (0, (char *) 0); 12763 (void) ac_decl; 12764 12765 ; 12766 return 0; 12767} 12768_ACEOF 12769if ac_fn_c_try_compile "$LINENO" 12770then : 12771 if test x"$ac_arg" = x 12772then : 12773 ac_cv_c_undeclared_builtin_options='none needed' 12774else $as_nop 12775 ac_cv_c_undeclared_builtin_options=$ac_arg 12776fi 12777 break 12778fi 12779rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12780fi 12781rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12782 done 12783 CFLAGS=$ac_save_CFLAGS 12784 12785fi 12786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 12787printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 12788 case $ac_cv_c_undeclared_builtin_options in #( 12789 'cannot detect') : 12790 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12791printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12792as_fn_error $? "cannot make $CC report undeclared builtins 12793See \`config.log' for more details" "$LINENO" 5; } ;; #( 12794 'none needed') : 12795 ac_c_undeclared_builtin_options='' ;; #( 12796 *) : 12797 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 12798esac 12799 12800 12801 12802 12803 12804ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12805if test "x$ac_cv_have_decl___clang__" = xyes 12806then : 12807 CLANGCC="yes" 12808else $as_nop 12809 CLANGCC="no" 12810fi 12811ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12812if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 12813then : 12814 INTELCC="yes" 12815else $as_nop 12816 INTELCC="no" 12817fi 12818ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12819if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 12820then : 12821 SUNCC="yes" 12822else $as_nop 12823 SUNCC="no" 12824fi 12825 12826 12827 12828 12829 12830 12831 12832 12833if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12834 if test -n "$ac_tool_prefix"; then 12835 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12836set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12838printf %s "checking for $ac_word... " >&6; } 12839if test ${ac_cv_path_PKG_CONFIG+y} 12840then : 12841 printf %s "(cached) " >&6 12842else $as_nop 12843 case $PKG_CONFIG in 12844 [\\/]* | ?:[\\/]*) 12845 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12846 ;; 12847 *) 12848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12849for as_dir in $PATH 12850do 12851 IFS=$as_save_IFS 12852 case $as_dir in #((( 12853 '') as_dir=./ ;; 12854 */) ;; 12855 *) as_dir=$as_dir/ ;; 12856 esac 12857 for ac_exec_ext in '' $ac_executable_extensions; do 12858 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12859 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12861 break 2 12862 fi 12863done 12864 done 12865IFS=$as_save_IFS 12866 12867 ;; 12868esac 12869fi 12870PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12871if test -n "$PKG_CONFIG"; then 12872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12873printf "%s\n" "$PKG_CONFIG" >&6; } 12874else 12875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12876printf "%s\n" "no" >&6; } 12877fi 12878 12879 12880fi 12881if test -z "$ac_cv_path_PKG_CONFIG"; then 12882 ac_pt_PKG_CONFIG=$PKG_CONFIG 12883 # Extract the first word of "pkg-config", so it can be a program name with args. 12884set dummy pkg-config; ac_word=$2 12885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12886printf %s "checking for $ac_word... " >&6; } 12887if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 12888then : 12889 printf %s "(cached) " >&6 12890else $as_nop 12891 case $ac_pt_PKG_CONFIG in 12892 [\\/]* | ?:[\\/]*) 12893 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12894 ;; 12895 *) 12896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12897for as_dir in $PATH 12898do 12899 IFS=$as_save_IFS 12900 case $as_dir in #((( 12901 '') as_dir=./ ;; 12902 */) ;; 12903 *) as_dir=$as_dir/ ;; 12904 esac 12905 for ac_exec_ext in '' $ac_executable_extensions; do 12906 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12907 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12909 break 2 12910 fi 12911done 12912 done 12913IFS=$as_save_IFS 12914 12915 ;; 12916esac 12917fi 12918ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12919if test -n "$ac_pt_PKG_CONFIG"; then 12920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12921printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 12922else 12923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12924printf "%s\n" "no" >&6; } 12925fi 12926 12927 if test "x$ac_pt_PKG_CONFIG" = x; then 12928 PKG_CONFIG="" 12929 else 12930 case $cross_compiling:$ac_tool_warned in 12931yes:) 12932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12933printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12934ac_tool_warned=yes ;; 12935esac 12936 PKG_CONFIG=$ac_pt_PKG_CONFIG 12937 fi 12938else 12939 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12940fi 12941 12942fi 12943if test -n "$PKG_CONFIG"; then 12944 _pkg_min_version=0.9.0 12945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12946printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12947 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12949printf "%s\n" "yes" >&6; } 12950 else 12951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12952printf "%s\n" "no" >&6; } 12953 PKG_CONFIG="" 12954 fi 12955fi 12956 12957 12958 12959 12960 12961# Check whether --enable-selective-werror was given. 12962if test ${enable_selective_werror+y} 12963then : 12964 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12965else $as_nop 12966 SELECTIVE_WERROR=yes 12967fi 12968 12969 12970 12971 12972 12973# -v is too short to test reliably with XORG_TESTSET_CFLAG 12974if test "x$SUNCC" = "xyes"; then 12975 BASE_CFLAGS="-v" 12976else 12977 BASE_CFLAGS="" 12978fi 12979 12980# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994xorg_testset_save_CFLAGS="$CFLAGS" 12995 12996if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12999printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13000if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13001then : 13002 printf %s "(cached) " >&6 13003else $as_nop 13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13005/* end confdefs.h. */ 13006int i; 13007_ACEOF 13008if ac_fn_c_try_compile "$LINENO" 13009then : 13010 xorg_cv_cc_flag_unknown_warning_option=yes 13011else $as_nop 13012 xorg_cv_cc_flag_unknown_warning_option=no 13013fi 13014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13015fi 13016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13017printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13018 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13019 CFLAGS="$xorg_testset_save_CFLAGS" 13020fi 13021 13022if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13025 fi 13026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13028printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13029if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13030then : 13031 printf %s "(cached) " >&6 13032else $as_nop 13033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13034/* end confdefs.h. */ 13035int i; 13036_ACEOF 13037if ac_fn_c_try_compile "$LINENO" 13038then : 13039 xorg_cv_cc_flag_unused_command_line_argument=yes 13040else $as_nop 13041 xorg_cv_cc_flag_unused_command_line_argument=no 13042fi 13043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13044fi 13045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13046printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13047 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13048 CFLAGS="$xorg_testset_save_CFLAGS" 13049fi 13050 13051found="no" 13052 13053 if test $found = "no" ; then 13054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13056 fi 13057 13058 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13060 fi 13061 13062 CFLAGS="$CFLAGS -Wall" 13063 13064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13065printf %s "checking if $CC supports -Wall... " >&6; } 13066 cacheid=xorg_cv_cc_flag__Wall 13067 if eval test \${$cacheid+y} 13068then : 13069 printf %s "(cached) " >&6 13070else $as_nop 13071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13072/* end confdefs.h. */ 13073int i; 13074int 13075main (void) 13076{ 13077 13078 ; 13079 return 0; 13080} 13081_ACEOF 13082if ac_fn_c_try_link "$LINENO" 13083then : 13084 eval $cacheid=yes 13085else $as_nop 13086 eval $cacheid=no 13087fi 13088rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13089 conftest$ac_exeext conftest.$ac_ext 13090fi 13091 13092 13093 CFLAGS="$xorg_testset_save_CFLAGS" 13094 13095 eval supported=\$$cacheid 13096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13097printf "%s\n" "$supported" >&6; } 13098 if test "$supported" = "yes" ; then 13099 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13100 found="yes" 13101 fi 13102 fi 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118xorg_testset_save_CFLAGS="$CFLAGS" 13119 13120if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13123printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13124if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13125then : 13126 printf %s "(cached) " >&6 13127else $as_nop 13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13129/* end confdefs.h. */ 13130int i; 13131_ACEOF 13132if ac_fn_c_try_compile "$LINENO" 13133then : 13134 xorg_cv_cc_flag_unknown_warning_option=yes 13135else $as_nop 13136 xorg_cv_cc_flag_unknown_warning_option=no 13137fi 13138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13139fi 13140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13141printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13142 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13143 CFLAGS="$xorg_testset_save_CFLAGS" 13144fi 13145 13146if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13149 fi 13150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13152printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13153if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13154then : 13155 printf %s "(cached) " >&6 13156else $as_nop 13157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13158/* end confdefs.h. */ 13159int i; 13160_ACEOF 13161if ac_fn_c_try_compile "$LINENO" 13162then : 13163 xorg_cv_cc_flag_unused_command_line_argument=yes 13164else $as_nop 13165 xorg_cv_cc_flag_unused_command_line_argument=no 13166fi 13167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13168fi 13169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13170printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13171 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13172 CFLAGS="$xorg_testset_save_CFLAGS" 13173fi 13174 13175found="no" 13176 13177 if test $found = "no" ; then 13178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13180 fi 13181 13182 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13184 fi 13185 13186 CFLAGS="$CFLAGS -Wpointer-arith" 13187 13188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13189printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13190 cacheid=xorg_cv_cc_flag__Wpointer_arith 13191 if eval test \${$cacheid+y} 13192then : 13193 printf %s "(cached) " >&6 13194else $as_nop 13195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13196/* end confdefs.h. */ 13197int i; 13198int 13199main (void) 13200{ 13201 13202 ; 13203 return 0; 13204} 13205_ACEOF 13206if ac_fn_c_try_link "$LINENO" 13207then : 13208 eval $cacheid=yes 13209else $as_nop 13210 eval $cacheid=no 13211fi 13212rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13213 conftest$ac_exeext conftest.$ac_ext 13214fi 13215 13216 13217 CFLAGS="$xorg_testset_save_CFLAGS" 13218 13219 eval supported=\$$cacheid 13220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13221printf "%s\n" "$supported" >&6; } 13222 if test "$supported" = "yes" ; then 13223 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13224 found="yes" 13225 fi 13226 fi 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242xorg_testset_save_CFLAGS="$CFLAGS" 13243 13244if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13247printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13248if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13249then : 13250 printf %s "(cached) " >&6 13251else $as_nop 13252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13253/* end confdefs.h. */ 13254int i; 13255_ACEOF 13256if ac_fn_c_try_compile "$LINENO" 13257then : 13258 xorg_cv_cc_flag_unknown_warning_option=yes 13259else $as_nop 13260 xorg_cv_cc_flag_unknown_warning_option=no 13261fi 13262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13263fi 13264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13265printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13266 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13267 CFLAGS="$xorg_testset_save_CFLAGS" 13268fi 13269 13270if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13273 fi 13274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13276printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13277if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13278then : 13279 printf %s "(cached) " >&6 13280else $as_nop 13281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13282/* end confdefs.h. */ 13283int i; 13284_ACEOF 13285if ac_fn_c_try_compile "$LINENO" 13286then : 13287 xorg_cv_cc_flag_unused_command_line_argument=yes 13288else $as_nop 13289 xorg_cv_cc_flag_unused_command_line_argument=no 13290fi 13291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13292fi 13293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13294printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13295 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13296 CFLAGS="$xorg_testset_save_CFLAGS" 13297fi 13298 13299found="no" 13300 13301 if test $found = "no" ; then 13302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13304 fi 13305 13306 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13308 fi 13309 13310 CFLAGS="$CFLAGS -Wmissing-declarations" 13311 13312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13313printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13314 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13315 if eval test \${$cacheid+y} 13316then : 13317 printf %s "(cached) " >&6 13318else $as_nop 13319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13320/* end confdefs.h. */ 13321int i; 13322int 13323main (void) 13324{ 13325 13326 ; 13327 return 0; 13328} 13329_ACEOF 13330if ac_fn_c_try_link "$LINENO" 13331then : 13332 eval $cacheid=yes 13333else $as_nop 13334 eval $cacheid=no 13335fi 13336rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13337 conftest$ac_exeext conftest.$ac_ext 13338fi 13339 13340 13341 CFLAGS="$xorg_testset_save_CFLAGS" 13342 13343 eval supported=\$$cacheid 13344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13345printf "%s\n" "$supported" >&6; } 13346 if test "$supported" = "yes" ; then 13347 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13348 found="yes" 13349 fi 13350 fi 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366xorg_testset_save_CFLAGS="$CFLAGS" 13367 13368if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13371printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13372if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13373then : 13374 printf %s "(cached) " >&6 13375else $as_nop 13376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13377/* end confdefs.h. */ 13378int i; 13379_ACEOF 13380if ac_fn_c_try_compile "$LINENO" 13381then : 13382 xorg_cv_cc_flag_unknown_warning_option=yes 13383else $as_nop 13384 xorg_cv_cc_flag_unknown_warning_option=no 13385fi 13386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13387fi 13388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13389printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13391 CFLAGS="$xorg_testset_save_CFLAGS" 13392fi 13393 13394if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13397 fi 13398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13400printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13401if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13402then : 13403 printf %s "(cached) " >&6 13404else $as_nop 13405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13406/* end confdefs.h. */ 13407int i; 13408_ACEOF 13409if ac_fn_c_try_compile "$LINENO" 13410then : 13411 xorg_cv_cc_flag_unused_command_line_argument=yes 13412else $as_nop 13413 xorg_cv_cc_flag_unused_command_line_argument=no 13414fi 13415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13416fi 13417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13418printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13419 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13420 CFLAGS="$xorg_testset_save_CFLAGS" 13421fi 13422 13423found="no" 13424 13425 if test $found = "no" ; then 13426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13428 fi 13429 13430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13432 fi 13433 13434 CFLAGS="$CFLAGS -Wformat=2" 13435 13436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13437printf %s "checking if $CC supports -Wformat=2... " >&6; } 13438 cacheid=xorg_cv_cc_flag__Wformat_2 13439 if eval test \${$cacheid+y} 13440then : 13441 printf %s "(cached) " >&6 13442else $as_nop 13443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13444/* end confdefs.h. */ 13445int i; 13446int 13447main (void) 13448{ 13449 13450 ; 13451 return 0; 13452} 13453_ACEOF 13454if ac_fn_c_try_link "$LINENO" 13455then : 13456 eval $cacheid=yes 13457else $as_nop 13458 eval $cacheid=no 13459fi 13460rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13461 conftest$ac_exeext conftest.$ac_ext 13462fi 13463 13464 13465 CFLAGS="$xorg_testset_save_CFLAGS" 13466 13467 eval supported=\$$cacheid 13468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13469printf "%s\n" "$supported" >&6; } 13470 if test "$supported" = "yes" ; then 13471 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13472 found="yes" 13473 fi 13474 fi 13475 13476 if test $found = "no" ; then 13477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13479 fi 13480 13481 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13483 fi 13484 13485 CFLAGS="$CFLAGS -Wformat" 13486 13487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13488printf %s "checking if $CC supports -Wformat... " >&6; } 13489 cacheid=xorg_cv_cc_flag__Wformat 13490 if eval test \${$cacheid+y} 13491then : 13492 printf %s "(cached) " >&6 13493else $as_nop 13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13495/* end confdefs.h. */ 13496int i; 13497int 13498main (void) 13499{ 13500 13501 ; 13502 return 0; 13503} 13504_ACEOF 13505if ac_fn_c_try_link "$LINENO" 13506then : 13507 eval $cacheid=yes 13508else $as_nop 13509 eval $cacheid=no 13510fi 13511rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13512 conftest$ac_exeext conftest.$ac_ext 13513fi 13514 13515 13516 CFLAGS="$xorg_testset_save_CFLAGS" 13517 13518 eval supported=\$$cacheid 13519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13520printf "%s\n" "$supported" >&6; } 13521 if test "$supported" = "yes" ; then 13522 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13523 found="yes" 13524 fi 13525 fi 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543xorg_testset_save_CFLAGS="$CFLAGS" 13544 13545if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13548printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13549if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13550then : 13551 printf %s "(cached) " >&6 13552else $as_nop 13553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13554/* end confdefs.h. */ 13555int i; 13556_ACEOF 13557if ac_fn_c_try_compile "$LINENO" 13558then : 13559 xorg_cv_cc_flag_unknown_warning_option=yes 13560else $as_nop 13561 xorg_cv_cc_flag_unknown_warning_option=no 13562fi 13563rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13564fi 13565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13566printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13568 CFLAGS="$xorg_testset_save_CFLAGS" 13569fi 13570 13571if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13574 fi 13575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13577printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13578if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13579then : 13580 printf %s "(cached) " >&6 13581else $as_nop 13582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13583/* end confdefs.h. */ 13584int i; 13585_ACEOF 13586if ac_fn_c_try_compile "$LINENO" 13587then : 13588 xorg_cv_cc_flag_unused_command_line_argument=yes 13589else $as_nop 13590 xorg_cv_cc_flag_unused_command_line_argument=no 13591fi 13592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13593fi 13594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13595printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13597 CFLAGS="$xorg_testset_save_CFLAGS" 13598fi 13599 13600found="no" 13601 13602 if test $found = "no" ; then 13603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13605 fi 13606 13607 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13609 fi 13610 13611 CFLAGS="$CFLAGS -Wstrict-prototypes" 13612 13613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13614printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 13615 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13616 if eval test \${$cacheid+y} 13617then : 13618 printf %s "(cached) " >&6 13619else $as_nop 13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13621/* end confdefs.h. */ 13622int i; 13623int 13624main (void) 13625{ 13626 13627 ; 13628 return 0; 13629} 13630_ACEOF 13631if ac_fn_c_try_link "$LINENO" 13632then : 13633 eval $cacheid=yes 13634else $as_nop 13635 eval $cacheid=no 13636fi 13637rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13638 conftest$ac_exeext conftest.$ac_ext 13639fi 13640 13641 13642 CFLAGS="$xorg_testset_save_CFLAGS" 13643 13644 eval supported=\$$cacheid 13645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13646printf "%s\n" "$supported" >&6; } 13647 if test "$supported" = "yes" ; then 13648 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13649 found="yes" 13650 fi 13651 fi 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667xorg_testset_save_CFLAGS="$CFLAGS" 13668 13669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13672printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13673if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13674then : 13675 printf %s "(cached) " >&6 13676else $as_nop 13677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13678/* end confdefs.h. */ 13679int i; 13680_ACEOF 13681if ac_fn_c_try_compile "$LINENO" 13682then : 13683 xorg_cv_cc_flag_unknown_warning_option=yes 13684else $as_nop 13685 xorg_cv_cc_flag_unknown_warning_option=no 13686fi 13687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13688fi 13689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13690printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13692 CFLAGS="$xorg_testset_save_CFLAGS" 13693fi 13694 13695if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13698 fi 13699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13701printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13702if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13703then : 13704 printf %s "(cached) " >&6 13705else $as_nop 13706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13707/* end confdefs.h. */ 13708int i; 13709_ACEOF 13710if ac_fn_c_try_compile "$LINENO" 13711then : 13712 xorg_cv_cc_flag_unused_command_line_argument=yes 13713else $as_nop 13714 xorg_cv_cc_flag_unused_command_line_argument=no 13715fi 13716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13717fi 13718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13719printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13721 CFLAGS="$xorg_testset_save_CFLAGS" 13722fi 13723 13724found="no" 13725 13726 if test $found = "no" ; then 13727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13729 fi 13730 13731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13733 fi 13734 13735 CFLAGS="$CFLAGS -Wmissing-prototypes" 13736 13737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13738printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 13739 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13740 if eval test \${$cacheid+y} 13741then : 13742 printf %s "(cached) " >&6 13743else $as_nop 13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13745/* end confdefs.h. */ 13746int i; 13747int 13748main (void) 13749{ 13750 13751 ; 13752 return 0; 13753} 13754_ACEOF 13755if ac_fn_c_try_link "$LINENO" 13756then : 13757 eval $cacheid=yes 13758else $as_nop 13759 eval $cacheid=no 13760fi 13761rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13762 conftest$ac_exeext conftest.$ac_ext 13763fi 13764 13765 13766 CFLAGS="$xorg_testset_save_CFLAGS" 13767 13768 eval supported=\$$cacheid 13769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13770printf "%s\n" "$supported" >&6; } 13771 if test "$supported" = "yes" ; then 13772 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13773 found="yes" 13774 fi 13775 fi 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791xorg_testset_save_CFLAGS="$CFLAGS" 13792 13793if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13796printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13797if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13798then : 13799 printf %s "(cached) " >&6 13800else $as_nop 13801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13802/* end confdefs.h. */ 13803int i; 13804_ACEOF 13805if ac_fn_c_try_compile "$LINENO" 13806then : 13807 xorg_cv_cc_flag_unknown_warning_option=yes 13808else $as_nop 13809 xorg_cv_cc_flag_unknown_warning_option=no 13810fi 13811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13812fi 13813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13814printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13816 CFLAGS="$xorg_testset_save_CFLAGS" 13817fi 13818 13819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13822 fi 13823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13825printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13826if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13827then : 13828 printf %s "(cached) " >&6 13829else $as_nop 13830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13831/* end confdefs.h. */ 13832int i; 13833_ACEOF 13834if ac_fn_c_try_compile "$LINENO" 13835then : 13836 xorg_cv_cc_flag_unused_command_line_argument=yes 13837else $as_nop 13838 xorg_cv_cc_flag_unused_command_line_argument=no 13839fi 13840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13841fi 13842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13843printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13845 CFLAGS="$xorg_testset_save_CFLAGS" 13846fi 13847 13848found="no" 13849 13850 if test $found = "no" ; then 13851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13853 fi 13854 13855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13857 fi 13858 13859 CFLAGS="$CFLAGS -Wnested-externs" 13860 13861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13862printf %s "checking if $CC supports -Wnested-externs... " >&6; } 13863 cacheid=xorg_cv_cc_flag__Wnested_externs 13864 if eval test \${$cacheid+y} 13865then : 13866 printf %s "(cached) " >&6 13867else $as_nop 13868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13869/* end confdefs.h. */ 13870int i; 13871int 13872main (void) 13873{ 13874 13875 ; 13876 return 0; 13877} 13878_ACEOF 13879if ac_fn_c_try_link "$LINENO" 13880then : 13881 eval $cacheid=yes 13882else $as_nop 13883 eval $cacheid=no 13884fi 13885rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13886 conftest$ac_exeext conftest.$ac_ext 13887fi 13888 13889 13890 CFLAGS="$xorg_testset_save_CFLAGS" 13891 13892 eval supported=\$$cacheid 13893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13894printf "%s\n" "$supported" >&6; } 13895 if test "$supported" = "yes" ; then 13896 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13897 found="yes" 13898 fi 13899 fi 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915xorg_testset_save_CFLAGS="$CFLAGS" 13916 13917if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13920printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13921if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13922then : 13923 printf %s "(cached) " >&6 13924else $as_nop 13925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13926/* end confdefs.h. */ 13927int i; 13928_ACEOF 13929if ac_fn_c_try_compile "$LINENO" 13930then : 13931 xorg_cv_cc_flag_unknown_warning_option=yes 13932else $as_nop 13933 xorg_cv_cc_flag_unknown_warning_option=no 13934fi 13935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13936fi 13937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13938printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13939 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13940 CFLAGS="$xorg_testset_save_CFLAGS" 13941fi 13942 13943if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13946 fi 13947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13949printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13950if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13951then : 13952 printf %s "(cached) " >&6 13953else $as_nop 13954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13955/* end confdefs.h. */ 13956int i; 13957_ACEOF 13958if ac_fn_c_try_compile "$LINENO" 13959then : 13960 xorg_cv_cc_flag_unused_command_line_argument=yes 13961else $as_nop 13962 xorg_cv_cc_flag_unused_command_line_argument=no 13963fi 13964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13965fi 13966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13967printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13968 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13969 CFLAGS="$xorg_testset_save_CFLAGS" 13970fi 13971 13972found="no" 13973 13974 if test $found = "no" ; then 13975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13977 fi 13978 13979 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13981 fi 13982 13983 CFLAGS="$CFLAGS -Wbad-function-cast" 13984 13985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13986printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 13987 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13988 if eval test \${$cacheid+y} 13989then : 13990 printf %s "(cached) " >&6 13991else $as_nop 13992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13993/* end confdefs.h. */ 13994int i; 13995int 13996main (void) 13997{ 13998 13999 ; 14000 return 0; 14001} 14002_ACEOF 14003if ac_fn_c_try_link "$LINENO" 14004then : 14005 eval $cacheid=yes 14006else $as_nop 14007 eval $cacheid=no 14008fi 14009rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14010 conftest$ac_exeext conftest.$ac_ext 14011fi 14012 14013 14014 CFLAGS="$xorg_testset_save_CFLAGS" 14015 14016 eval supported=\$$cacheid 14017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14018printf "%s\n" "$supported" >&6; } 14019 if test "$supported" = "yes" ; then 14020 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14021 found="yes" 14022 fi 14023 fi 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039xorg_testset_save_CFLAGS="$CFLAGS" 14040 14041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14044printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14045if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14046then : 14047 printf %s "(cached) " >&6 14048else $as_nop 14049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14050/* end confdefs.h. */ 14051int i; 14052_ACEOF 14053if ac_fn_c_try_compile "$LINENO" 14054then : 14055 xorg_cv_cc_flag_unknown_warning_option=yes 14056else $as_nop 14057 xorg_cv_cc_flag_unknown_warning_option=no 14058fi 14059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14060fi 14061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14062printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14063 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14064 CFLAGS="$xorg_testset_save_CFLAGS" 14065fi 14066 14067if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14070 fi 14071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14073printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14074if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14075then : 14076 printf %s "(cached) " >&6 14077else $as_nop 14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14079/* end confdefs.h. */ 14080int i; 14081_ACEOF 14082if ac_fn_c_try_compile "$LINENO" 14083then : 14084 xorg_cv_cc_flag_unused_command_line_argument=yes 14085else $as_nop 14086 xorg_cv_cc_flag_unused_command_line_argument=no 14087fi 14088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14089fi 14090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14091printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14093 CFLAGS="$xorg_testset_save_CFLAGS" 14094fi 14095 14096found="no" 14097 14098 if test $found = "no" ; then 14099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14101 fi 14102 14103 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14105 fi 14106 14107 CFLAGS="$CFLAGS -Wold-style-definition" 14108 14109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14110printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14111 cacheid=xorg_cv_cc_flag__Wold_style_definition 14112 if eval test \${$cacheid+y} 14113then : 14114 printf %s "(cached) " >&6 14115else $as_nop 14116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14117/* end confdefs.h. */ 14118int i; 14119int 14120main (void) 14121{ 14122 14123 ; 14124 return 0; 14125} 14126_ACEOF 14127if ac_fn_c_try_link "$LINENO" 14128then : 14129 eval $cacheid=yes 14130else $as_nop 14131 eval $cacheid=no 14132fi 14133rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14134 conftest$ac_exeext conftest.$ac_ext 14135fi 14136 14137 14138 CFLAGS="$xorg_testset_save_CFLAGS" 14139 14140 eval supported=\$$cacheid 14141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14142printf "%s\n" "$supported" >&6; } 14143 if test "$supported" = "yes" ; then 14144 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14145 found="yes" 14146 fi 14147 fi 14148 14149 if test $found = "no" ; then 14150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14152 fi 14153 14154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14156 fi 14157 14158 CFLAGS="$CFLAGS -fd" 14159 14160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14161printf %s "checking if $CC supports -fd... " >&6; } 14162 cacheid=xorg_cv_cc_flag__fd 14163 if eval test \${$cacheid+y} 14164then : 14165 printf %s "(cached) " >&6 14166else $as_nop 14167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14168/* end confdefs.h. */ 14169int i; 14170int 14171main (void) 14172{ 14173 14174 ; 14175 return 0; 14176} 14177_ACEOF 14178if ac_fn_c_try_link "$LINENO" 14179then : 14180 eval $cacheid=yes 14181else $as_nop 14182 eval $cacheid=no 14183fi 14184rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14185 conftest$ac_exeext conftest.$ac_ext 14186fi 14187 14188 14189 CFLAGS="$xorg_testset_save_CFLAGS" 14190 14191 eval supported=\$$cacheid 14192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14193printf "%s\n" "$supported" >&6; } 14194 if test "$supported" = "yes" ; then 14195 BASE_CFLAGS="$BASE_CFLAGS -fd" 14196 found="yes" 14197 fi 14198 fi 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214xorg_testset_save_CFLAGS="$CFLAGS" 14215 14216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14219printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14220if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14221then : 14222 printf %s "(cached) " >&6 14223else $as_nop 14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14225/* end confdefs.h. */ 14226int i; 14227_ACEOF 14228if ac_fn_c_try_compile "$LINENO" 14229then : 14230 xorg_cv_cc_flag_unknown_warning_option=yes 14231else $as_nop 14232 xorg_cv_cc_flag_unknown_warning_option=no 14233fi 14234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14235fi 14236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14237printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14239 CFLAGS="$xorg_testset_save_CFLAGS" 14240fi 14241 14242if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14245 fi 14246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14248printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14249if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14250then : 14251 printf %s "(cached) " >&6 14252else $as_nop 14253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14254/* end confdefs.h. */ 14255int i; 14256_ACEOF 14257if ac_fn_c_try_compile "$LINENO" 14258then : 14259 xorg_cv_cc_flag_unused_command_line_argument=yes 14260else $as_nop 14261 xorg_cv_cc_flag_unused_command_line_argument=no 14262fi 14263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14264fi 14265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14266printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14268 CFLAGS="$xorg_testset_save_CFLAGS" 14269fi 14270 14271found="no" 14272 14273 if test $found = "no" ; then 14274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14276 fi 14277 14278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14280 fi 14281 14282 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14283 14284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14285printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14286 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14287 if eval test \${$cacheid+y} 14288then : 14289 printf %s "(cached) " >&6 14290else $as_nop 14291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14292/* end confdefs.h. */ 14293int i; 14294int 14295main (void) 14296{ 14297 14298 ; 14299 return 0; 14300} 14301_ACEOF 14302if ac_fn_c_try_link "$LINENO" 14303then : 14304 eval $cacheid=yes 14305else $as_nop 14306 eval $cacheid=no 14307fi 14308rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14309 conftest$ac_exeext conftest.$ac_ext 14310fi 14311 14312 14313 CFLAGS="$xorg_testset_save_CFLAGS" 14314 14315 eval supported=\$$cacheid 14316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14317printf "%s\n" "$supported" >&6; } 14318 if test "$supported" = "yes" ; then 14319 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14320 found="yes" 14321 fi 14322 fi 14323 14324 14325 14326 14327 14328# This chunk adds additional warnings that could catch undesired effects. 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342xorg_testset_save_CFLAGS="$CFLAGS" 14343 14344if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14347printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14348if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14349then : 14350 printf %s "(cached) " >&6 14351else $as_nop 14352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14353/* end confdefs.h. */ 14354int i; 14355_ACEOF 14356if ac_fn_c_try_compile "$LINENO" 14357then : 14358 xorg_cv_cc_flag_unknown_warning_option=yes 14359else $as_nop 14360 xorg_cv_cc_flag_unknown_warning_option=no 14361fi 14362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14363fi 14364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14365printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14366 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14367 CFLAGS="$xorg_testset_save_CFLAGS" 14368fi 14369 14370if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14373 fi 14374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14376printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14377if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14378then : 14379 printf %s "(cached) " >&6 14380else $as_nop 14381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14382/* end confdefs.h. */ 14383int i; 14384_ACEOF 14385if ac_fn_c_try_compile "$LINENO" 14386then : 14387 xorg_cv_cc_flag_unused_command_line_argument=yes 14388else $as_nop 14389 xorg_cv_cc_flag_unused_command_line_argument=no 14390fi 14391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14392fi 14393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14394printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14395 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14396 CFLAGS="$xorg_testset_save_CFLAGS" 14397fi 14398 14399found="no" 14400 14401 if test $found = "no" ; then 14402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14404 fi 14405 14406 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14408 fi 14409 14410 CFLAGS="$CFLAGS -Wunused" 14411 14412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14413printf %s "checking if $CC supports -Wunused... " >&6; } 14414 cacheid=xorg_cv_cc_flag__Wunused 14415 if eval test \${$cacheid+y} 14416then : 14417 printf %s "(cached) " >&6 14418else $as_nop 14419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14420/* end confdefs.h. */ 14421int i; 14422int 14423main (void) 14424{ 14425 14426 ; 14427 return 0; 14428} 14429_ACEOF 14430if ac_fn_c_try_link "$LINENO" 14431then : 14432 eval $cacheid=yes 14433else $as_nop 14434 eval $cacheid=no 14435fi 14436rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14437 conftest$ac_exeext conftest.$ac_ext 14438fi 14439 14440 14441 CFLAGS="$xorg_testset_save_CFLAGS" 14442 14443 eval supported=\$$cacheid 14444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14445printf "%s\n" "$supported" >&6; } 14446 if test "$supported" = "yes" ; then 14447 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14448 found="yes" 14449 fi 14450 fi 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466xorg_testset_save_CFLAGS="$CFLAGS" 14467 14468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14471printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14472if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14473then : 14474 printf %s "(cached) " >&6 14475else $as_nop 14476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14477/* end confdefs.h. */ 14478int i; 14479_ACEOF 14480if ac_fn_c_try_compile "$LINENO" 14481then : 14482 xorg_cv_cc_flag_unknown_warning_option=yes 14483else $as_nop 14484 xorg_cv_cc_flag_unknown_warning_option=no 14485fi 14486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14487fi 14488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14489printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14491 CFLAGS="$xorg_testset_save_CFLAGS" 14492fi 14493 14494if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14497 fi 14498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14500printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14501if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14502then : 14503 printf %s "(cached) " >&6 14504else $as_nop 14505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14506/* end confdefs.h. */ 14507int i; 14508_ACEOF 14509if ac_fn_c_try_compile "$LINENO" 14510then : 14511 xorg_cv_cc_flag_unused_command_line_argument=yes 14512else $as_nop 14513 xorg_cv_cc_flag_unused_command_line_argument=no 14514fi 14515rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14516fi 14517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14518printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14520 CFLAGS="$xorg_testset_save_CFLAGS" 14521fi 14522 14523found="no" 14524 14525 if test $found = "no" ; then 14526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14528 fi 14529 14530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14532 fi 14533 14534 CFLAGS="$CFLAGS -Wuninitialized" 14535 14536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14537printf %s "checking if $CC supports -Wuninitialized... " >&6; } 14538 cacheid=xorg_cv_cc_flag__Wuninitialized 14539 if eval test \${$cacheid+y} 14540then : 14541 printf %s "(cached) " >&6 14542else $as_nop 14543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14544/* end confdefs.h. */ 14545int i; 14546int 14547main (void) 14548{ 14549 14550 ; 14551 return 0; 14552} 14553_ACEOF 14554if ac_fn_c_try_link "$LINENO" 14555then : 14556 eval $cacheid=yes 14557else $as_nop 14558 eval $cacheid=no 14559fi 14560rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14561 conftest$ac_exeext conftest.$ac_ext 14562fi 14563 14564 14565 CFLAGS="$xorg_testset_save_CFLAGS" 14566 14567 eval supported=\$$cacheid 14568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14569printf "%s\n" "$supported" >&6; } 14570 if test "$supported" = "yes" ; then 14571 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14572 found="yes" 14573 fi 14574 fi 14575 14576 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590xorg_testset_save_CFLAGS="$CFLAGS" 14591 14592if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14595printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14596if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14597then : 14598 printf %s "(cached) " >&6 14599else $as_nop 14600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14601/* end confdefs.h. */ 14602int i; 14603_ACEOF 14604if ac_fn_c_try_compile "$LINENO" 14605then : 14606 xorg_cv_cc_flag_unknown_warning_option=yes 14607else $as_nop 14608 xorg_cv_cc_flag_unknown_warning_option=no 14609fi 14610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14611fi 14612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14613printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14615 CFLAGS="$xorg_testset_save_CFLAGS" 14616fi 14617 14618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14621 fi 14622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14624printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14625if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14626then : 14627 printf %s "(cached) " >&6 14628else $as_nop 14629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14630/* end confdefs.h. */ 14631int i; 14632_ACEOF 14633if ac_fn_c_try_compile "$LINENO" 14634then : 14635 xorg_cv_cc_flag_unused_command_line_argument=yes 14636else $as_nop 14637 xorg_cv_cc_flag_unused_command_line_argument=no 14638fi 14639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14640fi 14641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14642printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14643 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14644 CFLAGS="$xorg_testset_save_CFLAGS" 14645fi 14646 14647found="no" 14648 14649 if test $found = "no" ; then 14650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14652 fi 14653 14654 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14656 fi 14657 14658 CFLAGS="$CFLAGS -Wshadow" 14659 14660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14661printf %s "checking if $CC supports -Wshadow... " >&6; } 14662 cacheid=xorg_cv_cc_flag__Wshadow 14663 if eval test \${$cacheid+y} 14664then : 14665 printf %s "(cached) " >&6 14666else $as_nop 14667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14668/* end confdefs.h. */ 14669int i; 14670int 14671main (void) 14672{ 14673 14674 ; 14675 return 0; 14676} 14677_ACEOF 14678if ac_fn_c_try_link "$LINENO" 14679then : 14680 eval $cacheid=yes 14681else $as_nop 14682 eval $cacheid=no 14683fi 14684rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14685 conftest$ac_exeext conftest.$ac_ext 14686fi 14687 14688 14689 CFLAGS="$xorg_testset_save_CFLAGS" 14690 14691 eval supported=\$$cacheid 14692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14693printf "%s\n" "$supported" >&6; } 14694 if test "$supported" = "yes" ; then 14695 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14696 found="yes" 14697 fi 14698 fi 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714xorg_testset_save_CFLAGS="$CFLAGS" 14715 14716if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14719printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14720if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14721then : 14722 printf %s "(cached) " >&6 14723else $as_nop 14724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14725/* end confdefs.h. */ 14726int i; 14727_ACEOF 14728if ac_fn_c_try_compile "$LINENO" 14729then : 14730 xorg_cv_cc_flag_unknown_warning_option=yes 14731else $as_nop 14732 xorg_cv_cc_flag_unknown_warning_option=no 14733fi 14734rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14735fi 14736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14737printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14739 CFLAGS="$xorg_testset_save_CFLAGS" 14740fi 14741 14742if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14745 fi 14746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14748printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14749if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14750then : 14751 printf %s "(cached) " >&6 14752else $as_nop 14753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14754/* end confdefs.h. */ 14755int i; 14756_ACEOF 14757if ac_fn_c_try_compile "$LINENO" 14758then : 14759 xorg_cv_cc_flag_unused_command_line_argument=yes 14760else $as_nop 14761 xorg_cv_cc_flag_unused_command_line_argument=no 14762fi 14763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14764fi 14765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14766printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14767 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14768 CFLAGS="$xorg_testset_save_CFLAGS" 14769fi 14770 14771found="no" 14772 14773 if test $found = "no" ; then 14774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14776 fi 14777 14778 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14780 fi 14781 14782 CFLAGS="$CFLAGS -Wmissing-noreturn" 14783 14784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14785printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 14786 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14787 if eval test \${$cacheid+y} 14788then : 14789 printf %s "(cached) " >&6 14790else $as_nop 14791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14792/* end confdefs.h. */ 14793int i; 14794int 14795main (void) 14796{ 14797 14798 ; 14799 return 0; 14800} 14801_ACEOF 14802if ac_fn_c_try_link "$LINENO" 14803then : 14804 eval $cacheid=yes 14805else $as_nop 14806 eval $cacheid=no 14807fi 14808rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14809 conftest$ac_exeext conftest.$ac_ext 14810fi 14811 14812 14813 CFLAGS="$xorg_testset_save_CFLAGS" 14814 14815 eval supported=\$$cacheid 14816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14817printf "%s\n" "$supported" >&6; } 14818 if test "$supported" = "yes" ; then 14819 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14820 found="yes" 14821 fi 14822 fi 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838xorg_testset_save_CFLAGS="$CFLAGS" 14839 14840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14843printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14844if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14845then : 14846 printf %s "(cached) " >&6 14847else $as_nop 14848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14849/* end confdefs.h. */ 14850int i; 14851_ACEOF 14852if ac_fn_c_try_compile "$LINENO" 14853then : 14854 xorg_cv_cc_flag_unknown_warning_option=yes 14855else $as_nop 14856 xorg_cv_cc_flag_unknown_warning_option=no 14857fi 14858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14859fi 14860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14861printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14863 CFLAGS="$xorg_testset_save_CFLAGS" 14864fi 14865 14866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14869 fi 14870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14872printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14873if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14874then : 14875 printf %s "(cached) " >&6 14876else $as_nop 14877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14878/* end confdefs.h. */ 14879int i; 14880_ACEOF 14881if ac_fn_c_try_compile "$LINENO" 14882then : 14883 xorg_cv_cc_flag_unused_command_line_argument=yes 14884else $as_nop 14885 xorg_cv_cc_flag_unused_command_line_argument=no 14886fi 14887rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14888fi 14889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14890printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14892 CFLAGS="$xorg_testset_save_CFLAGS" 14893fi 14894 14895found="no" 14896 14897 if test $found = "no" ; then 14898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14900 fi 14901 14902 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14904 fi 14905 14906 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14907 14908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14909printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14910 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14911 if eval test \${$cacheid+y} 14912then : 14913 printf %s "(cached) " >&6 14914else $as_nop 14915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14916/* end confdefs.h. */ 14917int i; 14918int 14919main (void) 14920{ 14921 14922 ; 14923 return 0; 14924} 14925_ACEOF 14926if ac_fn_c_try_link "$LINENO" 14927then : 14928 eval $cacheid=yes 14929else $as_nop 14930 eval $cacheid=no 14931fi 14932rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14933 conftest$ac_exeext conftest.$ac_ext 14934fi 14935 14936 14937 CFLAGS="$xorg_testset_save_CFLAGS" 14938 14939 eval supported=\$$cacheid 14940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14941printf "%s\n" "$supported" >&6; } 14942 if test "$supported" = "yes" ; then 14943 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14944 found="yes" 14945 fi 14946 fi 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962xorg_testset_save_CFLAGS="$CFLAGS" 14963 14964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14967printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14968if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14969then : 14970 printf %s "(cached) " >&6 14971else $as_nop 14972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14973/* end confdefs.h. */ 14974int i; 14975_ACEOF 14976if ac_fn_c_try_compile "$LINENO" 14977then : 14978 xorg_cv_cc_flag_unknown_warning_option=yes 14979else $as_nop 14980 xorg_cv_cc_flag_unknown_warning_option=no 14981fi 14982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14983fi 14984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14985printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14987 CFLAGS="$xorg_testset_save_CFLAGS" 14988fi 14989 14990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14993 fi 14994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14996printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14997if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14998then : 14999 printf %s "(cached) " >&6 15000else $as_nop 15001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15002/* end confdefs.h. */ 15003int i; 15004_ACEOF 15005if ac_fn_c_try_compile "$LINENO" 15006then : 15007 xorg_cv_cc_flag_unused_command_line_argument=yes 15008else $as_nop 15009 xorg_cv_cc_flag_unused_command_line_argument=no 15010fi 15011rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15012fi 15013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15014printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15016 CFLAGS="$xorg_testset_save_CFLAGS" 15017fi 15018 15019found="no" 15020 15021 if test $found = "no" ; then 15022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15024 fi 15025 15026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15028 fi 15029 15030 CFLAGS="$CFLAGS -Wredundant-decls" 15031 15032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15033printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15034 cacheid=xorg_cv_cc_flag__Wredundant_decls 15035 if eval test \${$cacheid+y} 15036then : 15037 printf %s "(cached) " >&6 15038else $as_nop 15039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15040/* end confdefs.h. */ 15041int i; 15042int 15043main (void) 15044{ 15045 15046 ; 15047 return 0; 15048} 15049_ACEOF 15050if ac_fn_c_try_link "$LINENO" 15051then : 15052 eval $cacheid=yes 15053else $as_nop 15054 eval $cacheid=no 15055fi 15056rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15057 conftest$ac_exeext conftest.$ac_ext 15058fi 15059 15060 15061 CFLAGS="$xorg_testset_save_CFLAGS" 15062 15063 eval supported=\$$cacheid 15064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15065printf "%s\n" "$supported" >&6; } 15066 if test "$supported" = "yes" ; then 15067 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15068 found="yes" 15069 fi 15070 fi 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086xorg_testset_save_CFLAGS="$CFLAGS" 15087 15088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15091printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15092if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15093then : 15094 printf %s "(cached) " >&6 15095else $as_nop 15096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15097/* end confdefs.h. */ 15098int i; 15099_ACEOF 15100if ac_fn_c_try_compile "$LINENO" 15101then : 15102 xorg_cv_cc_flag_unknown_warning_option=yes 15103else $as_nop 15104 xorg_cv_cc_flag_unknown_warning_option=no 15105fi 15106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15107fi 15108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15109printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15111 CFLAGS="$xorg_testset_save_CFLAGS" 15112fi 15113 15114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15117 fi 15118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15120printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15121if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15122then : 15123 printf %s "(cached) " >&6 15124else $as_nop 15125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15126/* end confdefs.h. */ 15127int i; 15128_ACEOF 15129if ac_fn_c_try_compile "$LINENO" 15130then : 15131 xorg_cv_cc_flag_unused_command_line_argument=yes 15132else $as_nop 15133 xorg_cv_cc_flag_unused_command_line_argument=no 15134fi 15135rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15136fi 15137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15138printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15140 CFLAGS="$xorg_testset_save_CFLAGS" 15141fi 15142 15143found="no" 15144 15145 if test $found = "no" ; then 15146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15148 fi 15149 15150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15152 fi 15153 15154 CFLAGS="$CFLAGS -Wlogical-op" 15155 15156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15157printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15158 cacheid=xorg_cv_cc_flag__Wlogical_op 15159 if eval test \${$cacheid+y} 15160then : 15161 printf %s "(cached) " >&6 15162else $as_nop 15163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15164/* end confdefs.h. */ 15165int i; 15166int 15167main (void) 15168{ 15169 15170 ; 15171 return 0; 15172} 15173_ACEOF 15174if ac_fn_c_try_link "$LINENO" 15175then : 15176 eval $cacheid=yes 15177else $as_nop 15178 eval $cacheid=no 15179fi 15180rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15181 conftest$ac_exeext conftest.$ac_ext 15182fi 15183 15184 15185 CFLAGS="$xorg_testset_save_CFLAGS" 15186 15187 eval supported=\$$cacheid 15188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15189printf "%s\n" "$supported" >&6; } 15190 if test "$supported" = "yes" ; then 15191 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15192 found="yes" 15193 fi 15194 fi 15195 15196 15197 15198# These are currently disabled because they are noisy. They will be enabled 15199# in the future once the codebase is sufficiently modernized to silence 15200# them. For now, I don't want them to drown out the other warnings. 15201# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15202# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15203# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15204 15205# Turn some warnings into errors, so we don't accidently get successful builds 15206# when there are problems that should be fixed. 15207 15208if test "x$SELECTIVE_WERROR" = "xyes" ; then 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222xorg_testset_save_CFLAGS="$CFLAGS" 15223 15224if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15227printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15228if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15229then : 15230 printf %s "(cached) " >&6 15231else $as_nop 15232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15233/* end confdefs.h. */ 15234int i; 15235_ACEOF 15236if ac_fn_c_try_compile "$LINENO" 15237then : 15238 xorg_cv_cc_flag_unknown_warning_option=yes 15239else $as_nop 15240 xorg_cv_cc_flag_unknown_warning_option=no 15241fi 15242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15243fi 15244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15245printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15246 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15247 CFLAGS="$xorg_testset_save_CFLAGS" 15248fi 15249 15250if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15253 fi 15254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15256printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15257if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15258then : 15259 printf %s "(cached) " >&6 15260else $as_nop 15261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15262/* end confdefs.h. */ 15263int i; 15264_ACEOF 15265if ac_fn_c_try_compile "$LINENO" 15266then : 15267 xorg_cv_cc_flag_unused_command_line_argument=yes 15268else $as_nop 15269 xorg_cv_cc_flag_unused_command_line_argument=no 15270fi 15271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15272fi 15273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15274printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15275 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15276 CFLAGS="$xorg_testset_save_CFLAGS" 15277fi 15278 15279found="no" 15280 15281 if test $found = "no" ; then 15282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15284 fi 15285 15286 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15288 fi 15289 15290 CFLAGS="$CFLAGS -Werror=implicit" 15291 15292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15293printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15294 cacheid=xorg_cv_cc_flag__Werror_implicit 15295 if eval test \${$cacheid+y} 15296then : 15297 printf %s "(cached) " >&6 15298else $as_nop 15299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15300/* end confdefs.h. */ 15301int i; 15302int 15303main (void) 15304{ 15305 15306 ; 15307 return 0; 15308} 15309_ACEOF 15310if ac_fn_c_try_link "$LINENO" 15311then : 15312 eval $cacheid=yes 15313else $as_nop 15314 eval $cacheid=no 15315fi 15316rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15317 conftest$ac_exeext conftest.$ac_ext 15318fi 15319 15320 15321 CFLAGS="$xorg_testset_save_CFLAGS" 15322 15323 eval supported=\$$cacheid 15324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15325printf "%s\n" "$supported" >&6; } 15326 if test "$supported" = "yes" ; then 15327 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15328 found="yes" 15329 fi 15330 fi 15331 15332 if test $found = "no" ; then 15333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15335 fi 15336 15337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15339 fi 15340 15341 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15342 15343 { 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 15344printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15345 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15346 if eval test \${$cacheid+y} 15347then : 15348 printf %s "(cached) " >&6 15349else $as_nop 15350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15351/* end confdefs.h. */ 15352int i; 15353int 15354main (void) 15355{ 15356 15357 ; 15358 return 0; 15359} 15360_ACEOF 15361if ac_fn_c_try_link "$LINENO" 15362then : 15363 eval $cacheid=yes 15364else $as_nop 15365 eval $cacheid=no 15366fi 15367rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15368 conftest$ac_exeext conftest.$ac_ext 15369fi 15370 15371 15372 CFLAGS="$xorg_testset_save_CFLAGS" 15373 15374 eval supported=\$$cacheid 15375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15376printf "%s\n" "$supported" >&6; } 15377 if test "$supported" = "yes" ; then 15378 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15379 found="yes" 15380 fi 15381 fi 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397xorg_testset_save_CFLAGS="$CFLAGS" 15398 15399if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15402printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15403if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15404then : 15405 printf %s "(cached) " >&6 15406else $as_nop 15407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15408/* end confdefs.h. */ 15409int i; 15410_ACEOF 15411if ac_fn_c_try_compile "$LINENO" 15412then : 15413 xorg_cv_cc_flag_unknown_warning_option=yes 15414else $as_nop 15415 xorg_cv_cc_flag_unknown_warning_option=no 15416fi 15417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15418fi 15419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15420printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15422 CFLAGS="$xorg_testset_save_CFLAGS" 15423fi 15424 15425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15428 fi 15429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15431printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15432if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15433then : 15434 printf %s "(cached) " >&6 15435else $as_nop 15436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15437/* end confdefs.h. */ 15438int i; 15439_ACEOF 15440if ac_fn_c_try_compile "$LINENO" 15441then : 15442 xorg_cv_cc_flag_unused_command_line_argument=yes 15443else $as_nop 15444 xorg_cv_cc_flag_unused_command_line_argument=no 15445fi 15446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15447fi 15448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15449printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15451 CFLAGS="$xorg_testset_save_CFLAGS" 15452fi 15453 15454found="no" 15455 15456 if test $found = "no" ; then 15457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15459 fi 15460 15461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15463 fi 15464 15465 CFLAGS="$CFLAGS -Werror=nonnull" 15466 15467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15468printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15469 cacheid=xorg_cv_cc_flag__Werror_nonnull 15470 if eval test \${$cacheid+y} 15471then : 15472 printf %s "(cached) " >&6 15473else $as_nop 15474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15475/* end confdefs.h. */ 15476int i; 15477int 15478main (void) 15479{ 15480 15481 ; 15482 return 0; 15483} 15484_ACEOF 15485if ac_fn_c_try_link "$LINENO" 15486then : 15487 eval $cacheid=yes 15488else $as_nop 15489 eval $cacheid=no 15490fi 15491rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15492 conftest$ac_exeext conftest.$ac_ext 15493fi 15494 15495 15496 CFLAGS="$xorg_testset_save_CFLAGS" 15497 15498 eval supported=\$$cacheid 15499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15500printf "%s\n" "$supported" >&6; } 15501 if test "$supported" = "yes" ; then 15502 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15503 found="yes" 15504 fi 15505 fi 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521xorg_testset_save_CFLAGS="$CFLAGS" 15522 15523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15526printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15527if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15528then : 15529 printf %s "(cached) " >&6 15530else $as_nop 15531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15532/* end confdefs.h. */ 15533int i; 15534_ACEOF 15535if ac_fn_c_try_compile "$LINENO" 15536then : 15537 xorg_cv_cc_flag_unknown_warning_option=yes 15538else $as_nop 15539 xorg_cv_cc_flag_unknown_warning_option=no 15540fi 15541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15542fi 15543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15544printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15546 CFLAGS="$xorg_testset_save_CFLAGS" 15547fi 15548 15549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15552 fi 15553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15555printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15556if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15557then : 15558 printf %s "(cached) " >&6 15559else $as_nop 15560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15561/* end confdefs.h. */ 15562int i; 15563_ACEOF 15564if ac_fn_c_try_compile "$LINENO" 15565then : 15566 xorg_cv_cc_flag_unused_command_line_argument=yes 15567else $as_nop 15568 xorg_cv_cc_flag_unused_command_line_argument=no 15569fi 15570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15571fi 15572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15573printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15575 CFLAGS="$xorg_testset_save_CFLAGS" 15576fi 15577 15578found="no" 15579 15580 if test $found = "no" ; then 15581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15583 fi 15584 15585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15587 fi 15588 15589 CFLAGS="$CFLAGS -Werror=init-self" 15590 15591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15592printf %s "checking if $CC supports -Werror=init-self... " >&6; } 15593 cacheid=xorg_cv_cc_flag__Werror_init_self 15594 if eval test \${$cacheid+y} 15595then : 15596 printf %s "(cached) " >&6 15597else $as_nop 15598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15599/* end confdefs.h. */ 15600int i; 15601int 15602main (void) 15603{ 15604 15605 ; 15606 return 0; 15607} 15608_ACEOF 15609if ac_fn_c_try_link "$LINENO" 15610then : 15611 eval $cacheid=yes 15612else $as_nop 15613 eval $cacheid=no 15614fi 15615rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15616 conftest$ac_exeext conftest.$ac_ext 15617fi 15618 15619 15620 CFLAGS="$xorg_testset_save_CFLAGS" 15621 15622 eval supported=\$$cacheid 15623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15624printf "%s\n" "$supported" >&6; } 15625 if test "$supported" = "yes" ; then 15626 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15627 found="yes" 15628 fi 15629 fi 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645xorg_testset_save_CFLAGS="$CFLAGS" 15646 15647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15650printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15651if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15652then : 15653 printf %s "(cached) " >&6 15654else $as_nop 15655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15656/* end confdefs.h. */ 15657int i; 15658_ACEOF 15659if ac_fn_c_try_compile "$LINENO" 15660then : 15661 xorg_cv_cc_flag_unknown_warning_option=yes 15662else $as_nop 15663 xorg_cv_cc_flag_unknown_warning_option=no 15664fi 15665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15666fi 15667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15668printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15670 CFLAGS="$xorg_testset_save_CFLAGS" 15671fi 15672 15673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15676 fi 15677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15679printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15680if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15681then : 15682 printf %s "(cached) " >&6 15683else $as_nop 15684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15685/* end confdefs.h. */ 15686int i; 15687_ACEOF 15688if ac_fn_c_try_compile "$LINENO" 15689then : 15690 xorg_cv_cc_flag_unused_command_line_argument=yes 15691else $as_nop 15692 xorg_cv_cc_flag_unused_command_line_argument=no 15693fi 15694rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15695fi 15696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15697printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15699 CFLAGS="$xorg_testset_save_CFLAGS" 15700fi 15701 15702found="no" 15703 15704 if test $found = "no" ; then 15705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15707 fi 15708 15709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15711 fi 15712 15713 CFLAGS="$CFLAGS -Werror=main" 15714 15715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15716printf %s "checking if $CC supports -Werror=main... " >&6; } 15717 cacheid=xorg_cv_cc_flag__Werror_main 15718 if eval test \${$cacheid+y} 15719then : 15720 printf %s "(cached) " >&6 15721else $as_nop 15722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15723/* end confdefs.h. */ 15724int i; 15725int 15726main (void) 15727{ 15728 15729 ; 15730 return 0; 15731} 15732_ACEOF 15733if ac_fn_c_try_link "$LINENO" 15734then : 15735 eval $cacheid=yes 15736else $as_nop 15737 eval $cacheid=no 15738fi 15739rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15740 conftest$ac_exeext conftest.$ac_ext 15741fi 15742 15743 15744 CFLAGS="$xorg_testset_save_CFLAGS" 15745 15746 eval supported=\$$cacheid 15747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15748printf "%s\n" "$supported" >&6; } 15749 if test "$supported" = "yes" ; then 15750 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15751 found="yes" 15752 fi 15753 fi 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769xorg_testset_save_CFLAGS="$CFLAGS" 15770 15771if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15774printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15775if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15776then : 15777 printf %s "(cached) " >&6 15778else $as_nop 15779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15780/* end confdefs.h. */ 15781int i; 15782_ACEOF 15783if ac_fn_c_try_compile "$LINENO" 15784then : 15785 xorg_cv_cc_flag_unknown_warning_option=yes 15786else $as_nop 15787 xorg_cv_cc_flag_unknown_warning_option=no 15788fi 15789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15790fi 15791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15792printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15794 CFLAGS="$xorg_testset_save_CFLAGS" 15795fi 15796 15797if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15800 fi 15801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15803printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15804if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15805then : 15806 printf %s "(cached) " >&6 15807else $as_nop 15808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15809/* end confdefs.h. */ 15810int i; 15811_ACEOF 15812if ac_fn_c_try_compile "$LINENO" 15813then : 15814 xorg_cv_cc_flag_unused_command_line_argument=yes 15815else $as_nop 15816 xorg_cv_cc_flag_unused_command_line_argument=no 15817fi 15818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15819fi 15820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15821printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15823 CFLAGS="$xorg_testset_save_CFLAGS" 15824fi 15825 15826found="no" 15827 15828 if test $found = "no" ; then 15829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15831 fi 15832 15833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15835 fi 15836 15837 CFLAGS="$CFLAGS -Werror=missing-braces" 15838 15839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15840printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 15841 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15842 if eval test \${$cacheid+y} 15843then : 15844 printf %s "(cached) " >&6 15845else $as_nop 15846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15847/* end confdefs.h. */ 15848int i; 15849int 15850main (void) 15851{ 15852 15853 ; 15854 return 0; 15855} 15856_ACEOF 15857if ac_fn_c_try_link "$LINENO" 15858then : 15859 eval $cacheid=yes 15860else $as_nop 15861 eval $cacheid=no 15862fi 15863rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15864 conftest$ac_exeext conftest.$ac_ext 15865fi 15866 15867 15868 CFLAGS="$xorg_testset_save_CFLAGS" 15869 15870 eval supported=\$$cacheid 15871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15872printf "%s\n" "$supported" >&6; } 15873 if test "$supported" = "yes" ; then 15874 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15875 found="yes" 15876 fi 15877 fi 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893xorg_testset_save_CFLAGS="$CFLAGS" 15894 15895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15898printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15899if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15900then : 15901 printf %s "(cached) " >&6 15902else $as_nop 15903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15904/* end confdefs.h. */ 15905int i; 15906_ACEOF 15907if ac_fn_c_try_compile "$LINENO" 15908then : 15909 xorg_cv_cc_flag_unknown_warning_option=yes 15910else $as_nop 15911 xorg_cv_cc_flag_unknown_warning_option=no 15912fi 15913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15914fi 15915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15916printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15918 CFLAGS="$xorg_testset_save_CFLAGS" 15919fi 15920 15921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15924 fi 15925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15927printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15928if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15929then : 15930 printf %s "(cached) " >&6 15931else $as_nop 15932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15933/* end confdefs.h. */ 15934int i; 15935_ACEOF 15936if ac_fn_c_try_compile "$LINENO" 15937then : 15938 xorg_cv_cc_flag_unused_command_line_argument=yes 15939else $as_nop 15940 xorg_cv_cc_flag_unused_command_line_argument=no 15941fi 15942rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15943fi 15944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15945printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15947 CFLAGS="$xorg_testset_save_CFLAGS" 15948fi 15949 15950found="no" 15951 15952 if test $found = "no" ; then 15953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15955 fi 15956 15957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15959 fi 15960 15961 CFLAGS="$CFLAGS -Werror=sequence-point" 15962 15963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15964printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 15965 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15966 if eval test \${$cacheid+y} 15967then : 15968 printf %s "(cached) " >&6 15969else $as_nop 15970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15971/* end confdefs.h. */ 15972int i; 15973int 15974main (void) 15975{ 15976 15977 ; 15978 return 0; 15979} 15980_ACEOF 15981if ac_fn_c_try_link "$LINENO" 15982then : 15983 eval $cacheid=yes 15984else $as_nop 15985 eval $cacheid=no 15986fi 15987rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15988 conftest$ac_exeext conftest.$ac_ext 15989fi 15990 15991 15992 CFLAGS="$xorg_testset_save_CFLAGS" 15993 15994 eval supported=\$$cacheid 15995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15996printf "%s\n" "$supported" >&6; } 15997 if test "$supported" = "yes" ; then 15998 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15999 found="yes" 16000 fi 16001 fi 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017xorg_testset_save_CFLAGS="$CFLAGS" 16018 16019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16022printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16023if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16024then : 16025 printf %s "(cached) " >&6 16026else $as_nop 16027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16028/* end confdefs.h. */ 16029int i; 16030_ACEOF 16031if ac_fn_c_try_compile "$LINENO" 16032then : 16033 xorg_cv_cc_flag_unknown_warning_option=yes 16034else $as_nop 16035 xorg_cv_cc_flag_unknown_warning_option=no 16036fi 16037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16038fi 16039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16040printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16042 CFLAGS="$xorg_testset_save_CFLAGS" 16043fi 16044 16045if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16048 fi 16049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16051printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16052if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16053then : 16054 printf %s "(cached) " >&6 16055else $as_nop 16056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16057/* end confdefs.h. */ 16058int i; 16059_ACEOF 16060if ac_fn_c_try_compile "$LINENO" 16061then : 16062 xorg_cv_cc_flag_unused_command_line_argument=yes 16063else $as_nop 16064 xorg_cv_cc_flag_unused_command_line_argument=no 16065fi 16066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16067fi 16068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16069printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16071 CFLAGS="$xorg_testset_save_CFLAGS" 16072fi 16073 16074found="no" 16075 16076 if test $found = "no" ; then 16077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16079 fi 16080 16081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16083 fi 16084 16085 CFLAGS="$CFLAGS -Werror=return-type" 16086 16087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16088printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16089 cacheid=xorg_cv_cc_flag__Werror_return_type 16090 if eval test \${$cacheid+y} 16091then : 16092 printf %s "(cached) " >&6 16093else $as_nop 16094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16095/* end confdefs.h. */ 16096int i; 16097int 16098main (void) 16099{ 16100 16101 ; 16102 return 0; 16103} 16104_ACEOF 16105if ac_fn_c_try_link "$LINENO" 16106then : 16107 eval $cacheid=yes 16108else $as_nop 16109 eval $cacheid=no 16110fi 16111rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16112 conftest$ac_exeext conftest.$ac_ext 16113fi 16114 16115 16116 CFLAGS="$xorg_testset_save_CFLAGS" 16117 16118 eval supported=\$$cacheid 16119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16120printf "%s\n" "$supported" >&6; } 16121 if test "$supported" = "yes" ; then 16122 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16123 found="yes" 16124 fi 16125 fi 16126 16127 if test $found = "no" ; then 16128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16130 fi 16131 16132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16134 fi 16135 16136 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16137 16138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16139printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16140 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16141 if eval test \${$cacheid+y} 16142then : 16143 printf %s "(cached) " >&6 16144else $as_nop 16145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16146/* end confdefs.h. */ 16147int i; 16148int 16149main (void) 16150{ 16151 16152 ; 16153 return 0; 16154} 16155_ACEOF 16156if ac_fn_c_try_link "$LINENO" 16157then : 16158 eval $cacheid=yes 16159else $as_nop 16160 eval $cacheid=no 16161fi 16162rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16163 conftest$ac_exeext conftest.$ac_ext 16164fi 16165 16166 16167 CFLAGS="$xorg_testset_save_CFLAGS" 16168 16169 eval supported=\$$cacheid 16170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16171printf "%s\n" "$supported" >&6; } 16172 if test "$supported" = "yes" ; then 16173 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16174 found="yes" 16175 fi 16176 fi 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192xorg_testset_save_CFLAGS="$CFLAGS" 16193 16194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16197printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16198if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16199then : 16200 printf %s "(cached) " >&6 16201else $as_nop 16202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16203/* end confdefs.h. */ 16204int i; 16205_ACEOF 16206if ac_fn_c_try_compile "$LINENO" 16207then : 16208 xorg_cv_cc_flag_unknown_warning_option=yes 16209else $as_nop 16210 xorg_cv_cc_flag_unknown_warning_option=no 16211fi 16212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16213fi 16214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16215printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16217 CFLAGS="$xorg_testset_save_CFLAGS" 16218fi 16219 16220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16223 fi 16224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16226printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16227if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16228then : 16229 printf %s "(cached) " >&6 16230else $as_nop 16231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16232/* end confdefs.h. */ 16233int i; 16234_ACEOF 16235if ac_fn_c_try_compile "$LINENO" 16236then : 16237 xorg_cv_cc_flag_unused_command_line_argument=yes 16238else $as_nop 16239 xorg_cv_cc_flag_unused_command_line_argument=no 16240fi 16241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16242fi 16243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16244printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16246 CFLAGS="$xorg_testset_save_CFLAGS" 16247fi 16248 16249found="no" 16250 16251 if test $found = "no" ; then 16252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16254 fi 16255 16256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16258 fi 16259 16260 CFLAGS="$CFLAGS -Werror=trigraphs" 16261 16262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16263printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16264 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16265 if eval test \${$cacheid+y} 16266then : 16267 printf %s "(cached) " >&6 16268else $as_nop 16269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16270/* end confdefs.h. */ 16271int i; 16272int 16273main (void) 16274{ 16275 16276 ; 16277 return 0; 16278} 16279_ACEOF 16280if ac_fn_c_try_link "$LINENO" 16281then : 16282 eval $cacheid=yes 16283else $as_nop 16284 eval $cacheid=no 16285fi 16286rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16287 conftest$ac_exeext conftest.$ac_ext 16288fi 16289 16290 16291 CFLAGS="$xorg_testset_save_CFLAGS" 16292 16293 eval supported=\$$cacheid 16294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16295printf "%s\n" "$supported" >&6; } 16296 if test "$supported" = "yes" ; then 16297 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16298 found="yes" 16299 fi 16300 fi 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315 16316xorg_testset_save_CFLAGS="$CFLAGS" 16317 16318if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16321printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16322if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16323then : 16324 printf %s "(cached) " >&6 16325else $as_nop 16326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16327/* end confdefs.h. */ 16328int i; 16329_ACEOF 16330if ac_fn_c_try_compile "$LINENO" 16331then : 16332 xorg_cv_cc_flag_unknown_warning_option=yes 16333else $as_nop 16334 xorg_cv_cc_flag_unknown_warning_option=no 16335fi 16336rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16337fi 16338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16339printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16341 CFLAGS="$xorg_testset_save_CFLAGS" 16342fi 16343 16344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16347 fi 16348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16350printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16351if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16352then : 16353 printf %s "(cached) " >&6 16354else $as_nop 16355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16356/* end confdefs.h. */ 16357int i; 16358_ACEOF 16359if ac_fn_c_try_compile "$LINENO" 16360then : 16361 xorg_cv_cc_flag_unused_command_line_argument=yes 16362else $as_nop 16363 xorg_cv_cc_flag_unused_command_line_argument=no 16364fi 16365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16366fi 16367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16368printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16370 CFLAGS="$xorg_testset_save_CFLAGS" 16371fi 16372 16373found="no" 16374 16375 if test $found = "no" ; then 16376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16378 fi 16379 16380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16382 fi 16383 16384 CFLAGS="$CFLAGS -Werror=array-bounds" 16385 16386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16387printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16388 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16389 if eval test \${$cacheid+y} 16390then : 16391 printf %s "(cached) " >&6 16392else $as_nop 16393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16394/* end confdefs.h. */ 16395int i; 16396int 16397main (void) 16398{ 16399 16400 ; 16401 return 0; 16402} 16403_ACEOF 16404if ac_fn_c_try_link "$LINENO" 16405then : 16406 eval $cacheid=yes 16407else $as_nop 16408 eval $cacheid=no 16409fi 16410rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16411 conftest$ac_exeext conftest.$ac_ext 16412fi 16413 16414 16415 CFLAGS="$xorg_testset_save_CFLAGS" 16416 16417 eval supported=\$$cacheid 16418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16419printf "%s\n" "$supported" >&6; } 16420 if test "$supported" = "yes" ; then 16421 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16422 found="yes" 16423 fi 16424 fi 16425 16426 16427 16428 16429 16430 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440xorg_testset_save_CFLAGS="$CFLAGS" 16441 16442if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16445printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16446if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16447then : 16448 printf %s "(cached) " >&6 16449else $as_nop 16450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16451/* end confdefs.h. */ 16452int i; 16453_ACEOF 16454if ac_fn_c_try_compile "$LINENO" 16455then : 16456 xorg_cv_cc_flag_unknown_warning_option=yes 16457else $as_nop 16458 xorg_cv_cc_flag_unknown_warning_option=no 16459fi 16460rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16461fi 16462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16463printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16465 CFLAGS="$xorg_testset_save_CFLAGS" 16466fi 16467 16468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16471 fi 16472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16474printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16475if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16476then : 16477 printf %s "(cached) " >&6 16478else $as_nop 16479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16480/* end confdefs.h. */ 16481int i; 16482_ACEOF 16483if ac_fn_c_try_compile "$LINENO" 16484then : 16485 xorg_cv_cc_flag_unused_command_line_argument=yes 16486else $as_nop 16487 xorg_cv_cc_flag_unused_command_line_argument=no 16488fi 16489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16490fi 16491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16492printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16494 CFLAGS="$xorg_testset_save_CFLAGS" 16495fi 16496 16497found="no" 16498 16499 if test $found = "no" ; then 16500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16502 fi 16503 16504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16506 fi 16507 16508 CFLAGS="$CFLAGS -Werror=write-strings" 16509 16510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16511printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 16512 cacheid=xorg_cv_cc_flag__Werror_write_strings 16513 if eval test \${$cacheid+y} 16514then : 16515 printf %s "(cached) " >&6 16516else $as_nop 16517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16518/* end confdefs.h. */ 16519int i; 16520int 16521main (void) 16522{ 16523 16524 ; 16525 return 0; 16526} 16527_ACEOF 16528if ac_fn_c_try_link "$LINENO" 16529then : 16530 eval $cacheid=yes 16531else $as_nop 16532 eval $cacheid=no 16533fi 16534rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16535 conftest$ac_exeext conftest.$ac_ext 16536fi 16537 16538 16539 CFLAGS="$xorg_testset_save_CFLAGS" 16540 16541 eval supported=\$$cacheid 16542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16543printf "%s\n" "$supported" >&6; } 16544 if test "$supported" = "yes" ; then 16545 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16546 found="yes" 16547 fi 16548 fi 16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564xorg_testset_save_CFLAGS="$CFLAGS" 16565 16566if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16569printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16570if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16571then : 16572 printf %s "(cached) " >&6 16573else $as_nop 16574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16575/* end confdefs.h. */ 16576int i; 16577_ACEOF 16578if ac_fn_c_try_compile "$LINENO" 16579then : 16580 xorg_cv_cc_flag_unknown_warning_option=yes 16581else $as_nop 16582 xorg_cv_cc_flag_unknown_warning_option=no 16583fi 16584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16585fi 16586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16587printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16589 CFLAGS="$xorg_testset_save_CFLAGS" 16590fi 16591 16592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16595 fi 16596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16598printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16599if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16600then : 16601 printf %s "(cached) " >&6 16602else $as_nop 16603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16604/* end confdefs.h. */ 16605int i; 16606_ACEOF 16607if ac_fn_c_try_compile "$LINENO" 16608then : 16609 xorg_cv_cc_flag_unused_command_line_argument=yes 16610else $as_nop 16611 xorg_cv_cc_flag_unused_command_line_argument=no 16612fi 16613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16614fi 16615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16616printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16618 CFLAGS="$xorg_testset_save_CFLAGS" 16619fi 16620 16621found="no" 16622 16623 if test $found = "no" ; then 16624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16626 fi 16627 16628 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16630 fi 16631 16632 CFLAGS="$CFLAGS -Werror=address" 16633 16634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16635printf %s "checking if $CC supports -Werror=address... " >&6; } 16636 cacheid=xorg_cv_cc_flag__Werror_address 16637 if eval test \${$cacheid+y} 16638then : 16639 printf %s "(cached) " >&6 16640else $as_nop 16641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16642/* end confdefs.h. */ 16643int i; 16644int 16645main (void) 16646{ 16647 16648 ; 16649 return 0; 16650} 16651_ACEOF 16652if ac_fn_c_try_link "$LINENO" 16653then : 16654 eval $cacheid=yes 16655else $as_nop 16656 eval $cacheid=no 16657fi 16658rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16659 conftest$ac_exeext conftest.$ac_ext 16660fi 16661 16662 16663 CFLAGS="$xorg_testset_save_CFLAGS" 16664 16665 eval supported=\$$cacheid 16666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16667printf "%s\n" "$supported" >&6; } 16668 if test "$supported" = "yes" ; then 16669 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16670 found="yes" 16671 fi 16672 fi 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688xorg_testset_save_CFLAGS="$CFLAGS" 16689 16690if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16693printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16694if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16695then : 16696 printf %s "(cached) " >&6 16697else $as_nop 16698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16699/* end confdefs.h. */ 16700int i; 16701_ACEOF 16702if ac_fn_c_try_compile "$LINENO" 16703then : 16704 xorg_cv_cc_flag_unknown_warning_option=yes 16705else $as_nop 16706 xorg_cv_cc_flag_unknown_warning_option=no 16707fi 16708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16709fi 16710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16711printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16712 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16713 CFLAGS="$xorg_testset_save_CFLAGS" 16714fi 16715 16716if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16719 fi 16720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16722printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16723if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16724then : 16725 printf %s "(cached) " >&6 16726else $as_nop 16727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16728/* end confdefs.h. */ 16729int i; 16730_ACEOF 16731if ac_fn_c_try_compile "$LINENO" 16732then : 16733 xorg_cv_cc_flag_unused_command_line_argument=yes 16734else $as_nop 16735 xorg_cv_cc_flag_unused_command_line_argument=no 16736fi 16737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16738fi 16739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16740printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16742 CFLAGS="$xorg_testset_save_CFLAGS" 16743fi 16744 16745found="no" 16746 16747 if test $found = "no" ; then 16748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16750 fi 16751 16752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16754 fi 16755 16756 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16757 16758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16759printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16760 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16761 if eval test \${$cacheid+y} 16762then : 16763 printf %s "(cached) " >&6 16764else $as_nop 16765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16766/* end confdefs.h. */ 16767int i; 16768int 16769main (void) 16770{ 16771 16772 ; 16773 return 0; 16774} 16775_ACEOF 16776if ac_fn_c_try_link "$LINENO" 16777then : 16778 eval $cacheid=yes 16779else $as_nop 16780 eval $cacheid=no 16781fi 16782rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16783 conftest$ac_exeext conftest.$ac_ext 16784fi 16785 16786 16787 CFLAGS="$xorg_testset_save_CFLAGS" 16788 16789 eval supported=\$$cacheid 16790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16791printf "%s\n" "$supported" >&6; } 16792 if test "$supported" = "yes" ; then 16793 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16794 found="yes" 16795 fi 16796 fi 16797 16798 if test $found = "no" ; then 16799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16801 fi 16802 16803 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16805 fi 16806 16807 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16808 16809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16810printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16811 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16812 if eval test \${$cacheid+y} 16813then : 16814 printf %s "(cached) " >&6 16815else $as_nop 16816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16817/* end confdefs.h. */ 16818int i; 16819int 16820main (void) 16821{ 16822 16823 ; 16824 return 0; 16825} 16826_ACEOF 16827if ac_fn_c_try_link "$LINENO" 16828then : 16829 eval $cacheid=yes 16830else $as_nop 16831 eval $cacheid=no 16832fi 16833rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16834 conftest$ac_exeext conftest.$ac_ext 16835fi 16836 16837 16838 CFLAGS="$xorg_testset_save_CFLAGS" 16839 16840 eval supported=\$$cacheid 16841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16842printf "%s\n" "$supported" >&6; } 16843 if test "$supported" = "yes" ; then 16844 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16845 found="yes" 16846 fi 16847 fi 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863xorg_testset_save_CFLAGS="$CFLAGS" 16864 16865if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16868printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16869if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16870then : 16871 printf %s "(cached) " >&6 16872else $as_nop 16873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16874/* end confdefs.h. */ 16875int i; 16876_ACEOF 16877if ac_fn_c_try_compile "$LINENO" 16878then : 16879 xorg_cv_cc_flag_unknown_warning_option=yes 16880else $as_nop 16881 xorg_cv_cc_flag_unknown_warning_option=no 16882fi 16883rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16884fi 16885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16886printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16888 CFLAGS="$xorg_testset_save_CFLAGS" 16889fi 16890 16891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16894 fi 16895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16897printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16898if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16899then : 16900 printf %s "(cached) " >&6 16901else $as_nop 16902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16903/* end confdefs.h. */ 16904int i; 16905_ACEOF 16906if ac_fn_c_try_compile "$LINENO" 16907then : 16908 xorg_cv_cc_flag_unused_command_line_argument=yes 16909else $as_nop 16910 xorg_cv_cc_flag_unused_command_line_argument=no 16911fi 16912rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16913fi 16914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16915printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16916 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16917 CFLAGS="$xorg_testset_save_CFLAGS" 16918fi 16919 16920found="no" 16921 16922 if test $found = "no" ; then 16923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16925 fi 16926 16927 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16929 fi 16930 16931 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16932 16933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16934printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16935 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16936 if eval test \${$cacheid+y} 16937then : 16938 printf %s "(cached) " >&6 16939else $as_nop 16940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16941/* end confdefs.h. */ 16942int i; 16943int 16944main (void) 16945{ 16946 16947 ; 16948 return 0; 16949} 16950_ACEOF 16951if ac_fn_c_try_link "$LINENO" 16952then : 16953 eval $cacheid=yes 16954else $as_nop 16955 eval $cacheid=no 16956fi 16957rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16958 conftest$ac_exeext conftest.$ac_ext 16959fi 16960 16961 16962 CFLAGS="$xorg_testset_save_CFLAGS" 16963 16964 eval supported=\$$cacheid 16965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16966printf "%s\n" "$supported" >&6; } 16967 if test "$supported" = "yes" ; then 16968 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16969 found="yes" 16970 fi 16971 fi 16972 16973 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16974else 16975{ 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 16976printf "%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;} 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990xorg_testset_save_CFLAGS="$CFLAGS" 16991 16992if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16995printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16996if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16997then : 16998 printf %s "(cached) " >&6 16999else $as_nop 17000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17001/* end confdefs.h. */ 17002int i; 17003_ACEOF 17004if ac_fn_c_try_compile "$LINENO" 17005then : 17006 xorg_cv_cc_flag_unknown_warning_option=yes 17007else $as_nop 17008 xorg_cv_cc_flag_unknown_warning_option=no 17009fi 17010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17011fi 17012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17013printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17015 CFLAGS="$xorg_testset_save_CFLAGS" 17016fi 17017 17018if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17021 fi 17022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17024printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17025if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17026then : 17027 printf %s "(cached) " >&6 17028else $as_nop 17029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17030/* end confdefs.h. */ 17031int i; 17032_ACEOF 17033if ac_fn_c_try_compile "$LINENO" 17034then : 17035 xorg_cv_cc_flag_unused_command_line_argument=yes 17036else $as_nop 17037 xorg_cv_cc_flag_unused_command_line_argument=no 17038fi 17039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17040fi 17041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17042printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17044 CFLAGS="$xorg_testset_save_CFLAGS" 17045fi 17046 17047found="no" 17048 17049 if test $found = "no" ; then 17050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17052 fi 17053 17054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17056 fi 17057 17058 CFLAGS="$CFLAGS -Wimplicit" 17059 17060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17061printf %s "checking if $CC supports -Wimplicit... " >&6; } 17062 cacheid=xorg_cv_cc_flag__Wimplicit 17063 if eval test \${$cacheid+y} 17064then : 17065 printf %s "(cached) " >&6 17066else $as_nop 17067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17068/* end confdefs.h. */ 17069int i; 17070int 17071main (void) 17072{ 17073 17074 ; 17075 return 0; 17076} 17077_ACEOF 17078if ac_fn_c_try_link "$LINENO" 17079then : 17080 eval $cacheid=yes 17081else $as_nop 17082 eval $cacheid=no 17083fi 17084rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17085 conftest$ac_exeext conftest.$ac_ext 17086fi 17087 17088 17089 CFLAGS="$xorg_testset_save_CFLAGS" 17090 17091 eval supported=\$$cacheid 17092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17093printf "%s\n" "$supported" >&6; } 17094 if test "$supported" = "yes" ; then 17095 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17096 found="yes" 17097 fi 17098 fi 17099 17100 17101 17102 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114xorg_testset_save_CFLAGS="$CFLAGS" 17115 17116if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17119printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17120if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17121then : 17122 printf %s "(cached) " >&6 17123else $as_nop 17124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17125/* end confdefs.h. */ 17126int i; 17127_ACEOF 17128if ac_fn_c_try_compile "$LINENO" 17129then : 17130 xorg_cv_cc_flag_unknown_warning_option=yes 17131else $as_nop 17132 xorg_cv_cc_flag_unknown_warning_option=no 17133fi 17134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17135fi 17136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17137printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17138 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17139 CFLAGS="$xorg_testset_save_CFLAGS" 17140fi 17141 17142if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17145 fi 17146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17148printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17149if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17150then : 17151 printf %s "(cached) " >&6 17152else $as_nop 17153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17154/* end confdefs.h. */ 17155int i; 17156_ACEOF 17157if ac_fn_c_try_compile "$LINENO" 17158then : 17159 xorg_cv_cc_flag_unused_command_line_argument=yes 17160else $as_nop 17161 xorg_cv_cc_flag_unused_command_line_argument=no 17162fi 17163rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17164fi 17165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17166printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17168 CFLAGS="$xorg_testset_save_CFLAGS" 17169fi 17170 17171found="no" 17172 17173 if test $found = "no" ; then 17174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17176 fi 17177 17178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17180 fi 17181 17182 CFLAGS="$CFLAGS -Wnonnull" 17183 17184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17185printf %s "checking if $CC supports -Wnonnull... " >&6; } 17186 cacheid=xorg_cv_cc_flag__Wnonnull 17187 if eval test \${$cacheid+y} 17188then : 17189 printf %s "(cached) " >&6 17190else $as_nop 17191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17192/* end confdefs.h. */ 17193int i; 17194int 17195main (void) 17196{ 17197 17198 ; 17199 return 0; 17200} 17201_ACEOF 17202if ac_fn_c_try_link "$LINENO" 17203then : 17204 eval $cacheid=yes 17205else $as_nop 17206 eval $cacheid=no 17207fi 17208rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17209 conftest$ac_exeext conftest.$ac_ext 17210fi 17211 17212 17213 CFLAGS="$xorg_testset_save_CFLAGS" 17214 17215 eval supported=\$$cacheid 17216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17217printf "%s\n" "$supported" >&6; } 17218 if test "$supported" = "yes" ; then 17219 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17220 found="yes" 17221 fi 17222 fi 17223 17224 17225 17226 17227 17228 17229 17230 17231 17232 17233 17234 17235 17236 17237 17238xorg_testset_save_CFLAGS="$CFLAGS" 17239 17240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17243printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17244if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17245then : 17246 printf %s "(cached) " >&6 17247else $as_nop 17248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17249/* end confdefs.h. */ 17250int i; 17251_ACEOF 17252if ac_fn_c_try_compile "$LINENO" 17253then : 17254 xorg_cv_cc_flag_unknown_warning_option=yes 17255else $as_nop 17256 xorg_cv_cc_flag_unknown_warning_option=no 17257fi 17258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17259fi 17260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17261printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17263 CFLAGS="$xorg_testset_save_CFLAGS" 17264fi 17265 17266if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17269 fi 17270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17272printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17273if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17274then : 17275 printf %s "(cached) " >&6 17276else $as_nop 17277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17278/* end confdefs.h. */ 17279int i; 17280_ACEOF 17281if ac_fn_c_try_compile "$LINENO" 17282then : 17283 xorg_cv_cc_flag_unused_command_line_argument=yes 17284else $as_nop 17285 xorg_cv_cc_flag_unused_command_line_argument=no 17286fi 17287rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17288fi 17289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17290printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17292 CFLAGS="$xorg_testset_save_CFLAGS" 17293fi 17294 17295found="no" 17296 17297 if test $found = "no" ; then 17298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17300 fi 17301 17302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17304 fi 17305 17306 CFLAGS="$CFLAGS -Winit-self" 17307 17308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17309printf %s "checking if $CC supports -Winit-self... " >&6; } 17310 cacheid=xorg_cv_cc_flag__Winit_self 17311 if eval test \${$cacheid+y} 17312then : 17313 printf %s "(cached) " >&6 17314else $as_nop 17315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17316/* end confdefs.h. */ 17317int i; 17318int 17319main (void) 17320{ 17321 17322 ; 17323 return 0; 17324} 17325_ACEOF 17326if ac_fn_c_try_link "$LINENO" 17327then : 17328 eval $cacheid=yes 17329else $as_nop 17330 eval $cacheid=no 17331fi 17332rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17333 conftest$ac_exeext conftest.$ac_ext 17334fi 17335 17336 17337 CFLAGS="$xorg_testset_save_CFLAGS" 17338 17339 eval supported=\$$cacheid 17340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17341printf "%s\n" "$supported" >&6; } 17342 if test "$supported" = "yes" ; then 17343 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17344 found="yes" 17345 fi 17346 fi 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362xorg_testset_save_CFLAGS="$CFLAGS" 17363 17364if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17367printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17368if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17369then : 17370 printf %s "(cached) " >&6 17371else $as_nop 17372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17373/* end confdefs.h. */ 17374int i; 17375_ACEOF 17376if ac_fn_c_try_compile "$LINENO" 17377then : 17378 xorg_cv_cc_flag_unknown_warning_option=yes 17379else $as_nop 17380 xorg_cv_cc_flag_unknown_warning_option=no 17381fi 17382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17383fi 17384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17385printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17386 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17387 CFLAGS="$xorg_testset_save_CFLAGS" 17388fi 17389 17390if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17393 fi 17394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17396printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17397if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17398then : 17399 printf %s "(cached) " >&6 17400else $as_nop 17401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17402/* end confdefs.h. */ 17403int i; 17404_ACEOF 17405if ac_fn_c_try_compile "$LINENO" 17406then : 17407 xorg_cv_cc_flag_unused_command_line_argument=yes 17408else $as_nop 17409 xorg_cv_cc_flag_unused_command_line_argument=no 17410fi 17411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17412fi 17413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17414printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17416 CFLAGS="$xorg_testset_save_CFLAGS" 17417fi 17418 17419found="no" 17420 17421 if test $found = "no" ; then 17422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17424 fi 17425 17426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17428 fi 17429 17430 CFLAGS="$CFLAGS -Wmain" 17431 17432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17433printf %s "checking if $CC supports -Wmain... " >&6; } 17434 cacheid=xorg_cv_cc_flag__Wmain 17435 if eval test \${$cacheid+y} 17436then : 17437 printf %s "(cached) " >&6 17438else $as_nop 17439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17440/* end confdefs.h. */ 17441int i; 17442int 17443main (void) 17444{ 17445 17446 ; 17447 return 0; 17448} 17449_ACEOF 17450if ac_fn_c_try_link "$LINENO" 17451then : 17452 eval $cacheid=yes 17453else $as_nop 17454 eval $cacheid=no 17455fi 17456rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17457 conftest$ac_exeext conftest.$ac_ext 17458fi 17459 17460 17461 CFLAGS="$xorg_testset_save_CFLAGS" 17462 17463 eval supported=\$$cacheid 17464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17465printf "%s\n" "$supported" >&6; } 17466 if test "$supported" = "yes" ; then 17467 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17468 found="yes" 17469 fi 17470 fi 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486xorg_testset_save_CFLAGS="$CFLAGS" 17487 17488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17491printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17492if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17493then : 17494 printf %s "(cached) " >&6 17495else $as_nop 17496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17497/* end confdefs.h. */ 17498int i; 17499_ACEOF 17500if ac_fn_c_try_compile "$LINENO" 17501then : 17502 xorg_cv_cc_flag_unknown_warning_option=yes 17503else $as_nop 17504 xorg_cv_cc_flag_unknown_warning_option=no 17505fi 17506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17507fi 17508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17509printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17510 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17511 CFLAGS="$xorg_testset_save_CFLAGS" 17512fi 17513 17514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17517 fi 17518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17520printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17521if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17522then : 17523 printf %s "(cached) " >&6 17524else $as_nop 17525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17526/* end confdefs.h. */ 17527int i; 17528_ACEOF 17529if ac_fn_c_try_compile "$LINENO" 17530then : 17531 xorg_cv_cc_flag_unused_command_line_argument=yes 17532else $as_nop 17533 xorg_cv_cc_flag_unused_command_line_argument=no 17534fi 17535rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17536fi 17537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17538printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17540 CFLAGS="$xorg_testset_save_CFLAGS" 17541fi 17542 17543found="no" 17544 17545 if test $found = "no" ; then 17546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17548 fi 17549 17550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17552 fi 17553 17554 CFLAGS="$CFLAGS -Wmissing-braces" 17555 17556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17557printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 17558 cacheid=xorg_cv_cc_flag__Wmissing_braces 17559 if eval test \${$cacheid+y} 17560then : 17561 printf %s "(cached) " >&6 17562else $as_nop 17563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17564/* end confdefs.h. */ 17565int i; 17566int 17567main (void) 17568{ 17569 17570 ; 17571 return 0; 17572} 17573_ACEOF 17574if ac_fn_c_try_link "$LINENO" 17575then : 17576 eval $cacheid=yes 17577else $as_nop 17578 eval $cacheid=no 17579fi 17580rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17581 conftest$ac_exeext conftest.$ac_ext 17582fi 17583 17584 17585 CFLAGS="$xorg_testset_save_CFLAGS" 17586 17587 eval supported=\$$cacheid 17588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17589printf "%s\n" "$supported" >&6; } 17590 if test "$supported" = "yes" ; then 17591 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17592 found="yes" 17593 fi 17594 fi 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610xorg_testset_save_CFLAGS="$CFLAGS" 17611 17612if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17615printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17616if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17617then : 17618 printf %s "(cached) " >&6 17619else $as_nop 17620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17621/* end confdefs.h. */ 17622int i; 17623_ACEOF 17624if ac_fn_c_try_compile "$LINENO" 17625then : 17626 xorg_cv_cc_flag_unknown_warning_option=yes 17627else $as_nop 17628 xorg_cv_cc_flag_unknown_warning_option=no 17629fi 17630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17631fi 17632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17633printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17635 CFLAGS="$xorg_testset_save_CFLAGS" 17636fi 17637 17638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17641 fi 17642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17644printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17645if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17646then : 17647 printf %s "(cached) " >&6 17648else $as_nop 17649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17650/* end confdefs.h. */ 17651int i; 17652_ACEOF 17653if ac_fn_c_try_compile "$LINENO" 17654then : 17655 xorg_cv_cc_flag_unused_command_line_argument=yes 17656else $as_nop 17657 xorg_cv_cc_flag_unused_command_line_argument=no 17658fi 17659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17660fi 17661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17662printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17664 CFLAGS="$xorg_testset_save_CFLAGS" 17665fi 17666 17667found="no" 17668 17669 if test $found = "no" ; then 17670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17672 fi 17673 17674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17676 fi 17677 17678 CFLAGS="$CFLAGS -Wsequence-point" 17679 17680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17681printf %s "checking if $CC supports -Wsequence-point... " >&6; } 17682 cacheid=xorg_cv_cc_flag__Wsequence_point 17683 if eval test \${$cacheid+y} 17684then : 17685 printf %s "(cached) " >&6 17686else $as_nop 17687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17688/* end confdefs.h. */ 17689int i; 17690int 17691main (void) 17692{ 17693 17694 ; 17695 return 0; 17696} 17697_ACEOF 17698if ac_fn_c_try_link "$LINENO" 17699then : 17700 eval $cacheid=yes 17701else $as_nop 17702 eval $cacheid=no 17703fi 17704rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17705 conftest$ac_exeext conftest.$ac_ext 17706fi 17707 17708 17709 CFLAGS="$xorg_testset_save_CFLAGS" 17710 17711 eval supported=\$$cacheid 17712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17713printf "%s\n" "$supported" >&6; } 17714 if test "$supported" = "yes" ; then 17715 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17716 found="yes" 17717 fi 17718 fi 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734xorg_testset_save_CFLAGS="$CFLAGS" 17735 17736if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17739printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17740if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17741then : 17742 printf %s "(cached) " >&6 17743else $as_nop 17744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17745/* end confdefs.h. */ 17746int i; 17747_ACEOF 17748if ac_fn_c_try_compile "$LINENO" 17749then : 17750 xorg_cv_cc_flag_unknown_warning_option=yes 17751else $as_nop 17752 xorg_cv_cc_flag_unknown_warning_option=no 17753fi 17754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17755fi 17756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17757printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17758 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17759 CFLAGS="$xorg_testset_save_CFLAGS" 17760fi 17761 17762if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17765 fi 17766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17768printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17769if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17770then : 17771 printf %s "(cached) " >&6 17772else $as_nop 17773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17774/* end confdefs.h. */ 17775int i; 17776_ACEOF 17777if ac_fn_c_try_compile "$LINENO" 17778then : 17779 xorg_cv_cc_flag_unused_command_line_argument=yes 17780else $as_nop 17781 xorg_cv_cc_flag_unused_command_line_argument=no 17782fi 17783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17784fi 17785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17786printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17788 CFLAGS="$xorg_testset_save_CFLAGS" 17789fi 17790 17791found="no" 17792 17793 if test $found = "no" ; then 17794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17796 fi 17797 17798 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17800 fi 17801 17802 CFLAGS="$CFLAGS -Wreturn-type" 17803 17804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17805printf %s "checking if $CC supports -Wreturn-type... " >&6; } 17806 cacheid=xorg_cv_cc_flag__Wreturn_type 17807 if eval test \${$cacheid+y} 17808then : 17809 printf %s "(cached) " >&6 17810else $as_nop 17811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17812/* end confdefs.h. */ 17813int i; 17814int 17815main (void) 17816{ 17817 17818 ; 17819 return 0; 17820} 17821_ACEOF 17822if ac_fn_c_try_link "$LINENO" 17823then : 17824 eval $cacheid=yes 17825else $as_nop 17826 eval $cacheid=no 17827fi 17828rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17829 conftest$ac_exeext conftest.$ac_ext 17830fi 17831 17832 17833 CFLAGS="$xorg_testset_save_CFLAGS" 17834 17835 eval supported=\$$cacheid 17836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17837printf "%s\n" "$supported" >&6; } 17838 if test "$supported" = "yes" ; then 17839 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17840 found="yes" 17841 fi 17842 fi 17843 17844 17845 17846 17847 17848 17849 17850 17851 17852 17853 17854 17855 17856 17857 17858xorg_testset_save_CFLAGS="$CFLAGS" 17859 17860if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17863printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17864if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17865then : 17866 printf %s "(cached) " >&6 17867else $as_nop 17868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17869/* end confdefs.h. */ 17870int i; 17871_ACEOF 17872if ac_fn_c_try_compile "$LINENO" 17873then : 17874 xorg_cv_cc_flag_unknown_warning_option=yes 17875else $as_nop 17876 xorg_cv_cc_flag_unknown_warning_option=no 17877fi 17878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17879fi 17880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17881printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17883 CFLAGS="$xorg_testset_save_CFLAGS" 17884fi 17885 17886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17889 fi 17890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17892printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17893if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17894then : 17895 printf %s "(cached) " >&6 17896else $as_nop 17897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17898/* end confdefs.h. */ 17899int i; 17900_ACEOF 17901if ac_fn_c_try_compile "$LINENO" 17902then : 17903 xorg_cv_cc_flag_unused_command_line_argument=yes 17904else $as_nop 17905 xorg_cv_cc_flag_unused_command_line_argument=no 17906fi 17907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17908fi 17909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17910printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17911 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17912 CFLAGS="$xorg_testset_save_CFLAGS" 17913fi 17914 17915found="no" 17916 17917 if test $found = "no" ; then 17918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17920 fi 17921 17922 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17924 fi 17925 17926 CFLAGS="$CFLAGS -Wtrigraphs" 17927 17928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17929printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 17930 cacheid=xorg_cv_cc_flag__Wtrigraphs 17931 if eval test \${$cacheid+y} 17932then : 17933 printf %s "(cached) " >&6 17934else $as_nop 17935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17936/* end confdefs.h. */ 17937int i; 17938int 17939main (void) 17940{ 17941 17942 ; 17943 return 0; 17944} 17945_ACEOF 17946if ac_fn_c_try_link "$LINENO" 17947then : 17948 eval $cacheid=yes 17949else $as_nop 17950 eval $cacheid=no 17951fi 17952rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17953 conftest$ac_exeext conftest.$ac_ext 17954fi 17955 17956 17957 CFLAGS="$xorg_testset_save_CFLAGS" 17958 17959 eval supported=\$$cacheid 17960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17961printf "%s\n" "$supported" >&6; } 17962 if test "$supported" = "yes" ; then 17963 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17964 found="yes" 17965 fi 17966 fi 17967 17968 17969 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982xorg_testset_save_CFLAGS="$CFLAGS" 17983 17984if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17987printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17988if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17989then : 17990 printf %s "(cached) " >&6 17991else $as_nop 17992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17993/* end confdefs.h. */ 17994int i; 17995_ACEOF 17996if ac_fn_c_try_compile "$LINENO" 17997then : 17998 xorg_cv_cc_flag_unknown_warning_option=yes 17999else $as_nop 18000 xorg_cv_cc_flag_unknown_warning_option=no 18001fi 18002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18003fi 18004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18005printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18006 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18007 CFLAGS="$xorg_testset_save_CFLAGS" 18008fi 18009 18010if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18013 fi 18014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18016printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18017if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18018then : 18019 printf %s "(cached) " >&6 18020else $as_nop 18021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18022/* end confdefs.h. */ 18023int i; 18024_ACEOF 18025if ac_fn_c_try_compile "$LINENO" 18026then : 18027 xorg_cv_cc_flag_unused_command_line_argument=yes 18028else $as_nop 18029 xorg_cv_cc_flag_unused_command_line_argument=no 18030fi 18031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18032fi 18033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18034printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18036 CFLAGS="$xorg_testset_save_CFLAGS" 18037fi 18038 18039found="no" 18040 18041 if test $found = "no" ; then 18042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18044 fi 18045 18046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18048 fi 18049 18050 CFLAGS="$CFLAGS -Warray-bounds" 18051 18052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18053printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18054 cacheid=xorg_cv_cc_flag__Warray_bounds 18055 if eval test \${$cacheid+y} 18056then : 18057 printf %s "(cached) " >&6 18058else $as_nop 18059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18060/* end confdefs.h. */ 18061int i; 18062int 18063main (void) 18064{ 18065 18066 ; 18067 return 0; 18068} 18069_ACEOF 18070if ac_fn_c_try_link "$LINENO" 18071then : 18072 eval $cacheid=yes 18073else $as_nop 18074 eval $cacheid=no 18075fi 18076rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18077 conftest$ac_exeext conftest.$ac_ext 18078fi 18079 18080 18081 CFLAGS="$xorg_testset_save_CFLAGS" 18082 18083 eval supported=\$$cacheid 18084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18085printf "%s\n" "$supported" >&6; } 18086 if test "$supported" = "yes" ; then 18087 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18088 found="yes" 18089 fi 18090 fi 18091 18092 18093 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106xorg_testset_save_CFLAGS="$CFLAGS" 18107 18108if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18111printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18112if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18113then : 18114 printf %s "(cached) " >&6 18115else $as_nop 18116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18117/* end confdefs.h. */ 18118int i; 18119_ACEOF 18120if ac_fn_c_try_compile "$LINENO" 18121then : 18122 xorg_cv_cc_flag_unknown_warning_option=yes 18123else $as_nop 18124 xorg_cv_cc_flag_unknown_warning_option=no 18125fi 18126rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18127fi 18128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18129printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18131 CFLAGS="$xorg_testset_save_CFLAGS" 18132fi 18133 18134if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18137 fi 18138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18140printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18141if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18142then : 18143 printf %s "(cached) " >&6 18144else $as_nop 18145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18146/* end confdefs.h. */ 18147int i; 18148_ACEOF 18149if ac_fn_c_try_compile "$LINENO" 18150then : 18151 xorg_cv_cc_flag_unused_command_line_argument=yes 18152else $as_nop 18153 xorg_cv_cc_flag_unused_command_line_argument=no 18154fi 18155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18156fi 18157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18158printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18160 CFLAGS="$xorg_testset_save_CFLAGS" 18161fi 18162 18163found="no" 18164 18165 if test $found = "no" ; then 18166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18168 fi 18169 18170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18172 fi 18173 18174 CFLAGS="$CFLAGS -Wwrite-strings" 18175 18176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18177printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18178 cacheid=xorg_cv_cc_flag__Wwrite_strings 18179 if eval test \${$cacheid+y} 18180then : 18181 printf %s "(cached) " >&6 18182else $as_nop 18183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18184/* end confdefs.h. */ 18185int i; 18186int 18187main (void) 18188{ 18189 18190 ; 18191 return 0; 18192} 18193_ACEOF 18194if ac_fn_c_try_link "$LINENO" 18195then : 18196 eval $cacheid=yes 18197else $as_nop 18198 eval $cacheid=no 18199fi 18200rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18201 conftest$ac_exeext conftest.$ac_ext 18202fi 18203 18204 18205 CFLAGS="$xorg_testset_save_CFLAGS" 18206 18207 eval supported=\$$cacheid 18208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18209printf "%s\n" "$supported" >&6; } 18210 if test "$supported" = "yes" ; then 18211 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18212 found="yes" 18213 fi 18214 fi 18215 18216 18217 18218 18219 18220 18221 18222 18223 18224 18225 18226 18227 18228 18229 18230xorg_testset_save_CFLAGS="$CFLAGS" 18231 18232if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18235printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18236if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18237then : 18238 printf %s "(cached) " >&6 18239else $as_nop 18240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18241/* end confdefs.h. */ 18242int i; 18243_ACEOF 18244if ac_fn_c_try_compile "$LINENO" 18245then : 18246 xorg_cv_cc_flag_unknown_warning_option=yes 18247else $as_nop 18248 xorg_cv_cc_flag_unknown_warning_option=no 18249fi 18250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18251fi 18252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18253printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18255 CFLAGS="$xorg_testset_save_CFLAGS" 18256fi 18257 18258if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18261 fi 18262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18264printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18265if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18266then : 18267 printf %s "(cached) " >&6 18268else $as_nop 18269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18270/* end confdefs.h. */ 18271int i; 18272_ACEOF 18273if ac_fn_c_try_compile "$LINENO" 18274then : 18275 xorg_cv_cc_flag_unused_command_line_argument=yes 18276else $as_nop 18277 xorg_cv_cc_flag_unused_command_line_argument=no 18278fi 18279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18280fi 18281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18282printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18284 CFLAGS="$xorg_testset_save_CFLAGS" 18285fi 18286 18287found="no" 18288 18289 if test $found = "no" ; then 18290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18292 fi 18293 18294 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18296 fi 18297 18298 CFLAGS="$CFLAGS -Waddress" 18299 18300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18301printf %s "checking if $CC supports -Waddress... " >&6; } 18302 cacheid=xorg_cv_cc_flag__Waddress 18303 if eval test \${$cacheid+y} 18304then : 18305 printf %s "(cached) " >&6 18306else $as_nop 18307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18308/* end confdefs.h. */ 18309int i; 18310int 18311main (void) 18312{ 18313 18314 ; 18315 return 0; 18316} 18317_ACEOF 18318if ac_fn_c_try_link "$LINENO" 18319then : 18320 eval $cacheid=yes 18321else $as_nop 18322 eval $cacheid=no 18323fi 18324rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18325 conftest$ac_exeext conftest.$ac_ext 18326fi 18327 18328 18329 CFLAGS="$xorg_testset_save_CFLAGS" 18330 18331 eval supported=\$$cacheid 18332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18333printf "%s\n" "$supported" >&6; } 18334 if test "$supported" = "yes" ; then 18335 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18336 found="yes" 18337 fi 18338 fi 18339 18340 18341 18342 18343 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354xorg_testset_save_CFLAGS="$CFLAGS" 18355 18356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18359printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18360if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18361then : 18362 printf %s "(cached) " >&6 18363else $as_nop 18364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18365/* end confdefs.h. */ 18366int i; 18367_ACEOF 18368if ac_fn_c_try_compile "$LINENO" 18369then : 18370 xorg_cv_cc_flag_unknown_warning_option=yes 18371else $as_nop 18372 xorg_cv_cc_flag_unknown_warning_option=no 18373fi 18374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18375fi 18376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18377printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18379 CFLAGS="$xorg_testset_save_CFLAGS" 18380fi 18381 18382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18385 fi 18386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18388printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18389if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18390then : 18391 printf %s "(cached) " >&6 18392else $as_nop 18393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18394/* end confdefs.h. */ 18395int i; 18396_ACEOF 18397if ac_fn_c_try_compile "$LINENO" 18398then : 18399 xorg_cv_cc_flag_unused_command_line_argument=yes 18400else $as_nop 18401 xorg_cv_cc_flag_unused_command_line_argument=no 18402fi 18403rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18404fi 18405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18406printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18407 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18408 CFLAGS="$xorg_testset_save_CFLAGS" 18409fi 18410 18411found="no" 18412 18413 if test $found = "no" ; then 18414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18416 fi 18417 18418 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18420 fi 18421 18422 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18423 18424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18425printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18426 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18427 if eval test \${$cacheid+y} 18428then : 18429 printf %s "(cached) " >&6 18430else $as_nop 18431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18432/* end confdefs.h. */ 18433int i; 18434int 18435main (void) 18436{ 18437 18438 ; 18439 return 0; 18440} 18441_ACEOF 18442if ac_fn_c_try_link "$LINENO" 18443then : 18444 eval $cacheid=yes 18445else $as_nop 18446 eval $cacheid=no 18447fi 18448rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18449 conftest$ac_exeext conftest.$ac_ext 18450fi 18451 18452 18453 CFLAGS="$xorg_testset_save_CFLAGS" 18454 18455 eval supported=\$$cacheid 18456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18457printf "%s\n" "$supported" >&6; } 18458 if test "$supported" = "yes" ; then 18459 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18460 found="yes" 18461 fi 18462 fi 18463 18464 18465 18466 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477 18478xorg_testset_save_CFLAGS="$CFLAGS" 18479 18480if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18483printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18484if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18485then : 18486 printf %s "(cached) " >&6 18487else $as_nop 18488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18489/* end confdefs.h. */ 18490int i; 18491_ACEOF 18492if ac_fn_c_try_compile "$LINENO" 18493then : 18494 xorg_cv_cc_flag_unknown_warning_option=yes 18495else $as_nop 18496 xorg_cv_cc_flag_unknown_warning_option=no 18497fi 18498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18499fi 18500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18501printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18503 CFLAGS="$xorg_testset_save_CFLAGS" 18504fi 18505 18506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18509 fi 18510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18512printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18513if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18514then : 18515 printf %s "(cached) " >&6 18516else $as_nop 18517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18518/* end confdefs.h. */ 18519int i; 18520_ACEOF 18521if ac_fn_c_try_compile "$LINENO" 18522then : 18523 xorg_cv_cc_flag_unused_command_line_argument=yes 18524else $as_nop 18525 xorg_cv_cc_flag_unused_command_line_argument=no 18526fi 18527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18528fi 18529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18530printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18531 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18532 CFLAGS="$xorg_testset_save_CFLAGS" 18533fi 18534 18535found="no" 18536 18537 if test $found = "no" ; then 18538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18540 fi 18541 18542 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18544 fi 18545 18546 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18547 18548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18549printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18550 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18551 if eval test \${$cacheid+y} 18552then : 18553 printf %s "(cached) " >&6 18554else $as_nop 18555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18556/* end confdefs.h. */ 18557int i; 18558int 18559main (void) 18560{ 18561 18562 ; 18563 return 0; 18564} 18565_ACEOF 18566if ac_fn_c_try_link "$LINENO" 18567then : 18568 eval $cacheid=yes 18569else $as_nop 18570 eval $cacheid=no 18571fi 18572rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18573 conftest$ac_exeext conftest.$ac_ext 18574fi 18575 18576 18577 CFLAGS="$xorg_testset_save_CFLAGS" 18578 18579 eval supported=\$$cacheid 18580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18581printf "%s\n" "$supported" >&6; } 18582 if test "$supported" = "yes" ; then 18583 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18584 found="yes" 18585 fi 18586 fi 18587 18588 18589fi 18590 18591 18592 18593 18594 18595 18596 18597 CWARNFLAGS="$BASE_CFLAGS" 18598 if test "x$GCC" = xyes ; then 18599 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18600 fi 18601 18602 18603 18604 18605 18606 18607 18608 18609# Check whether --enable-strict-compilation was given. 18610if test ${enable_strict_compilation+y} 18611then : 18612 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18613else $as_nop 18614 STRICT_COMPILE=no 18615fi 18616 18617 18618 18619 18620 18621 18622STRICT_CFLAGS="" 18623 18624 18625 18626 18627 18628 18629 18630 18631 18632 18633 18634 18635 18636xorg_testset_save_CFLAGS="$CFLAGS" 18637 18638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18641printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18642if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18643then : 18644 printf %s "(cached) " >&6 18645else $as_nop 18646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18647/* end confdefs.h. */ 18648int i; 18649_ACEOF 18650if ac_fn_c_try_compile "$LINENO" 18651then : 18652 xorg_cv_cc_flag_unknown_warning_option=yes 18653else $as_nop 18654 xorg_cv_cc_flag_unknown_warning_option=no 18655fi 18656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18657fi 18658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18659printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18661 CFLAGS="$xorg_testset_save_CFLAGS" 18662fi 18663 18664if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18667 fi 18668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18670printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18671if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18672then : 18673 printf %s "(cached) " >&6 18674else $as_nop 18675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18676/* end confdefs.h. */ 18677int i; 18678_ACEOF 18679if ac_fn_c_try_compile "$LINENO" 18680then : 18681 xorg_cv_cc_flag_unused_command_line_argument=yes 18682else $as_nop 18683 xorg_cv_cc_flag_unused_command_line_argument=no 18684fi 18685rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18686fi 18687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18688printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18690 CFLAGS="$xorg_testset_save_CFLAGS" 18691fi 18692 18693found="no" 18694 18695 if test $found = "no" ; then 18696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18698 fi 18699 18700 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18702 fi 18703 18704 CFLAGS="$CFLAGS -pedantic" 18705 18706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18707printf %s "checking if $CC supports -pedantic... " >&6; } 18708 cacheid=xorg_cv_cc_flag__pedantic 18709 if eval test \${$cacheid+y} 18710then : 18711 printf %s "(cached) " >&6 18712else $as_nop 18713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18714/* end confdefs.h. */ 18715int i; 18716int 18717main (void) 18718{ 18719 18720 ; 18721 return 0; 18722} 18723_ACEOF 18724if ac_fn_c_try_link "$LINENO" 18725then : 18726 eval $cacheid=yes 18727else $as_nop 18728 eval $cacheid=no 18729fi 18730rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18731 conftest$ac_exeext conftest.$ac_ext 18732fi 18733 18734 18735 CFLAGS="$xorg_testset_save_CFLAGS" 18736 18737 eval supported=\$$cacheid 18738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18739printf "%s\n" "$supported" >&6; } 18740 if test "$supported" = "yes" ; then 18741 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18742 found="yes" 18743 fi 18744 fi 18745 18746 18747 18748 18749 18750 18751 18752 18753 18754 18755 18756 18757 18758 18759 18760xorg_testset_save_CFLAGS="$CFLAGS" 18761 18762if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18765printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18766if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18767then : 18768 printf %s "(cached) " >&6 18769else $as_nop 18770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18771/* end confdefs.h. */ 18772int i; 18773_ACEOF 18774if ac_fn_c_try_compile "$LINENO" 18775then : 18776 xorg_cv_cc_flag_unknown_warning_option=yes 18777else $as_nop 18778 xorg_cv_cc_flag_unknown_warning_option=no 18779fi 18780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18781fi 18782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18783printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18785 CFLAGS="$xorg_testset_save_CFLAGS" 18786fi 18787 18788if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18791 fi 18792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18794printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18795if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18796then : 18797 printf %s "(cached) " >&6 18798else $as_nop 18799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18800/* end confdefs.h. */ 18801int i; 18802_ACEOF 18803if ac_fn_c_try_compile "$LINENO" 18804then : 18805 xorg_cv_cc_flag_unused_command_line_argument=yes 18806else $as_nop 18807 xorg_cv_cc_flag_unused_command_line_argument=no 18808fi 18809rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18810fi 18811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18812printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18814 CFLAGS="$xorg_testset_save_CFLAGS" 18815fi 18816 18817found="no" 18818 18819 if test $found = "no" ; then 18820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18822 fi 18823 18824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18826 fi 18827 18828 CFLAGS="$CFLAGS -Werror" 18829 18830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18831printf %s "checking if $CC supports -Werror... " >&6; } 18832 cacheid=xorg_cv_cc_flag__Werror 18833 if eval test \${$cacheid+y} 18834then : 18835 printf %s "(cached) " >&6 18836else $as_nop 18837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18838/* end confdefs.h. */ 18839int i; 18840int 18841main (void) 18842{ 18843 18844 ; 18845 return 0; 18846} 18847_ACEOF 18848if ac_fn_c_try_link "$LINENO" 18849then : 18850 eval $cacheid=yes 18851else $as_nop 18852 eval $cacheid=no 18853fi 18854rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18855 conftest$ac_exeext conftest.$ac_ext 18856fi 18857 18858 18859 CFLAGS="$xorg_testset_save_CFLAGS" 18860 18861 eval supported=\$$cacheid 18862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18863printf "%s\n" "$supported" >&6; } 18864 if test "$supported" = "yes" ; then 18865 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18866 found="yes" 18867 fi 18868 fi 18869 18870 if test $found = "no" ; then 18871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18873 fi 18874 18875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18877 fi 18878 18879 CFLAGS="$CFLAGS -errwarn" 18880 18881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18882printf %s "checking if $CC supports -errwarn... " >&6; } 18883 cacheid=xorg_cv_cc_flag__errwarn 18884 if eval test \${$cacheid+y} 18885then : 18886 printf %s "(cached) " >&6 18887else $as_nop 18888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18889/* end confdefs.h. */ 18890int i; 18891int 18892main (void) 18893{ 18894 18895 ; 18896 return 0; 18897} 18898_ACEOF 18899if ac_fn_c_try_link "$LINENO" 18900then : 18901 eval $cacheid=yes 18902else $as_nop 18903 eval $cacheid=no 18904fi 18905rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18906 conftest$ac_exeext conftest.$ac_ext 18907fi 18908 18909 18910 CFLAGS="$xorg_testset_save_CFLAGS" 18911 18912 eval supported=\$$cacheid 18913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18914printf "%s\n" "$supported" >&6; } 18915 if test "$supported" = "yes" ; then 18916 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18917 found="yes" 18918 fi 18919 fi 18920 18921 18922 18923# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18924# activate it with -Werror, so we add it here explicitly. 18925 18926 18927 18928 18929 18930 18931 18932 18933 18934 18935 18936 18937 18938xorg_testset_save_CFLAGS="$CFLAGS" 18939 18940if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18943printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18944if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18945then : 18946 printf %s "(cached) " >&6 18947else $as_nop 18948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18949/* end confdefs.h. */ 18950int i; 18951_ACEOF 18952if ac_fn_c_try_compile "$LINENO" 18953then : 18954 xorg_cv_cc_flag_unknown_warning_option=yes 18955else $as_nop 18956 xorg_cv_cc_flag_unknown_warning_option=no 18957fi 18958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18959fi 18960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18961printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18963 CFLAGS="$xorg_testset_save_CFLAGS" 18964fi 18965 18966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18969 fi 18970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18972printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18973if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18974then : 18975 printf %s "(cached) " >&6 18976else $as_nop 18977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18978/* end confdefs.h. */ 18979int i; 18980_ACEOF 18981if ac_fn_c_try_compile "$LINENO" 18982then : 18983 xorg_cv_cc_flag_unused_command_line_argument=yes 18984else $as_nop 18985 xorg_cv_cc_flag_unused_command_line_argument=no 18986fi 18987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18988fi 18989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18990printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18992 CFLAGS="$xorg_testset_save_CFLAGS" 18993fi 18994 18995found="no" 18996 18997 if test $found = "no" ; then 18998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19000 fi 19001 19002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19004 fi 19005 19006 CFLAGS="$CFLAGS -Werror=attributes" 19007 19008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 19009printf %s "checking if $CC supports -Werror=attributes... " >&6; } 19010 cacheid=xorg_cv_cc_flag__Werror_attributes 19011 if eval test \${$cacheid+y} 19012then : 19013 printf %s "(cached) " >&6 19014else $as_nop 19015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19016/* end confdefs.h. */ 19017int i; 19018int 19019main (void) 19020{ 19021 19022 ; 19023 return 0; 19024} 19025_ACEOF 19026if ac_fn_c_try_link "$LINENO" 19027then : 19028 eval $cacheid=yes 19029else $as_nop 19030 eval $cacheid=no 19031fi 19032rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19033 conftest$ac_exeext conftest.$ac_ext 19034fi 19035 19036 19037 CFLAGS="$xorg_testset_save_CFLAGS" 19038 19039 eval supported=\$$cacheid 19040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19041printf "%s\n" "$supported" >&6; } 19042 if test "$supported" = "yes" ; then 19043 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19044 found="yes" 19045 fi 19046 fi 19047 19048 19049 19050if test "x$STRICT_COMPILE" = "xyes"; then 19051 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19052 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19053fi 19054 19055 19056 19057 19058 19059 19060cat >>confdefs.h <<_ACEOF 19061#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19062_ACEOF 19063 19064 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19065 if test "x$PVM" = "x"; then 19066 PVM="0" 19067 fi 19068 19069printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19070 19071 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19072 if test "x$PVP" = "x"; then 19073 PVP="0" 19074 fi 19075 19076printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19077 19078 19079 19080CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19081mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19082|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19083touch \$(top_srcdir)/ChangeLog; \ 19084echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19085 19086 19087 19088 19089macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19090INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19091mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19092|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19093touch \$(top_srcdir)/INSTALL; \ 19094echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19095 19096 19097 19098 19099 19100 19101case $host_os in 19102 solaris*) 19103 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19104 # check for a man page file found in later versions that use 19105 # traditional section numbers instead 19106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19107printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19108if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19109then : 19110 printf %s "(cached) " >&6 19111else $as_nop 19112 test "$cross_compiling" = yes && 19113 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19114if test -r "/usr/share/man/man7/attributes.7"; then 19115 ac_cv_file__usr_share_man_man7_attributes_7=yes 19116else 19117 ac_cv_file__usr_share_man_man7_attributes_7=no 19118fi 19119fi 19120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19121printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19122if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19123then : 19124 SYSV_MAN_SECTIONS=false 19125else $as_nop 19126 SYSV_MAN_SECTIONS=true 19127fi 19128 19129 ;; 19130 *) SYSV_MAN_SECTIONS=false ;; 19131esac 19132 19133if test x$APP_MAN_SUFFIX = x ; then 19134 APP_MAN_SUFFIX=1 19135fi 19136if test x$APP_MAN_DIR = x ; then 19137 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19138fi 19139 19140if test x$LIB_MAN_SUFFIX = x ; then 19141 LIB_MAN_SUFFIX=3 19142fi 19143if test x$LIB_MAN_DIR = x ; then 19144 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19145fi 19146 19147if test x$FILE_MAN_SUFFIX = x ; then 19148 case $SYSV_MAN_SECTIONS in 19149 true) FILE_MAN_SUFFIX=4 ;; 19150 *) FILE_MAN_SUFFIX=5 ;; 19151 esac 19152fi 19153if test x$FILE_MAN_DIR = x ; then 19154 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19155fi 19156 19157if test x$MISC_MAN_SUFFIX = x ; then 19158 case $SYSV_MAN_SECTIONS in 19159 true) MISC_MAN_SUFFIX=5 ;; 19160 *) MISC_MAN_SUFFIX=7 ;; 19161 esac 19162fi 19163if test x$MISC_MAN_DIR = x ; then 19164 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19165fi 19166 19167if test x$DRIVER_MAN_SUFFIX = x ; then 19168 case $SYSV_MAN_SECTIONS in 19169 true) DRIVER_MAN_SUFFIX=7 ;; 19170 *) DRIVER_MAN_SUFFIX=4 ;; 19171 esac 19172fi 19173if test x$DRIVER_MAN_DIR = x ; then 19174 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19175fi 19176 19177if test x$ADMIN_MAN_SUFFIX = x ; then 19178 case $SYSV_MAN_SECTIONS in 19179 true) ADMIN_MAN_SUFFIX=1m ;; 19180 *) ADMIN_MAN_SUFFIX=8 ;; 19181 esac 19182fi 19183if test x$ADMIN_MAN_DIR = x ; then 19184 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19185fi 19186 19187 19188 19189 19190 19191 19192 19193 19194 19195 19196 19197 19198 19199 19200 19201XORG_MAN_PAGE="X Version 11" 19202 19203MAN_SUBSTS="\ 19204 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19205 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19206 -e 's|__xservername__|Xorg|g' \ 19207 -e 's|__xconfigfile__|xorg.conf|g' \ 19208 -e 's|__projectroot__|\$(prefix)|g' \ 19209 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19210 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19211 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19212 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19213 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19214 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19215 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19216 19217 19218 19219# Check whether --enable-silent-rules was given. 19220if test ${enable_silent_rules+y} 19221then : 19222 enableval=$enable_silent_rules; 19223fi 19224 19225case $enable_silent_rules in # ((( 19226 yes) AM_DEFAULT_VERBOSITY=0;; 19227 no) AM_DEFAULT_VERBOSITY=1;; 19228 *) AM_DEFAULT_VERBOSITY=0;; 19229esac 19230am_make=${MAKE-make} 19231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19232printf %s "checking whether $am_make supports nested variables... " >&6; } 19233if test ${am_cv_make_support_nested_variables+y} 19234then : 19235 printf %s "(cached) " >&6 19236else $as_nop 19237 if printf "%s\n" 'TRUE=$(BAR$(V)) 19238BAR0=false 19239BAR1=true 19240V=1 19241am__doit: 19242 @$(TRUE) 19243.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19244 am_cv_make_support_nested_variables=yes 19245else 19246 am_cv_make_support_nested_variables=no 19247fi 19248fi 19249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19250printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19251if test $am_cv_make_support_nested_variables = yes; then 19252 AM_V='$(V)' 19253 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19254else 19255 AM_V=$AM_DEFAULT_VERBOSITY 19256 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19257fi 19258AM_BACKSLASH='\' 19259 19260 19261 19262# Check whether --enable-malloc0returnsnull was given. 19263if test ${enable_malloc0returnsnull+y} 19264then : 19265 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 19266else $as_nop 19267 MALLOC_ZERO_RETURNS_NULL=auto 19268fi 19269 19270 19271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 19272printf %s "checking whether malloc(0) returns NULL... " >&6; } 19273if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 19274if test ${xorg_cv_malloc0_returns_null+y} 19275then : 19276 printf %s "(cached) " >&6 19277else $as_nop 19278 if test "$cross_compiling" = yes 19279then : 19280 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19281printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19282as_fn_error $? "cannot run test program while cross compiling 19283See \`config.log' for more details" "$LINENO" 5; } 19284else $as_nop 19285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19286/* end confdefs.h. */ 19287 19288#include <stdlib.h> 19289 19290int 19291main (void) 19292{ 19293 19294 char *m0, *r0, *c0, *p; 19295 m0 = malloc(0); 19296 p = malloc(10); 19297 r0 = realloc(p,0); 19298 c0 = calloc(0,10); 19299 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 19300 19301 ; 19302 return 0; 19303} 19304_ACEOF 19305if ac_fn_c_try_run "$LINENO" 19306then : 19307 xorg_cv_malloc0_returns_null=yes 19308else $as_nop 19309 xorg_cv_malloc0_returns_null=no 19310fi 19311rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19312 conftest.$ac_objext conftest.beam conftest.$ac_ext 19313fi 19314 19315fi 19316 19317MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 19318fi 19319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 19320printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; } 19321 19322if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 19323 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 19324 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 19325 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 19326else 19327 MALLOC_ZERO_CFLAGS="" 19328 XMALLOC_ZERO_CFLAGS="" 19329 XTMALLOC_ZERO_CFLAGS="" 19330fi 19331 19332 19333 19334 19335 19336 19337# Obtain compiler/linker options for dependencies 19338 19339pkg_failed=no 19340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XSCRNSAVER" >&5 19341printf %s "checking for XSCRNSAVER... " >&6; } 19342 19343if test -n "$XSCRNSAVER_CFLAGS"; then 19344 pkg_cv_XSCRNSAVER_CFLAGS="$XSCRNSAVER_CFLAGS" 19345 elif test -n "$PKG_CONFIG"; then 19346 if test -n "$PKG_CONFIG" && \ 19347 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto scrnsaverproto >= 1.2\""; } >&5 19348 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto scrnsaverproto >= 1.2") 2>&5 19349 ac_status=$? 19350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19351 test $ac_status = 0; }; then 19352 pkg_cv_XSCRNSAVER_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto scrnsaverproto >= 1.2" 2>/dev/null` 19353 test "x$?" != "x0" && pkg_failed=yes 19354else 19355 pkg_failed=yes 19356fi 19357 else 19358 pkg_failed=untried 19359fi 19360if test -n "$XSCRNSAVER_LIBS"; then 19361 pkg_cv_XSCRNSAVER_LIBS="$XSCRNSAVER_LIBS" 19362 elif test -n "$PKG_CONFIG"; then 19363 if test -n "$PKG_CONFIG" && \ 19364 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto scrnsaverproto >= 1.2\""; } >&5 19365 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto scrnsaverproto >= 1.2") 2>&5 19366 ac_status=$? 19367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19368 test $ac_status = 0; }; then 19369 pkg_cv_XSCRNSAVER_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto scrnsaverproto >= 1.2" 2>/dev/null` 19370 test "x$?" != "x0" && pkg_failed=yes 19371else 19372 pkg_failed=yes 19373fi 19374 else 19375 pkg_failed=untried 19376fi 19377 19378 19379 19380if test $pkg_failed = yes; then 19381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19382printf "%s\n" "no" >&6; } 19383 19384if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19385 _pkg_short_errors_supported=yes 19386else 19387 _pkg_short_errors_supported=no 19388fi 19389 if test $_pkg_short_errors_supported = yes; then 19390 XSCRNSAVER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext xextproto scrnsaverproto >= 1.2" 2>&1` 19391 else 19392 XSCRNSAVER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext xextproto scrnsaverproto >= 1.2" 2>&1` 19393 fi 19394 # Put the nasty error message in config.log where it belongs 19395 echo "$XSCRNSAVER_PKG_ERRORS" >&5 19396 19397 as_fn_error $? "Package requirements (x11 xext xextproto scrnsaverproto >= 1.2) were not met: 19398 19399$XSCRNSAVER_PKG_ERRORS 19400 19401Consider adjusting the PKG_CONFIG_PATH environment variable if you 19402installed software in a non-standard prefix. 19403 19404Alternatively, you may set the environment variables XSCRNSAVER_CFLAGS 19405and XSCRNSAVER_LIBS to avoid the need to call pkg-config. 19406See the pkg-config man page for more details." "$LINENO" 5 19407elif test $pkg_failed = untried; then 19408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19409printf "%s\n" "no" >&6; } 19410 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19411printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19412as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19413is in your PATH or set the PKG_CONFIG environment variable to the full 19414path to pkg-config. 19415 19416Alternatively, you may set the environment variables XSCRNSAVER_CFLAGS 19417and XSCRNSAVER_LIBS to avoid the need to call pkg-config. 19418See the pkg-config man page for more details. 19419 19420To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19421See \`config.log' for more details" "$LINENO" 5; } 19422else 19423 XSCRNSAVER_CFLAGS=$pkg_cv_XSCRNSAVER_CFLAGS 19424 XSCRNSAVER_LIBS=$pkg_cv_XSCRNSAVER_LIBS 19425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19426printf "%s\n" "yes" >&6; } 19427 19428fi 19429 19430# Allow checking code with lint, sparse, etc. 19431 19432 19433 19434 19435 19436# Check whether --with-lint was given. 19437if test ${with_lint+y} 19438then : 19439 withval=$with_lint; use_lint=$withval 19440else $as_nop 19441 use_lint=no 19442fi 19443 19444 19445# Obtain platform specific info like program name and options 19446# The lint program on FreeBSD and NetBSD is different from the one on Solaris 19447case $host_os in 19448 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 19449 lint_name=splint 19450 lint_options="-badflag" 19451 ;; 19452 *freebsd* | *netbsd*) 19453 lint_name=lint 19454 lint_options="-u -b" 19455 ;; 19456 *solaris*) 19457 lint_name=lint 19458 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 19459 ;; 19460esac 19461 19462# Test for the presence of the program (either guessed by the code or spelled out by the user) 19463if test "x$use_lint" = x"yes" ; then 19464 # Extract the first word of "$lint_name", so it can be a program name with args. 19465set dummy $lint_name; ac_word=$2 19466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19467printf %s "checking for $ac_word... " >&6; } 19468if test ${ac_cv_path_LINT+y} 19469then : 19470 printf %s "(cached) " >&6 19471else $as_nop 19472 case $LINT in 19473 [\\/]* | ?:[\\/]*) 19474 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 19475 ;; 19476 *) 19477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19478for as_dir in $PATH 19479do 19480 IFS=$as_save_IFS 19481 case $as_dir in #((( 19482 '') as_dir=./ ;; 19483 */) ;; 19484 *) as_dir=$as_dir/ ;; 19485 esac 19486 for ac_exec_ext in '' $ac_executable_extensions; do 19487 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19488 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 19489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19490 break 2 19491 fi 19492done 19493 done 19494IFS=$as_save_IFS 19495 19496 ;; 19497esac 19498fi 19499LINT=$ac_cv_path_LINT 19500if test -n "$LINT"; then 19501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 19502printf "%s\n" "$LINT" >&6; } 19503else 19504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19505printf "%s\n" "no" >&6; } 19506fi 19507 19508 19509 if test "x$LINT" = "x"; then 19510 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 19511 fi 19512elif test "x$use_lint" = x"no" ; then 19513 if test "x$LINT" != "x"; then 19514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 19515printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 19516 fi 19517else 19518 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 19519fi 19520 19521# User supplied flags override default flags 19522if test "x$LINT_FLAGS" != "x"; then 19523 lint_options=$LINT_FLAGS 19524fi 19525 19526LINT_FLAGS=$lint_options 19527 19528 if test "x$LINT" != x; then 19529 LINT_TRUE= 19530 LINT_FALSE='#' 19531else 19532 LINT_TRUE='#' 19533 LINT_FALSE= 19534fi 19535 19536 19537 19538 19539 19540# Check whether --enable-lint-library was given. 19541if test ${enable_lint_library+y} 19542then : 19543 enableval=$enable_lint_library; make_lint_lib=$enableval 19544else $as_nop 19545 make_lint_lib=no 19546fi 19547 19548 19549if test "x$make_lint_lib" = x"yes" ; then 19550 LINTLIB=llib-lXss.ln 19551 if test "x$LINT" = "x"; then 19552 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 19553 fi 19554elif test "x$make_lint_lib" != x"no" ; then 19555 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 19556fi 19557 19558 19559 if test x$make_lint_lib != xno; then 19560 MAKE_LINT_LIB_TRUE= 19561 MAKE_LINT_LIB_FALSE='#' 19562else 19563 MAKE_LINT_LIB_TRUE='#' 19564 MAKE_LINT_LIB_FALSE= 19565fi 19566 19567 19568 19569 19570ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xscrnsaver.pc" 19571 19572cat >confcache <<\_ACEOF 19573# This file is a shell script that caches the results of configure 19574# tests run on this system so they can be shared between configure 19575# scripts and configure runs, see configure's option --config-cache. 19576# It is not useful on other systems. If it contains results you don't 19577# want to keep, you may remove or edit it. 19578# 19579# config.status only pays attention to the cache file if you give it 19580# the --recheck option to rerun configure. 19581# 19582# `ac_cv_env_foo' variables (set or unset) will be overridden when 19583# loading this file, other *unset* `ac_cv_foo' will be assigned the 19584# following values. 19585 19586_ACEOF 19587 19588# The following way of writing the cache mishandles newlines in values, 19589# but we know of no workaround that is simple, portable, and efficient. 19590# So, we kill variables containing newlines. 19591# Ultrix sh set writes to stderr and can't be redirected directly, 19592# and sets the high bit in the cache file unless we assign to the vars. 19593( 19594 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19595 eval ac_val=\$$ac_var 19596 case $ac_val in #( 19597 *${as_nl}*) 19598 case $ac_var in #( 19599 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19600printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19601 esac 19602 case $ac_var in #( 19603 _ | IFS | as_nl) ;; #( 19604 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19605 *) { eval $ac_var=; unset $ac_var;} ;; 19606 esac ;; 19607 esac 19608 done 19609 19610 (set) 2>&1 | 19611 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19612 *${as_nl}ac_space=\ *) 19613 # `set' does not quote correctly, so add quotes: double-quote 19614 # substitution turns \\\\ into \\, and sed turns \\ into \. 19615 sed -n \ 19616 "s/'/'\\\\''/g; 19617 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19618 ;; #( 19619 *) 19620 # `set' quotes correctly as required by POSIX, so do not add quotes. 19621 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19622 ;; 19623 esac | 19624 sort 19625) | 19626 sed ' 19627 /^ac_cv_env_/b end 19628 t clear 19629 :clear 19630 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19631 t end 19632 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19633 :end' >>confcache 19634if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19635 if test -w "$cache_file"; then 19636 if test "x$cache_file" != "x/dev/null"; then 19637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19638printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19639 if test ! -f "$cache_file" || test -h "$cache_file"; then 19640 cat confcache >"$cache_file" 19641 else 19642 case $cache_file in #( 19643 */* | ?:*) 19644 mv -f confcache "$cache_file"$$ && 19645 mv -f "$cache_file"$$ "$cache_file" ;; #( 19646 *) 19647 mv -f confcache "$cache_file" ;; 19648 esac 19649 fi 19650 fi 19651 else 19652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19653printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19654 fi 19655fi 19656rm -f confcache 19657 19658test "x$prefix" = xNONE && prefix=$ac_default_prefix 19659# Let make expand exec_prefix. 19660test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19661 19662DEFS=-DHAVE_CONFIG_H 19663 19664ac_libobjs= 19665ac_ltlibobjs= 19666U= 19667for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19668 # 1. Remove the extension, and $U if already installed. 19669 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19670 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19671 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19672 # will be set to the directory where LIBOBJS objects are built. 19673 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19674 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19675done 19676LIBOBJS=$ac_libobjs 19677 19678LTLIBOBJS=$ac_ltlibobjs 19679 19680 19681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19682printf %s "checking that generated files are newer than configure... " >&6; } 19683 if test -n "$am_sleep_pid"; then 19684 # Hide warnings about reused PIDs. 19685 wait $am_sleep_pid 2>/dev/null 19686 fi 19687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 19688printf "%s\n" "done" >&6; } 19689 if test -n "$EXEEXT"; then 19690 am__EXEEXT_TRUE= 19691 am__EXEEXT_FALSE='#' 19692else 19693 am__EXEEXT_TRUE='#' 19694 am__EXEEXT_FALSE= 19695fi 19696 19697if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19698 as_fn_error $? "conditional \"AMDEP\" was never defined. 19699Usually this means the macro was only invoked conditionally." "$LINENO" 5 19700fi 19701if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19702 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19703Usually this means the macro was only invoked conditionally." "$LINENO" 5 19704fi 19705if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 19706 as_fn_error $? "conditional \"LINT\" was never defined. 19707Usually this means the macro was only invoked conditionally." "$LINENO" 5 19708fi 19709if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 19710 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 19711Usually this means the macro was only invoked conditionally." "$LINENO" 5 19712fi 19713 19714: "${CONFIG_STATUS=./config.status}" 19715ac_write_fail=0 19716ac_clean_files_save=$ac_clean_files 19717ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19719printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 19720as_write_fail=0 19721cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19722#! $SHELL 19723# Generated by $as_me. 19724# Run this file to recreate the current configuration. 19725# Compiler output produced by configure, useful for debugging 19726# configure, is in config.log if it exists. 19727 19728debug=false 19729ac_cs_recheck=false 19730ac_cs_silent=false 19731 19732SHELL=\${CONFIG_SHELL-$SHELL} 19733export SHELL 19734_ASEOF 19735cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19736## -------------------- ## 19737## M4sh Initialization. ## 19738## -------------------- ## 19739 19740# Be more Bourne compatible 19741DUALCASE=1; export DUALCASE # for MKS sh 19742as_nop=: 19743if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 19744then : 19745 emulate sh 19746 NULLCMD=: 19747 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19748 # is contrary to our usage. Disable this feature. 19749 alias -g '${1+"$@"}'='"$@"' 19750 setopt NO_GLOB_SUBST 19751else $as_nop 19752 case `(set -o) 2>/dev/null` in #( 19753 *posix*) : 19754 set -o posix ;; #( 19755 *) : 19756 ;; 19757esac 19758fi 19759 19760 19761 19762# Reset variables that may have inherited troublesome values from 19763# the environment. 19764 19765# IFS needs to be set, to space, tab, and newline, in precisely that order. 19766# (If _AS_PATH_WALK were called with IFS unset, it would have the 19767# side effect of setting IFS to empty, thus disabling word splitting.) 19768# Quoting is to prevent editors from complaining about space-tab. 19769as_nl=' 19770' 19771export as_nl 19772IFS=" "" $as_nl" 19773 19774PS1='$ ' 19775PS2='> ' 19776PS4='+ ' 19777 19778# Ensure predictable behavior from utilities with locale-dependent output. 19779LC_ALL=C 19780export LC_ALL 19781LANGUAGE=C 19782export LANGUAGE 19783 19784# We cannot yet rely on "unset" to work, but we need these variables 19785# to be unset--not just set to an empty or harmless value--now, to 19786# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 19787# also avoids known problems related to "unset" and subshell syntax 19788# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 19789for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 19790do eval test \${$as_var+y} \ 19791 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19792done 19793 19794# Ensure that fds 0, 1, and 2 are open. 19795if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 19796if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 19797if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 19798 19799# The user is always right. 19800if ${PATH_SEPARATOR+false} :; then 19801 PATH_SEPARATOR=: 19802 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19803 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19804 PATH_SEPARATOR=';' 19805 } 19806fi 19807 19808 19809# Find who we are. Look in the path if we contain no directory separator. 19810as_myself= 19811case $0 in #(( 19812 *[\\/]* ) as_myself=$0 ;; 19813 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19814for as_dir in $PATH 19815do 19816 IFS=$as_save_IFS 19817 case $as_dir in #((( 19818 '') as_dir=./ ;; 19819 */) ;; 19820 *) as_dir=$as_dir/ ;; 19821 esac 19822 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 19823 done 19824IFS=$as_save_IFS 19825 19826 ;; 19827esac 19828# We did not find ourselves, most probably we were run as `sh COMMAND' 19829# in which case we are not to be found in the path. 19830if test "x$as_myself" = x; then 19831 as_myself=$0 19832fi 19833if test ! -f "$as_myself"; then 19834 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19835 exit 1 19836fi 19837 19838 19839 19840# as_fn_error STATUS ERROR [LINENO LOG_FD] 19841# ---------------------------------------- 19842# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19843# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19844# script with STATUS, using 1 if that was 0. 19845as_fn_error () 19846{ 19847 as_status=$1; test $as_status -eq 0 && as_status=1 19848 if test "$4"; then 19849 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19851 fi 19852 printf "%s\n" "$as_me: error: $2" >&2 19853 as_fn_exit $as_status 19854} # as_fn_error 19855 19856 19857 19858# as_fn_set_status STATUS 19859# ----------------------- 19860# Set $? to STATUS, without forking. 19861as_fn_set_status () 19862{ 19863 return $1 19864} # as_fn_set_status 19865 19866# as_fn_exit STATUS 19867# ----------------- 19868# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19869as_fn_exit () 19870{ 19871 set +e 19872 as_fn_set_status $1 19873 exit $1 19874} # as_fn_exit 19875 19876# as_fn_unset VAR 19877# --------------- 19878# Portably unset VAR. 19879as_fn_unset () 19880{ 19881 { eval $1=; unset $1;} 19882} 19883as_unset=as_fn_unset 19884 19885# as_fn_append VAR VALUE 19886# ---------------------- 19887# Append the text in VALUE to the end of the definition contained in VAR. Take 19888# advantage of any shell optimizations that allow amortized linear growth over 19889# repeated appends, instead of the typical quadratic growth present in naive 19890# implementations. 19891if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 19892then : 19893 eval 'as_fn_append () 19894 { 19895 eval $1+=\$2 19896 }' 19897else $as_nop 19898 as_fn_append () 19899 { 19900 eval $1=\$$1\$2 19901 } 19902fi # as_fn_append 19903 19904# as_fn_arith ARG... 19905# ------------------ 19906# Perform arithmetic evaluation on the ARGs, and store the result in the 19907# global $as_val. Take advantage of shells that can avoid forks. The arguments 19908# must be portable across $(()) and expr. 19909if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 19910then : 19911 eval 'as_fn_arith () 19912 { 19913 as_val=$(( $* )) 19914 }' 19915else $as_nop 19916 as_fn_arith () 19917 { 19918 as_val=`expr "$@" || test $? -eq 1` 19919 } 19920fi # as_fn_arith 19921 19922 19923if expr a : '\(a\)' >/dev/null 2>&1 && 19924 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19925 as_expr=expr 19926else 19927 as_expr=false 19928fi 19929 19930if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19931 as_basename=basename 19932else 19933 as_basename=false 19934fi 19935 19936if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19937 as_dirname=dirname 19938else 19939 as_dirname=false 19940fi 19941 19942as_me=`$as_basename -- "$0" || 19943$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19944 X"$0" : 'X\(//\)$' \| \ 19945 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19946printf "%s\n" X/"$0" | 19947 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19948 s//\1/ 19949 q 19950 } 19951 /^X\/\(\/\/\)$/{ 19952 s//\1/ 19953 q 19954 } 19955 /^X\/\(\/\).*/{ 19956 s//\1/ 19957 q 19958 } 19959 s/.*/./; q'` 19960 19961# Avoid depending upon Character Ranges. 19962as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19963as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19964as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19965as_cr_digits='0123456789' 19966as_cr_alnum=$as_cr_Letters$as_cr_digits 19967 19968 19969# Determine whether it's possible to make 'echo' print without a newline. 19970# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 19971# for compatibility with existing Makefiles. 19972ECHO_C= ECHO_N= ECHO_T= 19973case `echo -n x` in #((((( 19974-n*) 19975 case `echo 'xy\c'` in 19976 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19977 xy) ECHO_C='\c';; 19978 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19979 ECHO_T=' ';; 19980 esac;; 19981*) 19982 ECHO_N='-n';; 19983esac 19984 19985# For backward compatibility with old third-party macros, we provide 19986# the shell variables $as_echo and $as_echo_n. New code should use 19987# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 19988as_echo='printf %s\n' 19989as_echo_n='printf %s' 19990 19991rm -f conf$$ conf$$.exe conf$$.file 19992if test -d conf$$.dir; then 19993 rm -f conf$$.dir/conf$$.file 19994else 19995 rm -f conf$$.dir 19996 mkdir conf$$.dir 2>/dev/null 19997fi 19998if (echo >conf$$.file) 2>/dev/null; then 19999 if ln -s conf$$.file conf$$ 2>/dev/null; then 20000 as_ln_s='ln -s' 20001 # ... but there are two gotchas: 20002 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20003 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20004 # In both cases, we have to default to `cp -pR'. 20005 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20006 as_ln_s='cp -pR' 20007 elif ln conf$$.file conf$$ 2>/dev/null; then 20008 as_ln_s=ln 20009 else 20010 as_ln_s='cp -pR' 20011 fi 20012else 20013 as_ln_s='cp -pR' 20014fi 20015rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20016rmdir conf$$.dir 2>/dev/null 20017 20018 20019# as_fn_mkdir_p 20020# ------------- 20021# Create "$as_dir" as a directory, including parents if necessary. 20022as_fn_mkdir_p () 20023{ 20024 20025 case $as_dir in #( 20026 -*) as_dir=./$as_dir;; 20027 esac 20028 test -d "$as_dir" || eval $as_mkdir_p || { 20029 as_dirs= 20030 while :; do 20031 case $as_dir in #( 20032 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20033 *) as_qdir=$as_dir;; 20034 esac 20035 as_dirs="'$as_qdir' $as_dirs" 20036 as_dir=`$as_dirname -- "$as_dir" || 20037$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20038 X"$as_dir" : 'X\(//\)[^/]' \| \ 20039 X"$as_dir" : 'X\(//\)$' \| \ 20040 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20041printf "%s\n" X"$as_dir" | 20042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20043 s//\1/ 20044 q 20045 } 20046 /^X\(\/\/\)[^/].*/{ 20047 s//\1/ 20048 q 20049 } 20050 /^X\(\/\/\)$/{ 20051 s//\1/ 20052 q 20053 } 20054 /^X\(\/\).*/{ 20055 s//\1/ 20056 q 20057 } 20058 s/.*/./; q'` 20059 test -d "$as_dir" && break 20060 done 20061 test -z "$as_dirs" || eval "mkdir $as_dirs" 20062 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20063 20064 20065} # as_fn_mkdir_p 20066if mkdir -p . 2>/dev/null; then 20067 as_mkdir_p='mkdir -p "$as_dir"' 20068else 20069 test -d ./-p && rmdir ./-p 20070 as_mkdir_p=false 20071fi 20072 20073 20074# as_fn_executable_p FILE 20075# ----------------------- 20076# Test if FILE is an executable regular file. 20077as_fn_executable_p () 20078{ 20079 test -f "$1" && test -x "$1" 20080} # as_fn_executable_p 20081as_test_x='test -x' 20082as_executable_p=as_fn_executable_p 20083 20084# Sed expression to map a string onto a valid CPP name. 20085as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20086 20087# Sed expression to map a string onto a valid variable name. 20088as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20089 20090 20091exec 6>&1 20092## ----------------------------------- ## 20093## Main body of $CONFIG_STATUS script. ## 20094## ----------------------------------- ## 20095_ASEOF 20096test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20097 20098cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20099# Save the log message, to keep $0 and so on meaningful, and to 20100# report actual input values of CONFIG_FILES etc. instead of their 20101# values after options handling. 20102ac_log=" 20103This file was extended by libXScrnSaver $as_me 1.2.4, which was 20104generated by GNU Autoconf 2.71. Invocation command line was 20105 20106 CONFIG_FILES = $CONFIG_FILES 20107 CONFIG_HEADERS = $CONFIG_HEADERS 20108 CONFIG_LINKS = $CONFIG_LINKS 20109 CONFIG_COMMANDS = $CONFIG_COMMANDS 20110 $ $0 $@ 20111 20112on `(hostname || uname -n) 2>/dev/null | sed 1q` 20113" 20114 20115_ACEOF 20116 20117case $ac_config_files in *" 20118"*) set x $ac_config_files; shift; ac_config_files=$*;; 20119esac 20120 20121case $ac_config_headers in *" 20122"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20123esac 20124 20125 20126cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20127# Files that config.status was made for. 20128config_files="$ac_config_files" 20129config_headers="$ac_config_headers" 20130config_commands="$ac_config_commands" 20131 20132_ACEOF 20133 20134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20135ac_cs_usage="\ 20136\`$as_me' instantiates files and other configuration actions 20137from templates according to the current configuration. Unless the files 20138and actions are specified as TAGs, all are instantiated by default. 20139 20140Usage: $0 [OPTION]... [TAG]... 20141 20142 -h, --help print this help, then exit 20143 -V, --version print version number and configuration settings, then exit 20144 --config print configuration, then exit 20145 -q, --quiet, --silent 20146 do not print progress messages 20147 -d, --debug don't remove temporary files 20148 --recheck update $as_me by reconfiguring in the same conditions 20149 --file=FILE[:TEMPLATE] 20150 instantiate the configuration file FILE 20151 --header=FILE[:TEMPLATE] 20152 instantiate the configuration header FILE 20153 20154Configuration files: 20155$config_files 20156 20157Configuration headers: 20158$config_headers 20159 20160Configuration commands: 20161$config_commands 20162 20163Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxscrnsaver/-/issues>." 20164 20165_ACEOF 20166ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20167ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20168cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20169ac_cs_config='$ac_cs_config_escaped' 20170ac_cs_version="\\ 20171libXScrnSaver config.status 1.2.4 20172configured by $0, generated by GNU Autoconf 2.71, 20173 with options \\"\$ac_cs_config\\" 20174 20175Copyright (C) 2021 Free Software Foundation, Inc. 20176This config.status script is free software; the Free Software Foundation 20177gives unlimited permission to copy, distribute and modify it." 20178 20179ac_pwd='$ac_pwd' 20180srcdir='$srcdir' 20181INSTALL='$INSTALL' 20182MKDIR_P='$MKDIR_P' 20183AWK='$AWK' 20184test -n "\$AWK" || AWK=awk 20185_ACEOF 20186 20187cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20188# The default lists apply if the user does not specify any file. 20189ac_need_defaults=: 20190while test $# != 0 20191do 20192 case $1 in 20193 --*=?*) 20194 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20195 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20196 ac_shift=: 20197 ;; 20198 --*=) 20199 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20200 ac_optarg= 20201 ac_shift=: 20202 ;; 20203 *) 20204 ac_option=$1 20205 ac_optarg=$2 20206 ac_shift=shift 20207 ;; 20208 esac 20209 20210 case $ac_option in 20211 # Handling of the options. 20212 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20213 ac_cs_recheck=: ;; 20214 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20215 printf "%s\n" "$ac_cs_version"; exit ;; 20216 --config | --confi | --conf | --con | --co | --c ) 20217 printf "%s\n" "$ac_cs_config"; exit ;; 20218 --debug | --debu | --deb | --de | --d | -d ) 20219 debug=: ;; 20220 --file | --fil | --fi | --f ) 20221 $ac_shift 20222 case $ac_optarg in 20223 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20224 '') as_fn_error $? "missing file argument" ;; 20225 esac 20226 as_fn_append CONFIG_FILES " '$ac_optarg'" 20227 ac_need_defaults=false;; 20228 --header | --heade | --head | --hea ) 20229 $ac_shift 20230 case $ac_optarg in 20231 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20232 esac 20233 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20234 ac_need_defaults=false;; 20235 --he | --h) 20236 # Conflict between --help and --header 20237 as_fn_error $? "ambiguous option: \`$1' 20238Try \`$0 --help' for more information.";; 20239 --help | --hel | -h ) 20240 printf "%s\n" "$ac_cs_usage"; exit ;; 20241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20242 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20243 ac_cs_silent=: ;; 20244 20245 # This is an error. 20246 -*) as_fn_error $? "unrecognized option: \`$1' 20247Try \`$0 --help' for more information." ;; 20248 20249 *) as_fn_append ac_config_targets " $1" 20250 ac_need_defaults=false ;; 20251 20252 esac 20253 shift 20254done 20255 20256ac_configure_extra_args= 20257 20258if $ac_cs_silent; then 20259 exec 6>/dev/null 20260 ac_configure_extra_args="$ac_configure_extra_args --silent" 20261fi 20262 20263_ACEOF 20264cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20265if \$ac_cs_recheck; then 20266 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20267 shift 20268 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20269 CONFIG_SHELL='$SHELL' 20270 export CONFIG_SHELL 20271 exec "\$@" 20272fi 20273 20274_ACEOF 20275cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20276exec 5>>config.log 20277{ 20278 echo 20279 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20280## Running $as_me. ## 20281_ASBOX 20282 printf "%s\n" "$ac_log" 20283} >&5 20284 20285_ACEOF 20286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20287# 20288# INIT-COMMANDS 20289# 20290AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20291 20292 20293# The HP-UX ksh and POSIX shell print the target directory to stdout 20294# if CDPATH is set. 20295(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20296 20297sed_quote_subst='$sed_quote_subst' 20298double_quote_subst='$double_quote_subst' 20299delay_variable_subst='$delay_variable_subst' 20300macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20301macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20302enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20303enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20304pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20305enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20306shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20307SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20308ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20309PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20310host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20311host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20312host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20313build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20314build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20315build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20316SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20317Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20318GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20319EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20320FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20321LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20322NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20323LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20324max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20325ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20326exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20327lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20328lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20329lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20330lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20331lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20332reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20333reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20334FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20335OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20336deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20337file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20338file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20339want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20340DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20341sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20342AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20343lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20344AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20345archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20346STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20347RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20348old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20349old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20350old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20351lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20352CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20353CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20354compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20355GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20356lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20357lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20358lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20359lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20360lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 20361lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20362nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20363lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20364lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20365objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20366MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20367lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20368lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20369lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20370lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20371lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20372need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20373MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20374DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20375NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20376LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20377OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20378OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20379libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20380shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20381extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20382archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20383enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20384export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20385whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20386compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20387old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20388old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20389archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20390archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20391module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20392module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20393with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20394allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20395no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20396hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20397hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20398hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20399hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20400hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20401hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20402hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20403inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20404link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20405always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20406export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20407exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20408include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20409prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20410postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20411file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20412variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20413need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20414need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20415version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20416runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20417shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20418shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20419libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20420library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20421soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20422install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20423postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20424postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20425finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20426finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20427hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20428sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20429configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20430configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20431hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20432enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20433enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20434enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20435old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20436striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20437 20438LTCC='$LTCC' 20439LTCFLAGS='$LTCFLAGS' 20440compiler='$compiler_DEFAULT' 20441 20442# A function that is used when there is no print builtin or printf. 20443func_fallback_echo () 20444{ 20445 eval 'cat <<_LTECHO_EOF 20446\$1 20447_LTECHO_EOF' 20448} 20449 20450# Quote evaled strings. 20451for var in SHELL \ 20452ECHO \ 20453PATH_SEPARATOR \ 20454SED \ 20455GREP \ 20456EGREP \ 20457FGREP \ 20458LD \ 20459NM \ 20460LN_S \ 20461lt_SP2NL \ 20462lt_NL2SP \ 20463reload_flag \ 20464FILECMD \ 20465OBJDUMP \ 20466deplibs_check_method \ 20467file_magic_cmd \ 20468file_magic_glob \ 20469want_nocaseglob \ 20470DLLTOOL \ 20471sharedlib_from_linklib_cmd \ 20472AR \ 20473archiver_list_spec \ 20474STRIP \ 20475RANLIB \ 20476CC \ 20477CFLAGS \ 20478compiler \ 20479lt_cv_sys_global_symbol_pipe \ 20480lt_cv_sys_global_symbol_to_cdecl \ 20481lt_cv_sys_global_symbol_to_import \ 20482lt_cv_sys_global_symbol_to_c_name_address \ 20483lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20484lt_cv_nm_interface \ 20485nm_file_list_spec \ 20486lt_cv_truncate_bin \ 20487lt_prog_compiler_no_builtin_flag \ 20488lt_prog_compiler_pic \ 20489lt_prog_compiler_wl \ 20490lt_prog_compiler_static \ 20491lt_cv_prog_compiler_c_o \ 20492need_locks \ 20493MANIFEST_TOOL \ 20494DSYMUTIL \ 20495NMEDIT \ 20496LIPO \ 20497OTOOL \ 20498OTOOL64 \ 20499shrext_cmds \ 20500export_dynamic_flag_spec \ 20501whole_archive_flag_spec \ 20502compiler_needs_object \ 20503with_gnu_ld \ 20504allow_undefined_flag \ 20505no_undefined_flag \ 20506hardcode_libdir_flag_spec \ 20507hardcode_libdir_separator \ 20508exclude_expsyms \ 20509include_expsyms \ 20510file_list_spec \ 20511variables_saved_for_relink \ 20512libname_spec \ 20513library_names_spec \ 20514soname_spec \ 20515install_override_mode \ 20516finish_eval \ 20517old_striplib \ 20518striplib; do 20519 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20520 *[\\\\\\\`\\"\\\$]*) 20521 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20522 ;; 20523 *) 20524 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20525 ;; 20526 esac 20527done 20528 20529# Double-quote double-evaled strings. 20530for var in reload_cmds \ 20531old_postinstall_cmds \ 20532old_postuninstall_cmds \ 20533old_archive_cmds \ 20534extract_expsyms_cmds \ 20535old_archive_from_new_cmds \ 20536old_archive_from_expsyms_cmds \ 20537archive_cmds \ 20538archive_expsym_cmds \ 20539module_cmds \ 20540module_expsym_cmds \ 20541export_symbols_cmds \ 20542prelink_cmds \ 20543postlink_cmds \ 20544postinstall_cmds \ 20545postuninstall_cmds \ 20546finish_cmds \ 20547sys_lib_search_path_spec \ 20548configure_time_dlsearch_path \ 20549configure_time_lt_sys_library_path; do 20550 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20551 *[\\\\\\\`\\"\\\$]*) 20552 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20553 ;; 20554 *) 20555 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20556 ;; 20557 esac 20558done 20559 20560ac_aux_dir='$ac_aux_dir' 20561 20562# See if we are running on zsh, and set the options that allow our 20563# commands through without removal of \ escapes INIT. 20564if test -n "\${ZSH_VERSION+set}"; then 20565 setopt NO_GLOB_SUBST 20566fi 20567 20568 20569 PACKAGE='$PACKAGE' 20570 VERSION='$VERSION' 20571 RM='$RM' 20572 ofile='$ofile' 20573 20574 20575 20576 20577_ACEOF 20578 20579cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20580 20581# Handling of arguments. 20582for ac_config_target in $ac_config_targets 20583do 20584 case $ac_config_target in 20585 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20586 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20587 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20588 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20589 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20590 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20591 "xscrnsaver.pc") CONFIG_FILES="$CONFIG_FILES xscrnsaver.pc" ;; 20592 20593 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20594 esac 20595done 20596 20597 20598# If the user did not use the arguments to specify the items to instantiate, 20599# then the envvar interface is used. Set only those that are not. 20600# We use the long form for the default assignment because of an extremely 20601# bizarre bug on SunOS 4.1.3. 20602if $ac_need_defaults; then 20603 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20604 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 20605 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20606fi 20607 20608# Have a temporary directory for convenience. Make it in the build tree 20609# simply because there is no reason against having it here, and in addition, 20610# creating and moving files from /tmp can sometimes cause problems. 20611# Hook for its removal unless debugging. 20612# Note that there is a small window in which the directory will not be cleaned: 20613# after its creation but before its name has been assigned to `$tmp'. 20614$debug || 20615{ 20616 tmp= ac_tmp= 20617 trap 'exit_status=$? 20618 : "${ac_tmp:=$tmp}" 20619 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20620' 0 20621 trap 'as_fn_exit 1' 1 2 13 15 20622} 20623# Create a (secure) tmp directory for tmp files. 20624 20625{ 20626 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20627 test -d "$tmp" 20628} || 20629{ 20630 tmp=./conf$$-$RANDOM 20631 (umask 077 && mkdir "$tmp") 20632} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20633ac_tmp=$tmp 20634 20635# Set up the scripts for CONFIG_FILES section. 20636# No need to generate them if there are no CONFIG_FILES. 20637# This happens for instance with `./config.status config.h'. 20638if test -n "$CONFIG_FILES"; then 20639 20640 20641ac_cr=`echo X | tr X '\015'` 20642# On cygwin, bash can eat \r inside `` if the user requested igncr. 20643# But we know of no other shell where ac_cr would be empty at this 20644# point, so we can use a bashism as a fallback. 20645if test "x$ac_cr" = x; then 20646 eval ac_cr=\$\'\\r\' 20647fi 20648ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20649if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20650 ac_cs_awk_cr='\\r' 20651else 20652 ac_cs_awk_cr=$ac_cr 20653fi 20654 20655echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20656_ACEOF 20657 20658 20659{ 20660 echo "cat >conf$$subs.awk <<_ACEOF" && 20661 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20662 echo "_ACEOF" 20663} >conf$$subs.sh || 20664 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20665ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20666ac_delim='%!_!# ' 20667for ac_last_try in false false false false false :; do 20668 . ./conf$$subs.sh || 20669 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20670 20671 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20672 if test $ac_delim_n = $ac_delim_num; then 20673 break 20674 elif $ac_last_try; then 20675 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20676 else 20677 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20678 fi 20679done 20680rm -f conf$$subs.sh 20681 20682cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20683cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20684_ACEOF 20685sed -n ' 20686h 20687s/^/S["/; s/!.*/"]=/ 20688p 20689g 20690s/^[^!]*!// 20691:repl 20692t repl 20693s/'"$ac_delim"'$// 20694t delim 20695:nl 20696h 20697s/\(.\{148\}\)..*/\1/ 20698t more1 20699s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20700p 20701n 20702b repl 20703:more1 20704s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20705p 20706g 20707s/.\{148\}// 20708t nl 20709:delim 20710h 20711s/\(.\{148\}\)..*/\1/ 20712t more2 20713s/["\\]/\\&/g; s/^/"/; s/$/"/ 20714p 20715b 20716:more2 20717s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20718p 20719g 20720s/.\{148\}// 20721t delim 20722' <conf$$subs.awk | sed ' 20723/^[^""]/{ 20724 N 20725 s/\n// 20726} 20727' >>$CONFIG_STATUS || ac_write_fail=1 20728rm -f conf$$subs.awk 20729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20730_ACAWK 20731cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20732 for (key in S) S_is_set[key] = 1 20733 FS = "" 20734 20735} 20736{ 20737 line = $ 0 20738 nfields = split(line, field, "@") 20739 substed = 0 20740 len = length(field[1]) 20741 for (i = 2; i < nfields; i++) { 20742 key = field[i] 20743 keylen = length(key) 20744 if (S_is_set[key]) { 20745 value = S[key] 20746 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20747 len += length(value) + length(field[++i]) 20748 substed = 1 20749 } else 20750 len += 1 + keylen 20751 } 20752 20753 print line 20754} 20755 20756_ACAWK 20757_ACEOF 20758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20759if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20760 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20761else 20762 cat 20763fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20764 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20765_ACEOF 20766 20767# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20768# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20769# trailing colons and then remove the whole line if VPATH becomes empty 20770# (actually we leave an empty line to preserve line numbers). 20771if test "x$srcdir" = x.; then 20772 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20773h 20774s/// 20775s/^/:/ 20776s/[ ]*$/:/ 20777s/:\$(srcdir):/:/g 20778s/:\${srcdir}:/:/g 20779s/:@srcdir@:/:/g 20780s/^:*// 20781s/:*$// 20782x 20783s/\(=[ ]*\).*/\1/ 20784G 20785s/\n// 20786s/^[^=]*=[ ]*$// 20787}' 20788fi 20789 20790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20791fi # test -n "$CONFIG_FILES" 20792 20793# Set up the scripts for CONFIG_HEADERS section. 20794# No need to generate them if there are no CONFIG_HEADERS. 20795# This happens for instance with `./config.status Makefile'. 20796if test -n "$CONFIG_HEADERS"; then 20797cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20798BEGIN { 20799_ACEOF 20800 20801# Transform confdefs.h into an awk script `defines.awk', embedded as 20802# here-document in config.status, that substitutes the proper values into 20803# config.h.in to produce config.h. 20804 20805# Create a delimiter string that does not exist in confdefs.h, to ease 20806# handling of long lines. 20807ac_delim='%!_!# ' 20808for ac_last_try in false false :; do 20809 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20810 if test -z "$ac_tt"; then 20811 break 20812 elif $ac_last_try; then 20813 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20814 else 20815 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20816 fi 20817done 20818 20819# For the awk script, D is an array of macro values keyed by name, 20820# likewise P contains macro parameters if any. Preserve backslash 20821# newline sequences. 20822 20823ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20824sed -n ' 20825s/.\{148\}/&'"$ac_delim"'/g 20826t rset 20827:rset 20828s/^[ ]*#[ ]*define[ ][ ]*/ / 20829t def 20830d 20831:def 20832s/\\$// 20833t bsnl 20834s/["\\]/\\&/g 20835s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20836D["\1"]=" \3"/p 20837s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20838d 20839:bsnl 20840s/["\\]/\\&/g 20841s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20842D["\1"]=" \3\\\\\\n"\\/p 20843t cont 20844s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20845t cont 20846d 20847:cont 20848n 20849s/.\{148\}/&'"$ac_delim"'/g 20850t clear 20851:clear 20852s/\\$// 20853t bsnlc 20854s/["\\]/\\&/g; s/^/"/; s/$/"/p 20855d 20856:bsnlc 20857s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20858b cont 20859' <confdefs.h | sed ' 20860s/'"$ac_delim"'/"\\\ 20861"/g' >>$CONFIG_STATUS || ac_write_fail=1 20862 20863cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20864 for (key in D) D_is_set[key] = 1 20865 FS = "" 20866} 20867/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20868 line = \$ 0 20869 split(line, arg, " ") 20870 if (arg[1] == "#") { 20871 defundef = arg[2] 20872 mac1 = arg[3] 20873 } else { 20874 defundef = substr(arg[1], 2) 20875 mac1 = arg[2] 20876 } 20877 split(mac1, mac2, "(") #) 20878 macro = mac2[1] 20879 prefix = substr(line, 1, index(line, defundef) - 1) 20880 if (D_is_set[macro]) { 20881 # Preserve the white space surrounding the "#". 20882 print prefix "define", macro P[macro] D[macro] 20883 next 20884 } else { 20885 # Replace #undef with comments. This is necessary, for example, 20886 # in the case of _POSIX_SOURCE, which is predefined and required 20887 # on some systems where configure will not decide to define it. 20888 if (defundef == "undef") { 20889 print "/*", prefix defundef, macro, "*/" 20890 next 20891 } 20892 } 20893} 20894{ print } 20895_ACAWK 20896_ACEOF 20897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20898 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20899fi # test -n "$CONFIG_HEADERS" 20900 20901 20902eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20903shift 20904for ac_tag 20905do 20906 case $ac_tag in 20907 :[FHLC]) ac_mode=$ac_tag; continue;; 20908 esac 20909 case $ac_mode$ac_tag in 20910 :[FHL]*:*);; 20911 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20912 :[FH]-) ac_tag=-:-;; 20913 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20914 esac 20915 ac_save_IFS=$IFS 20916 IFS=: 20917 set x $ac_tag 20918 IFS=$ac_save_IFS 20919 shift 20920 ac_file=$1 20921 shift 20922 20923 case $ac_mode in 20924 :L) ac_source=$1;; 20925 :[FH]) 20926 ac_file_inputs= 20927 for ac_f 20928 do 20929 case $ac_f in 20930 -) ac_f="$ac_tmp/stdin";; 20931 *) # Look for the file first in the build tree, then in the source tree 20932 # (if the path is not absolute). The absolute path cannot be DOS-style, 20933 # because $ac_f cannot contain `:'. 20934 test -f "$ac_f" || 20935 case $ac_f in 20936 [\\/$]*) false;; 20937 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20938 esac || 20939 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20940 esac 20941 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20942 as_fn_append ac_file_inputs " '$ac_f'" 20943 done 20944 20945 # Let's still pretend it is `configure' which instantiates (i.e., don't 20946 # use $as_me), people would be surprised to read: 20947 # /* config.h. Generated by config.status. */ 20948 configure_input='Generated from '` 20949 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20950 `' by configure.' 20951 if test x"$ac_file" != x-; then 20952 configure_input="$ac_file. $configure_input" 20953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20954printf "%s\n" "$as_me: creating $ac_file" >&6;} 20955 fi 20956 # Neutralize special characters interpreted by sed in replacement strings. 20957 case $configure_input in #( 20958 *\&* | *\|* | *\\* ) 20959 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 20960 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20961 *) ac_sed_conf_input=$configure_input;; 20962 esac 20963 20964 case $ac_tag in 20965 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20966 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20967 esac 20968 ;; 20969 esac 20970 20971 ac_dir=`$as_dirname -- "$ac_file" || 20972$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20973 X"$ac_file" : 'X\(//\)[^/]' \| \ 20974 X"$ac_file" : 'X\(//\)$' \| \ 20975 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20976printf "%s\n" X"$ac_file" | 20977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20978 s//\1/ 20979 q 20980 } 20981 /^X\(\/\/\)[^/].*/{ 20982 s//\1/ 20983 q 20984 } 20985 /^X\(\/\/\)$/{ 20986 s//\1/ 20987 q 20988 } 20989 /^X\(\/\).*/{ 20990 s//\1/ 20991 q 20992 } 20993 s/.*/./; q'` 20994 as_dir="$ac_dir"; as_fn_mkdir_p 20995 ac_builddir=. 20996 20997case "$ac_dir" in 20998.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20999*) 21000 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21001 # A ".." for each directory in $ac_dir_suffix. 21002 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21003 case $ac_top_builddir_sub in 21004 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21005 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21006 esac ;; 21007esac 21008ac_abs_top_builddir=$ac_pwd 21009ac_abs_builddir=$ac_pwd$ac_dir_suffix 21010# for backward compatibility: 21011ac_top_builddir=$ac_top_build_prefix 21012 21013case $srcdir in 21014 .) # We are building in place. 21015 ac_srcdir=. 21016 ac_top_srcdir=$ac_top_builddir_sub 21017 ac_abs_top_srcdir=$ac_pwd ;; 21018 [\\/]* | ?:[\\/]* ) # Absolute name. 21019 ac_srcdir=$srcdir$ac_dir_suffix; 21020 ac_top_srcdir=$srcdir 21021 ac_abs_top_srcdir=$srcdir ;; 21022 *) # Relative name. 21023 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21024 ac_top_srcdir=$ac_top_build_prefix$srcdir 21025 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21026esac 21027ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21028 21029 21030 case $ac_mode in 21031 :F) 21032 # 21033 # CONFIG_FILE 21034 # 21035 21036 case $INSTALL in 21037 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21038 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21039 esac 21040 ac_MKDIR_P=$MKDIR_P 21041 case $MKDIR_P in 21042 [\\/$]* | ?:[\\/]* ) ;; 21043 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21044 esac 21045_ACEOF 21046 21047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21048# If the template does not know about datarootdir, expand it. 21049# FIXME: This hack should be removed a few years after 2.60. 21050ac_datarootdir_hack=; ac_datarootdir_seen= 21051ac_sed_dataroot=' 21052/datarootdir/ { 21053 p 21054 q 21055} 21056/@datadir@/p 21057/@docdir@/p 21058/@infodir@/p 21059/@localedir@/p 21060/@mandir@/p' 21061case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21062*datarootdir*) ac_datarootdir_seen=yes;; 21063*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21065printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21066_ACEOF 21067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21068 ac_datarootdir_hack=' 21069 s&@datadir@&$datadir&g 21070 s&@docdir@&$docdir&g 21071 s&@infodir@&$infodir&g 21072 s&@localedir@&$localedir&g 21073 s&@mandir@&$mandir&g 21074 s&\\\${datarootdir}&$datarootdir&g' ;; 21075esac 21076_ACEOF 21077 21078# Neutralize VPATH when `$srcdir' = `.'. 21079# Shell code in configure.ac might set extrasub. 21080# FIXME: do we really want to maintain this feature? 21081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21082ac_sed_extra="$ac_vpsub 21083$extrasub 21084_ACEOF 21085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21086:t 21087/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21088s|@configure_input@|$ac_sed_conf_input|;t t 21089s&@top_builddir@&$ac_top_builddir_sub&;t t 21090s&@top_build_prefix@&$ac_top_build_prefix&;t t 21091s&@srcdir@&$ac_srcdir&;t t 21092s&@abs_srcdir@&$ac_abs_srcdir&;t t 21093s&@top_srcdir@&$ac_top_srcdir&;t t 21094s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21095s&@builddir@&$ac_builddir&;t t 21096s&@abs_builddir@&$ac_abs_builddir&;t t 21097s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21098s&@INSTALL@&$ac_INSTALL&;t t 21099s&@MKDIR_P@&$ac_MKDIR_P&;t t 21100$ac_datarootdir_hack 21101" 21102eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21103 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21104 21105test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21106 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21107 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21108 "$ac_tmp/out"`; test -z "$ac_out"; } && 21109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21110which seems to be undefined. Please make sure it is defined" >&5 21111printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21112which seems to be undefined. Please make sure it is defined" >&2;} 21113 21114 rm -f "$ac_tmp/stdin" 21115 case $ac_file in 21116 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21117 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21118 esac \ 21119 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21120 ;; 21121 :H) 21122 # 21123 # CONFIG_HEADER 21124 # 21125 if test x"$ac_file" != x-; then 21126 { 21127 printf "%s\n" "/* $configure_input */" >&1 \ 21128 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21129 } >"$ac_tmp/config.h" \ 21130 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21131 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21133printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21134 else 21135 rm -f "$ac_file" 21136 mv "$ac_tmp/config.h" "$ac_file" \ 21137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21138 fi 21139 else 21140 printf "%s\n" "/* $configure_input */" >&1 \ 21141 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21142 || as_fn_error $? "could not create -" "$LINENO" 5 21143 fi 21144# Compute "$ac_file"'s index in $config_headers. 21145_am_arg="$ac_file" 21146_am_stamp_count=1 21147for _am_header in $config_headers :; do 21148 case $_am_header in 21149 $_am_arg | $_am_arg:* ) 21150 break ;; 21151 * ) 21152 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21153 esac 21154done 21155echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21156$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21157 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21158 X"$_am_arg" : 'X\(//\)$' \| \ 21159 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21160printf "%s\n" X"$_am_arg" | 21161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21162 s//\1/ 21163 q 21164 } 21165 /^X\(\/\/\)[^/].*/{ 21166 s//\1/ 21167 q 21168 } 21169 /^X\(\/\/\)$/{ 21170 s//\1/ 21171 q 21172 } 21173 /^X\(\/\).*/{ 21174 s//\1/ 21175 q 21176 } 21177 s/.*/./; q'`/stamp-h$_am_stamp_count 21178 ;; 21179 21180 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21181printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21182 ;; 21183 esac 21184 21185 21186 case $ac_file$ac_mode in 21187 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21188 # Older Autoconf quotes --file arguments for eval, but not when files 21189 # are listed without --file. Let's play safe and only enable the eval 21190 # if we detect the quoting. 21191 # TODO: see whether this extra hack can be removed once we start 21192 # requiring Autoconf 2.70 or later. 21193 case $CONFIG_FILES in #( 21194 *\'*) : 21195 eval set x "$CONFIG_FILES" ;; #( 21196 *) : 21197 set x $CONFIG_FILES ;; #( 21198 *) : 21199 ;; 21200esac 21201 shift 21202 # Used to flag and report bootstrapping failures. 21203 am_rc=0 21204 for am_mf 21205 do 21206 # Strip MF so we end up with the name of the file. 21207 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21208 # Check whether this is an Automake generated Makefile which includes 21209 # dependency-tracking related rules and includes. 21210 # Grep'ing the whole file directly is not great: AIX grep has a line 21211 # limit of 2048, but all sed's we know have understand at least 4000. 21212 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21213 || continue 21214 am_dirpart=`$as_dirname -- "$am_mf" || 21215$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21216 X"$am_mf" : 'X\(//\)[^/]' \| \ 21217 X"$am_mf" : 'X\(//\)$' \| \ 21218 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21219printf "%s\n" X"$am_mf" | 21220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21221 s//\1/ 21222 q 21223 } 21224 /^X\(\/\/\)[^/].*/{ 21225 s//\1/ 21226 q 21227 } 21228 /^X\(\/\/\)$/{ 21229 s//\1/ 21230 q 21231 } 21232 /^X\(\/\).*/{ 21233 s//\1/ 21234 q 21235 } 21236 s/.*/./; q'` 21237 am_filepart=`$as_basename -- "$am_mf" || 21238$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21239 X"$am_mf" : 'X\(//\)$' \| \ 21240 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21241printf "%s\n" X/"$am_mf" | 21242 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21243 s//\1/ 21244 q 21245 } 21246 /^X\/\(\/\/\)$/{ 21247 s//\1/ 21248 q 21249 } 21250 /^X\/\(\/\).*/{ 21251 s//\1/ 21252 q 21253 } 21254 s/.*/./; q'` 21255 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21256 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21257 | $MAKE -f - am--depfiles" >&5 21258 (cd "$am_dirpart" \ 21259 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21260 | $MAKE -f - am--depfiles) >&5 2>&5 21261 ac_status=$? 21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21263 (exit $ac_status); } || am_rc=$? 21264 done 21265 if test $am_rc -ne 0; then 21266 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21267printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21268as_fn_error $? "Something went wrong bootstrapping makefile fragments 21269 for automatic dependency tracking. If GNU make was not used, consider 21270 re-running the configure script with MAKE=\"gmake\" (or whatever is 21271 necessary). You can also try re-running configure with the 21272 '--disable-dependency-tracking' option to at least be able to build 21273 the package (albeit without support for automatic dependency tracking). 21274See \`config.log' for more details" "$LINENO" 5; } 21275 fi 21276 { am_dirpart=; unset am_dirpart;} 21277 { am_filepart=; unset am_filepart;} 21278 { am_mf=; unset am_mf;} 21279 { am_rc=; unset am_rc;} 21280 rm -f conftest-deps.mk 21281} 21282 ;; 21283 "libtool":C) 21284 21285 # See if we are running on zsh, and set the options that allow our 21286 # commands through without removal of \ escapes. 21287 if test -n "${ZSH_VERSION+set}"; then 21288 setopt NO_GLOB_SUBST 21289 fi 21290 21291 cfgfile=${ofile}T 21292 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21293 $RM "$cfgfile" 21294 21295 cat <<_LT_EOF >> "$cfgfile" 21296#! $SHELL 21297# Generated automatically by $as_me ($PACKAGE) $VERSION 21298# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21299# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21300 21301# Provide generalized library-building support services. 21302# Written by Gordon Matzigkeit, 1996 21303 21304# Copyright (C) 2014 Free Software Foundation, Inc. 21305# This is free software; see the source for copying conditions. There is NO 21306# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21307 21308# GNU Libtool is free software; you can redistribute it and/or modify 21309# it under the terms of the GNU General Public License as published by 21310# the Free Software Foundation; either version 2 of of the License, or 21311# (at your option) any later version. 21312# 21313# As a special exception to the GNU General Public License, if you 21314# distribute this file as part of a program or library that is built 21315# using GNU Libtool, you may include this file under the same 21316# distribution terms that you use for the rest of that program. 21317# 21318# GNU Libtool is distributed in the hope that it will be useful, but 21319# WITHOUT ANY WARRANTY; without even the implied warranty of 21320# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21321# GNU General Public License for more details. 21322# 21323# You should have received a copy of the GNU General Public License 21324# along with this program. If not, see <http://www.gnu.org/licenses/>. 21325 21326 21327# The names of the tagged configurations supported by this script. 21328available_tags='' 21329 21330# Configured defaults for sys_lib_dlsearch_path munging. 21331: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21332 21333# ### BEGIN LIBTOOL CONFIG 21334 21335# Which release of libtool.m4 was used? 21336macro_version=$macro_version 21337macro_revision=$macro_revision 21338 21339# Whether or not to build shared libraries. 21340build_libtool_libs=$enable_shared 21341 21342# Whether or not to build static libraries. 21343build_old_libs=$enable_static 21344 21345# What type of objects to build. 21346pic_mode=$pic_mode 21347 21348# Whether or not to optimize for fast installation. 21349fast_install=$enable_fast_install 21350 21351# Shared archive member basename,for filename based shared library versioning on AIX. 21352shared_archive_member_spec=$shared_archive_member_spec 21353 21354# Shell to use when invoking shell scripts. 21355SHELL=$lt_SHELL 21356 21357# An echo program that protects backslashes. 21358ECHO=$lt_ECHO 21359 21360# The PATH separator for the build system. 21361PATH_SEPARATOR=$lt_PATH_SEPARATOR 21362 21363# The host system. 21364host_alias=$host_alias 21365host=$host 21366host_os=$host_os 21367 21368# The build system. 21369build_alias=$build_alias 21370build=$build 21371build_os=$build_os 21372 21373# A sed program that does not truncate output. 21374SED=$lt_SED 21375 21376# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21377Xsed="\$SED -e 1s/^X//" 21378 21379# A grep program that handles long lines. 21380GREP=$lt_GREP 21381 21382# An ERE matcher. 21383EGREP=$lt_EGREP 21384 21385# A literal string matcher. 21386FGREP=$lt_FGREP 21387 21388# A BSD- or MS-compatible name lister. 21389NM=$lt_NM 21390 21391# Whether we need soft or hard links. 21392LN_S=$lt_LN_S 21393 21394# What is the maximum length of a command? 21395max_cmd_len=$max_cmd_len 21396 21397# Object file suffix (normally "o"). 21398objext=$ac_objext 21399 21400# Executable file suffix (normally ""). 21401exeext=$exeext 21402 21403# whether the shell understands "unset". 21404lt_unset=$lt_unset 21405 21406# turn spaces into newlines. 21407SP2NL=$lt_lt_SP2NL 21408 21409# turn newlines into spaces. 21410NL2SP=$lt_lt_NL2SP 21411 21412# convert \$build file names to \$host format. 21413to_host_file_cmd=$lt_cv_to_host_file_cmd 21414 21415# convert \$build files to toolchain format. 21416to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21417 21418# A file(cmd) program that detects file types. 21419FILECMD=$lt_FILECMD 21420 21421# An object symbol dumper. 21422OBJDUMP=$lt_OBJDUMP 21423 21424# Method to check whether dependent libraries are shared objects. 21425deplibs_check_method=$lt_deplibs_check_method 21426 21427# Command to use when deplibs_check_method = "file_magic". 21428file_magic_cmd=$lt_file_magic_cmd 21429 21430# How to find potential files when deplibs_check_method = "file_magic". 21431file_magic_glob=$lt_file_magic_glob 21432 21433# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21434want_nocaseglob=$lt_want_nocaseglob 21435 21436# DLL creation program. 21437DLLTOOL=$lt_DLLTOOL 21438 21439# Command to associate shared and link libraries. 21440sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21441 21442# The archiver. 21443AR=$lt_AR 21444 21445# Flags to create an archive (by configure). 21446lt_ar_flags=$lt_ar_flags 21447 21448# Flags to create an archive. 21449AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21450 21451# How to feed a file listing to the archiver. 21452archiver_list_spec=$lt_archiver_list_spec 21453 21454# A symbol stripping program. 21455STRIP=$lt_STRIP 21456 21457# Commands used to install an old-style archive. 21458RANLIB=$lt_RANLIB 21459old_postinstall_cmds=$lt_old_postinstall_cmds 21460old_postuninstall_cmds=$lt_old_postuninstall_cmds 21461 21462# Whether to use a lock for old archive extraction. 21463lock_old_archive_extraction=$lock_old_archive_extraction 21464 21465# A C compiler. 21466LTCC=$lt_CC 21467 21468# LTCC compiler flags. 21469LTCFLAGS=$lt_CFLAGS 21470 21471# Take the output of nm and produce a listing of raw symbols and C names. 21472global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21473 21474# Transform the output of nm in a proper C declaration. 21475global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21476 21477# Transform the output of nm into a list of symbols to manually relocate. 21478global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21479 21480# Transform the output of nm in a C name address pair. 21481global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21482 21483# Transform the output of nm in a C name address pair when lib prefix is needed. 21484global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21485 21486# The name lister interface. 21487nm_interface=$lt_lt_cv_nm_interface 21488 21489# Specify filename containing input files for \$NM. 21490nm_file_list_spec=$lt_nm_file_list_spec 21491 21492# The root where to search for dependent libraries,and where our libraries should be installed. 21493lt_sysroot=$lt_sysroot 21494 21495# Command to truncate a binary pipe. 21496lt_truncate_bin=$lt_lt_cv_truncate_bin 21497 21498# The name of the directory that contains temporary libtool files. 21499objdir=$objdir 21500 21501# Used to examine libraries when file_magic_cmd begins with "file". 21502MAGIC_CMD=$MAGIC_CMD 21503 21504# Must we lock files when doing compilation? 21505need_locks=$lt_need_locks 21506 21507# Manifest tool. 21508MANIFEST_TOOL=$lt_MANIFEST_TOOL 21509 21510# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21511DSYMUTIL=$lt_DSYMUTIL 21512 21513# Tool to change global to local symbols on Mac OS X. 21514NMEDIT=$lt_NMEDIT 21515 21516# Tool to manipulate fat objects and archives on Mac OS X. 21517LIPO=$lt_LIPO 21518 21519# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21520OTOOL=$lt_OTOOL 21521 21522# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21523OTOOL64=$lt_OTOOL64 21524 21525# Old archive suffix (normally "a"). 21526libext=$libext 21527 21528# Shared library suffix (normally ".so"). 21529shrext_cmds=$lt_shrext_cmds 21530 21531# The commands to extract the exported symbol list from a shared archive. 21532extract_expsyms_cmds=$lt_extract_expsyms_cmds 21533 21534# Variables whose values should be saved in libtool wrapper scripts and 21535# restored at link time. 21536variables_saved_for_relink=$lt_variables_saved_for_relink 21537 21538# Do we need the "lib" prefix for modules? 21539need_lib_prefix=$need_lib_prefix 21540 21541# Do we need a version for libraries? 21542need_version=$need_version 21543 21544# Library versioning type. 21545version_type=$version_type 21546 21547# Shared library runtime path variable. 21548runpath_var=$runpath_var 21549 21550# Shared library path variable. 21551shlibpath_var=$shlibpath_var 21552 21553# Is shlibpath searched before the hard-coded library search path? 21554shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21555 21556# Format of library name prefix. 21557libname_spec=$lt_libname_spec 21558 21559# List of archive names. First name is the real one, the rest are links. 21560# The last name is the one that the linker finds with -lNAME 21561library_names_spec=$lt_library_names_spec 21562 21563# The coded name of the library, if different from the real name. 21564soname_spec=$lt_soname_spec 21565 21566# Permission mode override for installation of shared libraries. 21567install_override_mode=$lt_install_override_mode 21568 21569# Command to use after installation of a shared archive. 21570postinstall_cmds=$lt_postinstall_cmds 21571 21572# Command to use after uninstallation of a shared archive. 21573postuninstall_cmds=$lt_postuninstall_cmds 21574 21575# Commands used to finish a libtool library installation in a directory. 21576finish_cmds=$lt_finish_cmds 21577 21578# As "finish_cmds", except a single script fragment to be evaled but 21579# not shown. 21580finish_eval=$lt_finish_eval 21581 21582# Whether we should hardcode library paths into libraries. 21583hardcode_into_libs=$hardcode_into_libs 21584 21585# Compile-time system search path for libraries. 21586sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21587 21588# Detected run-time system search path for libraries. 21589sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21590 21591# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21592configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21593 21594# Whether dlopen is supported. 21595dlopen_support=$enable_dlopen 21596 21597# Whether dlopen of programs is supported. 21598dlopen_self=$enable_dlopen_self 21599 21600# Whether dlopen of statically linked programs is supported. 21601dlopen_self_static=$enable_dlopen_self_static 21602 21603# Commands to strip libraries. 21604old_striplib=$lt_old_striplib 21605striplib=$lt_striplib 21606 21607 21608# The linker used to build libraries. 21609LD=$lt_LD 21610 21611# How to create reloadable object files. 21612reload_flag=$lt_reload_flag 21613reload_cmds=$lt_reload_cmds 21614 21615# Commands used to build an old-style archive. 21616old_archive_cmds=$lt_old_archive_cmds 21617 21618# A language specific compiler. 21619CC=$lt_compiler 21620 21621# Is the compiler the GNU compiler? 21622with_gcc=$GCC 21623 21624# Compiler flag to turn off builtin functions. 21625no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21626 21627# Additional compiler flags for building library objects. 21628pic_flag=$lt_lt_prog_compiler_pic 21629 21630# How to pass a linker flag through the compiler. 21631wl=$lt_lt_prog_compiler_wl 21632 21633# Compiler flag to prevent dynamic linking. 21634link_static_flag=$lt_lt_prog_compiler_static 21635 21636# Does compiler simultaneously support -c and -o options? 21637compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21638 21639# Whether or not to add -lc for building shared libraries. 21640build_libtool_need_lc=$archive_cmds_need_lc 21641 21642# Whether or not to disallow shared libs when runtime libs are static. 21643allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21644 21645# Compiler flag to allow reflexive dlopens. 21646export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21647 21648# Compiler flag to generate shared objects directly from archives. 21649whole_archive_flag_spec=$lt_whole_archive_flag_spec 21650 21651# Whether the compiler copes with passing no objects directly. 21652compiler_needs_object=$lt_compiler_needs_object 21653 21654# Create an old-style archive from a shared archive. 21655old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21656 21657# Create a temporary old-style archive to link instead of a shared archive. 21658old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21659 21660# Commands used to build a shared archive. 21661archive_cmds=$lt_archive_cmds 21662archive_expsym_cmds=$lt_archive_expsym_cmds 21663 21664# Commands used to build a loadable module if different from building 21665# a shared archive. 21666module_cmds=$lt_module_cmds 21667module_expsym_cmds=$lt_module_expsym_cmds 21668 21669# Whether we are building with GNU ld or not. 21670with_gnu_ld=$lt_with_gnu_ld 21671 21672# Flag that allows shared libraries with undefined symbols to be built. 21673allow_undefined_flag=$lt_allow_undefined_flag 21674 21675# Flag that enforces no undefined symbols. 21676no_undefined_flag=$lt_no_undefined_flag 21677 21678# Flag to hardcode \$libdir into a binary during linking. 21679# This must work even if \$libdir does not exist 21680hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21681 21682# Whether we need a single "-rpath" flag with a separated argument. 21683hardcode_libdir_separator=$lt_hardcode_libdir_separator 21684 21685# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21686# DIR into the resulting binary. 21687hardcode_direct=$hardcode_direct 21688 21689# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21690# DIR into the resulting binary and the resulting library dependency is 21691# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21692# library is relocated. 21693hardcode_direct_absolute=$hardcode_direct_absolute 21694 21695# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21696# into the resulting binary. 21697hardcode_minus_L=$hardcode_minus_L 21698 21699# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21700# into the resulting binary. 21701hardcode_shlibpath_var=$hardcode_shlibpath_var 21702 21703# Set to "yes" if building a shared library automatically hardcodes DIR 21704# into the library and all subsequent libraries and executables linked 21705# against it. 21706hardcode_automatic=$hardcode_automatic 21707 21708# Set to yes if linker adds runtime paths of dependent libraries 21709# to runtime path list. 21710inherit_rpath=$inherit_rpath 21711 21712# Whether libtool must link a program against all its dependency libraries. 21713link_all_deplibs=$link_all_deplibs 21714 21715# Set to "yes" if exported symbols are required. 21716always_export_symbols=$always_export_symbols 21717 21718# The commands to list exported symbols. 21719export_symbols_cmds=$lt_export_symbols_cmds 21720 21721# Symbols that should not be listed in the preloaded symbols. 21722exclude_expsyms=$lt_exclude_expsyms 21723 21724# Symbols that must always be exported. 21725include_expsyms=$lt_include_expsyms 21726 21727# Commands necessary for linking programs (against libraries) with templates. 21728prelink_cmds=$lt_prelink_cmds 21729 21730# Commands necessary for finishing linking programs. 21731postlink_cmds=$lt_postlink_cmds 21732 21733# Specify filename containing input files. 21734file_list_spec=$lt_file_list_spec 21735 21736# How to hardcode a shared library path into an executable. 21737hardcode_action=$hardcode_action 21738 21739# ### END LIBTOOL CONFIG 21740 21741_LT_EOF 21742 21743 cat <<'_LT_EOF' >> "$cfgfile" 21744 21745# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21746 21747# func_munge_path_list VARIABLE PATH 21748# ----------------------------------- 21749# VARIABLE is name of variable containing _space_ separated list of 21750# directories to be munged by the contents of PATH, which is string 21751# having a format: 21752# "DIR[:DIR]:" 21753# string "DIR[ DIR]" will be prepended to VARIABLE 21754# ":DIR[:DIR]" 21755# string "DIR[ DIR]" will be appended to VARIABLE 21756# "DIRP[:DIRP]::[DIRA:]DIRA" 21757# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21758# "DIRA[ DIRA]" will be appended to VARIABLE 21759# "DIR[:DIR]" 21760# VARIABLE will be replaced by "DIR[ DIR]" 21761func_munge_path_list () 21762{ 21763 case x$2 in 21764 x) 21765 ;; 21766 *:) 21767 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21768 ;; 21769 x:*) 21770 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21771 ;; 21772 *::*) 21773 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21774 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21775 ;; 21776 *) 21777 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21778 ;; 21779 esac 21780} 21781 21782 21783# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21784func_cc_basename () 21785{ 21786 for cc_temp in $*""; do 21787 case $cc_temp in 21788 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21789 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21790 \-*) ;; 21791 *) break;; 21792 esac 21793 done 21794 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21795} 21796 21797 21798# ### END FUNCTIONS SHARED WITH CONFIGURE 21799 21800_LT_EOF 21801 21802 case $host_os in 21803 aix3*) 21804 cat <<\_LT_EOF >> "$cfgfile" 21805# AIX sometimes has problems with the GCC collect2 program. For some 21806# reason, if we set the COLLECT_NAMES environment variable, the problems 21807# vanish in a puff of smoke. 21808if test set != "${COLLECT_NAMES+set}"; then 21809 COLLECT_NAMES= 21810 export COLLECT_NAMES 21811fi 21812_LT_EOF 21813 ;; 21814 esac 21815 21816 21817 21818ltmain=$ac_aux_dir/ltmain.sh 21819 21820 21821 # We use sed instead of cat because bash on DJGPP gets confused if 21822 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21823 # text mode, it properly converts lines to CR/LF. This bash problem 21824 # is reportedly fixed, but why not run on old versions too? 21825 $SED '$q' "$ltmain" >> "$cfgfile" \ 21826 || (rm -f "$cfgfile"; exit 1) 21827 21828 mv -f "$cfgfile" "$ofile" || 21829 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21830 chmod +x "$ofile" 21831 21832 ;; 21833 21834 esac 21835done # for ac_tag 21836 21837 21838as_fn_exit 0 21839_ACEOF 21840ac_clean_files=$ac_clean_files_save 21841 21842test $ac_write_fail = 0 || 21843 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21844 21845 21846# configure is writing to config.log, and then calls config.status. 21847# config.status does its own redirection, appending to config.log. 21848# Unfortunately, on DOS this fails, as config.log is still kept open 21849# by configure, so config.status won't be able to write to it; its 21850# output is simply discarded. So we exec the FD to /dev/null, 21851# effectively closing config.log, so it can be properly (re)opened and 21852# appended to by config.status. When coming back to configure, we 21853# need to make the FD available again. 21854if test "$no_create" != yes; then 21855 ac_cs_success=: 21856 ac_config_status_args= 21857 test "$silent" = yes && 21858 ac_config_status_args="$ac_config_status_args --quiet" 21859 exec 5>/dev/null 21860 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21861 exec 5>>config.log 21862 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21863 # would make configure fail if this is the last instruction. 21864 $ac_cs_success || as_fn_exit 1 21865fi 21866if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21868printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21869fi 21870 21871 21872