configure revision b41a30aa
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for libXtst 1.2.4. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxtst/-/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/libxtst/-/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 601as_awk_strverscmp=' 602 # Use only awk features that work with 7th edition Unix awk (1978). 603 # My, what an old awk you have, Mr. Solaris! 604 END { 605 while (length(v1) && length(v2)) { 606 # Set d1 to be the next thing to compare from v1, and likewise for d2. 607 # Normally this is a single character, but if v1 and v2 contain digits, 608 # compare them as integers and fractions as strverscmp does. 609 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 610 # Split v1 and v2 into their leading digit string components d1 and d2, 611 # and advance v1 and v2 past the leading digit strings. 612 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 613 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 614 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 615 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 616 if (d1 ~ /^0/) { 617 if (d2 ~ /^0/) { 618 # Compare two fractions. 619 while (d1 ~ /^0/ && d2 ~ /^0/) { 620 d1 = substr(d1, 2); len1-- 621 d2 = substr(d2, 2); len2-- 622 } 623 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 624 # The two components differ in length, and the common prefix 625 # contains only leading zeros. Consider the longer to be less. 626 d1 = -len1 627 d2 = -len2 628 } else { 629 # Otherwise, compare as strings. 630 d1 = "x" d1 631 d2 = "x" d2 632 } 633 } else { 634 # A fraction is less than an integer. 635 exit 1 636 } 637 } else { 638 if (d2 ~ /^0/) { 639 # An integer is greater than a fraction. 640 exit 2 641 } else { 642 # Compare two integers. 643 d1 += 0 644 d2 += 0 645 } 646 } 647 } else { 648 # The normal case, without worrying about digits. 649 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 650 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 651 } 652 if (d1 < d2) exit 1 653 if (d1 > d2) exit 2 654 } 655 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 656 # which mishandles some comparisons of empty strings to integers. 657 if (length(v2)) exit 1 658 if (length(v1)) exit 2 659 } 660' 661 662test -n "$DJDIR" || exec 7<&0 </dev/null 663exec 6>&1 664 665# Name of the host. 666# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 667# so uname gets run too. 668ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 669 670# 671# Initializations. 672# 673ac_default_prefix=/usr/local 674ac_clean_files= 675ac_config_libobj_dir=. 676LIBOBJS= 677cross_compiling=no 678subdirs= 679MFLAGS= 680MAKEFLAGS= 681 682# Identity of this package. 683PACKAGE_NAME='libXtst' 684PACKAGE_TARNAME='libXtst' 685PACKAGE_VERSION='1.2.4' 686PACKAGE_STRING='libXtst 1.2.4' 687PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxtst/-/issues' 688PACKAGE_URL='' 689 690ac_unique_file="Makefile.am" 691# Factoring default headers for most tests. 692ac_includes_default="\ 693#include <stddef.h> 694#ifdef HAVE_STDIO_H 695# include <stdio.h> 696#endif 697#ifdef HAVE_STDLIB_H 698# include <stdlib.h> 699#endif 700#ifdef HAVE_STRING_H 701# include <string.h> 702#endif 703#ifdef HAVE_INTTYPES_H 704# include <inttypes.h> 705#endif 706#ifdef HAVE_STDINT_H 707# include <stdint.h> 708#endif 709#ifdef HAVE_STRINGS_H 710# include <strings.h> 711#endif 712#ifdef HAVE_SYS_TYPES_H 713# include <sys/types.h> 714#endif 715#ifdef HAVE_SYS_STAT_H 716# include <sys/stat.h> 717#endif 718#ifdef HAVE_UNISTD_H 719# include <unistd.h> 720#endif" 721 722ac_header_c_list= 723ac_subst_vars='am__EXEEXT_FALSE 724am__EXEEXT_TRUE 725LTLIBOBJS 726LIBOBJS 727MAKE_LINT_LIB_FALSE 728MAKE_LINT_LIB_TRUE 729LINTLIB 730LINT_FALSE 731LINT_TRUE 732LINT_FLAGS 733LINT 734INSTALL_MANPAGES_FALSE 735INSTALL_MANPAGES_TRUE 736XTST_LIBS 737XTST_CFLAGS 738HAVE_STYLESHEETS_FALSE 739HAVE_STYLESHEETS_TRUE 740XSL_STYLESHEET 741STYLESHEET_SRCDIR 742XORG_SGML_PATH 743HAVE_XSLTPROC_FALSE 744HAVE_XSLTPROC_TRUE 745XSLTPROC 746HAVE_FOP_FALSE 747HAVE_FOP_TRUE 748FOP 749HAVE_XMLTO_FALSE 750HAVE_XMLTO_TRUE 751HAVE_XMLTO_TEXT_FALSE 752HAVE_XMLTO_TEXT_TRUE 753XMLTO 754ENABLE_SPECS_FALSE 755ENABLE_SPECS_TRUE 756MAN_SUBSTS 757XORG_MAN_PAGE 758ADMIN_MAN_DIR 759DRIVER_MAN_DIR 760MISC_MAN_DIR 761FILE_MAN_DIR 762LIB_MAN_DIR 763APP_MAN_DIR 764ADMIN_MAN_SUFFIX 765DRIVER_MAN_SUFFIX 766MISC_MAN_SUFFIX 767FILE_MAN_SUFFIX 768LIB_MAN_SUFFIX 769APP_MAN_SUFFIX 770INSTALL_CMD 771PKG_CONFIG_LIBDIR 772PKG_CONFIG_PATH 773PKG_CONFIG 774CHANGELOG_CMD 775STRICT_CFLAGS 776CWARNFLAGS 777BASE_CFLAGS 778LT_SYS_LIBRARY_PATH 779OTOOL64 780OTOOL 781LIPO 782NMEDIT 783DSYMUTIL 784MANIFEST_TOOL 785RANLIB 786ac_ct_AR 787AR 788DLLTOOL 789OBJDUMP 790FILECMD 791LN_S 792NM 793ac_ct_DUMPBIN 794DUMPBIN 795LD 796FGREP 797EGREP 798GREP 799SED 800am__fastdepCC_FALSE 801am__fastdepCC_TRUE 802CCDEPMODE 803am__nodep 804AMDEPBACKSLASH 805AMDEP_FALSE 806AMDEP_TRUE 807am__include 808DEPDIR 809OBJEXT 810EXEEXT 811ac_ct_CC 812CPPFLAGS 813LDFLAGS 814CFLAGS 815CC 816host_os 817host_vendor 818host_cpu 819host 820build_os 821build_vendor 822build_cpu 823build 824LIBTOOL 825AM_BACKSLASH 826AM_DEFAULT_VERBOSITY 827AM_DEFAULT_V 828AM_V 829CSCOPE 830ETAGS 831CTAGS 832am__untar 833am__tar 834AMTAR 835am__leading_dot 836SET_MAKE 837AWK 838mkdir_p 839MKDIR_P 840INSTALL_STRIP_PROGRAM 841STRIP 842install_sh 843MAKEINFO 844AUTOHEADER 845AUTOMAKE 846AUTOCONF 847ACLOCAL 848VERSION 849PACKAGE 850CYGPATH_W 851am__isrc 852INSTALL_DATA 853INSTALL_SCRIPT 854INSTALL_PROGRAM 855target_alias 856host_alias 857build_alias 858LIBS 859ECHO_T 860ECHO_N 861ECHO_C 862DEFS 863mandir 864localedir 865libdir 866psdir 867pdfdir 868dvidir 869htmldir 870infodir 871docdir 872oldincludedir 873includedir 874runstatedir 875localstatedir 876sharedstatedir 877sysconfdir 878datadir 879datarootdir 880libexecdir 881sbindir 882bindir 883program_transform_name 884prefix 885exec_prefix 886PACKAGE_URL 887PACKAGE_BUGREPORT 888PACKAGE_STRING 889PACKAGE_VERSION 890PACKAGE_TARNAME 891PACKAGE_NAME 892PATH_SEPARATOR 893SHELL 894am__quote' 895ac_subst_files='' 896ac_user_opts=' 897enable_option_checking 898enable_silent_rules 899enable_shared 900enable_static 901with_pic 902enable_fast_install 903with_aix_soname 904enable_dependency_tracking 905with_gnu_ld 906with_sysroot 907enable_libtool_lock 908enable_selective_werror 909enable_strict_compilation 910enable_specs 911with_xmlto 912with_fop 913with_xsltproc 914with_lint 915enable_lint_library 916' 917 ac_precious_vars='build_alias 918host_alias 919target_alias 920CC 921CFLAGS 922LDFLAGS 923LIBS 924CPPFLAGS 925LT_SYS_LIBRARY_PATH 926PKG_CONFIG 927PKG_CONFIG_PATH 928PKG_CONFIG_LIBDIR 929XMLTO 930FOP 931XSLTPROC 932XTST_CFLAGS 933XTST_LIBS 934LINT 935LINT_FLAGS' 936 937 938# Initialize some variables set by options. 939ac_init_help= 940ac_init_version=false 941ac_unrecognized_opts= 942ac_unrecognized_sep= 943# The variables have the same names as the options, with 944# dashes changed to underlines. 945cache_file=/dev/null 946exec_prefix=NONE 947no_create= 948no_recursion= 949prefix=NONE 950program_prefix=NONE 951program_suffix=NONE 952program_transform_name=s,x,x, 953silent= 954site= 955srcdir= 956verbose= 957x_includes=NONE 958x_libraries=NONE 959 960# Installation directory options. 961# These are left unexpanded so users can "make install exec_prefix=/foo" 962# and all the variables that are supposed to be based on exec_prefix 963# by default will actually change. 964# Use braces instead of parens because sh, perl, etc. also accept them. 965# (The list follows the same order as the GNU Coding Standards.) 966bindir='${exec_prefix}/bin' 967sbindir='${exec_prefix}/sbin' 968libexecdir='${exec_prefix}/libexec' 969datarootdir='${prefix}/share' 970datadir='${datarootdir}' 971sysconfdir='${prefix}/etc' 972sharedstatedir='${prefix}/com' 973localstatedir='${prefix}/var' 974runstatedir='${localstatedir}/run' 975includedir='${prefix}/include' 976oldincludedir='/usr/include' 977docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 978infodir='${datarootdir}/info' 979htmldir='${docdir}' 980dvidir='${docdir}' 981pdfdir='${docdir}' 982psdir='${docdir}' 983libdir='${exec_prefix}/lib' 984localedir='${datarootdir}/locale' 985mandir='${datarootdir}/man' 986 987ac_prev= 988ac_dashdash= 989for ac_option 990do 991 # If the previous option needs an argument, assign it. 992 if test -n "$ac_prev"; then 993 eval $ac_prev=\$ac_option 994 ac_prev= 995 continue 996 fi 997 998 case $ac_option in 999 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1000 *=) ac_optarg= ;; 1001 *) ac_optarg=yes ;; 1002 esac 1003 1004 case $ac_dashdash$ac_option in 1005 --) 1006 ac_dashdash=yes ;; 1007 1008 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1009 ac_prev=bindir ;; 1010 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1011 bindir=$ac_optarg ;; 1012 1013 -build | --build | --buil | --bui | --bu) 1014 ac_prev=build_alias ;; 1015 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1016 build_alias=$ac_optarg ;; 1017 1018 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1019 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1020 ac_prev=cache_file ;; 1021 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1022 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1023 cache_file=$ac_optarg ;; 1024 1025 --config-cache | -C) 1026 cache_file=config.cache ;; 1027 1028 -datadir | --datadir | --datadi | --datad) 1029 ac_prev=datadir ;; 1030 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1031 datadir=$ac_optarg ;; 1032 1033 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1034 | --dataroo | --dataro | --datar) 1035 ac_prev=datarootdir ;; 1036 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1037 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1038 datarootdir=$ac_optarg ;; 1039 1040 -disable-* | --disable-*) 1041 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1042 # Reject names that are not valid shell variable names. 1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1044 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1045 ac_useropt_orig=$ac_useropt 1046 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1047 case $ac_user_opts in 1048 *" 1049"enable_$ac_useropt" 1050"*) ;; 1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1052 ac_unrecognized_sep=', ';; 1053 esac 1054 eval enable_$ac_useropt=no ;; 1055 1056 -docdir | --docdir | --docdi | --doc | --do) 1057 ac_prev=docdir ;; 1058 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1059 docdir=$ac_optarg ;; 1060 1061 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1062 ac_prev=dvidir ;; 1063 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1064 dvidir=$ac_optarg ;; 1065 1066 -enable-* | --enable-*) 1067 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1068 # Reject names that are not valid shell variable names. 1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1070 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1071 ac_useropt_orig=$ac_useropt 1072 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1073 case $ac_user_opts in 1074 *" 1075"enable_$ac_useropt" 1076"*) ;; 1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1078 ac_unrecognized_sep=', ';; 1079 esac 1080 eval enable_$ac_useropt=\$ac_optarg ;; 1081 1082 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1083 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1084 | --exec | --exe | --ex) 1085 ac_prev=exec_prefix ;; 1086 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1087 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1088 | --exec=* | --exe=* | --ex=*) 1089 exec_prefix=$ac_optarg ;; 1090 1091 -gas | --gas | --ga | --g) 1092 # Obsolete; use --with-gas. 1093 with_gas=yes ;; 1094 1095 -help | --help | --hel | --he | -h) 1096 ac_init_help=long ;; 1097 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1098 ac_init_help=recursive ;; 1099 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1100 ac_init_help=short ;; 1101 1102 -host | --host | --hos | --ho) 1103 ac_prev=host_alias ;; 1104 -host=* | --host=* | --hos=* | --ho=*) 1105 host_alias=$ac_optarg ;; 1106 1107 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1108 ac_prev=htmldir ;; 1109 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1110 | --ht=*) 1111 htmldir=$ac_optarg ;; 1112 1113 -includedir | --includedir | --includedi | --included | --include \ 1114 | --includ | --inclu | --incl | --inc) 1115 ac_prev=includedir ;; 1116 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1117 | --includ=* | --inclu=* | --incl=* | --inc=*) 1118 includedir=$ac_optarg ;; 1119 1120 -infodir | --infodir | --infodi | --infod | --info | --inf) 1121 ac_prev=infodir ;; 1122 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1123 infodir=$ac_optarg ;; 1124 1125 -libdir | --libdir | --libdi | --libd) 1126 ac_prev=libdir ;; 1127 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1128 libdir=$ac_optarg ;; 1129 1130 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1131 | --libexe | --libex | --libe) 1132 ac_prev=libexecdir ;; 1133 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1134 | --libexe=* | --libex=* | --libe=*) 1135 libexecdir=$ac_optarg ;; 1136 1137 -localedir | --localedir | --localedi | --localed | --locale) 1138 ac_prev=localedir ;; 1139 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1140 localedir=$ac_optarg ;; 1141 1142 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1143 | --localstate | --localstat | --localsta | --localst | --locals) 1144 ac_prev=localstatedir ;; 1145 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1146 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1147 localstatedir=$ac_optarg ;; 1148 1149 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1150 ac_prev=mandir ;; 1151 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1152 mandir=$ac_optarg ;; 1153 1154 -nfp | --nfp | --nf) 1155 # Obsolete; use --without-fp. 1156 with_fp=no ;; 1157 1158 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1159 | --no-cr | --no-c | -n) 1160 no_create=yes ;; 1161 1162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1164 no_recursion=yes ;; 1165 1166 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1167 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1168 | --oldin | --oldi | --old | --ol | --o) 1169 ac_prev=oldincludedir ;; 1170 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1171 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1172 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1173 oldincludedir=$ac_optarg ;; 1174 1175 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1176 ac_prev=prefix ;; 1177 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1178 prefix=$ac_optarg ;; 1179 1180 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1181 | --program-pre | --program-pr | --program-p) 1182 ac_prev=program_prefix ;; 1183 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1184 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1185 program_prefix=$ac_optarg ;; 1186 1187 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1188 | --program-suf | --program-su | --program-s) 1189 ac_prev=program_suffix ;; 1190 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1191 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1192 program_suffix=$ac_optarg ;; 1193 1194 -program-transform-name | --program-transform-name \ 1195 | --program-transform-nam | --program-transform-na \ 1196 | --program-transform-n | --program-transform- \ 1197 | --program-transform | --program-transfor \ 1198 | --program-transfo | --program-transf \ 1199 | --program-trans | --program-tran \ 1200 | --progr-tra | --program-tr | --program-t) 1201 ac_prev=program_transform_name ;; 1202 -program-transform-name=* | --program-transform-name=* \ 1203 | --program-transform-nam=* | --program-transform-na=* \ 1204 | --program-transform-n=* | --program-transform-=* \ 1205 | --program-transform=* | --program-transfor=* \ 1206 | --program-transfo=* | --program-transf=* \ 1207 | --program-trans=* | --program-tran=* \ 1208 | --progr-tra=* | --program-tr=* | --program-t=*) 1209 program_transform_name=$ac_optarg ;; 1210 1211 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1212 ac_prev=pdfdir ;; 1213 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1214 pdfdir=$ac_optarg ;; 1215 1216 -psdir | --psdir | --psdi | --psd | --ps) 1217 ac_prev=psdir ;; 1218 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1219 psdir=$ac_optarg ;; 1220 1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1222 | -silent | --silent | --silen | --sile | --sil) 1223 silent=yes ;; 1224 1225 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1226 | --runstate | --runstat | --runsta | --runst | --runs \ 1227 | --run | --ru | --r) 1228 ac_prev=runstatedir ;; 1229 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1230 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1231 | --run=* | --ru=* | --r=*) 1232 runstatedir=$ac_optarg ;; 1233 1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1235 ac_prev=sbindir ;; 1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1237 | --sbi=* | --sb=*) 1238 sbindir=$ac_optarg ;; 1239 1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1242 | --sharedst | --shareds | --shared | --share | --shar \ 1243 | --sha | --sh) 1244 ac_prev=sharedstatedir ;; 1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1248 | --sha=* | --sh=*) 1249 sharedstatedir=$ac_optarg ;; 1250 1251 -site | --site | --sit) 1252 ac_prev=site ;; 1253 -site=* | --site=* | --sit=*) 1254 site=$ac_optarg ;; 1255 1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1257 ac_prev=srcdir ;; 1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1259 srcdir=$ac_optarg ;; 1260 1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1262 | --syscon | --sysco | --sysc | --sys | --sy) 1263 ac_prev=sysconfdir ;; 1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1266 sysconfdir=$ac_optarg ;; 1267 1268 -target | --target | --targe | --targ | --tar | --ta | --t) 1269 ac_prev=target_alias ;; 1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1271 target_alias=$ac_optarg ;; 1272 1273 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1274 verbose=yes ;; 1275 1276 -version | --version | --versio | --versi | --vers | -V) 1277 ac_init_version=: ;; 1278 1279 -with-* | --with-*) 1280 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1281 # Reject names that are not valid shell variable names. 1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1283 as_fn_error $? "invalid package name: \`$ac_useropt'" 1284 ac_useropt_orig=$ac_useropt 1285 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1286 case $ac_user_opts in 1287 *" 1288"with_$ac_useropt" 1289"*) ;; 1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1291 ac_unrecognized_sep=', ';; 1292 esac 1293 eval with_$ac_useropt=\$ac_optarg ;; 1294 1295 -without-* | --without-*) 1296 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1297 # Reject names that are not valid shell variable names. 1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1299 as_fn_error $? "invalid package name: \`$ac_useropt'" 1300 ac_useropt_orig=$ac_useropt 1301 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1302 case $ac_user_opts in 1303 *" 1304"with_$ac_useropt" 1305"*) ;; 1306 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1307 ac_unrecognized_sep=', ';; 1308 esac 1309 eval with_$ac_useropt=no ;; 1310 1311 --x) 1312 # Obsolete; use --with-x. 1313 with_x=yes ;; 1314 1315 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1316 | --x-incl | --x-inc | --x-in | --x-i) 1317 ac_prev=x_includes ;; 1318 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1319 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1320 x_includes=$ac_optarg ;; 1321 1322 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1323 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1324 ac_prev=x_libraries ;; 1325 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1326 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1327 x_libraries=$ac_optarg ;; 1328 1329 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1330Try \`$0 --help' for more information" 1331 ;; 1332 1333 *=*) 1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1335 # Reject names that are not valid shell variable names. 1336 case $ac_envvar in #( 1337 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1338 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1339 esac 1340 eval $ac_envvar=\$ac_optarg 1341 export $ac_envvar ;; 1342 1343 *) 1344 # FIXME: should be removed in autoconf 3.0. 1345 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1346 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1347 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1348 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1349 ;; 1350 1351 esac 1352done 1353 1354if test -n "$ac_prev"; then 1355 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1356 as_fn_error $? "missing argument to $ac_option" 1357fi 1358 1359if test -n "$ac_unrecognized_opts"; then 1360 case $enable_option_checking in 1361 no) ;; 1362 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1363 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1364 esac 1365fi 1366 1367# Check all directory arguments for consistency. 1368for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1369 datadir sysconfdir sharedstatedir localstatedir includedir \ 1370 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1371 libdir localedir mandir runstatedir 1372do 1373 eval ac_val=\$$ac_var 1374 # Remove trailing slashes. 1375 case $ac_val in 1376 */ ) 1377 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1378 eval $ac_var=\$ac_val;; 1379 esac 1380 # Be sure to have absolute directory names. 1381 case $ac_val in 1382 [\\/$]* | ?:[\\/]* ) continue;; 1383 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1384 esac 1385 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1386done 1387 1388# There might be people who depend on the old broken behavior: `$host' 1389# used to hold the argument of --host etc. 1390# FIXME: To remove some day. 1391build=$build_alias 1392host=$host_alias 1393target=$target_alias 1394 1395# FIXME: To remove some day. 1396if test "x$host_alias" != x; then 1397 if test "x$build_alias" = x; then 1398 cross_compiling=maybe 1399 elif test "x$build_alias" != "x$host_alias"; then 1400 cross_compiling=yes 1401 fi 1402fi 1403 1404ac_tool_prefix= 1405test -n "$host_alias" && ac_tool_prefix=$host_alias- 1406 1407test "$silent" = yes && exec 6>/dev/null 1408 1409 1410ac_pwd=`pwd` && test -n "$ac_pwd" && 1411ac_ls_di=`ls -di .` && 1412ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1413 as_fn_error $? "working directory cannot be determined" 1414test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1415 as_fn_error $? "pwd does not report name of working directory" 1416 1417 1418# Find the source files, if location was not specified. 1419if test -z "$srcdir"; then 1420 ac_srcdir_defaulted=yes 1421 # Try the directory containing this script, then the parent directory. 1422 ac_confdir=`$as_dirname -- "$as_myself" || 1423$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1424 X"$as_myself" : 'X\(//\)[^/]' \| \ 1425 X"$as_myself" : 'X\(//\)$' \| \ 1426 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1427printf "%s\n" X"$as_myself" | 1428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1429 s//\1/ 1430 q 1431 } 1432 /^X\(\/\/\)[^/].*/{ 1433 s//\1/ 1434 q 1435 } 1436 /^X\(\/\/\)$/{ 1437 s//\1/ 1438 q 1439 } 1440 /^X\(\/\).*/{ 1441 s//\1/ 1442 q 1443 } 1444 s/.*/./; q'` 1445 srcdir=$ac_confdir 1446 if test ! -r "$srcdir/$ac_unique_file"; then 1447 srcdir=.. 1448 fi 1449else 1450 ac_srcdir_defaulted=no 1451fi 1452if test ! -r "$srcdir/$ac_unique_file"; then 1453 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1454 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1455fi 1456ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1457ac_abs_confdir=`( 1458 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1459 pwd)` 1460# When building in place, set srcdir=. 1461if test "$ac_abs_confdir" = "$ac_pwd"; then 1462 srcdir=. 1463fi 1464# Remove unnecessary trailing slashes from srcdir. 1465# Double slashes in file names in object file debugging info 1466# mess up M-x gdb in Emacs. 1467case $srcdir in 1468*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1469esac 1470for ac_var in $ac_precious_vars; do 1471 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1472 eval ac_env_${ac_var}_value=\$${ac_var} 1473 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1474 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1475done 1476 1477# 1478# Report the --help message. 1479# 1480if test "$ac_init_help" = "long"; then 1481 # Omit some internal or obsolete options to make the list less imposing. 1482 # This message is too long to be a string in the A/UX 3.1 sh. 1483 cat <<_ACEOF 1484\`configure' configures libXtst 1.2.4 to adapt to many kinds of systems. 1485 1486Usage: $0 [OPTION]... [VAR=VALUE]... 1487 1488To assign environment variables (e.g., CC, CFLAGS...), specify them as 1489VAR=VALUE. See below for descriptions of some of the useful variables. 1490 1491Defaults for the options are specified in brackets. 1492 1493Configuration: 1494 -h, --help display this help and exit 1495 --help=short display options specific to this package 1496 --help=recursive display the short help of all the included packages 1497 -V, --version display version information and exit 1498 -q, --quiet, --silent do not print \`checking ...' messages 1499 --cache-file=FILE cache test results in FILE [disabled] 1500 -C, --config-cache alias for \`--cache-file=config.cache' 1501 -n, --no-create do not create output files 1502 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1503 1504Installation directories: 1505 --prefix=PREFIX install architecture-independent files in PREFIX 1506 [$ac_default_prefix] 1507 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1508 [PREFIX] 1509 1510By default, \`make install' will install all the files in 1511\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1512an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1513for instance \`--prefix=\$HOME'. 1514 1515For better control, use the options below. 1516 1517Fine tuning of the installation directories: 1518 --bindir=DIR user executables [EPREFIX/bin] 1519 --sbindir=DIR system admin executables [EPREFIX/sbin] 1520 --libexecdir=DIR program executables [EPREFIX/libexec] 1521 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1522 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1523 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1524 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1525 --libdir=DIR object code libraries [EPREFIX/lib] 1526 --includedir=DIR C header files [PREFIX/include] 1527 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1528 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1529 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1530 --infodir=DIR info documentation [DATAROOTDIR/info] 1531 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1532 --mandir=DIR man documentation [DATAROOTDIR/man] 1533 --docdir=DIR documentation root [DATAROOTDIR/doc/libXtst] 1534 --htmldir=DIR html documentation [DOCDIR] 1535 --dvidir=DIR dvi documentation [DOCDIR] 1536 --pdfdir=DIR pdf documentation [DOCDIR] 1537 --psdir=DIR ps documentation [DOCDIR] 1538_ACEOF 1539 1540 cat <<\_ACEOF 1541 1542Program names: 1543 --program-prefix=PREFIX prepend PREFIX to installed program names 1544 --program-suffix=SUFFIX append SUFFIX to installed program names 1545 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1546 1547System types: 1548 --build=BUILD configure for building on BUILD [guessed] 1549 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1550_ACEOF 1551fi 1552 1553if test -n "$ac_init_help"; then 1554 case $ac_init_help in 1555 short | recursive ) echo "Configuration of libXtst 1.2.4:";; 1556 esac 1557 cat <<\_ACEOF 1558 1559Optional Features: 1560 --disable-option-checking ignore unrecognized --enable/--with options 1561 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1562 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1563 --enable-silent-rules less verbose build output (undo: "make V=1") 1564 --disable-silent-rules verbose build output (undo: "make V=0") 1565 --enable-shared[=PKGS] build shared libraries [default=yes] 1566 --enable-static[=PKGS] build static libraries [default=yes] 1567 --enable-fast-install[=PKGS] 1568 optimize for fast installation [default=yes] 1569 --enable-dependency-tracking 1570 do not reject slow dependency extractors 1571 --disable-dependency-tracking 1572 speeds up one-time build 1573 --disable-libtool-lock avoid locking (might break parallel builds) 1574 --disable-selective-werror 1575 Turn off selective compiler errors. (default: 1576 enabled) 1577 --enable-strict-compilation 1578 Enable all warnings from compiler and make them 1579 errors (default: disabled) 1580 --enable-specs Enable building the specs (default: yes) 1581 --enable-lint-library Create lint library (default: disabled) 1582 1583Optional Packages: 1584 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1585 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1586 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1587 both] 1588 --with-aix-soname=aix|svr4|both 1589 shared library versioning (aka "SONAME") variant to 1590 provide on AIX, [default=aix]. 1591 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1592 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1593 compiler's sysroot if not specified). 1594 --with-xmlto Use xmlto to regenerate documentation (default: 1595 auto) 1596 --with-fop Use fop to regenerate documentation (default: auto) 1597 --with-xsltproc Use xsltproc for the transformation of XML documents 1598 (default: auto) 1599 --with-lint Use a lint-style source code checker (default: 1600 disabled) 1601 1602Some influential environment variables: 1603 CC C compiler command 1604 CFLAGS C compiler flags 1605 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1606 nonstandard directory <lib dir> 1607 LIBS libraries to pass to the linker, e.g. -l<library> 1608 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1609 you have headers in a nonstandard directory <include dir> 1610 LT_SYS_LIBRARY_PATH 1611 User-defined run-time library search path. 1612 PKG_CONFIG path to pkg-config utility 1613 PKG_CONFIG_PATH 1614 directories to add to pkg-config's search path 1615 PKG_CONFIG_LIBDIR 1616 path overriding pkg-config's built-in search path 1617 XMLTO Path to xmlto command 1618 FOP Path to fop command 1619 XSLTPROC Path to xsltproc command 1620 XTST_CFLAGS C compiler flags for XTST, overriding pkg-config 1621 XTST_LIBS linker flags for XTST, overriding pkg-config 1622 LINT Path to a lint-style command 1623 LINT_FLAGS Flags for the lint-style command 1624 1625Use these variables to override the choices made by `configure' or to help 1626it to find libraries and programs with nonstandard names/locations. 1627 1628Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxtst/-/issues>. 1629_ACEOF 1630ac_status=$? 1631fi 1632 1633if test "$ac_init_help" = "recursive"; then 1634 # If there are subdirs, report their specific --help. 1635 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1636 test -d "$ac_dir" || 1637 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1638 continue 1639 ac_builddir=. 1640 1641case "$ac_dir" in 1642.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1643*) 1644 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1645 # A ".." for each directory in $ac_dir_suffix. 1646 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1647 case $ac_top_builddir_sub in 1648 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1649 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1650 esac ;; 1651esac 1652ac_abs_top_builddir=$ac_pwd 1653ac_abs_builddir=$ac_pwd$ac_dir_suffix 1654# for backward compatibility: 1655ac_top_builddir=$ac_top_build_prefix 1656 1657case $srcdir in 1658 .) # We are building in place. 1659 ac_srcdir=. 1660 ac_top_srcdir=$ac_top_builddir_sub 1661 ac_abs_top_srcdir=$ac_pwd ;; 1662 [\\/]* | ?:[\\/]* ) # Absolute name. 1663 ac_srcdir=$srcdir$ac_dir_suffix; 1664 ac_top_srcdir=$srcdir 1665 ac_abs_top_srcdir=$srcdir ;; 1666 *) # Relative name. 1667 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1668 ac_top_srcdir=$ac_top_build_prefix$srcdir 1669 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1670esac 1671ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1672 1673 cd "$ac_dir" || { ac_status=$?; continue; } 1674 # Check for configure.gnu first; this name is used for a wrapper for 1675 # Metaconfig's "Configure" on case-insensitive file systems. 1676 if test -f "$ac_srcdir/configure.gnu"; then 1677 echo && 1678 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1679 elif test -f "$ac_srcdir/configure"; then 1680 echo && 1681 $SHELL "$ac_srcdir/configure" --help=recursive 1682 else 1683 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1684 fi || ac_status=$? 1685 cd "$ac_pwd" || { ac_status=$?; break; } 1686 done 1687fi 1688 1689test -n "$ac_init_help" && exit $ac_status 1690if $ac_init_version; then 1691 cat <<\_ACEOF 1692libXtst configure 1.2.4 1693generated by GNU Autoconf 2.71 1694 1695Copyright (C) 2021 Free Software Foundation, Inc. 1696This configure script is free software; the Free Software Foundation 1697gives unlimited permission to copy, distribute and modify it. 1698_ACEOF 1699 exit 1700fi 1701 1702## ------------------------ ## 1703## Autoconf initialization. ## 1704## ------------------------ ## 1705 1706# ac_fn_c_try_compile LINENO 1707# -------------------------- 1708# Try to compile conftest.$ac_ext, and return whether this succeeded. 1709ac_fn_c_try_compile () 1710{ 1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1712 rm -f conftest.$ac_objext conftest.beam 1713 if { { ac_try="$ac_compile" 1714case "(($ac_try" in 1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1716 *) ac_try_echo=$ac_try;; 1717esac 1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1719printf "%s\n" "$ac_try_echo"; } >&5 1720 (eval "$ac_compile") 2>conftest.err 1721 ac_status=$? 1722 if test -s conftest.err; then 1723 grep -v '^ *+' conftest.err >conftest.er1 1724 cat conftest.er1 >&5 1725 mv -f conftest.er1 conftest.err 1726 fi 1727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1728 test $ac_status = 0; } && { 1729 test -z "$ac_c_werror_flag" || 1730 test ! -s conftest.err 1731 } && test -s conftest.$ac_objext 1732then : 1733 ac_retval=0 1734else $as_nop 1735 printf "%s\n" "$as_me: failed program was:" >&5 1736sed 's/^/| /' conftest.$ac_ext >&5 1737 1738 ac_retval=1 1739fi 1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1741 as_fn_set_status $ac_retval 1742 1743} # ac_fn_c_try_compile 1744 1745# ac_fn_c_try_link LINENO 1746# ----------------------- 1747# Try to link conftest.$ac_ext, and return whether this succeeded. 1748ac_fn_c_try_link () 1749{ 1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1751 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1752 if { { ac_try="$ac_link" 1753case "(($ac_try" in 1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1755 *) ac_try_echo=$ac_try;; 1756esac 1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1758printf "%s\n" "$ac_try_echo"; } >&5 1759 (eval "$ac_link") 2>conftest.err 1760 ac_status=$? 1761 if test -s conftest.err; then 1762 grep -v '^ *+' conftest.err >conftest.er1 1763 cat conftest.er1 >&5 1764 mv -f conftest.er1 conftest.err 1765 fi 1766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1767 test $ac_status = 0; } && { 1768 test -z "$ac_c_werror_flag" || 1769 test ! -s conftest.err 1770 } && test -s conftest$ac_exeext && { 1771 test "$cross_compiling" = yes || 1772 test -x conftest$ac_exeext 1773 } 1774then : 1775 ac_retval=0 1776else $as_nop 1777 printf "%s\n" "$as_me: failed program was:" >&5 1778sed 's/^/| /' conftest.$ac_ext >&5 1779 1780 ac_retval=1 1781fi 1782 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1783 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1784 # interfere with the next link command; also delete a directory that is 1785 # left behind by Apple's compiler. We do this before executing the actions. 1786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1788 as_fn_set_status $ac_retval 1789 1790} # ac_fn_c_try_link 1791 1792# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1793# ------------------------------------------------------- 1794# Tests whether HEADER exists and can be compiled using the include files in 1795# INCLUDES, setting the cache variable VAR accordingly. 1796ac_fn_c_check_header_compile () 1797{ 1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1800printf %s "checking for $2... " >&6; } 1801if eval test \${$3+y} 1802then : 1803 printf %s "(cached) " >&6 1804else $as_nop 1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1806/* end confdefs.h. */ 1807$4 1808#include <$2> 1809_ACEOF 1810if ac_fn_c_try_compile "$LINENO" 1811then : 1812 eval "$3=yes" 1813else $as_nop 1814 eval "$3=no" 1815fi 1816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1817fi 1818eval ac_res=\$$3 1819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1820printf "%s\n" "$ac_res" >&6; } 1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1822 1823} # ac_fn_c_check_header_compile 1824 1825# ac_fn_c_check_func LINENO FUNC VAR 1826# ---------------------------------- 1827# Tests whether FUNC exists, setting the cache variable VAR accordingly 1828ac_fn_c_check_func () 1829{ 1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1832printf %s "checking for $2... " >&6; } 1833if eval test \${$3+y} 1834then : 1835 printf %s "(cached) " >&6 1836else $as_nop 1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1838/* end confdefs.h. */ 1839/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1841#define $2 innocuous_$2 1842 1843/* System header to define __stub macros and hopefully few prototypes, 1844 which can conflict with char $2 (); below. */ 1845 1846#include <limits.h> 1847#undef $2 1848 1849/* Override any GCC internal prototype to avoid an error. 1850 Use char because int might match the return type of a GCC 1851 builtin and then its argument prototype would still apply. */ 1852#ifdef __cplusplus 1853extern "C" 1854#endif 1855char $2 (); 1856/* The GNU C library defines this for functions which it implements 1857 to always fail with ENOSYS. Some functions are actually named 1858 something starting with __ and the normal name is an alias. */ 1859#if defined __stub_$2 || defined __stub___$2 1860choke me 1861#endif 1862 1863int 1864main (void) 1865{ 1866return $2 (); 1867 ; 1868 return 0; 1869} 1870_ACEOF 1871if ac_fn_c_try_link "$LINENO" 1872then : 1873 eval "$3=yes" 1874else $as_nop 1875 eval "$3=no" 1876fi 1877rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1878 conftest$ac_exeext conftest.$ac_ext 1879fi 1880eval ac_res=\$$3 1881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1882printf "%s\n" "$ac_res" >&6; } 1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1884 1885} # ac_fn_c_check_func 1886 1887# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1888# ------------------------------------------------------------------ 1889# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1890# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1891ac_fn_check_decl () 1892{ 1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1894 as_decl_name=`echo $2|sed 's/ *(.*//'` 1895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1896printf %s "checking whether $as_decl_name is declared... " >&6; } 1897if eval test \${$3+y} 1898then : 1899 printf %s "(cached) " >&6 1900else $as_nop 1901 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1902 eval ac_save_FLAGS=\$$6 1903 as_fn_append $6 " $5" 1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1905/* end confdefs.h. */ 1906$4 1907int 1908main (void) 1909{ 1910#ifndef $as_decl_name 1911#ifdef __cplusplus 1912 (void) $as_decl_use; 1913#else 1914 (void) $as_decl_name; 1915#endif 1916#endif 1917 1918 ; 1919 return 0; 1920} 1921_ACEOF 1922if ac_fn_c_try_compile "$LINENO" 1923then : 1924 eval "$3=yes" 1925else $as_nop 1926 eval "$3=no" 1927fi 1928rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1929 eval $6=\$ac_save_FLAGS 1930 1931fi 1932eval ac_res=\$$3 1933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1934printf "%s\n" "$ac_res" >&6; } 1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1936 1937} # ac_fn_check_decl 1938ac_configure_args_raw= 1939for ac_arg 1940do 1941 case $ac_arg in 1942 *\'*) 1943 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1944 esac 1945 as_fn_append ac_configure_args_raw " '$ac_arg'" 1946done 1947 1948case $ac_configure_args_raw in 1949 *$as_nl*) 1950 ac_safe_unquote= ;; 1951 *) 1952 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1953 ac_unsafe_a="$ac_unsafe_z#~" 1954 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1955 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1956esac 1957 1958cat >config.log <<_ACEOF 1959This file contains any messages produced by compilers while 1960running configure, to aid debugging if configure makes a mistake. 1961 1962It was created by libXtst $as_me 1.2.4, which was 1963generated by GNU Autoconf 2.71. Invocation command line was 1964 1965 $ $0$ac_configure_args_raw 1966 1967_ACEOF 1968exec 5>>config.log 1969{ 1970cat <<_ASUNAME 1971## --------- ## 1972## Platform. ## 1973## --------- ## 1974 1975hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1976uname -m = `(uname -m) 2>/dev/null || echo unknown` 1977uname -r = `(uname -r) 2>/dev/null || echo unknown` 1978uname -s = `(uname -s) 2>/dev/null || echo unknown` 1979uname -v = `(uname -v) 2>/dev/null || echo unknown` 1980 1981/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1982/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1983 1984/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1985/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1986/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1987/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1988/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1989/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1990/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1991 1992_ASUNAME 1993 1994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1995for as_dir in $PATH 1996do 1997 IFS=$as_save_IFS 1998 case $as_dir in #((( 1999 '') as_dir=./ ;; 2000 */) ;; 2001 *) as_dir=$as_dir/ ;; 2002 esac 2003 printf "%s\n" "PATH: $as_dir" 2004 done 2005IFS=$as_save_IFS 2006 2007} >&5 2008 2009cat >&5 <<_ACEOF 2010 2011 2012## ----------- ## 2013## Core tests. ## 2014## ----------- ## 2015 2016_ACEOF 2017 2018 2019# Keep a trace of the command line. 2020# Strip out --no-create and --no-recursion so they do not pile up. 2021# Strip out --silent because we don't want to record it for future runs. 2022# Also quote any args containing shell meta-characters. 2023# Make two passes to allow for proper duplicate-argument suppression. 2024ac_configure_args= 2025ac_configure_args0= 2026ac_configure_args1= 2027ac_must_keep_next=false 2028for ac_pass in 1 2 2029do 2030 for ac_arg 2031 do 2032 case $ac_arg in 2033 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2035 | -silent | --silent | --silen | --sile | --sil) 2036 continue ;; 2037 *\'*) 2038 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2039 esac 2040 case $ac_pass in 2041 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2042 2) 2043 as_fn_append ac_configure_args1 " '$ac_arg'" 2044 if test $ac_must_keep_next = true; then 2045 ac_must_keep_next=false # Got value, back to normal. 2046 else 2047 case $ac_arg in 2048 *=* | --config-cache | -C | -disable-* | --disable-* \ 2049 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2050 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2051 | -with-* | --with-* | -without-* | --without-* | --x) 2052 case "$ac_configure_args0 " in 2053 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2054 esac 2055 ;; 2056 -* ) ac_must_keep_next=true ;; 2057 esac 2058 fi 2059 as_fn_append ac_configure_args " '$ac_arg'" 2060 ;; 2061 esac 2062 done 2063done 2064{ ac_configure_args0=; unset ac_configure_args0;} 2065{ ac_configure_args1=; unset ac_configure_args1;} 2066 2067# When interrupted or exit'd, cleanup temporary files, and complete 2068# config.log. We remove comments because anyway the quotes in there 2069# would cause problems or look ugly. 2070# WARNING: Use '\'' to represent an apostrophe within the trap. 2071# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2072trap 'exit_status=$? 2073 # Sanitize IFS. 2074 IFS=" "" $as_nl" 2075 # Save into config.log some information that might help in debugging. 2076 { 2077 echo 2078 2079 printf "%s\n" "## ---------------- ## 2080## Cache variables. ## 2081## ---------------- ##" 2082 echo 2083 # The following way of writing the cache mishandles newlines in values, 2084( 2085 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2086 eval ac_val=\$$ac_var 2087 case $ac_val in #( 2088 *${as_nl}*) 2089 case $ac_var in #( 2090 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2091printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2092 esac 2093 case $ac_var in #( 2094 _ | IFS | as_nl) ;; #( 2095 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2096 *) { eval $ac_var=; unset $ac_var;} ;; 2097 esac ;; 2098 esac 2099 done 2100 (set) 2>&1 | 2101 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2102 *${as_nl}ac_space=\ *) 2103 sed -n \ 2104 "s/'\''/'\''\\\\'\'''\''/g; 2105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2106 ;; #( 2107 *) 2108 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2109 ;; 2110 esac | 2111 sort 2112) 2113 echo 2114 2115 printf "%s\n" "## ----------------- ## 2116## Output variables. ## 2117## ----------------- ##" 2118 echo 2119 for ac_var in $ac_subst_vars 2120 do 2121 eval ac_val=\$$ac_var 2122 case $ac_val in 2123 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2124 esac 2125 printf "%s\n" "$ac_var='\''$ac_val'\''" 2126 done | sort 2127 echo 2128 2129 if test -n "$ac_subst_files"; then 2130 printf "%s\n" "## ------------------- ## 2131## File substitutions. ## 2132## ------------------- ##" 2133 echo 2134 for ac_var in $ac_subst_files 2135 do 2136 eval ac_val=\$$ac_var 2137 case $ac_val in 2138 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2139 esac 2140 printf "%s\n" "$ac_var='\''$ac_val'\''" 2141 done | sort 2142 echo 2143 fi 2144 2145 if test -s confdefs.h; then 2146 printf "%s\n" "## ----------- ## 2147## confdefs.h. ## 2148## ----------- ##" 2149 echo 2150 cat confdefs.h 2151 echo 2152 fi 2153 test "$ac_signal" != 0 && 2154 printf "%s\n" "$as_me: caught signal $ac_signal" 2155 printf "%s\n" "$as_me: exit $exit_status" 2156 } >&5 2157 rm -f core *.core core.conftest.* && 2158 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2159 exit $exit_status 2160' 0 2161for ac_signal in 1 2 13 15; do 2162 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2163done 2164ac_signal=0 2165 2166# confdefs.h avoids OS command line length limits that DEFS can exceed. 2167rm -f -r conftest* confdefs.h 2168 2169printf "%s\n" "/* confdefs.h */" > confdefs.h 2170 2171# Predefined preprocessor variables. 2172 2173printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2174 2175printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2176 2177printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2178 2179printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2180 2181printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2182 2183printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2184 2185 2186# Let the site file select an alternate cache file if it wants to. 2187# Prefer an explicitly selected file to automatically selected ones. 2188if test -n "$CONFIG_SITE"; then 2189 ac_site_files="$CONFIG_SITE" 2190elif test "x$prefix" != xNONE; then 2191 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2192else 2193 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2194fi 2195 2196for ac_site_file in $ac_site_files 2197do 2198 case $ac_site_file in #( 2199 */*) : 2200 ;; #( 2201 *) : 2202 ac_site_file=./$ac_site_file ;; 2203esac 2204 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2206printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2207 sed 's/^/| /' "$ac_site_file" >&5 2208 . "$ac_site_file" \ 2209 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2210printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2211as_fn_error $? "failed to load site script $ac_site_file 2212See \`config.log' for more details" "$LINENO" 5; } 2213 fi 2214done 2215 2216if test -r "$cache_file"; then 2217 # Some versions of bash will fail to source /dev/null (special files 2218 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2219 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2221printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2222 case $cache_file in 2223 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2224 *) . "./$cache_file";; 2225 esac 2226 fi 2227else 2228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2229printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2230 >$cache_file 2231fi 2232 2233# Test code for whether the C compiler supports C89 (global declarations) 2234ac_c_conftest_c89_globals=' 2235/* Does the compiler advertise C89 conformance? 2236 Do not test the value of __STDC__, because some compilers set it to 0 2237 while being otherwise adequately conformant. */ 2238#if !defined __STDC__ 2239# error "Compiler does not advertise C89 conformance" 2240#endif 2241 2242#include <stddef.h> 2243#include <stdarg.h> 2244struct stat; 2245/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2246struct buf { int x; }; 2247struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2248static char *e (p, i) 2249 char **p; 2250 int i; 2251{ 2252 return p[i]; 2253} 2254static char *f (char * (*g) (char **, int), char **p, ...) 2255{ 2256 char *s; 2257 va_list v; 2258 va_start (v,p); 2259 s = g (p, va_arg (v,int)); 2260 va_end (v); 2261 return s; 2262} 2263 2264/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2265 function prototypes and stuff, but not \xHH hex character constants. 2266 These do not provoke an error unfortunately, instead are silently treated 2267 as an "x". The following induces an error, until -std is added to get 2268 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2269 array size at least. It is necessary to write \x00 == 0 to get something 2270 that is true only with -std. */ 2271int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2272 2273/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2274 inside strings and character constants. */ 2275#define FOO(x) '\''x'\'' 2276int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2277 2278int test (int i, double x); 2279struct s1 {int (*f) (int a);}; 2280struct s2 {int (*f) (double a);}; 2281int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2282 int, int);' 2283 2284# Test code for whether the C compiler supports C89 (body of main). 2285ac_c_conftest_c89_main=' 2286ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2287' 2288 2289# Test code for whether the C compiler supports C99 (global declarations) 2290ac_c_conftest_c99_globals=' 2291// Does the compiler advertise C99 conformance? 2292#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2293# error "Compiler does not advertise C99 conformance" 2294#endif 2295 2296#include <stdbool.h> 2297extern int puts (const char *); 2298extern int printf (const char *, ...); 2299extern int dprintf (int, const char *, ...); 2300extern void *malloc (size_t); 2301 2302// Check varargs macros. These examples are taken from C99 6.10.3.5. 2303// dprintf is used instead of fprintf to avoid needing to declare 2304// FILE and stderr. 2305#define debug(...) dprintf (2, __VA_ARGS__) 2306#define showlist(...) puts (#__VA_ARGS__) 2307#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2308static void 2309test_varargs_macros (void) 2310{ 2311 int x = 1234; 2312 int y = 5678; 2313 debug ("Flag"); 2314 debug ("X = %d\n", x); 2315 showlist (The first, second, and third items.); 2316 report (x>y, "x is %d but y is %d", x, y); 2317} 2318 2319// Check long long types. 2320#define BIG64 18446744073709551615ull 2321#define BIG32 4294967295ul 2322#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2323#if !BIG_OK 2324 #error "your preprocessor is broken" 2325#endif 2326#if BIG_OK 2327#else 2328 #error "your preprocessor is broken" 2329#endif 2330static long long int bignum = -9223372036854775807LL; 2331static unsigned long long int ubignum = BIG64; 2332 2333struct incomplete_array 2334{ 2335 int datasize; 2336 double data[]; 2337}; 2338 2339struct named_init { 2340 int number; 2341 const wchar_t *name; 2342 double average; 2343}; 2344 2345typedef const char *ccp; 2346 2347static inline int 2348test_restrict (ccp restrict text) 2349{ 2350 // See if C++-style comments work. 2351 // Iterate through items via the restricted pointer. 2352 // Also check for declarations in for loops. 2353 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2354 continue; 2355 return 0; 2356} 2357 2358// Check varargs and va_copy. 2359static bool 2360test_varargs (const char *format, ...) 2361{ 2362 va_list args; 2363 va_start (args, format); 2364 va_list args_copy; 2365 va_copy (args_copy, args); 2366 2367 const char *str = ""; 2368 int number = 0; 2369 float fnumber = 0; 2370 2371 while (*format) 2372 { 2373 switch (*format++) 2374 { 2375 case '\''s'\'': // string 2376 str = va_arg (args_copy, const char *); 2377 break; 2378 case '\''d'\'': // int 2379 number = va_arg (args_copy, int); 2380 break; 2381 case '\''f'\'': // float 2382 fnumber = va_arg (args_copy, double); 2383 break; 2384 default: 2385 break; 2386 } 2387 } 2388 va_end (args_copy); 2389 va_end (args); 2390 2391 return *str && number && fnumber; 2392} 2393' 2394 2395# Test code for whether the C compiler supports C99 (body of main). 2396ac_c_conftest_c99_main=' 2397 // Check bool. 2398 _Bool success = false; 2399 success |= (argc != 0); 2400 2401 // Check restrict. 2402 if (test_restrict ("String literal") == 0) 2403 success = true; 2404 char *restrict newvar = "Another string"; 2405 2406 // Check varargs. 2407 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2408 test_varargs_macros (); 2409 2410 // Check flexible array members. 2411 struct incomplete_array *ia = 2412 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2413 ia->datasize = 10; 2414 for (int i = 0; i < ia->datasize; ++i) 2415 ia->data[i] = i * 1.234; 2416 2417 // Check named initializers. 2418 struct named_init ni = { 2419 .number = 34, 2420 .name = L"Test wide string", 2421 .average = 543.34343, 2422 }; 2423 2424 ni.number = 58; 2425 2426 int dynamic_array[ni.number]; 2427 dynamic_array[0] = argv[0][0]; 2428 dynamic_array[ni.number - 1] = 543; 2429 2430 // work around unused variable warnings 2431 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2432 || dynamic_array[ni.number - 1] != 543); 2433' 2434 2435# Test code for whether the C compiler supports C11 (global declarations) 2436ac_c_conftest_c11_globals=' 2437// Does the compiler advertise C11 conformance? 2438#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2439# error "Compiler does not advertise C11 conformance" 2440#endif 2441 2442// Check _Alignas. 2443char _Alignas (double) aligned_as_double; 2444char _Alignas (0) no_special_alignment; 2445extern char aligned_as_int; 2446char _Alignas (0) _Alignas (int) aligned_as_int; 2447 2448// Check _Alignof. 2449enum 2450{ 2451 int_alignment = _Alignof (int), 2452 int_array_alignment = _Alignof (int[100]), 2453 char_alignment = _Alignof (char) 2454}; 2455_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2456 2457// Check _Noreturn. 2458int _Noreturn does_not_return (void) { for (;;) continue; } 2459 2460// Check _Static_assert. 2461struct test_static_assert 2462{ 2463 int x; 2464 _Static_assert (sizeof (int) <= sizeof (long int), 2465 "_Static_assert does not work in struct"); 2466 long int y; 2467}; 2468 2469// Check UTF-8 literals. 2470#define u8 syntax error! 2471char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2472 2473// Check duplicate typedefs. 2474typedef long *long_ptr; 2475typedef long int *long_ptr; 2476typedef long_ptr long_ptr; 2477 2478// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2479struct anonymous 2480{ 2481 union { 2482 struct { int i; int j; }; 2483 struct { int k; long int l; } w; 2484 }; 2485 int m; 2486} v1; 2487' 2488 2489# Test code for whether the C compiler supports C11 (body of main). 2490ac_c_conftest_c11_main=' 2491 _Static_assert ((offsetof (struct anonymous, i) 2492 == offsetof (struct anonymous, w.k)), 2493 "Anonymous union alignment botch"); 2494 v1.i = 2; 2495 v1.w.k = 5; 2496 ok |= v1.i != 5; 2497' 2498 2499# Test code for whether the C compiler supports C11 (complete). 2500ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2501${ac_c_conftest_c99_globals} 2502${ac_c_conftest_c11_globals} 2503 2504int 2505main (int argc, char **argv) 2506{ 2507 int ok = 0; 2508 ${ac_c_conftest_c89_main} 2509 ${ac_c_conftest_c99_main} 2510 ${ac_c_conftest_c11_main} 2511 return ok; 2512} 2513" 2514 2515# Test code for whether the C compiler supports C99 (complete). 2516ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2517${ac_c_conftest_c99_globals} 2518 2519int 2520main (int argc, char **argv) 2521{ 2522 int ok = 0; 2523 ${ac_c_conftest_c89_main} 2524 ${ac_c_conftest_c99_main} 2525 return ok; 2526} 2527" 2528 2529# Test code for whether the C compiler supports C89 (complete). 2530ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2531 2532int 2533main (int argc, char **argv) 2534{ 2535 int ok = 0; 2536 ${ac_c_conftest_c89_main} 2537 return ok; 2538} 2539" 2540 2541as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2542as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2543as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2544as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2545as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2546as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2547as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2548as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2549as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2550 2551# Auxiliary files required by this configure script. 2552ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2553 2554# Locations in which to look for auxiliary files. 2555ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2556 2557# Search for a directory containing all of the required auxiliary files, 2558# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2559# If we don't find one directory that contains all the files we need, 2560# we report the set of missing files from the *first* directory in 2561# $ac_aux_dir_candidates and give up. 2562ac_missing_aux_files="" 2563ac_first_candidate=: 2564printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2566as_found=false 2567for as_dir in $ac_aux_dir_candidates 2568do 2569 IFS=$as_save_IFS 2570 case $as_dir in #((( 2571 '') as_dir=./ ;; 2572 */) ;; 2573 *) as_dir=$as_dir/ ;; 2574 esac 2575 as_found=: 2576 2577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2578 ac_aux_dir_found=yes 2579 ac_install_sh= 2580 for ac_aux in $ac_aux_files 2581 do 2582 # As a special case, if "install-sh" is required, that requirement 2583 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2584 # and $ac_install_sh is set appropriately for whichever one is found. 2585 if test x"$ac_aux" = x"install-sh" 2586 then 2587 if test -f "${as_dir}install-sh"; then 2588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2589 ac_install_sh="${as_dir}install-sh -c" 2590 elif test -f "${as_dir}install.sh"; then 2591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2592 ac_install_sh="${as_dir}install.sh -c" 2593 elif test -f "${as_dir}shtool"; then 2594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2595 ac_install_sh="${as_dir}shtool install -c" 2596 else 2597 ac_aux_dir_found=no 2598 if $ac_first_candidate; then 2599 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2600 else 2601 break 2602 fi 2603 fi 2604 else 2605 if test -f "${as_dir}${ac_aux}"; then 2606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2607 else 2608 ac_aux_dir_found=no 2609 if $ac_first_candidate; then 2610 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2611 else 2612 break 2613 fi 2614 fi 2615 fi 2616 done 2617 if test "$ac_aux_dir_found" = yes; then 2618 ac_aux_dir="$as_dir" 2619 break 2620 fi 2621 ac_first_candidate=false 2622 2623 as_found=false 2624done 2625IFS=$as_save_IFS 2626if $as_found 2627then : 2628 2629else $as_nop 2630 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2631fi 2632 2633 2634# These three variables are undocumented and unsupported, 2635# and are intended to be withdrawn in a future Autoconf release. 2636# They can cause serious problems if a builder's source tree is in a directory 2637# whose full name contains unusual characters. 2638if test -f "${ac_aux_dir}config.guess"; then 2639 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2640fi 2641if test -f "${ac_aux_dir}config.sub"; then 2642 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2643fi 2644if test -f "$ac_aux_dir/configure"; then 2645 ac_configure="$SHELL ${ac_aux_dir}configure" 2646fi 2647 2648# Check that the precious variables saved in the cache have kept the same 2649# value. 2650ac_cache_corrupted=false 2651for ac_var in $ac_precious_vars; do 2652 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2653 eval ac_new_set=\$ac_env_${ac_var}_set 2654 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2655 eval ac_new_val=\$ac_env_${ac_var}_value 2656 case $ac_old_set,$ac_new_set in 2657 set,) 2658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2659printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2660 ac_cache_corrupted=: ;; 2661 ,set) 2662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2663printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2664 ac_cache_corrupted=: ;; 2665 ,);; 2666 *) 2667 if test "x$ac_old_val" != "x$ac_new_val"; then 2668 # differences in whitespace do not lead to failure. 2669 ac_old_val_w=`echo x $ac_old_val` 2670 ac_new_val_w=`echo x $ac_new_val` 2671 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2673printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2674 ac_cache_corrupted=: 2675 else 2676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2677printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2678 eval $ac_var=\$ac_old_val 2679 fi 2680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2681printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2683printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2684 fi;; 2685 esac 2686 # Pass precious variables to config.status. 2687 if test "$ac_new_set" = set; then 2688 case $ac_new_val in 2689 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2690 *) ac_arg=$ac_var=$ac_new_val ;; 2691 esac 2692 case " $ac_configure_args " in 2693 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2694 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2695 esac 2696 fi 2697done 2698if $ac_cache_corrupted; then 2699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2700printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2702printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2703 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2704 and start over" "$LINENO" 5 2705fi 2706## -------------------- ## 2707## Main body of script. ## 2708## -------------------- ## 2709 2710ac_ext=c 2711ac_cpp='$CPP $CPPFLAGS' 2712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2714ac_compiler_gnu=$ac_cv_c_compiler_gnu 2715 2716 2717 2718ac_config_headers="$ac_config_headers config.h" 2719 2720 2721# Initialize Automake 2722am__api_version='1.16' 2723 2724 2725 2726 # Find a good install program. We prefer a C program (faster), 2727# so one script is as good as another. But avoid the broken or 2728# incompatible versions: 2729# SysV /etc/install, /usr/sbin/install 2730# SunOS /usr/etc/install 2731# IRIX /sbin/install 2732# AIX /bin/install 2733# AmigaOS /C/install, which installs bootblocks on floppy discs 2734# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2735# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2736# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2737# OS/2's system install, which has a completely different semantic 2738# ./install, which can be erroneously created by make from ./install.sh. 2739# Reject install programs that cannot install multiple files. 2740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2741printf %s "checking for a BSD-compatible install... " >&6; } 2742if test -z "$INSTALL"; then 2743if test ${ac_cv_path_install+y} 2744then : 2745 printf %s "(cached) " >&6 2746else $as_nop 2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2748for as_dir in $PATH 2749do 2750 IFS=$as_save_IFS 2751 case $as_dir in #((( 2752 '') as_dir=./ ;; 2753 */) ;; 2754 *) as_dir=$as_dir/ ;; 2755 esac 2756 # Account for fact that we put trailing slashes in our PATH walk. 2757case $as_dir in #(( 2758 ./ | /[cC]/* | \ 2759 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2760 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2761 /usr/ucb/* ) ;; 2762 *) 2763 # OSF1 and SCO ODT 3.0 have their own names for install. 2764 # Don't use installbsd from OSF since it installs stuff as root 2765 # by default. 2766 for ac_prog in ginstall scoinst install; do 2767 for ac_exec_ext in '' $ac_executable_extensions; do 2768 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2769 if test $ac_prog = install && 2770 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2771 # AIX install. It has an incompatible calling convention. 2772 : 2773 elif test $ac_prog = install && 2774 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2775 # program-specific install script used by HP pwplus--don't use. 2776 : 2777 else 2778 rm -rf conftest.one conftest.two conftest.dir 2779 echo one > conftest.one 2780 echo two > conftest.two 2781 mkdir conftest.dir 2782 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2783 test -s conftest.one && test -s conftest.two && 2784 test -s conftest.dir/conftest.one && 2785 test -s conftest.dir/conftest.two 2786 then 2787 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2788 break 3 2789 fi 2790 fi 2791 fi 2792 done 2793 done 2794 ;; 2795esac 2796 2797 done 2798IFS=$as_save_IFS 2799 2800rm -rf conftest.one conftest.two conftest.dir 2801 2802fi 2803 if test ${ac_cv_path_install+y}; then 2804 INSTALL=$ac_cv_path_install 2805 else 2806 # As a last resort, use the slow shell script. Don't cache a 2807 # value for INSTALL within a source directory, because that will 2808 # break other packages using the cache if that directory is 2809 # removed, or if the value is a relative name. 2810 INSTALL=$ac_install_sh 2811 fi 2812fi 2813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2814printf "%s\n" "$INSTALL" >&6; } 2815 2816# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2817# It thinks the first close brace ends the variable substitution. 2818test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2819 2820test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2821 2822test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2823 2824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2825printf %s "checking whether build environment is sane... " >&6; } 2826# Reject unsafe characters in $srcdir or the absolute working directory 2827# name. Accept space and tab only in the latter. 2828am_lf=' 2829' 2830case `pwd` in 2831 *[\\\"\#\$\&\'\`$am_lf]*) 2832 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2833esac 2834case $srcdir in 2835 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2836 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2837esac 2838 2839# Do 'set' in a subshell so we don't clobber the current shell's 2840# arguments. Must try -L first in case configure is actually a 2841# symlink; some systems play weird games with the mod time of symlinks 2842# (eg FreeBSD returns the mod time of the symlink's containing 2843# directory). 2844if ( 2845 am_has_slept=no 2846 for am_try in 1 2; do 2847 echo "timestamp, slept: $am_has_slept" > conftest.file 2848 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2849 if test "$*" = "X"; then 2850 # -L didn't work. 2851 set X `ls -t "$srcdir/configure" conftest.file` 2852 fi 2853 if test "$*" != "X $srcdir/configure conftest.file" \ 2854 && test "$*" != "X conftest.file $srcdir/configure"; then 2855 2856 # If neither matched, then we have a broken ls. This can happen 2857 # if, for instance, CONFIG_SHELL is bash and it inherits a 2858 # broken ls alias from the environment. This has actually 2859 # happened. Such a system could not be considered "sane". 2860 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2861 alias in your environment" "$LINENO" 5 2862 fi 2863 if test "$2" = conftest.file || test $am_try -eq 2; then 2864 break 2865 fi 2866 # Just in case. 2867 sleep 1 2868 am_has_slept=yes 2869 done 2870 test "$2" = conftest.file 2871 ) 2872then 2873 # Ok. 2874 : 2875else 2876 as_fn_error $? "newly created file is older than distributed files! 2877Check your system clock" "$LINENO" 5 2878fi 2879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2880printf "%s\n" "yes" >&6; } 2881# If we didn't sleep, we still need to ensure time stamps of config.status and 2882# generated files are strictly newer. 2883am_sleep_pid= 2884if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2885 ( sleep 1 ) & 2886 am_sleep_pid=$! 2887fi 2888 2889rm -f conftest.file 2890 2891test "$program_prefix" != NONE && 2892 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2893# Use a double $ so make ignores it. 2894test "$program_suffix" != NONE && 2895 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2896# Double any \ or $. 2897# By default was `s,x,x', remove it if useless. 2898ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2899program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2900 2901 2902# Expand $ac_aux_dir to an absolute path. 2903am_aux_dir=`cd "$ac_aux_dir" && pwd` 2904 2905 2906 if test x"${MISSING+set}" != xset; then 2907 MISSING="\${SHELL} '$am_aux_dir/missing'" 2908fi 2909# Use eval to expand $SHELL 2910if eval "$MISSING --is-lightweight"; then 2911 am_missing_run="$MISSING " 2912else 2913 am_missing_run= 2914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2915printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2916fi 2917 2918if test x"${install_sh+set}" != xset; then 2919 case $am_aux_dir in 2920 *\ * | *\ *) 2921 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2922 *) 2923 install_sh="\${SHELL} $am_aux_dir/install-sh" 2924 esac 2925fi 2926 2927# Installed binaries are usually stripped using 'strip' when the user 2928# run "make install-strip". However 'strip' might not be the right 2929# tool to use in cross-compilation environments, therefore Automake 2930# will honor the 'STRIP' environment variable to overrule this program. 2931if test "$cross_compiling" != no; then 2932 if test -n "$ac_tool_prefix"; then 2933 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2934set dummy ${ac_tool_prefix}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_STRIP+y} 2938then : 2939 printf %s "(cached) " >&6 2940else $as_nop 2941 if test -n "$STRIP"; then 2942 ac_cv_prog_STRIP="$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_STRIP="${ac_tool_prefix}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 2965STRIP=$ac_cv_prog_STRIP 2966if test -n "$STRIP"; then 2967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2968printf "%s\n" "$STRIP" >&6; } 2969else 2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2971printf "%s\n" "no" >&6; } 2972fi 2973 2974 2975fi 2976if test -z "$ac_cv_prog_STRIP"; then 2977 ac_ct_STRIP=$STRIP 2978 # Extract the first word of "strip", so it can be a program name with args. 2979set dummy strip; ac_word=$2 2980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2981printf %s "checking for $ac_word... " >&6; } 2982if test ${ac_cv_prog_ac_ct_STRIP+y} 2983then : 2984 printf %s "(cached) " >&6 2985else $as_nop 2986 if test -n "$ac_ct_STRIP"; then 2987 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2988else 2989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2990for as_dir in $PATH 2991do 2992 IFS=$as_save_IFS 2993 case $as_dir in #((( 2994 '') as_dir=./ ;; 2995 */) ;; 2996 *) as_dir=$as_dir/ ;; 2997 esac 2998 for ac_exec_ext in '' $ac_executable_extensions; do 2999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3000 ac_cv_prog_ac_ct_STRIP="strip" 3001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3002 break 2 3003 fi 3004done 3005 done 3006IFS=$as_save_IFS 3007 3008fi 3009fi 3010ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3011if test -n "$ac_ct_STRIP"; then 3012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3013printf "%s\n" "$ac_ct_STRIP" >&6; } 3014else 3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3016printf "%s\n" "no" >&6; } 3017fi 3018 3019 if test "x$ac_ct_STRIP" = x; then 3020 STRIP=":" 3021 else 3022 case $cross_compiling:$ac_tool_warned in 3023yes:) 3024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3025printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3026ac_tool_warned=yes ;; 3027esac 3028 STRIP=$ac_ct_STRIP 3029 fi 3030else 3031 STRIP="$ac_cv_prog_STRIP" 3032fi 3033 3034fi 3035INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3036 3037 3038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3039printf %s "checking for a race-free mkdir -p... " >&6; } 3040if test -z "$MKDIR_P"; then 3041 if test ${ac_cv_path_mkdir+y} 3042then : 3043 printf %s "(cached) " >&6 3044else $as_nop 3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3046for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3047do 3048 IFS=$as_save_IFS 3049 case $as_dir in #((( 3050 '') as_dir=./ ;; 3051 */) ;; 3052 *) as_dir=$as_dir/ ;; 3053 esac 3054 for ac_prog in mkdir gmkdir; do 3055 for ac_exec_ext in '' $ac_executable_extensions; do 3056 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3057 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3058 'mkdir ('*'coreutils) '* | \ 3059 'BusyBox '* | \ 3060 'mkdir (fileutils) '4.1*) 3061 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3062 break 3;; 3063 esac 3064 done 3065 done 3066 done 3067IFS=$as_save_IFS 3068 3069fi 3070 3071 test -d ./--version && rmdir ./--version 3072 if test ${ac_cv_path_mkdir+y}; then 3073 MKDIR_P="$ac_cv_path_mkdir -p" 3074 else 3075 # As a last resort, use the slow shell script. Don't cache a 3076 # value for MKDIR_P within a source directory, because that will 3077 # break other packages using the cache if that directory is 3078 # removed, or if the value is a relative name. 3079 MKDIR_P="$ac_install_sh -d" 3080 fi 3081fi 3082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3083printf "%s\n" "$MKDIR_P" >&6; } 3084 3085for ac_prog in gawk mawk nawk awk 3086do 3087 # Extract the first word of "$ac_prog", so it can be a program name with args. 3088set dummy $ac_prog; ac_word=$2 3089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3090printf %s "checking for $ac_word... " >&6; } 3091if test ${ac_cv_prog_AWK+y} 3092then : 3093 printf %s "(cached) " >&6 3094else $as_nop 3095 if test -n "$AWK"; then 3096 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3097else 3098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3099for as_dir in $PATH 3100do 3101 IFS=$as_save_IFS 3102 case $as_dir in #((( 3103 '') as_dir=./ ;; 3104 */) ;; 3105 *) as_dir=$as_dir/ ;; 3106 esac 3107 for ac_exec_ext in '' $ac_executable_extensions; do 3108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3109 ac_cv_prog_AWK="$ac_prog" 3110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3111 break 2 3112 fi 3113done 3114 done 3115IFS=$as_save_IFS 3116 3117fi 3118fi 3119AWK=$ac_cv_prog_AWK 3120if test -n "$AWK"; then 3121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3122printf "%s\n" "$AWK" >&6; } 3123else 3124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3125printf "%s\n" "no" >&6; } 3126fi 3127 3128 3129 test -n "$AWK" && break 3130done 3131 3132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3133printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3134set x ${MAKE-make} 3135ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3136if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3137then : 3138 printf %s "(cached) " >&6 3139else $as_nop 3140 cat >conftest.make <<\_ACEOF 3141SHELL = /bin/sh 3142all: 3143 @echo '@@@%%%=$(MAKE)=@@@%%%' 3144_ACEOF 3145# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3146case `${MAKE-make} -f conftest.make 2>/dev/null` in 3147 *@@@%%%=?*=@@@%%%*) 3148 eval ac_cv_prog_make_${ac_make}_set=yes;; 3149 *) 3150 eval ac_cv_prog_make_${ac_make}_set=no;; 3151esac 3152rm -f conftest.make 3153fi 3154if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3156printf "%s\n" "yes" >&6; } 3157 SET_MAKE= 3158else 3159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3160printf "%s\n" "no" >&6; } 3161 SET_MAKE="MAKE=${MAKE-make}" 3162fi 3163 3164rm -rf .tst 2>/dev/null 3165mkdir .tst 2>/dev/null 3166if test -d .tst; then 3167 am__leading_dot=. 3168else 3169 am__leading_dot=_ 3170fi 3171rmdir .tst 2>/dev/null 3172 3173# Check whether --enable-silent-rules was given. 3174if test ${enable_silent_rules+y} 3175then : 3176 enableval=$enable_silent_rules; 3177fi 3178 3179case $enable_silent_rules in # ((( 3180 yes) AM_DEFAULT_VERBOSITY=0;; 3181 no) AM_DEFAULT_VERBOSITY=1;; 3182 *) AM_DEFAULT_VERBOSITY=1;; 3183esac 3184am_make=${MAKE-make} 3185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3186printf %s "checking whether $am_make supports nested variables... " >&6; } 3187if test ${am_cv_make_support_nested_variables+y} 3188then : 3189 printf %s "(cached) " >&6 3190else $as_nop 3191 if printf "%s\n" 'TRUE=$(BAR$(V)) 3192BAR0=false 3193BAR1=true 3194V=1 3195am__doit: 3196 @$(TRUE) 3197.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3198 am_cv_make_support_nested_variables=yes 3199else 3200 am_cv_make_support_nested_variables=no 3201fi 3202fi 3203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3204printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3205if test $am_cv_make_support_nested_variables = yes; then 3206 AM_V='$(V)' 3207 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3208else 3209 AM_V=$AM_DEFAULT_VERBOSITY 3210 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3211fi 3212AM_BACKSLASH='\' 3213 3214if test "`cd $srcdir && pwd`" != "`pwd`"; then 3215 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3216 # is not polluted with repeated "-I." 3217 am__isrc=' -I$(srcdir)' 3218 # test to see if srcdir already configured 3219 if test -f $srcdir/config.status; then 3220 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3221 fi 3222fi 3223 3224# test whether we have cygpath 3225if test -z "$CYGPATH_W"; then 3226 if (cygpath --version) >/dev/null 2>/dev/null; then 3227 CYGPATH_W='cygpath -w' 3228 else 3229 CYGPATH_W=echo 3230 fi 3231fi 3232 3233 3234# Define the identity of the package. 3235 PACKAGE='libXtst' 3236 VERSION='1.2.4' 3237 3238 3239printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3240 3241 3242printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3243 3244# Some tools Automake needs. 3245 3246ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3247 3248 3249AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3250 3251 3252AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3253 3254 3255AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3256 3257 3258MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3259 3260# For better backward compatibility. To be removed once Automake 1.9.x 3261# dies out for good. For more background, see: 3262# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3263# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3264mkdir_p='$(MKDIR_P)' 3265 3266# We need awk for the "check" target (and possibly the TAP driver). The 3267# system "awk" is bad on some platforms. 3268# Always define AMTAR for backward compatibility. Yes, it's still used 3269# in the wild :-( We should find a proper way to deprecate it ... 3270AMTAR='$${TAR-tar}' 3271 3272 3273# We'll loop over all known methods to create a tar archive until one works. 3274_am_tools='gnutar pax cpio none' 3275 3276am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3277 3278 3279 3280 3281 3282# Variables for tags utilities; see am/tags.am 3283if test -z "$CTAGS"; then 3284 CTAGS=ctags 3285fi 3286 3287if test -z "$ETAGS"; then 3288 ETAGS=etags 3289fi 3290 3291if test -z "$CSCOPE"; then 3292 CSCOPE=cscope 3293fi 3294 3295 3296 3297# POSIX will say in a future version that running "rm -f" with no argument 3298# is OK; and we want to be able to make that assumption in our Makefile 3299# recipes. So use an aggressive probe to check that the usage we want is 3300# actually supported "in the wild" to an acceptable degree. 3301# See automake bug#10828. 3302# To make any issue more visible, cause the running configure to be aborted 3303# by default if the 'rm' program in use doesn't match our expectations; the 3304# user can still override this though. 3305if rm -f && rm -fr && rm -rf; then : OK; else 3306 cat >&2 <<'END' 3307Oops! 3308 3309Your 'rm' program seems unable to run without file operands specified 3310on the command line, even when the '-f' option is present. This is contrary 3311to the behaviour of most rm programs out there, and not conforming with 3312the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3313 3314Please tell bug-automake@gnu.org about your system, including the value 3315of your $PATH and any error possibly output before this message. This 3316can help us improve future automake versions. 3317 3318END 3319 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3320 echo 'Configuration will proceed anyway, since you have set the' >&2 3321 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3322 echo >&2 3323 else 3324 cat >&2 <<'END' 3325Aborting the configuration process, to ensure you take notice of the issue. 3326 3327You can download and install GNU coreutils to get an 'rm' implementation 3328that behaves properly: <https://www.gnu.org/software/coreutils/>. 3329 3330If you want to complete the configuration process using your problematic 3331'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3332to "yes", and re-run configure. 3333 3334END 3335 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3336 fi 3337fi 3338 3339 3340# Initialize libtool 3341case `pwd` in 3342 *\ * | *\ *) 3343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3344printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3345esac 3346 3347 3348 3349macro_version='2.4.7' 3350macro_revision='2.4.7' 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365ltmain=$ac_aux_dir/ltmain.sh 3366 3367 3368 3369 # Make sure we can run config.sub. 3370$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3371 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3372 3373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3374printf %s "checking build system type... " >&6; } 3375if test ${ac_cv_build+y} 3376then : 3377 printf %s "(cached) " >&6 3378else $as_nop 3379 ac_build_alias=$build_alias 3380test "x$ac_build_alias" = x && 3381 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3382test "x$ac_build_alias" = x && 3383 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3384ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3385 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3386 3387fi 3388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3389printf "%s\n" "$ac_cv_build" >&6; } 3390case $ac_cv_build in 3391*-*-*) ;; 3392*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3393esac 3394build=$ac_cv_build 3395ac_save_IFS=$IFS; IFS='-' 3396set x $ac_cv_build 3397shift 3398build_cpu=$1 3399build_vendor=$2 3400shift; shift 3401# Remember, the first character of IFS is used to create $*, 3402# except with old shells: 3403build_os=$* 3404IFS=$ac_save_IFS 3405case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3406 3407 3408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3409printf %s "checking host system type... " >&6; } 3410if test ${ac_cv_host+y} 3411then : 3412 printf %s "(cached) " >&6 3413else $as_nop 3414 if test "x$host_alias" = x; then 3415 ac_cv_host=$ac_cv_build 3416else 3417 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3418 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3419fi 3420 3421fi 3422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3423printf "%s\n" "$ac_cv_host" >&6; } 3424case $ac_cv_host in 3425*-*-*) ;; 3426*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3427esac 3428host=$ac_cv_host 3429ac_save_IFS=$IFS; IFS='-' 3430set x $ac_cv_host 3431shift 3432host_cpu=$1 3433host_vendor=$2 3434shift; shift 3435# Remember, the first character of IFS is used to create $*, 3436# except with old shells: 3437host_os=$* 3438IFS=$ac_save_IFS 3439case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3440 3441 3442# Backslashify metacharacters that are still active within 3443# double-quoted strings. 3444sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3445 3446# Same as above, but do not quote variable references. 3447double_quote_subst='s/\(["`\\]\)/\\\1/g' 3448 3449# Sed substitution to delay expansion of an escaped shell variable in a 3450# double_quote_subst'ed string. 3451delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3452 3453# Sed substitution to delay expansion of an escaped single quote. 3454delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3455 3456# Sed substitution to avoid accidental globbing in evaled expressions 3457no_glob_subst='s/\*/\\\*/g' 3458 3459ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3460ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3461ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3462 3463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3464printf %s "checking how to print strings... " >&6; } 3465# Test print first, because it will be a builtin if present. 3466if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3467 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3468 ECHO='print -r --' 3469elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3470 ECHO='printf %s\n' 3471else 3472 # Use this function as a fallback that always works. 3473 func_fallback_echo () 3474 { 3475 eval 'cat <<_LTECHO_EOF 3476$1 3477_LTECHO_EOF' 3478 } 3479 ECHO='func_fallback_echo' 3480fi 3481 3482# func_echo_all arg... 3483# Invoke $ECHO with all args, space-separated. 3484func_echo_all () 3485{ 3486 $ECHO "" 3487} 3488 3489case $ECHO in 3490 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3491printf "%s\n" "printf" >&6; } ;; 3492 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3493printf "%s\n" "print -r" >&6; } ;; 3494 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3495printf "%s\n" "cat" >&6; } ;; 3496esac 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520DEPDIR="${am__leading_dot}deps" 3521 3522ac_config_commands="$ac_config_commands depfiles" 3523 3524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3525printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3526cat > confinc.mk << 'END' 3527am__doit: 3528 @echo this is the am__doit target >confinc.out 3529.PHONY: am__doit 3530END 3531am__include="#" 3532am__quote= 3533# BSD make does it like this. 3534echo '.include "confinc.mk" # ignored' > confmf.BSD 3535# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3536echo 'include confinc.mk # ignored' > confmf.GNU 3537_am_result=no 3538for s in GNU BSD; do 3539 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3540 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3541 ac_status=$? 3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3543 (exit $ac_status); } 3544 case $?:`cat confinc.out 2>/dev/null` in #( 3545 '0:this is the am__doit target') : 3546 case $s in #( 3547 BSD) : 3548 am__include='.include' am__quote='"' ;; #( 3549 *) : 3550 am__include='include' am__quote='' ;; 3551esac ;; #( 3552 *) : 3553 ;; 3554esac 3555 if test "$am__include" != "#"; then 3556 _am_result="yes ($s style)" 3557 break 3558 fi 3559done 3560rm -f confinc.* confmf.* 3561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3562printf "%s\n" "${_am_result}" >&6; } 3563 3564# Check whether --enable-dependency-tracking was given. 3565if test ${enable_dependency_tracking+y} 3566then : 3567 enableval=$enable_dependency_tracking; 3568fi 3569 3570if test "x$enable_dependency_tracking" != xno; then 3571 am_depcomp="$ac_aux_dir/depcomp" 3572 AMDEPBACKSLASH='\' 3573 am__nodep='_no' 3574fi 3575 if test "x$enable_dependency_tracking" != xno; then 3576 AMDEP_TRUE= 3577 AMDEP_FALSE='#' 3578else 3579 AMDEP_TRUE='#' 3580 AMDEP_FALSE= 3581fi 3582 3583 3584ac_ext=c 3585ac_cpp='$CPP $CPPFLAGS' 3586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3588ac_compiler_gnu=$ac_cv_c_compiler_gnu 3589if test -n "$ac_tool_prefix"; then 3590 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3591set dummy ${ac_tool_prefix}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_CC+y} 3595then : 3596 printf %s "(cached) " >&6 3597else $as_nop 3598 if test -n "$CC"; then 3599 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}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 3622CC=$ac_cv_prog_CC 3623if test -n "$CC"; then 3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3625printf "%s\n" "$CC" >&6; } 3626else 3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3628printf "%s\n" "no" >&6; } 3629fi 3630 3631 3632fi 3633if test -z "$ac_cv_prog_CC"; then 3634 ac_ct_CC=$CC 3635 # Extract the first word of "gcc", so it can be a program name with args. 3636set dummy gcc; ac_word=$2 3637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3638printf %s "checking for $ac_word... " >&6; } 3639if test ${ac_cv_prog_ac_ct_CC+y} 3640then : 3641 printf %s "(cached) " >&6 3642else $as_nop 3643 if test -n "$ac_ct_CC"; then 3644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3645else 3646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3647for as_dir in $PATH 3648do 3649 IFS=$as_save_IFS 3650 case $as_dir in #((( 3651 '') as_dir=./ ;; 3652 */) ;; 3653 *) as_dir=$as_dir/ ;; 3654 esac 3655 for ac_exec_ext in '' $ac_executable_extensions; do 3656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3657 ac_cv_prog_ac_ct_CC="gcc" 3658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3659 break 2 3660 fi 3661done 3662 done 3663IFS=$as_save_IFS 3664 3665fi 3666fi 3667ac_ct_CC=$ac_cv_prog_ac_ct_CC 3668if test -n "$ac_ct_CC"; then 3669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3670printf "%s\n" "$ac_ct_CC" >&6; } 3671else 3672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3673printf "%s\n" "no" >&6; } 3674fi 3675 3676 if test "x$ac_ct_CC" = x; then 3677 CC="" 3678 else 3679 case $cross_compiling:$ac_tool_warned in 3680yes:) 3681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3682printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3683ac_tool_warned=yes ;; 3684esac 3685 CC=$ac_ct_CC 3686 fi 3687else 3688 CC="$ac_cv_prog_CC" 3689fi 3690 3691if test -z "$CC"; then 3692 if test -n "$ac_tool_prefix"; then 3693 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3694set dummy ${ac_tool_prefix}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 3704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3705for as_dir in $PATH 3706do 3707 IFS=$as_save_IFS 3708 case $as_dir in #((( 3709 '') as_dir=./ ;; 3710 */) ;; 3711 *) as_dir=$as_dir/ ;; 3712 esac 3713 for ac_exec_ext in '' $ac_executable_extensions; do 3714 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3715 ac_cv_prog_CC="${ac_tool_prefix}cc" 3716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3717 break 2 3718 fi 3719done 3720 done 3721IFS=$as_save_IFS 3722 3723fi 3724fi 3725CC=$ac_cv_prog_CC 3726if test -n "$CC"; then 3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3728printf "%s\n" "$CC" >&6; } 3729else 3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3731printf "%s\n" "no" >&6; } 3732fi 3733 3734 3735 fi 3736fi 3737if test -z "$CC"; then 3738 # Extract the first word of "cc", so it can be a program name with args. 3739set dummy cc; ac_word=$2 3740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3741printf %s "checking for $ac_word... " >&6; } 3742if test ${ac_cv_prog_CC+y} 3743then : 3744 printf %s "(cached) " >&6 3745else $as_nop 3746 if test -n "$CC"; then 3747 ac_cv_prog_CC="$CC" # Let the user override the test. 3748else 3749 ac_prog_rejected=no 3750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3751for as_dir in $PATH 3752do 3753 IFS=$as_save_IFS 3754 case $as_dir in #((( 3755 '') as_dir=./ ;; 3756 */) ;; 3757 *) as_dir=$as_dir/ ;; 3758 esac 3759 for ac_exec_ext in '' $ac_executable_extensions; do 3760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3761 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3762 ac_prog_rejected=yes 3763 continue 3764 fi 3765 ac_cv_prog_CC="cc" 3766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3767 break 2 3768 fi 3769done 3770 done 3771IFS=$as_save_IFS 3772 3773if test $ac_prog_rejected = yes; then 3774 # We found a bogon in the path, so make sure we never use it. 3775 set dummy $ac_cv_prog_CC 3776 shift 3777 if test $# != 0; then 3778 # We chose a different compiler from the bogus one. 3779 # However, it has the same basename, so the bogon will be chosen 3780 # first if we set CC to just the basename; use the full file name. 3781 shift 3782 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3783 fi 3784fi 3785fi 3786fi 3787CC=$ac_cv_prog_CC 3788if test -n "$CC"; then 3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3790printf "%s\n" "$CC" >&6; } 3791else 3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3793printf "%s\n" "no" >&6; } 3794fi 3795 3796 3797fi 3798if test -z "$CC"; then 3799 if test -n "$ac_tool_prefix"; then 3800 for ac_prog in cl.exe 3801 do 3802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3803set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3805printf %s "checking for $ac_word... " >&6; } 3806if test ${ac_cv_prog_CC+y} 3807then : 3808 printf %s "(cached) " >&6 3809else $as_nop 3810 if test -n "$CC"; then 3811 ac_cv_prog_CC="$CC" # Let the user override the test. 3812else 3813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3814for as_dir in $PATH 3815do 3816 IFS=$as_save_IFS 3817 case $as_dir in #((( 3818 '') as_dir=./ ;; 3819 */) ;; 3820 *) as_dir=$as_dir/ ;; 3821 esac 3822 for ac_exec_ext in '' $ac_executable_extensions; do 3823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3824 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3826 break 2 3827 fi 3828done 3829 done 3830IFS=$as_save_IFS 3831 3832fi 3833fi 3834CC=$ac_cv_prog_CC 3835if test -n "$CC"; then 3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3837printf "%s\n" "$CC" >&6; } 3838else 3839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3840printf "%s\n" "no" >&6; } 3841fi 3842 3843 3844 test -n "$CC" && break 3845 done 3846fi 3847if test -z "$CC"; then 3848 ac_ct_CC=$CC 3849 for ac_prog in cl.exe 3850do 3851 # Extract the first word of "$ac_prog", so it can be a program name with args. 3852set dummy $ac_prog; ac_word=$2 3853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3854printf %s "checking for $ac_word... " >&6; } 3855if test ${ac_cv_prog_ac_ct_CC+y} 3856then : 3857 printf %s "(cached) " >&6 3858else $as_nop 3859 if test -n "$ac_ct_CC"; then 3860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3861else 3862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3863for as_dir in $PATH 3864do 3865 IFS=$as_save_IFS 3866 case $as_dir in #((( 3867 '') as_dir=./ ;; 3868 */) ;; 3869 *) as_dir=$as_dir/ ;; 3870 esac 3871 for ac_exec_ext in '' $ac_executable_extensions; do 3872 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3873 ac_cv_prog_ac_ct_CC="$ac_prog" 3874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3875 break 2 3876 fi 3877done 3878 done 3879IFS=$as_save_IFS 3880 3881fi 3882fi 3883ac_ct_CC=$ac_cv_prog_ac_ct_CC 3884if test -n "$ac_ct_CC"; then 3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3886printf "%s\n" "$ac_ct_CC" >&6; } 3887else 3888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3889printf "%s\n" "no" >&6; } 3890fi 3891 3892 3893 test -n "$ac_ct_CC" && break 3894done 3895 3896 if test "x$ac_ct_CC" = x; then 3897 CC="" 3898 else 3899 case $cross_compiling:$ac_tool_warned in 3900yes:) 3901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3902printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3903ac_tool_warned=yes ;; 3904esac 3905 CC=$ac_ct_CC 3906 fi 3907fi 3908 3909fi 3910if test -z "$CC"; then 3911 if test -n "$ac_tool_prefix"; then 3912 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3913set dummy ${ac_tool_prefix}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_CC+y} 3917then : 3918 printf %s "(cached) " >&6 3919else $as_nop 3920 if test -n "$CC"; then 3921 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}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 3944CC=$ac_cv_prog_CC 3945if test -n "$CC"; then 3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3947printf "%s\n" "$CC" >&6; } 3948else 3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3950printf "%s\n" "no" >&6; } 3951fi 3952 3953 3954fi 3955if test -z "$ac_cv_prog_CC"; then 3956 ac_ct_CC=$CC 3957 # Extract the first word of "clang", so it can be a program name with args. 3958set dummy clang; ac_word=$2 3959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3960printf %s "checking for $ac_word... " >&6; } 3961if test ${ac_cv_prog_ac_ct_CC+y} 3962then : 3963 printf %s "(cached) " >&6 3964else $as_nop 3965 if test -n "$ac_ct_CC"; then 3966 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3967else 3968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3969for as_dir in $PATH 3970do 3971 IFS=$as_save_IFS 3972 case $as_dir in #((( 3973 '') as_dir=./ ;; 3974 */) ;; 3975 *) as_dir=$as_dir/ ;; 3976 esac 3977 for ac_exec_ext in '' $ac_executable_extensions; do 3978 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3979 ac_cv_prog_ac_ct_CC="clang" 3980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3981 break 2 3982 fi 3983done 3984 done 3985IFS=$as_save_IFS 3986 3987fi 3988fi 3989ac_ct_CC=$ac_cv_prog_ac_ct_CC 3990if test -n "$ac_ct_CC"; then 3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3992printf "%s\n" "$ac_ct_CC" >&6; } 3993else 3994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3995printf "%s\n" "no" >&6; } 3996fi 3997 3998 if test "x$ac_ct_CC" = x; then 3999 CC="" 4000 else 4001 case $cross_compiling:$ac_tool_warned in 4002yes:) 4003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4004printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4005ac_tool_warned=yes ;; 4006esac 4007 CC=$ac_ct_CC 4008 fi 4009else 4010 CC="$ac_cv_prog_CC" 4011fi 4012 4013fi 4014 4015 4016test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4017printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4018as_fn_error $? "no acceptable C compiler found in \$PATH 4019See \`config.log' for more details" "$LINENO" 5; } 4020 4021# Provide some information about the compiler. 4022printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4023set X $ac_compile 4024ac_compiler=$2 4025for ac_option in --version -v -V -qversion -version; do 4026 { { ac_try="$ac_compiler $ac_option >&5" 4027case "(($ac_try" in 4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4029 *) ac_try_echo=$ac_try;; 4030esac 4031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4032printf "%s\n" "$ac_try_echo"; } >&5 4033 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4034 ac_status=$? 4035 if test -s conftest.err; then 4036 sed '10a\ 4037... rest of stderr output deleted ... 4038 10q' conftest.err >conftest.er1 4039 cat conftest.er1 >&5 4040 fi 4041 rm -f conftest.er1 conftest.err 4042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4043 test $ac_status = 0; } 4044done 4045 4046cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4047/* end confdefs.h. */ 4048 4049int 4050main (void) 4051{ 4052 4053 ; 4054 return 0; 4055} 4056_ACEOF 4057ac_clean_files_save=$ac_clean_files 4058ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4059# Try to create an executable without -o first, disregard a.out. 4060# It will help us diagnose broken compilers, and finding out an intuition 4061# of exeext. 4062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4063printf %s "checking whether the C compiler works... " >&6; } 4064ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4065 4066# The possible output files: 4067ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4068 4069ac_rmfiles= 4070for ac_file in $ac_files 4071do 4072 case $ac_file in 4073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4074 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4075 esac 4076done 4077rm -f $ac_rmfiles 4078 4079if { { ac_try="$ac_link_default" 4080case "(($ac_try" in 4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4082 *) ac_try_echo=$ac_try;; 4083esac 4084eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4085printf "%s\n" "$ac_try_echo"; } >&5 4086 (eval "$ac_link_default") 2>&5 4087 ac_status=$? 4088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4089 test $ac_status = 0; } 4090then : 4091 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4092# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4093# in a Makefile. We should not override ac_cv_exeext if it was cached, 4094# so that the user can short-circuit this test for compilers unknown to 4095# Autoconf. 4096for ac_file in $ac_files '' 4097do 4098 test -f "$ac_file" || continue 4099 case $ac_file in 4100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4101 ;; 4102 [ab].out ) 4103 # We found the default executable, but exeext='' is most 4104 # certainly right. 4105 break;; 4106 *.* ) 4107 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4108 then :; else 4109 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4110 fi 4111 # We set ac_cv_exeext here because the later test for it is not 4112 # safe: cross compilers may not add the suffix if given an `-o' 4113 # argument, so we may need to know it at that point already. 4114 # Even if this section looks crufty: it has the advantage of 4115 # actually working. 4116 break;; 4117 * ) 4118 break;; 4119 esac 4120done 4121test "$ac_cv_exeext" = no && ac_cv_exeext= 4122 4123else $as_nop 4124 ac_file='' 4125fi 4126if test -z "$ac_file" 4127then : 4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4129printf "%s\n" "no" >&6; } 4130printf "%s\n" "$as_me: failed program was:" >&5 4131sed 's/^/| /' conftest.$ac_ext >&5 4132 4133{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4134printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4135as_fn_error 77 "C compiler cannot create executables 4136See \`config.log' for more details" "$LINENO" 5; } 4137else $as_nop 4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4139printf "%s\n" "yes" >&6; } 4140fi 4141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4142printf %s "checking for C compiler default output file name... " >&6; } 4143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4144printf "%s\n" "$ac_file" >&6; } 4145ac_exeext=$ac_cv_exeext 4146 4147rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4148ac_clean_files=$ac_clean_files_save 4149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4150printf %s "checking for suffix of executables... " >&6; } 4151if { { ac_try="$ac_link" 4152case "(($ac_try" in 4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4154 *) ac_try_echo=$ac_try;; 4155esac 4156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4157printf "%s\n" "$ac_try_echo"; } >&5 4158 (eval "$ac_link") 2>&5 4159 ac_status=$? 4160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4161 test $ac_status = 0; } 4162then : 4163 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4164# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4165# work properly (i.e., refer to `conftest.exe'), while it won't with 4166# `rm'. 4167for ac_file in conftest.exe conftest conftest.*; do 4168 test -f "$ac_file" || continue 4169 case $ac_file in 4170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4171 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4172 break;; 4173 * ) break;; 4174 esac 4175done 4176else $as_nop 4177 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4178printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4179as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4180See \`config.log' for more details" "$LINENO" 5; } 4181fi 4182rm -f conftest conftest$ac_cv_exeext 4183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4184printf "%s\n" "$ac_cv_exeext" >&6; } 4185 4186rm -f conftest.$ac_ext 4187EXEEXT=$ac_cv_exeext 4188ac_exeext=$EXEEXT 4189cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4190/* end confdefs.h. */ 4191#include <stdio.h> 4192int 4193main (void) 4194{ 4195FILE *f = fopen ("conftest.out", "w"); 4196 return ferror (f) || fclose (f) != 0; 4197 4198 ; 4199 return 0; 4200} 4201_ACEOF 4202ac_clean_files="$ac_clean_files conftest.out" 4203# Check that the compiler produces executables we can run. If not, either 4204# the compiler is broken, or we cross compile. 4205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4206printf %s "checking whether we are cross compiling... " >&6; } 4207if test "$cross_compiling" != yes; then 4208 { { ac_try="$ac_link" 4209case "(($ac_try" in 4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4211 *) ac_try_echo=$ac_try;; 4212esac 4213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4214printf "%s\n" "$ac_try_echo"; } >&5 4215 (eval "$ac_link") 2>&5 4216 ac_status=$? 4217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4218 test $ac_status = 0; } 4219 if { ac_try='./conftest$ac_cv_exeext' 4220 { { case "(($ac_try" in 4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4222 *) ac_try_echo=$ac_try;; 4223esac 4224eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4225printf "%s\n" "$ac_try_echo"; } >&5 4226 (eval "$ac_try") 2>&5 4227 ac_status=$? 4228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4229 test $ac_status = 0; }; }; then 4230 cross_compiling=no 4231 else 4232 if test "$cross_compiling" = maybe; then 4233 cross_compiling=yes 4234 else 4235 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4236printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4237as_fn_error 77 "cannot run C compiled programs. 4238If you meant to cross compile, use \`--host'. 4239See \`config.log' for more details" "$LINENO" 5; } 4240 fi 4241 fi 4242fi 4243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4244printf "%s\n" "$cross_compiling" >&6; } 4245 4246rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4247ac_clean_files=$ac_clean_files_save 4248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4249printf %s "checking for suffix of object files... " >&6; } 4250if test ${ac_cv_objext+y} 4251then : 4252 printf %s "(cached) " >&6 4253else $as_nop 4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4255/* end confdefs.h. */ 4256 4257int 4258main (void) 4259{ 4260 4261 ; 4262 return 0; 4263} 4264_ACEOF 4265rm -f conftest.o conftest.obj 4266if { { ac_try="$ac_compile" 4267case "(($ac_try" in 4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4269 *) ac_try_echo=$ac_try;; 4270esac 4271eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4272printf "%s\n" "$ac_try_echo"; } >&5 4273 (eval "$ac_compile") 2>&5 4274 ac_status=$? 4275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4276 test $ac_status = 0; } 4277then : 4278 for ac_file in conftest.o conftest.obj conftest.*; do 4279 test -f "$ac_file" || continue; 4280 case $ac_file in 4281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4282 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4283 break;; 4284 esac 4285done 4286else $as_nop 4287 printf "%s\n" "$as_me: failed program was:" >&5 4288sed 's/^/| /' conftest.$ac_ext >&5 4289 4290{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4291printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4292as_fn_error $? "cannot compute suffix of object files: cannot compile 4293See \`config.log' for more details" "$LINENO" 5; } 4294fi 4295rm -f conftest.$ac_cv_objext conftest.$ac_ext 4296fi 4297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4298printf "%s\n" "$ac_cv_objext" >&6; } 4299OBJEXT=$ac_cv_objext 4300ac_objext=$OBJEXT 4301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4302printf %s "checking whether the compiler supports GNU C... " >&6; } 4303if test ${ac_cv_c_compiler_gnu+y} 4304then : 4305 printf %s "(cached) " >&6 4306else $as_nop 4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4308/* end confdefs.h. */ 4309 4310int 4311main (void) 4312{ 4313#ifndef __GNUC__ 4314 choke me 4315#endif 4316 4317 ; 4318 return 0; 4319} 4320_ACEOF 4321if ac_fn_c_try_compile "$LINENO" 4322then : 4323 ac_compiler_gnu=yes 4324else $as_nop 4325 ac_compiler_gnu=no 4326fi 4327rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4328ac_cv_c_compiler_gnu=$ac_compiler_gnu 4329 4330fi 4331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4332printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4333ac_compiler_gnu=$ac_cv_c_compiler_gnu 4334 4335if test $ac_compiler_gnu = yes; then 4336 GCC=yes 4337else 4338 GCC= 4339fi 4340ac_test_CFLAGS=${CFLAGS+y} 4341ac_save_CFLAGS=$CFLAGS 4342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4343printf %s "checking whether $CC accepts -g... " >&6; } 4344if test ${ac_cv_prog_cc_g+y} 4345then : 4346 printf %s "(cached) " >&6 4347else $as_nop 4348 ac_save_c_werror_flag=$ac_c_werror_flag 4349 ac_c_werror_flag=yes 4350 ac_cv_prog_cc_g=no 4351 CFLAGS="-g" 4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4353/* end confdefs.h. */ 4354 4355int 4356main (void) 4357{ 4358 4359 ; 4360 return 0; 4361} 4362_ACEOF 4363if ac_fn_c_try_compile "$LINENO" 4364then : 4365 ac_cv_prog_cc_g=yes 4366else $as_nop 4367 CFLAGS="" 4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4369/* end confdefs.h. */ 4370 4371int 4372main (void) 4373{ 4374 4375 ; 4376 return 0; 4377} 4378_ACEOF 4379if ac_fn_c_try_compile "$LINENO" 4380then : 4381 4382else $as_nop 4383 ac_c_werror_flag=$ac_save_c_werror_flag 4384 CFLAGS="-g" 4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4386/* end confdefs.h. */ 4387 4388int 4389main (void) 4390{ 4391 4392 ; 4393 return 0; 4394} 4395_ACEOF 4396if ac_fn_c_try_compile "$LINENO" 4397then : 4398 ac_cv_prog_cc_g=yes 4399fi 4400rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4401fi 4402rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4403fi 4404rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4405 ac_c_werror_flag=$ac_save_c_werror_flag 4406fi 4407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4408printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4409if test $ac_test_CFLAGS; then 4410 CFLAGS=$ac_save_CFLAGS 4411elif test $ac_cv_prog_cc_g = yes; then 4412 if test "$GCC" = yes; then 4413 CFLAGS="-g -O2" 4414 else 4415 CFLAGS="-g" 4416 fi 4417else 4418 if test "$GCC" = yes; then 4419 CFLAGS="-O2" 4420 else 4421 CFLAGS= 4422 fi 4423fi 4424ac_prog_cc_stdc=no 4425if test x$ac_prog_cc_stdc = xno 4426then : 4427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4428printf %s "checking for $CC option to enable C11 features... " >&6; } 4429if test ${ac_cv_prog_cc_c11+y} 4430then : 4431 printf %s "(cached) " >&6 4432else $as_nop 4433 ac_cv_prog_cc_c11=no 4434ac_save_CC=$CC 4435cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4436/* end confdefs.h. */ 4437$ac_c_conftest_c11_program 4438_ACEOF 4439for ac_arg in '' -std=gnu11 4440do 4441 CC="$ac_save_CC $ac_arg" 4442 if ac_fn_c_try_compile "$LINENO" 4443then : 4444 ac_cv_prog_cc_c11=$ac_arg 4445fi 4446rm -f core conftest.err conftest.$ac_objext conftest.beam 4447 test "x$ac_cv_prog_cc_c11" != "xno" && break 4448done 4449rm -f conftest.$ac_ext 4450CC=$ac_save_CC 4451fi 4452 4453if test "x$ac_cv_prog_cc_c11" = xno 4454then : 4455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4456printf "%s\n" "unsupported" >&6; } 4457else $as_nop 4458 if test "x$ac_cv_prog_cc_c11" = x 4459then : 4460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4461printf "%s\n" "none needed" >&6; } 4462else $as_nop 4463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4464printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4465 CC="$CC $ac_cv_prog_cc_c11" 4466fi 4467 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4468 ac_prog_cc_stdc=c11 4469fi 4470fi 4471if test x$ac_prog_cc_stdc = xno 4472then : 4473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4474printf %s "checking for $CC option to enable C99 features... " >&6; } 4475if test ${ac_cv_prog_cc_c99+y} 4476then : 4477 printf %s "(cached) " >&6 4478else $as_nop 4479 ac_cv_prog_cc_c99=no 4480ac_save_CC=$CC 4481cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4482/* end confdefs.h. */ 4483$ac_c_conftest_c99_program 4484_ACEOF 4485for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4486do 4487 CC="$ac_save_CC $ac_arg" 4488 if ac_fn_c_try_compile "$LINENO" 4489then : 4490 ac_cv_prog_cc_c99=$ac_arg 4491fi 4492rm -f core conftest.err conftest.$ac_objext conftest.beam 4493 test "x$ac_cv_prog_cc_c99" != "xno" && break 4494done 4495rm -f conftest.$ac_ext 4496CC=$ac_save_CC 4497fi 4498 4499if test "x$ac_cv_prog_cc_c99" = xno 4500then : 4501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4502printf "%s\n" "unsupported" >&6; } 4503else $as_nop 4504 if test "x$ac_cv_prog_cc_c99" = x 4505then : 4506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4507printf "%s\n" "none needed" >&6; } 4508else $as_nop 4509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4510printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4511 CC="$CC $ac_cv_prog_cc_c99" 4512fi 4513 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4514 ac_prog_cc_stdc=c99 4515fi 4516fi 4517if test x$ac_prog_cc_stdc = xno 4518then : 4519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4520printf %s "checking for $CC option to enable C89 features... " >&6; } 4521if test ${ac_cv_prog_cc_c89+y} 4522then : 4523 printf %s "(cached) " >&6 4524else $as_nop 4525 ac_cv_prog_cc_c89=no 4526ac_save_CC=$CC 4527cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4528/* end confdefs.h. */ 4529$ac_c_conftest_c89_program 4530_ACEOF 4531for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4532do 4533 CC="$ac_save_CC $ac_arg" 4534 if ac_fn_c_try_compile "$LINENO" 4535then : 4536 ac_cv_prog_cc_c89=$ac_arg 4537fi 4538rm -f core conftest.err conftest.$ac_objext conftest.beam 4539 test "x$ac_cv_prog_cc_c89" != "xno" && break 4540done 4541rm -f conftest.$ac_ext 4542CC=$ac_save_CC 4543fi 4544 4545if test "x$ac_cv_prog_cc_c89" = xno 4546then : 4547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4548printf "%s\n" "unsupported" >&6; } 4549else $as_nop 4550 if test "x$ac_cv_prog_cc_c89" = x 4551then : 4552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4553printf "%s\n" "none needed" >&6; } 4554else $as_nop 4555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4556printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4557 CC="$CC $ac_cv_prog_cc_c89" 4558fi 4559 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4560 ac_prog_cc_stdc=c89 4561fi 4562fi 4563 4564ac_ext=c 4565ac_cpp='$CPP $CPPFLAGS' 4566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4568ac_compiler_gnu=$ac_cv_c_compiler_gnu 4569 4570 4571 ac_ext=c 4572ac_cpp='$CPP $CPPFLAGS' 4573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4575ac_compiler_gnu=$ac_cv_c_compiler_gnu 4576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4577printf %s "checking whether $CC understands -c and -o together... " >&6; } 4578if test ${am_cv_prog_cc_c_o+y} 4579then : 4580 printf %s "(cached) " >&6 4581else $as_nop 4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4583/* end confdefs.h. */ 4584 4585int 4586main (void) 4587{ 4588 4589 ; 4590 return 0; 4591} 4592_ACEOF 4593 # Make sure it works both with $CC and with simple cc. 4594 # Following AC_PROG_CC_C_O, we do the test twice because some 4595 # compilers refuse to overwrite an existing .o file with -o, 4596 # though they will create one. 4597 am_cv_prog_cc_c_o=yes 4598 for am_i in 1 2; do 4599 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4600 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4601 ac_status=$? 4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4603 (exit $ac_status); } \ 4604 && test -f conftest2.$ac_objext; then 4605 : OK 4606 else 4607 am_cv_prog_cc_c_o=no 4608 break 4609 fi 4610 done 4611 rm -f core conftest* 4612 unset am_i 4613fi 4614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4615printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4616if test "$am_cv_prog_cc_c_o" != yes; then 4617 # Losing compiler, so override with the script. 4618 # FIXME: It is wrong to rewrite CC. 4619 # But if we don't then we get into trouble of one sort or another. 4620 # A longer-term fix would be to have automake use am__CC in this case, 4621 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4622 CC="$am_aux_dir/compile $CC" 4623fi 4624ac_ext=c 4625ac_cpp='$CPP $CPPFLAGS' 4626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4628ac_compiler_gnu=$ac_cv_c_compiler_gnu 4629 4630 4631depcc="$CC" am_compiler_list= 4632 4633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4634printf %s "checking dependency style of $depcc... " >&6; } 4635if test ${am_cv_CC_dependencies_compiler_type+y} 4636then : 4637 printf %s "(cached) " >&6 4638else $as_nop 4639 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4640 # We make a subdir and do the tests there. Otherwise we can end up 4641 # making bogus files that we don't know about and never remove. For 4642 # instance it was reported that on HP-UX the gcc test will end up 4643 # making a dummy file named 'D' -- because '-MD' means "put the output 4644 # in D". 4645 rm -rf conftest.dir 4646 mkdir conftest.dir 4647 # Copy depcomp to subdir because otherwise we won't find it if we're 4648 # using a relative directory. 4649 cp "$am_depcomp" conftest.dir 4650 cd conftest.dir 4651 # We will build objects and dependencies in a subdirectory because 4652 # it helps to detect inapplicable dependency modes. For instance 4653 # both Tru64's cc and ICC support -MD to output dependencies as a 4654 # side effect of compilation, but ICC will put the dependencies in 4655 # the current directory while Tru64 will put them in the object 4656 # directory. 4657 mkdir sub 4658 4659 am_cv_CC_dependencies_compiler_type=none 4660 if test "$am_compiler_list" = ""; then 4661 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4662 fi 4663 am__universal=false 4664 case " $depcc " in #( 4665 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4666 esac 4667 4668 for depmode in $am_compiler_list; do 4669 # Setup a source with many dependencies, because some compilers 4670 # like to wrap large dependency lists on column 80 (with \), and 4671 # we should not choose a depcomp mode which is confused by this. 4672 # 4673 # We need to recreate these files for each test, as the compiler may 4674 # overwrite some of them when testing with obscure command lines. 4675 # This happens at least with the AIX C compiler. 4676 : > sub/conftest.c 4677 for i in 1 2 3 4 5 6; do 4678 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4679 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4680 # Solaris 10 /bin/sh. 4681 echo '/* dummy */' > sub/conftst$i.h 4682 done 4683 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4684 4685 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4686 # mode. It turns out that the SunPro C++ compiler does not properly 4687 # handle '-M -o', and we need to detect this. Also, some Intel 4688 # versions had trouble with output in subdirs. 4689 am__obj=sub/conftest.${OBJEXT-o} 4690 am__minus_obj="-o $am__obj" 4691 case $depmode in 4692 gcc) 4693 # This depmode causes a compiler race in universal mode. 4694 test "$am__universal" = false || continue 4695 ;; 4696 nosideeffect) 4697 # After this tag, mechanisms are not by side-effect, so they'll 4698 # only be used when explicitly requested. 4699 if test "x$enable_dependency_tracking" = xyes; then 4700 continue 4701 else 4702 break 4703 fi 4704 ;; 4705 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4706 # This compiler won't grok '-c -o', but also, the minuso test has 4707 # not run yet. These depmodes are late enough in the game, and 4708 # so weak that their functioning should not be impacted. 4709 am__obj=conftest.${OBJEXT-o} 4710 am__minus_obj= 4711 ;; 4712 none) break ;; 4713 esac 4714 if depmode=$depmode \ 4715 source=sub/conftest.c object=$am__obj \ 4716 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4717 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4718 >/dev/null 2>conftest.err && 4719 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4720 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4721 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4722 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4723 # icc doesn't choke on unknown options, it will just issue warnings 4724 # or remarks (even with -Werror). So we grep stderr for any message 4725 # that says an option was ignored or not supported. 4726 # When given -MP, icc 7.0 and 7.1 complain thusly: 4727 # icc: Command line warning: ignoring option '-M'; no argument required 4728 # The diagnosis changed in icc 8.0: 4729 # icc: Command line remark: option '-MP' not supported 4730 if (grep 'ignoring option' conftest.err || 4731 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4732 am_cv_CC_dependencies_compiler_type=$depmode 4733 break 4734 fi 4735 fi 4736 done 4737 4738 cd .. 4739 rm -rf conftest.dir 4740else 4741 am_cv_CC_dependencies_compiler_type=none 4742fi 4743 4744fi 4745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4746printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4747CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4748 4749 if 4750 test "x$enable_dependency_tracking" != xno \ 4751 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4752 am__fastdepCC_TRUE= 4753 am__fastdepCC_FALSE='#' 4754else 4755 am__fastdepCC_TRUE='#' 4756 am__fastdepCC_FALSE= 4757fi 4758 4759 4760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4761printf %s "checking for a sed that does not truncate output... " >&6; } 4762if test ${ac_cv_path_SED+y} 4763then : 4764 printf %s "(cached) " >&6 4765else $as_nop 4766 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4767 for ac_i in 1 2 3 4 5 6 7; do 4768 ac_script="$ac_script$as_nl$ac_script" 4769 done 4770 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4771 { ac_script=; unset ac_script;} 4772 if test -z "$SED"; then 4773 ac_path_SED_found=false 4774 # Loop through the user's path and test for each of PROGNAME-LIST 4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4776for as_dir in $PATH 4777do 4778 IFS=$as_save_IFS 4779 case $as_dir in #((( 4780 '') as_dir=./ ;; 4781 */) ;; 4782 *) as_dir=$as_dir/ ;; 4783 esac 4784 for ac_prog in sed gsed 4785 do 4786 for ac_exec_ext in '' $ac_executable_extensions; do 4787 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4788 as_fn_executable_p "$ac_path_SED" || continue 4789# Check for GNU ac_path_SED and select it if it is found. 4790 # Check for GNU $ac_path_SED 4791case `"$ac_path_SED" --version 2>&1` in 4792*GNU*) 4793 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4794*) 4795 ac_count=0 4796 printf %s 0123456789 >"conftest.in" 4797 while : 4798 do 4799 cat "conftest.in" "conftest.in" >"conftest.tmp" 4800 mv "conftest.tmp" "conftest.in" 4801 cp "conftest.in" "conftest.nl" 4802 printf "%s\n" '' >> "conftest.nl" 4803 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4804 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4805 as_fn_arith $ac_count + 1 && ac_count=$as_val 4806 if test $ac_count -gt ${ac_path_SED_max-0}; then 4807 # Best one so far, save it but keep looking for a better one 4808 ac_cv_path_SED="$ac_path_SED" 4809 ac_path_SED_max=$ac_count 4810 fi 4811 # 10*(2^10) chars as input seems more than enough 4812 test $ac_count -gt 10 && break 4813 done 4814 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4815esac 4816 4817 $ac_path_SED_found && break 3 4818 done 4819 done 4820 done 4821IFS=$as_save_IFS 4822 if test -z "$ac_cv_path_SED"; then 4823 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4824 fi 4825else 4826 ac_cv_path_SED=$SED 4827fi 4828 4829fi 4830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4831printf "%s\n" "$ac_cv_path_SED" >&6; } 4832 SED="$ac_cv_path_SED" 4833 rm -f conftest.sed 4834 4835test -z "$SED" && SED=sed 4836Xsed="$SED -e 1s/^X//" 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4849printf %s "checking for grep that handles long lines and -e... " >&6; } 4850if test ${ac_cv_path_GREP+y} 4851then : 4852 printf %s "(cached) " >&6 4853else $as_nop 4854 if test -z "$GREP"; then 4855 ac_path_GREP_found=false 4856 # Loop through the user's path and test for each of PROGNAME-LIST 4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4858for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4859do 4860 IFS=$as_save_IFS 4861 case $as_dir in #((( 4862 '') as_dir=./ ;; 4863 */) ;; 4864 *) as_dir=$as_dir/ ;; 4865 esac 4866 for ac_prog in grep ggrep 4867 do 4868 for ac_exec_ext in '' $ac_executable_extensions; do 4869 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4870 as_fn_executable_p "$ac_path_GREP" || continue 4871# Check for GNU ac_path_GREP and select it if it is found. 4872 # Check for GNU $ac_path_GREP 4873case `"$ac_path_GREP" --version 2>&1` in 4874*GNU*) 4875 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4876*) 4877 ac_count=0 4878 printf %s 0123456789 >"conftest.in" 4879 while : 4880 do 4881 cat "conftest.in" "conftest.in" >"conftest.tmp" 4882 mv "conftest.tmp" "conftest.in" 4883 cp "conftest.in" "conftest.nl" 4884 printf "%s\n" 'GREP' >> "conftest.nl" 4885 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4886 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4887 as_fn_arith $ac_count + 1 && ac_count=$as_val 4888 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4889 # Best one so far, save it but keep looking for a better one 4890 ac_cv_path_GREP="$ac_path_GREP" 4891 ac_path_GREP_max=$ac_count 4892 fi 4893 # 10*(2^10) chars as input seems more than enough 4894 test $ac_count -gt 10 && break 4895 done 4896 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4897esac 4898 4899 $ac_path_GREP_found && break 3 4900 done 4901 done 4902 done 4903IFS=$as_save_IFS 4904 if test -z "$ac_cv_path_GREP"; then 4905 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4906 fi 4907else 4908 ac_cv_path_GREP=$GREP 4909fi 4910 4911fi 4912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4913printf "%s\n" "$ac_cv_path_GREP" >&6; } 4914 GREP="$ac_cv_path_GREP" 4915 4916 4917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4918printf %s "checking for egrep... " >&6; } 4919if test ${ac_cv_path_EGREP+y} 4920then : 4921 printf %s "(cached) " >&6 4922else $as_nop 4923 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4924 then ac_cv_path_EGREP="$GREP -E" 4925 else 4926 if test -z "$EGREP"; then 4927 ac_path_EGREP_found=false 4928 # Loop through the user's path and test for each of PROGNAME-LIST 4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4930for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4931do 4932 IFS=$as_save_IFS 4933 case $as_dir in #((( 4934 '') as_dir=./ ;; 4935 */) ;; 4936 *) as_dir=$as_dir/ ;; 4937 esac 4938 for ac_prog in egrep 4939 do 4940 for ac_exec_ext in '' $ac_executable_extensions; do 4941 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 4942 as_fn_executable_p "$ac_path_EGREP" || continue 4943# Check for GNU ac_path_EGREP and select it if it is found. 4944 # Check for GNU $ac_path_EGREP 4945case `"$ac_path_EGREP" --version 2>&1` in 4946*GNU*) 4947 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4948*) 4949 ac_count=0 4950 printf %s 0123456789 >"conftest.in" 4951 while : 4952 do 4953 cat "conftest.in" "conftest.in" >"conftest.tmp" 4954 mv "conftest.tmp" "conftest.in" 4955 cp "conftest.in" "conftest.nl" 4956 printf "%s\n" 'EGREP' >> "conftest.nl" 4957 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4959 as_fn_arith $ac_count + 1 && ac_count=$as_val 4960 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4961 # Best one so far, save it but keep looking for a better one 4962 ac_cv_path_EGREP="$ac_path_EGREP" 4963 ac_path_EGREP_max=$ac_count 4964 fi 4965 # 10*(2^10) chars as input seems more than enough 4966 test $ac_count -gt 10 && break 4967 done 4968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4969esac 4970 4971 $ac_path_EGREP_found && break 3 4972 done 4973 done 4974 done 4975IFS=$as_save_IFS 4976 if test -z "$ac_cv_path_EGREP"; then 4977 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4978 fi 4979else 4980 ac_cv_path_EGREP=$EGREP 4981fi 4982 4983 fi 4984fi 4985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4986printf "%s\n" "$ac_cv_path_EGREP" >&6; } 4987 EGREP="$ac_cv_path_EGREP" 4988 4989 4990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4991printf %s "checking for fgrep... " >&6; } 4992if test ${ac_cv_path_FGREP+y} 4993then : 4994 printf %s "(cached) " >&6 4995else $as_nop 4996 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4997 then ac_cv_path_FGREP="$GREP -F" 4998 else 4999 if test -z "$FGREP"; then 5000 ac_path_FGREP_found=false 5001 # Loop through the user's path and test for each of PROGNAME-LIST 5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5003for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5004do 5005 IFS=$as_save_IFS 5006 case $as_dir in #((( 5007 '') as_dir=./ ;; 5008 */) ;; 5009 *) as_dir=$as_dir/ ;; 5010 esac 5011 for ac_prog in fgrep 5012 do 5013 for ac_exec_ext in '' $ac_executable_extensions; do 5014 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5015 as_fn_executable_p "$ac_path_FGREP" || continue 5016# Check for GNU ac_path_FGREP and select it if it is found. 5017 # Check for GNU $ac_path_FGREP 5018case `"$ac_path_FGREP" --version 2>&1` in 5019*GNU*) 5020 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5021*) 5022 ac_count=0 5023 printf %s 0123456789 >"conftest.in" 5024 while : 5025 do 5026 cat "conftest.in" "conftest.in" >"conftest.tmp" 5027 mv "conftest.tmp" "conftest.in" 5028 cp "conftest.in" "conftest.nl" 5029 printf "%s\n" 'FGREP' >> "conftest.nl" 5030 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5031 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5032 as_fn_arith $ac_count + 1 && ac_count=$as_val 5033 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5034 # Best one so far, save it but keep looking for a better one 5035 ac_cv_path_FGREP="$ac_path_FGREP" 5036 ac_path_FGREP_max=$ac_count 5037 fi 5038 # 10*(2^10) chars as input seems more than enough 5039 test $ac_count -gt 10 && break 5040 done 5041 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5042esac 5043 5044 $ac_path_FGREP_found && break 3 5045 done 5046 done 5047 done 5048IFS=$as_save_IFS 5049 if test -z "$ac_cv_path_FGREP"; then 5050 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5051 fi 5052else 5053 ac_cv_path_FGREP=$FGREP 5054fi 5055 5056 fi 5057fi 5058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5059printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5060 FGREP="$ac_cv_path_FGREP" 5061 5062 5063test -z "$GREP" && GREP=grep 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083# Check whether --with-gnu-ld was given. 5084if test ${with_gnu_ld+y} 5085then : 5086 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5087else $as_nop 5088 with_gnu_ld=no 5089fi 5090 5091ac_prog=ld 5092if test yes = "$GCC"; then 5093 # Check if gcc -print-prog-name=ld gives a path. 5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5095printf %s "checking for ld used by $CC... " >&6; } 5096 case $host in 5097 *-*-mingw*) 5098 # gcc leaves a trailing carriage return, which upsets mingw 5099 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5100 *) 5101 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5102 esac 5103 case $ac_prog in 5104 # Accept absolute paths. 5105 [\\/]* | ?:[\\/]*) 5106 re_direlt='/[^/][^/]*/\.\./' 5107 # Canonicalize the pathname of ld 5108 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5109 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5110 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5111 done 5112 test -z "$LD" && LD=$ac_prog 5113 ;; 5114 "") 5115 # If it fails, then pretend we aren't using GCC. 5116 ac_prog=ld 5117 ;; 5118 *) 5119 # If it is relative, then search for the first ld in PATH. 5120 with_gnu_ld=unknown 5121 ;; 5122 esac 5123elif test yes = "$with_gnu_ld"; then 5124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5125printf %s "checking for GNU ld... " >&6; } 5126else 5127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5128printf %s "checking for non-GNU ld... " >&6; } 5129fi 5130if test ${lt_cv_path_LD+y} 5131then : 5132 printf %s "(cached) " >&6 5133else $as_nop 5134 if test -z "$LD"; then 5135 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5136 for ac_dir in $PATH; do 5137 IFS=$lt_save_ifs 5138 test -z "$ac_dir" && ac_dir=. 5139 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5140 lt_cv_path_LD=$ac_dir/$ac_prog 5141 # Check to see if the program is GNU ld. I'd rather use --version, 5142 # but apparently some variants of GNU ld only accept -v. 5143 # Break only if it was the GNU/non-GNU ld that we prefer. 5144 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5145 *GNU* | *'with BFD'*) 5146 test no != "$with_gnu_ld" && break 5147 ;; 5148 *) 5149 test yes != "$with_gnu_ld" && break 5150 ;; 5151 esac 5152 fi 5153 done 5154 IFS=$lt_save_ifs 5155else 5156 lt_cv_path_LD=$LD # Let the user override the test with a path. 5157fi 5158fi 5159 5160LD=$lt_cv_path_LD 5161if test -n "$LD"; then 5162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5163printf "%s\n" "$LD" >&6; } 5164else 5165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5166printf "%s\n" "no" >&6; } 5167fi 5168test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5170printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5171if test ${lt_cv_prog_gnu_ld+y} 5172then : 5173 printf %s "(cached) " >&6 5174else $as_nop 5175 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5176case `$LD -v 2>&1 </dev/null` in 5177*GNU* | *'with BFD'*) 5178 lt_cv_prog_gnu_ld=yes 5179 ;; 5180*) 5181 lt_cv_prog_gnu_ld=no 5182 ;; 5183esac 5184fi 5185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5186printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5187with_gnu_ld=$lt_cv_prog_gnu_ld 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5198printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5199if test ${lt_cv_path_NM+y} 5200then : 5201 printf %s "(cached) " >&6 5202else $as_nop 5203 if test -n "$NM"; then 5204 # Let the user override the test. 5205 lt_cv_path_NM=$NM 5206else 5207 lt_nm_to_check=${ac_tool_prefix}nm 5208 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5209 lt_nm_to_check="$lt_nm_to_check nm" 5210 fi 5211 for lt_tmp_nm in $lt_nm_to_check; do 5212 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5213 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5214 IFS=$lt_save_ifs 5215 test -z "$ac_dir" && ac_dir=. 5216 tmp_nm=$ac_dir/$lt_tmp_nm 5217 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5218 # Check to see if the nm accepts a BSD-compat flag. 5219 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5220 # nm: unknown option "B" ignored 5221 # Tru64's nm complains that /dev/null is an invalid object file 5222 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5223 case $build_os in 5224 mingw*) lt_bad_file=conftest.nm/nofile ;; 5225 *) lt_bad_file=/dev/null ;; 5226 esac 5227 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5228 *$lt_bad_file* | *'Invalid file or object type'*) 5229 lt_cv_path_NM="$tmp_nm -B" 5230 break 2 5231 ;; 5232 *) 5233 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5234 */dev/null*) 5235 lt_cv_path_NM="$tmp_nm -p" 5236 break 2 5237 ;; 5238 *) 5239 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5240 continue # so that we can try to find one that supports BSD flags 5241 ;; 5242 esac 5243 ;; 5244 esac 5245 fi 5246 done 5247 IFS=$lt_save_ifs 5248 done 5249 : ${lt_cv_path_NM=no} 5250fi 5251fi 5252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5253printf "%s\n" "$lt_cv_path_NM" >&6; } 5254if test no != "$lt_cv_path_NM"; then 5255 NM=$lt_cv_path_NM 5256else 5257 # Didn't find any BSD compatible name lister, look for dumpbin. 5258 if test -n "$DUMPBIN"; then : 5259 # Let the user override the test. 5260 else 5261 if test -n "$ac_tool_prefix"; then 5262 for ac_prog in dumpbin "link -dump" 5263 do 5264 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5265set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5267printf %s "checking for $ac_word... " >&6; } 5268if test ${ac_cv_prog_DUMPBIN+y} 5269then : 5270 printf %s "(cached) " >&6 5271else $as_nop 5272 if test -n "$DUMPBIN"; then 5273 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5274else 5275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5276for as_dir in $PATH 5277do 5278 IFS=$as_save_IFS 5279 case $as_dir in #((( 5280 '') as_dir=./ ;; 5281 */) ;; 5282 *) as_dir=$as_dir/ ;; 5283 esac 5284 for ac_exec_ext in '' $ac_executable_extensions; do 5285 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5286 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5288 break 2 5289 fi 5290done 5291 done 5292IFS=$as_save_IFS 5293 5294fi 5295fi 5296DUMPBIN=$ac_cv_prog_DUMPBIN 5297if test -n "$DUMPBIN"; then 5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5299printf "%s\n" "$DUMPBIN" >&6; } 5300else 5301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5302printf "%s\n" "no" >&6; } 5303fi 5304 5305 5306 test -n "$DUMPBIN" && break 5307 done 5308fi 5309if test -z "$DUMPBIN"; then 5310 ac_ct_DUMPBIN=$DUMPBIN 5311 for ac_prog in dumpbin "link -dump" 5312do 5313 # Extract the first word of "$ac_prog", so it can be a program name with args. 5314set dummy $ac_prog; ac_word=$2 5315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5316printf %s "checking for $ac_word... " >&6; } 5317if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5318then : 5319 printf %s "(cached) " >&6 5320else $as_nop 5321 if test -n "$ac_ct_DUMPBIN"; then 5322 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5323else 5324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5325for as_dir in $PATH 5326do 5327 IFS=$as_save_IFS 5328 case $as_dir in #((( 5329 '') as_dir=./ ;; 5330 */) ;; 5331 *) as_dir=$as_dir/ ;; 5332 esac 5333 for ac_exec_ext in '' $ac_executable_extensions; do 5334 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5335 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5337 break 2 5338 fi 5339done 5340 done 5341IFS=$as_save_IFS 5342 5343fi 5344fi 5345ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5346if test -n "$ac_ct_DUMPBIN"; then 5347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5348printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5349else 5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5351printf "%s\n" "no" >&6; } 5352fi 5353 5354 5355 test -n "$ac_ct_DUMPBIN" && break 5356done 5357 5358 if test "x$ac_ct_DUMPBIN" = x; then 5359 DUMPBIN=":" 5360 else 5361 case $cross_compiling:$ac_tool_warned in 5362yes:) 5363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5364printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5365ac_tool_warned=yes ;; 5366esac 5367 DUMPBIN=$ac_ct_DUMPBIN 5368 fi 5369fi 5370 5371 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5372 *COFF*) 5373 DUMPBIN="$DUMPBIN -symbols -headers" 5374 ;; 5375 *) 5376 DUMPBIN=: 5377 ;; 5378 esac 5379 fi 5380 5381 if test : != "$DUMPBIN"; then 5382 NM=$DUMPBIN 5383 fi 5384fi 5385test -z "$NM" && NM=nm 5386 5387 5388 5389 5390 5391 5392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5393printf %s "checking the name lister ($NM) interface... " >&6; } 5394if test ${lt_cv_nm_interface+y} 5395then : 5396 printf %s "(cached) " >&6 5397else $as_nop 5398 lt_cv_nm_interface="BSD nm" 5399 echo "int some_variable = 0;" > conftest.$ac_ext 5400 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5401 (eval "$ac_compile" 2>conftest.err) 5402 cat conftest.err >&5 5403 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5404 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5405 cat conftest.err >&5 5406 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5407 cat conftest.out >&5 5408 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5409 lt_cv_nm_interface="MS dumpbin" 5410 fi 5411 rm -f conftest* 5412fi 5413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5414printf "%s\n" "$lt_cv_nm_interface" >&6; } 5415 5416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5417printf %s "checking whether ln -s works... " >&6; } 5418LN_S=$as_ln_s 5419if test "$LN_S" = "ln -s"; then 5420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5421printf "%s\n" "yes" >&6; } 5422else 5423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5424printf "%s\n" "no, using $LN_S" >&6; } 5425fi 5426 5427# find the maximum length of command line arguments 5428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5429printf %s "checking the maximum length of command line arguments... " >&6; } 5430if test ${lt_cv_sys_max_cmd_len+y} 5431then : 5432 printf %s "(cached) " >&6 5433else $as_nop 5434 i=0 5435 teststring=ABCD 5436 5437 case $build_os in 5438 msdosdjgpp*) 5439 # On DJGPP, this test can blow up pretty badly due to problems in libc 5440 # (any single argument exceeding 2000 bytes causes a buffer overrun 5441 # during glob expansion). Even if it were fixed, the result of this 5442 # check would be larger than it should be. 5443 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5444 ;; 5445 5446 gnu*) 5447 # Under GNU Hurd, this test is not required because there is 5448 # no limit to the length of command line arguments. 5449 # Libtool will interpret -1 as no limit whatsoever 5450 lt_cv_sys_max_cmd_len=-1; 5451 ;; 5452 5453 cygwin* | mingw* | cegcc*) 5454 # On Win9x/ME, this test blows up -- it succeeds, but takes 5455 # about 5 minutes as the teststring grows exponentially. 5456 # Worse, since 9x/ME are not pre-emptively multitasking, 5457 # you end up with a "frozen" computer, even though with patience 5458 # the test eventually succeeds (with a max line length of 256k). 5459 # Instead, let's just punt: use the minimum linelength reported by 5460 # all of the supported platforms: 8192 (on NT/2K/XP). 5461 lt_cv_sys_max_cmd_len=8192; 5462 ;; 5463 5464 mint*) 5465 # On MiNT this can take a long time and run out of memory. 5466 lt_cv_sys_max_cmd_len=8192; 5467 ;; 5468 5469 amigaos*) 5470 # On AmigaOS with pdksh, this test takes hours, literally. 5471 # So we just punt and use a minimum line length of 8192. 5472 lt_cv_sys_max_cmd_len=8192; 5473 ;; 5474 5475 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5476 # This has been around since 386BSD, at least. Likely further. 5477 if test -x /sbin/sysctl; then 5478 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5479 elif test -x /usr/sbin/sysctl; then 5480 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5481 else 5482 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5483 fi 5484 # And add a safety zone 5485 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5486 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5487 ;; 5488 5489 interix*) 5490 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5491 lt_cv_sys_max_cmd_len=196608 5492 ;; 5493 5494 os2*) 5495 # The test takes a long time on OS/2. 5496 lt_cv_sys_max_cmd_len=8192 5497 ;; 5498 5499 osf*) 5500 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5501 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5502 # nice to cause kernel panics so lets avoid the loop below. 5503 # First set a reasonable default. 5504 lt_cv_sys_max_cmd_len=16384 5505 # 5506 if test -x /sbin/sysconfig; then 5507 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5508 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5509 esac 5510 fi 5511 ;; 5512 sco3.2v5*) 5513 lt_cv_sys_max_cmd_len=102400 5514 ;; 5515 sysv5* | sco5v6* | sysv4.2uw2*) 5516 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5517 if test -n "$kargmax"; then 5518 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5519 else 5520 lt_cv_sys_max_cmd_len=32768 5521 fi 5522 ;; 5523 *) 5524 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5525 if test -n "$lt_cv_sys_max_cmd_len" && \ 5526 test undefined != "$lt_cv_sys_max_cmd_len"; then 5527 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5528 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5529 else 5530 # Make teststring a little bigger before we do anything with it. 5531 # a 1K string should be a reasonable start. 5532 for i in 1 2 3 4 5 6 7 8; do 5533 teststring=$teststring$teststring 5534 done 5535 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5536 # If test is not a shell built-in, we'll probably end up computing a 5537 # maximum length that is only half of the actual maximum length, but 5538 # we can't tell. 5539 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5540 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5541 test 17 != "$i" # 1/2 MB should be enough 5542 do 5543 i=`expr $i + 1` 5544 teststring=$teststring$teststring 5545 done 5546 # Only check the string length outside the loop. 5547 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5548 teststring= 5549 # Add a significant safety factor because C++ compilers can tack on 5550 # massive amounts of additional arguments before passing them to the 5551 # linker. It appears as though 1/2 is a usable value. 5552 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5553 fi 5554 ;; 5555 esac 5556 5557fi 5558 5559if test -n "$lt_cv_sys_max_cmd_len"; then 5560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5561printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5562else 5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5564printf "%s\n" "none" >&6; } 5565fi 5566max_cmd_len=$lt_cv_sys_max_cmd_len 5567 5568 5569 5570 5571 5572 5573: ${CP="cp -f"} 5574: ${MV="mv -f"} 5575: ${RM="rm -f"} 5576 5577if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5578 lt_unset=unset 5579else 5580 lt_unset=false 5581fi 5582 5583 5584 5585 5586 5587# test EBCDIC or ASCII 5588case `echo X|tr X '\101'` in 5589 A) # ASCII based system 5590 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5591 lt_SP2NL='tr \040 \012' 5592 lt_NL2SP='tr \015\012 \040\040' 5593 ;; 5594 *) # EBCDIC based system 5595 lt_SP2NL='tr \100 \n' 5596 lt_NL2SP='tr \r\n \100\100' 5597 ;; 5598esac 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5609printf %s "checking how to convert $build file names to $host format... " >&6; } 5610if test ${lt_cv_to_host_file_cmd+y} 5611then : 5612 printf %s "(cached) " >&6 5613else $as_nop 5614 case $host in 5615 *-*-mingw* ) 5616 case $build in 5617 *-*-mingw* ) # actually msys 5618 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5619 ;; 5620 *-*-cygwin* ) 5621 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5622 ;; 5623 * ) # otherwise, assume *nix 5624 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5625 ;; 5626 esac 5627 ;; 5628 *-*-cygwin* ) 5629 case $build in 5630 *-*-mingw* ) # actually msys 5631 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5632 ;; 5633 *-*-cygwin* ) 5634 lt_cv_to_host_file_cmd=func_convert_file_noop 5635 ;; 5636 * ) # otherwise, assume *nix 5637 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5638 ;; 5639 esac 5640 ;; 5641 * ) # unhandled hosts (and "normal" native builds) 5642 lt_cv_to_host_file_cmd=func_convert_file_noop 5643 ;; 5644esac 5645 5646fi 5647 5648to_host_file_cmd=$lt_cv_to_host_file_cmd 5649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5650printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5651 5652 5653 5654 5655 5656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5657printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5658if test ${lt_cv_to_tool_file_cmd+y} 5659then : 5660 printf %s "(cached) " >&6 5661else $as_nop 5662 #assume ordinary cross tools, or native build. 5663lt_cv_to_tool_file_cmd=func_convert_file_noop 5664case $host in 5665 *-*-mingw* ) 5666 case $build in 5667 *-*-mingw* ) # actually msys 5668 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5669 ;; 5670 esac 5671 ;; 5672esac 5673 5674fi 5675 5676to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5678printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5679 5680 5681 5682 5683 5684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5685printf %s "checking for $LD option to reload object files... " >&6; } 5686if test ${lt_cv_ld_reload_flag+y} 5687then : 5688 printf %s "(cached) " >&6 5689else $as_nop 5690 lt_cv_ld_reload_flag='-r' 5691fi 5692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5693printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5694reload_flag=$lt_cv_ld_reload_flag 5695case $reload_flag in 5696"" | " "*) ;; 5697*) reload_flag=" $reload_flag" ;; 5698esac 5699reload_cmds='$LD$reload_flag -o $output$reload_objs' 5700case $host_os in 5701 cygwin* | mingw* | pw32* | cegcc*) 5702 if test yes != "$GCC"; then 5703 reload_cmds=false 5704 fi 5705 ;; 5706 darwin*) 5707 if test yes = "$GCC"; then 5708 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5709 else 5710 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5711 fi 5712 ;; 5713esac 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723if test -n "$ac_tool_prefix"; then 5724 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5725set dummy ${ac_tool_prefix}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_FILECMD+y} 5729then : 5730 printf %s "(cached) " >&6 5731else $as_nop 5732 if test -n "$FILECMD"; then 5733 ac_cv_prog_FILECMD="$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_FILECMD="${ac_tool_prefix}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 5756FILECMD=$ac_cv_prog_FILECMD 5757if test -n "$FILECMD"; then 5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5759printf "%s\n" "$FILECMD" >&6; } 5760else 5761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5762printf "%s\n" "no" >&6; } 5763fi 5764 5765 5766fi 5767if test -z "$ac_cv_prog_FILECMD"; then 5768 ac_ct_FILECMD=$FILECMD 5769 # Extract the first word of "file", so it can be a program name with args. 5770set dummy file; ac_word=$2 5771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5772printf %s "checking for $ac_word... " >&6; } 5773if test ${ac_cv_prog_ac_ct_FILECMD+y} 5774then : 5775 printf %s "(cached) " >&6 5776else $as_nop 5777 if test -n "$ac_ct_FILECMD"; then 5778 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 5779else 5780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5781for as_dir in $PATH 5782do 5783 IFS=$as_save_IFS 5784 case $as_dir in #((( 5785 '') as_dir=./ ;; 5786 */) ;; 5787 *) as_dir=$as_dir/ ;; 5788 esac 5789 for ac_exec_ext in '' $ac_executable_extensions; do 5790 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5791 ac_cv_prog_ac_ct_FILECMD="file" 5792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5793 break 2 5794 fi 5795done 5796 done 5797IFS=$as_save_IFS 5798 5799fi 5800fi 5801ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 5802if test -n "$ac_ct_FILECMD"; then 5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 5804printf "%s\n" "$ac_ct_FILECMD" >&6; } 5805else 5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5807printf "%s\n" "no" >&6; } 5808fi 5809 5810 if test "x$ac_ct_FILECMD" = x; then 5811 FILECMD=":" 5812 else 5813 case $cross_compiling:$ac_tool_warned in 5814yes:) 5815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5816printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5817ac_tool_warned=yes ;; 5818esac 5819 FILECMD=$ac_ct_FILECMD 5820 fi 5821else 5822 FILECMD="$ac_cv_prog_FILECMD" 5823fi 5824 5825 5826 5827 5828 5829 5830 5831if test -n "$ac_tool_prefix"; then 5832 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5833set dummy ${ac_tool_prefix}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_OBJDUMP+y} 5837then : 5838 printf %s "(cached) " >&6 5839else $as_nop 5840 if test -n "$OBJDUMP"; then 5841 ac_cv_prog_OBJDUMP="$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_OBJDUMP="${ac_tool_prefix}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 5864OBJDUMP=$ac_cv_prog_OBJDUMP 5865if test -n "$OBJDUMP"; then 5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5867printf "%s\n" "$OBJDUMP" >&6; } 5868else 5869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5870printf "%s\n" "no" >&6; } 5871fi 5872 5873 5874fi 5875if test -z "$ac_cv_prog_OBJDUMP"; then 5876 ac_ct_OBJDUMP=$OBJDUMP 5877 # Extract the first word of "objdump", so it can be a program name with args. 5878set dummy objdump; ac_word=$2 5879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5880printf %s "checking for $ac_word... " >&6; } 5881if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5882then : 5883 printf %s "(cached) " >&6 5884else $as_nop 5885 if test -n "$ac_ct_OBJDUMP"; then 5886 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5887else 5888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5889for as_dir in $PATH 5890do 5891 IFS=$as_save_IFS 5892 case $as_dir in #((( 5893 '') as_dir=./ ;; 5894 */) ;; 5895 *) as_dir=$as_dir/ ;; 5896 esac 5897 for ac_exec_ext in '' $ac_executable_extensions; do 5898 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5899 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5901 break 2 5902 fi 5903done 5904 done 5905IFS=$as_save_IFS 5906 5907fi 5908fi 5909ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5910if test -n "$ac_ct_OBJDUMP"; then 5911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5912printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5913else 5914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5915printf "%s\n" "no" >&6; } 5916fi 5917 5918 if test "x$ac_ct_OBJDUMP" = x; then 5919 OBJDUMP="false" 5920 else 5921 case $cross_compiling:$ac_tool_warned in 5922yes:) 5923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5924printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5925ac_tool_warned=yes ;; 5926esac 5927 OBJDUMP=$ac_ct_OBJDUMP 5928 fi 5929else 5930 OBJDUMP="$ac_cv_prog_OBJDUMP" 5931fi 5932 5933test -z "$OBJDUMP" && OBJDUMP=objdump 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5944printf %s "checking how to recognize dependent libraries... " >&6; } 5945if test ${lt_cv_deplibs_check_method+y} 5946then : 5947 printf %s "(cached) " >&6 5948else $as_nop 5949 lt_cv_file_magic_cmd='$MAGIC_CMD' 5950lt_cv_file_magic_test_file= 5951lt_cv_deplibs_check_method='unknown' 5952# Need to set the preceding variable on all platforms that support 5953# interlibrary dependencies. 5954# 'none' -- dependencies not supported. 5955# 'unknown' -- same as none, but documents that we really don't know. 5956# 'pass_all' -- all dependencies passed with no checks. 5957# 'test_compile' -- check by making test program. 5958# 'file_magic [[regex]]' -- check by looking for files in library path 5959# that responds to the $file_magic_cmd with a given extended regex. 5960# If you have 'file' or equivalent on your system and you're not sure 5961# whether 'pass_all' will *always* work, you probably want this one. 5962 5963case $host_os in 5964aix[4-9]*) 5965 lt_cv_deplibs_check_method=pass_all 5966 ;; 5967 5968beos*) 5969 lt_cv_deplibs_check_method=pass_all 5970 ;; 5971 5972bsdi[45]*) 5973 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5974 lt_cv_file_magic_cmd='$FILECMD -L' 5975 lt_cv_file_magic_test_file=/shlib/libc.so 5976 ;; 5977 5978cygwin*) 5979 # func_win32_libid is a shell function defined in ltmain.sh 5980 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5981 lt_cv_file_magic_cmd='func_win32_libid' 5982 ;; 5983 5984mingw* | pw32*) 5985 # Base MSYS/MinGW do not provide the 'file' command needed by 5986 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5987 # unless we find 'file', for example because we are cross-compiling. 5988 if ( file / ) >/dev/null 2>&1; then 5989 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5990 lt_cv_file_magic_cmd='func_win32_libid' 5991 else 5992 # Keep this pattern in sync with the one in func_win32_libid. 5993 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5994 lt_cv_file_magic_cmd='$OBJDUMP -f' 5995 fi 5996 ;; 5997 5998cegcc*) 5999 # use the weaker test based on 'objdump'. See mingw*. 6000 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6001 lt_cv_file_magic_cmd='$OBJDUMP -f' 6002 ;; 6003 6004darwin* | rhapsody*) 6005 lt_cv_deplibs_check_method=pass_all 6006 ;; 6007 6008freebsd* | dragonfly* | midnightbsd*) 6009 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6010 case $host_cpu in 6011 i*86 ) 6012 # Not sure whether the presence of OpenBSD here was a mistake. 6013 # Let's accept both of them until this is cleared up. 6014 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6015 lt_cv_file_magic_cmd=$FILECMD 6016 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6017 ;; 6018 esac 6019 else 6020 lt_cv_deplibs_check_method=pass_all 6021 fi 6022 ;; 6023 6024haiku*) 6025 lt_cv_deplibs_check_method=pass_all 6026 ;; 6027 6028hpux10.20* | hpux11*) 6029 lt_cv_file_magic_cmd=$FILECMD 6030 case $host_cpu in 6031 ia64*) 6032 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6033 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6034 ;; 6035 hppa*64*) 6036 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]' 6037 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6038 ;; 6039 *) 6040 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6041 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6042 ;; 6043 esac 6044 ;; 6045 6046interix[3-9]*) 6047 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6048 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6049 ;; 6050 6051irix5* | irix6* | nonstopux*) 6052 case $LD in 6053 *-32|*"-32 ") libmagic=32-bit;; 6054 *-n32|*"-n32 ") libmagic=N32;; 6055 *-64|*"-64 ") libmagic=64-bit;; 6056 *) libmagic=never-match;; 6057 esac 6058 lt_cv_deplibs_check_method=pass_all 6059 ;; 6060 6061# This must be glibc/ELF. 6062linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6063 lt_cv_deplibs_check_method=pass_all 6064 ;; 6065 6066netbsd*) 6067 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6068 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6069 else 6070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6071 fi 6072 ;; 6073 6074newos6*) 6075 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6076 lt_cv_file_magic_cmd=$FILECMD 6077 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6078 ;; 6079 6080*nto* | *qnx*) 6081 lt_cv_deplibs_check_method=pass_all 6082 ;; 6083 6084openbsd* | bitrig*) 6085 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6086 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6087 else 6088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6089 fi 6090 ;; 6091 6092osf3* | osf4* | osf5*) 6093 lt_cv_deplibs_check_method=pass_all 6094 ;; 6095 6096rdos*) 6097 lt_cv_deplibs_check_method=pass_all 6098 ;; 6099 6100solaris*) 6101 lt_cv_deplibs_check_method=pass_all 6102 ;; 6103 6104sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6105 lt_cv_deplibs_check_method=pass_all 6106 ;; 6107 6108sysv4 | sysv4.3*) 6109 case $host_vendor in 6110 motorola) 6111 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]' 6112 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6113 ;; 6114 ncr) 6115 lt_cv_deplibs_check_method=pass_all 6116 ;; 6117 sequent) 6118 lt_cv_file_magic_cmd='/bin/file' 6119 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6120 ;; 6121 sni) 6122 lt_cv_file_magic_cmd='/bin/file' 6123 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6124 lt_cv_file_magic_test_file=/lib/libc.so 6125 ;; 6126 siemens) 6127 lt_cv_deplibs_check_method=pass_all 6128 ;; 6129 pc) 6130 lt_cv_deplibs_check_method=pass_all 6131 ;; 6132 esac 6133 ;; 6134 6135tpf*) 6136 lt_cv_deplibs_check_method=pass_all 6137 ;; 6138os2*) 6139 lt_cv_deplibs_check_method=pass_all 6140 ;; 6141esac 6142 6143fi 6144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6145printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6146 6147file_magic_glob= 6148want_nocaseglob=no 6149if test "$build" = "$host"; then 6150 case $host_os in 6151 mingw* | pw32*) 6152 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6153 want_nocaseglob=yes 6154 else 6155 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6156 fi 6157 ;; 6158 esac 6159fi 6160 6161file_magic_cmd=$lt_cv_file_magic_cmd 6162deplibs_check_method=$lt_cv_deplibs_check_method 6163test -z "$deplibs_check_method" && deplibs_check_method=unknown 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186if test -n "$ac_tool_prefix"; then 6187 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6188set dummy ${ac_tool_prefix}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_DLLTOOL+y} 6192then : 6193 printf %s "(cached) " >&6 6194else $as_nop 6195 if test -n "$DLLTOOL"; then 6196 ac_cv_prog_DLLTOOL="$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_DLLTOOL="${ac_tool_prefix}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 6219DLLTOOL=$ac_cv_prog_DLLTOOL 6220if test -n "$DLLTOOL"; then 6221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6222printf "%s\n" "$DLLTOOL" >&6; } 6223else 6224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6225printf "%s\n" "no" >&6; } 6226fi 6227 6228 6229fi 6230if test -z "$ac_cv_prog_DLLTOOL"; then 6231 ac_ct_DLLTOOL=$DLLTOOL 6232 # Extract the first word of "dlltool", so it can be a program name with args. 6233set dummy dlltool; ac_word=$2 6234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6235printf %s "checking for $ac_word... " >&6; } 6236if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6237then : 6238 printf %s "(cached) " >&6 6239else $as_nop 6240 if test -n "$ac_ct_DLLTOOL"; then 6241 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6242else 6243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6244for as_dir in $PATH 6245do 6246 IFS=$as_save_IFS 6247 case $as_dir in #((( 6248 '') as_dir=./ ;; 6249 */) ;; 6250 *) as_dir=$as_dir/ ;; 6251 esac 6252 for ac_exec_ext in '' $ac_executable_extensions; do 6253 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6254 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6256 break 2 6257 fi 6258done 6259 done 6260IFS=$as_save_IFS 6261 6262fi 6263fi 6264ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6265if test -n "$ac_ct_DLLTOOL"; then 6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6267printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6268else 6269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6270printf "%s\n" "no" >&6; } 6271fi 6272 6273 if test "x$ac_ct_DLLTOOL" = x; then 6274 DLLTOOL="false" 6275 else 6276 case $cross_compiling:$ac_tool_warned in 6277yes:) 6278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6279printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6280ac_tool_warned=yes ;; 6281esac 6282 DLLTOOL=$ac_ct_DLLTOOL 6283 fi 6284else 6285 DLLTOOL="$ac_cv_prog_DLLTOOL" 6286fi 6287 6288test -z "$DLLTOOL" && DLLTOOL=dlltool 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6300printf %s "checking how to associate runtime and link libraries... " >&6; } 6301if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6302then : 6303 printf %s "(cached) " >&6 6304else $as_nop 6305 lt_cv_sharedlib_from_linklib_cmd='unknown' 6306 6307case $host_os in 6308cygwin* | mingw* | pw32* | cegcc*) 6309 # two different shell functions defined in ltmain.sh; 6310 # decide which one to use based on capabilities of $DLLTOOL 6311 case `$DLLTOOL --help 2>&1` in 6312 *--identify-strict*) 6313 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6314 ;; 6315 *) 6316 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6317 ;; 6318 esac 6319 ;; 6320*) 6321 # fallback: assume linklib IS sharedlib 6322 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6323 ;; 6324esac 6325 6326fi 6327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6328printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6329sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6330test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6331 6332 6333 6334 6335 6336 6337 6338 6339if test -n "$ac_tool_prefix"; then 6340 for ac_prog in ar 6341 do 6342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6343set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6345printf %s "checking for $ac_word... " >&6; } 6346if test ${ac_cv_prog_AR+y} 6347then : 6348 printf %s "(cached) " >&6 6349else $as_nop 6350 if test -n "$AR"; then 6351 ac_cv_prog_AR="$AR" # Let the user override the test. 6352else 6353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6354for as_dir in $PATH 6355do 6356 IFS=$as_save_IFS 6357 case $as_dir in #((( 6358 '') as_dir=./ ;; 6359 */) ;; 6360 *) as_dir=$as_dir/ ;; 6361 esac 6362 for ac_exec_ext in '' $ac_executable_extensions; do 6363 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6364 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6366 break 2 6367 fi 6368done 6369 done 6370IFS=$as_save_IFS 6371 6372fi 6373fi 6374AR=$ac_cv_prog_AR 6375if test -n "$AR"; then 6376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6377printf "%s\n" "$AR" >&6; } 6378else 6379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6380printf "%s\n" "no" >&6; } 6381fi 6382 6383 6384 test -n "$AR" && break 6385 done 6386fi 6387if test -z "$AR"; then 6388 ac_ct_AR=$AR 6389 for ac_prog in ar 6390do 6391 # Extract the first word of "$ac_prog", so it can be a program name with args. 6392set dummy $ac_prog; ac_word=$2 6393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6394printf %s "checking for $ac_word... " >&6; } 6395if test ${ac_cv_prog_ac_ct_AR+y} 6396then : 6397 printf %s "(cached) " >&6 6398else $as_nop 6399 if test -n "$ac_ct_AR"; then 6400 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6401else 6402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6403for as_dir in $PATH 6404do 6405 IFS=$as_save_IFS 6406 case $as_dir in #((( 6407 '') as_dir=./ ;; 6408 */) ;; 6409 *) as_dir=$as_dir/ ;; 6410 esac 6411 for ac_exec_ext in '' $ac_executable_extensions; do 6412 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6413 ac_cv_prog_ac_ct_AR="$ac_prog" 6414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6415 break 2 6416 fi 6417done 6418 done 6419IFS=$as_save_IFS 6420 6421fi 6422fi 6423ac_ct_AR=$ac_cv_prog_ac_ct_AR 6424if test -n "$ac_ct_AR"; then 6425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6426printf "%s\n" "$ac_ct_AR" >&6; } 6427else 6428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6429printf "%s\n" "no" >&6; } 6430fi 6431 6432 6433 test -n "$ac_ct_AR" && break 6434done 6435 6436 if test "x$ac_ct_AR" = x; then 6437 AR="false" 6438 else 6439 case $cross_compiling:$ac_tool_warned in 6440yes:) 6441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6442printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6443ac_tool_warned=yes ;; 6444esac 6445 AR=$ac_ct_AR 6446 fi 6447fi 6448 6449: ${AR=ar} 6450 6451 6452 6453 6454 6455 6456# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6457# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6458# higher priority because thats what people were doing historically (setting 6459# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6460# variable obsoleted/removed. 6461 6462test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6463lt_ar_flags=$AR_FLAGS 6464 6465 6466 6467 6468 6469 6470# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6471# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6472 6473 6474 6475 6476 6477 6478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6479printf %s "checking for archiver @FILE support... " >&6; } 6480if test ${lt_cv_ar_at_file+y} 6481then : 6482 printf %s "(cached) " >&6 6483else $as_nop 6484 lt_cv_ar_at_file=no 6485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6486/* end confdefs.h. */ 6487 6488int 6489main (void) 6490{ 6491 6492 ; 6493 return 0; 6494} 6495_ACEOF 6496if ac_fn_c_try_compile "$LINENO" 6497then : 6498 echo conftest.$ac_objext > conftest.lst 6499 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6501 (eval $lt_ar_try) 2>&5 6502 ac_status=$? 6503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6504 test $ac_status = 0; } 6505 if test 0 -eq "$ac_status"; then 6506 # Ensure the archiver fails upon bogus file names. 6507 rm -f conftest.$ac_objext libconftest.a 6508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6509 (eval $lt_ar_try) 2>&5 6510 ac_status=$? 6511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6512 test $ac_status = 0; } 6513 if test 0 -ne "$ac_status"; then 6514 lt_cv_ar_at_file=@ 6515 fi 6516 fi 6517 rm -f conftest.* libconftest.a 6518 6519fi 6520rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6521 6522fi 6523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6524printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6525 6526if test no = "$lt_cv_ar_at_file"; then 6527 archiver_list_spec= 6528else 6529 archiver_list_spec=$lt_cv_ar_at_file 6530fi 6531 6532 6533 6534 6535 6536 6537 6538if test -n "$ac_tool_prefix"; then 6539 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6540set dummy ${ac_tool_prefix}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_STRIP+y} 6544then : 6545 printf %s "(cached) " >&6 6546else $as_nop 6547 if test -n "$STRIP"; then 6548 ac_cv_prog_STRIP="$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_STRIP="${ac_tool_prefix}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 6571STRIP=$ac_cv_prog_STRIP 6572if test -n "$STRIP"; then 6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6574printf "%s\n" "$STRIP" >&6; } 6575else 6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6577printf "%s\n" "no" >&6; } 6578fi 6579 6580 6581fi 6582if test -z "$ac_cv_prog_STRIP"; then 6583 ac_ct_STRIP=$STRIP 6584 # Extract the first word of "strip", so it can be a program name with args. 6585set dummy strip; ac_word=$2 6586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6587printf %s "checking for $ac_word... " >&6; } 6588if test ${ac_cv_prog_ac_ct_STRIP+y} 6589then : 6590 printf %s "(cached) " >&6 6591else $as_nop 6592 if test -n "$ac_ct_STRIP"; then 6593 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6594else 6595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6596for as_dir in $PATH 6597do 6598 IFS=$as_save_IFS 6599 case $as_dir in #((( 6600 '') as_dir=./ ;; 6601 */) ;; 6602 *) as_dir=$as_dir/ ;; 6603 esac 6604 for ac_exec_ext in '' $ac_executable_extensions; do 6605 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6606 ac_cv_prog_ac_ct_STRIP="strip" 6607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6608 break 2 6609 fi 6610done 6611 done 6612IFS=$as_save_IFS 6613 6614fi 6615fi 6616ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6617if test -n "$ac_ct_STRIP"; then 6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6619printf "%s\n" "$ac_ct_STRIP" >&6; } 6620else 6621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6622printf "%s\n" "no" >&6; } 6623fi 6624 6625 if test "x$ac_ct_STRIP" = x; then 6626 STRIP=":" 6627 else 6628 case $cross_compiling:$ac_tool_warned in 6629yes:) 6630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6631printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6632ac_tool_warned=yes ;; 6633esac 6634 STRIP=$ac_ct_STRIP 6635 fi 6636else 6637 STRIP="$ac_cv_prog_STRIP" 6638fi 6639 6640test -z "$STRIP" && STRIP=: 6641 6642 6643 6644 6645 6646 6647if test -n "$ac_tool_prefix"; then 6648 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6649set dummy ${ac_tool_prefix}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_RANLIB+y} 6653then : 6654 printf %s "(cached) " >&6 6655else $as_nop 6656 if test -n "$RANLIB"; then 6657 ac_cv_prog_RANLIB="$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_RANLIB="${ac_tool_prefix}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 6680RANLIB=$ac_cv_prog_RANLIB 6681if test -n "$RANLIB"; then 6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6683printf "%s\n" "$RANLIB" >&6; } 6684else 6685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6686printf "%s\n" "no" >&6; } 6687fi 6688 6689 6690fi 6691if test -z "$ac_cv_prog_RANLIB"; then 6692 ac_ct_RANLIB=$RANLIB 6693 # Extract the first word of "ranlib", so it can be a program name with args. 6694set dummy ranlib; ac_word=$2 6695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6696printf %s "checking for $ac_word... " >&6; } 6697if test ${ac_cv_prog_ac_ct_RANLIB+y} 6698then : 6699 printf %s "(cached) " >&6 6700else $as_nop 6701 if test -n "$ac_ct_RANLIB"; then 6702 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6703else 6704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6705for as_dir in $PATH 6706do 6707 IFS=$as_save_IFS 6708 case $as_dir in #((( 6709 '') as_dir=./ ;; 6710 */) ;; 6711 *) as_dir=$as_dir/ ;; 6712 esac 6713 for ac_exec_ext in '' $ac_executable_extensions; do 6714 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6715 ac_cv_prog_ac_ct_RANLIB="ranlib" 6716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6717 break 2 6718 fi 6719done 6720 done 6721IFS=$as_save_IFS 6722 6723fi 6724fi 6725ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6726if test -n "$ac_ct_RANLIB"; then 6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6728printf "%s\n" "$ac_ct_RANLIB" >&6; } 6729else 6730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6731printf "%s\n" "no" >&6; } 6732fi 6733 6734 if test "x$ac_ct_RANLIB" = x; then 6735 RANLIB=":" 6736 else 6737 case $cross_compiling:$ac_tool_warned in 6738yes:) 6739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6740printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6741ac_tool_warned=yes ;; 6742esac 6743 RANLIB=$ac_ct_RANLIB 6744 fi 6745else 6746 RANLIB="$ac_cv_prog_RANLIB" 6747fi 6748 6749test -z "$RANLIB" && RANLIB=: 6750 6751 6752 6753 6754 6755 6756# Determine commands to create old-style static archives. 6757old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6758old_postinstall_cmds='chmod 644 $oldlib' 6759old_postuninstall_cmds= 6760 6761if test -n "$RANLIB"; then 6762 case $host_os in 6763 bitrig* | openbsd*) 6764 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6765 ;; 6766 *) 6767 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6768 ;; 6769 esac 6770 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6771fi 6772 6773case $host_os in 6774 darwin*) 6775 lock_old_archive_extraction=yes ;; 6776 *) 6777 lock_old_archive_extraction=no ;; 6778esac 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818# If no C compiler was specified, use CC. 6819LTCC=${LTCC-"$CC"} 6820 6821# If no C compiler flags were specified, use CFLAGS. 6822LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6823 6824# Allow CC to be a program name with arguments. 6825compiler=$CC 6826 6827 6828# Check for command to grab the raw symbol name followed by C symbol from nm. 6829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6830printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6831if test ${lt_cv_sys_global_symbol_pipe+y} 6832then : 6833 printf %s "(cached) " >&6 6834else $as_nop 6835 6836# These are sane defaults that work on at least a few old systems. 6837# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6838 6839# Character class describing NM global symbol codes. 6840symcode='[BCDEGRST]' 6841 6842# Regexp to match symbols that can be accessed directly from C. 6843sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6844 6845# Define system-specific variables. 6846case $host_os in 6847aix*) 6848 symcode='[BCDT]' 6849 ;; 6850cygwin* | mingw* | pw32* | cegcc*) 6851 symcode='[ABCDGISTW]' 6852 ;; 6853hpux*) 6854 if test ia64 = "$host_cpu"; then 6855 symcode='[ABCDEGRST]' 6856 fi 6857 ;; 6858irix* | nonstopux*) 6859 symcode='[BCDEGRST]' 6860 ;; 6861osf*) 6862 symcode='[BCDEGQRST]' 6863 ;; 6864solaris*) 6865 symcode='[BDRT]' 6866 ;; 6867sco3.2v5*) 6868 symcode='[DT]' 6869 ;; 6870sysv4.2uw2*) 6871 symcode='[DT]' 6872 ;; 6873sysv5* | sco5v6* | unixware* | OpenUNIX*) 6874 symcode='[ABDT]' 6875 ;; 6876sysv4) 6877 symcode='[DFNSTU]' 6878 ;; 6879esac 6880 6881# If we're using GNU nm, then use its standard symbol codes. 6882case `$NM -V 2>&1` in 6883*GNU* | *'with BFD'*) 6884 symcode='[ABCDGIRSTW]' ;; 6885esac 6886 6887if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6888 # Gets list of data symbols to import. 6889 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6890 # Adjust the below global symbol transforms to fixup imported variables. 6891 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6892 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6893 lt_c_name_lib_hook="\ 6894 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6895 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6896else 6897 # Disable hooks by default. 6898 lt_cv_sys_global_symbol_to_import= 6899 lt_cdecl_hook= 6900 lt_c_name_hook= 6901 lt_c_name_lib_hook= 6902fi 6903 6904# Transform an extracted symbol line into a proper C declaration. 6905# Some systems (esp. on ia64) link data and code symbols differently, 6906# so use this general approach. 6907lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6908$lt_cdecl_hook\ 6909" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6910" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6911 6912# Transform an extracted symbol line into symbol name and symbol address 6913lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 6914$lt_c_name_hook\ 6915" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6916" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6917 6918# Transform an extracted symbol line into symbol name with lib prefix and 6919# symbol address. 6920lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 6921$lt_c_name_lib_hook\ 6922" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6923" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6924" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6925 6926# Handle CRLF in mingw tool chain 6927opt_cr= 6928case $build_os in 6929mingw*) 6930 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6931 ;; 6932esac 6933 6934# Try without a prefix underscore, then with it. 6935for ac_symprfx in "" "_"; do 6936 6937 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6938 symxfrm="\\1 $ac_symprfx\\2 \\2" 6939 6940 # Write the raw and C identifiers. 6941 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6942 # Fake it for dumpbin and say T for any non-static function, 6943 # D for any global variable and I for any imported variable. 6944 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 6945 # which start with @ or ?. 6946 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6947" {last_section=section; section=\$ 3};"\ 6948" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6949" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6950" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6951" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6952" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6953" \$ 0!~/External *\|/{next};"\ 6954" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6955" {if(hide[section]) next};"\ 6956" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6957" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6958" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6959" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6960" ' prfx=^$ac_symprfx" 6961 else 6962 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6963 fi 6964 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 6965 6966 # Check to see that the pipe works correctly. 6967 pipe_works=no 6968 6969 rm -f conftest* 6970 cat > conftest.$ac_ext <<_LT_EOF 6971#ifdef __cplusplus 6972extern "C" { 6973#endif 6974char nm_test_var; 6975void nm_test_func(void); 6976void nm_test_func(void){} 6977#ifdef __cplusplus 6978} 6979#endif 6980int main(){nm_test_var='a';nm_test_func();return(0);} 6981_LT_EOF 6982 6983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6984 (eval $ac_compile) 2>&5 6985 ac_status=$? 6986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6987 test $ac_status = 0; }; then 6988 # Now try to grab the symbols. 6989 nlist=conftest.nm 6990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6991 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6992 ac_status=$? 6993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6994 test $ac_status = 0; } && test -s "$nlist"; then 6995 # Try sorting and uniquifying the output. 6996 if sort "$nlist" | uniq > "$nlist"T; then 6997 mv -f "$nlist"T "$nlist" 6998 else 6999 rm -f "$nlist"T 7000 fi 7001 7002 # Make sure that we snagged all the symbols we need. 7003 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7004 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7005 cat <<_LT_EOF > conftest.$ac_ext 7006/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7007#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7008/* DATA imports from DLLs on WIN32 can't be const, because runtime 7009 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7010# define LT_DLSYM_CONST 7011#elif defined __osf__ 7012/* This system does not cope well with relocations in const data. */ 7013# define LT_DLSYM_CONST 7014#else 7015# define LT_DLSYM_CONST const 7016#endif 7017 7018#ifdef __cplusplus 7019extern "C" { 7020#endif 7021 7022_LT_EOF 7023 # Now generate the symbol file. 7024 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7025 7026 cat <<_LT_EOF >> conftest.$ac_ext 7027 7028/* The mapping between symbol names and symbols. */ 7029LT_DLSYM_CONST struct { 7030 const char *name; 7031 void *address; 7032} 7033lt__PROGRAM__LTX_preloaded_symbols[] = 7034{ 7035 { "@PROGRAM@", (void *) 0 }, 7036_LT_EOF 7037 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7038 cat <<\_LT_EOF >> conftest.$ac_ext 7039 {0, (void *) 0} 7040}; 7041 7042/* This works around a problem in FreeBSD linker */ 7043#ifdef FREEBSD_WORKAROUND 7044static const void *lt_preloaded_setup() { 7045 return lt__PROGRAM__LTX_preloaded_symbols; 7046} 7047#endif 7048 7049#ifdef __cplusplus 7050} 7051#endif 7052_LT_EOF 7053 # Now try linking the two files. 7054 mv conftest.$ac_objext conftstm.$ac_objext 7055 lt_globsym_save_LIBS=$LIBS 7056 lt_globsym_save_CFLAGS=$CFLAGS 7057 LIBS=conftstm.$ac_objext 7058 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7060 (eval $ac_link) 2>&5 7061 ac_status=$? 7062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7063 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7064 pipe_works=yes 7065 fi 7066 LIBS=$lt_globsym_save_LIBS 7067 CFLAGS=$lt_globsym_save_CFLAGS 7068 else 7069 echo "cannot find nm_test_func in $nlist" >&5 7070 fi 7071 else 7072 echo "cannot find nm_test_var in $nlist" >&5 7073 fi 7074 else 7075 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7076 fi 7077 else 7078 echo "$progname: failed program was:" >&5 7079 cat conftest.$ac_ext >&5 7080 fi 7081 rm -rf conftest* conftst* 7082 7083 # Do not use the global_symbol_pipe unless it works. 7084 if test yes = "$pipe_works"; then 7085 break 7086 else 7087 lt_cv_sys_global_symbol_pipe= 7088 fi 7089done 7090 7091fi 7092 7093if test -z "$lt_cv_sys_global_symbol_pipe"; then 7094 lt_cv_sys_global_symbol_to_cdecl= 7095fi 7096if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7098printf "%s\n" "failed" >&6; } 7099else 7100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7101printf "%s\n" "ok" >&6; } 7102fi 7103 7104# Response file support. 7105if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7106 nm_file_list_spec='@' 7107elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7108 nm_file_list_spec='@' 7109fi 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7148printf %s "checking for sysroot... " >&6; } 7149 7150# Check whether --with-sysroot was given. 7151if test ${with_sysroot+y} 7152then : 7153 withval=$with_sysroot; 7154else $as_nop 7155 with_sysroot=no 7156fi 7157 7158 7159lt_sysroot= 7160case $with_sysroot in #( 7161 yes) 7162 if test yes = "$GCC"; then 7163 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7164 fi 7165 ;; #( 7166 /*) 7167 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7168 ;; #( 7169 no|'') 7170 ;; #( 7171 *) 7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7173printf "%s\n" "$with_sysroot" >&6; } 7174 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7175 ;; 7176esac 7177 7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7179printf "%s\n" "${lt_sysroot:-no}" >&6; } 7180 7181 7182 7183 7184 7185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7186printf %s "checking for a working dd... " >&6; } 7187if test ${ac_cv_path_lt_DD+y} 7188then : 7189 printf %s "(cached) " >&6 7190else $as_nop 7191 printf 0123456789abcdef0123456789abcdef >conftest.i 7192cat conftest.i conftest.i >conftest2.i 7193: ${lt_DD:=$DD} 7194if test -z "$lt_DD"; then 7195 ac_path_lt_DD_found=false 7196 # Loop through the user's path and test for each of PROGNAME-LIST 7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7198for as_dir in $PATH 7199do 7200 IFS=$as_save_IFS 7201 case $as_dir in #((( 7202 '') as_dir=./ ;; 7203 */) ;; 7204 *) as_dir=$as_dir/ ;; 7205 esac 7206 for ac_prog in dd 7207 do 7208 for ac_exec_ext in '' $ac_executable_extensions; do 7209 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7210 as_fn_executable_p "$ac_path_lt_DD" || continue 7211if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7212 cmp -s conftest.i conftest.out \ 7213 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7214fi 7215 $ac_path_lt_DD_found && break 3 7216 done 7217 done 7218 done 7219IFS=$as_save_IFS 7220 if test -z "$ac_cv_path_lt_DD"; then 7221 : 7222 fi 7223else 7224 ac_cv_path_lt_DD=$lt_DD 7225fi 7226 7227rm -f conftest.i conftest2.i conftest.out 7228fi 7229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7230printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7231 7232 7233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7234printf %s "checking how to truncate binary pipes... " >&6; } 7235if test ${lt_cv_truncate_bin+y} 7236then : 7237 printf %s "(cached) " >&6 7238else $as_nop 7239 printf 0123456789abcdef0123456789abcdef >conftest.i 7240cat conftest.i conftest.i >conftest2.i 7241lt_cv_truncate_bin= 7242if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7243 cmp -s conftest.i conftest.out \ 7244 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7245fi 7246rm -f conftest.i conftest2.i conftest.out 7247test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7248fi 7249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7250printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7251 7252 7253 7254 7255 7256 7257 7258# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7259func_cc_basename () 7260{ 7261 for cc_temp in $*""; do 7262 case $cc_temp in 7263 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7264 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7265 \-*) ;; 7266 *) break;; 7267 esac 7268 done 7269 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7270} 7271 7272# Check whether --enable-libtool-lock was given. 7273if test ${enable_libtool_lock+y} 7274then : 7275 enableval=$enable_libtool_lock; 7276fi 7277 7278test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7279 7280# Some flags need to be propagated to the compiler or linker for good 7281# libtool support. 7282case $host in 7283ia64-*-hpux*) 7284 # Find out what ABI is being produced by ac_compile, and set mode 7285 # options accordingly. 7286 echo 'int i;' > conftest.$ac_ext 7287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7288 (eval $ac_compile) 2>&5 7289 ac_status=$? 7290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7291 test $ac_status = 0; }; then 7292 case `$FILECMD conftest.$ac_objext` in 7293 *ELF-32*) 7294 HPUX_IA64_MODE=32 7295 ;; 7296 *ELF-64*) 7297 HPUX_IA64_MODE=64 7298 ;; 7299 esac 7300 fi 7301 rm -rf conftest* 7302 ;; 7303*-*-irix6*) 7304 # Find out what ABI is being produced by ac_compile, and set linker 7305 # options accordingly. 7306 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7308 (eval $ac_compile) 2>&5 7309 ac_status=$? 7310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7311 test $ac_status = 0; }; then 7312 if test yes = "$lt_cv_prog_gnu_ld"; then 7313 case `$FILECMD conftest.$ac_objext` in 7314 *32-bit*) 7315 LD="${LD-ld} -melf32bsmip" 7316 ;; 7317 *N32*) 7318 LD="${LD-ld} -melf32bmipn32" 7319 ;; 7320 *64-bit*) 7321 LD="${LD-ld} -melf64bmip" 7322 ;; 7323 esac 7324 else 7325 case `$FILECMD conftest.$ac_objext` in 7326 *32-bit*) 7327 LD="${LD-ld} -32" 7328 ;; 7329 *N32*) 7330 LD="${LD-ld} -n32" 7331 ;; 7332 *64-bit*) 7333 LD="${LD-ld} -64" 7334 ;; 7335 esac 7336 fi 7337 fi 7338 rm -rf conftest* 7339 ;; 7340 7341mips64*-*linux*) 7342 # Find out what ABI is being produced by ac_compile, and set linker 7343 # options accordingly. 7344 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7346 (eval $ac_compile) 2>&5 7347 ac_status=$? 7348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7349 test $ac_status = 0; }; then 7350 emul=elf 7351 case `$FILECMD conftest.$ac_objext` in 7352 *32-bit*) 7353 emul="${emul}32" 7354 ;; 7355 *64-bit*) 7356 emul="${emul}64" 7357 ;; 7358 esac 7359 case `$FILECMD conftest.$ac_objext` in 7360 *MSB*) 7361 emul="${emul}btsmip" 7362 ;; 7363 *LSB*) 7364 emul="${emul}ltsmip" 7365 ;; 7366 esac 7367 case `$FILECMD conftest.$ac_objext` in 7368 *N32*) 7369 emul="${emul}n32" 7370 ;; 7371 esac 7372 LD="${LD-ld} -m $emul" 7373 fi 7374 rm -rf conftest* 7375 ;; 7376 7377x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7378s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7379 # Find out what ABI is being produced by ac_compile, and set linker 7380 # options accordingly. Note that the listed cases only cover the 7381 # situations where additional linker options are needed (such as when 7382 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7383 # vice versa); the common cases where no linker options are needed do 7384 # not appear in the list. 7385 echo 'int i;' > conftest.$ac_ext 7386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7387 (eval $ac_compile) 2>&5 7388 ac_status=$? 7389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7390 test $ac_status = 0; }; then 7391 case `$FILECMD conftest.o` in 7392 *32-bit*) 7393 case $host in 7394 x86_64-*kfreebsd*-gnu) 7395 LD="${LD-ld} -m elf_i386_fbsd" 7396 ;; 7397 x86_64-*linux*) 7398 case `$FILECMD conftest.o` in 7399 *x86-64*) 7400 LD="${LD-ld} -m elf32_x86_64" 7401 ;; 7402 *) 7403 LD="${LD-ld} -m elf_i386" 7404 ;; 7405 esac 7406 ;; 7407 powerpc64le-*linux*) 7408 LD="${LD-ld} -m elf32lppclinux" 7409 ;; 7410 powerpc64-*linux*) 7411 LD="${LD-ld} -m elf32ppclinux" 7412 ;; 7413 s390x-*linux*) 7414 LD="${LD-ld} -m elf_s390" 7415 ;; 7416 sparc64-*linux*) 7417 LD="${LD-ld} -m elf32_sparc" 7418 ;; 7419 esac 7420 ;; 7421 *64-bit*) 7422 case $host in 7423 x86_64-*kfreebsd*-gnu) 7424 LD="${LD-ld} -m elf_x86_64_fbsd" 7425 ;; 7426 x86_64-*linux*) 7427 LD="${LD-ld} -m elf_x86_64" 7428 ;; 7429 powerpcle-*linux*) 7430 LD="${LD-ld} -m elf64lppc" 7431 ;; 7432 powerpc-*linux*) 7433 LD="${LD-ld} -m elf64ppc" 7434 ;; 7435 s390*-*linux*|s390*-*tpf*) 7436 LD="${LD-ld} -m elf64_s390" 7437 ;; 7438 sparc*-*linux*) 7439 LD="${LD-ld} -m elf64_sparc" 7440 ;; 7441 esac 7442 ;; 7443 esac 7444 fi 7445 rm -rf conftest* 7446 ;; 7447 7448*-*-sco3.2v5*) 7449 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7450 SAVE_CFLAGS=$CFLAGS 7451 CFLAGS="$CFLAGS -belf" 7452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7453printf %s "checking whether the C compiler needs -belf... " >&6; } 7454if test ${lt_cv_cc_needs_belf+y} 7455then : 7456 printf %s "(cached) " >&6 7457else $as_nop 7458 ac_ext=c 7459ac_cpp='$CPP $CPPFLAGS' 7460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7462ac_compiler_gnu=$ac_cv_c_compiler_gnu 7463 7464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7465/* end confdefs.h. */ 7466 7467int 7468main (void) 7469{ 7470 7471 ; 7472 return 0; 7473} 7474_ACEOF 7475if ac_fn_c_try_link "$LINENO" 7476then : 7477 lt_cv_cc_needs_belf=yes 7478else $as_nop 7479 lt_cv_cc_needs_belf=no 7480fi 7481rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7482 conftest$ac_exeext conftest.$ac_ext 7483 ac_ext=c 7484ac_cpp='$CPP $CPPFLAGS' 7485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7487ac_compiler_gnu=$ac_cv_c_compiler_gnu 7488 7489fi 7490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7491printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7492 if test yes != "$lt_cv_cc_needs_belf"; then 7493 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7494 CFLAGS=$SAVE_CFLAGS 7495 fi 7496 ;; 7497*-*solaris*) 7498 # Find out what ABI is being produced by ac_compile, and set linker 7499 # options accordingly. 7500 echo 'int i;' > conftest.$ac_ext 7501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7502 (eval $ac_compile) 2>&5 7503 ac_status=$? 7504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7505 test $ac_status = 0; }; then 7506 case `$FILECMD conftest.o` in 7507 *64-bit*) 7508 case $lt_cv_prog_gnu_ld in 7509 yes*) 7510 case $host in 7511 i?86-*-solaris*|x86_64-*-solaris*) 7512 LD="${LD-ld} -m elf_x86_64" 7513 ;; 7514 sparc*-*-solaris*) 7515 LD="${LD-ld} -m elf64_sparc" 7516 ;; 7517 esac 7518 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7519 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7520 LD=${LD-ld}_sol2 7521 fi 7522 ;; 7523 *) 7524 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7525 LD="${LD-ld} -64" 7526 fi 7527 ;; 7528 esac 7529 ;; 7530 esac 7531 fi 7532 rm -rf conftest* 7533 ;; 7534esac 7535 7536need_locks=$enable_libtool_lock 7537 7538if test -n "$ac_tool_prefix"; then 7539 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7540set dummy ${ac_tool_prefix}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_MANIFEST_TOOL+y} 7544then : 7545 printf %s "(cached) " >&6 7546else $as_nop 7547 if test -n "$MANIFEST_TOOL"; then 7548 ac_cv_prog_MANIFEST_TOOL="$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_MANIFEST_TOOL="${ac_tool_prefix}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 7571MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7572if test -n "$MANIFEST_TOOL"; then 7573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7574printf "%s\n" "$MANIFEST_TOOL" >&6; } 7575else 7576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7577printf "%s\n" "no" >&6; } 7578fi 7579 7580 7581fi 7582if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7583 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7584 # Extract the first word of "mt", so it can be a program name with args. 7585set dummy mt; ac_word=$2 7586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7587printf %s "checking for $ac_word... " >&6; } 7588if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7589then : 7590 printf %s "(cached) " >&6 7591else $as_nop 7592 if test -n "$ac_ct_MANIFEST_TOOL"; then 7593 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7594else 7595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7596for as_dir in $PATH 7597do 7598 IFS=$as_save_IFS 7599 case $as_dir in #((( 7600 '') as_dir=./ ;; 7601 */) ;; 7602 *) as_dir=$as_dir/ ;; 7603 esac 7604 for ac_exec_ext in '' $ac_executable_extensions; do 7605 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7606 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7608 break 2 7609 fi 7610done 7611 done 7612IFS=$as_save_IFS 7613 7614fi 7615fi 7616ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7617if test -n "$ac_ct_MANIFEST_TOOL"; then 7618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7619printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7620else 7621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7622printf "%s\n" "no" >&6; } 7623fi 7624 7625 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7626 MANIFEST_TOOL=":" 7627 else 7628 case $cross_compiling:$ac_tool_warned in 7629yes:) 7630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7631printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7632ac_tool_warned=yes ;; 7633esac 7634 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7635 fi 7636else 7637 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7638fi 7639 7640test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7642printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7643if test ${lt_cv_path_mainfest_tool+y} 7644then : 7645 printf %s "(cached) " >&6 7646else $as_nop 7647 lt_cv_path_mainfest_tool=no 7648 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7649 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7650 cat conftest.err >&5 7651 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7652 lt_cv_path_mainfest_tool=yes 7653 fi 7654 rm -f conftest* 7655fi 7656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7657printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7658if test yes != "$lt_cv_path_mainfest_tool"; then 7659 MANIFEST_TOOL=: 7660fi 7661 7662 7663 7664 7665 7666 7667 case $host_os in 7668 rhapsody* | darwin*) 7669 if test -n "$ac_tool_prefix"; then 7670 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7671set dummy ${ac_tool_prefix}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_DSYMUTIL+y} 7675then : 7676 printf %s "(cached) " >&6 7677else $as_nop 7678 if test -n "$DSYMUTIL"; then 7679 ac_cv_prog_DSYMUTIL="$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_DSYMUTIL="${ac_tool_prefix}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 7702DSYMUTIL=$ac_cv_prog_DSYMUTIL 7703if test -n "$DSYMUTIL"; then 7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7705printf "%s\n" "$DSYMUTIL" >&6; } 7706else 7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7708printf "%s\n" "no" >&6; } 7709fi 7710 7711 7712fi 7713if test -z "$ac_cv_prog_DSYMUTIL"; then 7714 ac_ct_DSYMUTIL=$DSYMUTIL 7715 # Extract the first word of "dsymutil", so it can be a program name with args. 7716set dummy dsymutil; ac_word=$2 7717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7718printf %s "checking for $ac_word... " >&6; } 7719if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7720then : 7721 printf %s "(cached) " >&6 7722else $as_nop 7723 if test -n "$ac_ct_DSYMUTIL"; then 7724 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7725else 7726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7727for as_dir in $PATH 7728do 7729 IFS=$as_save_IFS 7730 case $as_dir in #((( 7731 '') as_dir=./ ;; 7732 */) ;; 7733 *) as_dir=$as_dir/ ;; 7734 esac 7735 for ac_exec_ext in '' $ac_executable_extensions; do 7736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7737 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7739 break 2 7740 fi 7741done 7742 done 7743IFS=$as_save_IFS 7744 7745fi 7746fi 7747ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7748if test -n "$ac_ct_DSYMUTIL"; then 7749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7750printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7751else 7752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7753printf "%s\n" "no" >&6; } 7754fi 7755 7756 if test "x$ac_ct_DSYMUTIL" = x; then 7757 DSYMUTIL=":" 7758 else 7759 case $cross_compiling:$ac_tool_warned in 7760yes:) 7761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7762printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7763ac_tool_warned=yes ;; 7764esac 7765 DSYMUTIL=$ac_ct_DSYMUTIL 7766 fi 7767else 7768 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7769fi 7770 7771 if test -n "$ac_tool_prefix"; then 7772 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7773set dummy ${ac_tool_prefix}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_NMEDIT+y} 7777then : 7778 printf %s "(cached) " >&6 7779else $as_nop 7780 if test -n "$NMEDIT"; then 7781 ac_cv_prog_NMEDIT="$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_NMEDIT="${ac_tool_prefix}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 7804NMEDIT=$ac_cv_prog_NMEDIT 7805if test -n "$NMEDIT"; then 7806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7807printf "%s\n" "$NMEDIT" >&6; } 7808else 7809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7810printf "%s\n" "no" >&6; } 7811fi 7812 7813 7814fi 7815if test -z "$ac_cv_prog_NMEDIT"; then 7816 ac_ct_NMEDIT=$NMEDIT 7817 # Extract the first word of "nmedit", so it can be a program name with args. 7818set dummy nmedit; ac_word=$2 7819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7820printf %s "checking for $ac_word... " >&6; } 7821if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7822then : 7823 printf %s "(cached) " >&6 7824else $as_nop 7825 if test -n "$ac_ct_NMEDIT"; then 7826 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7827else 7828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7829for as_dir in $PATH 7830do 7831 IFS=$as_save_IFS 7832 case $as_dir in #((( 7833 '') as_dir=./ ;; 7834 */) ;; 7835 *) as_dir=$as_dir/ ;; 7836 esac 7837 for ac_exec_ext in '' $ac_executable_extensions; do 7838 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7839 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7841 break 2 7842 fi 7843done 7844 done 7845IFS=$as_save_IFS 7846 7847fi 7848fi 7849ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7850if test -n "$ac_ct_NMEDIT"; then 7851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7852printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7853else 7854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7855printf "%s\n" "no" >&6; } 7856fi 7857 7858 if test "x$ac_ct_NMEDIT" = x; then 7859 NMEDIT=":" 7860 else 7861 case $cross_compiling:$ac_tool_warned in 7862yes:) 7863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7864printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7865ac_tool_warned=yes ;; 7866esac 7867 NMEDIT=$ac_ct_NMEDIT 7868 fi 7869else 7870 NMEDIT="$ac_cv_prog_NMEDIT" 7871fi 7872 7873 if test -n "$ac_tool_prefix"; then 7874 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7875set dummy ${ac_tool_prefix}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_LIPO+y} 7879then : 7880 printf %s "(cached) " >&6 7881else $as_nop 7882 if test -n "$LIPO"; then 7883 ac_cv_prog_LIPO="$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_LIPO="${ac_tool_prefix}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 7906LIPO=$ac_cv_prog_LIPO 7907if test -n "$LIPO"; then 7908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7909printf "%s\n" "$LIPO" >&6; } 7910else 7911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7912printf "%s\n" "no" >&6; } 7913fi 7914 7915 7916fi 7917if test -z "$ac_cv_prog_LIPO"; then 7918 ac_ct_LIPO=$LIPO 7919 # Extract the first word of "lipo", so it can be a program name with args. 7920set dummy lipo; ac_word=$2 7921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7922printf %s "checking for $ac_word... " >&6; } 7923if test ${ac_cv_prog_ac_ct_LIPO+y} 7924then : 7925 printf %s "(cached) " >&6 7926else $as_nop 7927 if test -n "$ac_ct_LIPO"; then 7928 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7929else 7930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7931for as_dir in $PATH 7932do 7933 IFS=$as_save_IFS 7934 case $as_dir in #((( 7935 '') as_dir=./ ;; 7936 */) ;; 7937 *) as_dir=$as_dir/ ;; 7938 esac 7939 for ac_exec_ext in '' $ac_executable_extensions; do 7940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7941 ac_cv_prog_ac_ct_LIPO="lipo" 7942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7943 break 2 7944 fi 7945done 7946 done 7947IFS=$as_save_IFS 7948 7949fi 7950fi 7951ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7952if test -n "$ac_ct_LIPO"; then 7953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7954printf "%s\n" "$ac_ct_LIPO" >&6; } 7955else 7956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7957printf "%s\n" "no" >&6; } 7958fi 7959 7960 if test "x$ac_ct_LIPO" = x; then 7961 LIPO=":" 7962 else 7963 case $cross_compiling:$ac_tool_warned in 7964yes:) 7965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7966printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7967ac_tool_warned=yes ;; 7968esac 7969 LIPO=$ac_ct_LIPO 7970 fi 7971else 7972 LIPO="$ac_cv_prog_LIPO" 7973fi 7974 7975 if test -n "$ac_tool_prefix"; then 7976 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7977set dummy ${ac_tool_prefix}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_OTOOL+y} 7981then : 7982 printf %s "(cached) " >&6 7983else $as_nop 7984 if test -n "$OTOOL"; then 7985 ac_cv_prog_OTOOL="$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_OTOOL="${ac_tool_prefix}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 8008OTOOL=$ac_cv_prog_OTOOL 8009if test -n "$OTOOL"; then 8010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8011printf "%s\n" "$OTOOL" >&6; } 8012else 8013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8014printf "%s\n" "no" >&6; } 8015fi 8016 8017 8018fi 8019if test -z "$ac_cv_prog_OTOOL"; then 8020 ac_ct_OTOOL=$OTOOL 8021 # Extract the first word of "otool", so it can be a program name with args. 8022set dummy otool; ac_word=$2 8023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8024printf %s "checking for $ac_word... " >&6; } 8025if test ${ac_cv_prog_ac_ct_OTOOL+y} 8026then : 8027 printf %s "(cached) " >&6 8028else $as_nop 8029 if test -n "$ac_ct_OTOOL"; then 8030 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8031else 8032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8033for as_dir in $PATH 8034do 8035 IFS=$as_save_IFS 8036 case $as_dir in #((( 8037 '') as_dir=./ ;; 8038 */) ;; 8039 *) as_dir=$as_dir/ ;; 8040 esac 8041 for ac_exec_ext in '' $ac_executable_extensions; do 8042 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8043 ac_cv_prog_ac_ct_OTOOL="otool" 8044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8045 break 2 8046 fi 8047done 8048 done 8049IFS=$as_save_IFS 8050 8051fi 8052fi 8053ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8054if test -n "$ac_ct_OTOOL"; then 8055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8056printf "%s\n" "$ac_ct_OTOOL" >&6; } 8057else 8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8059printf "%s\n" "no" >&6; } 8060fi 8061 8062 if test "x$ac_ct_OTOOL" = x; then 8063 OTOOL=":" 8064 else 8065 case $cross_compiling:$ac_tool_warned in 8066yes:) 8067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8068printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8069ac_tool_warned=yes ;; 8070esac 8071 OTOOL=$ac_ct_OTOOL 8072 fi 8073else 8074 OTOOL="$ac_cv_prog_OTOOL" 8075fi 8076 8077 if test -n "$ac_tool_prefix"; then 8078 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8079set dummy ${ac_tool_prefix}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_OTOOL64+y} 8083then : 8084 printf %s "(cached) " >&6 8085else $as_nop 8086 if test -n "$OTOOL64"; then 8087 ac_cv_prog_OTOOL64="$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_OTOOL64="${ac_tool_prefix}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 8110OTOOL64=$ac_cv_prog_OTOOL64 8111if test -n "$OTOOL64"; then 8112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8113printf "%s\n" "$OTOOL64" >&6; } 8114else 8115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8116printf "%s\n" "no" >&6; } 8117fi 8118 8119 8120fi 8121if test -z "$ac_cv_prog_OTOOL64"; then 8122 ac_ct_OTOOL64=$OTOOL64 8123 # Extract the first word of "otool64", so it can be a program name with args. 8124set dummy otool64; ac_word=$2 8125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8126printf %s "checking for $ac_word... " >&6; } 8127if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8128then : 8129 printf %s "(cached) " >&6 8130else $as_nop 8131 if test -n "$ac_ct_OTOOL64"; then 8132 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8133else 8134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8135for as_dir in $PATH 8136do 8137 IFS=$as_save_IFS 8138 case $as_dir in #((( 8139 '') as_dir=./ ;; 8140 */) ;; 8141 *) as_dir=$as_dir/ ;; 8142 esac 8143 for ac_exec_ext in '' $ac_executable_extensions; do 8144 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8145 ac_cv_prog_ac_ct_OTOOL64="otool64" 8146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8147 break 2 8148 fi 8149done 8150 done 8151IFS=$as_save_IFS 8152 8153fi 8154fi 8155ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8156if test -n "$ac_ct_OTOOL64"; then 8157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8158printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8159else 8160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8161printf "%s\n" "no" >&6; } 8162fi 8163 8164 if test "x$ac_ct_OTOOL64" = x; then 8165 OTOOL64=":" 8166 else 8167 case $cross_compiling:$ac_tool_warned in 8168yes:) 8169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8170printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8171ac_tool_warned=yes ;; 8172esac 8173 OTOOL64=$ac_ct_OTOOL64 8174 fi 8175else 8176 OTOOL64="$ac_cv_prog_OTOOL64" 8177fi 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8206printf %s "checking for -single_module linker flag... " >&6; } 8207if test ${lt_cv_apple_cc_single_mod+y} 8208then : 8209 printf %s "(cached) " >&6 8210else $as_nop 8211 lt_cv_apple_cc_single_mod=no 8212 if test -z "$LT_MULTI_MODULE"; then 8213 # By default we will add the -single_module flag. You can override 8214 # by either setting the environment variable LT_MULTI_MODULE 8215 # non-empty at configure time, or by adding -multi_module to the 8216 # link flags. 8217 rm -rf libconftest.dylib* 8218 echo "int foo(void){return 1;}" > conftest.c 8219 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8220-dynamiclib -Wl,-single_module conftest.c" >&5 8221 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8222 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8223 _lt_result=$? 8224 # If there is a non-empty error log, and "single_module" 8225 # appears in it, assume the flag caused a linker warning 8226 if test -s conftest.err && $GREP single_module conftest.err; then 8227 cat conftest.err >&5 8228 # Otherwise, if the output was created with a 0 exit code from 8229 # the compiler, it worked. 8230 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8231 lt_cv_apple_cc_single_mod=yes 8232 else 8233 cat conftest.err >&5 8234 fi 8235 rm -rf libconftest.dylib* 8236 rm -f conftest.* 8237 fi 8238fi 8239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8240printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8241 8242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8243printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8244if test ${lt_cv_ld_exported_symbols_list+y} 8245then : 8246 printf %s "(cached) " >&6 8247else $as_nop 8248 lt_cv_ld_exported_symbols_list=no 8249 save_LDFLAGS=$LDFLAGS 8250 echo "_main" > conftest.sym 8251 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8253/* end confdefs.h. */ 8254 8255int 8256main (void) 8257{ 8258 8259 ; 8260 return 0; 8261} 8262_ACEOF 8263if ac_fn_c_try_link "$LINENO" 8264then : 8265 lt_cv_ld_exported_symbols_list=yes 8266else $as_nop 8267 lt_cv_ld_exported_symbols_list=no 8268fi 8269rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8270 conftest$ac_exeext conftest.$ac_ext 8271 LDFLAGS=$save_LDFLAGS 8272 8273fi 8274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8275printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8276 8277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8278printf %s "checking for -force_load linker flag... " >&6; } 8279if test ${lt_cv_ld_force_load+y} 8280then : 8281 printf %s "(cached) " >&6 8282else $as_nop 8283 lt_cv_ld_force_load=no 8284 cat > conftest.c << _LT_EOF 8285int forced_loaded() { return 2;} 8286_LT_EOF 8287 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8288 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8289 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8290 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8291 echo "$RANLIB libconftest.a" >&5 8292 $RANLIB libconftest.a 2>&5 8293 cat > conftest.c << _LT_EOF 8294int main() { return 0;} 8295_LT_EOF 8296 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8297 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8298 _lt_result=$? 8299 if test -s conftest.err && $GREP force_load conftest.err; then 8300 cat conftest.err >&5 8301 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8302 lt_cv_ld_force_load=yes 8303 else 8304 cat conftest.err >&5 8305 fi 8306 rm -f conftest.err libconftest.a conftest conftest.c 8307 rm -rf conftest.dSYM 8308 8309fi 8310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8311printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8312 case $host_os in 8313 rhapsody* | darwin1.[012]) 8314 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8315 darwin1.*) 8316 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8317 darwin*) 8318 case $MACOSX_DEPLOYMENT_TARGET,$host in 8319 10.[012],*|,*powerpc*-darwin[5-8]*) 8320 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8321 *) 8322 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8323 esac 8324 ;; 8325 esac 8326 if test yes = "$lt_cv_apple_cc_single_mod"; then 8327 _lt_dar_single_mod='$single_module' 8328 fi 8329 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8330 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8331 else 8332 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8333 fi 8334 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8335 _lt_dsymutil='~$DSYMUTIL $lib || :' 8336 else 8337 _lt_dsymutil= 8338 fi 8339 ;; 8340 esac 8341 8342# func_munge_path_list VARIABLE PATH 8343# ----------------------------------- 8344# VARIABLE is name of variable containing _space_ separated list of 8345# directories to be munged by the contents of PATH, which is string 8346# having a format: 8347# "DIR[:DIR]:" 8348# string "DIR[ DIR]" will be prepended to VARIABLE 8349# ":DIR[:DIR]" 8350# string "DIR[ DIR]" will be appended to VARIABLE 8351# "DIRP[:DIRP]::[DIRA:]DIRA" 8352# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8353# "DIRA[ DIRA]" will be appended to VARIABLE 8354# "DIR[:DIR]" 8355# VARIABLE will be replaced by "DIR[ DIR]" 8356func_munge_path_list () 8357{ 8358 case x$2 in 8359 x) 8360 ;; 8361 *:) 8362 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8363 ;; 8364 x:*) 8365 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8366 ;; 8367 *::*) 8368 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8369 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8370 ;; 8371 *) 8372 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8373 ;; 8374 esac 8375} 8376 8377ac_header= ac_cache= 8378for ac_item in $ac_header_c_list 8379do 8380 if test $ac_cache; then 8381 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8382 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8383 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8384 fi 8385 ac_header= ac_cache= 8386 elif test $ac_header; then 8387 ac_cache=$ac_item 8388 else 8389 ac_header=$ac_item 8390 fi 8391done 8392 8393 8394 8395 8396 8397 8398 8399 8400if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8401then : 8402 8403printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8404 8405fi 8406ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8407" 8408if test "x$ac_cv_header_dlfcn_h" = xyes 8409then : 8410 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8411 8412fi 8413 8414 8415 8416 8417 8418# Set options 8419 8420 8421 8422 enable_dlopen=no 8423 8424 8425 enable_win32_dll=no 8426 8427 8428 # Check whether --enable-shared was given. 8429if test ${enable_shared+y} 8430then : 8431 enableval=$enable_shared; p=${PACKAGE-default} 8432 case $enableval in 8433 yes) enable_shared=yes ;; 8434 no) enable_shared=no ;; 8435 *) 8436 enable_shared=no 8437 # Look at the argument we got. We use all the common list separators. 8438 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8439 for pkg in $enableval; do 8440 IFS=$lt_save_ifs 8441 if test "X$pkg" = "X$p"; then 8442 enable_shared=yes 8443 fi 8444 done 8445 IFS=$lt_save_ifs 8446 ;; 8447 esac 8448else $as_nop 8449 enable_shared=yes 8450fi 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 # Check whether --enable-static was given. 8461if test ${enable_static+y} 8462then : 8463 enableval=$enable_static; p=${PACKAGE-default} 8464 case $enableval in 8465 yes) enable_static=yes ;; 8466 no) enable_static=no ;; 8467 *) 8468 enable_static=no 8469 # Look at the argument we got. We use all the common list separators. 8470 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8471 for pkg in $enableval; do 8472 IFS=$lt_save_ifs 8473 if test "X$pkg" = "X$p"; then 8474 enable_static=yes 8475 fi 8476 done 8477 IFS=$lt_save_ifs 8478 ;; 8479 esac 8480else $as_nop 8481 enable_static=yes 8482fi 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493# Check whether --with-pic was given. 8494if test ${with_pic+y} 8495then : 8496 withval=$with_pic; lt_p=${PACKAGE-default} 8497 case $withval in 8498 yes|no) pic_mode=$withval ;; 8499 *) 8500 pic_mode=default 8501 # Look at the argument we got. We use all the common list separators. 8502 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8503 for lt_pkg in $withval; do 8504 IFS=$lt_save_ifs 8505 if test "X$lt_pkg" = "X$lt_p"; then 8506 pic_mode=yes 8507 fi 8508 done 8509 IFS=$lt_save_ifs 8510 ;; 8511 esac 8512else $as_nop 8513 pic_mode=default 8514fi 8515 8516 8517 8518 8519 8520 8521 8522 8523 # Check whether --enable-fast-install was given. 8524if test ${enable_fast_install+y} 8525then : 8526 enableval=$enable_fast_install; p=${PACKAGE-default} 8527 case $enableval in 8528 yes) enable_fast_install=yes ;; 8529 no) enable_fast_install=no ;; 8530 *) 8531 enable_fast_install=no 8532 # Look at the argument we got. We use all the common list separators. 8533 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8534 for pkg in $enableval; do 8535 IFS=$lt_save_ifs 8536 if test "X$pkg" = "X$p"; then 8537 enable_fast_install=yes 8538 fi 8539 done 8540 IFS=$lt_save_ifs 8541 ;; 8542 esac 8543else $as_nop 8544 enable_fast_install=yes 8545fi 8546 8547 8548 8549 8550 8551 8552 8553 8554 shared_archive_member_spec= 8555case $host,$enable_shared in 8556power*-*-aix[5-9]*,yes) 8557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8558printf %s "checking which variant of shared library versioning to provide... " >&6; } 8559 8560# Check whether --with-aix-soname was given. 8561if test ${with_aix_soname+y} 8562then : 8563 withval=$with_aix_soname; case $withval in 8564 aix|svr4|both) 8565 ;; 8566 *) 8567 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8568 ;; 8569 esac 8570 lt_cv_with_aix_soname=$with_aix_soname 8571else $as_nop 8572 if test ${lt_cv_with_aix_soname+y} 8573then : 8574 printf %s "(cached) " >&6 8575else $as_nop 8576 lt_cv_with_aix_soname=aix 8577fi 8578 8579 with_aix_soname=$lt_cv_with_aix_soname 8580fi 8581 8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8583printf "%s\n" "$with_aix_soname" >&6; } 8584 if test aix != "$with_aix_soname"; then 8585 # For the AIX way of multilib, we name the shared archive member 8586 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8587 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8588 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8589 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8590 if test 64 = "${OBJECT_MODE-32}"; then 8591 shared_archive_member_spec=shr_64 8592 else 8593 shared_archive_member_spec=shr 8594 fi 8595 fi 8596 ;; 8597*) 8598 with_aix_soname=aix 8599 ;; 8600esac 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611# This can be used to rebuild libtool when needed 8612LIBTOOL_DEPS=$ltmain 8613 8614# Always use our own libtool. 8615LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646test -z "$LN_S" && LN_S="ln -s" 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661if test -n "${ZSH_VERSION+set}"; then 8662 setopt NO_GLOB_SUBST 8663fi 8664 8665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8666printf %s "checking for objdir... " >&6; } 8667if test ${lt_cv_objdir+y} 8668then : 8669 printf %s "(cached) " >&6 8670else $as_nop 8671 rm -f .libs 2>/dev/null 8672mkdir .libs 2>/dev/null 8673if test -d .libs; then 8674 lt_cv_objdir=.libs 8675else 8676 # MS-DOS does not allow filenames that begin with a dot. 8677 lt_cv_objdir=_libs 8678fi 8679rmdir .libs 2>/dev/null 8680fi 8681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8682printf "%s\n" "$lt_cv_objdir" >&6; } 8683objdir=$lt_cv_objdir 8684 8685 8686 8687 8688 8689printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8690 8691 8692 8693 8694case $host_os in 8695aix3*) 8696 # AIX sometimes has problems with the GCC collect2 program. For some 8697 # reason, if we set the COLLECT_NAMES environment variable, the problems 8698 # vanish in a puff of smoke. 8699 if test set != "${COLLECT_NAMES+set}"; then 8700 COLLECT_NAMES= 8701 export COLLECT_NAMES 8702 fi 8703 ;; 8704esac 8705 8706# Global variables: 8707ofile=libtool 8708can_build_shared=yes 8709 8710# All known linkers require a '.a' archive for static linking (except MSVC and 8711# ICC, which need '.lib'). 8712libext=a 8713 8714with_gnu_ld=$lt_cv_prog_gnu_ld 8715 8716old_CC=$CC 8717old_CFLAGS=$CFLAGS 8718 8719# Set sane defaults for various variables 8720test -z "$CC" && CC=cc 8721test -z "$LTCC" && LTCC=$CC 8722test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8723test -z "$LD" && LD=ld 8724test -z "$ac_objext" && ac_objext=o 8725 8726func_cc_basename $compiler 8727cc_basename=$func_cc_basename_result 8728 8729 8730# Only perform the check for file, if the check method requires it 8731test -z "$MAGIC_CMD" && MAGIC_CMD=file 8732case $deplibs_check_method in 8733file_magic*) 8734 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8736printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8737if test ${lt_cv_path_MAGIC_CMD+y} 8738then : 8739 printf %s "(cached) " >&6 8740else $as_nop 8741 case $MAGIC_CMD in 8742[\\/*] | ?:[\\/]*) 8743 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8744 ;; 8745*) 8746 lt_save_MAGIC_CMD=$MAGIC_CMD 8747 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8748 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8749 for ac_dir in $ac_dummy; do 8750 IFS=$lt_save_ifs 8751 test -z "$ac_dir" && ac_dir=. 8752 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8753 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8754 if test -n "$file_magic_test_file"; then 8755 case $deplibs_check_method in 8756 "file_magic "*) 8757 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8758 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8759 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8760 $EGREP "$file_magic_regex" > /dev/null; then 8761 : 8762 else 8763 cat <<_LT_EOF 1>&2 8764 8765*** Warning: the command libtool uses to detect shared libraries, 8766*** $file_magic_cmd, produces output that libtool cannot recognize. 8767*** The result is that libtool may fail to recognize shared libraries 8768*** as such. This will affect the creation of libtool libraries that 8769*** depend on shared libraries, but programs linked with such libtool 8770*** libraries will work regardless of this problem. Nevertheless, you 8771*** may want to report the problem to your system manager and/or to 8772*** bug-libtool@gnu.org 8773 8774_LT_EOF 8775 fi ;; 8776 esac 8777 fi 8778 break 8779 fi 8780 done 8781 IFS=$lt_save_ifs 8782 MAGIC_CMD=$lt_save_MAGIC_CMD 8783 ;; 8784esac 8785fi 8786 8787MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8788if test -n "$MAGIC_CMD"; then 8789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8790printf "%s\n" "$MAGIC_CMD" >&6; } 8791else 8792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8793printf "%s\n" "no" >&6; } 8794fi 8795 8796 8797 8798 8799 8800if test -z "$lt_cv_path_MAGIC_CMD"; then 8801 if test -n "$ac_tool_prefix"; then 8802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8803printf %s "checking for file... " >&6; } 8804if test ${lt_cv_path_MAGIC_CMD+y} 8805then : 8806 printf %s "(cached) " >&6 8807else $as_nop 8808 case $MAGIC_CMD in 8809[\\/*] | ?:[\\/]*) 8810 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8811 ;; 8812*) 8813 lt_save_MAGIC_CMD=$MAGIC_CMD 8814 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8815 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8816 for ac_dir in $ac_dummy; do 8817 IFS=$lt_save_ifs 8818 test -z "$ac_dir" && ac_dir=. 8819 if test -f "$ac_dir/file"; then 8820 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8821 if test -n "$file_magic_test_file"; then 8822 case $deplibs_check_method in 8823 "file_magic "*) 8824 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8825 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8826 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8827 $EGREP "$file_magic_regex" > /dev/null; then 8828 : 8829 else 8830 cat <<_LT_EOF 1>&2 8831 8832*** Warning: the command libtool uses to detect shared libraries, 8833*** $file_magic_cmd, produces output that libtool cannot recognize. 8834*** The result is that libtool may fail to recognize shared libraries 8835*** as such. This will affect the creation of libtool libraries that 8836*** depend on shared libraries, but programs linked with such libtool 8837*** libraries will work regardless of this problem. Nevertheless, you 8838*** may want to report the problem to your system manager and/or to 8839*** bug-libtool@gnu.org 8840 8841_LT_EOF 8842 fi ;; 8843 esac 8844 fi 8845 break 8846 fi 8847 done 8848 IFS=$lt_save_ifs 8849 MAGIC_CMD=$lt_save_MAGIC_CMD 8850 ;; 8851esac 8852fi 8853 8854MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8855if test -n "$MAGIC_CMD"; then 8856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8857printf "%s\n" "$MAGIC_CMD" >&6; } 8858else 8859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8860printf "%s\n" "no" >&6; } 8861fi 8862 8863 8864 else 8865 MAGIC_CMD=: 8866 fi 8867fi 8868 8869 fi 8870 ;; 8871esac 8872 8873# Use C for the default configuration in the libtool script 8874 8875lt_save_CC=$CC 8876ac_ext=c 8877ac_cpp='$CPP $CPPFLAGS' 8878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8880ac_compiler_gnu=$ac_cv_c_compiler_gnu 8881 8882 8883# Source file extension for C test sources. 8884ac_ext=c 8885 8886# Object file extension for compiled C test sources. 8887objext=o 8888objext=$objext 8889 8890# Code to be used in simple compile tests 8891lt_simple_compile_test_code="int some_variable = 0;" 8892 8893# Code to be used in simple link tests 8894lt_simple_link_test_code='int main(){return(0);}' 8895 8896 8897 8898 8899 8900 8901 8902# If no C compiler was specified, use CC. 8903LTCC=${LTCC-"$CC"} 8904 8905# If no C compiler flags were specified, use CFLAGS. 8906LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8907 8908# Allow CC to be a program name with arguments. 8909compiler=$CC 8910 8911# Save the default compiler, since it gets overwritten when the other 8912# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8913compiler_DEFAULT=$CC 8914 8915# save warnings/boilerplate of simple test code 8916ac_outfile=conftest.$ac_objext 8917echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8918eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8919_lt_compiler_boilerplate=`cat conftest.err` 8920$RM conftest* 8921 8922ac_outfile=conftest.$ac_objext 8923echo "$lt_simple_link_test_code" >conftest.$ac_ext 8924eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8925_lt_linker_boilerplate=`cat conftest.err` 8926$RM -r conftest* 8927 8928 8929if test -n "$compiler"; then 8930 8931lt_prog_compiler_no_builtin_flag= 8932 8933if test yes = "$GCC"; then 8934 case $cc_basename in 8935 nvcc*) 8936 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8937 *) 8938 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8939 esac 8940 8941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8942printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8943if test ${lt_cv_prog_compiler_rtti_exceptions+y} 8944then : 8945 printf %s "(cached) " >&6 8946else $as_nop 8947 lt_cv_prog_compiler_rtti_exceptions=no 8948 ac_outfile=conftest.$ac_objext 8949 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8950 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8951 # Insert the option either (1) after the last *FLAGS variable, or 8952 # (2) before a word containing "conftest.", or (3) at the end. 8953 # Note that $ac_compile itself does not contain backslashes and begins 8954 # with a dollar sign (not a hyphen), so the echo should work correctly. 8955 # The option is referenced via a variable to avoid confusing sed. 8956 lt_compile=`echo "$ac_compile" | $SED \ 8957 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8959 -e 's:$: $lt_compiler_flag:'` 8960 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8961 (eval "$lt_compile" 2>conftest.err) 8962 ac_status=$? 8963 cat conftest.err >&5 8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8965 if (exit $ac_status) && test -s "$ac_outfile"; then 8966 # The compiler can only warn and ignore the option if not recognized 8967 # So say no if there are warnings other than the usual output. 8968 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8969 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8970 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8971 lt_cv_prog_compiler_rtti_exceptions=yes 8972 fi 8973 fi 8974 $RM conftest* 8975 8976fi 8977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8978printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8979 8980if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8981 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8982else 8983 : 8984fi 8985 8986fi 8987 8988 8989 8990 8991 8992 8993 lt_prog_compiler_wl= 8994lt_prog_compiler_pic= 8995lt_prog_compiler_static= 8996 8997 8998 if test yes = "$GCC"; then 8999 lt_prog_compiler_wl='-Wl,' 9000 lt_prog_compiler_static='-static' 9001 9002 case $host_os in 9003 aix*) 9004 # All AIX code is PIC. 9005 if test ia64 = "$host_cpu"; then 9006 # AIX 5 now supports IA64 processor 9007 lt_prog_compiler_static='-Bstatic' 9008 fi 9009 lt_prog_compiler_pic='-fPIC' 9010 ;; 9011 9012 amigaos*) 9013 case $host_cpu in 9014 powerpc) 9015 # see comment about AmigaOS4 .so support 9016 lt_prog_compiler_pic='-fPIC' 9017 ;; 9018 m68k) 9019 # FIXME: we need at least 68020 code to build shared libraries, but 9020 # adding the '-m68020' flag to GCC prevents building anything better, 9021 # like '-m68040'. 9022 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9023 ;; 9024 esac 9025 ;; 9026 9027 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9028 # PIC is the default for these OSes. 9029 ;; 9030 9031 mingw* | cygwin* | pw32* | os2* | cegcc*) 9032 # This hack is so that the source file can tell whether it is being 9033 # built for inclusion in a dll (and should export symbols for example). 9034 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9035 # (--disable-auto-import) libraries 9036 lt_prog_compiler_pic='-DDLL_EXPORT' 9037 case $host_os in 9038 os2*) 9039 lt_prog_compiler_static='$wl-static' 9040 ;; 9041 esac 9042 ;; 9043 9044 darwin* | rhapsody*) 9045 # PIC is the default on this platform 9046 # Common symbols not allowed in MH_DYLIB files 9047 lt_prog_compiler_pic='-fno-common' 9048 ;; 9049 9050 haiku*) 9051 # PIC is the default for Haiku. 9052 # The "-static" flag exists, but is broken. 9053 lt_prog_compiler_static= 9054 ;; 9055 9056 hpux*) 9057 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9058 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9059 # sets the default TLS model and affects inlining. 9060 case $host_cpu in 9061 hppa*64*) 9062 # +Z the default 9063 ;; 9064 *) 9065 lt_prog_compiler_pic='-fPIC' 9066 ;; 9067 esac 9068 ;; 9069 9070 interix[3-9]*) 9071 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9072 # Instead, we relocate shared libraries at runtime. 9073 ;; 9074 9075 msdosdjgpp*) 9076 # Just because we use GCC doesn't mean we suddenly get shared libraries 9077 # on systems that don't support them. 9078 lt_prog_compiler_can_build_shared=no 9079 enable_shared=no 9080 ;; 9081 9082 *nto* | *qnx*) 9083 # QNX uses GNU C++, but need to define -shared option too, otherwise 9084 # it will coredump. 9085 lt_prog_compiler_pic='-fPIC -shared' 9086 ;; 9087 9088 sysv4*MP*) 9089 if test -d /usr/nec; then 9090 lt_prog_compiler_pic=-Kconform_pic 9091 fi 9092 ;; 9093 9094 *) 9095 lt_prog_compiler_pic='-fPIC' 9096 ;; 9097 esac 9098 9099 case $cc_basename in 9100 nvcc*) # Cuda Compiler Driver 2.2 9101 lt_prog_compiler_wl='-Xlinker ' 9102 if test -n "$lt_prog_compiler_pic"; then 9103 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9104 fi 9105 ;; 9106 esac 9107 else 9108 # PORTME Check for flag to pass linker flags through the system compiler. 9109 case $host_os in 9110 aix*) 9111 lt_prog_compiler_wl='-Wl,' 9112 if test ia64 = "$host_cpu"; then 9113 # AIX 5 now supports IA64 processor 9114 lt_prog_compiler_static='-Bstatic' 9115 else 9116 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9117 fi 9118 ;; 9119 9120 darwin* | rhapsody*) 9121 # PIC is the default on this platform 9122 # Common symbols not allowed in MH_DYLIB files 9123 lt_prog_compiler_pic='-fno-common' 9124 case $cc_basename in 9125 nagfor*) 9126 # NAG Fortran compiler 9127 lt_prog_compiler_wl='-Wl,-Wl,,' 9128 lt_prog_compiler_pic='-PIC' 9129 lt_prog_compiler_static='-Bstatic' 9130 ;; 9131 esac 9132 ;; 9133 9134 mingw* | cygwin* | pw32* | os2* | cegcc*) 9135 # This hack is so that the source file can tell whether it is being 9136 # built for inclusion in a dll (and should export symbols for example). 9137 lt_prog_compiler_pic='-DDLL_EXPORT' 9138 case $host_os in 9139 os2*) 9140 lt_prog_compiler_static='$wl-static' 9141 ;; 9142 esac 9143 ;; 9144 9145 hpux9* | hpux10* | hpux11*) 9146 lt_prog_compiler_wl='-Wl,' 9147 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9148 # not for PA HP-UX. 9149 case $host_cpu in 9150 hppa*64*|ia64*) 9151 # +Z the default 9152 ;; 9153 *) 9154 lt_prog_compiler_pic='+Z' 9155 ;; 9156 esac 9157 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9158 lt_prog_compiler_static='$wl-a ${wl}archive' 9159 ;; 9160 9161 irix5* | irix6* | nonstopux*) 9162 lt_prog_compiler_wl='-Wl,' 9163 # PIC (with -KPIC) is the default. 9164 lt_prog_compiler_static='-non_shared' 9165 ;; 9166 9167 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9168 case $cc_basename in 9169 # old Intel for x86_64, which still supported -KPIC. 9170 ecc*) 9171 lt_prog_compiler_wl='-Wl,' 9172 lt_prog_compiler_pic='-KPIC' 9173 lt_prog_compiler_static='-static' 9174 ;; 9175 # icc used to be incompatible with GCC. 9176 # ICC 10 doesn't accept -KPIC any more. 9177 icc* | ifort*) 9178 lt_prog_compiler_wl='-Wl,' 9179 lt_prog_compiler_pic='-fPIC' 9180 lt_prog_compiler_static='-static' 9181 ;; 9182 # Lahey Fortran 8.1. 9183 lf95*) 9184 lt_prog_compiler_wl='-Wl,' 9185 lt_prog_compiler_pic='--shared' 9186 lt_prog_compiler_static='--static' 9187 ;; 9188 nagfor*) 9189 # NAG Fortran compiler 9190 lt_prog_compiler_wl='-Wl,-Wl,,' 9191 lt_prog_compiler_pic='-PIC' 9192 lt_prog_compiler_static='-Bstatic' 9193 ;; 9194 tcc*) 9195 # Fabrice Bellard et al's Tiny C Compiler 9196 lt_prog_compiler_wl='-Wl,' 9197 lt_prog_compiler_pic='-fPIC' 9198 lt_prog_compiler_static='-static' 9199 ;; 9200 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9201 # Portland Group compilers (*not* the Pentium gcc compiler, 9202 # which looks to be a dead project) 9203 lt_prog_compiler_wl='-Wl,' 9204 lt_prog_compiler_pic='-fpic' 9205 lt_prog_compiler_static='-Bstatic' 9206 ;; 9207 ccc*) 9208 lt_prog_compiler_wl='-Wl,' 9209 # All Alpha code is PIC. 9210 lt_prog_compiler_static='-non_shared' 9211 ;; 9212 xl* | bgxl* | bgf* | mpixl*) 9213 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9214 lt_prog_compiler_wl='-Wl,' 9215 lt_prog_compiler_pic='-qpic' 9216 lt_prog_compiler_static='-qstaticlink' 9217 ;; 9218 *) 9219 case `$CC -V 2>&1 | $SED 5q` in 9220 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9221 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9222 lt_prog_compiler_pic='-KPIC' 9223 lt_prog_compiler_static='-Bstatic' 9224 lt_prog_compiler_wl='' 9225 ;; 9226 *Sun\ F* | *Sun*Fortran*) 9227 lt_prog_compiler_pic='-KPIC' 9228 lt_prog_compiler_static='-Bstatic' 9229 lt_prog_compiler_wl='-Qoption ld ' 9230 ;; 9231 *Sun\ C*) 9232 # Sun C 5.9 9233 lt_prog_compiler_pic='-KPIC' 9234 lt_prog_compiler_static='-Bstatic' 9235 lt_prog_compiler_wl='-Wl,' 9236 ;; 9237 *Intel*\ [CF]*Compiler*) 9238 lt_prog_compiler_wl='-Wl,' 9239 lt_prog_compiler_pic='-fPIC' 9240 lt_prog_compiler_static='-static' 9241 ;; 9242 *Portland\ Group*) 9243 lt_prog_compiler_wl='-Wl,' 9244 lt_prog_compiler_pic='-fpic' 9245 lt_prog_compiler_static='-Bstatic' 9246 ;; 9247 esac 9248 ;; 9249 esac 9250 ;; 9251 9252 newsos6) 9253 lt_prog_compiler_pic='-KPIC' 9254 lt_prog_compiler_static='-Bstatic' 9255 ;; 9256 9257 *nto* | *qnx*) 9258 # QNX uses GNU C++, but need to define -shared option too, otherwise 9259 # it will coredump. 9260 lt_prog_compiler_pic='-fPIC -shared' 9261 ;; 9262 9263 osf3* | osf4* | osf5*) 9264 lt_prog_compiler_wl='-Wl,' 9265 # All OSF/1 code is PIC. 9266 lt_prog_compiler_static='-non_shared' 9267 ;; 9268 9269 rdos*) 9270 lt_prog_compiler_static='-non_shared' 9271 ;; 9272 9273 solaris*) 9274 lt_prog_compiler_pic='-KPIC' 9275 lt_prog_compiler_static='-Bstatic' 9276 case $cc_basename in 9277 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9278 lt_prog_compiler_wl='-Qoption ld ';; 9279 *) 9280 lt_prog_compiler_wl='-Wl,';; 9281 esac 9282 ;; 9283 9284 sunos4*) 9285 lt_prog_compiler_wl='-Qoption ld ' 9286 lt_prog_compiler_pic='-PIC' 9287 lt_prog_compiler_static='-Bstatic' 9288 ;; 9289 9290 sysv4 | sysv4.2uw2* | sysv4.3*) 9291 lt_prog_compiler_wl='-Wl,' 9292 lt_prog_compiler_pic='-KPIC' 9293 lt_prog_compiler_static='-Bstatic' 9294 ;; 9295 9296 sysv4*MP*) 9297 if test -d /usr/nec; then 9298 lt_prog_compiler_pic='-Kconform_pic' 9299 lt_prog_compiler_static='-Bstatic' 9300 fi 9301 ;; 9302 9303 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9304 lt_prog_compiler_wl='-Wl,' 9305 lt_prog_compiler_pic='-KPIC' 9306 lt_prog_compiler_static='-Bstatic' 9307 ;; 9308 9309 unicos*) 9310 lt_prog_compiler_wl='-Wl,' 9311 lt_prog_compiler_can_build_shared=no 9312 ;; 9313 9314 uts4*) 9315 lt_prog_compiler_pic='-pic' 9316 lt_prog_compiler_static='-Bstatic' 9317 ;; 9318 9319 *) 9320 lt_prog_compiler_can_build_shared=no 9321 ;; 9322 esac 9323 fi 9324 9325case $host_os in 9326 # For platforms that do not support PIC, -DPIC is meaningless: 9327 *djgpp*) 9328 lt_prog_compiler_pic= 9329 ;; 9330 *) 9331 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9332 ;; 9333esac 9334 9335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9336printf %s "checking for $compiler option to produce PIC... " >&6; } 9337if test ${lt_cv_prog_compiler_pic+y} 9338then : 9339 printf %s "(cached) " >&6 9340else $as_nop 9341 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9342fi 9343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9344printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9345lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9346 9347# 9348# Check to make sure the PIC flag actually works. 9349# 9350if test -n "$lt_prog_compiler_pic"; then 9351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9352printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9353if test ${lt_cv_prog_compiler_pic_works+y} 9354then : 9355 printf %s "(cached) " >&6 9356else $as_nop 9357 lt_cv_prog_compiler_pic_works=no 9358 ac_outfile=conftest.$ac_objext 9359 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9360 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9361 # Insert the option either (1) after the last *FLAGS variable, or 9362 # (2) before a word containing "conftest.", or (3) at the end. 9363 # Note that $ac_compile itself does not contain backslashes and begins 9364 # with a dollar sign (not a hyphen), so the echo should work correctly. 9365 # The option is referenced via a variable to avoid confusing sed. 9366 lt_compile=`echo "$ac_compile" | $SED \ 9367 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9369 -e 's:$: $lt_compiler_flag:'` 9370 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9371 (eval "$lt_compile" 2>conftest.err) 9372 ac_status=$? 9373 cat conftest.err >&5 9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9375 if (exit $ac_status) && test -s "$ac_outfile"; then 9376 # The compiler can only warn and ignore the option if not recognized 9377 # So say no if there are warnings other than the usual output. 9378 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9379 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9380 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9381 lt_cv_prog_compiler_pic_works=yes 9382 fi 9383 fi 9384 $RM conftest* 9385 9386fi 9387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9388printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9389 9390if test yes = "$lt_cv_prog_compiler_pic_works"; then 9391 case $lt_prog_compiler_pic in 9392 "" | " "*) ;; 9393 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9394 esac 9395else 9396 lt_prog_compiler_pic= 9397 lt_prog_compiler_can_build_shared=no 9398fi 9399 9400fi 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412# 9413# Check to make sure the static flag actually works. 9414# 9415wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9417printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9418if test ${lt_cv_prog_compiler_static_works+y} 9419then : 9420 printf %s "(cached) " >&6 9421else $as_nop 9422 lt_cv_prog_compiler_static_works=no 9423 save_LDFLAGS=$LDFLAGS 9424 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9425 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9426 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9427 # The linker can only warn and ignore the option if not recognized 9428 # So say no if there are warnings 9429 if test -s conftest.err; then 9430 # Append any errors to the config.log. 9431 cat conftest.err 1>&5 9432 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9433 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9434 if diff conftest.exp conftest.er2 >/dev/null; then 9435 lt_cv_prog_compiler_static_works=yes 9436 fi 9437 else 9438 lt_cv_prog_compiler_static_works=yes 9439 fi 9440 fi 9441 $RM -r conftest* 9442 LDFLAGS=$save_LDFLAGS 9443 9444fi 9445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9446printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9447 9448if test yes = "$lt_cv_prog_compiler_static_works"; then 9449 : 9450else 9451 lt_prog_compiler_static= 9452fi 9453 9454 9455 9456 9457 9458 9459 9460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9461printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9462if test ${lt_cv_prog_compiler_c_o+y} 9463then : 9464 printf %s "(cached) " >&6 9465else $as_nop 9466 lt_cv_prog_compiler_c_o=no 9467 $RM -r conftest 2>/dev/null 9468 mkdir conftest 9469 cd conftest 9470 mkdir out 9471 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9472 9473 lt_compiler_flag="-o out/conftest2.$ac_objext" 9474 # Insert the option either (1) after the last *FLAGS variable, or 9475 # (2) before a word containing "conftest.", or (3) at the end. 9476 # Note that $ac_compile itself does not contain backslashes and begins 9477 # with a dollar sign (not a hyphen), so the echo should work correctly. 9478 lt_compile=`echo "$ac_compile" | $SED \ 9479 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9480 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9481 -e 's:$: $lt_compiler_flag:'` 9482 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9483 (eval "$lt_compile" 2>out/conftest.err) 9484 ac_status=$? 9485 cat out/conftest.err >&5 9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9487 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9488 then 9489 # The compiler can only warn and ignore the option if not recognized 9490 # So say no if there are warnings 9491 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9492 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9493 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9494 lt_cv_prog_compiler_c_o=yes 9495 fi 9496 fi 9497 chmod u+w . 2>&5 9498 $RM conftest* 9499 # SGI C++ compiler will create directory out/ii_files/ for 9500 # template instantiation 9501 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9502 $RM out/* && rmdir out 9503 cd .. 9504 $RM -r conftest 9505 $RM conftest* 9506 9507fi 9508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9509printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9510 9511 9512 9513 9514 9515 9516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9517printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9518if test ${lt_cv_prog_compiler_c_o+y} 9519then : 9520 printf %s "(cached) " >&6 9521else $as_nop 9522 lt_cv_prog_compiler_c_o=no 9523 $RM -r conftest 2>/dev/null 9524 mkdir conftest 9525 cd conftest 9526 mkdir out 9527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9528 9529 lt_compiler_flag="-o out/conftest2.$ac_objext" 9530 # Insert the option either (1) after the last *FLAGS variable, or 9531 # (2) before a word containing "conftest.", or (3) at the end. 9532 # Note that $ac_compile itself does not contain backslashes and begins 9533 # with a dollar sign (not a hyphen), so the echo should work correctly. 9534 lt_compile=`echo "$ac_compile" | $SED \ 9535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9537 -e 's:$: $lt_compiler_flag:'` 9538 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9539 (eval "$lt_compile" 2>out/conftest.err) 9540 ac_status=$? 9541 cat out/conftest.err >&5 9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9543 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9544 then 9545 # The compiler can only warn and ignore the option if not recognized 9546 # So say no if there are warnings 9547 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9548 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9549 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9550 lt_cv_prog_compiler_c_o=yes 9551 fi 9552 fi 9553 chmod u+w . 2>&5 9554 $RM conftest* 9555 # SGI C++ compiler will create directory out/ii_files/ for 9556 # template instantiation 9557 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9558 $RM out/* && rmdir out 9559 cd .. 9560 $RM -r conftest 9561 $RM conftest* 9562 9563fi 9564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9565printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9566 9567 9568 9569 9570hard_links=nottested 9571if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9572 # do not overwrite the value of need_locks provided by the user 9573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9574printf %s "checking if we can lock with hard links... " >&6; } 9575 hard_links=yes 9576 $RM conftest* 9577 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9578 touch conftest.a 9579 ln conftest.a conftest.b 2>&5 || hard_links=no 9580 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9582printf "%s\n" "$hard_links" >&6; } 9583 if test no = "$hard_links"; then 9584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9585printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9586 need_locks=warn 9587 fi 9588else 9589 need_locks=no 9590fi 9591 9592 9593 9594 9595 9596 9597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9598printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9599 9600 runpath_var= 9601 allow_undefined_flag= 9602 always_export_symbols=no 9603 archive_cmds= 9604 archive_expsym_cmds= 9605 compiler_needs_object=no 9606 enable_shared_with_static_runtimes=no 9607 export_dynamic_flag_spec= 9608 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9609 hardcode_automatic=no 9610 hardcode_direct=no 9611 hardcode_direct_absolute=no 9612 hardcode_libdir_flag_spec= 9613 hardcode_libdir_separator= 9614 hardcode_minus_L=no 9615 hardcode_shlibpath_var=unsupported 9616 inherit_rpath=no 9617 link_all_deplibs=unknown 9618 module_cmds= 9619 module_expsym_cmds= 9620 old_archive_from_new_cmds= 9621 old_archive_from_expsyms_cmds= 9622 thread_safe_flag_spec= 9623 whole_archive_flag_spec= 9624 # include_expsyms should be a list of space-separated symbols to be *always* 9625 # included in the symbol list 9626 include_expsyms= 9627 # exclude_expsyms can be an extended regexp of symbols to exclude 9628 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9629 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9630 # as well as any symbol that contains 'd'. 9631 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9632 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9633 # platforms (ab)use it in PIC code, but their linkers get confused if 9634 # the symbol is explicitly referenced. Since portable code cannot 9635 # rely on this symbol name, it's probably fine to never include it in 9636 # preloaded symbol tables. 9637 # Exclude shared library initialization/finalization symbols. 9638 extract_expsyms_cmds= 9639 9640 case $host_os in 9641 cygwin* | mingw* | pw32* | cegcc*) 9642 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9643 # When not using gcc, we currently assume that we are using 9644 # Microsoft Visual C++ or Intel C++ Compiler. 9645 if test yes != "$GCC"; then 9646 with_gnu_ld=no 9647 fi 9648 ;; 9649 interix*) 9650 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9651 with_gnu_ld=yes 9652 ;; 9653 openbsd* | bitrig*) 9654 with_gnu_ld=no 9655 ;; 9656 esac 9657 9658 ld_shlibs=yes 9659 9660 # On some targets, GNU ld is compatible enough with the native linker 9661 # that we're better off using the native interface for both. 9662 lt_use_gnu_ld_interface=no 9663 if test yes = "$with_gnu_ld"; then 9664 case $host_os in 9665 aix*) 9666 # The AIX port of GNU ld has always aspired to compatibility 9667 # with the native linker. However, as the warning in the GNU ld 9668 # block says, versions before 2.19.5* couldn't really create working 9669 # shared libraries, regardless of the interface used. 9670 case `$LD -v 2>&1` in 9671 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9672 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9673 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9674 *) 9675 lt_use_gnu_ld_interface=yes 9676 ;; 9677 esac 9678 ;; 9679 *) 9680 lt_use_gnu_ld_interface=yes 9681 ;; 9682 esac 9683 fi 9684 9685 if test yes = "$lt_use_gnu_ld_interface"; then 9686 # If archive_cmds runs LD, not CC, wlarc should be empty 9687 wlarc='$wl' 9688 9689 # Set some defaults for GNU ld with shared library support. These 9690 # are reset later if shared libraries are not supported. Putting them 9691 # here allows them to be overridden if necessary. 9692 runpath_var=LD_RUN_PATH 9693 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9694 export_dynamic_flag_spec='$wl--export-dynamic' 9695 # ancient GNU ld didn't support --whole-archive et. al. 9696 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9697 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9698 else 9699 whole_archive_flag_spec= 9700 fi 9701 supports_anon_versioning=no 9702 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9703 *GNU\ gold*) supports_anon_versioning=yes ;; 9704 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9705 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9706 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9707 *\ 2.11.*) ;; # other 2.11 versions 9708 *) supports_anon_versioning=yes ;; 9709 esac 9710 9711 # See if GNU ld supports shared libraries. 9712 case $host_os in 9713 aix[3-9]*) 9714 # On AIX/PPC, the GNU linker is very broken 9715 if test ia64 != "$host_cpu"; then 9716 ld_shlibs=no 9717 cat <<_LT_EOF 1>&2 9718 9719*** Warning: the GNU linker, at least up to release 2.19, is reported 9720*** to be unable to reliably create shared libraries on AIX. 9721*** Therefore, libtool is disabling shared libraries support. If you 9722*** really care for shared libraries, you may want to install binutils 9723*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9724*** You will then need to restart the configuration process. 9725 9726_LT_EOF 9727 fi 9728 ;; 9729 9730 amigaos*) 9731 case $host_cpu in 9732 powerpc) 9733 # see comment about AmigaOS4 .so support 9734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9735 archive_expsym_cmds='' 9736 ;; 9737 m68k) 9738 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)' 9739 hardcode_libdir_flag_spec='-L$libdir' 9740 hardcode_minus_L=yes 9741 ;; 9742 esac 9743 ;; 9744 9745 beos*) 9746 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9747 allow_undefined_flag=unsupported 9748 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9749 # support --undefined. This deserves some investigation. FIXME 9750 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9751 else 9752 ld_shlibs=no 9753 fi 9754 ;; 9755 9756 cygwin* | mingw* | pw32* | cegcc*) 9757 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9758 # as there is no search path for DLLs. 9759 hardcode_libdir_flag_spec='-L$libdir' 9760 export_dynamic_flag_spec='$wl--export-all-symbols' 9761 allow_undefined_flag=unsupported 9762 always_export_symbols=no 9763 enable_shared_with_static_runtimes=yes 9764 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' 9765 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9766 9767 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9768 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9769 # If the export-symbols file already is a .def file, use it as 9770 # is; otherwise, prepend EXPORTS... 9771 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9772 cp $export_symbols $output_objdir/$soname.def; 9773 else 9774 echo EXPORTS > $output_objdir/$soname.def; 9775 cat $export_symbols >> $output_objdir/$soname.def; 9776 fi~ 9777 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9778 else 9779 ld_shlibs=no 9780 fi 9781 ;; 9782 9783 haiku*) 9784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9785 link_all_deplibs=yes 9786 ;; 9787 9788 os2*) 9789 hardcode_libdir_flag_spec='-L$libdir' 9790 hardcode_minus_L=yes 9791 allow_undefined_flag=unsupported 9792 shrext_cmds=.dll 9793 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9794 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9795 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9796 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9797 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9798 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9799 emximp -o $lib $output_objdir/$libname.def' 9800 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9801 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9802 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9803 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9804 prefix_cmds="$SED"~ 9805 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9806 prefix_cmds="$prefix_cmds -e 1d"; 9807 fi~ 9808 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9809 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9810 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9811 emximp -o $lib $output_objdir/$libname.def' 9812 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9813 enable_shared_with_static_runtimes=yes 9814 file_list_spec='@' 9815 ;; 9816 9817 interix[3-9]*) 9818 hardcode_direct=no 9819 hardcode_shlibpath_var=no 9820 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9821 export_dynamic_flag_spec='$wl-E' 9822 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9823 # Instead, shared libraries are loaded at an image base (0x10000000 by 9824 # default) and relocated if they conflict, which is a slow very memory 9825 # consuming and fragmenting process. To avoid this, we pick a random, 9826 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9827 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9828 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9829 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' 9830 ;; 9831 9832 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9833 tmp_diet=no 9834 if test linux-dietlibc = "$host_os"; then 9835 case $cc_basename in 9836 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9837 esac 9838 fi 9839 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9840 && test no = "$tmp_diet" 9841 then 9842 tmp_addflag=' $pic_flag' 9843 tmp_sharedflag='-shared' 9844 case $cc_basename,$host_cpu in 9845 pgcc*) # Portland Group C compiler 9846 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' 9847 tmp_addflag=' $pic_flag' 9848 ;; 9849 pgf77* | pgf90* | pgf95* | pgfortran*) 9850 # Portland Group f77 and f90 compilers 9851 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' 9852 tmp_addflag=' $pic_flag -Mnomain' ;; 9853 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9854 tmp_addflag=' -i_dynamic' ;; 9855 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9856 tmp_addflag=' -i_dynamic -nofor_main' ;; 9857 ifc* | ifort*) # Intel Fortran compiler 9858 tmp_addflag=' -nofor_main' ;; 9859 lf95*) # Lahey Fortran 8.1 9860 whole_archive_flag_spec= 9861 tmp_sharedflag='--shared' ;; 9862 nagfor*) # NAGFOR 5.3 9863 tmp_sharedflag='-Wl,-shared' ;; 9864 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9865 tmp_sharedflag='-qmkshrobj' 9866 tmp_addflag= ;; 9867 nvcc*) # Cuda Compiler Driver 2.2 9868 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' 9869 compiler_needs_object=yes 9870 ;; 9871 esac 9872 case `$CC -V 2>&1 | $SED 5q` in 9873 *Sun\ C*) # Sun C 5.9 9874 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' 9875 compiler_needs_object=yes 9876 tmp_sharedflag='-G' ;; 9877 *Sun\ F*) # Sun Fortran 8.3 9878 tmp_sharedflag='-G' ;; 9879 esac 9880 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9881 9882 if test yes = "$supports_anon_versioning"; then 9883 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9884 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9885 echo "local: *; };" >> $output_objdir/$libname.ver~ 9886 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9887 fi 9888 9889 case $cc_basename in 9890 tcc*) 9891 export_dynamic_flag_spec='-rdynamic' 9892 ;; 9893 xlf* | bgf* | bgxlf* | mpixlf*) 9894 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9895 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9896 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9897 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9898 if test yes = "$supports_anon_versioning"; then 9899 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9900 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9901 echo "local: *; };" >> $output_objdir/$libname.ver~ 9902 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9903 fi 9904 ;; 9905 esac 9906 else 9907 ld_shlibs=no 9908 fi 9909 ;; 9910 9911 netbsd*) 9912 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9913 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9914 wlarc= 9915 else 9916 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9917 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9918 fi 9919 ;; 9920 9921 solaris*) 9922 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9923 ld_shlibs=no 9924 cat <<_LT_EOF 1>&2 9925 9926*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9927*** create shared libraries on Solaris systems. Therefore, libtool 9928*** is disabling shared libraries support. We urge you to upgrade GNU 9929*** binutils to release 2.9.1 or newer. Another option is to modify 9930*** your PATH or compiler configuration so that the native linker is 9931*** used, and then restart. 9932 9933_LT_EOF 9934 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9935 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9936 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9937 else 9938 ld_shlibs=no 9939 fi 9940 ;; 9941 9942 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9943 case `$LD -v 2>&1` in 9944 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9945 ld_shlibs=no 9946 cat <<_LT_EOF 1>&2 9947 9948*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9949*** reliably create shared libraries on SCO systems. Therefore, libtool 9950*** is disabling shared libraries support. We urge you to upgrade GNU 9951*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9952*** your PATH or compiler configuration so that the native linker is 9953*** used, and then restart. 9954 9955_LT_EOF 9956 ;; 9957 *) 9958 # For security reasons, it is highly recommended that you always 9959 # use absolute paths for naming shared libraries, and exclude the 9960 # DT_RUNPATH tag from executables and libraries. But doing so 9961 # requires that you compile everything twice, which is a pain. 9962 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9963 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9964 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9965 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9966 else 9967 ld_shlibs=no 9968 fi 9969 ;; 9970 esac 9971 ;; 9972 9973 sunos4*) 9974 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9975 wlarc= 9976 hardcode_direct=yes 9977 hardcode_shlibpath_var=no 9978 ;; 9979 9980 *) 9981 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9982 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9983 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9984 else 9985 ld_shlibs=no 9986 fi 9987 ;; 9988 esac 9989 9990 if test no = "$ld_shlibs"; then 9991 runpath_var= 9992 hardcode_libdir_flag_spec= 9993 export_dynamic_flag_spec= 9994 whole_archive_flag_spec= 9995 fi 9996 else 9997 # PORTME fill in a description of your system's linker (not GNU ld) 9998 case $host_os in 9999 aix3*) 10000 allow_undefined_flag=unsupported 10001 always_export_symbols=yes 10002 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' 10003 # Note: this linker hardcodes the directories in LIBPATH if there 10004 # are no directories specified by -L. 10005 hardcode_minus_L=yes 10006 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10007 # Neither direct hardcoding nor static linking is supported with a 10008 # broken collect2. 10009 hardcode_direct=unsupported 10010 fi 10011 ;; 10012 10013 aix[4-9]*) 10014 if test ia64 = "$host_cpu"; then 10015 # On IA64, the linker does run time linking by default, so we don't 10016 # have to do anything special. 10017 aix_use_runtimelinking=no 10018 exp_sym_flag='-Bexport' 10019 no_entry_flag= 10020 else 10021 # If we're using GNU nm, then we don't want the "-C" option. 10022 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10023 # Without the "-l" option, or with the "-B" option, AIX nm treats 10024 # weak defined symbols like other global defined symbols, whereas 10025 # GNU nm marks them as "W". 10026 # While the 'weak' keyword is ignored in the Export File, we need 10027 # it in the Import File for the 'aix-soname' feature, so we have 10028 # to replace the "-B" option with "-P" for AIX nm. 10029 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10030 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' 10031 else 10032 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' 10033 fi 10034 aix_use_runtimelinking=no 10035 10036 # Test if we are trying to use run time linking or normal 10037 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10038 # have runtime linking enabled, and use it for executables. 10039 # For shared libraries, we enable/disable runtime linking 10040 # depending on the kind of the shared library created - 10041 # when "with_aix_soname,aix_use_runtimelinking" is: 10042 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10043 # "aix,yes" lib.so shared, rtl:yes, for executables 10044 # lib.a static archive 10045 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10046 # lib.a(lib.so.V) shared, rtl:no, for executables 10047 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10048 # lib.a(lib.so.V) shared, rtl:no 10049 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10050 # lib.a static archive 10051 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10052 for ld_flag in $LDFLAGS; do 10053 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10054 aix_use_runtimelinking=yes 10055 break 10056 fi 10057 done 10058 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10059 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10060 # so we don't have lib.a shared libs to link our executables. 10061 # We have to force runtime linking in this case. 10062 aix_use_runtimelinking=yes 10063 LDFLAGS="$LDFLAGS -Wl,-brtl" 10064 fi 10065 ;; 10066 esac 10067 10068 exp_sym_flag='-bexport' 10069 no_entry_flag='-bnoentry' 10070 fi 10071 10072 # When large executables or shared objects are built, AIX ld can 10073 # have problems creating the table of contents. If linking a library 10074 # or program results in "error TOC overflow" add -mminimal-toc to 10075 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10076 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10077 10078 archive_cmds='' 10079 hardcode_direct=yes 10080 hardcode_direct_absolute=yes 10081 hardcode_libdir_separator=':' 10082 link_all_deplibs=yes 10083 file_list_spec='$wl-f,' 10084 case $with_aix_soname,$aix_use_runtimelinking in 10085 aix,*) ;; # traditional, no import file 10086 svr4,* | *,yes) # use import file 10087 # The Import File defines what to hardcode. 10088 hardcode_direct=no 10089 hardcode_direct_absolute=no 10090 ;; 10091 esac 10092 10093 if test yes = "$GCC"; then 10094 case $host_os in aix4.[012]|aix4.[012].*) 10095 # We only want to do this on AIX 4.2 and lower, the check 10096 # below for broken collect2 doesn't work under 4.3+ 10097 collect2name=`$CC -print-prog-name=collect2` 10098 if test -f "$collect2name" && 10099 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10100 then 10101 # We have reworked collect2 10102 : 10103 else 10104 # We have old collect2 10105 hardcode_direct=unsupported 10106 # It fails to find uninstalled libraries when the uninstalled 10107 # path is not listed in the libpath. Setting hardcode_minus_L 10108 # to unsupported forces relinking 10109 hardcode_minus_L=yes 10110 hardcode_libdir_flag_spec='-L$libdir' 10111 hardcode_libdir_separator= 10112 fi 10113 ;; 10114 esac 10115 shared_flag='-shared' 10116 if test yes = "$aix_use_runtimelinking"; then 10117 shared_flag="$shared_flag "'$wl-G' 10118 fi 10119 # Need to ensure runtime linking is disabled for the traditional 10120 # shared library, or the linker may eventually find shared libraries 10121 # /with/ Import File - we do not want to mix them. 10122 shared_flag_aix='-shared' 10123 shared_flag_svr4='-shared $wl-G' 10124 else 10125 # not using gcc 10126 if test ia64 = "$host_cpu"; then 10127 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10128 # chokes on -Wl,-G. The following line is correct: 10129 shared_flag='-G' 10130 else 10131 if test yes = "$aix_use_runtimelinking"; then 10132 shared_flag='$wl-G' 10133 else 10134 shared_flag='$wl-bM:SRE' 10135 fi 10136 shared_flag_aix='$wl-bM:SRE' 10137 shared_flag_svr4='$wl-G' 10138 fi 10139 fi 10140 10141 export_dynamic_flag_spec='$wl-bexpall' 10142 # It seems that -bexpall does not export symbols beginning with 10143 # underscore (_), so it is better to generate a list of symbols to export. 10144 always_export_symbols=yes 10145 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10146 # Warning - without using the other runtime loading flags (-brtl), 10147 # -berok will link without error, but may produce a broken library. 10148 allow_undefined_flag='-berok' 10149 # Determine the default libpath from the value encoded in an 10150 # empty executable. 10151 if test set = "${lt_cv_aix_libpath+set}"; then 10152 aix_libpath=$lt_cv_aix_libpath 10153else 10154 if test ${lt_cv_aix_libpath_+y} 10155then : 10156 printf %s "(cached) " >&6 10157else $as_nop 10158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10159/* end confdefs.h. */ 10160 10161int 10162main (void) 10163{ 10164 10165 ; 10166 return 0; 10167} 10168_ACEOF 10169if ac_fn_c_try_link "$LINENO" 10170then : 10171 10172 lt_aix_libpath_sed=' 10173 /Import File Strings/,/^$/ { 10174 /^0/ { 10175 s/^0 *\([^ ]*\) *$/\1/ 10176 p 10177 } 10178 }' 10179 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10180 # Check for a 64-bit object if we didn't find anything. 10181 if test -z "$lt_cv_aix_libpath_"; then 10182 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10183 fi 10184fi 10185rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10186 conftest$ac_exeext conftest.$ac_ext 10187 if test -z "$lt_cv_aix_libpath_"; then 10188 lt_cv_aix_libpath_=/usr/lib:/lib 10189 fi 10190 10191fi 10192 10193 aix_libpath=$lt_cv_aix_libpath_ 10194fi 10195 10196 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10197 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 10198 else 10199 if test ia64 = "$host_cpu"; then 10200 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10201 allow_undefined_flag="-z nodefs" 10202 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" 10203 else 10204 # Determine the default libpath from the value encoded in an 10205 # empty executable. 10206 if test set = "${lt_cv_aix_libpath+set}"; then 10207 aix_libpath=$lt_cv_aix_libpath 10208else 10209 if test ${lt_cv_aix_libpath_+y} 10210then : 10211 printf %s "(cached) " >&6 10212else $as_nop 10213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10214/* end confdefs.h. */ 10215 10216int 10217main (void) 10218{ 10219 10220 ; 10221 return 0; 10222} 10223_ACEOF 10224if ac_fn_c_try_link "$LINENO" 10225then : 10226 10227 lt_aix_libpath_sed=' 10228 /Import File Strings/,/^$/ { 10229 /^0/ { 10230 s/^0 *\([^ ]*\) *$/\1/ 10231 p 10232 } 10233 }' 10234 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10235 # Check for a 64-bit object if we didn't find anything. 10236 if test -z "$lt_cv_aix_libpath_"; then 10237 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10238 fi 10239fi 10240rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10241 conftest$ac_exeext conftest.$ac_ext 10242 if test -z "$lt_cv_aix_libpath_"; then 10243 lt_cv_aix_libpath_=/usr/lib:/lib 10244 fi 10245 10246fi 10247 10248 aix_libpath=$lt_cv_aix_libpath_ 10249fi 10250 10251 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10252 # Warning - without using the other run time loading flags, 10253 # -berok will link without error, but may produce a broken library. 10254 no_undefined_flag=' $wl-bernotok' 10255 allow_undefined_flag=' $wl-berok' 10256 if test yes = "$with_gnu_ld"; then 10257 # We only use this code for GNU lds that support --whole-archive. 10258 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10259 else 10260 # Exported symbols can be pulled into shared objects from archives 10261 whole_archive_flag_spec='$convenience' 10262 fi 10263 archive_cmds_need_lc=yes 10264 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10265 # -brtl affects multiple linker settings, -berok does not and is overridden later 10266 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10267 if test svr4 != "$with_aix_soname"; then 10268 # This is similar to how AIX traditionally builds its shared libraries. 10269 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' 10270 fi 10271 if test aix != "$with_aix_soname"; then 10272 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' 10273 else 10274 # used by -dlpreopen to get the symbols 10275 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10276 fi 10277 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10278 fi 10279 fi 10280 ;; 10281 10282 amigaos*) 10283 case $host_cpu in 10284 powerpc) 10285 # see comment about AmigaOS4 .so support 10286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10287 archive_expsym_cmds='' 10288 ;; 10289 m68k) 10290 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)' 10291 hardcode_libdir_flag_spec='-L$libdir' 10292 hardcode_minus_L=yes 10293 ;; 10294 esac 10295 ;; 10296 10297 bsdi[45]*) 10298 export_dynamic_flag_spec=-rdynamic 10299 ;; 10300 10301 cygwin* | mingw* | pw32* | cegcc*) 10302 # When not using gcc, we currently assume that we are using 10303 # Microsoft Visual C++ or Intel C++ Compiler. 10304 # hardcode_libdir_flag_spec is actually meaningless, as there is 10305 # no search path for DLLs. 10306 case $cc_basename in 10307 cl* | icl*) 10308 # Native MSVC or ICC 10309 hardcode_libdir_flag_spec=' ' 10310 allow_undefined_flag=unsupported 10311 always_export_symbols=yes 10312 file_list_spec='@' 10313 # Tell ltmain to make .lib files, not .a files. 10314 libext=lib 10315 # Tell ltmain to make .dll files, not .so files. 10316 shrext_cmds=.dll 10317 # FIXME: Setting linknames here is a bad hack. 10318 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10319 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10320 cp "$export_symbols" "$output_objdir/$soname.def"; 10321 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10322 else 10323 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10324 fi~ 10325 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10326 linknames=' 10327 # The linker will not automatically build a static lib if we build a DLL. 10328 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10329 enable_shared_with_static_runtimes=yes 10330 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10331 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10332 # Don't use ranlib 10333 old_postinstall_cmds='chmod 644 $oldlib' 10334 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10335 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10336 case $lt_outputfile in 10337 *.exe|*.EXE) ;; 10338 *) 10339 lt_outputfile=$lt_outputfile.exe 10340 lt_tool_outputfile=$lt_tool_outputfile.exe 10341 ;; 10342 esac~ 10343 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10344 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10345 $RM "$lt_outputfile.manifest"; 10346 fi' 10347 ;; 10348 *) 10349 # Assume MSVC and ICC wrapper 10350 hardcode_libdir_flag_spec=' ' 10351 allow_undefined_flag=unsupported 10352 # Tell ltmain to make .lib files, not .a files. 10353 libext=lib 10354 # Tell ltmain to make .dll files, not .so files. 10355 shrext_cmds=.dll 10356 # FIXME: Setting linknames here is a bad hack. 10357 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10358 # The linker will automatically build a .lib file if we build a DLL. 10359 old_archive_from_new_cmds='true' 10360 # FIXME: Should let the user specify the lib program. 10361 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10362 enable_shared_with_static_runtimes=yes 10363 ;; 10364 esac 10365 ;; 10366 10367 darwin* | rhapsody*) 10368 10369 10370 archive_cmds_need_lc=no 10371 hardcode_direct=no 10372 hardcode_automatic=yes 10373 hardcode_shlibpath_var=unsupported 10374 if test yes = "$lt_cv_ld_force_load"; then 10375 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\"`' 10376 10377 else 10378 whole_archive_flag_spec='' 10379 fi 10380 link_all_deplibs=yes 10381 allow_undefined_flag=$_lt_dar_allow_undefined 10382 case $cc_basename in 10383 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10384 *) _lt_dar_can_shared=$GCC ;; 10385 esac 10386 if test yes = "$_lt_dar_can_shared"; then 10387 output_verbose_link_cmd=func_echo_all 10388 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10389 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10390 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" 10391 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" 10392 10393 else 10394 ld_shlibs=no 10395 fi 10396 10397 ;; 10398 10399 dgux*) 10400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10401 hardcode_libdir_flag_spec='-L$libdir' 10402 hardcode_shlibpath_var=no 10403 ;; 10404 10405 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10406 # support. Future versions do this automatically, but an explicit c++rt0.o 10407 # does not break anything, and helps significantly (at the cost of a little 10408 # extra space). 10409 freebsd2.2*) 10410 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10411 hardcode_libdir_flag_spec='-R$libdir' 10412 hardcode_direct=yes 10413 hardcode_shlibpath_var=no 10414 ;; 10415 10416 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10417 freebsd2.*) 10418 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10419 hardcode_direct=yes 10420 hardcode_minus_L=yes 10421 hardcode_shlibpath_var=no 10422 ;; 10423 10424 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10425 freebsd* | dragonfly* | midnightbsd*) 10426 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10427 hardcode_libdir_flag_spec='-R$libdir' 10428 hardcode_direct=yes 10429 hardcode_shlibpath_var=no 10430 ;; 10431 10432 hpux9*) 10433 if test yes = "$GCC"; then 10434 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' 10435 else 10436 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' 10437 fi 10438 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10439 hardcode_libdir_separator=: 10440 hardcode_direct=yes 10441 10442 # hardcode_minus_L: Not really in the search PATH, 10443 # but as the default location of the library. 10444 hardcode_minus_L=yes 10445 export_dynamic_flag_spec='$wl-E' 10446 ;; 10447 10448 hpux10*) 10449 if test yes,no = "$GCC,$with_gnu_ld"; then 10450 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10451 else 10452 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10453 fi 10454 if test no = "$with_gnu_ld"; then 10455 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10456 hardcode_libdir_separator=: 10457 hardcode_direct=yes 10458 hardcode_direct_absolute=yes 10459 export_dynamic_flag_spec='$wl-E' 10460 # hardcode_minus_L: Not really in the search PATH, 10461 # but as the default location of the library. 10462 hardcode_minus_L=yes 10463 fi 10464 ;; 10465 10466 hpux11*) 10467 if test yes,no = "$GCC,$with_gnu_ld"; then 10468 case $host_cpu in 10469 hppa*64*) 10470 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10471 ;; 10472 ia64*) 10473 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10474 ;; 10475 *) 10476 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10477 ;; 10478 esac 10479 else 10480 case $host_cpu in 10481 hppa*64*) 10482 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10483 ;; 10484 ia64*) 10485 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10486 ;; 10487 *) 10488 10489 # Older versions of the 11.00 compiler do not understand -b yet 10490 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10492printf %s "checking if $CC understands -b... " >&6; } 10493if test ${lt_cv_prog_compiler__b+y} 10494then : 10495 printf %s "(cached) " >&6 10496else $as_nop 10497 lt_cv_prog_compiler__b=no 10498 save_LDFLAGS=$LDFLAGS 10499 LDFLAGS="$LDFLAGS -b" 10500 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10501 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10502 # The linker can only warn and ignore the option if not recognized 10503 # So say no if there are warnings 10504 if test -s conftest.err; then 10505 # Append any errors to the config.log. 10506 cat conftest.err 1>&5 10507 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10508 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10509 if diff conftest.exp conftest.er2 >/dev/null; then 10510 lt_cv_prog_compiler__b=yes 10511 fi 10512 else 10513 lt_cv_prog_compiler__b=yes 10514 fi 10515 fi 10516 $RM -r conftest* 10517 LDFLAGS=$save_LDFLAGS 10518 10519fi 10520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10521printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10522 10523if test yes = "$lt_cv_prog_compiler__b"; then 10524 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10525else 10526 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10527fi 10528 10529 ;; 10530 esac 10531 fi 10532 if test no = "$with_gnu_ld"; then 10533 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10534 hardcode_libdir_separator=: 10535 10536 case $host_cpu in 10537 hppa*64*|ia64*) 10538 hardcode_direct=no 10539 hardcode_shlibpath_var=no 10540 ;; 10541 *) 10542 hardcode_direct=yes 10543 hardcode_direct_absolute=yes 10544 export_dynamic_flag_spec='$wl-E' 10545 10546 # hardcode_minus_L: Not really in the search PATH, 10547 # but as the default location of the library. 10548 hardcode_minus_L=yes 10549 ;; 10550 esac 10551 fi 10552 ;; 10553 10554 irix5* | irix6* | nonstopux*) 10555 if test yes = "$GCC"; then 10556 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' 10557 # Try to use the -exported_symbol ld option, if it does not 10558 # work, assume that -exports_file does not work either and 10559 # implicitly export all symbols. 10560 # This should be the same for all languages, so no per-tag cache variable. 10561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10562printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10563if test ${lt_cv_irix_exported_symbol+y} 10564then : 10565 printf %s "(cached) " >&6 10566else $as_nop 10567 save_LDFLAGS=$LDFLAGS 10568 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10570/* end confdefs.h. */ 10571int foo (void) { return 0; } 10572_ACEOF 10573if ac_fn_c_try_link "$LINENO" 10574then : 10575 lt_cv_irix_exported_symbol=yes 10576else $as_nop 10577 lt_cv_irix_exported_symbol=no 10578fi 10579rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10580 conftest$ac_exeext conftest.$ac_ext 10581 LDFLAGS=$save_LDFLAGS 10582fi 10583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10584printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10585 if test yes = "$lt_cv_irix_exported_symbol"; then 10586 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' 10587 fi 10588 else 10589 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' 10590 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' 10591 fi 10592 archive_cmds_need_lc='no' 10593 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10594 hardcode_libdir_separator=: 10595 inherit_rpath=yes 10596 link_all_deplibs=yes 10597 ;; 10598 10599 linux*) 10600 case $cc_basename in 10601 tcc*) 10602 # Fabrice Bellard et al's Tiny C Compiler 10603 ld_shlibs=yes 10604 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10605 ;; 10606 esac 10607 ;; 10608 10609 netbsd*) 10610 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10611 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10612 else 10613 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10614 fi 10615 hardcode_libdir_flag_spec='-R$libdir' 10616 hardcode_direct=yes 10617 hardcode_shlibpath_var=no 10618 ;; 10619 10620 newsos6) 10621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10622 hardcode_direct=yes 10623 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10624 hardcode_libdir_separator=: 10625 hardcode_shlibpath_var=no 10626 ;; 10627 10628 *nto* | *qnx*) 10629 ;; 10630 10631 openbsd* | bitrig*) 10632 if test -f /usr/libexec/ld.so; then 10633 hardcode_direct=yes 10634 hardcode_shlibpath_var=no 10635 hardcode_direct_absolute=yes 10636 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10637 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10638 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10639 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10640 export_dynamic_flag_spec='$wl-E' 10641 else 10642 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10643 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10644 fi 10645 else 10646 ld_shlibs=no 10647 fi 10648 ;; 10649 10650 os2*) 10651 hardcode_libdir_flag_spec='-L$libdir' 10652 hardcode_minus_L=yes 10653 allow_undefined_flag=unsupported 10654 shrext_cmds=.dll 10655 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10656 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10657 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10658 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10659 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10660 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10661 emximp -o $lib $output_objdir/$libname.def' 10662 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10663 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10664 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10665 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10666 prefix_cmds="$SED"~ 10667 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10668 prefix_cmds="$prefix_cmds -e 1d"; 10669 fi~ 10670 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10671 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10672 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10673 emximp -o $lib $output_objdir/$libname.def' 10674 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10675 enable_shared_with_static_runtimes=yes 10676 file_list_spec='@' 10677 ;; 10678 10679 osf3*) 10680 if test yes = "$GCC"; then 10681 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10682 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' 10683 else 10684 allow_undefined_flag=' -expect_unresolved \*' 10685 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' 10686 fi 10687 archive_cmds_need_lc='no' 10688 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10689 hardcode_libdir_separator=: 10690 ;; 10691 10692 osf4* | osf5*) # as osf3* with the addition of -msym flag 10693 if test yes = "$GCC"; then 10694 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10695 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' 10696 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10697 else 10698 allow_undefined_flag=' -expect_unresolved \*' 10699 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' 10700 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~ 10701 $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' 10702 10703 # Both c and cxx compiler support -rpath directly 10704 hardcode_libdir_flag_spec='-rpath $libdir' 10705 fi 10706 archive_cmds_need_lc='no' 10707 hardcode_libdir_separator=: 10708 ;; 10709 10710 solaris*) 10711 no_undefined_flag=' -z defs' 10712 if test yes = "$GCC"; then 10713 wlarc='$wl' 10714 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10715 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10716 $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' 10717 else 10718 case `$CC -V 2>&1` in 10719 *"Compilers 5.0"*) 10720 wlarc='' 10721 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10722 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10723 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10724 ;; 10725 *) 10726 wlarc='$wl' 10727 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10728 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10729 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10730 ;; 10731 esac 10732 fi 10733 hardcode_libdir_flag_spec='-R$libdir' 10734 hardcode_shlibpath_var=no 10735 case $host_os in 10736 solaris2.[0-5] | solaris2.[0-5].*) ;; 10737 *) 10738 # The compiler driver will combine and reorder linker options, 10739 # but understands '-z linker_flag'. GCC discards it without '$wl', 10740 # but is careful enough not to reorder. 10741 # Supported since Solaris 2.6 (maybe 2.5.1?) 10742 if test yes = "$GCC"; then 10743 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10744 else 10745 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10746 fi 10747 ;; 10748 esac 10749 link_all_deplibs=yes 10750 ;; 10751 10752 sunos4*) 10753 if test sequent = "$host_vendor"; then 10754 # Use $CC to link under sequent, because it throws in some extra .o 10755 # files that make .init and .fini sections work. 10756 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10757 else 10758 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10759 fi 10760 hardcode_libdir_flag_spec='-L$libdir' 10761 hardcode_direct=yes 10762 hardcode_minus_L=yes 10763 hardcode_shlibpath_var=no 10764 ;; 10765 10766 sysv4) 10767 case $host_vendor in 10768 sni) 10769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10770 hardcode_direct=yes # is this really true??? 10771 ;; 10772 siemens) 10773 ## LD is ld it makes a PLAMLIB 10774 ## CC just makes a GrossModule. 10775 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10776 reload_cmds='$CC -r -o $output$reload_objs' 10777 hardcode_direct=no 10778 ;; 10779 motorola) 10780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10781 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10782 ;; 10783 esac 10784 runpath_var='LD_RUN_PATH' 10785 hardcode_shlibpath_var=no 10786 ;; 10787 10788 sysv4.3*) 10789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10790 hardcode_shlibpath_var=no 10791 export_dynamic_flag_spec='-Bexport' 10792 ;; 10793 10794 sysv4*MP*) 10795 if test -d /usr/nec; then 10796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10797 hardcode_shlibpath_var=no 10798 runpath_var=LD_RUN_PATH 10799 hardcode_runpath_var=yes 10800 ld_shlibs=yes 10801 fi 10802 ;; 10803 10804 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10805 no_undefined_flag='$wl-z,text' 10806 archive_cmds_need_lc=no 10807 hardcode_shlibpath_var=no 10808 runpath_var='LD_RUN_PATH' 10809 10810 if test yes = "$GCC"; then 10811 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10812 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10813 else 10814 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10815 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10816 fi 10817 ;; 10818 10819 sysv5* | sco3.2v5* | sco5v6*) 10820 # Note: We CANNOT use -z defs as we might desire, because we do not 10821 # link with -lc, and that would cause any symbols used from libc to 10822 # always be unresolved, which means just about no library would 10823 # ever link correctly. If we're not using GNU ld we use -z text 10824 # though, which does catch some bad symbols but isn't as heavy-handed 10825 # as -z defs. 10826 no_undefined_flag='$wl-z,text' 10827 allow_undefined_flag='$wl-z,nodefs' 10828 archive_cmds_need_lc=no 10829 hardcode_shlibpath_var=no 10830 hardcode_libdir_flag_spec='$wl-R,$libdir' 10831 hardcode_libdir_separator=':' 10832 link_all_deplibs=yes 10833 export_dynamic_flag_spec='$wl-Bexport' 10834 runpath_var='LD_RUN_PATH' 10835 10836 if test yes = "$GCC"; then 10837 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10838 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10839 else 10840 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10841 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10842 fi 10843 ;; 10844 10845 uts4*) 10846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10847 hardcode_libdir_flag_spec='-L$libdir' 10848 hardcode_shlibpath_var=no 10849 ;; 10850 10851 *) 10852 ld_shlibs=no 10853 ;; 10854 esac 10855 10856 if test sni = "$host_vendor"; then 10857 case $host in 10858 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10859 export_dynamic_flag_spec='$wl-Blargedynsym' 10860 ;; 10861 esac 10862 fi 10863 fi 10864 10865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10866printf "%s\n" "$ld_shlibs" >&6; } 10867test no = "$ld_shlibs" && can_build_shared=no 10868 10869with_gnu_ld=$with_gnu_ld 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885# 10886# Do we need to explicitly link libc? 10887# 10888case "x$archive_cmds_need_lc" in 10889x|xyes) 10890 # Assume -lc should be added 10891 archive_cmds_need_lc=yes 10892 10893 if test yes,yes = "$GCC,$enable_shared"; then 10894 case $archive_cmds in 10895 *'~'*) 10896 # FIXME: we may have to deal with multi-command sequences. 10897 ;; 10898 '$CC '*) 10899 # Test whether the compiler implicitly links with -lc since on some 10900 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10901 # to ld, don't add -lc before -lgcc. 10902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10903printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10904if test ${lt_cv_archive_cmds_need_lc+y} 10905then : 10906 printf %s "(cached) " >&6 10907else $as_nop 10908 $RM conftest* 10909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10910 10911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10912 (eval $ac_compile) 2>&5 10913 ac_status=$? 10914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10915 test $ac_status = 0; } 2>conftest.err; then 10916 soname=conftest 10917 lib=conftest 10918 libobjs=conftest.$ac_objext 10919 deplibs= 10920 wl=$lt_prog_compiler_wl 10921 pic_flag=$lt_prog_compiler_pic 10922 compiler_flags=-v 10923 linker_flags=-v 10924 verstring= 10925 output_objdir=. 10926 libname=conftest 10927 lt_save_allow_undefined_flag=$allow_undefined_flag 10928 allow_undefined_flag= 10929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10930 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10931 ac_status=$? 10932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10933 test $ac_status = 0; } 10934 then 10935 lt_cv_archive_cmds_need_lc=no 10936 else 10937 lt_cv_archive_cmds_need_lc=yes 10938 fi 10939 allow_undefined_flag=$lt_save_allow_undefined_flag 10940 else 10941 cat conftest.err 1>&5 10942 fi 10943 $RM conftest* 10944 10945fi 10946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10947printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 10948 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10949 ;; 10950 esac 10951 fi 10952 ;; 10953esac 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 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11107printf %s "checking dynamic linker characteristics... " >&6; } 11108 11109if test yes = "$GCC"; then 11110 case $host_os in 11111 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11112 *) lt_awk_arg='/^libraries:/' ;; 11113 esac 11114 case $host_os in 11115 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11116 *) lt_sed_strip_eq='s|=/|/|g' ;; 11117 esac 11118 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11119 case $lt_search_path_spec in 11120 *\;*) 11121 # if the path contains ";" then we assume it to be the separator 11122 # otherwise default to the standard path separator (i.e. ":") - it is 11123 # assumed that no part of a normal pathname contains ";" but that should 11124 # okay in the real world where ";" in dirpaths is itself problematic. 11125 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11126 ;; 11127 *) 11128 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11129 ;; 11130 esac 11131 # Ok, now we have the path, separated by spaces, we can step through it 11132 # and add multilib dir if necessary... 11133 lt_tmp_lt_search_path_spec= 11134 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11135 # ...but if some path component already ends with the multilib dir we assume 11136 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11137 case "$lt_multi_os_dir; $lt_search_path_spec " in 11138 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11139 lt_multi_os_dir= 11140 ;; 11141 esac 11142 for lt_sys_path in $lt_search_path_spec; do 11143 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11144 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11145 elif test -n "$lt_multi_os_dir"; then 11146 test -d "$lt_sys_path" && \ 11147 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11148 fi 11149 done 11150 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11151BEGIN {RS = " "; FS = "/|\n";} { 11152 lt_foo = ""; 11153 lt_count = 0; 11154 for (lt_i = NF; lt_i > 0; lt_i--) { 11155 if ($lt_i != "" && $lt_i != ".") { 11156 if ($lt_i == "..") { 11157 lt_count++; 11158 } else { 11159 if (lt_count == 0) { 11160 lt_foo = "/" $lt_i lt_foo; 11161 } else { 11162 lt_count--; 11163 } 11164 } 11165 } 11166 } 11167 if (lt_foo != "") { lt_freq[lt_foo]++; } 11168 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11169}'` 11170 # AWK program above erroneously prepends '/' to C:/dos/paths 11171 # for these hosts. 11172 case $host_os in 11173 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11174 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11175 esac 11176 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11177else 11178 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11179fi 11180library_names_spec= 11181libname_spec='lib$name' 11182soname_spec= 11183shrext_cmds=.so 11184postinstall_cmds= 11185postuninstall_cmds= 11186finish_cmds= 11187finish_eval= 11188shlibpath_var= 11189shlibpath_overrides_runpath=unknown 11190version_type=none 11191dynamic_linker="$host_os ld.so" 11192sys_lib_dlsearch_path_spec="/lib /usr/lib" 11193need_lib_prefix=unknown 11194hardcode_into_libs=no 11195 11196# when you set need_version to no, make sure it does not cause -set_version 11197# flags to be left without arguments 11198need_version=unknown 11199 11200 11201 11202case $host_os in 11203aix3*) 11204 version_type=linux # correct to gnu/linux during the next big refactor 11205 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11206 shlibpath_var=LIBPATH 11207 11208 # AIX 3 has no versioning support, so we append a major version to the name. 11209 soname_spec='$libname$release$shared_ext$major' 11210 ;; 11211 11212aix[4-9]*) 11213 version_type=linux # correct to gnu/linux during the next big refactor 11214 need_lib_prefix=no 11215 need_version=no 11216 hardcode_into_libs=yes 11217 if test ia64 = "$host_cpu"; then 11218 # AIX 5 supports IA64 11219 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11220 shlibpath_var=LD_LIBRARY_PATH 11221 else 11222 # With GCC up to 2.95.x, collect2 would create an import file 11223 # for dependence libraries. The import file would start with 11224 # the line '#! .'. This would cause the generated library to 11225 # depend on '.', always an invalid library. This was fixed in 11226 # development snapshots of GCC prior to 3.0. 11227 case $host_os in 11228 aix4 | aix4.[01] | aix4.[01].*) 11229 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11230 echo ' yes ' 11231 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11232 : 11233 else 11234 can_build_shared=no 11235 fi 11236 ;; 11237 esac 11238 # Using Import Files as archive members, it is possible to support 11239 # filename-based versioning of shared library archives on AIX. While 11240 # this would work for both with and without runtime linking, it will 11241 # prevent static linking of such archives. So we do filename-based 11242 # shared library versioning with .so extension only, which is used 11243 # when both runtime linking and shared linking is enabled. 11244 # Unfortunately, runtime linking may impact performance, so we do 11245 # not want this to be the default eventually. Also, we use the 11246 # versioned .so libs for executables only if there is the -brtl 11247 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11248 # To allow for filename-based versioning support, we need to create 11249 # libNAME.so.V as an archive file, containing: 11250 # *) an Import File, referring to the versioned filename of the 11251 # archive as well as the shared archive member, telling the 11252 # bitwidth (32 or 64) of that shared object, and providing the 11253 # list of exported symbols of that shared object, eventually 11254 # decorated with the 'weak' keyword 11255 # *) the shared object with the F_LOADONLY flag set, to really avoid 11256 # it being seen by the linker. 11257 # At run time we better use the real file rather than another symlink, 11258 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11259 11260 case $with_aix_soname,$aix_use_runtimelinking in 11261 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11262 # soname into executable. Probably we can add versioning support to 11263 # collect2, so additional links can be useful in future. 11264 aix,yes) # traditional libtool 11265 dynamic_linker='AIX unversionable lib.so' 11266 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11267 # instead of lib<name>.a to let people know that these are not 11268 # typical AIX shared libraries. 11269 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11270 ;; 11271 aix,no) # traditional AIX only 11272 dynamic_linker='AIX lib.a(lib.so.V)' 11273 # We preserve .a as extension for shared libraries through AIX4.2 11274 # and later when we are not doing run time linking. 11275 library_names_spec='$libname$release.a $libname.a' 11276 soname_spec='$libname$release$shared_ext$major' 11277 ;; 11278 svr4,*) # full svr4 only 11279 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11280 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11281 # We do not specify a path in Import Files, so LIBPATH fires. 11282 shlibpath_overrides_runpath=yes 11283 ;; 11284 *,yes) # both, prefer svr4 11285 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11286 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11287 # unpreferred sharedlib libNAME.a needs extra handling 11288 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"' 11289 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"' 11290 # We do not specify a path in Import Files, so LIBPATH fires. 11291 shlibpath_overrides_runpath=yes 11292 ;; 11293 *,no) # both, prefer aix 11294 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11295 library_names_spec='$libname$release.a $libname.a' 11296 soname_spec='$libname$release$shared_ext$major' 11297 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11298 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)' 11299 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"' 11300 ;; 11301 esac 11302 shlibpath_var=LIBPATH 11303 fi 11304 ;; 11305 11306amigaos*) 11307 case $host_cpu in 11308 powerpc) 11309 # Since July 2007 AmigaOS4 officially supports .so libraries. 11310 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11312 ;; 11313 m68k) 11314 library_names_spec='$libname.ixlibrary $libname.a' 11315 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11316 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' 11317 ;; 11318 esac 11319 ;; 11320 11321beos*) 11322 library_names_spec='$libname$shared_ext' 11323 dynamic_linker="$host_os ld.so" 11324 shlibpath_var=LIBRARY_PATH 11325 ;; 11326 11327bsdi[45]*) 11328 version_type=linux # correct to gnu/linux during the next big refactor 11329 need_version=no 11330 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11331 soname_spec='$libname$release$shared_ext$major' 11332 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11333 shlibpath_var=LD_LIBRARY_PATH 11334 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11335 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11336 # the default ld.so.conf also contains /usr/contrib/lib and 11337 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11338 # libtool to hard-code these into programs 11339 ;; 11340 11341cygwin* | mingw* | pw32* | cegcc*) 11342 version_type=windows 11343 shrext_cmds=.dll 11344 need_version=no 11345 need_lib_prefix=no 11346 11347 case $GCC,$cc_basename in 11348 yes,*) 11349 # gcc 11350 library_names_spec='$libname.dll.a' 11351 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11352 postinstall_cmds='base_file=`basename \$file`~ 11353 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11354 dldir=$destdir/`dirname \$dlpath`~ 11355 test -d \$dldir || mkdir -p \$dldir~ 11356 $install_prog $dir/$dlname \$dldir/$dlname~ 11357 chmod a+x \$dldir/$dlname~ 11358 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11359 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11360 fi' 11361 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11362 dlpath=$dir/\$dldll~ 11363 $RM \$dlpath' 11364 shlibpath_overrides_runpath=yes 11365 11366 case $host_os in 11367 cygwin*) 11368 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11369 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11370 11371 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11372 ;; 11373 mingw* | cegcc*) 11374 # MinGW DLLs use traditional 'lib' prefix 11375 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11376 ;; 11377 pw32*) 11378 # pw32 DLLs use 'pw' prefix rather than 'lib' 11379 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11380 ;; 11381 esac 11382 dynamic_linker='Win32 ld.exe' 11383 ;; 11384 11385 *,cl* | *,icl*) 11386 # Native MSVC or ICC 11387 libname_spec='$name' 11388 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11389 library_names_spec='$libname.dll.lib' 11390 11391 case $build_os in 11392 mingw*) 11393 sys_lib_search_path_spec= 11394 lt_save_ifs=$IFS 11395 IFS=';' 11396 for lt_path in $LIB 11397 do 11398 IFS=$lt_save_ifs 11399 # Let DOS variable expansion print the short 8.3 style file name. 11400 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11401 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11402 done 11403 IFS=$lt_save_ifs 11404 # Convert to MSYS style. 11405 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11406 ;; 11407 cygwin*) 11408 # Convert to unix form, then to dos form, then back to unix form 11409 # but this time dos style (no spaces!) so that the unix form looks 11410 # like /cygdrive/c/PROGRA~1:/cygdr... 11411 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11412 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11413 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11414 ;; 11415 *) 11416 sys_lib_search_path_spec=$LIB 11417 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11418 # It is most probably a Windows format PATH. 11419 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11420 else 11421 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11422 fi 11423 # FIXME: find the short name or the path components, as spaces are 11424 # common. (e.g. "Program Files" -> "PROGRA~1") 11425 ;; 11426 esac 11427 11428 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11429 postinstall_cmds='base_file=`basename \$file`~ 11430 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11431 dldir=$destdir/`dirname \$dlpath`~ 11432 test -d \$dldir || mkdir -p \$dldir~ 11433 $install_prog $dir/$dlname \$dldir/$dlname' 11434 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11435 dlpath=$dir/\$dldll~ 11436 $RM \$dlpath' 11437 shlibpath_overrides_runpath=yes 11438 dynamic_linker='Win32 link.exe' 11439 ;; 11440 11441 *) 11442 # Assume MSVC and ICC wrapper 11443 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11444 dynamic_linker='Win32 ld.exe' 11445 ;; 11446 esac 11447 # FIXME: first we should search . and the directory the executable is in 11448 shlibpath_var=PATH 11449 ;; 11450 11451darwin* | rhapsody*) 11452 dynamic_linker="$host_os dyld" 11453 version_type=darwin 11454 need_lib_prefix=no 11455 need_version=no 11456 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11457 soname_spec='$libname$release$major$shared_ext' 11458 shlibpath_overrides_runpath=yes 11459 shlibpath_var=DYLD_LIBRARY_PATH 11460 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11461 11462 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11463 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11464 ;; 11465 11466dgux*) 11467 version_type=linux # correct to gnu/linux during the next big refactor 11468 need_lib_prefix=no 11469 need_version=no 11470 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11471 soname_spec='$libname$release$shared_ext$major' 11472 shlibpath_var=LD_LIBRARY_PATH 11473 ;; 11474 11475freebsd* | dragonfly* | midnightbsd*) 11476 # DragonFly does not have aout. When/if they implement a new 11477 # versioning mechanism, adjust this. 11478 if test -x /usr/bin/objformat; then 11479 objformat=`/usr/bin/objformat` 11480 else 11481 case $host_os in 11482 freebsd[23].*) objformat=aout ;; 11483 *) objformat=elf ;; 11484 esac 11485 fi 11486 version_type=freebsd-$objformat 11487 case $version_type in 11488 freebsd-elf*) 11489 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11490 soname_spec='$libname$release$shared_ext$major' 11491 need_version=no 11492 need_lib_prefix=no 11493 ;; 11494 freebsd-*) 11495 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11496 need_version=yes 11497 ;; 11498 esac 11499 shlibpath_var=LD_LIBRARY_PATH 11500 case $host_os in 11501 freebsd2.*) 11502 shlibpath_overrides_runpath=yes 11503 ;; 11504 freebsd3.[01]* | freebsdelf3.[01]*) 11505 shlibpath_overrides_runpath=yes 11506 hardcode_into_libs=yes 11507 ;; 11508 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11509 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11510 shlibpath_overrides_runpath=no 11511 hardcode_into_libs=yes 11512 ;; 11513 *) # from 4.6 on, and DragonFly 11514 shlibpath_overrides_runpath=yes 11515 hardcode_into_libs=yes 11516 ;; 11517 esac 11518 ;; 11519 11520haiku*) 11521 version_type=linux # correct to gnu/linux during the next big refactor 11522 need_lib_prefix=no 11523 need_version=no 11524 dynamic_linker="$host_os runtime_loader" 11525 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11526 soname_spec='$libname$release$shared_ext$major' 11527 shlibpath_var=LIBRARY_PATH 11528 shlibpath_overrides_runpath=no 11529 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11530 hardcode_into_libs=yes 11531 ;; 11532 11533hpux9* | hpux10* | hpux11*) 11534 # Give a soname corresponding to the major version so that dld.sl refuses to 11535 # link against other versions. 11536 version_type=sunos 11537 need_lib_prefix=no 11538 need_version=no 11539 case $host_cpu in 11540 ia64*) 11541 shrext_cmds='.so' 11542 hardcode_into_libs=yes 11543 dynamic_linker="$host_os dld.so" 11544 shlibpath_var=LD_LIBRARY_PATH 11545 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11546 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11547 soname_spec='$libname$release$shared_ext$major' 11548 if test 32 = "$HPUX_IA64_MODE"; then 11549 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11550 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11551 else 11552 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11553 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11554 fi 11555 ;; 11556 hppa*64*) 11557 shrext_cmds='.sl' 11558 hardcode_into_libs=yes 11559 dynamic_linker="$host_os dld.sl" 11560 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11561 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11562 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11563 soname_spec='$libname$release$shared_ext$major' 11564 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11565 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11566 ;; 11567 *) 11568 shrext_cmds='.sl' 11569 dynamic_linker="$host_os dld.sl" 11570 shlibpath_var=SHLIB_PATH 11571 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11573 soname_spec='$libname$release$shared_ext$major' 11574 ;; 11575 esac 11576 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11577 postinstall_cmds='chmod 555 $lib' 11578 # or fails outright, so override atomically: 11579 install_override_mode=555 11580 ;; 11581 11582interix[3-9]*) 11583 version_type=linux # correct to gnu/linux during the next big refactor 11584 need_lib_prefix=no 11585 need_version=no 11586 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11587 soname_spec='$libname$release$shared_ext$major' 11588 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11589 shlibpath_var=LD_LIBRARY_PATH 11590 shlibpath_overrides_runpath=no 11591 hardcode_into_libs=yes 11592 ;; 11593 11594irix5* | irix6* | nonstopux*) 11595 case $host_os in 11596 nonstopux*) version_type=nonstopux ;; 11597 *) 11598 if test yes = "$lt_cv_prog_gnu_ld"; then 11599 version_type=linux # correct to gnu/linux during the next big refactor 11600 else 11601 version_type=irix 11602 fi ;; 11603 esac 11604 need_lib_prefix=no 11605 need_version=no 11606 soname_spec='$libname$release$shared_ext$major' 11607 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11608 case $host_os in 11609 irix5* | nonstopux*) 11610 libsuff= shlibsuff= 11611 ;; 11612 *) 11613 case $LD in # libtool.m4 will add one of these switches to LD 11614 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11615 libsuff= shlibsuff= libmagic=32-bit;; 11616 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11617 libsuff=32 shlibsuff=N32 libmagic=N32;; 11618 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11619 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11620 *) libsuff= shlibsuff= libmagic=never-match;; 11621 esac 11622 ;; 11623 esac 11624 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11625 shlibpath_overrides_runpath=no 11626 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11627 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11628 hardcode_into_libs=yes 11629 ;; 11630 11631# No shared lib support for Linux oldld, aout, or coff. 11632linux*oldld* | linux*aout* | linux*coff*) 11633 dynamic_linker=no 11634 ;; 11635 11636linux*android*) 11637 version_type=none # Android doesn't support versioned libraries. 11638 need_lib_prefix=no 11639 need_version=no 11640 library_names_spec='$libname$release$shared_ext' 11641 soname_spec='$libname$release$shared_ext' 11642 finish_cmds= 11643 shlibpath_var=LD_LIBRARY_PATH 11644 shlibpath_overrides_runpath=yes 11645 11646 # This implies no fast_install, which is unacceptable. 11647 # Some rework will be needed to allow for fast_install 11648 # before this can be enabled. 11649 hardcode_into_libs=yes 11650 11651 dynamic_linker='Android linker' 11652 # Don't embed -rpath directories since the linker doesn't support them. 11653 hardcode_libdir_flag_spec='-L$libdir' 11654 ;; 11655 11656# This must be glibc/ELF. 11657linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11658 version_type=linux # correct to gnu/linux during the next big refactor 11659 need_lib_prefix=no 11660 need_version=no 11661 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11662 soname_spec='$libname$release$shared_ext$major' 11663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11664 shlibpath_var=LD_LIBRARY_PATH 11665 shlibpath_overrides_runpath=no 11666 11667 # Some binutils ld are patched to set DT_RUNPATH 11668 if test ${lt_cv_shlibpath_overrides_runpath+y} 11669then : 11670 printf %s "(cached) " >&6 11671else $as_nop 11672 lt_cv_shlibpath_overrides_runpath=no 11673 save_LDFLAGS=$LDFLAGS 11674 save_libdir=$libdir 11675 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11676 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11678/* end confdefs.h. */ 11679 11680int 11681main (void) 11682{ 11683 11684 ; 11685 return 0; 11686} 11687_ACEOF 11688if ac_fn_c_try_link "$LINENO" 11689then : 11690 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11691then : 11692 lt_cv_shlibpath_overrides_runpath=yes 11693fi 11694fi 11695rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11696 conftest$ac_exeext conftest.$ac_ext 11697 LDFLAGS=$save_LDFLAGS 11698 libdir=$save_libdir 11699 11700fi 11701 11702 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11703 11704 # This implies no fast_install, which is unacceptable. 11705 # Some rework will be needed to allow for fast_install 11706 # before this can be enabled. 11707 hardcode_into_libs=yes 11708 11709 # Ideally, we could use ldconfig to report *all* directores which are 11710 # searched for libraries, however this is still not possible. Aside from not 11711 # being certain /sbin/ldconfig is available, command 11712 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11713 # even though it is searched at run-time. Try to do the best guess by 11714 # appending ld.so.conf contents (and includes) to the search path. 11715 if test -f /etc/ld.so.conf; then 11716 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' ' '` 11717 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11718 fi 11719 11720 # We used to test for /lib/ld.so.1 and disable shared libraries on 11721 # powerpc, because MkLinux only supported shared libraries with the 11722 # GNU dynamic linker. Since this was broken with cross compilers, 11723 # most powerpc-linux boxes support dynamic linking these days and 11724 # people can always --disable-shared, the test was removed, and we 11725 # assume the GNU/Linux dynamic linker is in use. 11726 dynamic_linker='GNU/Linux ld.so' 11727 ;; 11728 11729netbsd*) 11730 version_type=sunos 11731 need_lib_prefix=no 11732 need_version=no 11733 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11734 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11736 dynamic_linker='NetBSD (a.out) ld.so' 11737 else 11738 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11739 soname_spec='$libname$release$shared_ext$major' 11740 dynamic_linker='NetBSD ld.elf_so' 11741 fi 11742 shlibpath_var=LD_LIBRARY_PATH 11743 shlibpath_overrides_runpath=yes 11744 hardcode_into_libs=yes 11745 ;; 11746 11747newsos6) 11748 version_type=linux # correct to gnu/linux during the next big refactor 11749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11750 shlibpath_var=LD_LIBRARY_PATH 11751 shlibpath_overrides_runpath=yes 11752 ;; 11753 11754*nto* | *qnx*) 11755 version_type=qnx 11756 need_lib_prefix=no 11757 need_version=no 11758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11759 soname_spec='$libname$release$shared_ext$major' 11760 shlibpath_var=LD_LIBRARY_PATH 11761 shlibpath_overrides_runpath=no 11762 hardcode_into_libs=yes 11763 dynamic_linker='ldqnx.so' 11764 ;; 11765 11766openbsd* | bitrig*) 11767 version_type=sunos 11768 sys_lib_dlsearch_path_spec=/usr/lib 11769 need_lib_prefix=no 11770 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11771 need_version=no 11772 else 11773 need_version=yes 11774 fi 11775 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11777 shlibpath_var=LD_LIBRARY_PATH 11778 shlibpath_overrides_runpath=yes 11779 ;; 11780 11781os2*) 11782 libname_spec='$name' 11783 version_type=windows 11784 shrext_cmds=.dll 11785 need_version=no 11786 need_lib_prefix=no 11787 # OS/2 can only load a DLL with a base name of 8 characters or less. 11788 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11789 v=$($ECHO $release$versuffix | tr -d .-); 11790 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11791 $ECHO $n$v`$shared_ext' 11792 library_names_spec='${libname}_dll.$libext' 11793 dynamic_linker='OS/2 ld.exe' 11794 shlibpath_var=BEGINLIBPATH 11795 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11796 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11797 postinstall_cmds='base_file=`basename \$file`~ 11798 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11799 dldir=$destdir/`dirname \$dlpath`~ 11800 test -d \$dldir || mkdir -p \$dldir~ 11801 $install_prog $dir/$dlname \$dldir/$dlname~ 11802 chmod a+x \$dldir/$dlname~ 11803 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11804 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11805 fi' 11806 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11807 dlpath=$dir/\$dldll~ 11808 $RM \$dlpath' 11809 ;; 11810 11811osf3* | osf4* | osf5*) 11812 version_type=osf 11813 need_lib_prefix=no 11814 need_version=no 11815 soname_spec='$libname$release$shared_ext$major' 11816 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11817 shlibpath_var=LD_LIBRARY_PATH 11818 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11819 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11820 ;; 11821 11822rdos*) 11823 dynamic_linker=no 11824 ;; 11825 11826solaris*) 11827 version_type=linux # correct to gnu/linux during the next big refactor 11828 need_lib_prefix=no 11829 need_version=no 11830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11831 soname_spec='$libname$release$shared_ext$major' 11832 shlibpath_var=LD_LIBRARY_PATH 11833 shlibpath_overrides_runpath=yes 11834 hardcode_into_libs=yes 11835 # ldd complains unless libraries are executable 11836 postinstall_cmds='chmod +x $lib' 11837 ;; 11838 11839sunos4*) 11840 version_type=sunos 11841 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11842 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11843 shlibpath_var=LD_LIBRARY_PATH 11844 shlibpath_overrides_runpath=yes 11845 if test yes = "$with_gnu_ld"; then 11846 need_lib_prefix=no 11847 fi 11848 need_version=yes 11849 ;; 11850 11851sysv4 | sysv4.3*) 11852 version_type=linux # correct to gnu/linux during the next big refactor 11853 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11854 soname_spec='$libname$release$shared_ext$major' 11855 shlibpath_var=LD_LIBRARY_PATH 11856 case $host_vendor in 11857 sni) 11858 shlibpath_overrides_runpath=no 11859 need_lib_prefix=no 11860 runpath_var=LD_RUN_PATH 11861 ;; 11862 siemens) 11863 need_lib_prefix=no 11864 ;; 11865 motorola) 11866 need_lib_prefix=no 11867 need_version=no 11868 shlibpath_overrides_runpath=no 11869 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11870 ;; 11871 esac 11872 ;; 11873 11874sysv4*MP*) 11875 if test -d /usr/nec; then 11876 version_type=linux # correct to gnu/linux during the next big refactor 11877 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11878 soname_spec='$libname$shared_ext.$major' 11879 shlibpath_var=LD_LIBRARY_PATH 11880 fi 11881 ;; 11882 11883sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11884 version_type=sco 11885 need_lib_prefix=no 11886 need_version=no 11887 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11888 soname_spec='$libname$release$shared_ext$major' 11889 shlibpath_var=LD_LIBRARY_PATH 11890 shlibpath_overrides_runpath=yes 11891 hardcode_into_libs=yes 11892 if test yes = "$with_gnu_ld"; then 11893 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11894 else 11895 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11896 case $host_os in 11897 sco3.2v5*) 11898 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11899 ;; 11900 esac 11901 fi 11902 sys_lib_dlsearch_path_spec='/usr/lib' 11903 ;; 11904 11905tpf*) 11906 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11907 version_type=linux # correct to gnu/linux during the next big refactor 11908 need_lib_prefix=no 11909 need_version=no 11910 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11911 shlibpath_var=LD_LIBRARY_PATH 11912 shlibpath_overrides_runpath=no 11913 hardcode_into_libs=yes 11914 ;; 11915 11916uts4*) 11917 version_type=linux # correct to gnu/linux during the next big refactor 11918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11919 soname_spec='$libname$release$shared_ext$major' 11920 shlibpath_var=LD_LIBRARY_PATH 11921 ;; 11922 11923*) 11924 dynamic_linker=no 11925 ;; 11926esac 11927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11928printf "%s\n" "$dynamic_linker" >&6; } 11929test no = "$dynamic_linker" && can_build_shared=no 11930 11931variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11932if test yes = "$GCC"; then 11933 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11934fi 11935 11936if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11937 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11938fi 11939 11940if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11941 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11942fi 11943 11944# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11945configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11946 11947# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11948func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11949 11950# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11951configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12050printf %s "checking how to hardcode library paths into programs... " >&6; } 12051hardcode_action= 12052if test -n "$hardcode_libdir_flag_spec" || 12053 test -n "$runpath_var" || 12054 test yes = "$hardcode_automatic"; then 12055 12056 # We can hardcode non-existent directories. 12057 if test no != "$hardcode_direct" && 12058 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12059 # have to relink, otherwise we might link with an installed library 12060 # when we should be linking with a yet-to-be-installed one 12061 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12062 test no != "$hardcode_minus_L"; then 12063 # Linking always hardcodes the temporary library directory. 12064 hardcode_action=relink 12065 else 12066 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12067 hardcode_action=immediate 12068 fi 12069else 12070 # We cannot hardcode anything, or else we can only hardcode existing 12071 # directories. 12072 hardcode_action=unsupported 12073fi 12074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12075printf "%s\n" "$hardcode_action" >&6; } 12076 12077if test relink = "$hardcode_action" || 12078 test yes = "$inherit_rpath"; then 12079 # Fast installation is not supported 12080 enable_fast_install=no 12081elif test yes = "$shlibpath_overrides_runpath" || 12082 test no = "$enable_shared"; then 12083 # Fast installation is not necessary 12084 enable_fast_install=needless 12085fi 12086 12087 12088 12089 12090 12091 12092 if test yes != "$enable_dlopen"; then 12093 enable_dlopen=unknown 12094 enable_dlopen_self=unknown 12095 enable_dlopen_self_static=unknown 12096else 12097 lt_cv_dlopen=no 12098 lt_cv_dlopen_libs= 12099 12100 case $host_os in 12101 beos*) 12102 lt_cv_dlopen=load_add_on 12103 lt_cv_dlopen_libs= 12104 lt_cv_dlopen_self=yes 12105 ;; 12106 12107 mingw* | pw32* | cegcc*) 12108 lt_cv_dlopen=LoadLibrary 12109 lt_cv_dlopen_libs= 12110 ;; 12111 12112 cygwin*) 12113 lt_cv_dlopen=dlopen 12114 lt_cv_dlopen_libs= 12115 ;; 12116 12117 darwin*) 12118 # if libdl is installed we need to link against it 12119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12120printf %s "checking for dlopen in -ldl... " >&6; } 12121if test ${ac_cv_lib_dl_dlopen+y} 12122then : 12123 printf %s "(cached) " >&6 12124else $as_nop 12125 ac_check_lib_save_LIBS=$LIBS 12126LIBS="-ldl $LIBS" 12127cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12128/* end confdefs.h. */ 12129 12130/* Override any GCC internal prototype to avoid an error. 12131 Use char because int might match the return type of a GCC 12132 builtin and then its argument prototype would still apply. */ 12133char dlopen (); 12134int 12135main (void) 12136{ 12137return dlopen (); 12138 ; 12139 return 0; 12140} 12141_ACEOF 12142if ac_fn_c_try_link "$LINENO" 12143then : 12144 ac_cv_lib_dl_dlopen=yes 12145else $as_nop 12146 ac_cv_lib_dl_dlopen=no 12147fi 12148rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12149 conftest$ac_exeext conftest.$ac_ext 12150LIBS=$ac_check_lib_save_LIBS 12151fi 12152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12153printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12154if test "x$ac_cv_lib_dl_dlopen" = xyes 12155then : 12156 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12157else $as_nop 12158 12159 lt_cv_dlopen=dyld 12160 lt_cv_dlopen_libs= 12161 lt_cv_dlopen_self=yes 12162 12163fi 12164 12165 ;; 12166 12167 tpf*) 12168 # Don't try to run any link tests for TPF. We know it's impossible 12169 # because TPF is a cross-compiler, and we know how we open DSOs. 12170 lt_cv_dlopen=dlopen 12171 lt_cv_dlopen_libs= 12172 lt_cv_dlopen_self=no 12173 ;; 12174 12175 *) 12176 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12177if test "x$ac_cv_func_shl_load" = xyes 12178then : 12179 lt_cv_dlopen=shl_load 12180else $as_nop 12181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12182printf %s "checking for shl_load in -ldld... " >&6; } 12183if test ${ac_cv_lib_dld_shl_load+y} 12184then : 12185 printf %s "(cached) " >&6 12186else $as_nop 12187 ac_check_lib_save_LIBS=$LIBS 12188LIBS="-ldld $LIBS" 12189cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12190/* end confdefs.h. */ 12191 12192/* Override any GCC internal prototype to avoid an error. 12193 Use char because int might match the return type of a GCC 12194 builtin and then its argument prototype would still apply. */ 12195char shl_load (); 12196int 12197main (void) 12198{ 12199return shl_load (); 12200 ; 12201 return 0; 12202} 12203_ACEOF 12204if ac_fn_c_try_link "$LINENO" 12205then : 12206 ac_cv_lib_dld_shl_load=yes 12207else $as_nop 12208 ac_cv_lib_dld_shl_load=no 12209fi 12210rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12211 conftest$ac_exeext conftest.$ac_ext 12212LIBS=$ac_check_lib_save_LIBS 12213fi 12214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12215printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12216if test "x$ac_cv_lib_dld_shl_load" = xyes 12217then : 12218 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12219else $as_nop 12220 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12221if test "x$ac_cv_func_dlopen" = xyes 12222then : 12223 lt_cv_dlopen=dlopen 12224else $as_nop 12225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12226printf %s "checking for dlopen in -ldl... " >&6; } 12227if test ${ac_cv_lib_dl_dlopen+y} 12228then : 12229 printf %s "(cached) " >&6 12230else $as_nop 12231 ac_check_lib_save_LIBS=$LIBS 12232LIBS="-ldl $LIBS" 12233cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12234/* end confdefs.h. */ 12235 12236/* Override any GCC internal prototype to avoid an error. 12237 Use char because int might match the return type of a GCC 12238 builtin and then its argument prototype would still apply. */ 12239char dlopen (); 12240int 12241main (void) 12242{ 12243return dlopen (); 12244 ; 12245 return 0; 12246} 12247_ACEOF 12248if ac_fn_c_try_link "$LINENO" 12249then : 12250 ac_cv_lib_dl_dlopen=yes 12251else $as_nop 12252 ac_cv_lib_dl_dlopen=no 12253fi 12254rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12255 conftest$ac_exeext conftest.$ac_ext 12256LIBS=$ac_check_lib_save_LIBS 12257fi 12258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12259printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12260if test "x$ac_cv_lib_dl_dlopen" = xyes 12261then : 12262 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12263else $as_nop 12264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12265printf %s "checking for dlopen in -lsvld... " >&6; } 12266if test ${ac_cv_lib_svld_dlopen+y} 12267then : 12268 printf %s "(cached) " >&6 12269else $as_nop 12270 ac_check_lib_save_LIBS=$LIBS 12271LIBS="-lsvld $LIBS" 12272cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12273/* end confdefs.h. */ 12274 12275/* Override any GCC internal prototype to avoid an error. 12276 Use char because int might match the return type of a GCC 12277 builtin and then its argument prototype would still apply. */ 12278char dlopen (); 12279int 12280main (void) 12281{ 12282return dlopen (); 12283 ; 12284 return 0; 12285} 12286_ACEOF 12287if ac_fn_c_try_link "$LINENO" 12288then : 12289 ac_cv_lib_svld_dlopen=yes 12290else $as_nop 12291 ac_cv_lib_svld_dlopen=no 12292fi 12293rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12294 conftest$ac_exeext conftest.$ac_ext 12295LIBS=$ac_check_lib_save_LIBS 12296fi 12297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12298printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12299if test "x$ac_cv_lib_svld_dlopen" = xyes 12300then : 12301 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12302else $as_nop 12303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12304printf %s "checking for dld_link in -ldld... " >&6; } 12305if test ${ac_cv_lib_dld_dld_link+y} 12306then : 12307 printf %s "(cached) " >&6 12308else $as_nop 12309 ac_check_lib_save_LIBS=$LIBS 12310LIBS="-ldld $LIBS" 12311cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12312/* end confdefs.h. */ 12313 12314/* Override any GCC internal prototype to avoid an error. 12315 Use char because int might match the return type of a GCC 12316 builtin and then its argument prototype would still apply. */ 12317char dld_link (); 12318int 12319main (void) 12320{ 12321return dld_link (); 12322 ; 12323 return 0; 12324} 12325_ACEOF 12326if ac_fn_c_try_link "$LINENO" 12327then : 12328 ac_cv_lib_dld_dld_link=yes 12329else $as_nop 12330 ac_cv_lib_dld_dld_link=no 12331fi 12332rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12333 conftest$ac_exeext conftest.$ac_ext 12334LIBS=$ac_check_lib_save_LIBS 12335fi 12336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12337printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12338if test "x$ac_cv_lib_dld_dld_link" = xyes 12339then : 12340 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12341fi 12342 12343 12344fi 12345 12346 12347fi 12348 12349 12350fi 12351 12352 12353fi 12354 12355 12356fi 12357 12358 ;; 12359 esac 12360 12361 if test no = "$lt_cv_dlopen"; then 12362 enable_dlopen=no 12363 else 12364 enable_dlopen=yes 12365 fi 12366 12367 case $lt_cv_dlopen in 12368 dlopen) 12369 save_CPPFLAGS=$CPPFLAGS 12370 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12371 12372 save_LDFLAGS=$LDFLAGS 12373 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12374 12375 save_LIBS=$LIBS 12376 LIBS="$lt_cv_dlopen_libs $LIBS" 12377 12378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12379printf %s "checking whether a program can dlopen itself... " >&6; } 12380if test ${lt_cv_dlopen_self+y} 12381then : 12382 printf %s "(cached) " >&6 12383else $as_nop 12384 if test yes = "$cross_compiling"; then : 12385 lt_cv_dlopen_self=cross 12386else 12387 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12388 lt_status=$lt_dlunknown 12389 cat > conftest.$ac_ext <<_LT_EOF 12390#line $LINENO "configure" 12391#include "confdefs.h" 12392 12393#if HAVE_DLFCN_H 12394#include <dlfcn.h> 12395#endif 12396 12397#include <stdio.h> 12398 12399#ifdef RTLD_GLOBAL 12400# define LT_DLGLOBAL RTLD_GLOBAL 12401#else 12402# ifdef DL_GLOBAL 12403# define LT_DLGLOBAL DL_GLOBAL 12404# else 12405# define LT_DLGLOBAL 0 12406# endif 12407#endif 12408 12409/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12410 find out it does not work in some platform. */ 12411#ifndef LT_DLLAZY_OR_NOW 12412# ifdef RTLD_LAZY 12413# define LT_DLLAZY_OR_NOW RTLD_LAZY 12414# else 12415# ifdef DL_LAZY 12416# define LT_DLLAZY_OR_NOW DL_LAZY 12417# else 12418# ifdef RTLD_NOW 12419# define LT_DLLAZY_OR_NOW RTLD_NOW 12420# else 12421# ifdef DL_NOW 12422# define LT_DLLAZY_OR_NOW DL_NOW 12423# else 12424# define LT_DLLAZY_OR_NOW 0 12425# endif 12426# endif 12427# endif 12428# endif 12429#endif 12430 12431/* When -fvisibility=hidden is used, assume the code has been annotated 12432 correspondingly for the symbols needed. */ 12433#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12434int fnord () __attribute__((visibility("default"))); 12435#endif 12436 12437int fnord () { return 42; } 12438int main () 12439{ 12440 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12441 int status = $lt_dlunknown; 12442 12443 if (self) 12444 { 12445 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12446 else 12447 { 12448 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12449 else puts (dlerror ()); 12450 } 12451 /* dlclose (self); */ 12452 } 12453 else 12454 puts (dlerror ()); 12455 12456 return status; 12457} 12458_LT_EOF 12459 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12460 (eval $ac_link) 2>&5 12461 ac_status=$? 12462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12463 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12464 (./conftest; exit; ) >&5 2>/dev/null 12465 lt_status=$? 12466 case x$lt_status in 12467 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12468 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12469 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12470 esac 12471 else : 12472 # compilation failed 12473 lt_cv_dlopen_self=no 12474 fi 12475fi 12476rm -fr conftest* 12477 12478 12479fi 12480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12481printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12482 12483 if test yes = "$lt_cv_dlopen_self"; then 12484 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12486printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12487if test ${lt_cv_dlopen_self_static+y} 12488then : 12489 printf %s "(cached) " >&6 12490else $as_nop 12491 if test yes = "$cross_compiling"; then : 12492 lt_cv_dlopen_self_static=cross 12493else 12494 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12495 lt_status=$lt_dlunknown 12496 cat > conftest.$ac_ext <<_LT_EOF 12497#line $LINENO "configure" 12498#include "confdefs.h" 12499 12500#if HAVE_DLFCN_H 12501#include <dlfcn.h> 12502#endif 12503 12504#include <stdio.h> 12505 12506#ifdef RTLD_GLOBAL 12507# define LT_DLGLOBAL RTLD_GLOBAL 12508#else 12509# ifdef DL_GLOBAL 12510# define LT_DLGLOBAL DL_GLOBAL 12511# else 12512# define LT_DLGLOBAL 0 12513# endif 12514#endif 12515 12516/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12517 find out it does not work in some platform. */ 12518#ifndef LT_DLLAZY_OR_NOW 12519# ifdef RTLD_LAZY 12520# define LT_DLLAZY_OR_NOW RTLD_LAZY 12521# else 12522# ifdef DL_LAZY 12523# define LT_DLLAZY_OR_NOW DL_LAZY 12524# else 12525# ifdef RTLD_NOW 12526# define LT_DLLAZY_OR_NOW RTLD_NOW 12527# else 12528# ifdef DL_NOW 12529# define LT_DLLAZY_OR_NOW DL_NOW 12530# else 12531# define LT_DLLAZY_OR_NOW 0 12532# endif 12533# endif 12534# endif 12535# endif 12536#endif 12537 12538/* When -fvisibility=hidden is used, assume the code has been annotated 12539 correspondingly for the symbols needed. */ 12540#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12541int fnord () __attribute__((visibility("default"))); 12542#endif 12543 12544int fnord () { return 42; } 12545int main () 12546{ 12547 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12548 int status = $lt_dlunknown; 12549 12550 if (self) 12551 { 12552 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12553 else 12554 { 12555 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12556 else puts (dlerror ()); 12557 } 12558 /* dlclose (self); */ 12559 } 12560 else 12561 puts (dlerror ()); 12562 12563 return status; 12564} 12565_LT_EOF 12566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12567 (eval $ac_link) 2>&5 12568 ac_status=$? 12569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12570 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12571 (./conftest; exit; ) >&5 2>/dev/null 12572 lt_status=$? 12573 case x$lt_status in 12574 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12575 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12576 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12577 esac 12578 else : 12579 # compilation failed 12580 lt_cv_dlopen_self_static=no 12581 fi 12582fi 12583rm -fr conftest* 12584 12585 12586fi 12587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12588printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12589 fi 12590 12591 CPPFLAGS=$save_CPPFLAGS 12592 LDFLAGS=$save_LDFLAGS 12593 LIBS=$save_LIBS 12594 ;; 12595 esac 12596 12597 case $lt_cv_dlopen_self in 12598 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12599 *) enable_dlopen_self=unknown ;; 12600 esac 12601 12602 case $lt_cv_dlopen_self_static in 12603 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12604 *) enable_dlopen_self_static=unknown ;; 12605 esac 12606fi 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624striplib= 12625old_striplib= 12626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12627printf %s "checking whether stripping libraries is possible... " >&6; } 12628if test -z "$STRIP"; then 12629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12630printf "%s\n" "no" >&6; } 12631else 12632 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12633 old_striplib="$STRIP --strip-debug" 12634 striplib="$STRIP --strip-unneeded" 12635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12636printf "%s\n" "yes" >&6; } 12637 else 12638 case $host_os in 12639 darwin*) 12640 # FIXME - insert some real tests, host_os isn't really good enough 12641 striplib="$STRIP -x" 12642 old_striplib="$STRIP -S" 12643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12644printf "%s\n" "yes" >&6; } 12645 ;; 12646 freebsd*) 12647 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12648 old_striplib="$STRIP --strip-debug" 12649 striplib="$STRIP --strip-unneeded" 12650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12651printf "%s\n" "yes" >&6; } 12652 else 12653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12654printf "%s\n" "no" >&6; } 12655 fi 12656 ;; 12657 *) 12658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12659printf "%s\n" "no" >&6; } 12660 ;; 12661 esac 12662 fi 12663fi 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 # Report what library types will actually be built 12677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12678printf %s "checking if libtool supports shared libraries... " >&6; } 12679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12680printf "%s\n" "$can_build_shared" >&6; } 12681 12682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12683printf %s "checking whether to build shared libraries... " >&6; } 12684 test no = "$can_build_shared" && enable_shared=no 12685 12686 # On AIX, shared libraries and static libraries use the same namespace, and 12687 # are all built from PIC. 12688 case $host_os in 12689 aix3*) 12690 test yes = "$enable_shared" && enable_static=no 12691 if test -n "$RANLIB"; then 12692 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12693 postinstall_cmds='$RANLIB $lib' 12694 fi 12695 ;; 12696 12697 aix[4-9]*) 12698 if test ia64 != "$host_cpu"; then 12699 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12700 yes,aix,yes) ;; # shared object as lib.so file only 12701 yes,svr4,*) ;; # shared object as lib.so archive member only 12702 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12703 esac 12704 fi 12705 ;; 12706 esac 12707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12708printf "%s\n" "$enable_shared" >&6; } 12709 12710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12711printf %s "checking whether to build static libraries... " >&6; } 12712 # Make sure either enable_shared or enable_static is yes. 12713 test yes = "$enable_shared" || enable_static=yes 12714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12715printf "%s\n" "$enable_static" >&6; } 12716 12717 12718 12719 12720fi 12721ac_ext=c 12722ac_cpp='$CPP $CPPFLAGS' 12723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12725ac_compiler_gnu=$ac_cv_c_compiler_gnu 12726 12727CC=$lt_save_CC 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 ac_config_commands="$ac_config_commands libtool" 12744 12745 12746 12747 12748# Only expand once: 12749 12750 12751 12752# Require xorg-macros minimum of 1.12 for DocBook external references 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 12766printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 12767if test ${ac_cv_c_undeclared_builtin_options+y} 12768then : 12769 printf %s "(cached) " >&6 12770else $as_nop 12771 ac_save_CFLAGS=$CFLAGS 12772 ac_cv_c_undeclared_builtin_options='cannot detect' 12773 for ac_arg in '' -fno-builtin; do 12774 CFLAGS="$ac_save_CFLAGS $ac_arg" 12775 # This test program should *not* compile successfully. 12776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12777/* end confdefs.h. */ 12778 12779int 12780main (void) 12781{ 12782(void) strchr; 12783 ; 12784 return 0; 12785} 12786_ACEOF 12787if ac_fn_c_try_compile "$LINENO" 12788then : 12789 12790else $as_nop 12791 # This test program should compile successfully. 12792 # No library function is consistently available on 12793 # freestanding implementations, so test against a dummy 12794 # declaration. Include always-available headers on the 12795 # off chance that they somehow elicit warnings. 12796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12797/* end confdefs.h. */ 12798#include <float.h> 12799#include <limits.h> 12800#include <stdarg.h> 12801#include <stddef.h> 12802extern void ac_decl (int, char *); 12803 12804int 12805main (void) 12806{ 12807(void) ac_decl (0, (char *) 0); 12808 (void) ac_decl; 12809 12810 ; 12811 return 0; 12812} 12813_ACEOF 12814if ac_fn_c_try_compile "$LINENO" 12815then : 12816 if test x"$ac_arg" = x 12817then : 12818 ac_cv_c_undeclared_builtin_options='none needed' 12819else $as_nop 12820 ac_cv_c_undeclared_builtin_options=$ac_arg 12821fi 12822 break 12823fi 12824rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12825fi 12826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12827 done 12828 CFLAGS=$ac_save_CFLAGS 12829 12830fi 12831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 12832printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 12833 case $ac_cv_c_undeclared_builtin_options in #( 12834 'cannot detect') : 12835 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12836printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12837as_fn_error $? "cannot make $CC report undeclared builtins 12838See \`config.log' for more details" "$LINENO" 5; } ;; #( 12839 'none needed') : 12840 ac_c_undeclared_builtin_options='' ;; #( 12841 *) : 12842 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 12843esac 12844 12845 12846 12847 12848 12849ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12850if test "x$ac_cv_have_decl___clang__" = xyes 12851then : 12852 CLANGCC="yes" 12853else $as_nop 12854 CLANGCC="no" 12855fi 12856ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12857if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 12858then : 12859 INTELCC="yes" 12860else $as_nop 12861 INTELCC="no" 12862fi 12863ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12864if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 12865then : 12866 SUNCC="yes" 12867else $as_nop 12868 SUNCC="no" 12869fi 12870 12871 12872 12873 12874 12875 12876 12877 12878if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12879 if test -n "$ac_tool_prefix"; then 12880 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12881set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12883printf %s "checking for $ac_word... " >&6; } 12884if test ${ac_cv_path_PKG_CONFIG+y} 12885then : 12886 printf %s "(cached) " >&6 12887else $as_nop 12888 case $PKG_CONFIG in 12889 [\\/]* | ?:[\\/]*) 12890 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12891 ;; 12892 *) 12893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12894for as_dir in $PATH 12895do 12896 IFS=$as_save_IFS 12897 case $as_dir in #((( 12898 '') as_dir=./ ;; 12899 */) ;; 12900 *) as_dir=$as_dir/ ;; 12901 esac 12902 for ac_exec_ext in '' $ac_executable_extensions; do 12903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12904 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12906 break 2 12907 fi 12908done 12909 done 12910IFS=$as_save_IFS 12911 12912 ;; 12913esac 12914fi 12915PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12916if test -n "$PKG_CONFIG"; then 12917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12918printf "%s\n" "$PKG_CONFIG" >&6; } 12919else 12920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12921printf "%s\n" "no" >&6; } 12922fi 12923 12924 12925fi 12926if test -z "$ac_cv_path_PKG_CONFIG"; then 12927 ac_pt_PKG_CONFIG=$PKG_CONFIG 12928 # Extract the first word of "pkg-config", so it can be a program name with args. 12929set dummy pkg-config; ac_word=$2 12930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12931printf %s "checking for $ac_word... " >&6; } 12932if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 12933then : 12934 printf %s "(cached) " >&6 12935else $as_nop 12936 case $ac_pt_PKG_CONFIG in 12937 [\\/]* | ?:[\\/]*) 12938 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12939 ;; 12940 *) 12941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12942for as_dir in $PATH 12943do 12944 IFS=$as_save_IFS 12945 case $as_dir in #((( 12946 '') as_dir=./ ;; 12947 */) ;; 12948 *) as_dir=$as_dir/ ;; 12949 esac 12950 for ac_exec_ext in '' $ac_executable_extensions; do 12951 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12952 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12954 break 2 12955 fi 12956done 12957 done 12958IFS=$as_save_IFS 12959 12960 ;; 12961esac 12962fi 12963ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12964if test -n "$ac_pt_PKG_CONFIG"; then 12965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12966printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 12967else 12968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12969printf "%s\n" "no" >&6; } 12970fi 12971 12972 if test "x$ac_pt_PKG_CONFIG" = x; then 12973 PKG_CONFIG="" 12974 else 12975 case $cross_compiling:$ac_tool_warned in 12976yes:) 12977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12978printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12979ac_tool_warned=yes ;; 12980esac 12981 PKG_CONFIG=$ac_pt_PKG_CONFIG 12982 fi 12983else 12984 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12985fi 12986 12987fi 12988if test -n "$PKG_CONFIG"; then 12989 _pkg_min_version=0.9.0 12990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12991printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12992 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12994printf "%s\n" "yes" >&6; } 12995 else 12996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12997printf "%s\n" "no" >&6; } 12998 PKG_CONFIG="" 12999 fi 13000fi 13001 13002 13003 13004 13005 13006# Check whether --enable-selective-werror was given. 13007if test ${enable_selective_werror+y} 13008then : 13009 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13010else $as_nop 13011 SELECTIVE_WERROR=yes 13012fi 13013 13014 13015 13016 13017 13018# -v is too short to test reliably with XORG_TESTSET_CFLAG 13019if test "x$SUNCC" = "xyes"; then 13020 BASE_CFLAGS="-v" 13021else 13022 BASE_CFLAGS="" 13023fi 13024 13025# This chunk of warnings were those that existed in the legacy CWARNFLAGS 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039xorg_testset_save_CFLAGS="$CFLAGS" 13040 13041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13044printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13045if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13046then : 13047 printf %s "(cached) " >&6 13048else $as_nop 13049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13050/* end confdefs.h. */ 13051int i; 13052_ACEOF 13053if ac_fn_c_try_compile "$LINENO" 13054then : 13055 xorg_cv_cc_flag_unknown_warning_option=yes 13056else $as_nop 13057 xorg_cv_cc_flag_unknown_warning_option=no 13058fi 13059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13060fi 13061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13062printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13063 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13064 CFLAGS="$xorg_testset_save_CFLAGS" 13065fi 13066 13067if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13070 fi 13071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13073printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13074if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13075then : 13076 printf %s "(cached) " >&6 13077else $as_nop 13078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13079/* end confdefs.h. */ 13080int i; 13081_ACEOF 13082if ac_fn_c_try_compile "$LINENO" 13083then : 13084 xorg_cv_cc_flag_unused_command_line_argument=yes 13085else $as_nop 13086 xorg_cv_cc_flag_unused_command_line_argument=no 13087fi 13088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13089fi 13090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13091printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13093 CFLAGS="$xorg_testset_save_CFLAGS" 13094fi 13095 13096found="no" 13097 13098 if test $found = "no" ; then 13099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13101 fi 13102 13103 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13105 fi 13106 13107 CFLAGS="$CFLAGS -Wall" 13108 13109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13110printf %s "checking if $CC supports -Wall... " >&6; } 13111 cacheid=xorg_cv_cc_flag__Wall 13112 if eval test \${$cacheid+y} 13113then : 13114 printf %s "(cached) " >&6 13115else $as_nop 13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13117/* end confdefs.h. */ 13118int i; 13119int 13120main (void) 13121{ 13122 13123 ; 13124 return 0; 13125} 13126_ACEOF 13127if ac_fn_c_try_link "$LINENO" 13128then : 13129 eval $cacheid=yes 13130else $as_nop 13131 eval $cacheid=no 13132fi 13133rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13134 conftest$ac_exeext conftest.$ac_ext 13135fi 13136 13137 13138 CFLAGS="$xorg_testset_save_CFLAGS" 13139 13140 eval supported=\$$cacheid 13141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13142printf "%s\n" "$supported" >&6; } 13143 if test "$supported" = "yes" ; then 13144 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13145 found="yes" 13146 fi 13147 fi 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163xorg_testset_save_CFLAGS="$CFLAGS" 13164 13165if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13168printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13169if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13170then : 13171 printf %s "(cached) " >&6 13172else $as_nop 13173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13174/* end confdefs.h. */ 13175int i; 13176_ACEOF 13177if ac_fn_c_try_compile "$LINENO" 13178then : 13179 xorg_cv_cc_flag_unknown_warning_option=yes 13180else $as_nop 13181 xorg_cv_cc_flag_unknown_warning_option=no 13182fi 13183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13184fi 13185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13186printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13188 CFLAGS="$xorg_testset_save_CFLAGS" 13189fi 13190 13191if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13194 fi 13195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13197printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13198if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13199then : 13200 printf %s "(cached) " >&6 13201else $as_nop 13202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13203/* end confdefs.h. */ 13204int i; 13205_ACEOF 13206if ac_fn_c_try_compile "$LINENO" 13207then : 13208 xorg_cv_cc_flag_unused_command_line_argument=yes 13209else $as_nop 13210 xorg_cv_cc_flag_unused_command_line_argument=no 13211fi 13212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13213fi 13214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13215printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13216 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13217 CFLAGS="$xorg_testset_save_CFLAGS" 13218fi 13219 13220found="no" 13221 13222 if test $found = "no" ; then 13223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13225 fi 13226 13227 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13229 fi 13230 13231 CFLAGS="$CFLAGS -Wpointer-arith" 13232 13233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13234printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13235 cacheid=xorg_cv_cc_flag__Wpointer_arith 13236 if eval test \${$cacheid+y} 13237then : 13238 printf %s "(cached) " >&6 13239else $as_nop 13240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13241/* end confdefs.h. */ 13242int i; 13243int 13244main (void) 13245{ 13246 13247 ; 13248 return 0; 13249} 13250_ACEOF 13251if ac_fn_c_try_link "$LINENO" 13252then : 13253 eval $cacheid=yes 13254else $as_nop 13255 eval $cacheid=no 13256fi 13257rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13258 conftest$ac_exeext conftest.$ac_ext 13259fi 13260 13261 13262 CFLAGS="$xorg_testset_save_CFLAGS" 13263 13264 eval supported=\$$cacheid 13265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13266printf "%s\n" "$supported" >&6; } 13267 if test "$supported" = "yes" ; then 13268 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13269 found="yes" 13270 fi 13271 fi 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287xorg_testset_save_CFLAGS="$CFLAGS" 13288 13289if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13292printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13293if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13294then : 13295 printf %s "(cached) " >&6 13296else $as_nop 13297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13298/* end confdefs.h. */ 13299int i; 13300_ACEOF 13301if ac_fn_c_try_compile "$LINENO" 13302then : 13303 xorg_cv_cc_flag_unknown_warning_option=yes 13304else $as_nop 13305 xorg_cv_cc_flag_unknown_warning_option=no 13306fi 13307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13308fi 13309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13310printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13311 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13312 CFLAGS="$xorg_testset_save_CFLAGS" 13313fi 13314 13315if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13318 fi 13319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13321printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13322if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13323then : 13324 printf %s "(cached) " >&6 13325else $as_nop 13326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13327/* end confdefs.h. */ 13328int i; 13329_ACEOF 13330if ac_fn_c_try_compile "$LINENO" 13331then : 13332 xorg_cv_cc_flag_unused_command_line_argument=yes 13333else $as_nop 13334 xorg_cv_cc_flag_unused_command_line_argument=no 13335fi 13336rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13337fi 13338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13339printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13341 CFLAGS="$xorg_testset_save_CFLAGS" 13342fi 13343 13344found="no" 13345 13346 if test $found = "no" ; then 13347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13349 fi 13350 13351 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13353 fi 13354 13355 CFLAGS="$CFLAGS -Wmissing-declarations" 13356 13357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13358printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13359 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13360 if eval test \${$cacheid+y} 13361then : 13362 printf %s "(cached) " >&6 13363else $as_nop 13364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13365/* end confdefs.h. */ 13366int i; 13367int 13368main (void) 13369{ 13370 13371 ; 13372 return 0; 13373} 13374_ACEOF 13375if ac_fn_c_try_link "$LINENO" 13376then : 13377 eval $cacheid=yes 13378else $as_nop 13379 eval $cacheid=no 13380fi 13381rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13382 conftest$ac_exeext conftest.$ac_ext 13383fi 13384 13385 13386 CFLAGS="$xorg_testset_save_CFLAGS" 13387 13388 eval supported=\$$cacheid 13389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13390printf "%s\n" "$supported" >&6; } 13391 if test "$supported" = "yes" ; then 13392 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13393 found="yes" 13394 fi 13395 fi 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411xorg_testset_save_CFLAGS="$CFLAGS" 13412 13413if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13416printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13417if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13418then : 13419 printf %s "(cached) " >&6 13420else $as_nop 13421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13422/* end confdefs.h. */ 13423int i; 13424_ACEOF 13425if ac_fn_c_try_compile "$LINENO" 13426then : 13427 xorg_cv_cc_flag_unknown_warning_option=yes 13428else $as_nop 13429 xorg_cv_cc_flag_unknown_warning_option=no 13430fi 13431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13432fi 13433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13434printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13435 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13436 CFLAGS="$xorg_testset_save_CFLAGS" 13437fi 13438 13439if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13442 fi 13443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13445printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13446if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13447then : 13448 printf %s "(cached) " >&6 13449else $as_nop 13450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13451/* end confdefs.h. */ 13452int i; 13453_ACEOF 13454if ac_fn_c_try_compile "$LINENO" 13455then : 13456 xorg_cv_cc_flag_unused_command_line_argument=yes 13457else $as_nop 13458 xorg_cv_cc_flag_unused_command_line_argument=no 13459fi 13460rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13461fi 13462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13463printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13464 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13465 CFLAGS="$xorg_testset_save_CFLAGS" 13466fi 13467 13468found="no" 13469 13470 if test $found = "no" ; then 13471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13473 fi 13474 13475 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13477 fi 13478 13479 CFLAGS="$CFLAGS -Wformat=2" 13480 13481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13482printf %s "checking if $CC supports -Wformat=2... " >&6; } 13483 cacheid=xorg_cv_cc_flag__Wformat_2 13484 if eval test \${$cacheid+y} 13485then : 13486 printf %s "(cached) " >&6 13487else $as_nop 13488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13489/* end confdefs.h. */ 13490int i; 13491int 13492main (void) 13493{ 13494 13495 ; 13496 return 0; 13497} 13498_ACEOF 13499if ac_fn_c_try_link "$LINENO" 13500then : 13501 eval $cacheid=yes 13502else $as_nop 13503 eval $cacheid=no 13504fi 13505rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13506 conftest$ac_exeext conftest.$ac_ext 13507fi 13508 13509 13510 CFLAGS="$xorg_testset_save_CFLAGS" 13511 13512 eval supported=\$$cacheid 13513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13514printf "%s\n" "$supported" >&6; } 13515 if test "$supported" = "yes" ; then 13516 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13517 found="yes" 13518 fi 13519 fi 13520 13521 if test $found = "no" ; then 13522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13524 fi 13525 13526 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13528 fi 13529 13530 CFLAGS="$CFLAGS -Wformat" 13531 13532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13533printf %s "checking if $CC supports -Wformat... " >&6; } 13534 cacheid=xorg_cv_cc_flag__Wformat 13535 if eval test \${$cacheid+y} 13536then : 13537 printf %s "(cached) " >&6 13538else $as_nop 13539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13540/* end confdefs.h. */ 13541int i; 13542int 13543main (void) 13544{ 13545 13546 ; 13547 return 0; 13548} 13549_ACEOF 13550if ac_fn_c_try_link "$LINENO" 13551then : 13552 eval $cacheid=yes 13553else $as_nop 13554 eval $cacheid=no 13555fi 13556rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13557 conftest$ac_exeext conftest.$ac_ext 13558fi 13559 13560 13561 CFLAGS="$xorg_testset_save_CFLAGS" 13562 13563 eval supported=\$$cacheid 13564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13565printf "%s\n" "$supported" >&6; } 13566 if test "$supported" = "yes" ; then 13567 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13568 found="yes" 13569 fi 13570 fi 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588xorg_testset_save_CFLAGS="$CFLAGS" 13589 13590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13593printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13594if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13595then : 13596 printf %s "(cached) " >&6 13597else $as_nop 13598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13599/* end confdefs.h. */ 13600int i; 13601_ACEOF 13602if ac_fn_c_try_compile "$LINENO" 13603then : 13604 xorg_cv_cc_flag_unknown_warning_option=yes 13605else $as_nop 13606 xorg_cv_cc_flag_unknown_warning_option=no 13607fi 13608rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13609fi 13610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13611printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13612 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13613 CFLAGS="$xorg_testset_save_CFLAGS" 13614fi 13615 13616if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13619 fi 13620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13622printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13623if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13624then : 13625 printf %s "(cached) " >&6 13626else $as_nop 13627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13628/* end confdefs.h. */ 13629int i; 13630_ACEOF 13631if ac_fn_c_try_compile "$LINENO" 13632then : 13633 xorg_cv_cc_flag_unused_command_line_argument=yes 13634else $as_nop 13635 xorg_cv_cc_flag_unused_command_line_argument=no 13636fi 13637rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13638fi 13639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13640printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13642 CFLAGS="$xorg_testset_save_CFLAGS" 13643fi 13644 13645found="no" 13646 13647 if test $found = "no" ; then 13648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13650 fi 13651 13652 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13654 fi 13655 13656 CFLAGS="$CFLAGS -Wstrict-prototypes" 13657 13658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13659printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 13660 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13661 if eval test \${$cacheid+y} 13662then : 13663 printf %s "(cached) " >&6 13664else $as_nop 13665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13666/* end confdefs.h. */ 13667int i; 13668int 13669main (void) 13670{ 13671 13672 ; 13673 return 0; 13674} 13675_ACEOF 13676if ac_fn_c_try_link "$LINENO" 13677then : 13678 eval $cacheid=yes 13679else $as_nop 13680 eval $cacheid=no 13681fi 13682rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13683 conftest$ac_exeext conftest.$ac_ext 13684fi 13685 13686 13687 CFLAGS="$xorg_testset_save_CFLAGS" 13688 13689 eval supported=\$$cacheid 13690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13691printf "%s\n" "$supported" >&6; } 13692 if test "$supported" = "yes" ; then 13693 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13694 found="yes" 13695 fi 13696 fi 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712xorg_testset_save_CFLAGS="$CFLAGS" 13713 13714if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13717printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13718if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13719then : 13720 printf %s "(cached) " >&6 13721else $as_nop 13722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13723/* end confdefs.h. */ 13724int i; 13725_ACEOF 13726if ac_fn_c_try_compile "$LINENO" 13727then : 13728 xorg_cv_cc_flag_unknown_warning_option=yes 13729else $as_nop 13730 xorg_cv_cc_flag_unknown_warning_option=no 13731fi 13732rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13733fi 13734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13735printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13736 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13737 CFLAGS="$xorg_testset_save_CFLAGS" 13738fi 13739 13740if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13743 fi 13744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13746printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13747if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13748then : 13749 printf %s "(cached) " >&6 13750else $as_nop 13751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13752/* end confdefs.h. */ 13753int i; 13754_ACEOF 13755if ac_fn_c_try_compile "$LINENO" 13756then : 13757 xorg_cv_cc_flag_unused_command_line_argument=yes 13758else $as_nop 13759 xorg_cv_cc_flag_unused_command_line_argument=no 13760fi 13761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13762fi 13763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13764printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13766 CFLAGS="$xorg_testset_save_CFLAGS" 13767fi 13768 13769found="no" 13770 13771 if test $found = "no" ; then 13772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13774 fi 13775 13776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13778 fi 13779 13780 CFLAGS="$CFLAGS -Wmissing-prototypes" 13781 13782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13783printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 13784 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13785 if eval test \${$cacheid+y} 13786then : 13787 printf %s "(cached) " >&6 13788else $as_nop 13789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13790/* end confdefs.h. */ 13791int i; 13792int 13793main (void) 13794{ 13795 13796 ; 13797 return 0; 13798} 13799_ACEOF 13800if ac_fn_c_try_link "$LINENO" 13801then : 13802 eval $cacheid=yes 13803else $as_nop 13804 eval $cacheid=no 13805fi 13806rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13807 conftest$ac_exeext conftest.$ac_ext 13808fi 13809 13810 13811 CFLAGS="$xorg_testset_save_CFLAGS" 13812 13813 eval supported=\$$cacheid 13814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13815printf "%s\n" "$supported" >&6; } 13816 if test "$supported" = "yes" ; then 13817 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13818 found="yes" 13819 fi 13820 fi 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836xorg_testset_save_CFLAGS="$CFLAGS" 13837 13838if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13841printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13842if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13843then : 13844 printf %s "(cached) " >&6 13845else $as_nop 13846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13847/* end confdefs.h. */ 13848int i; 13849_ACEOF 13850if ac_fn_c_try_compile "$LINENO" 13851then : 13852 xorg_cv_cc_flag_unknown_warning_option=yes 13853else $as_nop 13854 xorg_cv_cc_flag_unknown_warning_option=no 13855fi 13856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13857fi 13858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13859printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13861 CFLAGS="$xorg_testset_save_CFLAGS" 13862fi 13863 13864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13867 fi 13868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13870printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13871if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13872then : 13873 printf %s "(cached) " >&6 13874else $as_nop 13875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13876/* end confdefs.h. */ 13877int i; 13878_ACEOF 13879if ac_fn_c_try_compile "$LINENO" 13880then : 13881 xorg_cv_cc_flag_unused_command_line_argument=yes 13882else $as_nop 13883 xorg_cv_cc_flag_unused_command_line_argument=no 13884fi 13885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13886fi 13887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13888printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13890 CFLAGS="$xorg_testset_save_CFLAGS" 13891fi 13892 13893found="no" 13894 13895 if test $found = "no" ; then 13896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13898 fi 13899 13900 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13902 fi 13903 13904 CFLAGS="$CFLAGS -Wnested-externs" 13905 13906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13907printf %s "checking if $CC supports -Wnested-externs... " >&6; } 13908 cacheid=xorg_cv_cc_flag__Wnested_externs 13909 if eval test \${$cacheid+y} 13910then : 13911 printf %s "(cached) " >&6 13912else $as_nop 13913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13914/* end confdefs.h. */ 13915int i; 13916int 13917main (void) 13918{ 13919 13920 ; 13921 return 0; 13922} 13923_ACEOF 13924if ac_fn_c_try_link "$LINENO" 13925then : 13926 eval $cacheid=yes 13927else $as_nop 13928 eval $cacheid=no 13929fi 13930rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13931 conftest$ac_exeext conftest.$ac_ext 13932fi 13933 13934 13935 CFLAGS="$xorg_testset_save_CFLAGS" 13936 13937 eval supported=\$$cacheid 13938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13939printf "%s\n" "$supported" >&6; } 13940 if test "$supported" = "yes" ; then 13941 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13942 found="yes" 13943 fi 13944 fi 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960xorg_testset_save_CFLAGS="$CFLAGS" 13961 13962if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13965printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13966if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13967then : 13968 printf %s "(cached) " >&6 13969else $as_nop 13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13971/* end confdefs.h. */ 13972int i; 13973_ACEOF 13974if ac_fn_c_try_compile "$LINENO" 13975then : 13976 xorg_cv_cc_flag_unknown_warning_option=yes 13977else $as_nop 13978 xorg_cv_cc_flag_unknown_warning_option=no 13979fi 13980rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13981fi 13982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13983printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13985 CFLAGS="$xorg_testset_save_CFLAGS" 13986fi 13987 13988if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13991 fi 13992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13994printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13995if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13996then : 13997 printf %s "(cached) " >&6 13998else $as_nop 13999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14000/* end confdefs.h. */ 14001int i; 14002_ACEOF 14003if ac_fn_c_try_compile "$LINENO" 14004then : 14005 xorg_cv_cc_flag_unused_command_line_argument=yes 14006else $as_nop 14007 xorg_cv_cc_flag_unused_command_line_argument=no 14008fi 14009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14010fi 14011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14012printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14014 CFLAGS="$xorg_testset_save_CFLAGS" 14015fi 14016 14017found="no" 14018 14019 if test $found = "no" ; then 14020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14022 fi 14023 14024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14026 fi 14027 14028 CFLAGS="$CFLAGS -Wbad-function-cast" 14029 14030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14031printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14032 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14033 if eval test \${$cacheid+y} 14034then : 14035 printf %s "(cached) " >&6 14036else $as_nop 14037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14038/* end confdefs.h. */ 14039int i; 14040int 14041main (void) 14042{ 14043 14044 ; 14045 return 0; 14046} 14047_ACEOF 14048if ac_fn_c_try_link "$LINENO" 14049then : 14050 eval $cacheid=yes 14051else $as_nop 14052 eval $cacheid=no 14053fi 14054rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14055 conftest$ac_exeext conftest.$ac_ext 14056fi 14057 14058 14059 CFLAGS="$xorg_testset_save_CFLAGS" 14060 14061 eval supported=\$$cacheid 14062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14063printf "%s\n" "$supported" >&6; } 14064 if test "$supported" = "yes" ; then 14065 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14066 found="yes" 14067 fi 14068 fi 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084xorg_testset_save_CFLAGS="$CFLAGS" 14085 14086if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14089printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14090if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14091then : 14092 printf %s "(cached) " >&6 14093else $as_nop 14094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14095/* end confdefs.h. */ 14096int i; 14097_ACEOF 14098if ac_fn_c_try_compile "$LINENO" 14099then : 14100 xorg_cv_cc_flag_unknown_warning_option=yes 14101else $as_nop 14102 xorg_cv_cc_flag_unknown_warning_option=no 14103fi 14104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14105fi 14106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14107printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14109 CFLAGS="$xorg_testset_save_CFLAGS" 14110fi 14111 14112if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14115 fi 14116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14118printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14119if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14120then : 14121 printf %s "(cached) " >&6 14122else $as_nop 14123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14124/* end confdefs.h. */ 14125int i; 14126_ACEOF 14127if ac_fn_c_try_compile "$LINENO" 14128then : 14129 xorg_cv_cc_flag_unused_command_line_argument=yes 14130else $as_nop 14131 xorg_cv_cc_flag_unused_command_line_argument=no 14132fi 14133rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14134fi 14135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14136printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14138 CFLAGS="$xorg_testset_save_CFLAGS" 14139fi 14140 14141found="no" 14142 14143 if test $found = "no" ; then 14144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14146 fi 14147 14148 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14150 fi 14151 14152 CFLAGS="$CFLAGS -Wold-style-definition" 14153 14154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14155printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14156 cacheid=xorg_cv_cc_flag__Wold_style_definition 14157 if eval test \${$cacheid+y} 14158then : 14159 printf %s "(cached) " >&6 14160else $as_nop 14161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14162/* end confdefs.h. */ 14163int i; 14164int 14165main (void) 14166{ 14167 14168 ; 14169 return 0; 14170} 14171_ACEOF 14172if ac_fn_c_try_link "$LINENO" 14173then : 14174 eval $cacheid=yes 14175else $as_nop 14176 eval $cacheid=no 14177fi 14178rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14179 conftest$ac_exeext conftest.$ac_ext 14180fi 14181 14182 14183 CFLAGS="$xorg_testset_save_CFLAGS" 14184 14185 eval supported=\$$cacheid 14186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14187printf "%s\n" "$supported" >&6; } 14188 if test "$supported" = "yes" ; then 14189 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14190 found="yes" 14191 fi 14192 fi 14193 14194 if test $found = "no" ; then 14195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14197 fi 14198 14199 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14201 fi 14202 14203 CFLAGS="$CFLAGS -fd" 14204 14205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14206printf %s "checking if $CC supports -fd... " >&6; } 14207 cacheid=xorg_cv_cc_flag__fd 14208 if eval test \${$cacheid+y} 14209then : 14210 printf %s "(cached) " >&6 14211else $as_nop 14212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14213/* end confdefs.h. */ 14214int i; 14215int 14216main (void) 14217{ 14218 14219 ; 14220 return 0; 14221} 14222_ACEOF 14223if ac_fn_c_try_link "$LINENO" 14224then : 14225 eval $cacheid=yes 14226else $as_nop 14227 eval $cacheid=no 14228fi 14229rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14230 conftest$ac_exeext conftest.$ac_ext 14231fi 14232 14233 14234 CFLAGS="$xorg_testset_save_CFLAGS" 14235 14236 eval supported=\$$cacheid 14237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14238printf "%s\n" "$supported" >&6; } 14239 if test "$supported" = "yes" ; then 14240 BASE_CFLAGS="$BASE_CFLAGS -fd" 14241 found="yes" 14242 fi 14243 fi 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259xorg_testset_save_CFLAGS="$CFLAGS" 14260 14261if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14264printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14265if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14266then : 14267 printf %s "(cached) " >&6 14268else $as_nop 14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14270/* end confdefs.h. */ 14271int i; 14272_ACEOF 14273if ac_fn_c_try_compile "$LINENO" 14274then : 14275 xorg_cv_cc_flag_unknown_warning_option=yes 14276else $as_nop 14277 xorg_cv_cc_flag_unknown_warning_option=no 14278fi 14279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14280fi 14281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14282printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14284 CFLAGS="$xorg_testset_save_CFLAGS" 14285fi 14286 14287if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14290 fi 14291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14293printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14294if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14295then : 14296 printf %s "(cached) " >&6 14297else $as_nop 14298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14299/* end confdefs.h. */ 14300int i; 14301_ACEOF 14302if ac_fn_c_try_compile "$LINENO" 14303then : 14304 xorg_cv_cc_flag_unused_command_line_argument=yes 14305else $as_nop 14306 xorg_cv_cc_flag_unused_command_line_argument=no 14307fi 14308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14309fi 14310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14311printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14312 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14313 CFLAGS="$xorg_testset_save_CFLAGS" 14314fi 14315 14316found="no" 14317 14318 if test $found = "no" ; then 14319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14321 fi 14322 14323 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14325 fi 14326 14327 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14328 14329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14330printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14331 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14332 if eval test \${$cacheid+y} 14333then : 14334 printf %s "(cached) " >&6 14335else $as_nop 14336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14337/* end confdefs.h. */ 14338int i; 14339int 14340main (void) 14341{ 14342 14343 ; 14344 return 0; 14345} 14346_ACEOF 14347if ac_fn_c_try_link "$LINENO" 14348then : 14349 eval $cacheid=yes 14350else $as_nop 14351 eval $cacheid=no 14352fi 14353rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14354 conftest$ac_exeext conftest.$ac_ext 14355fi 14356 14357 14358 CFLAGS="$xorg_testset_save_CFLAGS" 14359 14360 eval supported=\$$cacheid 14361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14362printf "%s\n" "$supported" >&6; } 14363 if test "$supported" = "yes" ; then 14364 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14365 found="yes" 14366 fi 14367 fi 14368 14369 14370 14371 14372 14373# This chunk adds additional warnings that could catch undesired effects. 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387xorg_testset_save_CFLAGS="$CFLAGS" 14388 14389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14392printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14393if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14394then : 14395 printf %s "(cached) " >&6 14396else $as_nop 14397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14398/* end confdefs.h. */ 14399int i; 14400_ACEOF 14401if ac_fn_c_try_compile "$LINENO" 14402then : 14403 xorg_cv_cc_flag_unknown_warning_option=yes 14404else $as_nop 14405 xorg_cv_cc_flag_unknown_warning_option=no 14406fi 14407rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14408fi 14409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14410printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14411 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14412 CFLAGS="$xorg_testset_save_CFLAGS" 14413fi 14414 14415if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14418 fi 14419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14421printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14422if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14423then : 14424 printf %s "(cached) " >&6 14425else $as_nop 14426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14427/* end confdefs.h. */ 14428int i; 14429_ACEOF 14430if ac_fn_c_try_compile "$LINENO" 14431then : 14432 xorg_cv_cc_flag_unused_command_line_argument=yes 14433else $as_nop 14434 xorg_cv_cc_flag_unused_command_line_argument=no 14435fi 14436rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14437fi 14438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14439printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14441 CFLAGS="$xorg_testset_save_CFLAGS" 14442fi 14443 14444found="no" 14445 14446 if test $found = "no" ; then 14447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14449 fi 14450 14451 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14453 fi 14454 14455 CFLAGS="$CFLAGS -Wunused" 14456 14457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14458printf %s "checking if $CC supports -Wunused... " >&6; } 14459 cacheid=xorg_cv_cc_flag__Wunused 14460 if eval test \${$cacheid+y} 14461then : 14462 printf %s "(cached) " >&6 14463else $as_nop 14464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14465/* end confdefs.h. */ 14466int i; 14467int 14468main (void) 14469{ 14470 14471 ; 14472 return 0; 14473} 14474_ACEOF 14475if ac_fn_c_try_link "$LINENO" 14476then : 14477 eval $cacheid=yes 14478else $as_nop 14479 eval $cacheid=no 14480fi 14481rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14482 conftest$ac_exeext conftest.$ac_ext 14483fi 14484 14485 14486 CFLAGS="$xorg_testset_save_CFLAGS" 14487 14488 eval supported=\$$cacheid 14489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14490printf "%s\n" "$supported" >&6; } 14491 if test "$supported" = "yes" ; then 14492 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14493 found="yes" 14494 fi 14495 fi 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511xorg_testset_save_CFLAGS="$CFLAGS" 14512 14513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14516printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14517if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14518then : 14519 printf %s "(cached) " >&6 14520else $as_nop 14521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14522/* end confdefs.h. */ 14523int i; 14524_ACEOF 14525if ac_fn_c_try_compile "$LINENO" 14526then : 14527 xorg_cv_cc_flag_unknown_warning_option=yes 14528else $as_nop 14529 xorg_cv_cc_flag_unknown_warning_option=no 14530fi 14531rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14532fi 14533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14534printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14535 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14536 CFLAGS="$xorg_testset_save_CFLAGS" 14537fi 14538 14539if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14542 fi 14543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14545printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14546if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14547then : 14548 printf %s "(cached) " >&6 14549else $as_nop 14550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14551/* end confdefs.h. */ 14552int i; 14553_ACEOF 14554if ac_fn_c_try_compile "$LINENO" 14555then : 14556 xorg_cv_cc_flag_unused_command_line_argument=yes 14557else $as_nop 14558 xorg_cv_cc_flag_unused_command_line_argument=no 14559fi 14560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14561fi 14562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14563printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14564 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14565 CFLAGS="$xorg_testset_save_CFLAGS" 14566fi 14567 14568found="no" 14569 14570 if test $found = "no" ; then 14571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14573 fi 14574 14575 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14577 fi 14578 14579 CFLAGS="$CFLAGS -Wuninitialized" 14580 14581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14582printf %s "checking if $CC supports -Wuninitialized... " >&6; } 14583 cacheid=xorg_cv_cc_flag__Wuninitialized 14584 if eval test \${$cacheid+y} 14585then : 14586 printf %s "(cached) " >&6 14587else $as_nop 14588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14589/* end confdefs.h. */ 14590int i; 14591int 14592main (void) 14593{ 14594 14595 ; 14596 return 0; 14597} 14598_ACEOF 14599if ac_fn_c_try_link "$LINENO" 14600then : 14601 eval $cacheid=yes 14602else $as_nop 14603 eval $cacheid=no 14604fi 14605rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14606 conftest$ac_exeext conftest.$ac_ext 14607fi 14608 14609 14610 CFLAGS="$xorg_testset_save_CFLAGS" 14611 14612 eval supported=\$$cacheid 14613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14614printf "%s\n" "$supported" >&6; } 14615 if test "$supported" = "yes" ; then 14616 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14617 found="yes" 14618 fi 14619 fi 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635xorg_testset_save_CFLAGS="$CFLAGS" 14636 14637if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14640printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14641if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14642then : 14643 printf %s "(cached) " >&6 14644else $as_nop 14645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14646/* end confdefs.h. */ 14647int i; 14648_ACEOF 14649if ac_fn_c_try_compile "$LINENO" 14650then : 14651 xorg_cv_cc_flag_unknown_warning_option=yes 14652else $as_nop 14653 xorg_cv_cc_flag_unknown_warning_option=no 14654fi 14655rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14656fi 14657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14658printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14659 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14660 CFLAGS="$xorg_testset_save_CFLAGS" 14661fi 14662 14663if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14666 fi 14667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14669printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14670if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14671then : 14672 printf %s "(cached) " >&6 14673else $as_nop 14674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14675/* end confdefs.h. */ 14676int i; 14677_ACEOF 14678if ac_fn_c_try_compile "$LINENO" 14679then : 14680 xorg_cv_cc_flag_unused_command_line_argument=yes 14681else $as_nop 14682 xorg_cv_cc_flag_unused_command_line_argument=no 14683fi 14684rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14685fi 14686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14687printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14688 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14689 CFLAGS="$xorg_testset_save_CFLAGS" 14690fi 14691 14692found="no" 14693 14694 if test $found = "no" ; then 14695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14697 fi 14698 14699 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14701 fi 14702 14703 CFLAGS="$CFLAGS -Wshadow" 14704 14705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14706printf %s "checking if $CC supports -Wshadow... " >&6; } 14707 cacheid=xorg_cv_cc_flag__Wshadow 14708 if eval test \${$cacheid+y} 14709then : 14710 printf %s "(cached) " >&6 14711else $as_nop 14712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14713/* end confdefs.h. */ 14714int i; 14715int 14716main (void) 14717{ 14718 14719 ; 14720 return 0; 14721} 14722_ACEOF 14723if ac_fn_c_try_link "$LINENO" 14724then : 14725 eval $cacheid=yes 14726else $as_nop 14727 eval $cacheid=no 14728fi 14729rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14730 conftest$ac_exeext conftest.$ac_ext 14731fi 14732 14733 14734 CFLAGS="$xorg_testset_save_CFLAGS" 14735 14736 eval supported=\$$cacheid 14737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14738printf "%s\n" "$supported" >&6; } 14739 if test "$supported" = "yes" ; then 14740 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14741 found="yes" 14742 fi 14743 fi 14744 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759xorg_testset_save_CFLAGS="$CFLAGS" 14760 14761if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14764printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14765if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14766then : 14767 printf %s "(cached) " >&6 14768else $as_nop 14769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14770/* end confdefs.h. */ 14771int i; 14772_ACEOF 14773if ac_fn_c_try_compile "$LINENO" 14774then : 14775 xorg_cv_cc_flag_unknown_warning_option=yes 14776else $as_nop 14777 xorg_cv_cc_flag_unknown_warning_option=no 14778fi 14779rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14780fi 14781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14782printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14783 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14784 CFLAGS="$xorg_testset_save_CFLAGS" 14785fi 14786 14787if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14790 fi 14791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14793printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14794if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14795then : 14796 printf %s "(cached) " >&6 14797else $as_nop 14798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14799/* end confdefs.h. */ 14800int i; 14801_ACEOF 14802if ac_fn_c_try_compile "$LINENO" 14803then : 14804 xorg_cv_cc_flag_unused_command_line_argument=yes 14805else $as_nop 14806 xorg_cv_cc_flag_unused_command_line_argument=no 14807fi 14808rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14809fi 14810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14811printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14812 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14813 CFLAGS="$xorg_testset_save_CFLAGS" 14814fi 14815 14816found="no" 14817 14818 if test $found = "no" ; then 14819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14821 fi 14822 14823 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14825 fi 14826 14827 CFLAGS="$CFLAGS -Wmissing-noreturn" 14828 14829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14830printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 14831 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14832 if eval test \${$cacheid+y} 14833then : 14834 printf %s "(cached) " >&6 14835else $as_nop 14836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14837/* end confdefs.h. */ 14838int i; 14839int 14840main (void) 14841{ 14842 14843 ; 14844 return 0; 14845} 14846_ACEOF 14847if ac_fn_c_try_link "$LINENO" 14848then : 14849 eval $cacheid=yes 14850else $as_nop 14851 eval $cacheid=no 14852fi 14853rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14854 conftest$ac_exeext conftest.$ac_ext 14855fi 14856 14857 14858 CFLAGS="$xorg_testset_save_CFLAGS" 14859 14860 eval supported=\$$cacheid 14861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14862printf "%s\n" "$supported" >&6; } 14863 if test "$supported" = "yes" ; then 14864 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14865 found="yes" 14866 fi 14867 fi 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883xorg_testset_save_CFLAGS="$CFLAGS" 14884 14885if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14888printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14889if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14890then : 14891 printf %s "(cached) " >&6 14892else $as_nop 14893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14894/* end confdefs.h. */ 14895int i; 14896_ACEOF 14897if ac_fn_c_try_compile "$LINENO" 14898then : 14899 xorg_cv_cc_flag_unknown_warning_option=yes 14900else $as_nop 14901 xorg_cv_cc_flag_unknown_warning_option=no 14902fi 14903rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14904fi 14905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14906printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14907 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14908 CFLAGS="$xorg_testset_save_CFLAGS" 14909fi 14910 14911if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14914 fi 14915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14917printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14918if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14919then : 14920 printf %s "(cached) " >&6 14921else $as_nop 14922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14923/* end confdefs.h. */ 14924int i; 14925_ACEOF 14926if ac_fn_c_try_compile "$LINENO" 14927then : 14928 xorg_cv_cc_flag_unused_command_line_argument=yes 14929else $as_nop 14930 xorg_cv_cc_flag_unused_command_line_argument=no 14931fi 14932rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14933fi 14934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14935printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14936 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14937 CFLAGS="$xorg_testset_save_CFLAGS" 14938fi 14939 14940found="no" 14941 14942 if test $found = "no" ; then 14943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14945 fi 14946 14947 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14949 fi 14950 14951 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14952 14953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14954printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14955 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14956 if eval test \${$cacheid+y} 14957then : 14958 printf %s "(cached) " >&6 14959else $as_nop 14960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14961/* end confdefs.h. */ 14962int i; 14963int 14964main (void) 14965{ 14966 14967 ; 14968 return 0; 14969} 14970_ACEOF 14971if ac_fn_c_try_link "$LINENO" 14972then : 14973 eval $cacheid=yes 14974else $as_nop 14975 eval $cacheid=no 14976fi 14977rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14978 conftest$ac_exeext conftest.$ac_ext 14979fi 14980 14981 14982 CFLAGS="$xorg_testset_save_CFLAGS" 14983 14984 eval supported=\$$cacheid 14985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14986printf "%s\n" "$supported" >&6; } 14987 if test "$supported" = "yes" ; then 14988 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14989 found="yes" 14990 fi 14991 fi 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007xorg_testset_save_CFLAGS="$CFLAGS" 15008 15009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15012printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15013if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15014then : 15015 printf %s "(cached) " >&6 15016else $as_nop 15017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15018/* end confdefs.h. */ 15019int i; 15020_ACEOF 15021if ac_fn_c_try_compile "$LINENO" 15022then : 15023 xorg_cv_cc_flag_unknown_warning_option=yes 15024else $as_nop 15025 xorg_cv_cc_flag_unknown_warning_option=no 15026fi 15027rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15028fi 15029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15030printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15032 CFLAGS="$xorg_testset_save_CFLAGS" 15033fi 15034 15035if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15038 fi 15039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15041printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15042if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15043then : 15044 printf %s "(cached) " >&6 15045else $as_nop 15046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15047/* end confdefs.h. */ 15048int i; 15049_ACEOF 15050if ac_fn_c_try_compile "$LINENO" 15051then : 15052 xorg_cv_cc_flag_unused_command_line_argument=yes 15053else $as_nop 15054 xorg_cv_cc_flag_unused_command_line_argument=no 15055fi 15056rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15057fi 15058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15059printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15060 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15061 CFLAGS="$xorg_testset_save_CFLAGS" 15062fi 15063 15064found="no" 15065 15066 if test $found = "no" ; then 15067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15069 fi 15070 15071 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15073 fi 15074 15075 CFLAGS="$CFLAGS -Wredundant-decls" 15076 15077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15078printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15079 cacheid=xorg_cv_cc_flag__Wredundant_decls 15080 if eval test \${$cacheid+y} 15081then : 15082 printf %s "(cached) " >&6 15083else $as_nop 15084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15085/* end confdefs.h. */ 15086int i; 15087int 15088main (void) 15089{ 15090 15091 ; 15092 return 0; 15093} 15094_ACEOF 15095if ac_fn_c_try_link "$LINENO" 15096then : 15097 eval $cacheid=yes 15098else $as_nop 15099 eval $cacheid=no 15100fi 15101rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15102 conftest$ac_exeext conftest.$ac_ext 15103fi 15104 15105 15106 CFLAGS="$xorg_testset_save_CFLAGS" 15107 15108 eval supported=\$$cacheid 15109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15110printf "%s\n" "$supported" >&6; } 15111 if test "$supported" = "yes" ; then 15112 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15113 found="yes" 15114 fi 15115 fi 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131xorg_testset_save_CFLAGS="$CFLAGS" 15132 15133if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15136printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15137if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15138then : 15139 printf %s "(cached) " >&6 15140else $as_nop 15141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15142/* end confdefs.h. */ 15143int i; 15144_ACEOF 15145if ac_fn_c_try_compile "$LINENO" 15146then : 15147 xorg_cv_cc_flag_unknown_warning_option=yes 15148else $as_nop 15149 xorg_cv_cc_flag_unknown_warning_option=no 15150fi 15151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15152fi 15153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15154printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15155 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15156 CFLAGS="$xorg_testset_save_CFLAGS" 15157fi 15158 15159if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15162 fi 15163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15165printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15166if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15167then : 15168 printf %s "(cached) " >&6 15169else $as_nop 15170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15171/* end confdefs.h. */ 15172int i; 15173_ACEOF 15174if ac_fn_c_try_compile "$LINENO" 15175then : 15176 xorg_cv_cc_flag_unused_command_line_argument=yes 15177else $as_nop 15178 xorg_cv_cc_flag_unused_command_line_argument=no 15179fi 15180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15181fi 15182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15183printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15184 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15185 CFLAGS="$xorg_testset_save_CFLAGS" 15186fi 15187 15188found="no" 15189 15190 if test $found = "no" ; then 15191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15193 fi 15194 15195 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15197 fi 15198 15199 CFLAGS="$CFLAGS -Wlogical-op" 15200 15201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15202printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15203 cacheid=xorg_cv_cc_flag__Wlogical_op 15204 if eval test \${$cacheid+y} 15205then : 15206 printf %s "(cached) " >&6 15207else $as_nop 15208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15209/* end confdefs.h. */ 15210int i; 15211int 15212main (void) 15213{ 15214 15215 ; 15216 return 0; 15217} 15218_ACEOF 15219if ac_fn_c_try_link "$LINENO" 15220then : 15221 eval $cacheid=yes 15222else $as_nop 15223 eval $cacheid=no 15224fi 15225rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15226 conftest$ac_exeext conftest.$ac_ext 15227fi 15228 15229 15230 CFLAGS="$xorg_testset_save_CFLAGS" 15231 15232 eval supported=\$$cacheid 15233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15234printf "%s\n" "$supported" >&6; } 15235 if test "$supported" = "yes" ; then 15236 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15237 found="yes" 15238 fi 15239 fi 15240 15241 15242 15243# These are currently disabled because they are noisy. They will be enabled 15244# in the future once the codebase is sufficiently modernized to silence 15245# them. For now, I don't want them to drown out the other warnings. 15246# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15247# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15248# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15249 15250# Turn some warnings into errors, so we don't accidently get successful builds 15251# when there are problems that should be fixed. 15252 15253if test "x$SELECTIVE_WERROR" = "xyes" ; then 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267xorg_testset_save_CFLAGS="$CFLAGS" 15268 15269if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15272printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15273if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15274then : 15275 printf %s "(cached) " >&6 15276else $as_nop 15277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15278/* end confdefs.h. */ 15279int i; 15280_ACEOF 15281if ac_fn_c_try_compile "$LINENO" 15282then : 15283 xorg_cv_cc_flag_unknown_warning_option=yes 15284else $as_nop 15285 xorg_cv_cc_flag_unknown_warning_option=no 15286fi 15287rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15288fi 15289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15290printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15291 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15292 CFLAGS="$xorg_testset_save_CFLAGS" 15293fi 15294 15295if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15298 fi 15299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15301printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15302if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15303then : 15304 printf %s "(cached) " >&6 15305else $as_nop 15306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15307/* end confdefs.h. */ 15308int i; 15309_ACEOF 15310if ac_fn_c_try_compile "$LINENO" 15311then : 15312 xorg_cv_cc_flag_unused_command_line_argument=yes 15313else $as_nop 15314 xorg_cv_cc_flag_unused_command_line_argument=no 15315fi 15316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15317fi 15318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15319printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15320 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15321 CFLAGS="$xorg_testset_save_CFLAGS" 15322fi 15323 15324found="no" 15325 15326 if test $found = "no" ; then 15327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15329 fi 15330 15331 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15333 fi 15334 15335 CFLAGS="$CFLAGS -Werror=implicit" 15336 15337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15338printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15339 cacheid=xorg_cv_cc_flag__Werror_implicit 15340 if eval test \${$cacheid+y} 15341then : 15342 printf %s "(cached) " >&6 15343else $as_nop 15344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15345/* end confdefs.h. */ 15346int i; 15347int 15348main (void) 15349{ 15350 15351 ; 15352 return 0; 15353} 15354_ACEOF 15355if ac_fn_c_try_link "$LINENO" 15356then : 15357 eval $cacheid=yes 15358else $as_nop 15359 eval $cacheid=no 15360fi 15361rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15362 conftest$ac_exeext conftest.$ac_ext 15363fi 15364 15365 15366 CFLAGS="$xorg_testset_save_CFLAGS" 15367 15368 eval supported=\$$cacheid 15369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15370printf "%s\n" "$supported" >&6; } 15371 if test "$supported" = "yes" ; then 15372 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15373 found="yes" 15374 fi 15375 fi 15376 15377 if test $found = "no" ; then 15378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15380 fi 15381 15382 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15384 fi 15385 15386 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15387 15388 { 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 15389printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15390 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15391 if eval test \${$cacheid+y} 15392then : 15393 printf %s "(cached) " >&6 15394else $as_nop 15395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15396/* end confdefs.h. */ 15397int i; 15398int 15399main (void) 15400{ 15401 15402 ; 15403 return 0; 15404} 15405_ACEOF 15406if ac_fn_c_try_link "$LINENO" 15407then : 15408 eval $cacheid=yes 15409else $as_nop 15410 eval $cacheid=no 15411fi 15412rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15413 conftest$ac_exeext conftest.$ac_ext 15414fi 15415 15416 15417 CFLAGS="$xorg_testset_save_CFLAGS" 15418 15419 eval supported=\$$cacheid 15420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15421printf "%s\n" "$supported" >&6; } 15422 if test "$supported" = "yes" ; then 15423 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15424 found="yes" 15425 fi 15426 fi 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442xorg_testset_save_CFLAGS="$CFLAGS" 15443 15444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15447printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15448if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15449then : 15450 printf %s "(cached) " >&6 15451else $as_nop 15452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15453/* end confdefs.h. */ 15454int i; 15455_ACEOF 15456if ac_fn_c_try_compile "$LINENO" 15457then : 15458 xorg_cv_cc_flag_unknown_warning_option=yes 15459else $as_nop 15460 xorg_cv_cc_flag_unknown_warning_option=no 15461fi 15462rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15463fi 15464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15465printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15467 CFLAGS="$xorg_testset_save_CFLAGS" 15468fi 15469 15470if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15473 fi 15474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15476printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15477if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15478then : 15479 printf %s "(cached) " >&6 15480else $as_nop 15481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15482/* end confdefs.h. */ 15483int i; 15484_ACEOF 15485if ac_fn_c_try_compile "$LINENO" 15486then : 15487 xorg_cv_cc_flag_unused_command_line_argument=yes 15488else $as_nop 15489 xorg_cv_cc_flag_unused_command_line_argument=no 15490fi 15491rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15492fi 15493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15494printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15495 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15496 CFLAGS="$xorg_testset_save_CFLAGS" 15497fi 15498 15499found="no" 15500 15501 if test $found = "no" ; then 15502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15504 fi 15505 15506 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15508 fi 15509 15510 CFLAGS="$CFLAGS -Werror=nonnull" 15511 15512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15513printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15514 cacheid=xorg_cv_cc_flag__Werror_nonnull 15515 if eval test \${$cacheid+y} 15516then : 15517 printf %s "(cached) " >&6 15518else $as_nop 15519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15520/* end confdefs.h. */ 15521int i; 15522int 15523main (void) 15524{ 15525 15526 ; 15527 return 0; 15528} 15529_ACEOF 15530if ac_fn_c_try_link "$LINENO" 15531then : 15532 eval $cacheid=yes 15533else $as_nop 15534 eval $cacheid=no 15535fi 15536rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15537 conftest$ac_exeext conftest.$ac_ext 15538fi 15539 15540 15541 CFLAGS="$xorg_testset_save_CFLAGS" 15542 15543 eval supported=\$$cacheid 15544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15545printf "%s\n" "$supported" >&6; } 15546 if test "$supported" = "yes" ; then 15547 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15548 found="yes" 15549 fi 15550 fi 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566xorg_testset_save_CFLAGS="$CFLAGS" 15567 15568if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15571printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15572if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15573then : 15574 printf %s "(cached) " >&6 15575else $as_nop 15576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15577/* end confdefs.h. */ 15578int i; 15579_ACEOF 15580if ac_fn_c_try_compile "$LINENO" 15581then : 15582 xorg_cv_cc_flag_unknown_warning_option=yes 15583else $as_nop 15584 xorg_cv_cc_flag_unknown_warning_option=no 15585fi 15586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15587fi 15588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15589printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15590 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15591 CFLAGS="$xorg_testset_save_CFLAGS" 15592fi 15593 15594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15597 fi 15598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15600printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15601if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15602then : 15603 printf %s "(cached) " >&6 15604else $as_nop 15605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15606/* end confdefs.h. */ 15607int i; 15608_ACEOF 15609if ac_fn_c_try_compile "$LINENO" 15610then : 15611 xorg_cv_cc_flag_unused_command_line_argument=yes 15612else $as_nop 15613 xorg_cv_cc_flag_unused_command_line_argument=no 15614fi 15615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15616fi 15617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15618printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15620 CFLAGS="$xorg_testset_save_CFLAGS" 15621fi 15622 15623found="no" 15624 15625 if test $found = "no" ; then 15626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15628 fi 15629 15630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15632 fi 15633 15634 CFLAGS="$CFLAGS -Werror=init-self" 15635 15636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15637printf %s "checking if $CC supports -Werror=init-self... " >&6; } 15638 cacheid=xorg_cv_cc_flag__Werror_init_self 15639 if eval test \${$cacheid+y} 15640then : 15641 printf %s "(cached) " >&6 15642else $as_nop 15643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15644/* end confdefs.h. */ 15645int i; 15646int 15647main (void) 15648{ 15649 15650 ; 15651 return 0; 15652} 15653_ACEOF 15654if ac_fn_c_try_link "$LINENO" 15655then : 15656 eval $cacheid=yes 15657else $as_nop 15658 eval $cacheid=no 15659fi 15660rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15661 conftest$ac_exeext conftest.$ac_ext 15662fi 15663 15664 15665 CFLAGS="$xorg_testset_save_CFLAGS" 15666 15667 eval supported=\$$cacheid 15668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15669printf "%s\n" "$supported" >&6; } 15670 if test "$supported" = "yes" ; then 15671 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15672 found="yes" 15673 fi 15674 fi 15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689 15690xorg_testset_save_CFLAGS="$CFLAGS" 15691 15692if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15695printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15696if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15697then : 15698 printf %s "(cached) " >&6 15699else $as_nop 15700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15701/* end confdefs.h. */ 15702int i; 15703_ACEOF 15704if ac_fn_c_try_compile "$LINENO" 15705then : 15706 xorg_cv_cc_flag_unknown_warning_option=yes 15707else $as_nop 15708 xorg_cv_cc_flag_unknown_warning_option=no 15709fi 15710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15711fi 15712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15713printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15714 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15715 CFLAGS="$xorg_testset_save_CFLAGS" 15716fi 15717 15718if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15721 fi 15722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15724printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15725if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15726then : 15727 printf %s "(cached) " >&6 15728else $as_nop 15729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15730/* end confdefs.h. */ 15731int i; 15732_ACEOF 15733if ac_fn_c_try_compile "$LINENO" 15734then : 15735 xorg_cv_cc_flag_unused_command_line_argument=yes 15736else $as_nop 15737 xorg_cv_cc_flag_unused_command_line_argument=no 15738fi 15739rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15740fi 15741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15742printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15743 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15744 CFLAGS="$xorg_testset_save_CFLAGS" 15745fi 15746 15747found="no" 15748 15749 if test $found = "no" ; then 15750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15752 fi 15753 15754 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15756 fi 15757 15758 CFLAGS="$CFLAGS -Werror=main" 15759 15760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15761printf %s "checking if $CC supports -Werror=main... " >&6; } 15762 cacheid=xorg_cv_cc_flag__Werror_main 15763 if eval test \${$cacheid+y} 15764then : 15765 printf %s "(cached) " >&6 15766else $as_nop 15767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15768/* end confdefs.h. */ 15769int i; 15770int 15771main (void) 15772{ 15773 15774 ; 15775 return 0; 15776} 15777_ACEOF 15778if ac_fn_c_try_link "$LINENO" 15779then : 15780 eval $cacheid=yes 15781else $as_nop 15782 eval $cacheid=no 15783fi 15784rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15785 conftest$ac_exeext conftest.$ac_ext 15786fi 15787 15788 15789 CFLAGS="$xorg_testset_save_CFLAGS" 15790 15791 eval supported=\$$cacheid 15792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15793printf "%s\n" "$supported" >&6; } 15794 if test "$supported" = "yes" ; then 15795 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15796 found="yes" 15797 fi 15798 fi 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814xorg_testset_save_CFLAGS="$CFLAGS" 15815 15816if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15819printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15820if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15821then : 15822 printf %s "(cached) " >&6 15823else $as_nop 15824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15825/* end confdefs.h. */ 15826int i; 15827_ACEOF 15828if ac_fn_c_try_compile "$LINENO" 15829then : 15830 xorg_cv_cc_flag_unknown_warning_option=yes 15831else $as_nop 15832 xorg_cv_cc_flag_unknown_warning_option=no 15833fi 15834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15835fi 15836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15837printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15839 CFLAGS="$xorg_testset_save_CFLAGS" 15840fi 15841 15842if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15845 fi 15846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15848printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15849if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15850then : 15851 printf %s "(cached) " >&6 15852else $as_nop 15853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15854/* end confdefs.h. */ 15855int i; 15856_ACEOF 15857if ac_fn_c_try_compile "$LINENO" 15858then : 15859 xorg_cv_cc_flag_unused_command_line_argument=yes 15860else $as_nop 15861 xorg_cv_cc_flag_unused_command_line_argument=no 15862fi 15863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15864fi 15865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15866printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15867 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15868 CFLAGS="$xorg_testset_save_CFLAGS" 15869fi 15870 15871found="no" 15872 15873 if test $found = "no" ; then 15874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15876 fi 15877 15878 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15880 fi 15881 15882 CFLAGS="$CFLAGS -Werror=missing-braces" 15883 15884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15885printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 15886 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15887 if eval test \${$cacheid+y} 15888then : 15889 printf %s "(cached) " >&6 15890else $as_nop 15891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15892/* end confdefs.h. */ 15893int i; 15894int 15895main (void) 15896{ 15897 15898 ; 15899 return 0; 15900} 15901_ACEOF 15902if ac_fn_c_try_link "$LINENO" 15903then : 15904 eval $cacheid=yes 15905else $as_nop 15906 eval $cacheid=no 15907fi 15908rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15909 conftest$ac_exeext conftest.$ac_ext 15910fi 15911 15912 15913 CFLAGS="$xorg_testset_save_CFLAGS" 15914 15915 eval supported=\$$cacheid 15916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15917printf "%s\n" "$supported" >&6; } 15918 if test "$supported" = "yes" ; then 15919 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15920 found="yes" 15921 fi 15922 fi 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938xorg_testset_save_CFLAGS="$CFLAGS" 15939 15940if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15943printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15944if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15945then : 15946 printf %s "(cached) " >&6 15947else $as_nop 15948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15949/* end confdefs.h. */ 15950int i; 15951_ACEOF 15952if ac_fn_c_try_compile "$LINENO" 15953then : 15954 xorg_cv_cc_flag_unknown_warning_option=yes 15955else $as_nop 15956 xorg_cv_cc_flag_unknown_warning_option=no 15957fi 15958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15959fi 15960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15961printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15963 CFLAGS="$xorg_testset_save_CFLAGS" 15964fi 15965 15966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15969 fi 15970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15972printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15973if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15974then : 15975 printf %s "(cached) " >&6 15976else $as_nop 15977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15978/* end confdefs.h. */ 15979int i; 15980_ACEOF 15981if ac_fn_c_try_compile "$LINENO" 15982then : 15983 xorg_cv_cc_flag_unused_command_line_argument=yes 15984else $as_nop 15985 xorg_cv_cc_flag_unused_command_line_argument=no 15986fi 15987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15988fi 15989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15990printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15992 CFLAGS="$xorg_testset_save_CFLAGS" 15993fi 15994 15995found="no" 15996 15997 if test $found = "no" ; then 15998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16000 fi 16001 16002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16004 fi 16005 16006 CFLAGS="$CFLAGS -Werror=sequence-point" 16007 16008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16009printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16010 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16011 if eval test \${$cacheid+y} 16012then : 16013 printf %s "(cached) " >&6 16014else $as_nop 16015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16016/* end confdefs.h. */ 16017int i; 16018int 16019main (void) 16020{ 16021 16022 ; 16023 return 0; 16024} 16025_ACEOF 16026if ac_fn_c_try_link "$LINENO" 16027then : 16028 eval $cacheid=yes 16029else $as_nop 16030 eval $cacheid=no 16031fi 16032rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16033 conftest$ac_exeext conftest.$ac_ext 16034fi 16035 16036 16037 CFLAGS="$xorg_testset_save_CFLAGS" 16038 16039 eval supported=\$$cacheid 16040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16041printf "%s\n" "$supported" >&6; } 16042 if test "$supported" = "yes" ; then 16043 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16044 found="yes" 16045 fi 16046 fi 16047 16048 16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 16062xorg_testset_save_CFLAGS="$CFLAGS" 16063 16064if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16067printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16068if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16069then : 16070 printf %s "(cached) " >&6 16071else $as_nop 16072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16073/* end confdefs.h. */ 16074int i; 16075_ACEOF 16076if ac_fn_c_try_compile "$LINENO" 16077then : 16078 xorg_cv_cc_flag_unknown_warning_option=yes 16079else $as_nop 16080 xorg_cv_cc_flag_unknown_warning_option=no 16081fi 16082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16083fi 16084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16085printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16087 CFLAGS="$xorg_testset_save_CFLAGS" 16088fi 16089 16090if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16093 fi 16094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16096printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16097if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16098then : 16099 printf %s "(cached) " >&6 16100else $as_nop 16101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16102/* end confdefs.h. */ 16103int i; 16104_ACEOF 16105if ac_fn_c_try_compile "$LINENO" 16106then : 16107 xorg_cv_cc_flag_unused_command_line_argument=yes 16108else $as_nop 16109 xorg_cv_cc_flag_unused_command_line_argument=no 16110fi 16111rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16112fi 16113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16114printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16115 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16116 CFLAGS="$xorg_testset_save_CFLAGS" 16117fi 16118 16119found="no" 16120 16121 if test $found = "no" ; then 16122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16124 fi 16125 16126 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16128 fi 16129 16130 CFLAGS="$CFLAGS -Werror=return-type" 16131 16132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16133printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16134 cacheid=xorg_cv_cc_flag__Werror_return_type 16135 if eval test \${$cacheid+y} 16136then : 16137 printf %s "(cached) " >&6 16138else $as_nop 16139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16140/* end confdefs.h. */ 16141int i; 16142int 16143main (void) 16144{ 16145 16146 ; 16147 return 0; 16148} 16149_ACEOF 16150if ac_fn_c_try_link "$LINENO" 16151then : 16152 eval $cacheid=yes 16153else $as_nop 16154 eval $cacheid=no 16155fi 16156rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16157 conftest$ac_exeext conftest.$ac_ext 16158fi 16159 16160 16161 CFLAGS="$xorg_testset_save_CFLAGS" 16162 16163 eval supported=\$$cacheid 16164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16165printf "%s\n" "$supported" >&6; } 16166 if test "$supported" = "yes" ; then 16167 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16168 found="yes" 16169 fi 16170 fi 16171 16172 if test $found = "no" ; then 16173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16175 fi 16176 16177 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16179 fi 16180 16181 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16182 16183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16184printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16185 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16186 if eval test \${$cacheid+y} 16187then : 16188 printf %s "(cached) " >&6 16189else $as_nop 16190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16191/* end confdefs.h. */ 16192int i; 16193int 16194main (void) 16195{ 16196 16197 ; 16198 return 0; 16199} 16200_ACEOF 16201if ac_fn_c_try_link "$LINENO" 16202then : 16203 eval $cacheid=yes 16204else $as_nop 16205 eval $cacheid=no 16206fi 16207rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16208 conftest$ac_exeext conftest.$ac_ext 16209fi 16210 16211 16212 CFLAGS="$xorg_testset_save_CFLAGS" 16213 16214 eval supported=\$$cacheid 16215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16216printf "%s\n" "$supported" >&6; } 16217 if test "$supported" = "yes" ; then 16218 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16219 found="yes" 16220 fi 16221 fi 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237xorg_testset_save_CFLAGS="$CFLAGS" 16238 16239if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16242printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16243if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16244then : 16245 printf %s "(cached) " >&6 16246else $as_nop 16247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16248/* end confdefs.h. */ 16249int i; 16250_ACEOF 16251if ac_fn_c_try_compile "$LINENO" 16252then : 16253 xorg_cv_cc_flag_unknown_warning_option=yes 16254else $as_nop 16255 xorg_cv_cc_flag_unknown_warning_option=no 16256fi 16257rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16258fi 16259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16260printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16262 CFLAGS="$xorg_testset_save_CFLAGS" 16263fi 16264 16265if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16268 fi 16269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16271printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16272if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16273then : 16274 printf %s "(cached) " >&6 16275else $as_nop 16276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16277/* end confdefs.h. */ 16278int i; 16279_ACEOF 16280if ac_fn_c_try_compile "$LINENO" 16281then : 16282 xorg_cv_cc_flag_unused_command_line_argument=yes 16283else $as_nop 16284 xorg_cv_cc_flag_unused_command_line_argument=no 16285fi 16286rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16287fi 16288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16289printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16290 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16291 CFLAGS="$xorg_testset_save_CFLAGS" 16292fi 16293 16294found="no" 16295 16296 if test $found = "no" ; then 16297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16299 fi 16300 16301 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16303 fi 16304 16305 CFLAGS="$CFLAGS -Werror=trigraphs" 16306 16307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16308printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16309 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16310 if eval test \${$cacheid+y} 16311then : 16312 printf %s "(cached) " >&6 16313else $as_nop 16314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16315/* end confdefs.h. */ 16316int i; 16317int 16318main (void) 16319{ 16320 16321 ; 16322 return 0; 16323} 16324_ACEOF 16325if ac_fn_c_try_link "$LINENO" 16326then : 16327 eval $cacheid=yes 16328else $as_nop 16329 eval $cacheid=no 16330fi 16331rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16332 conftest$ac_exeext conftest.$ac_ext 16333fi 16334 16335 16336 CFLAGS="$xorg_testset_save_CFLAGS" 16337 16338 eval supported=\$$cacheid 16339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16340printf "%s\n" "$supported" >&6; } 16341 if test "$supported" = "yes" ; then 16342 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16343 found="yes" 16344 fi 16345 fi 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361xorg_testset_save_CFLAGS="$CFLAGS" 16362 16363if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16366printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16367if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16368then : 16369 printf %s "(cached) " >&6 16370else $as_nop 16371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16372/* end confdefs.h. */ 16373int i; 16374_ACEOF 16375if ac_fn_c_try_compile "$LINENO" 16376then : 16377 xorg_cv_cc_flag_unknown_warning_option=yes 16378else $as_nop 16379 xorg_cv_cc_flag_unknown_warning_option=no 16380fi 16381rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16382fi 16383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16384printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16385 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16386 CFLAGS="$xorg_testset_save_CFLAGS" 16387fi 16388 16389if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16392 fi 16393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16395printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16396if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16397then : 16398 printf %s "(cached) " >&6 16399else $as_nop 16400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16401/* end confdefs.h. */ 16402int i; 16403_ACEOF 16404if ac_fn_c_try_compile "$LINENO" 16405then : 16406 xorg_cv_cc_flag_unused_command_line_argument=yes 16407else $as_nop 16408 xorg_cv_cc_flag_unused_command_line_argument=no 16409fi 16410rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16411fi 16412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16413printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16414 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16415 CFLAGS="$xorg_testset_save_CFLAGS" 16416fi 16417 16418found="no" 16419 16420 if test $found = "no" ; then 16421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16423 fi 16424 16425 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16427 fi 16428 16429 CFLAGS="$CFLAGS -Werror=array-bounds" 16430 16431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16432printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16433 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16434 if eval test \${$cacheid+y} 16435then : 16436 printf %s "(cached) " >&6 16437else $as_nop 16438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16439/* end confdefs.h. */ 16440int i; 16441int 16442main (void) 16443{ 16444 16445 ; 16446 return 0; 16447} 16448_ACEOF 16449if ac_fn_c_try_link "$LINENO" 16450then : 16451 eval $cacheid=yes 16452else $as_nop 16453 eval $cacheid=no 16454fi 16455rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16456 conftest$ac_exeext conftest.$ac_ext 16457fi 16458 16459 16460 CFLAGS="$xorg_testset_save_CFLAGS" 16461 16462 eval supported=\$$cacheid 16463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16464printf "%s\n" "$supported" >&6; } 16465 if test "$supported" = "yes" ; then 16466 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16467 found="yes" 16468 fi 16469 fi 16470 16471 16472 16473 16474 16475 16476 16477 16478 16479 16480 16481 16482 16483 16484 16485xorg_testset_save_CFLAGS="$CFLAGS" 16486 16487if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16490printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16491if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16492then : 16493 printf %s "(cached) " >&6 16494else $as_nop 16495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16496/* end confdefs.h. */ 16497int i; 16498_ACEOF 16499if ac_fn_c_try_compile "$LINENO" 16500then : 16501 xorg_cv_cc_flag_unknown_warning_option=yes 16502else $as_nop 16503 xorg_cv_cc_flag_unknown_warning_option=no 16504fi 16505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16506fi 16507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16508printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16510 CFLAGS="$xorg_testset_save_CFLAGS" 16511fi 16512 16513if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16516 fi 16517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16519printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16520if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16521then : 16522 printf %s "(cached) " >&6 16523else $as_nop 16524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16525/* end confdefs.h. */ 16526int i; 16527_ACEOF 16528if ac_fn_c_try_compile "$LINENO" 16529then : 16530 xorg_cv_cc_flag_unused_command_line_argument=yes 16531else $as_nop 16532 xorg_cv_cc_flag_unused_command_line_argument=no 16533fi 16534rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16535fi 16536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16537printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16539 CFLAGS="$xorg_testset_save_CFLAGS" 16540fi 16541 16542found="no" 16543 16544 if test $found = "no" ; then 16545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16547 fi 16548 16549 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16551 fi 16552 16553 CFLAGS="$CFLAGS -Werror=write-strings" 16554 16555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16556printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 16557 cacheid=xorg_cv_cc_flag__Werror_write_strings 16558 if eval test \${$cacheid+y} 16559then : 16560 printf %s "(cached) " >&6 16561else $as_nop 16562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16563/* end confdefs.h. */ 16564int i; 16565int 16566main (void) 16567{ 16568 16569 ; 16570 return 0; 16571} 16572_ACEOF 16573if ac_fn_c_try_link "$LINENO" 16574then : 16575 eval $cacheid=yes 16576else $as_nop 16577 eval $cacheid=no 16578fi 16579rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16580 conftest$ac_exeext conftest.$ac_ext 16581fi 16582 16583 16584 CFLAGS="$xorg_testset_save_CFLAGS" 16585 16586 eval supported=\$$cacheid 16587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16588printf "%s\n" "$supported" >&6; } 16589 if test "$supported" = "yes" ; then 16590 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16591 found="yes" 16592 fi 16593 fi 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609xorg_testset_save_CFLAGS="$CFLAGS" 16610 16611if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16614printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16615if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16616then : 16617 printf %s "(cached) " >&6 16618else $as_nop 16619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16620/* end confdefs.h. */ 16621int i; 16622_ACEOF 16623if ac_fn_c_try_compile "$LINENO" 16624then : 16625 xorg_cv_cc_flag_unknown_warning_option=yes 16626else $as_nop 16627 xorg_cv_cc_flag_unknown_warning_option=no 16628fi 16629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16630fi 16631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16632printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16634 CFLAGS="$xorg_testset_save_CFLAGS" 16635fi 16636 16637if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16640 fi 16641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16643printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16644if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16645then : 16646 printf %s "(cached) " >&6 16647else $as_nop 16648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16649/* end confdefs.h. */ 16650int i; 16651_ACEOF 16652if ac_fn_c_try_compile "$LINENO" 16653then : 16654 xorg_cv_cc_flag_unused_command_line_argument=yes 16655else $as_nop 16656 xorg_cv_cc_flag_unused_command_line_argument=no 16657fi 16658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16659fi 16660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16661printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16662 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16663 CFLAGS="$xorg_testset_save_CFLAGS" 16664fi 16665 16666found="no" 16667 16668 if test $found = "no" ; then 16669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16671 fi 16672 16673 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16675 fi 16676 16677 CFLAGS="$CFLAGS -Werror=address" 16678 16679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16680printf %s "checking if $CC supports -Werror=address... " >&6; } 16681 cacheid=xorg_cv_cc_flag__Werror_address 16682 if eval test \${$cacheid+y} 16683then : 16684 printf %s "(cached) " >&6 16685else $as_nop 16686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16687/* end confdefs.h. */ 16688int i; 16689int 16690main (void) 16691{ 16692 16693 ; 16694 return 0; 16695} 16696_ACEOF 16697if ac_fn_c_try_link "$LINENO" 16698then : 16699 eval $cacheid=yes 16700else $as_nop 16701 eval $cacheid=no 16702fi 16703rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16704 conftest$ac_exeext conftest.$ac_ext 16705fi 16706 16707 16708 CFLAGS="$xorg_testset_save_CFLAGS" 16709 16710 eval supported=\$$cacheid 16711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16712printf "%s\n" "$supported" >&6; } 16713 if test "$supported" = "yes" ; then 16714 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16715 found="yes" 16716 fi 16717 fi 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733xorg_testset_save_CFLAGS="$CFLAGS" 16734 16735if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16738printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16739if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16740then : 16741 printf %s "(cached) " >&6 16742else $as_nop 16743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16744/* end confdefs.h. */ 16745int i; 16746_ACEOF 16747if ac_fn_c_try_compile "$LINENO" 16748then : 16749 xorg_cv_cc_flag_unknown_warning_option=yes 16750else $as_nop 16751 xorg_cv_cc_flag_unknown_warning_option=no 16752fi 16753rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16754fi 16755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16756printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16757 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16758 CFLAGS="$xorg_testset_save_CFLAGS" 16759fi 16760 16761if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16764 fi 16765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16767printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16768if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16769then : 16770 printf %s "(cached) " >&6 16771else $as_nop 16772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16773/* end confdefs.h. */ 16774int i; 16775_ACEOF 16776if ac_fn_c_try_compile "$LINENO" 16777then : 16778 xorg_cv_cc_flag_unused_command_line_argument=yes 16779else $as_nop 16780 xorg_cv_cc_flag_unused_command_line_argument=no 16781fi 16782rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16783fi 16784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16785printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16787 CFLAGS="$xorg_testset_save_CFLAGS" 16788fi 16789 16790found="no" 16791 16792 if test $found = "no" ; then 16793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16795 fi 16796 16797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16799 fi 16800 16801 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16802 16803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16804printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16805 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16806 if eval test \${$cacheid+y} 16807then : 16808 printf %s "(cached) " >&6 16809else $as_nop 16810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16811/* end confdefs.h. */ 16812int i; 16813int 16814main (void) 16815{ 16816 16817 ; 16818 return 0; 16819} 16820_ACEOF 16821if ac_fn_c_try_link "$LINENO" 16822then : 16823 eval $cacheid=yes 16824else $as_nop 16825 eval $cacheid=no 16826fi 16827rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16828 conftest$ac_exeext conftest.$ac_ext 16829fi 16830 16831 16832 CFLAGS="$xorg_testset_save_CFLAGS" 16833 16834 eval supported=\$$cacheid 16835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16836printf "%s\n" "$supported" >&6; } 16837 if test "$supported" = "yes" ; then 16838 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16839 found="yes" 16840 fi 16841 fi 16842 16843 if test $found = "no" ; then 16844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16846 fi 16847 16848 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16850 fi 16851 16852 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16853 16854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16855printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16856 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16857 if eval test \${$cacheid+y} 16858then : 16859 printf %s "(cached) " >&6 16860else $as_nop 16861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16862/* end confdefs.h. */ 16863int i; 16864int 16865main (void) 16866{ 16867 16868 ; 16869 return 0; 16870} 16871_ACEOF 16872if ac_fn_c_try_link "$LINENO" 16873then : 16874 eval $cacheid=yes 16875else $as_nop 16876 eval $cacheid=no 16877fi 16878rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16879 conftest$ac_exeext conftest.$ac_ext 16880fi 16881 16882 16883 CFLAGS="$xorg_testset_save_CFLAGS" 16884 16885 eval supported=\$$cacheid 16886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16887printf "%s\n" "$supported" >&6; } 16888 if test "$supported" = "yes" ; then 16889 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16890 found="yes" 16891 fi 16892 fi 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 16906 16907 16908xorg_testset_save_CFLAGS="$CFLAGS" 16909 16910if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16913printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16914if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16915then : 16916 printf %s "(cached) " >&6 16917else $as_nop 16918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16919/* end confdefs.h. */ 16920int i; 16921_ACEOF 16922if ac_fn_c_try_compile "$LINENO" 16923then : 16924 xorg_cv_cc_flag_unknown_warning_option=yes 16925else $as_nop 16926 xorg_cv_cc_flag_unknown_warning_option=no 16927fi 16928rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16929fi 16930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16931printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16933 CFLAGS="$xorg_testset_save_CFLAGS" 16934fi 16935 16936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16939 fi 16940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16942printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16943if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16944then : 16945 printf %s "(cached) " >&6 16946else $as_nop 16947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16948/* end confdefs.h. */ 16949int i; 16950_ACEOF 16951if ac_fn_c_try_compile "$LINENO" 16952then : 16953 xorg_cv_cc_flag_unused_command_line_argument=yes 16954else $as_nop 16955 xorg_cv_cc_flag_unused_command_line_argument=no 16956fi 16957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16958fi 16959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16960printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16962 CFLAGS="$xorg_testset_save_CFLAGS" 16963fi 16964 16965found="no" 16966 16967 if test $found = "no" ; then 16968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16970 fi 16971 16972 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16974 fi 16975 16976 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16977 16978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16979printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16980 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16981 if eval test \${$cacheid+y} 16982then : 16983 printf %s "(cached) " >&6 16984else $as_nop 16985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16986/* end confdefs.h. */ 16987int i; 16988int 16989main (void) 16990{ 16991 16992 ; 16993 return 0; 16994} 16995_ACEOF 16996if ac_fn_c_try_link "$LINENO" 16997then : 16998 eval $cacheid=yes 16999else $as_nop 17000 eval $cacheid=no 17001fi 17002rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17003 conftest$ac_exeext conftest.$ac_ext 17004fi 17005 17006 17007 CFLAGS="$xorg_testset_save_CFLAGS" 17008 17009 eval supported=\$$cacheid 17010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17011printf "%s\n" "$supported" >&6; } 17012 if test "$supported" = "yes" ; then 17013 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17014 found="yes" 17015 fi 17016 fi 17017 17018 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17019else 17020{ 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 17021printf "%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;} 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035xorg_testset_save_CFLAGS="$CFLAGS" 17036 17037if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17040printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17041if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17042then : 17043 printf %s "(cached) " >&6 17044else $as_nop 17045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17046/* end confdefs.h. */ 17047int i; 17048_ACEOF 17049if ac_fn_c_try_compile "$LINENO" 17050then : 17051 xorg_cv_cc_flag_unknown_warning_option=yes 17052else $as_nop 17053 xorg_cv_cc_flag_unknown_warning_option=no 17054fi 17055rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17056fi 17057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17058printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17059 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17060 CFLAGS="$xorg_testset_save_CFLAGS" 17061fi 17062 17063if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17066 fi 17067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17069printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17070if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17071then : 17072 printf %s "(cached) " >&6 17073else $as_nop 17074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17075/* end confdefs.h. */ 17076int i; 17077_ACEOF 17078if ac_fn_c_try_compile "$LINENO" 17079then : 17080 xorg_cv_cc_flag_unused_command_line_argument=yes 17081else $as_nop 17082 xorg_cv_cc_flag_unused_command_line_argument=no 17083fi 17084rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17085fi 17086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17087printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17089 CFLAGS="$xorg_testset_save_CFLAGS" 17090fi 17091 17092found="no" 17093 17094 if test $found = "no" ; then 17095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17097 fi 17098 17099 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17101 fi 17102 17103 CFLAGS="$CFLAGS -Wimplicit" 17104 17105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17106printf %s "checking if $CC supports -Wimplicit... " >&6; } 17107 cacheid=xorg_cv_cc_flag__Wimplicit 17108 if eval test \${$cacheid+y} 17109then : 17110 printf %s "(cached) " >&6 17111else $as_nop 17112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17113/* end confdefs.h. */ 17114int i; 17115int 17116main (void) 17117{ 17118 17119 ; 17120 return 0; 17121} 17122_ACEOF 17123if ac_fn_c_try_link "$LINENO" 17124then : 17125 eval $cacheid=yes 17126else $as_nop 17127 eval $cacheid=no 17128fi 17129rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17130 conftest$ac_exeext conftest.$ac_ext 17131fi 17132 17133 17134 CFLAGS="$xorg_testset_save_CFLAGS" 17135 17136 eval supported=\$$cacheid 17137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17138printf "%s\n" "$supported" >&6; } 17139 if test "$supported" = "yes" ; then 17140 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17141 found="yes" 17142 fi 17143 fi 17144 17145 17146 17147 17148 17149 17150 17151 17152 17153 17154 17155 17156 17157 17158 17159xorg_testset_save_CFLAGS="$CFLAGS" 17160 17161if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17164printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17165if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17166then : 17167 printf %s "(cached) " >&6 17168else $as_nop 17169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17170/* end confdefs.h. */ 17171int i; 17172_ACEOF 17173if ac_fn_c_try_compile "$LINENO" 17174then : 17175 xorg_cv_cc_flag_unknown_warning_option=yes 17176else $as_nop 17177 xorg_cv_cc_flag_unknown_warning_option=no 17178fi 17179rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17180fi 17181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17182printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17184 CFLAGS="$xorg_testset_save_CFLAGS" 17185fi 17186 17187if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17190 fi 17191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17193printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17194if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17195then : 17196 printf %s "(cached) " >&6 17197else $as_nop 17198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17199/* end confdefs.h. */ 17200int i; 17201_ACEOF 17202if ac_fn_c_try_compile "$LINENO" 17203then : 17204 xorg_cv_cc_flag_unused_command_line_argument=yes 17205else $as_nop 17206 xorg_cv_cc_flag_unused_command_line_argument=no 17207fi 17208rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17209fi 17210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17211printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17212 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17213 CFLAGS="$xorg_testset_save_CFLAGS" 17214fi 17215 17216found="no" 17217 17218 if test $found = "no" ; then 17219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17221 fi 17222 17223 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17225 fi 17226 17227 CFLAGS="$CFLAGS -Wnonnull" 17228 17229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17230printf %s "checking if $CC supports -Wnonnull... " >&6; } 17231 cacheid=xorg_cv_cc_flag__Wnonnull 17232 if eval test \${$cacheid+y} 17233then : 17234 printf %s "(cached) " >&6 17235else $as_nop 17236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17237/* end confdefs.h. */ 17238int i; 17239int 17240main (void) 17241{ 17242 17243 ; 17244 return 0; 17245} 17246_ACEOF 17247if ac_fn_c_try_link "$LINENO" 17248then : 17249 eval $cacheid=yes 17250else $as_nop 17251 eval $cacheid=no 17252fi 17253rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17254 conftest$ac_exeext conftest.$ac_ext 17255fi 17256 17257 17258 CFLAGS="$xorg_testset_save_CFLAGS" 17259 17260 eval supported=\$$cacheid 17261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17262printf "%s\n" "$supported" >&6; } 17263 if test "$supported" = "yes" ; then 17264 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17265 found="yes" 17266 fi 17267 fi 17268 17269 17270 17271 17272 17273 17274 17275 17276 17277 17278 17279 17280 17281 17282 17283xorg_testset_save_CFLAGS="$CFLAGS" 17284 17285if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17288printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17289if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17290then : 17291 printf %s "(cached) " >&6 17292else $as_nop 17293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17294/* end confdefs.h. */ 17295int i; 17296_ACEOF 17297if ac_fn_c_try_compile "$LINENO" 17298then : 17299 xorg_cv_cc_flag_unknown_warning_option=yes 17300else $as_nop 17301 xorg_cv_cc_flag_unknown_warning_option=no 17302fi 17303rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17304fi 17305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17306printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17307 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17308 CFLAGS="$xorg_testset_save_CFLAGS" 17309fi 17310 17311if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17314 fi 17315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17317printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17318if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17319then : 17320 printf %s "(cached) " >&6 17321else $as_nop 17322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17323/* end confdefs.h. */ 17324int i; 17325_ACEOF 17326if ac_fn_c_try_compile "$LINENO" 17327then : 17328 xorg_cv_cc_flag_unused_command_line_argument=yes 17329else $as_nop 17330 xorg_cv_cc_flag_unused_command_line_argument=no 17331fi 17332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17333fi 17334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17335printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17337 CFLAGS="$xorg_testset_save_CFLAGS" 17338fi 17339 17340found="no" 17341 17342 if test $found = "no" ; then 17343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17345 fi 17346 17347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17349 fi 17350 17351 CFLAGS="$CFLAGS -Winit-self" 17352 17353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17354printf %s "checking if $CC supports -Winit-self... " >&6; } 17355 cacheid=xorg_cv_cc_flag__Winit_self 17356 if eval test \${$cacheid+y} 17357then : 17358 printf %s "(cached) " >&6 17359else $as_nop 17360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17361/* end confdefs.h. */ 17362int i; 17363int 17364main (void) 17365{ 17366 17367 ; 17368 return 0; 17369} 17370_ACEOF 17371if ac_fn_c_try_link "$LINENO" 17372then : 17373 eval $cacheid=yes 17374else $as_nop 17375 eval $cacheid=no 17376fi 17377rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17378 conftest$ac_exeext conftest.$ac_ext 17379fi 17380 17381 17382 CFLAGS="$xorg_testset_save_CFLAGS" 17383 17384 eval supported=\$$cacheid 17385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17386printf "%s\n" "$supported" >&6; } 17387 if test "$supported" = "yes" ; then 17388 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17389 found="yes" 17390 fi 17391 fi 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407xorg_testset_save_CFLAGS="$CFLAGS" 17408 17409if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17412printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17413if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17414then : 17415 printf %s "(cached) " >&6 17416else $as_nop 17417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17418/* end confdefs.h. */ 17419int i; 17420_ACEOF 17421if ac_fn_c_try_compile "$LINENO" 17422then : 17423 xorg_cv_cc_flag_unknown_warning_option=yes 17424else $as_nop 17425 xorg_cv_cc_flag_unknown_warning_option=no 17426fi 17427rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17428fi 17429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17430printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17432 CFLAGS="$xorg_testset_save_CFLAGS" 17433fi 17434 17435if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17438 fi 17439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17441printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17442if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17443then : 17444 printf %s "(cached) " >&6 17445else $as_nop 17446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17447/* end confdefs.h. */ 17448int i; 17449_ACEOF 17450if ac_fn_c_try_compile "$LINENO" 17451then : 17452 xorg_cv_cc_flag_unused_command_line_argument=yes 17453else $as_nop 17454 xorg_cv_cc_flag_unused_command_line_argument=no 17455fi 17456rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17457fi 17458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17459printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17461 CFLAGS="$xorg_testset_save_CFLAGS" 17462fi 17463 17464found="no" 17465 17466 if test $found = "no" ; then 17467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17469 fi 17470 17471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17473 fi 17474 17475 CFLAGS="$CFLAGS -Wmain" 17476 17477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17478printf %s "checking if $CC supports -Wmain... " >&6; } 17479 cacheid=xorg_cv_cc_flag__Wmain 17480 if eval test \${$cacheid+y} 17481then : 17482 printf %s "(cached) " >&6 17483else $as_nop 17484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17485/* end confdefs.h. */ 17486int i; 17487int 17488main (void) 17489{ 17490 17491 ; 17492 return 0; 17493} 17494_ACEOF 17495if ac_fn_c_try_link "$LINENO" 17496then : 17497 eval $cacheid=yes 17498else $as_nop 17499 eval $cacheid=no 17500fi 17501rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17502 conftest$ac_exeext conftest.$ac_ext 17503fi 17504 17505 17506 CFLAGS="$xorg_testset_save_CFLAGS" 17507 17508 eval supported=\$$cacheid 17509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17510printf "%s\n" "$supported" >&6; } 17511 if test "$supported" = "yes" ; then 17512 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17513 found="yes" 17514 fi 17515 fi 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531xorg_testset_save_CFLAGS="$CFLAGS" 17532 17533if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17536printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17537if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17538then : 17539 printf %s "(cached) " >&6 17540else $as_nop 17541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17542/* end confdefs.h. */ 17543int i; 17544_ACEOF 17545if ac_fn_c_try_compile "$LINENO" 17546then : 17547 xorg_cv_cc_flag_unknown_warning_option=yes 17548else $as_nop 17549 xorg_cv_cc_flag_unknown_warning_option=no 17550fi 17551rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17552fi 17553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17554printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17555 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17556 CFLAGS="$xorg_testset_save_CFLAGS" 17557fi 17558 17559if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17562 fi 17563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17565printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17566if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17567then : 17568 printf %s "(cached) " >&6 17569else $as_nop 17570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17571/* end confdefs.h. */ 17572int i; 17573_ACEOF 17574if ac_fn_c_try_compile "$LINENO" 17575then : 17576 xorg_cv_cc_flag_unused_command_line_argument=yes 17577else $as_nop 17578 xorg_cv_cc_flag_unused_command_line_argument=no 17579fi 17580rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17581fi 17582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17583printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17584 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17585 CFLAGS="$xorg_testset_save_CFLAGS" 17586fi 17587 17588found="no" 17589 17590 if test $found = "no" ; then 17591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17593 fi 17594 17595 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17597 fi 17598 17599 CFLAGS="$CFLAGS -Wmissing-braces" 17600 17601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17602printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 17603 cacheid=xorg_cv_cc_flag__Wmissing_braces 17604 if eval test \${$cacheid+y} 17605then : 17606 printf %s "(cached) " >&6 17607else $as_nop 17608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17609/* end confdefs.h. */ 17610int i; 17611int 17612main (void) 17613{ 17614 17615 ; 17616 return 0; 17617} 17618_ACEOF 17619if ac_fn_c_try_link "$LINENO" 17620then : 17621 eval $cacheid=yes 17622else $as_nop 17623 eval $cacheid=no 17624fi 17625rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17626 conftest$ac_exeext conftest.$ac_ext 17627fi 17628 17629 17630 CFLAGS="$xorg_testset_save_CFLAGS" 17631 17632 eval supported=\$$cacheid 17633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17634printf "%s\n" "$supported" >&6; } 17635 if test "$supported" = "yes" ; then 17636 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17637 found="yes" 17638 fi 17639 fi 17640 17641 17642 17643 17644 17645 17646 17647 17648 17649 17650 17651 17652 17653 17654 17655xorg_testset_save_CFLAGS="$CFLAGS" 17656 17657if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17660printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17661if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17662then : 17663 printf %s "(cached) " >&6 17664else $as_nop 17665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17666/* end confdefs.h. */ 17667int i; 17668_ACEOF 17669if ac_fn_c_try_compile "$LINENO" 17670then : 17671 xorg_cv_cc_flag_unknown_warning_option=yes 17672else $as_nop 17673 xorg_cv_cc_flag_unknown_warning_option=no 17674fi 17675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17676fi 17677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17678printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17680 CFLAGS="$xorg_testset_save_CFLAGS" 17681fi 17682 17683if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17686 fi 17687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17689printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17690if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17691then : 17692 printf %s "(cached) " >&6 17693else $as_nop 17694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17695/* end confdefs.h. */ 17696int i; 17697_ACEOF 17698if ac_fn_c_try_compile "$LINENO" 17699then : 17700 xorg_cv_cc_flag_unused_command_line_argument=yes 17701else $as_nop 17702 xorg_cv_cc_flag_unused_command_line_argument=no 17703fi 17704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17705fi 17706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17707printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17708 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17709 CFLAGS="$xorg_testset_save_CFLAGS" 17710fi 17711 17712found="no" 17713 17714 if test $found = "no" ; then 17715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17717 fi 17718 17719 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17721 fi 17722 17723 CFLAGS="$CFLAGS -Wsequence-point" 17724 17725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17726printf %s "checking if $CC supports -Wsequence-point... " >&6; } 17727 cacheid=xorg_cv_cc_flag__Wsequence_point 17728 if eval test \${$cacheid+y} 17729then : 17730 printf %s "(cached) " >&6 17731else $as_nop 17732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17733/* end confdefs.h. */ 17734int i; 17735int 17736main (void) 17737{ 17738 17739 ; 17740 return 0; 17741} 17742_ACEOF 17743if ac_fn_c_try_link "$LINENO" 17744then : 17745 eval $cacheid=yes 17746else $as_nop 17747 eval $cacheid=no 17748fi 17749rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17750 conftest$ac_exeext conftest.$ac_ext 17751fi 17752 17753 17754 CFLAGS="$xorg_testset_save_CFLAGS" 17755 17756 eval supported=\$$cacheid 17757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17758printf "%s\n" "$supported" >&6; } 17759 if test "$supported" = "yes" ; then 17760 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17761 found="yes" 17762 fi 17763 fi 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 17777 17778 17779xorg_testset_save_CFLAGS="$CFLAGS" 17780 17781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17784printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17785if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17786then : 17787 printf %s "(cached) " >&6 17788else $as_nop 17789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17790/* end confdefs.h. */ 17791int i; 17792_ACEOF 17793if ac_fn_c_try_compile "$LINENO" 17794then : 17795 xorg_cv_cc_flag_unknown_warning_option=yes 17796else $as_nop 17797 xorg_cv_cc_flag_unknown_warning_option=no 17798fi 17799rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17800fi 17801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17802printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17803 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17804 CFLAGS="$xorg_testset_save_CFLAGS" 17805fi 17806 17807if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17810 fi 17811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17813printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17814if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17815then : 17816 printf %s "(cached) " >&6 17817else $as_nop 17818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17819/* end confdefs.h. */ 17820int i; 17821_ACEOF 17822if ac_fn_c_try_compile "$LINENO" 17823then : 17824 xorg_cv_cc_flag_unused_command_line_argument=yes 17825else $as_nop 17826 xorg_cv_cc_flag_unused_command_line_argument=no 17827fi 17828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17829fi 17830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17831printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17832 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17833 CFLAGS="$xorg_testset_save_CFLAGS" 17834fi 17835 17836found="no" 17837 17838 if test $found = "no" ; then 17839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17841 fi 17842 17843 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17845 fi 17846 17847 CFLAGS="$CFLAGS -Wreturn-type" 17848 17849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17850printf %s "checking if $CC supports -Wreturn-type... " >&6; } 17851 cacheid=xorg_cv_cc_flag__Wreturn_type 17852 if eval test \${$cacheid+y} 17853then : 17854 printf %s "(cached) " >&6 17855else $as_nop 17856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17857/* end confdefs.h. */ 17858int i; 17859int 17860main (void) 17861{ 17862 17863 ; 17864 return 0; 17865} 17866_ACEOF 17867if ac_fn_c_try_link "$LINENO" 17868then : 17869 eval $cacheid=yes 17870else $as_nop 17871 eval $cacheid=no 17872fi 17873rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17874 conftest$ac_exeext conftest.$ac_ext 17875fi 17876 17877 17878 CFLAGS="$xorg_testset_save_CFLAGS" 17879 17880 eval supported=\$$cacheid 17881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17882printf "%s\n" "$supported" >&6; } 17883 if test "$supported" = "yes" ; then 17884 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17885 found="yes" 17886 fi 17887 fi 17888 17889 17890 17891 17892 17893 17894 17895 17896 17897 17898 17899 17900 17901 17902 17903xorg_testset_save_CFLAGS="$CFLAGS" 17904 17905if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17908printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17909if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17910then : 17911 printf %s "(cached) " >&6 17912else $as_nop 17913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17914/* end confdefs.h. */ 17915int i; 17916_ACEOF 17917if ac_fn_c_try_compile "$LINENO" 17918then : 17919 xorg_cv_cc_flag_unknown_warning_option=yes 17920else $as_nop 17921 xorg_cv_cc_flag_unknown_warning_option=no 17922fi 17923rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17924fi 17925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17926printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17928 CFLAGS="$xorg_testset_save_CFLAGS" 17929fi 17930 17931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17934 fi 17935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17937printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17938if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17939then : 17940 printf %s "(cached) " >&6 17941else $as_nop 17942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17943/* end confdefs.h. */ 17944int i; 17945_ACEOF 17946if ac_fn_c_try_compile "$LINENO" 17947then : 17948 xorg_cv_cc_flag_unused_command_line_argument=yes 17949else $as_nop 17950 xorg_cv_cc_flag_unused_command_line_argument=no 17951fi 17952rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17953fi 17954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17955printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17956 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17957 CFLAGS="$xorg_testset_save_CFLAGS" 17958fi 17959 17960found="no" 17961 17962 if test $found = "no" ; then 17963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17965 fi 17966 17967 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17969 fi 17970 17971 CFLAGS="$CFLAGS -Wtrigraphs" 17972 17973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17974printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 17975 cacheid=xorg_cv_cc_flag__Wtrigraphs 17976 if eval test \${$cacheid+y} 17977then : 17978 printf %s "(cached) " >&6 17979else $as_nop 17980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17981/* end confdefs.h. */ 17982int i; 17983int 17984main (void) 17985{ 17986 17987 ; 17988 return 0; 17989} 17990_ACEOF 17991if ac_fn_c_try_link "$LINENO" 17992then : 17993 eval $cacheid=yes 17994else $as_nop 17995 eval $cacheid=no 17996fi 17997rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17998 conftest$ac_exeext conftest.$ac_ext 17999fi 18000 18001 18002 CFLAGS="$xorg_testset_save_CFLAGS" 18003 18004 eval supported=\$$cacheid 18005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18006printf "%s\n" "$supported" >&6; } 18007 if test "$supported" = "yes" ; then 18008 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18009 found="yes" 18010 fi 18011 fi 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027xorg_testset_save_CFLAGS="$CFLAGS" 18028 18029if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18032printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18033if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18034then : 18035 printf %s "(cached) " >&6 18036else $as_nop 18037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18038/* end confdefs.h. */ 18039int i; 18040_ACEOF 18041if ac_fn_c_try_compile "$LINENO" 18042then : 18043 xorg_cv_cc_flag_unknown_warning_option=yes 18044else $as_nop 18045 xorg_cv_cc_flag_unknown_warning_option=no 18046fi 18047rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18048fi 18049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18050printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18052 CFLAGS="$xorg_testset_save_CFLAGS" 18053fi 18054 18055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18058 fi 18059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18061printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18062if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18063then : 18064 printf %s "(cached) " >&6 18065else $as_nop 18066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18067/* end confdefs.h. */ 18068int i; 18069_ACEOF 18070if ac_fn_c_try_compile "$LINENO" 18071then : 18072 xorg_cv_cc_flag_unused_command_line_argument=yes 18073else $as_nop 18074 xorg_cv_cc_flag_unused_command_line_argument=no 18075fi 18076rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18077fi 18078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18079printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18080 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18081 CFLAGS="$xorg_testset_save_CFLAGS" 18082fi 18083 18084found="no" 18085 18086 if test $found = "no" ; then 18087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18089 fi 18090 18091 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18093 fi 18094 18095 CFLAGS="$CFLAGS -Warray-bounds" 18096 18097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18098printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18099 cacheid=xorg_cv_cc_flag__Warray_bounds 18100 if eval test \${$cacheid+y} 18101then : 18102 printf %s "(cached) " >&6 18103else $as_nop 18104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18105/* end confdefs.h. */ 18106int i; 18107int 18108main (void) 18109{ 18110 18111 ; 18112 return 0; 18113} 18114_ACEOF 18115if ac_fn_c_try_link "$LINENO" 18116then : 18117 eval $cacheid=yes 18118else $as_nop 18119 eval $cacheid=no 18120fi 18121rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18122 conftest$ac_exeext conftest.$ac_ext 18123fi 18124 18125 18126 CFLAGS="$xorg_testset_save_CFLAGS" 18127 18128 eval supported=\$$cacheid 18129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18130printf "%s\n" "$supported" >&6; } 18131 if test "$supported" = "yes" ; then 18132 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18133 found="yes" 18134 fi 18135 fi 18136 18137 18138 18139 18140 18141 18142 18143 18144 18145 18146 18147 18148 18149 18150 18151xorg_testset_save_CFLAGS="$CFLAGS" 18152 18153if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18156printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18157if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18158then : 18159 printf %s "(cached) " >&6 18160else $as_nop 18161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18162/* end confdefs.h. */ 18163int i; 18164_ACEOF 18165if ac_fn_c_try_compile "$LINENO" 18166then : 18167 xorg_cv_cc_flag_unknown_warning_option=yes 18168else $as_nop 18169 xorg_cv_cc_flag_unknown_warning_option=no 18170fi 18171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18172fi 18173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18174printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18176 CFLAGS="$xorg_testset_save_CFLAGS" 18177fi 18178 18179if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18182 fi 18183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18185printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18186if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18187then : 18188 printf %s "(cached) " >&6 18189else $as_nop 18190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18191/* end confdefs.h. */ 18192int i; 18193_ACEOF 18194if ac_fn_c_try_compile "$LINENO" 18195then : 18196 xorg_cv_cc_flag_unused_command_line_argument=yes 18197else $as_nop 18198 xorg_cv_cc_flag_unused_command_line_argument=no 18199fi 18200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18201fi 18202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18203printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18204 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18205 CFLAGS="$xorg_testset_save_CFLAGS" 18206fi 18207 18208found="no" 18209 18210 if test $found = "no" ; then 18211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18213 fi 18214 18215 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18217 fi 18218 18219 CFLAGS="$CFLAGS -Wwrite-strings" 18220 18221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18222printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18223 cacheid=xorg_cv_cc_flag__Wwrite_strings 18224 if eval test \${$cacheid+y} 18225then : 18226 printf %s "(cached) " >&6 18227else $as_nop 18228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18229/* end confdefs.h. */ 18230int i; 18231int 18232main (void) 18233{ 18234 18235 ; 18236 return 0; 18237} 18238_ACEOF 18239if ac_fn_c_try_link "$LINENO" 18240then : 18241 eval $cacheid=yes 18242else $as_nop 18243 eval $cacheid=no 18244fi 18245rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18246 conftest$ac_exeext conftest.$ac_ext 18247fi 18248 18249 18250 CFLAGS="$xorg_testset_save_CFLAGS" 18251 18252 eval supported=\$$cacheid 18253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18254printf "%s\n" "$supported" >&6; } 18255 if test "$supported" = "yes" ; then 18256 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18257 found="yes" 18258 fi 18259 fi 18260 18261 18262 18263 18264 18265 18266 18267 18268 18269 18270 18271 18272 18273 18274 18275xorg_testset_save_CFLAGS="$CFLAGS" 18276 18277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18280printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18281if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18282then : 18283 printf %s "(cached) " >&6 18284else $as_nop 18285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18286/* end confdefs.h. */ 18287int i; 18288_ACEOF 18289if ac_fn_c_try_compile "$LINENO" 18290then : 18291 xorg_cv_cc_flag_unknown_warning_option=yes 18292else $as_nop 18293 xorg_cv_cc_flag_unknown_warning_option=no 18294fi 18295rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18296fi 18297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18298printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18300 CFLAGS="$xorg_testset_save_CFLAGS" 18301fi 18302 18303if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18306 fi 18307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18309printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18310if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18311then : 18312 printf %s "(cached) " >&6 18313else $as_nop 18314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18315/* end confdefs.h. */ 18316int i; 18317_ACEOF 18318if ac_fn_c_try_compile "$LINENO" 18319then : 18320 xorg_cv_cc_flag_unused_command_line_argument=yes 18321else $as_nop 18322 xorg_cv_cc_flag_unused_command_line_argument=no 18323fi 18324rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18325fi 18326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18327printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18328 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18329 CFLAGS="$xorg_testset_save_CFLAGS" 18330fi 18331 18332found="no" 18333 18334 if test $found = "no" ; then 18335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18337 fi 18338 18339 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18341 fi 18342 18343 CFLAGS="$CFLAGS -Waddress" 18344 18345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18346printf %s "checking if $CC supports -Waddress... " >&6; } 18347 cacheid=xorg_cv_cc_flag__Waddress 18348 if eval test \${$cacheid+y} 18349then : 18350 printf %s "(cached) " >&6 18351else $as_nop 18352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18353/* end confdefs.h. */ 18354int i; 18355int 18356main (void) 18357{ 18358 18359 ; 18360 return 0; 18361} 18362_ACEOF 18363if ac_fn_c_try_link "$LINENO" 18364then : 18365 eval $cacheid=yes 18366else $as_nop 18367 eval $cacheid=no 18368fi 18369rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18370 conftest$ac_exeext conftest.$ac_ext 18371fi 18372 18373 18374 CFLAGS="$xorg_testset_save_CFLAGS" 18375 18376 eval supported=\$$cacheid 18377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18378printf "%s\n" "$supported" >&6; } 18379 if test "$supported" = "yes" ; then 18380 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18381 found="yes" 18382 fi 18383 fi 18384 18385 18386 18387 18388 18389 18390 18391 18392 18393 18394 18395 18396 18397 18398 18399xorg_testset_save_CFLAGS="$CFLAGS" 18400 18401if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18404printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18405if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18406then : 18407 printf %s "(cached) " >&6 18408else $as_nop 18409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18410/* end confdefs.h. */ 18411int i; 18412_ACEOF 18413if ac_fn_c_try_compile "$LINENO" 18414then : 18415 xorg_cv_cc_flag_unknown_warning_option=yes 18416else $as_nop 18417 xorg_cv_cc_flag_unknown_warning_option=no 18418fi 18419rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18420fi 18421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18422printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18423 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18424 CFLAGS="$xorg_testset_save_CFLAGS" 18425fi 18426 18427if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18430 fi 18431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18433printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18434if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18435then : 18436 printf %s "(cached) " >&6 18437else $as_nop 18438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18439/* end confdefs.h. */ 18440int i; 18441_ACEOF 18442if ac_fn_c_try_compile "$LINENO" 18443then : 18444 xorg_cv_cc_flag_unused_command_line_argument=yes 18445else $as_nop 18446 xorg_cv_cc_flag_unused_command_line_argument=no 18447fi 18448rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18449fi 18450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18451printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18452 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18453 CFLAGS="$xorg_testset_save_CFLAGS" 18454fi 18455 18456found="no" 18457 18458 if test $found = "no" ; then 18459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18461 fi 18462 18463 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18465 fi 18466 18467 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18468 18469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18470printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18471 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18472 if eval test \${$cacheid+y} 18473then : 18474 printf %s "(cached) " >&6 18475else $as_nop 18476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18477/* end confdefs.h. */ 18478int i; 18479int 18480main (void) 18481{ 18482 18483 ; 18484 return 0; 18485} 18486_ACEOF 18487if ac_fn_c_try_link "$LINENO" 18488then : 18489 eval $cacheid=yes 18490else $as_nop 18491 eval $cacheid=no 18492fi 18493rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18494 conftest$ac_exeext conftest.$ac_ext 18495fi 18496 18497 18498 CFLAGS="$xorg_testset_save_CFLAGS" 18499 18500 eval supported=\$$cacheid 18501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18502printf "%s\n" "$supported" >&6; } 18503 if test "$supported" = "yes" ; then 18504 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18505 found="yes" 18506 fi 18507 fi 18508 18509 18510 18511 18512 18513 18514 18515 18516 18517 18518 18519 18520 18521 18522 18523xorg_testset_save_CFLAGS="$CFLAGS" 18524 18525if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18528printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18529if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18530then : 18531 printf %s "(cached) " >&6 18532else $as_nop 18533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18534/* end confdefs.h. */ 18535int i; 18536_ACEOF 18537if ac_fn_c_try_compile "$LINENO" 18538then : 18539 xorg_cv_cc_flag_unknown_warning_option=yes 18540else $as_nop 18541 xorg_cv_cc_flag_unknown_warning_option=no 18542fi 18543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18544fi 18545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18546printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18547 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18548 CFLAGS="$xorg_testset_save_CFLAGS" 18549fi 18550 18551if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18554 fi 18555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18557printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18558if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18559then : 18560 printf %s "(cached) " >&6 18561else $as_nop 18562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18563/* end confdefs.h. */ 18564int i; 18565_ACEOF 18566if ac_fn_c_try_compile "$LINENO" 18567then : 18568 xorg_cv_cc_flag_unused_command_line_argument=yes 18569else $as_nop 18570 xorg_cv_cc_flag_unused_command_line_argument=no 18571fi 18572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18573fi 18574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18575printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18576 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18577 CFLAGS="$xorg_testset_save_CFLAGS" 18578fi 18579 18580found="no" 18581 18582 if test $found = "no" ; then 18583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18585 fi 18586 18587 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18589 fi 18590 18591 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18592 18593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18594printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18595 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18596 if eval test \${$cacheid+y} 18597then : 18598 printf %s "(cached) " >&6 18599else $as_nop 18600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18601/* end confdefs.h. */ 18602int i; 18603int 18604main (void) 18605{ 18606 18607 ; 18608 return 0; 18609} 18610_ACEOF 18611if ac_fn_c_try_link "$LINENO" 18612then : 18613 eval $cacheid=yes 18614else $as_nop 18615 eval $cacheid=no 18616fi 18617rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18618 conftest$ac_exeext conftest.$ac_ext 18619fi 18620 18621 18622 CFLAGS="$xorg_testset_save_CFLAGS" 18623 18624 eval supported=\$$cacheid 18625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18626printf "%s\n" "$supported" >&6; } 18627 if test "$supported" = "yes" ; then 18628 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18629 found="yes" 18630 fi 18631 fi 18632 18633 18634fi 18635 18636 18637 18638 18639 18640 18641 18642 CWARNFLAGS="$BASE_CFLAGS" 18643 if test "x$GCC" = xyes ; then 18644 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18645 fi 18646 18647 18648 18649 18650 18651 18652 18653 18654# Check whether --enable-strict-compilation was given. 18655if test ${enable_strict_compilation+y} 18656then : 18657 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18658else $as_nop 18659 STRICT_COMPILE=no 18660fi 18661 18662 18663 18664 18665 18666 18667STRICT_CFLAGS="" 18668 18669 18670 18671 18672 18673 18674 18675 18676 18677 18678 18679 18680 18681xorg_testset_save_CFLAGS="$CFLAGS" 18682 18683if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18686printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18687if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18688then : 18689 printf %s "(cached) " >&6 18690else $as_nop 18691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18692/* end confdefs.h. */ 18693int i; 18694_ACEOF 18695if ac_fn_c_try_compile "$LINENO" 18696then : 18697 xorg_cv_cc_flag_unknown_warning_option=yes 18698else $as_nop 18699 xorg_cv_cc_flag_unknown_warning_option=no 18700fi 18701rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18702fi 18703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18704printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18706 CFLAGS="$xorg_testset_save_CFLAGS" 18707fi 18708 18709if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18712 fi 18713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18715printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18716if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18717then : 18718 printf %s "(cached) " >&6 18719else $as_nop 18720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18721/* end confdefs.h. */ 18722int i; 18723_ACEOF 18724if ac_fn_c_try_compile "$LINENO" 18725then : 18726 xorg_cv_cc_flag_unused_command_line_argument=yes 18727else $as_nop 18728 xorg_cv_cc_flag_unused_command_line_argument=no 18729fi 18730rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18731fi 18732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18733printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18734 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18735 CFLAGS="$xorg_testset_save_CFLAGS" 18736fi 18737 18738found="no" 18739 18740 if test $found = "no" ; then 18741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18743 fi 18744 18745 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18747 fi 18748 18749 CFLAGS="$CFLAGS -pedantic" 18750 18751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18752printf %s "checking if $CC supports -pedantic... " >&6; } 18753 cacheid=xorg_cv_cc_flag__pedantic 18754 if eval test \${$cacheid+y} 18755then : 18756 printf %s "(cached) " >&6 18757else $as_nop 18758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18759/* end confdefs.h. */ 18760int i; 18761int 18762main (void) 18763{ 18764 18765 ; 18766 return 0; 18767} 18768_ACEOF 18769if ac_fn_c_try_link "$LINENO" 18770then : 18771 eval $cacheid=yes 18772else $as_nop 18773 eval $cacheid=no 18774fi 18775rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18776 conftest$ac_exeext conftest.$ac_ext 18777fi 18778 18779 18780 CFLAGS="$xorg_testset_save_CFLAGS" 18781 18782 eval supported=\$$cacheid 18783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18784printf "%s\n" "$supported" >&6; } 18785 if test "$supported" = "yes" ; then 18786 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18787 found="yes" 18788 fi 18789 fi 18790 18791 18792 18793 18794 18795 18796 18797 18798 18799 18800 18801 18802 18803 18804 18805xorg_testset_save_CFLAGS="$CFLAGS" 18806 18807if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18810printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18811if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18812then : 18813 printf %s "(cached) " >&6 18814else $as_nop 18815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18816/* end confdefs.h. */ 18817int i; 18818_ACEOF 18819if ac_fn_c_try_compile "$LINENO" 18820then : 18821 xorg_cv_cc_flag_unknown_warning_option=yes 18822else $as_nop 18823 xorg_cv_cc_flag_unknown_warning_option=no 18824fi 18825rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18826fi 18827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18828printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18829 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18830 CFLAGS="$xorg_testset_save_CFLAGS" 18831fi 18832 18833if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18836 fi 18837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18839printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18840if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18841then : 18842 printf %s "(cached) " >&6 18843else $as_nop 18844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18845/* end confdefs.h. */ 18846int i; 18847_ACEOF 18848if ac_fn_c_try_compile "$LINENO" 18849then : 18850 xorg_cv_cc_flag_unused_command_line_argument=yes 18851else $as_nop 18852 xorg_cv_cc_flag_unused_command_line_argument=no 18853fi 18854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18855fi 18856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18857printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18858 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18859 CFLAGS="$xorg_testset_save_CFLAGS" 18860fi 18861 18862found="no" 18863 18864 if test $found = "no" ; then 18865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18867 fi 18868 18869 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18871 fi 18872 18873 CFLAGS="$CFLAGS -Werror" 18874 18875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18876printf %s "checking if $CC supports -Werror... " >&6; } 18877 cacheid=xorg_cv_cc_flag__Werror 18878 if eval test \${$cacheid+y} 18879then : 18880 printf %s "(cached) " >&6 18881else $as_nop 18882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18883/* end confdefs.h. */ 18884int i; 18885int 18886main (void) 18887{ 18888 18889 ; 18890 return 0; 18891} 18892_ACEOF 18893if ac_fn_c_try_link "$LINENO" 18894then : 18895 eval $cacheid=yes 18896else $as_nop 18897 eval $cacheid=no 18898fi 18899rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18900 conftest$ac_exeext conftest.$ac_ext 18901fi 18902 18903 18904 CFLAGS="$xorg_testset_save_CFLAGS" 18905 18906 eval supported=\$$cacheid 18907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18908printf "%s\n" "$supported" >&6; } 18909 if test "$supported" = "yes" ; then 18910 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18911 found="yes" 18912 fi 18913 fi 18914 18915 if test $found = "no" ; then 18916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18918 fi 18919 18920 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18922 fi 18923 18924 CFLAGS="$CFLAGS -errwarn" 18925 18926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18927printf %s "checking if $CC supports -errwarn... " >&6; } 18928 cacheid=xorg_cv_cc_flag__errwarn 18929 if eval test \${$cacheid+y} 18930then : 18931 printf %s "(cached) " >&6 18932else $as_nop 18933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18934/* end confdefs.h. */ 18935int i; 18936int 18937main (void) 18938{ 18939 18940 ; 18941 return 0; 18942} 18943_ACEOF 18944if ac_fn_c_try_link "$LINENO" 18945then : 18946 eval $cacheid=yes 18947else $as_nop 18948 eval $cacheid=no 18949fi 18950rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18951 conftest$ac_exeext conftest.$ac_ext 18952fi 18953 18954 18955 CFLAGS="$xorg_testset_save_CFLAGS" 18956 18957 eval supported=\$$cacheid 18958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18959printf "%s\n" "$supported" >&6; } 18960 if test "$supported" = "yes" ; then 18961 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18962 found="yes" 18963 fi 18964 fi 18965 18966 18967 18968# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18969# activate it with -Werror, so we add it here explicitly. 18970 18971 18972 18973 18974 18975 18976 18977 18978 18979 18980 18981 18982 18983xorg_testset_save_CFLAGS="$CFLAGS" 18984 18985if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18988printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18989if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18990then : 18991 printf %s "(cached) " >&6 18992else $as_nop 18993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18994/* end confdefs.h. */ 18995int i; 18996_ACEOF 18997if ac_fn_c_try_compile "$LINENO" 18998then : 18999 xorg_cv_cc_flag_unknown_warning_option=yes 19000else $as_nop 19001 xorg_cv_cc_flag_unknown_warning_option=no 19002fi 19003rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19004fi 19005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19006printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19007 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19008 CFLAGS="$xorg_testset_save_CFLAGS" 19009fi 19010 19011if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19014 fi 19015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19017printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19018if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19019then : 19020 printf %s "(cached) " >&6 19021else $as_nop 19022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19023/* end confdefs.h. */ 19024int i; 19025_ACEOF 19026if ac_fn_c_try_compile "$LINENO" 19027then : 19028 xorg_cv_cc_flag_unused_command_line_argument=yes 19029else $as_nop 19030 xorg_cv_cc_flag_unused_command_line_argument=no 19031fi 19032rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19033fi 19034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19035printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19036 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19037 CFLAGS="$xorg_testset_save_CFLAGS" 19038fi 19039 19040found="no" 19041 19042 if test $found = "no" ; then 19043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19045 fi 19046 19047 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19049 fi 19050 19051 CFLAGS="$CFLAGS -Werror=attributes" 19052 19053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 19054printf %s "checking if $CC supports -Werror=attributes... " >&6; } 19055 cacheid=xorg_cv_cc_flag__Werror_attributes 19056 if eval test \${$cacheid+y} 19057then : 19058 printf %s "(cached) " >&6 19059else $as_nop 19060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19061/* end confdefs.h. */ 19062int i; 19063int 19064main (void) 19065{ 19066 19067 ; 19068 return 0; 19069} 19070_ACEOF 19071if ac_fn_c_try_link "$LINENO" 19072then : 19073 eval $cacheid=yes 19074else $as_nop 19075 eval $cacheid=no 19076fi 19077rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19078 conftest$ac_exeext conftest.$ac_ext 19079fi 19080 19081 19082 CFLAGS="$xorg_testset_save_CFLAGS" 19083 19084 eval supported=\$$cacheid 19085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19086printf "%s\n" "$supported" >&6; } 19087 if test "$supported" = "yes" ; then 19088 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19089 found="yes" 19090 fi 19091 fi 19092 19093 19094 19095if test "x$STRICT_COMPILE" = "xyes"; then 19096 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19097 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19098fi 19099 19100 19101 19102 19103 19104 19105cat >>confdefs.h <<_ACEOF 19106#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19107_ACEOF 19108 19109 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19110 if test "x$PVM" = "x"; then 19111 PVM="0" 19112 fi 19113 19114printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19115 19116 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19117 if test "x$PVP" = "x"; then 19118 PVP="0" 19119 fi 19120 19121printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19122 19123 19124 19125CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19126mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19127|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19128touch \$(top_srcdir)/ChangeLog; \ 19129echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19130 19131 19132 19133 19134macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19135INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19136mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19137|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19138touch \$(top_srcdir)/INSTALL; \ 19139echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19140 19141 19142 19143 19144 19145 19146case $host_os in 19147 solaris*) 19148 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19149 # check for a man page file found in later versions that use 19150 # traditional section numbers instead 19151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19152printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19153if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19154then : 19155 printf %s "(cached) " >&6 19156else $as_nop 19157 test "$cross_compiling" = yes && 19158 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19159if test -r "/usr/share/man/man7/attributes.7"; then 19160 ac_cv_file__usr_share_man_man7_attributes_7=yes 19161else 19162 ac_cv_file__usr_share_man_man7_attributes_7=no 19163fi 19164fi 19165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19166printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19167if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19168then : 19169 SYSV_MAN_SECTIONS=false 19170else $as_nop 19171 SYSV_MAN_SECTIONS=true 19172fi 19173 19174 ;; 19175 *) SYSV_MAN_SECTIONS=false ;; 19176esac 19177 19178if test x$APP_MAN_SUFFIX = x ; then 19179 APP_MAN_SUFFIX=1 19180fi 19181if test x$APP_MAN_DIR = x ; then 19182 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19183fi 19184 19185if test x$LIB_MAN_SUFFIX = x ; then 19186 LIB_MAN_SUFFIX=3 19187fi 19188if test x$LIB_MAN_DIR = x ; then 19189 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19190fi 19191 19192if test x$FILE_MAN_SUFFIX = x ; then 19193 case $SYSV_MAN_SECTIONS in 19194 true) FILE_MAN_SUFFIX=4 ;; 19195 *) FILE_MAN_SUFFIX=5 ;; 19196 esac 19197fi 19198if test x$FILE_MAN_DIR = x ; then 19199 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19200fi 19201 19202if test x$MISC_MAN_SUFFIX = x ; then 19203 case $SYSV_MAN_SECTIONS in 19204 true) MISC_MAN_SUFFIX=5 ;; 19205 *) MISC_MAN_SUFFIX=7 ;; 19206 esac 19207fi 19208if test x$MISC_MAN_DIR = x ; then 19209 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19210fi 19211 19212if test x$DRIVER_MAN_SUFFIX = x ; then 19213 case $SYSV_MAN_SECTIONS in 19214 true) DRIVER_MAN_SUFFIX=7 ;; 19215 *) DRIVER_MAN_SUFFIX=4 ;; 19216 esac 19217fi 19218if test x$DRIVER_MAN_DIR = x ; then 19219 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19220fi 19221 19222if test x$ADMIN_MAN_SUFFIX = x ; then 19223 case $SYSV_MAN_SECTIONS in 19224 true) ADMIN_MAN_SUFFIX=1m ;; 19225 *) ADMIN_MAN_SUFFIX=8 ;; 19226 esac 19227fi 19228if test x$ADMIN_MAN_DIR = x ; then 19229 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19230fi 19231 19232 19233 19234 19235 19236 19237 19238 19239 19240 19241 19242 19243 19244 19245 19246XORG_MAN_PAGE="X Version 11" 19247 19248MAN_SUBSTS="\ 19249 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19250 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19251 -e 's|__xservername__|Xorg|g' \ 19252 -e 's|__xconfigfile__|xorg.conf|g' \ 19253 -e 's|__projectroot__|\$(prefix)|g' \ 19254 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19255 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19256 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19257 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19258 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19259 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19260 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19261 19262 19263 19264# Check whether --enable-silent-rules was given. 19265if test ${enable_silent_rules+y} 19266then : 19267 enableval=$enable_silent_rules; 19268fi 19269 19270case $enable_silent_rules in # ((( 19271 yes) AM_DEFAULT_VERBOSITY=0;; 19272 no) AM_DEFAULT_VERBOSITY=1;; 19273 *) AM_DEFAULT_VERBOSITY=0;; 19274esac 19275am_make=${MAKE-make} 19276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19277printf %s "checking whether $am_make supports nested variables... " >&6; } 19278if test ${am_cv_make_support_nested_variables+y} 19279then : 19280 printf %s "(cached) " >&6 19281else $as_nop 19282 if printf "%s\n" 'TRUE=$(BAR$(V)) 19283BAR0=false 19284BAR1=true 19285V=1 19286am__doit: 19287 @$(TRUE) 19288.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19289 am_cv_make_support_nested_variables=yes 19290else 19291 am_cv_make_support_nested_variables=no 19292fi 19293fi 19294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19295printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19296if test $am_cv_make_support_nested_variables = yes; then 19297 AM_V='$(V)' 19298 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19299else 19300 AM_V=$AM_DEFAULT_VERBOSITY 19301 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19302fi 19303AM_BACKSLASH='\' 19304 19305 19306 19307 19308# Check whether --enable-specs was given. 19309if test ${enable_specs+y} 19310then : 19311 enableval=$enable_specs; build_specs=$enableval 19312else $as_nop 19313 build_specs=yes 19314fi 19315 19316 19317 if test x$build_specs = xyes; then 19318 ENABLE_SPECS_TRUE= 19319 ENABLE_SPECS_FALSE='#' 19320else 19321 ENABLE_SPECS_TRUE='#' 19322 ENABLE_SPECS_FALSE= 19323fi 19324 19325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 19326printf %s "checking whether to build functional specifications... " >&6; } 19327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 19328printf "%s\n" "$build_specs" >&6; } 19329 19330 19331 19332 19333 19334# Check whether --with-xmlto was given. 19335if test ${with_xmlto+y} 19336then : 19337 withval=$with_xmlto; use_xmlto=$withval 19338else $as_nop 19339 use_xmlto=auto 19340fi 19341 19342 19343 19344if test "x$use_xmlto" = x"auto"; then 19345 # Extract the first word of "xmlto", so it can be a program name with args. 19346set dummy xmlto; ac_word=$2 19347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19348printf %s "checking for $ac_word... " >&6; } 19349if test ${ac_cv_path_XMLTO+y} 19350then : 19351 printf %s "(cached) " >&6 19352else $as_nop 19353 case $XMLTO in 19354 [\\/]* | ?:[\\/]*) 19355 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 19356 ;; 19357 *) 19358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19359for as_dir in $PATH 19360do 19361 IFS=$as_save_IFS 19362 case $as_dir in #((( 19363 '') as_dir=./ ;; 19364 */) ;; 19365 *) as_dir=$as_dir/ ;; 19366 esac 19367 for ac_exec_ext in '' $ac_executable_extensions; do 19368 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19369 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 19370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19371 break 2 19372 fi 19373done 19374 done 19375IFS=$as_save_IFS 19376 19377 ;; 19378esac 19379fi 19380XMLTO=$ac_cv_path_XMLTO 19381if test -n "$XMLTO"; then 19382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 19383printf "%s\n" "$XMLTO" >&6; } 19384else 19385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19386printf "%s\n" "no" >&6; } 19387fi 19388 19389 19390 if test "x$XMLTO" = "x"; then 19391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 19392printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 19393 have_xmlto=no 19394 else 19395 have_xmlto=yes 19396 fi 19397elif test "x$use_xmlto" = x"yes" ; then 19398 # Extract the first word of "xmlto", so it can be a program name with args. 19399set dummy xmlto; ac_word=$2 19400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19401printf %s "checking for $ac_word... " >&6; } 19402if test ${ac_cv_path_XMLTO+y} 19403then : 19404 printf %s "(cached) " >&6 19405else $as_nop 19406 case $XMLTO in 19407 [\\/]* | ?:[\\/]*) 19408 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 19409 ;; 19410 *) 19411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19412for as_dir in $PATH 19413do 19414 IFS=$as_save_IFS 19415 case $as_dir in #((( 19416 '') as_dir=./ ;; 19417 */) ;; 19418 *) as_dir=$as_dir/ ;; 19419 esac 19420 for ac_exec_ext in '' $ac_executable_extensions; do 19421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19422 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 19423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19424 break 2 19425 fi 19426done 19427 done 19428IFS=$as_save_IFS 19429 19430 ;; 19431esac 19432fi 19433XMLTO=$ac_cv_path_XMLTO 19434if test -n "$XMLTO"; then 19435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 19436printf "%s\n" "$XMLTO" >&6; } 19437else 19438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19439printf "%s\n" "no" >&6; } 19440fi 19441 19442 19443 if test "x$XMLTO" = "x"; then 19444 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 19445 fi 19446 have_xmlto=yes 19447elif test "x$use_xmlto" = x"no" ; then 19448 if test "x$XMLTO" != "x"; then 19449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 19450printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 19451 fi 19452 have_xmlto=no 19453else 19454 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 19455fi 19456 19457# Test for a minimum version of xmlto, if provided. 19458if test "$have_xmlto" = yes; then 19459 # scrape the xmlto version 19460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 19461printf %s "checking the xmlto version... " >&6; } 19462 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 19463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 19464printf "%s\n" "$xmlto_version" >&6; } 19465 as_arg_v1=$xmlto_version 19466as_arg_v2=0.0.22 19467awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 19468case $? in #( 19469 1) : 19470 if test "x$use_xmlto" = xauto; then 19471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 19472printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 19473 have_xmlto=no 19474 else 19475 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 19476 fi ;; #( 19477 0) : 19478 ;; #( 19479 2) : 19480 ;; #( 19481 *) : 19482 ;; 19483esac 19484fi 19485 19486# Test for the ability of xmlto to generate a text target 19487# 19488# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 19489# following test for empty XML docbook files. 19490# For compatibility reasons use the following empty XML docbook file and if 19491# it fails try it again with a non-empty XML file. 19492have_xmlto_text=no 19493cat > conftest.xml << "EOF" 19494EOF 19495if test "$have_xmlto" = yes 19496then : 19497 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 19498then : 19499 have_xmlto_text=yes 19500else $as_nop 19501 # Try it again with a non-empty XML file. 19502 cat > conftest.xml << "EOF" 19503<x></x> 19504EOF 19505 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 19506then : 19507 have_xmlto_text=yes 19508else $as_nop 19509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 19510printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 19511fi 19512fi 19513fi 19514rm -f conftest.xml 19515 if test $have_xmlto_text = yes; then 19516 HAVE_XMLTO_TEXT_TRUE= 19517 HAVE_XMLTO_TEXT_FALSE='#' 19518else 19519 HAVE_XMLTO_TEXT_TRUE='#' 19520 HAVE_XMLTO_TEXT_FALSE= 19521fi 19522 19523 if test "$have_xmlto" = yes; then 19524 HAVE_XMLTO_TRUE= 19525 HAVE_XMLTO_FALSE='#' 19526else 19527 HAVE_XMLTO_TRUE='#' 19528 HAVE_XMLTO_FALSE= 19529fi 19530 19531 19532 19533 19534 19535 19536# Check whether --with-fop was given. 19537if test ${with_fop+y} 19538then : 19539 withval=$with_fop; use_fop=$withval 19540else $as_nop 19541 use_fop=auto 19542fi 19543 19544 19545 19546if test "x$use_fop" = x"auto"; then 19547 # Extract the first word of "fop", so it can be a program name with args. 19548set dummy fop; ac_word=$2 19549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19550printf %s "checking for $ac_word... " >&6; } 19551if test ${ac_cv_path_FOP+y} 19552then : 19553 printf %s "(cached) " >&6 19554else $as_nop 19555 case $FOP in 19556 [\\/]* | ?:[\\/]*) 19557 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 19558 ;; 19559 *) 19560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19561for as_dir in $PATH 19562do 19563 IFS=$as_save_IFS 19564 case $as_dir in #((( 19565 '') as_dir=./ ;; 19566 */) ;; 19567 *) as_dir=$as_dir/ ;; 19568 esac 19569 for ac_exec_ext in '' $ac_executable_extensions; do 19570 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19571 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 19572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19573 break 2 19574 fi 19575done 19576 done 19577IFS=$as_save_IFS 19578 19579 ;; 19580esac 19581fi 19582FOP=$ac_cv_path_FOP 19583if test -n "$FOP"; then 19584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 19585printf "%s\n" "$FOP" >&6; } 19586else 19587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19588printf "%s\n" "no" >&6; } 19589fi 19590 19591 19592 if test "x$FOP" = "x"; then 19593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 19594printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 19595 have_fop=no 19596 else 19597 have_fop=yes 19598 fi 19599elif test "x$use_fop" = x"yes" ; then 19600 # Extract the first word of "fop", so it can be a program name with args. 19601set dummy fop; ac_word=$2 19602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19603printf %s "checking for $ac_word... " >&6; } 19604if test ${ac_cv_path_FOP+y} 19605then : 19606 printf %s "(cached) " >&6 19607else $as_nop 19608 case $FOP in 19609 [\\/]* | ?:[\\/]*) 19610 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 19611 ;; 19612 *) 19613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19614for as_dir in $PATH 19615do 19616 IFS=$as_save_IFS 19617 case $as_dir in #((( 19618 '') as_dir=./ ;; 19619 */) ;; 19620 *) as_dir=$as_dir/ ;; 19621 esac 19622 for ac_exec_ext in '' $ac_executable_extensions; do 19623 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19624 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 19625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19626 break 2 19627 fi 19628done 19629 done 19630IFS=$as_save_IFS 19631 19632 ;; 19633esac 19634fi 19635FOP=$ac_cv_path_FOP 19636if test -n "$FOP"; then 19637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 19638printf "%s\n" "$FOP" >&6; } 19639else 19640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19641printf "%s\n" "no" >&6; } 19642fi 19643 19644 19645 if test "x$FOP" = "x"; then 19646 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 19647 fi 19648 have_fop=yes 19649elif test "x$use_fop" = x"no" ; then 19650 if test "x$FOP" != "x"; then 19651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 19652printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 19653 fi 19654 have_fop=no 19655else 19656 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 19657fi 19658 19659# Test for a minimum version of fop, if provided. 19660 19661 if test "$have_fop" = yes; then 19662 HAVE_FOP_TRUE= 19663 HAVE_FOP_FALSE='#' 19664else 19665 HAVE_FOP_TRUE='#' 19666 HAVE_FOP_FALSE= 19667fi 19668 19669 19670 19671 19672# Preserves the interface, should it be implemented later 19673 19674 19675 19676# Check whether --with-xsltproc was given. 19677if test ${with_xsltproc+y} 19678then : 19679 withval=$with_xsltproc; use_xsltproc=$withval 19680else $as_nop 19681 use_xsltproc=auto 19682fi 19683 19684 19685 19686if test "x$use_xsltproc" = x"auto"; then 19687 # Extract the first word of "xsltproc", so it can be a program name with args. 19688set dummy xsltproc; ac_word=$2 19689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19690printf %s "checking for $ac_word... " >&6; } 19691if test ${ac_cv_path_XSLTPROC+y} 19692then : 19693 printf %s "(cached) " >&6 19694else $as_nop 19695 case $XSLTPROC in 19696 [\\/]* | ?:[\\/]*) 19697 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 19698 ;; 19699 *) 19700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19701for as_dir in $PATH 19702do 19703 IFS=$as_save_IFS 19704 case $as_dir in #((( 19705 '') as_dir=./ ;; 19706 */) ;; 19707 *) as_dir=$as_dir/ ;; 19708 esac 19709 for ac_exec_ext in '' $ac_executable_extensions; do 19710 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19711 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 19712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19713 break 2 19714 fi 19715done 19716 done 19717IFS=$as_save_IFS 19718 19719 ;; 19720esac 19721fi 19722XSLTPROC=$ac_cv_path_XSLTPROC 19723if test -n "$XSLTPROC"; then 19724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 19725printf "%s\n" "$XSLTPROC" >&6; } 19726else 19727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19728printf "%s\n" "no" >&6; } 19729fi 19730 19731 19732 if test "x$XSLTPROC" = "x"; then 19733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 19734printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 19735 have_xsltproc=no 19736 else 19737 have_xsltproc=yes 19738 fi 19739elif test "x$use_xsltproc" = x"yes" ; then 19740 # Extract the first word of "xsltproc", so it can be a program name with args. 19741set dummy xsltproc; ac_word=$2 19742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19743printf %s "checking for $ac_word... " >&6; } 19744if test ${ac_cv_path_XSLTPROC+y} 19745then : 19746 printf %s "(cached) " >&6 19747else $as_nop 19748 case $XSLTPROC in 19749 [\\/]* | ?:[\\/]*) 19750 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 19751 ;; 19752 *) 19753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19754for as_dir in $PATH 19755do 19756 IFS=$as_save_IFS 19757 case $as_dir in #((( 19758 '') as_dir=./ ;; 19759 */) ;; 19760 *) as_dir=$as_dir/ ;; 19761 esac 19762 for ac_exec_ext in '' $ac_executable_extensions; do 19763 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19764 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 19765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19766 break 2 19767 fi 19768done 19769 done 19770IFS=$as_save_IFS 19771 19772 ;; 19773esac 19774fi 19775XSLTPROC=$ac_cv_path_XSLTPROC 19776if test -n "$XSLTPROC"; then 19777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 19778printf "%s\n" "$XSLTPROC" >&6; } 19779else 19780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19781printf "%s\n" "no" >&6; } 19782fi 19783 19784 19785 if test "x$XSLTPROC" = "x"; then 19786 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 19787 fi 19788 have_xsltproc=yes 19789elif test "x$use_xsltproc" = x"no" ; then 19790 if test "x$XSLTPROC" != "x"; then 19791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 19792printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 19793 fi 19794 have_xsltproc=no 19795else 19796 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 19797fi 19798 19799 if test "$have_xsltproc" = yes; then 19800 HAVE_XSLTPROC_TRUE= 19801 HAVE_XSLTPROC_FALSE='#' 19802else 19803 HAVE_XSLTPROC_TRUE='#' 19804 HAVE_XSLTPROC_FALSE= 19805fi 19806 19807 19808 19809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 19810printf %s "checking for X.Org SGML entities >= 1.8... " >&6; } 19811XORG_SGML_PATH= 19812if test -n "$PKG_CONFIG" && \ 19813 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 19814 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 19815 ac_status=$? 19816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19817 test $ac_status = 0; }; then 19818 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 19819else 19820 : 19821 19822fi 19823 19824# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 19825# the path and the name of the doc stylesheet 19826if test "x$XORG_SGML_PATH" != "x" ; then 19827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 19828printf "%s\n" "$XORG_SGML_PATH" >&6; } 19829 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 19830 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 19831else 19832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19833printf "%s\n" "no" >&6; } 19834fi 19835 19836 19837 19838 19839 if test "x$XSL_STYLESHEET" != "x"; then 19840 HAVE_STYLESHEETS_TRUE= 19841 HAVE_STYLESHEETS_FALSE='#' 19842else 19843 HAVE_STYLESHEETS_TRUE='#' 19844 HAVE_STYLESHEETS_FALSE= 19845fi 19846 19847 19848 19849# Obtain compiler/linker options for dependencies 19850 19851pkg_failed=no 19852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XTST" >&5 19853printf %s "checking for XTST... " >&6; } 19854 19855if test -n "$XTST_CFLAGS"; then 19856 pkg_cv_XTST_CFLAGS="$XTST_CFLAGS" 19857 elif test -n "$PKG_CONFIG"; then 19858 if test -n "$PKG_CONFIG" && \ 19859 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto\""; } >&5 19860 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto") 2>&5 19861 ac_status=$? 19862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19863 test $ac_status = 0; }; then 19864 pkg_cv_XTST_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>/dev/null` 19865 test "x$?" != "x0" && pkg_failed=yes 19866else 19867 pkg_failed=yes 19868fi 19869 else 19870 pkg_failed=untried 19871fi 19872if test -n "$XTST_LIBS"; then 19873 pkg_cv_XTST_LIBS="$XTST_LIBS" 19874 elif test -n "$PKG_CONFIG"; then 19875 if test -n "$PKG_CONFIG" && \ 19876 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto\""; } >&5 19877 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto") 2>&5 19878 ac_status=$? 19879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19880 test $ac_status = 0; }; then 19881 pkg_cv_XTST_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>/dev/null` 19882 test "x$?" != "x0" && pkg_failed=yes 19883else 19884 pkg_failed=yes 19885fi 19886 else 19887 pkg_failed=untried 19888fi 19889 19890 19891 19892if test $pkg_failed = yes; then 19893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19894printf "%s\n" "no" >&6; } 19895 19896if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19897 _pkg_short_errors_supported=yes 19898else 19899 _pkg_short_errors_supported=no 19900fi 19901 if test $_pkg_short_errors_supported = yes; then 19902 XTST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>&1` 19903 else 19904 XTST_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>&1` 19905 fi 19906 # Put the nasty error message in config.log where it belongs 19907 echo "$XTST_PKG_ERRORS" >&5 19908 19909 as_fn_error $? "Package requirements (x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto) were not met: 19910 19911$XTST_PKG_ERRORS 19912 19913Consider adjusting the PKG_CONFIG_PATH environment variable if you 19914installed software in a non-standard prefix. 19915 19916Alternatively, you may set the environment variables XTST_CFLAGS 19917and XTST_LIBS to avoid the need to call pkg-config. 19918See the pkg-config man page for more details." "$LINENO" 5 19919elif test $pkg_failed = untried; then 19920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19921printf "%s\n" "no" >&6; } 19922 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19923printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19924as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19925is in your PATH or set the PKG_CONFIG environment variable to the full 19926path to pkg-config. 19927 19928Alternatively, you may set the environment variables XTST_CFLAGS 19929and XTST_LIBS to avoid the need to call pkg-config. 19930See the pkg-config man page for more details. 19931 19932To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19933See \`config.log' for more details" "$LINENO" 5; } 19934else 19935 XTST_CFLAGS=$pkg_cv_XTST_CFLAGS 19936 XTST_LIBS=$pkg_cv_XTST_LIBS 19937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19938printf "%s\n" "yes" >&6; } 19939 19940fi 19941 19942# Determine if the source for man pages is available 19943# It may already be present (tarball) or can be generated using xmlto 19944 if test -f "$srcdir/man/XTestQueryExtension.man" || test "x$have_xmlto" = xyes; then 19945 INSTALL_MANPAGES_TRUE= 19946 INSTALL_MANPAGES_FALSE='#' 19947else 19948 INSTALL_MANPAGES_TRUE='#' 19949 INSTALL_MANPAGES_FALSE= 19950fi 19951 19952 19953# Allow checking code with lint, sparse, etc. 19954 19955 19956 19957 19958 19959# Check whether --with-lint was given. 19960if test ${with_lint+y} 19961then : 19962 withval=$with_lint; use_lint=$withval 19963else $as_nop 19964 use_lint=no 19965fi 19966 19967 19968# Obtain platform specific info like program name and options 19969# The lint program on FreeBSD and NetBSD is different from the one on Solaris 19970case $host_os in 19971 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 19972 lint_name=splint 19973 lint_options="-badflag" 19974 ;; 19975 *freebsd* | *netbsd*) 19976 lint_name=lint 19977 lint_options="-u -b" 19978 ;; 19979 *solaris*) 19980 lint_name=lint 19981 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 19982 ;; 19983esac 19984 19985# Test for the presence of the program (either guessed by the code or spelled out by the user) 19986if test "x$use_lint" = x"yes" ; then 19987 # Extract the first word of "$lint_name", so it can be a program name with args. 19988set dummy $lint_name; ac_word=$2 19989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19990printf %s "checking for $ac_word... " >&6; } 19991if test ${ac_cv_path_LINT+y} 19992then : 19993 printf %s "(cached) " >&6 19994else $as_nop 19995 case $LINT in 19996 [\\/]* | ?:[\\/]*) 19997 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 19998 ;; 19999 *) 20000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20001for as_dir in $PATH 20002do 20003 IFS=$as_save_IFS 20004 case $as_dir in #((( 20005 '') as_dir=./ ;; 20006 */) ;; 20007 *) as_dir=$as_dir/ ;; 20008 esac 20009 for ac_exec_ext in '' $ac_executable_extensions; do 20010 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20011 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 20012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20013 break 2 20014 fi 20015done 20016 done 20017IFS=$as_save_IFS 20018 20019 ;; 20020esac 20021fi 20022LINT=$ac_cv_path_LINT 20023if test -n "$LINT"; then 20024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 20025printf "%s\n" "$LINT" >&6; } 20026else 20027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20028printf "%s\n" "no" >&6; } 20029fi 20030 20031 20032 if test "x$LINT" = "x"; then 20033 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 20034 fi 20035elif test "x$use_lint" = x"no" ; then 20036 if test "x$LINT" != "x"; then 20037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 20038printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 20039 fi 20040else 20041 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 20042fi 20043 20044# User supplied flags override default flags 20045if test "x$LINT_FLAGS" != "x"; then 20046 lint_options=$LINT_FLAGS 20047fi 20048 20049LINT_FLAGS=$lint_options 20050 20051 if test "x$LINT" != x; then 20052 LINT_TRUE= 20053 LINT_FALSE='#' 20054else 20055 LINT_TRUE='#' 20056 LINT_FALSE= 20057fi 20058 20059 20060 20061 20062 20063# Check whether --enable-lint-library was given. 20064if test ${enable_lint_library+y} 20065then : 20066 enableval=$enable_lint_library; make_lint_lib=$enableval 20067else $as_nop 20068 make_lint_lib=no 20069fi 20070 20071 20072if test "x$make_lint_lib" = x"yes" ; then 20073 LINTLIB=llib-lXtst.ln 20074 if test "x$LINT" = "x"; then 20075 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 20076 fi 20077elif test "x$make_lint_lib" != x"no" ; then 20078 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 20079fi 20080 20081 20082 if test x$make_lint_lib != xno; then 20083 MAKE_LINT_LIB_TRUE= 20084 MAKE_LINT_LIB_FALSE='#' 20085else 20086 MAKE_LINT_LIB_TRUE='#' 20087 MAKE_LINT_LIB_FALSE= 20088fi 20089 20090 20091 20092LINT_FLAGS="${LINT_FLAGS} ${XTST_CFLAGS}" 20093 20094ac_config_files="$ac_config_files Makefile man/Makefile src/Makefile specs/Makefile xtst.pc" 20095 20096cat >confcache <<\_ACEOF 20097# This file is a shell script that caches the results of configure 20098# tests run on this system so they can be shared between configure 20099# scripts and configure runs, see configure's option --config-cache. 20100# It is not useful on other systems. If it contains results you don't 20101# want to keep, you may remove or edit it. 20102# 20103# config.status only pays attention to the cache file if you give it 20104# the --recheck option to rerun configure. 20105# 20106# `ac_cv_env_foo' variables (set or unset) will be overridden when 20107# loading this file, other *unset* `ac_cv_foo' will be assigned the 20108# following values. 20109 20110_ACEOF 20111 20112# The following way of writing the cache mishandles newlines in values, 20113# but we know of no workaround that is simple, portable, and efficient. 20114# So, we kill variables containing newlines. 20115# Ultrix sh set writes to stderr and can't be redirected directly, 20116# and sets the high bit in the cache file unless we assign to the vars. 20117( 20118 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20119 eval ac_val=\$$ac_var 20120 case $ac_val in #( 20121 *${as_nl}*) 20122 case $ac_var in #( 20123 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20124printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20125 esac 20126 case $ac_var in #( 20127 _ | IFS | as_nl) ;; #( 20128 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20129 *) { eval $ac_var=; unset $ac_var;} ;; 20130 esac ;; 20131 esac 20132 done 20133 20134 (set) 2>&1 | 20135 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20136 *${as_nl}ac_space=\ *) 20137 # `set' does not quote correctly, so add quotes: double-quote 20138 # substitution turns \\\\ into \\, and sed turns \\ into \. 20139 sed -n \ 20140 "s/'/'\\\\''/g; 20141 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20142 ;; #( 20143 *) 20144 # `set' quotes correctly as required by POSIX, so do not add quotes. 20145 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20146 ;; 20147 esac | 20148 sort 20149) | 20150 sed ' 20151 /^ac_cv_env_/b end 20152 t clear 20153 :clear 20154 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20155 t end 20156 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20157 :end' >>confcache 20158if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20159 if test -w "$cache_file"; then 20160 if test "x$cache_file" != "x/dev/null"; then 20161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20162printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20163 if test ! -f "$cache_file" || test -h "$cache_file"; then 20164 cat confcache >"$cache_file" 20165 else 20166 case $cache_file in #( 20167 */* | ?:*) 20168 mv -f confcache "$cache_file"$$ && 20169 mv -f "$cache_file"$$ "$cache_file" ;; #( 20170 *) 20171 mv -f confcache "$cache_file" ;; 20172 esac 20173 fi 20174 fi 20175 else 20176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20177printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20178 fi 20179fi 20180rm -f confcache 20181 20182test "x$prefix" = xNONE && prefix=$ac_default_prefix 20183# Let make expand exec_prefix. 20184test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20185 20186DEFS=-DHAVE_CONFIG_H 20187 20188ac_libobjs= 20189ac_ltlibobjs= 20190U= 20191for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20192 # 1. Remove the extension, and $U if already installed. 20193 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20194 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20195 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20196 # will be set to the directory where LIBOBJS objects are built. 20197 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20198 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20199done 20200LIBOBJS=$ac_libobjs 20201 20202LTLIBOBJS=$ac_ltlibobjs 20203 20204 20205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20206printf %s "checking that generated files are newer than configure... " >&6; } 20207 if test -n "$am_sleep_pid"; then 20208 # Hide warnings about reused PIDs. 20209 wait $am_sleep_pid 2>/dev/null 20210 fi 20211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20212printf "%s\n" "done" >&6; } 20213 if test -n "$EXEEXT"; then 20214 am__EXEEXT_TRUE= 20215 am__EXEEXT_FALSE='#' 20216else 20217 am__EXEEXT_TRUE='#' 20218 am__EXEEXT_FALSE= 20219fi 20220 20221if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20222 as_fn_error $? "conditional \"AMDEP\" was never defined. 20223Usually this means the macro was only invoked conditionally." "$LINENO" 5 20224fi 20225if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20226 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20227Usually this means the macro was only invoked conditionally." "$LINENO" 5 20228fi 20229if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 20230 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 20231Usually this means the macro was only invoked conditionally." "$LINENO" 5 20232fi 20233if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 20234 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 20235Usually this means the macro was only invoked conditionally." "$LINENO" 5 20236fi 20237if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 20238 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 20239Usually this means the macro was only invoked conditionally." "$LINENO" 5 20240fi 20241if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 20242 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 20243Usually this means the macro was only invoked conditionally." "$LINENO" 5 20244fi 20245if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 20246 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 20247Usually this means the macro was only invoked conditionally." "$LINENO" 5 20248fi 20249if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 20250 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 20251Usually this means the macro was only invoked conditionally." "$LINENO" 5 20252fi 20253if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then 20254 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined. 20255Usually this means the macro was only invoked conditionally." "$LINENO" 5 20256fi 20257if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 20258 as_fn_error $? "conditional \"LINT\" was never defined. 20259Usually this means the macro was only invoked conditionally." "$LINENO" 5 20260fi 20261if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 20262 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 20263Usually this means the macro was only invoked conditionally." "$LINENO" 5 20264fi 20265 20266: "${CONFIG_STATUS=./config.status}" 20267ac_write_fail=0 20268ac_clean_files_save=$ac_clean_files 20269ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20271printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20272as_write_fail=0 20273cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20274#! $SHELL 20275# Generated by $as_me. 20276# Run this file to recreate the current configuration. 20277# Compiler output produced by configure, useful for debugging 20278# configure, is in config.log if it exists. 20279 20280debug=false 20281ac_cs_recheck=false 20282ac_cs_silent=false 20283 20284SHELL=\${CONFIG_SHELL-$SHELL} 20285export SHELL 20286_ASEOF 20287cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20288## -------------------- ## 20289## M4sh Initialization. ## 20290## -------------------- ## 20291 20292# Be more Bourne compatible 20293DUALCASE=1; export DUALCASE # for MKS sh 20294as_nop=: 20295if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20296then : 20297 emulate sh 20298 NULLCMD=: 20299 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20300 # is contrary to our usage. Disable this feature. 20301 alias -g '${1+"$@"}'='"$@"' 20302 setopt NO_GLOB_SUBST 20303else $as_nop 20304 case `(set -o) 2>/dev/null` in #( 20305 *posix*) : 20306 set -o posix ;; #( 20307 *) : 20308 ;; 20309esac 20310fi 20311 20312 20313 20314# Reset variables that may have inherited troublesome values from 20315# the environment. 20316 20317# IFS needs to be set, to space, tab, and newline, in precisely that order. 20318# (If _AS_PATH_WALK were called with IFS unset, it would have the 20319# side effect of setting IFS to empty, thus disabling word splitting.) 20320# Quoting is to prevent editors from complaining about space-tab. 20321as_nl=' 20322' 20323export as_nl 20324IFS=" "" $as_nl" 20325 20326PS1='$ ' 20327PS2='> ' 20328PS4='+ ' 20329 20330# Ensure predictable behavior from utilities with locale-dependent output. 20331LC_ALL=C 20332export LC_ALL 20333LANGUAGE=C 20334export LANGUAGE 20335 20336# We cannot yet rely on "unset" to work, but we need these variables 20337# to be unset--not just set to an empty or harmless value--now, to 20338# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20339# also avoids known problems related to "unset" and subshell syntax 20340# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20341for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20342do eval test \${$as_var+y} \ 20343 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20344done 20345 20346# Ensure that fds 0, 1, and 2 are open. 20347if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20348if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20349if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20350 20351# The user is always right. 20352if ${PATH_SEPARATOR+false} :; then 20353 PATH_SEPARATOR=: 20354 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20355 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20356 PATH_SEPARATOR=';' 20357 } 20358fi 20359 20360 20361# Find who we are. Look in the path if we contain no directory separator. 20362as_myself= 20363case $0 in #(( 20364 *[\\/]* ) as_myself=$0 ;; 20365 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20366for as_dir in $PATH 20367do 20368 IFS=$as_save_IFS 20369 case $as_dir in #((( 20370 '') as_dir=./ ;; 20371 */) ;; 20372 *) as_dir=$as_dir/ ;; 20373 esac 20374 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20375 done 20376IFS=$as_save_IFS 20377 20378 ;; 20379esac 20380# We did not find ourselves, most probably we were run as `sh COMMAND' 20381# in which case we are not to be found in the path. 20382if test "x$as_myself" = x; then 20383 as_myself=$0 20384fi 20385if test ! -f "$as_myself"; then 20386 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20387 exit 1 20388fi 20389 20390 20391 20392# as_fn_error STATUS ERROR [LINENO LOG_FD] 20393# ---------------------------------------- 20394# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20395# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20396# script with STATUS, using 1 if that was 0. 20397as_fn_error () 20398{ 20399 as_status=$1; test $as_status -eq 0 && as_status=1 20400 if test "$4"; then 20401 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20403 fi 20404 printf "%s\n" "$as_me: error: $2" >&2 20405 as_fn_exit $as_status 20406} # as_fn_error 20407 20408 20409 20410# as_fn_set_status STATUS 20411# ----------------------- 20412# Set $? to STATUS, without forking. 20413as_fn_set_status () 20414{ 20415 return $1 20416} # as_fn_set_status 20417 20418# as_fn_exit STATUS 20419# ----------------- 20420# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20421as_fn_exit () 20422{ 20423 set +e 20424 as_fn_set_status $1 20425 exit $1 20426} # as_fn_exit 20427 20428# as_fn_unset VAR 20429# --------------- 20430# Portably unset VAR. 20431as_fn_unset () 20432{ 20433 { eval $1=; unset $1;} 20434} 20435as_unset=as_fn_unset 20436 20437# as_fn_append VAR VALUE 20438# ---------------------- 20439# Append the text in VALUE to the end of the definition contained in VAR. Take 20440# advantage of any shell optimizations that allow amortized linear growth over 20441# repeated appends, instead of the typical quadratic growth present in naive 20442# implementations. 20443if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20444then : 20445 eval 'as_fn_append () 20446 { 20447 eval $1+=\$2 20448 }' 20449else $as_nop 20450 as_fn_append () 20451 { 20452 eval $1=\$$1\$2 20453 } 20454fi # as_fn_append 20455 20456# as_fn_arith ARG... 20457# ------------------ 20458# Perform arithmetic evaluation on the ARGs, and store the result in the 20459# global $as_val. Take advantage of shells that can avoid forks. The arguments 20460# must be portable across $(()) and expr. 20461if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20462then : 20463 eval 'as_fn_arith () 20464 { 20465 as_val=$(( $* )) 20466 }' 20467else $as_nop 20468 as_fn_arith () 20469 { 20470 as_val=`expr "$@" || test $? -eq 1` 20471 } 20472fi # as_fn_arith 20473 20474 20475if expr a : '\(a\)' >/dev/null 2>&1 && 20476 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20477 as_expr=expr 20478else 20479 as_expr=false 20480fi 20481 20482if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20483 as_basename=basename 20484else 20485 as_basename=false 20486fi 20487 20488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20489 as_dirname=dirname 20490else 20491 as_dirname=false 20492fi 20493 20494as_me=`$as_basename -- "$0" || 20495$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20496 X"$0" : 'X\(//\)$' \| \ 20497 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20498printf "%s\n" X/"$0" | 20499 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20500 s//\1/ 20501 q 20502 } 20503 /^X\/\(\/\/\)$/{ 20504 s//\1/ 20505 q 20506 } 20507 /^X\/\(\/\).*/{ 20508 s//\1/ 20509 q 20510 } 20511 s/.*/./; q'` 20512 20513# Avoid depending upon Character Ranges. 20514as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20515as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20516as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20517as_cr_digits='0123456789' 20518as_cr_alnum=$as_cr_Letters$as_cr_digits 20519 20520 20521# Determine whether it's possible to make 'echo' print without a newline. 20522# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20523# for compatibility with existing Makefiles. 20524ECHO_C= ECHO_N= ECHO_T= 20525case `echo -n x` in #((((( 20526-n*) 20527 case `echo 'xy\c'` in 20528 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20529 xy) ECHO_C='\c';; 20530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20531 ECHO_T=' ';; 20532 esac;; 20533*) 20534 ECHO_N='-n';; 20535esac 20536 20537# For backward compatibility with old third-party macros, we provide 20538# the shell variables $as_echo and $as_echo_n. New code should use 20539# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20540as_echo='printf %s\n' 20541as_echo_n='printf %s' 20542 20543rm -f conf$$ conf$$.exe conf$$.file 20544if test -d conf$$.dir; then 20545 rm -f conf$$.dir/conf$$.file 20546else 20547 rm -f conf$$.dir 20548 mkdir conf$$.dir 2>/dev/null 20549fi 20550if (echo >conf$$.file) 2>/dev/null; then 20551 if ln -s conf$$.file conf$$ 2>/dev/null; then 20552 as_ln_s='ln -s' 20553 # ... but there are two gotchas: 20554 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20555 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20556 # In both cases, we have to default to `cp -pR'. 20557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20558 as_ln_s='cp -pR' 20559 elif ln conf$$.file conf$$ 2>/dev/null; then 20560 as_ln_s=ln 20561 else 20562 as_ln_s='cp -pR' 20563 fi 20564else 20565 as_ln_s='cp -pR' 20566fi 20567rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20568rmdir conf$$.dir 2>/dev/null 20569 20570 20571# as_fn_mkdir_p 20572# ------------- 20573# Create "$as_dir" as a directory, including parents if necessary. 20574as_fn_mkdir_p () 20575{ 20576 20577 case $as_dir in #( 20578 -*) as_dir=./$as_dir;; 20579 esac 20580 test -d "$as_dir" || eval $as_mkdir_p || { 20581 as_dirs= 20582 while :; do 20583 case $as_dir in #( 20584 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20585 *) as_qdir=$as_dir;; 20586 esac 20587 as_dirs="'$as_qdir' $as_dirs" 20588 as_dir=`$as_dirname -- "$as_dir" || 20589$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20590 X"$as_dir" : 'X\(//\)[^/]' \| \ 20591 X"$as_dir" : 'X\(//\)$' \| \ 20592 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20593printf "%s\n" X"$as_dir" | 20594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20595 s//\1/ 20596 q 20597 } 20598 /^X\(\/\/\)[^/].*/{ 20599 s//\1/ 20600 q 20601 } 20602 /^X\(\/\/\)$/{ 20603 s//\1/ 20604 q 20605 } 20606 /^X\(\/\).*/{ 20607 s//\1/ 20608 q 20609 } 20610 s/.*/./; q'` 20611 test -d "$as_dir" && break 20612 done 20613 test -z "$as_dirs" || eval "mkdir $as_dirs" 20614 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20615 20616 20617} # as_fn_mkdir_p 20618if mkdir -p . 2>/dev/null; then 20619 as_mkdir_p='mkdir -p "$as_dir"' 20620else 20621 test -d ./-p && rmdir ./-p 20622 as_mkdir_p=false 20623fi 20624 20625 20626# as_fn_executable_p FILE 20627# ----------------------- 20628# Test if FILE is an executable regular file. 20629as_fn_executable_p () 20630{ 20631 test -f "$1" && test -x "$1" 20632} # as_fn_executable_p 20633as_test_x='test -x' 20634as_executable_p=as_fn_executable_p 20635 20636# Sed expression to map a string onto a valid CPP name. 20637as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20638 20639# Sed expression to map a string onto a valid variable name. 20640as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20641 20642 20643exec 6>&1 20644## ----------------------------------- ## 20645## Main body of $CONFIG_STATUS script. ## 20646## ----------------------------------- ## 20647_ASEOF 20648test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20649 20650cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20651# Save the log message, to keep $0 and so on meaningful, and to 20652# report actual input values of CONFIG_FILES etc. instead of their 20653# values after options handling. 20654ac_log=" 20655This file was extended by libXtst $as_me 1.2.4, which was 20656generated by GNU Autoconf 2.71. Invocation command line was 20657 20658 CONFIG_FILES = $CONFIG_FILES 20659 CONFIG_HEADERS = $CONFIG_HEADERS 20660 CONFIG_LINKS = $CONFIG_LINKS 20661 CONFIG_COMMANDS = $CONFIG_COMMANDS 20662 $ $0 $@ 20663 20664on `(hostname || uname -n) 2>/dev/null | sed 1q` 20665" 20666 20667_ACEOF 20668 20669case $ac_config_files in *" 20670"*) set x $ac_config_files; shift; ac_config_files=$*;; 20671esac 20672 20673case $ac_config_headers in *" 20674"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20675esac 20676 20677 20678cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20679# Files that config.status was made for. 20680config_files="$ac_config_files" 20681config_headers="$ac_config_headers" 20682config_commands="$ac_config_commands" 20683 20684_ACEOF 20685 20686cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20687ac_cs_usage="\ 20688\`$as_me' instantiates files and other configuration actions 20689from templates according to the current configuration. Unless the files 20690and actions are specified as TAGs, all are instantiated by default. 20691 20692Usage: $0 [OPTION]... [TAG]... 20693 20694 -h, --help print this help, then exit 20695 -V, --version print version number and configuration settings, then exit 20696 --config print configuration, then exit 20697 -q, --quiet, --silent 20698 do not print progress messages 20699 -d, --debug don't remove temporary files 20700 --recheck update $as_me by reconfiguring in the same conditions 20701 --file=FILE[:TEMPLATE] 20702 instantiate the configuration file FILE 20703 --header=FILE[:TEMPLATE] 20704 instantiate the configuration header FILE 20705 20706Configuration files: 20707$config_files 20708 20709Configuration headers: 20710$config_headers 20711 20712Configuration commands: 20713$config_commands 20714 20715Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxtst/-/issues>." 20716 20717_ACEOF 20718ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20719ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20720cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20721ac_cs_config='$ac_cs_config_escaped' 20722ac_cs_version="\\ 20723libXtst config.status 1.2.4 20724configured by $0, generated by GNU Autoconf 2.71, 20725 with options \\"\$ac_cs_config\\" 20726 20727Copyright (C) 2021 Free Software Foundation, Inc. 20728This config.status script is free software; the Free Software Foundation 20729gives unlimited permission to copy, distribute and modify it." 20730 20731ac_pwd='$ac_pwd' 20732srcdir='$srcdir' 20733INSTALL='$INSTALL' 20734MKDIR_P='$MKDIR_P' 20735AWK='$AWK' 20736test -n "\$AWK" || AWK=awk 20737_ACEOF 20738 20739cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20740# The default lists apply if the user does not specify any file. 20741ac_need_defaults=: 20742while test $# != 0 20743do 20744 case $1 in 20745 --*=?*) 20746 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20747 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20748 ac_shift=: 20749 ;; 20750 --*=) 20751 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20752 ac_optarg= 20753 ac_shift=: 20754 ;; 20755 *) 20756 ac_option=$1 20757 ac_optarg=$2 20758 ac_shift=shift 20759 ;; 20760 esac 20761 20762 case $ac_option in 20763 # Handling of the options. 20764 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20765 ac_cs_recheck=: ;; 20766 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20767 printf "%s\n" "$ac_cs_version"; exit ;; 20768 --config | --confi | --conf | --con | --co | --c ) 20769 printf "%s\n" "$ac_cs_config"; exit ;; 20770 --debug | --debu | --deb | --de | --d | -d ) 20771 debug=: ;; 20772 --file | --fil | --fi | --f ) 20773 $ac_shift 20774 case $ac_optarg in 20775 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20776 '') as_fn_error $? "missing file argument" ;; 20777 esac 20778 as_fn_append CONFIG_FILES " '$ac_optarg'" 20779 ac_need_defaults=false;; 20780 --header | --heade | --head | --hea ) 20781 $ac_shift 20782 case $ac_optarg in 20783 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20784 esac 20785 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20786 ac_need_defaults=false;; 20787 --he | --h) 20788 # Conflict between --help and --header 20789 as_fn_error $? "ambiguous option: \`$1' 20790Try \`$0 --help' for more information.";; 20791 --help | --hel | -h ) 20792 printf "%s\n" "$ac_cs_usage"; exit ;; 20793 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20794 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20795 ac_cs_silent=: ;; 20796 20797 # This is an error. 20798 -*) as_fn_error $? "unrecognized option: \`$1' 20799Try \`$0 --help' for more information." ;; 20800 20801 *) as_fn_append ac_config_targets " $1" 20802 ac_need_defaults=false ;; 20803 20804 esac 20805 shift 20806done 20807 20808ac_configure_extra_args= 20809 20810if $ac_cs_silent; then 20811 exec 6>/dev/null 20812 ac_configure_extra_args="$ac_configure_extra_args --silent" 20813fi 20814 20815_ACEOF 20816cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20817if \$ac_cs_recheck; then 20818 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20819 shift 20820 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20821 CONFIG_SHELL='$SHELL' 20822 export CONFIG_SHELL 20823 exec "\$@" 20824fi 20825 20826_ACEOF 20827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20828exec 5>>config.log 20829{ 20830 echo 20831 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20832## Running $as_me. ## 20833_ASBOX 20834 printf "%s\n" "$ac_log" 20835} >&5 20836 20837_ACEOF 20838cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20839# 20840# INIT-COMMANDS 20841# 20842AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20843 20844 20845# The HP-UX ksh and POSIX shell print the target directory to stdout 20846# if CDPATH is set. 20847(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20848 20849sed_quote_subst='$sed_quote_subst' 20850double_quote_subst='$double_quote_subst' 20851delay_variable_subst='$delay_variable_subst' 20852macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20853macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20854enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20855enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20856pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20857enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20858shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20859SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20860ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20861PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20862host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20863host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20864host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20865build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20866build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20867build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20868SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20869Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20870GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20871EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20872FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20873LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20874NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20875LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20876max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20877ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20878exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20879lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20880lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20881lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20882lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20883lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20884reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20885reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20886FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20887OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20888deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20889file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20890file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20891want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20892DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20893sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20894AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20895lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20896AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20897archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20898STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20899RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20900old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20901old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20902old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20903lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20904CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20905CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20906compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20907GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20908lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20909lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20910lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20911lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20912lt_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"`' 20913lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20914nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20915lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20916lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20917objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20918MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20919lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20920lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20921lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20922lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20923lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20924need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20925MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20926DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20927NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20928LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20929OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20930OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20931libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20932shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20933extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20934archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20935enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20936export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20937whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20938compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20939old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20940old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20941archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20942archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20943module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20944module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20945with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20946allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20947no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20948hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20949hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20950hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20951hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20952hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20953hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20954hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20955inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20956link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20957always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20958export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20959exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20960include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20961prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20962postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20963file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20964variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20965need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20966need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20967version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20968runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20969shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20970shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20971libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20972library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20973soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20974install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20975postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20976postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20977finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20978finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20979hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20980sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20981configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20982configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20983hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20984enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20985enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20986enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20987old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20988striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20989 20990LTCC='$LTCC' 20991LTCFLAGS='$LTCFLAGS' 20992compiler='$compiler_DEFAULT' 20993 20994# A function that is used when there is no print builtin or printf. 20995func_fallback_echo () 20996{ 20997 eval 'cat <<_LTECHO_EOF 20998\$1 20999_LTECHO_EOF' 21000} 21001 21002# Quote evaled strings. 21003for var in SHELL \ 21004ECHO \ 21005PATH_SEPARATOR \ 21006SED \ 21007GREP \ 21008EGREP \ 21009FGREP \ 21010LD \ 21011NM \ 21012LN_S \ 21013lt_SP2NL \ 21014lt_NL2SP \ 21015reload_flag \ 21016FILECMD \ 21017OBJDUMP \ 21018deplibs_check_method \ 21019file_magic_cmd \ 21020file_magic_glob \ 21021want_nocaseglob \ 21022DLLTOOL \ 21023sharedlib_from_linklib_cmd \ 21024AR \ 21025archiver_list_spec \ 21026STRIP \ 21027RANLIB \ 21028CC \ 21029CFLAGS \ 21030compiler \ 21031lt_cv_sys_global_symbol_pipe \ 21032lt_cv_sys_global_symbol_to_cdecl \ 21033lt_cv_sys_global_symbol_to_import \ 21034lt_cv_sys_global_symbol_to_c_name_address \ 21035lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21036lt_cv_nm_interface \ 21037nm_file_list_spec \ 21038lt_cv_truncate_bin \ 21039lt_prog_compiler_no_builtin_flag \ 21040lt_prog_compiler_pic \ 21041lt_prog_compiler_wl \ 21042lt_prog_compiler_static \ 21043lt_cv_prog_compiler_c_o \ 21044need_locks \ 21045MANIFEST_TOOL \ 21046DSYMUTIL \ 21047NMEDIT \ 21048LIPO \ 21049OTOOL \ 21050OTOOL64 \ 21051shrext_cmds \ 21052export_dynamic_flag_spec \ 21053whole_archive_flag_spec \ 21054compiler_needs_object \ 21055with_gnu_ld \ 21056allow_undefined_flag \ 21057no_undefined_flag \ 21058hardcode_libdir_flag_spec \ 21059hardcode_libdir_separator \ 21060exclude_expsyms \ 21061include_expsyms \ 21062file_list_spec \ 21063variables_saved_for_relink \ 21064libname_spec \ 21065library_names_spec \ 21066soname_spec \ 21067install_override_mode \ 21068finish_eval \ 21069old_striplib \ 21070striplib; do 21071 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21072 *[\\\\\\\`\\"\\\$]*) 21073 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21074 ;; 21075 *) 21076 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21077 ;; 21078 esac 21079done 21080 21081# Double-quote double-evaled strings. 21082for var in reload_cmds \ 21083old_postinstall_cmds \ 21084old_postuninstall_cmds \ 21085old_archive_cmds \ 21086extract_expsyms_cmds \ 21087old_archive_from_new_cmds \ 21088old_archive_from_expsyms_cmds \ 21089archive_cmds \ 21090archive_expsym_cmds \ 21091module_cmds \ 21092module_expsym_cmds \ 21093export_symbols_cmds \ 21094prelink_cmds \ 21095postlink_cmds \ 21096postinstall_cmds \ 21097postuninstall_cmds \ 21098finish_cmds \ 21099sys_lib_search_path_spec \ 21100configure_time_dlsearch_path \ 21101configure_time_lt_sys_library_path; do 21102 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21103 *[\\\\\\\`\\"\\\$]*) 21104 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21105 ;; 21106 *) 21107 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21108 ;; 21109 esac 21110done 21111 21112ac_aux_dir='$ac_aux_dir' 21113 21114# See if we are running on zsh, and set the options that allow our 21115# commands through without removal of \ escapes INIT. 21116if test -n "\${ZSH_VERSION+set}"; then 21117 setopt NO_GLOB_SUBST 21118fi 21119 21120 21121 PACKAGE='$PACKAGE' 21122 VERSION='$VERSION' 21123 RM='$RM' 21124 ofile='$ofile' 21125 21126 21127 21128 21129_ACEOF 21130 21131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21132 21133# Handling of arguments. 21134for ac_config_target in $ac_config_targets 21135do 21136 case $ac_config_target in 21137 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21138 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21139 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21140 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21141 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21142 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21143 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 21144 "xtst.pc") CONFIG_FILES="$CONFIG_FILES xtst.pc" ;; 21145 21146 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21147 esac 21148done 21149 21150 21151# If the user did not use the arguments to specify the items to instantiate, 21152# then the envvar interface is used. Set only those that are not. 21153# We use the long form for the default assignment because of an extremely 21154# bizarre bug on SunOS 4.1.3. 21155if $ac_need_defaults; then 21156 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21157 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21158 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21159fi 21160 21161# Have a temporary directory for convenience. Make it in the build tree 21162# simply because there is no reason against having it here, and in addition, 21163# creating and moving files from /tmp can sometimes cause problems. 21164# Hook for its removal unless debugging. 21165# Note that there is a small window in which the directory will not be cleaned: 21166# after its creation but before its name has been assigned to `$tmp'. 21167$debug || 21168{ 21169 tmp= ac_tmp= 21170 trap 'exit_status=$? 21171 : "${ac_tmp:=$tmp}" 21172 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21173' 0 21174 trap 'as_fn_exit 1' 1 2 13 15 21175} 21176# Create a (secure) tmp directory for tmp files. 21177 21178{ 21179 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21180 test -d "$tmp" 21181} || 21182{ 21183 tmp=./conf$$-$RANDOM 21184 (umask 077 && mkdir "$tmp") 21185} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21186ac_tmp=$tmp 21187 21188# Set up the scripts for CONFIG_FILES section. 21189# No need to generate them if there are no CONFIG_FILES. 21190# This happens for instance with `./config.status config.h'. 21191if test -n "$CONFIG_FILES"; then 21192 21193 21194ac_cr=`echo X | tr X '\015'` 21195# On cygwin, bash can eat \r inside `` if the user requested igncr. 21196# But we know of no other shell where ac_cr would be empty at this 21197# point, so we can use a bashism as a fallback. 21198if test "x$ac_cr" = x; then 21199 eval ac_cr=\$\'\\r\' 21200fi 21201ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21202if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21203 ac_cs_awk_cr='\\r' 21204else 21205 ac_cs_awk_cr=$ac_cr 21206fi 21207 21208echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21209_ACEOF 21210 21211 21212{ 21213 echo "cat >conf$$subs.awk <<_ACEOF" && 21214 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21215 echo "_ACEOF" 21216} >conf$$subs.sh || 21217 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21218ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21219ac_delim='%!_!# ' 21220for ac_last_try in false false false false false :; do 21221 . ./conf$$subs.sh || 21222 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21223 21224 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21225 if test $ac_delim_n = $ac_delim_num; then 21226 break 21227 elif $ac_last_try; then 21228 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21229 else 21230 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21231 fi 21232done 21233rm -f conf$$subs.sh 21234 21235cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21236cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21237_ACEOF 21238sed -n ' 21239h 21240s/^/S["/; s/!.*/"]=/ 21241p 21242g 21243s/^[^!]*!// 21244:repl 21245t repl 21246s/'"$ac_delim"'$// 21247t delim 21248:nl 21249h 21250s/\(.\{148\}\)..*/\1/ 21251t more1 21252s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21253p 21254n 21255b repl 21256:more1 21257s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21258p 21259g 21260s/.\{148\}// 21261t nl 21262:delim 21263h 21264s/\(.\{148\}\)..*/\1/ 21265t more2 21266s/["\\]/\\&/g; s/^/"/; s/$/"/ 21267p 21268b 21269:more2 21270s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21271p 21272g 21273s/.\{148\}// 21274t delim 21275' <conf$$subs.awk | sed ' 21276/^[^""]/{ 21277 N 21278 s/\n// 21279} 21280' >>$CONFIG_STATUS || ac_write_fail=1 21281rm -f conf$$subs.awk 21282cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21283_ACAWK 21284cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21285 for (key in S) S_is_set[key] = 1 21286 FS = "" 21287 21288} 21289{ 21290 line = $ 0 21291 nfields = split(line, field, "@") 21292 substed = 0 21293 len = length(field[1]) 21294 for (i = 2; i < nfields; i++) { 21295 key = field[i] 21296 keylen = length(key) 21297 if (S_is_set[key]) { 21298 value = S[key] 21299 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21300 len += length(value) + length(field[++i]) 21301 substed = 1 21302 } else 21303 len += 1 + keylen 21304 } 21305 21306 print line 21307} 21308 21309_ACAWK 21310_ACEOF 21311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21312if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21313 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21314else 21315 cat 21316fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21317 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21318_ACEOF 21319 21320# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21321# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21322# trailing colons and then remove the whole line if VPATH becomes empty 21323# (actually we leave an empty line to preserve line numbers). 21324if test "x$srcdir" = x.; then 21325 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21326h 21327s/// 21328s/^/:/ 21329s/[ ]*$/:/ 21330s/:\$(srcdir):/:/g 21331s/:\${srcdir}:/:/g 21332s/:@srcdir@:/:/g 21333s/^:*// 21334s/:*$// 21335x 21336s/\(=[ ]*\).*/\1/ 21337G 21338s/\n// 21339s/^[^=]*=[ ]*$// 21340}' 21341fi 21342 21343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21344fi # test -n "$CONFIG_FILES" 21345 21346# Set up the scripts for CONFIG_HEADERS section. 21347# No need to generate them if there are no CONFIG_HEADERS. 21348# This happens for instance with `./config.status Makefile'. 21349if test -n "$CONFIG_HEADERS"; then 21350cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21351BEGIN { 21352_ACEOF 21353 21354# Transform confdefs.h into an awk script `defines.awk', embedded as 21355# here-document in config.status, that substitutes the proper values into 21356# config.h.in to produce config.h. 21357 21358# Create a delimiter string that does not exist in confdefs.h, to ease 21359# handling of long lines. 21360ac_delim='%!_!# ' 21361for ac_last_try in false false :; do 21362 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21363 if test -z "$ac_tt"; then 21364 break 21365 elif $ac_last_try; then 21366 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21367 else 21368 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21369 fi 21370done 21371 21372# For the awk script, D is an array of macro values keyed by name, 21373# likewise P contains macro parameters if any. Preserve backslash 21374# newline sequences. 21375 21376ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21377sed -n ' 21378s/.\{148\}/&'"$ac_delim"'/g 21379t rset 21380:rset 21381s/^[ ]*#[ ]*define[ ][ ]*/ / 21382t def 21383d 21384:def 21385s/\\$// 21386t bsnl 21387s/["\\]/\\&/g 21388s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21389D["\1"]=" \3"/p 21390s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21391d 21392:bsnl 21393s/["\\]/\\&/g 21394s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21395D["\1"]=" \3\\\\\\n"\\/p 21396t cont 21397s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21398t cont 21399d 21400:cont 21401n 21402s/.\{148\}/&'"$ac_delim"'/g 21403t clear 21404:clear 21405s/\\$// 21406t bsnlc 21407s/["\\]/\\&/g; s/^/"/; s/$/"/p 21408d 21409:bsnlc 21410s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21411b cont 21412' <confdefs.h | sed ' 21413s/'"$ac_delim"'/"\\\ 21414"/g' >>$CONFIG_STATUS || ac_write_fail=1 21415 21416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21417 for (key in D) D_is_set[key] = 1 21418 FS = "" 21419} 21420/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21421 line = \$ 0 21422 split(line, arg, " ") 21423 if (arg[1] == "#") { 21424 defundef = arg[2] 21425 mac1 = arg[3] 21426 } else { 21427 defundef = substr(arg[1], 2) 21428 mac1 = arg[2] 21429 } 21430 split(mac1, mac2, "(") #) 21431 macro = mac2[1] 21432 prefix = substr(line, 1, index(line, defundef) - 1) 21433 if (D_is_set[macro]) { 21434 # Preserve the white space surrounding the "#". 21435 print prefix "define", macro P[macro] D[macro] 21436 next 21437 } else { 21438 # Replace #undef with comments. This is necessary, for example, 21439 # in the case of _POSIX_SOURCE, which is predefined and required 21440 # on some systems where configure will not decide to define it. 21441 if (defundef == "undef") { 21442 print "/*", prefix defundef, macro, "*/" 21443 next 21444 } 21445 } 21446} 21447{ print } 21448_ACAWK 21449_ACEOF 21450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21451 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21452fi # test -n "$CONFIG_HEADERS" 21453 21454 21455eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21456shift 21457for ac_tag 21458do 21459 case $ac_tag in 21460 :[FHLC]) ac_mode=$ac_tag; continue;; 21461 esac 21462 case $ac_mode$ac_tag in 21463 :[FHL]*:*);; 21464 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21465 :[FH]-) ac_tag=-:-;; 21466 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21467 esac 21468 ac_save_IFS=$IFS 21469 IFS=: 21470 set x $ac_tag 21471 IFS=$ac_save_IFS 21472 shift 21473 ac_file=$1 21474 shift 21475 21476 case $ac_mode in 21477 :L) ac_source=$1;; 21478 :[FH]) 21479 ac_file_inputs= 21480 for ac_f 21481 do 21482 case $ac_f in 21483 -) ac_f="$ac_tmp/stdin";; 21484 *) # Look for the file first in the build tree, then in the source tree 21485 # (if the path is not absolute). The absolute path cannot be DOS-style, 21486 # because $ac_f cannot contain `:'. 21487 test -f "$ac_f" || 21488 case $ac_f in 21489 [\\/$]*) false;; 21490 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21491 esac || 21492 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21493 esac 21494 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21495 as_fn_append ac_file_inputs " '$ac_f'" 21496 done 21497 21498 # Let's still pretend it is `configure' which instantiates (i.e., don't 21499 # use $as_me), people would be surprised to read: 21500 # /* config.h. Generated by config.status. */ 21501 configure_input='Generated from '` 21502 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21503 `' by configure.' 21504 if test x"$ac_file" != x-; then 21505 configure_input="$ac_file. $configure_input" 21506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21507printf "%s\n" "$as_me: creating $ac_file" >&6;} 21508 fi 21509 # Neutralize special characters interpreted by sed in replacement strings. 21510 case $configure_input in #( 21511 *\&* | *\|* | *\\* ) 21512 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21513 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21514 *) ac_sed_conf_input=$configure_input;; 21515 esac 21516 21517 case $ac_tag in 21518 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21519 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21520 esac 21521 ;; 21522 esac 21523 21524 ac_dir=`$as_dirname -- "$ac_file" || 21525$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21526 X"$ac_file" : 'X\(//\)[^/]' \| \ 21527 X"$ac_file" : 'X\(//\)$' \| \ 21528 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21529printf "%s\n" X"$ac_file" | 21530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21531 s//\1/ 21532 q 21533 } 21534 /^X\(\/\/\)[^/].*/{ 21535 s//\1/ 21536 q 21537 } 21538 /^X\(\/\/\)$/{ 21539 s//\1/ 21540 q 21541 } 21542 /^X\(\/\).*/{ 21543 s//\1/ 21544 q 21545 } 21546 s/.*/./; q'` 21547 as_dir="$ac_dir"; as_fn_mkdir_p 21548 ac_builddir=. 21549 21550case "$ac_dir" in 21551.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21552*) 21553 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21554 # A ".." for each directory in $ac_dir_suffix. 21555 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21556 case $ac_top_builddir_sub in 21557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21559 esac ;; 21560esac 21561ac_abs_top_builddir=$ac_pwd 21562ac_abs_builddir=$ac_pwd$ac_dir_suffix 21563# for backward compatibility: 21564ac_top_builddir=$ac_top_build_prefix 21565 21566case $srcdir in 21567 .) # We are building in place. 21568 ac_srcdir=. 21569 ac_top_srcdir=$ac_top_builddir_sub 21570 ac_abs_top_srcdir=$ac_pwd ;; 21571 [\\/]* | ?:[\\/]* ) # Absolute name. 21572 ac_srcdir=$srcdir$ac_dir_suffix; 21573 ac_top_srcdir=$srcdir 21574 ac_abs_top_srcdir=$srcdir ;; 21575 *) # Relative name. 21576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21577 ac_top_srcdir=$ac_top_build_prefix$srcdir 21578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21579esac 21580ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21581 21582 21583 case $ac_mode in 21584 :F) 21585 # 21586 # CONFIG_FILE 21587 # 21588 21589 case $INSTALL in 21590 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21591 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21592 esac 21593 ac_MKDIR_P=$MKDIR_P 21594 case $MKDIR_P in 21595 [\\/$]* | ?:[\\/]* ) ;; 21596 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21597 esac 21598_ACEOF 21599 21600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21601# If the template does not know about datarootdir, expand it. 21602# FIXME: This hack should be removed a few years after 2.60. 21603ac_datarootdir_hack=; ac_datarootdir_seen= 21604ac_sed_dataroot=' 21605/datarootdir/ { 21606 p 21607 q 21608} 21609/@datadir@/p 21610/@docdir@/p 21611/@infodir@/p 21612/@localedir@/p 21613/@mandir@/p' 21614case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21615*datarootdir*) ac_datarootdir_seen=yes;; 21616*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21618printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21619_ACEOF 21620cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21621 ac_datarootdir_hack=' 21622 s&@datadir@&$datadir&g 21623 s&@docdir@&$docdir&g 21624 s&@infodir@&$infodir&g 21625 s&@localedir@&$localedir&g 21626 s&@mandir@&$mandir&g 21627 s&\\\${datarootdir}&$datarootdir&g' ;; 21628esac 21629_ACEOF 21630 21631# Neutralize VPATH when `$srcdir' = `.'. 21632# Shell code in configure.ac might set extrasub. 21633# FIXME: do we really want to maintain this feature? 21634cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21635ac_sed_extra="$ac_vpsub 21636$extrasub 21637_ACEOF 21638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21639:t 21640/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21641s|@configure_input@|$ac_sed_conf_input|;t t 21642s&@top_builddir@&$ac_top_builddir_sub&;t t 21643s&@top_build_prefix@&$ac_top_build_prefix&;t t 21644s&@srcdir@&$ac_srcdir&;t t 21645s&@abs_srcdir@&$ac_abs_srcdir&;t t 21646s&@top_srcdir@&$ac_top_srcdir&;t t 21647s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21648s&@builddir@&$ac_builddir&;t t 21649s&@abs_builddir@&$ac_abs_builddir&;t t 21650s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21651s&@INSTALL@&$ac_INSTALL&;t t 21652s&@MKDIR_P@&$ac_MKDIR_P&;t t 21653$ac_datarootdir_hack 21654" 21655eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21656 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21657 21658test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21659 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21660 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21661 "$ac_tmp/out"`; test -z "$ac_out"; } && 21662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21663which seems to be undefined. Please make sure it is defined" >&5 21664printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21665which seems to be undefined. Please make sure it is defined" >&2;} 21666 21667 rm -f "$ac_tmp/stdin" 21668 case $ac_file in 21669 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21670 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21671 esac \ 21672 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21673 ;; 21674 :H) 21675 # 21676 # CONFIG_HEADER 21677 # 21678 if test x"$ac_file" != x-; then 21679 { 21680 printf "%s\n" "/* $configure_input */" >&1 \ 21681 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21682 } >"$ac_tmp/config.h" \ 21683 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21684 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21686printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21687 else 21688 rm -f "$ac_file" 21689 mv "$ac_tmp/config.h" "$ac_file" \ 21690 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21691 fi 21692 else 21693 printf "%s\n" "/* $configure_input */" >&1 \ 21694 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21695 || as_fn_error $? "could not create -" "$LINENO" 5 21696 fi 21697# Compute "$ac_file"'s index in $config_headers. 21698_am_arg="$ac_file" 21699_am_stamp_count=1 21700for _am_header in $config_headers :; do 21701 case $_am_header in 21702 $_am_arg | $_am_arg:* ) 21703 break ;; 21704 * ) 21705 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21706 esac 21707done 21708echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21709$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21710 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21711 X"$_am_arg" : 'X\(//\)$' \| \ 21712 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21713printf "%s\n" X"$_am_arg" | 21714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21715 s//\1/ 21716 q 21717 } 21718 /^X\(\/\/\)[^/].*/{ 21719 s//\1/ 21720 q 21721 } 21722 /^X\(\/\/\)$/{ 21723 s//\1/ 21724 q 21725 } 21726 /^X\(\/\).*/{ 21727 s//\1/ 21728 q 21729 } 21730 s/.*/./; q'`/stamp-h$_am_stamp_count 21731 ;; 21732 21733 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21734printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21735 ;; 21736 esac 21737 21738 21739 case $ac_file$ac_mode in 21740 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21741 # Older Autoconf quotes --file arguments for eval, but not when files 21742 # are listed without --file. Let's play safe and only enable the eval 21743 # if we detect the quoting. 21744 # TODO: see whether this extra hack can be removed once we start 21745 # requiring Autoconf 2.70 or later. 21746 case $CONFIG_FILES in #( 21747 *\'*) : 21748 eval set x "$CONFIG_FILES" ;; #( 21749 *) : 21750 set x $CONFIG_FILES ;; #( 21751 *) : 21752 ;; 21753esac 21754 shift 21755 # Used to flag and report bootstrapping failures. 21756 am_rc=0 21757 for am_mf 21758 do 21759 # Strip MF so we end up with the name of the file. 21760 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21761 # Check whether this is an Automake generated Makefile which includes 21762 # dependency-tracking related rules and includes. 21763 # Grep'ing the whole file directly is not great: AIX grep has a line 21764 # limit of 2048, but all sed's we know have understand at least 4000. 21765 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21766 || continue 21767 am_dirpart=`$as_dirname -- "$am_mf" || 21768$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21769 X"$am_mf" : 'X\(//\)[^/]' \| \ 21770 X"$am_mf" : 'X\(//\)$' \| \ 21771 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21772printf "%s\n" X"$am_mf" | 21773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21774 s//\1/ 21775 q 21776 } 21777 /^X\(\/\/\)[^/].*/{ 21778 s//\1/ 21779 q 21780 } 21781 /^X\(\/\/\)$/{ 21782 s//\1/ 21783 q 21784 } 21785 /^X\(\/\).*/{ 21786 s//\1/ 21787 q 21788 } 21789 s/.*/./; q'` 21790 am_filepart=`$as_basename -- "$am_mf" || 21791$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21792 X"$am_mf" : 'X\(//\)$' \| \ 21793 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21794printf "%s\n" X/"$am_mf" | 21795 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21796 s//\1/ 21797 q 21798 } 21799 /^X\/\(\/\/\)$/{ 21800 s//\1/ 21801 q 21802 } 21803 /^X\/\(\/\).*/{ 21804 s//\1/ 21805 q 21806 } 21807 s/.*/./; q'` 21808 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21809 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21810 | $MAKE -f - am--depfiles" >&5 21811 (cd "$am_dirpart" \ 21812 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21813 | $MAKE -f - am--depfiles) >&5 2>&5 21814 ac_status=$? 21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21816 (exit $ac_status); } || am_rc=$? 21817 done 21818 if test $am_rc -ne 0; then 21819 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21820printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21821as_fn_error $? "Something went wrong bootstrapping makefile fragments 21822 for automatic dependency tracking. If GNU make was not used, consider 21823 re-running the configure script with MAKE=\"gmake\" (or whatever is 21824 necessary). You can also try re-running configure with the 21825 '--disable-dependency-tracking' option to at least be able to build 21826 the package (albeit without support for automatic dependency tracking). 21827See \`config.log' for more details" "$LINENO" 5; } 21828 fi 21829 { am_dirpart=; unset am_dirpart;} 21830 { am_filepart=; unset am_filepart;} 21831 { am_mf=; unset am_mf;} 21832 { am_rc=; unset am_rc;} 21833 rm -f conftest-deps.mk 21834} 21835 ;; 21836 "libtool":C) 21837 21838 # See if we are running on zsh, and set the options that allow our 21839 # commands through without removal of \ escapes. 21840 if test -n "${ZSH_VERSION+set}"; then 21841 setopt NO_GLOB_SUBST 21842 fi 21843 21844 cfgfile=${ofile}T 21845 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21846 $RM "$cfgfile" 21847 21848 cat <<_LT_EOF >> "$cfgfile" 21849#! $SHELL 21850# Generated automatically by $as_me ($PACKAGE) $VERSION 21851# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21852# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21853 21854# Provide generalized library-building support services. 21855# Written by Gordon Matzigkeit, 1996 21856 21857# Copyright (C) 2014 Free Software Foundation, Inc. 21858# This is free software; see the source for copying conditions. There is NO 21859# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21860 21861# GNU Libtool is free software; you can redistribute it and/or modify 21862# it under the terms of the GNU General Public License as published by 21863# the Free Software Foundation; either version 2 of of the License, or 21864# (at your option) any later version. 21865# 21866# As a special exception to the GNU General Public License, if you 21867# distribute this file as part of a program or library that is built 21868# using GNU Libtool, you may include this file under the same 21869# distribution terms that you use for the rest of that program. 21870# 21871# GNU Libtool is distributed in the hope that it will be useful, but 21872# WITHOUT ANY WARRANTY; without even the implied warranty of 21873# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21874# GNU General Public License for more details. 21875# 21876# You should have received a copy of the GNU General Public License 21877# along with this program. If not, see <http://www.gnu.org/licenses/>. 21878 21879 21880# The names of the tagged configurations supported by this script. 21881available_tags='' 21882 21883# Configured defaults for sys_lib_dlsearch_path munging. 21884: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21885 21886# ### BEGIN LIBTOOL CONFIG 21887 21888# Which release of libtool.m4 was used? 21889macro_version=$macro_version 21890macro_revision=$macro_revision 21891 21892# Whether or not to build shared libraries. 21893build_libtool_libs=$enable_shared 21894 21895# Whether or not to build static libraries. 21896build_old_libs=$enable_static 21897 21898# What type of objects to build. 21899pic_mode=$pic_mode 21900 21901# Whether or not to optimize for fast installation. 21902fast_install=$enable_fast_install 21903 21904# Shared archive member basename,for filename based shared library versioning on AIX. 21905shared_archive_member_spec=$shared_archive_member_spec 21906 21907# Shell to use when invoking shell scripts. 21908SHELL=$lt_SHELL 21909 21910# An echo program that protects backslashes. 21911ECHO=$lt_ECHO 21912 21913# The PATH separator for the build system. 21914PATH_SEPARATOR=$lt_PATH_SEPARATOR 21915 21916# The host system. 21917host_alias=$host_alias 21918host=$host 21919host_os=$host_os 21920 21921# The build system. 21922build_alias=$build_alias 21923build=$build 21924build_os=$build_os 21925 21926# A sed program that does not truncate output. 21927SED=$lt_SED 21928 21929# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21930Xsed="\$SED -e 1s/^X//" 21931 21932# A grep program that handles long lines. 21933GREP=$lt_GREP 21934 21935# An ERE matcher. 21936EGREP=$lt_EGREP 21937 21938# A literal string matcher. 21939FGREP=$lt_FGREP 21940 21941# A BSD- or MS-compatible name lister. 21942NM=$lt_NM 21943 21944# Whether we need soft or hard links. 21945LN_S=$lt_LN_S 21946 21947# What is the maximum length of a command? 21948max_cmd_len=$max_cmd_len 21949 21950# Object file suffix (normally "o"). 21951objext=$ac_objext 21952 21953# Executable file suffix (normally ""). 21954exeext=$exeext 21955 21956# whether the shell understands "unset". 21957lt_unset=$lt_unset 21958 21959# turn spaces into newlines. 21960SP2NL=$lt_lt_SP2NL 21961 21962# turn newlines into spaces. 21963NL2SP=$lt_lt_NL2SP 21964 21965# convert \$build file names to \$host format. 21966to_host_file_cmd=$lt_cv_to_host_file_cmd 21967 21968# convert \$build files to toolchain format. 21969to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21970 21971# A file(cmd) program that detects file types. 21972FILECMD=$lt_FILECMD 21973 21974# An object symbol dumper. 21975OBJDUMP=$lt_OBJDUMP 21976 21977# Method to check whether dependent libraries are shared objects. 21978deplibs_check_method=$lt_deplibs_check_method 21979 21980# Command to use when deplibs_check_method = "file_magic". 21981file_magic_cmd=$lt_file_magic_cmd 21982 21983# How to find potential files when deplibs_check_method = "file_magic". 21984file_magic_glob=$lt_file_magic_glob 21985 21986# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21987want_nocaseglob=$lt_want_nocaseglob 21988 21989# DLL creation program. 21990DLLTOOL=$lt_DLLTOOL 21991 21992# Command to associate shared and link libraries. 21993sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21994 21995# The archiver. 21996AR=$lt_AR 21997 21998# Flags to create an archive (by configure). 21999lt_ar_flags=$lt_ar_flags 22000 22001# Flags to create an archive. 22002AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22003 22004# How to feed a file listing to the archiver. 22005archiver_list_spec=$lt_archiver_list_spec 22006 22007# A symbol stripping program. 22008STRIP=$lt_STRIP 22009 22010# Commands used to install an old-style archive. 22011RANLIB=$lt_RANLIB 22012old_postinstall_cmds=$lt_old_postinstall_cmds 22013old_postuninstall_cmds=$lt_old_postuninstall_cmds 22014 22015# Whether to use a lock for old archive extraction. 22016lock_old_archive_extraction=$lock_old_archive_extraction 22017 22018# A C compiler. 22019LTCC=$lt_CC 22020 22021# LTCC compiler flags. 22022LTCFLAGS=$lt_CFLAGS 22023 22024# Take the output of nm and produce a listing of raw symbols and C names. 22025global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22026 22027# Transform the output of nm in a proper C declaration. 22028global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22029 22030# Transform the output of nm into a list of symbols to manually relocate. 22031global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22032 22033# Transform the output of nm in a C name address pair. 22034global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22035 22036# Transform the output of nm in a C name address pair when lib prefix is needed. 22037global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22038 22039# The name lister interface. 22040nm_interface=$lt_lt_cv_nm_interface 22041 22042# Specify filename containing input files for \$NM. 22043nm_file_list_spec=$lt_nm_file_list_spec 22044 22045# The root where to search for dependent libraries,and where our libraries should be installed. 22046lt_sysroot=$lt_sysroot 22047 22048# Command to truncate a binary pipe. 22049lt_truncate_bin=$lt_lt_cv_truncate_bin 22050 22051# The name of the directory that contains temporary libtool files. 22052objdir=$objdir 22053 22054# Used to examine libraries when file_magic_cmd begins with "file". 22055MAGIC_CMD=$MAGIC_CMD 22056 22057# Must we lock files when doing compilation? 22058need_locks=$lt_need_locks 22059 22060# Manifest tool. 22061MANIFEST_TOOL=$lt_MANIFEST_TOOL 22062 22063# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22064DSYMUTIL=$lt_DSYMUTIL 22065 22066# Tool to change global to local symbols on Mac OS X. 22067NMEDIT=$lt_NMEDIT 22068 22069# Tool to manipulate fat objects and archives on Mac OS X. 22070LIPO=$lt_LIPO 22071 22072# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22073OTOOL=$lt_OTOOL 22074 22075# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22076OTOOL64=$lt_OTOOL64 22077 22078# Old archive suffix (normally "a"). 22079libext=$libext 22080 22081# Shared library suffix (normally ".so"). 22082shrext_cmds=$lt_shrext_cmds 22083 22084# The commands to extract the exported symbol list from a shared archive. 22085extract_expsyms_cmds=$lt_extract_expsyms_cmds 22086 22087# Variables whose values should be saved in libtool wrapper scripts and 22088# restored at link time. 22089variables_saved_for_relink=$lt_variables_saved_for_relink 22090 22091# Do we need the "lib" prefix for modules? 22092need_lib_prefix=$need_lib_prefix 22093 22094# Do we need a version for libraries? 22095need_version=$need_version 22096 22097# Library versioning type. 22098version_type=$version_type 22099 22100# Shared library runtime path variable. 22101runpath_var=$runpath_var 22102 22103# Shared library path variable. 22104shlibpath_var=$shlibpath_var 22105 22106# Is shlibpath searched before the hard-coded library search path? 22107shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22108 22109# Format of library name prefix. 22110libname_spec=$lt_libname_spec 22111 22112# List of archive names. First name is the real one, the rest are links. 22113# The last name is the one that the linker finds with -lNAME 22114library_names_spec=$lt_library_names_spec 22115 22116# The coded name of the library, if different from the real name. 22117soname_spec=$lt_soname_spec 22118 22119# Permission mode override for installation of shared libraries. 22120install_override_mode=$lt_install_override_mode 22121 22122# Command to use after installation of a shared archive. 22123postinstall_cmds=$lt_postinstall_cmds 22124 22125# Command to use after uninstallation of a shared archive. 22126postuninstall_cmds=$lt_postuninstall_cmds 22127 22128# Commands used to finish a libtool library installation in a directory. 22129finish_cmds=$lt_finish_cmds 22130 22131# As "finish_cmds", except a single script fragment to be evaled but 22132# not shown. 22133finish_eval=$lt_finish_eval 22134 22135# Whether we should hardcode library paths into libraries. 22136hardcode_into_libs=$hardcode_into_libs 22137 22138# Compile-time system search path for libraries. 22139sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22140 22141# Detected run-time system search path for libraries. 22142sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22143 22144# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22145configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22146 22147# Whether dlopen is supported. 22148dlopen_support=$enable_dlopen 22149 22150# Whether dlopen of programs is supported. 22151dlopen_self=$enable_dlopen_self 22152 22153# Whether dlopen of statically linked programs is supported. 22154dlopen_self_static=$enable_dlopen_self_static 22155 22156# Commands to strip libraries. 22157old_striplib=$lt_old_striplib 22158striplib=$lt_striplib 22159 22160 22161# The linker used to build libraries. 22162LD=$lt_LD 22163 22164# How to create reloadable object files. 22165reload_flag=$lt_reload_flag 22166reload_cmds=$lt_reload_cmds 22167 22168# Commands used to build an old-style archive. 22169old_archive_cmds=$lt_old_archive_cmds 22170 22171# A language specific compiler. 22172CC=$lt_compiler 22173 22174# Is the compiler the GNU compiler? 22175with_gcc=$GCC 22176 22177# Compiler flag to turn off builtin functions. 22178no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22179 22180# Additional compiler flags for building library objects. 22181pic_flag=$lt_lt_prog_compiler_pic 22182 22183# How to pass a linker flag through the compiler. 22184wl=$lt_lt_prog_compiler_wl 22185 22186# Compiler flag to prevent dynamic linking. 22187link_static_flag=$lt_lt_prog_compiler_static 22188 22189# Does compiler simultaneously support -c and -o options? 22190compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22191 22192# Whether or not to add -lc for building shared libraries. 22193build_libtool_need_lc=$archive_cmds_need_lc 22194 22195# Whether or not to disallow shared libs when runtime libs are static. 22196allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22197 22198# Compiler flag to allow reflexive dlopens. 22199export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22200 22201# Compiler flag to generate shared objects directly from archives. 22202whole_archive_flag_spec=$lt_whole_archive_flag_spec 22203 22204# Whether the compiler copes with passing no objects directly. 22205compiler_needs_object=$lt_compiler_needs_object 22206 22207# Create an old-style archive from a shared archive. 22208old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22209 22210# Create a temporary old-style archive to link instead of a shared archive. 22211old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22212 22213# Commands used to build a shared archive. 22214archive_cmds=$lt_archive_cmds 22215archive_expsym_cmds=$lt_archive_expsym_cmds 22216 22217# Commands used to build a loadable module if different from building 22218# a shared archive. 22219module_cmds=$lt_module_cmds 22220module_expsym_cmds=$lt_module_expsym_cmds 22221 22222# Whether we are building with GNU ld or not. 22223with_gnu_ld=$lt_with_gnu_ld 22224 22225# Flag that allows shared libraries with undefined symbols to be built. 22226allow_undefined_flag=$lt_allow_undefined_flag 22227 22228# Flag that enforces no undefined symbols. 22229no_undefined_flag=$lt_no_undefined_flag 22230 22231# Flag to hardcode \$libdir into a binary during linking. 22232# This must work even if \$libdir does not exist 22233hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22234 22235# Whether we need a single "-rpath" flag with a separated argument. 22236hardcode_libdir_separator=$lt_hardcode_libdir_separator 22237 22238# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22239# DIR into the resulting binary. 22240hardcode_direct=$hardcode_direct 22241 22242# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22243# DIR into the resulting binary and the resulting library dependency is 22244# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22245# library is relocated. 22246hardcode_direct_absolute=$hardcode_direct_absolute 22247 22248# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22249# into the resulting binary. 22250hardcode_minus_L=$hardcode_minus_L 22251 22252# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22253# into the resulting binary. 22254hardcode_shlibpath_var=$hardcode_shlibpath_var 22255 22256# Set to "yes" if building a shared library automatically hardcodes DIR 22257# into the library and all subsequent libraries and executables linked 22258# against it. 22259hardcode_automatic=$hardcode_automatic 22260 22261# Set to yes if linker adds runtime paths of dependent libraries 22262# to runtime path list. 22263inherit_rpath=$inherit_rpath 22264 22265# Whether libtool must link a program against all its dependency libraries. 22266link_all_deplibs=$link_all_deplibs 22267 22268# Set to "yes" if exported symbols are required. 22269always_export_symbols=$always_export_symbols 22270 22271# The commands to list exported symbols. 22272export_symbols_cmds=$lt_export_symbols_cmds 22273 22274# Symbols that should not be listed in the preloaded symbols. 22275exclude_expsyms=$lt_exclude_expsyms 22276 22277# Symbols that must always be exported. 22278include_expsyms=$lt_include_expsyms 22279 22280# Commands necessary for linking programs (against libraries) with templates. 22281prelink_cmds=$lt_prelink_cmds 22282 22283# Commands necessary for finishing linking programs. 22284postlink_cmds=$lt_postlink_cmds 22285 22286# Specify filename containing input files. 22287file_list_spec=$lt_file_list_spec 22288 22289# How to hardcode a shared library path into an executable. 22290hardcode_action=$hardcode_action 22291 22292# ### END LIBTOOL CONFIG 22293 22294_LT_EOF 22295 22296 cat <<'_LT_EOF' >> "$cfgfile" 22297 22298# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22299 22300# func_munge_path_list VARIABLE PATH 22301# ----------------------------------- 22302# VARIABLE is name of variable containing _space_ separated list of 22303# directories to be munged by the contents of PATH, which is string 22304# having a format: 22305# "DIR[:DIR]:" 22306# string "DIR[ DIR]" will be prepended to VARIABLE 22307# ":DIR[:DIR]" 22308# string "DIR[ DIR]" will be appended to VARIABLE 22309# "DIRP[:DIRP]::[DIRA:]DIRA" 22310# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22311# "DIRA[ DIRA]" will be appended to VARIABLE 22312# "DIR[:DIR]" 22313# VARIABLE will be replaced by "DIR[ DIR]" 22314func_munge_path_list () 22315{ 22316 case x$2 in 22317 x) 22318 ;; 22319 *:) 22320 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22321 ;; 22322 x:*) 22323 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22324 ;; 22325 *::*) 22326 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22327 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22328 ;; 22329 *) 22330 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22331 ;; 22332 esac 22333} 22334 22335 22336# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22337func_cc_basename () 22338{ 22339 for cc_temp in $*""; do 22340 case $cc_temp in 22341 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22342 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22343 \-*) ;; 22344 *) break;; 22345 esac 22346 done 22347 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22348} 22349 22350 22351# ### END FUNCTIONS SHARED WITH CONFIGURE 22352 22353_LT_EOF 22354 22355 case $host_os in 22356 aix3*) 22357 cat <<\_LT_EOF >> "$cfgfile" 22358# AIX sometimes has problems with the GCC collect2 program. For some 22359# reason, if we set the COLLECT_NAMES environment variable, the problems 22360# vanish in a puff of smoke. 22361if test set != "${COLLECT_NAMES+set}"; then 22362 COLLECT_NAMES= 22363 export COLLECT_NAMES 22364fi 22365_LT_EOF 22366 ;; 22367 esac 22368 22369 22370 22371ltmain=$ac_aux_dir/ltmain.sh 22372 22373 22374 # We use sed instead of cat because bash on DJGPP gets confused if 22375 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22376 # text mode, it properly converts lines to CR/LF. This bash problem 22377 # is reportedly fixed, but why not run on old versions too? 22378 $SED '$q' "$ltmain" >> "$cfgfile" \ 22379 || (rm -f "$cfgfile"; exit 1) 22380 22381 mv -f "$cfgfile" "$ofile" || 22382 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22383 chmod +x "$ofile" 22384 22385 ;; 22386 22387 esac 22388done # for ac_tag 22389 22390 22391as_fn_exit 0 22392_ACEOF 22393ac_clean_files=$ac_clean_files_save 22394 22395test $ac_write_fail = 0 || 22396 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22397 22398 22399# configure is writing to config.log, and then calls config.status. 22400# config.status does its own redirection, appending to config.log. 22401# Unfortunately, on DOS this fails, as config.log is still kept open 22402# by configure, so config.status won't be able to write to it; its 22403# output is simply discarded. So we exec the FD to /dev/null, 22404# effectively closing config.log, so it can be properly (re)opened and 22405# appended to by config.status. When coming back to configure, we 22406# need to make the FD available again. 22407if test "$no_create" != yes; then 22408 ac_cs_success=: 22409 ac_config_status_args= 22410 test "$silent" = yes && 22411 ac_config_status_args="$ac_config_status_args --quiet" 22412 exec 5>/dev/null 22413 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22414 exec 5>>config.log 22415 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22416 # would make configure fail if this is the last instruction. 22417 $ac_cs_success || as_fn_exit 1 22418fi 22419if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22421printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22422fi 22423 22424 22425